@nebula.js/sn-table 6.5.5 → 6.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-table v6.5.5
2
+ * @nebula.js/sn-table v6.5.7
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],(function(e,t){"use strict";var r,n,o,i,a,s,l,u,c,d,p,f,h,m,g,b,v,y,x,S,w,C,E,R,P,A,I,M,k,D,T,O,L,q,N,j,_,z,F,H,$,W,B,V,U,G;return{setters:[function(e){r=e.useMemo,n=e.useOptions,o=e.usePromise,i=e.useState,a=e.useEffect,s=e.useTheme,l=e.useInteractionState,u=e.onContextMenu,c=e.onTakeSnapshot,d=e.useImperativeHandle,p=e.useElement,f=e.useStaleLayout,h=e.useApp,m=e.useModel,g=e.useTranslator,b=e.useSelections,v=e.useKeyboard,y=e.useRect,x=e.useEmbed},function(e){S=e.default,w=e.createElement,C=e,E=e.isValidElement,R=e.cloneElement,P=e.Children,A=e.useMemo,I=e.useState,M=e.useRef,k=e.createContext,D=e.useReducer,T=e.useEffect,O=e.useDebugValue,L=e.useContext,q=e.useCallback,N=e.useLayoutEffect,j=e.forwardRef,_=e.memo,z=e.useInsertionEffect,F=e.startTransition,H=e.useImperativeHandle,$=e.PureComponent},function(e){W=e.default,B=e,V=e.flushSync},function(e){U=e.default},function(e){G=e.default}],execute:function(){function Y(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function K(e){if("object"==typeof e&&Y(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}e("default",(function(e){return{qae:XV(),ext:EP(e),component(){const t=r((()=>ZE()),[]),o=p(),i=VV(o),a=f();t.set(uR,h());const s=m(),l=QC(!!a.snapshotData);t.set(cR,g());const c=b(),d=v(),S=n(),{freeResize:w}=S,C=y(),E=r((()=>a.snapshotData?.content&&!w?{...C,...a.snapshotData.content.size}:C),[C,w,a.snapshotData?.content]),R=nU(a),P=x(),A=HC(a,o,oU,iU),I=S.direction,M=UV(a.qHyperCube,s),k=RP(a.qHyperCube,s),D=KC(A,a,e),T=Lt(),O=r((()=>new eE),[]),L={layout:a,model:s,rect:E,theme:A,keyboard:d,interactions:l,selectionsAPI:c,changeSortOrder:M,rootElement:o,embed:P,reactRoot:i,applyColumnWidths:k,isFontLoaded:D,downloadService:T,viewService:R,direction:I,env:e,eventEmitter:O};u?.(((e,t)=>{const r=t.target,n=r?.closest(`.${aE}`);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()=>{gE(n)}})})),rU({layout:a,viewService:R,model:s,rootElement:o,contentRect:C}),YV(L,t),BV(L,t)}}}));const X={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function J(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Y(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in X}(e)){const t=X[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function Z(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function Q(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function ee(e){if(Y(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?K(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function te(e,t){return Y(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:te(J(e))}function re(e){return Y(e)?1===e.a?ee(e):te(e):re(J(e))}const ne=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function oe(e){return.2126*ne(e.r)+.7152*ne(e.g)+.0722*ne(e.b)}function ie(...e){const t=J(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=Z(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=J(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>function(...e){const t=J(...e);return t.invalid||oe(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=ee(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=te(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=re(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(Y(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?K(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=Z(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=Q(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=Q(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>ie(o(18*e)),getDarkenedColor:(e=1)=>ie(o(18*-e))}}function ae(e,t){if(!e||!t)return;const r=oe(e),n=oe(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function se(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var le,ue="top",ce="top-right",de="right",pe="bottom-right",fe="bottom",he="bottom-left",me="left",ge="top-left";se(se(se(se(se(se(se(se(se(se(le={},"equal-equal",[ue,fe]),"equal-higher",[fe,pe]),"equal-lower",[ue,ce]),"equal-void",[ue,fe]),"higher-equal",[me,he,ue,ce]),"higher-higher-acute",[fe,he,me,ce]),"higher-higher-obtuse",[fe,ue]),"higher-lower-negative",[ue,ce,de]),"higher-lower-positive",[fe,he,me]),"higher-void",[ue]),se(se(se(se(se(se(se(se(se(se(le,"lower-equal",[ue]),"lower-higher-negative",[ue,ge]),"lower-higher-positive",[pe]),"lower-lower-acute",[ue,ge,me,ce,de]),"lower-lower-obtuse",[ue,fe]),"lower-void",[ue]),"void-equal",[ue]),"void-higher",[ue,fe]),"void-lower",[ue,fe,me]),"void-void",[ue]),se(le,"unclassified",[ue,fe,de,me,ce,pe,he,ge]);var be,ve,ye=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],xe=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Se(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?xe:ye}var we=function(){if(ve)return be;ve=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return be=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},be}();function Ce(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ee(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Re(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(we);var Pe=1/.7,Ae="\\s*([+-]?\\d+)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ke=/^#([0-9a-f]{3,8})$/,De=new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`),Te=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),Oe=new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${Ie}\\)$`),Le=new RegExp(`^rgba\\(${Me},${Me},${Me},${Ie}\\)$`),qe=new RegExp(`^hsl\\(${Ie},${Me},${Me}\\)$`),Ne=new RegExp(`^hsla\\(${Ie},${Me},${Me},${Ie}\\)$`),je={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _e(){return this.rgb().formatHex()}function ze(){return this.rgb().formatRgb()}function Fe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ke.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?He(t):3===r?new Ve(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?$e(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?$e(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=De.exec(e))?new Ve(t[1],t[2],t[3],1):(t=Te.exec(e))?new Ve(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Oe.exec(e))?$e(t[1],t[2],t[3],t[4]):(t=Le.exec(e))?$e(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=qe.exec(e))?Je(t[1],t[2]/100,t[3]/100,1):(t=Ne.exec(e))?Je(t[1],t[2]/100,t[3]/100,t[4]):je.hasOwnProperty(e)?He(je[e]):"transparent"===e?new Ve(NaN,NaN,NaN,0):null}function He(e){return new Ve(e>>16&255,e>>8&255,255&e,1)}function $e(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ve(e,t,r,n)}function We(e){return e instanceof Re||(e=Fe(e)),e?new Ve((e=e.rgb()).r,e.g,e.b,e.opacity):new Ve}function Be(e,t,r,n){return 1===arguments.length?We(e):new Ve(e,t,r,null==n?1:n)}function Ve(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ue(){return`#${Xe(this.r)}${Xe(this.g)}${Xe(this.b)}`}function Ge(){const e=Ye(this.opacity);return`${1===e?"rgb(":"rgba("}${Ke(this.r)}, ${Ke(this.g)}, ${Ke(this.b)}${1===e?")":`, ${e})`}`}function Ye(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ke(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xe(e){return((e=Ke(e))<16?"0":"")+e.toString(16)}function Je(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Qe(e,t,r,n)}function Ze(e){if(e instanceof Qe)return new Qe(e.h,e.s,e.l,e.opacity);if(e instanceof Re||(e=Fe(e)),!e)return new Qe;if(e instanceof Qe)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Qe(a,s,l,e.opacity)}function Qe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function et(e){return(e=(e||0)%360)<0?e+360:e}function tt(e){return Math.max(0,Math.min(1,e||0))}function rt(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ce(Re,Fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_e,formatHex:_e,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ze(this).formatHsl()},formatRgb:ze,toString:ze}),Ce(Ve,Be,Ee(Re,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ve(Ke(this.r),Ke(this.g),Ke(this.b),Ye(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ue,formatHex:Ue,formatHex8:function(){return`#${Xe(this.r)}${Xe(this.g)}${Xe(this.b)}${Xe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ge,toString:Ge})),Ce(Qe,(function(e,t,r,n){return 1===arguments.length?Ze(e):new Qe(e,t,r,null==n?1:n)}),Ee(Re,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new Qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Qe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Ve(rt(e>=240?e-240:e+120,o,n),rt(e,o,n),rt(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Qe(et(this.h),tt(this.s),tt(this.l),Ye(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ye(this.opacity);return`${1===e?"hsl(":"hsla("}${et(this.h)}, ${100*tt(this.s)}%, ${100*tt(this.l)}%${1===e?")":`, ${e})`}`}}));const nt=Math.PI/180,ot=180/Math.PI,it=4/29,at=6/29,st=3*at*at;function lt(e){if(e instanceof ut)return new ut(e.l,e.a,e.b,e.opacity);if(e instanceof ht)return mt(e);e instanceof Ve||(e=We(e));var t,r,n=ft(e.r),o=ft(e.g),i=ft(e.b),a=ct((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=ct((.4360747*n+.3850649*o+.1430804*i)/.96422),r=ct((.0139322*n+.0971045*o+.7141733*i)/.82521)),new ut(116*a-16,500*(t-a),200*(a-r),e.opacity)}function ut(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function ct(e){return e>.008856451679035631?Math.pow(e,1/3):e/st+it}function dt(e){return e>at?e*e*e:st*(e-it)}function pt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ft(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ht(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function mt(e){if(isNaN(e.h))return new ut(e.l,0,0,e.opacity);var t=e.h*nt;return new ut(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ce(ut,(function(e,t,r,n){return 1===arguments.length?lt(e):new ut(e,t,r,null==n?1:n)}),Ee(Re,{brighter(e){return new ut(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ut(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Ve(pt(3.1338561*(t=.96422*dt(t))-1.6168667*(e=1*dt(e))-.4906146*(r=.82521*dt(r))),pt(-.9787684*t+1.9161415*e+.033454*r),pt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ce(ht,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ht)return new ht(e.h,e.c,e.l,e.opacity);if(e instanceof ut||(e=lt(e)),0===e.a&&0===e.b)return new ht(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ot;return new ht(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ht(e,t,r,null==n?1:n)}),Ee(Re,{brighter(e){return new ht(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ht(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return mt(this).rgb()}}));var gt=e=>()=>e;function bt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):gt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?bt:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):gt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Be(e)).r,(t=Be(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=bt(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var vt="center",yt="bottom";[{key:"NoDataExist",alignment:vt,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:vt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:vt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:vt},{key:"DataRangeIncludingZero",alignment:yt},{key:"LimitedData",alignment:yt},{key:"NegativeOrZeroValues",alignment:yt}].reduce((function(e,t){return e[t.key]=t,e}),{});var xt,St=["__proto__","constructor"];function wt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!St.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function Ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function Et(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Rt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=At)):void 0===t&&(t=Pt);for(var r,n,o,i,a,s=new kt(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new kt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Mt)}function Pt(e){return e.children}function At(e){return Array.isArray(e)?e[1]:null}function It(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Mt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function kt(e){this.data=e,this.depth=this.height=0,this.parent=null}kt.prototype=Rt.prototype={constructor:kt,count:function(){return this.eachAfter(Et)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Rt(this).eachBefore(It)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},xt=function(e){
7
+ System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],(function(e,t){"use strict";var r,n,o,i,a,s,l,u,c,d,p,f,h,m,g,b,v,y,x,S,w,C,E,R,P,A,I,M,k,D,T,O,L,q,N,j,_,z,F,H,$,W,B,V,U,G;return{setters:[function(e){r=e.useMemo,n=e.useOptions,o=e.usePromise,i=e.useState,a=e.useEffect,s=e.useTheme,l=e.useInteractionState,u=e.onContextMenu,c=e.onTakeSnapshot,d=e.useImperativeHandle,p=e.useElement,f=e.useStaleLayout,h=e.useApp,m=e.useModel,g=e.useTranslator,b=e.useSelections,v=e.useKeyboard,y=e.useRect,x=e.useEmbed},function(e){S=e.default,w=e.createElement,C=e,E=e.isValidElement,R=e.cloneElement,P=e.Children,A=e.useMemo,I=e.useState,M=e.useRef,k=e.createContext,D=e.useReducer,T=e.useEffect,O=e.useDebugValue,L=e.useContext,q=e.useCallback,N=e.useLayoutEffect,j=e.forwardRef,_=e.memo,z=e.useInsertionEffect,F=e.startTransition,H=e.useImperativeHandle,$=e.PureComponent},function(e){W=e.default,B=e,V=e.flushSync},function(e){U=e.default},function(e){G=e.default}],execute:function(){function Y(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function K(e){if("object"==typeof e&&Y(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}e("default",(function(e){return{qae:QV(),ext:EP(e),component(){const t=r((()=>ZE()),[]),o=p(),i=YV(o),a=f();t.set(uR,h());const s=m(),l=QC(!!a.snapshotData);t.set(cR,g());const c=b(),d=v(),S=n(),{freeResize:w}=S,C=y(),E=r((()=>a.snapshotData?.content&&!w?{...C,...a.snapshotData.content.size}:C),[C,w,a.snapshotData?.content]),R=aU(a),P=x(),A=HC(a,o,sU,lU),I=S.direction,M=KV(a.qHyperCube,s),k=RP(a.qHyperCube,s),D=KC(A,a,e),T=Lt(),O=r((()=>new eE),[]),L={layout:a,model:s,rect:E,theme:A,keyboard:d,interactions:l,selectionsAPI:c,changeSortOrder:M,rootElement:o,embed:P,reactRoot:i,applyColumnWidths:k,isFontLoaded:D,downloadService:T,viewService:R,direction:I,env:e,eventEmitter:O};u?.(((e,t)=>{const r=t.target,n=r?.closest(`.${aE}`);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()=>{gE(n)}})})),iU({layout:a,viewService:R,model:s,rootElement:o,contentRect:C}),JV(L,t),GV(L,t)}}}));const X={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function J(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Y(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in X}(e)){const t=X[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function Z(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function Q(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function ee(e){if(Y(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?K(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function te(e,t){return Y(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:te(J(e))}function re(e){return Y(e)?1===e.a?ee(e):te(e):re(J(e))}const ne=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function oe(e){return.2126*ne(e.r)+.7152*ne(e.g)+.0722*ne(e.b)}function ie(...e){const t=J(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=Z(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=J(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>function(...e){const t=J(...e);return t.invalid||oe(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=ee(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=te(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=re(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(Y(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?K(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=Z(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=Q(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=Q(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>ie(o(18*e)),getDarkenedColor:(e=1)=>ie(o(18*-e))}}function ae(e,t){if(!e||!t)return;const r=oe(e),n=oe(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function se(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var le,ue="top",ce="top-right",de="right",pe="bottom-right",fe="bottom",he="bottom-left",me="left",ge="top-left";se(se(se(se(se(se(se(se(se(se(le={},"equal-equal",[ue,fe]),"equal-higher",[fe,pe]),"equal-lower",[ue,ce]),"equal-void",[ue,fe]),"higher-equal",[me,he,ue,ce]),"higher-higher-acute",[fe,he,me,ce]),"higher-higher-obtuse",[fe,ue]),"higher-lower-negative",[ue,ce,de]),"higher-lower-positive",[fe,he,me]),"higher-void",[ue]),se(se(se(se(se(se(se(se(se(se(le,"lower-equal",[ue]),"lower-higher-negative",[ue,ge]),"lower-higher-positive",[pe]),"lower-lower-acute",[ue,ge,me,ce,de]),"lower-lower-obtuse",[ue,fe]),"lower-void",[ue]),"void-equal",[ue]),"void-higher",[ue,fe]),"void-lower",[ue,fe,me]),"void-void",[ue]),se(le,"unclassified",[ue,fe,de,me,ce,pe,he,ge]);var be,ve,ye=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],xe=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Se(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?xe:ye}var we=function(){if(ve)return be;ve=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return be=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},be}();function Ce(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ee(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Re(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(we);var Pe=1/.7,Ae="\\s*([+-]?\\d+)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ke=/^#([0-9a-f]{3,8})$/,De=new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`),Te=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),Oe=new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${Ie}\\)$`),Le=new RegExp(`^rgba\\(${Me},${Me},${Me},${Ie}\\)$`),qe=new RegExp(`^hsl\\(${Ie},${Me},${Me}\\)$`),Ne=new RegExp(`^hsla\\(${Ie},${Me},${Me},${Ie}\\)$`),je={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function _e(){return this.rgb().formatHex()}function ze(){return this.rgb().formatRgb()}function Fe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ke.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?He(t):3===r?new Ve(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?$e(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?$e(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=De.exec(e))?new Ve(t[1],t[2],t[3],1):(t=Te.exec(e))?new Ve(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Oe.exec(e))?$e(t[1],t[2],t[3],t[4]):(t=Le.exec(e))?$e(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=qe.exec(e))?Je(t[1],t[2]/100,t[3]/100,1):(t=Ne.exec(e))?Je(t[1],t[2]/100,t[3]/100,t[4]):je.hasOwnProperty(e)?He(je[e]):"transparent"===e?new Ve(NaN,NaN,NaN,0):null}function He(e){return new Ve(e>>16&255,e>>8&255,255&e,1)}function $e(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ve(e,t,r,n)}function We(e){return e instanceof Re||(e=Fe(e)),e?new Ve((e=e.rgb()).r,e.g,e.b,e.opacity):new Ve}function Be(e,t,r,n){return 1===arguments.length?We(e):new Ve(e,t,r,null==n?1:n)}function Ve(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ue(){return`#${Xe(this.r)}${Xe(this.g)}${Xe(this.b)}`}function Ge(){const e=Ye(this.opacity);return`${1===e?"rgb(":"rgba("}${Ke(this.r)}, ${Ke(this.g)}, ${Ke(this.b)}${1===e?")":`, ${e})`}`}function Ye(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ke(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xe(e){return((e=Ke(e))<16?"0":"")+e.toString(16)}function Je(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Qe(e,t,r,n)}function Ze(e){if(e instanceof Qe)return new Qe(e.h,e.s,e.l,e.opacity);if(e instanceof Re||(e=Fe(e)),!e)return new Qe;if(e instanceof Qe)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Qe(a,s,l,e.opacity)}function Qe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function et(e){return(e=(e||0)%360)<0?e+360:e}function tt(e){return Math.max(0,Math.min(1,e||0))}function rt(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ce(Re,Fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_e,formatHex:_e,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ze(this).formatHsl()},formatRgb:ze,toString:ze}),Ce(Ve,Be,Ee(Re,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ve(Ke(this.r),Ke(this.g),Ke(this.b),Ye(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ue,formatHex:Ue,formatHex8:function(){return`#${Xe(this.r)}${Xe(this.g)}${Xe(this.b)}${Xe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ge,toString:Ge})),Ce(Qe,(function(e,t,r,n){return 1===arguments.length?Ze(e):new Qe(e,t,r,null==n?1:n)}),Ee(Re,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new Qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Qe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Ve(rt(e>=240?e-240:e+120,o,n),rt(e,o,n),rt(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Qe(et(this.h),tt(this.s),tt(this.l),Ye(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ye(this.opacity);return`${1===e?"hsl(":"hsla("}${et(this.h)}, ${100*tt(this.s)}%, ${100*tt(this.l)}%${1===e?")":`, ${e})`}`}}));const nt=Math.PI/180,ot=180/Math.PI,it=4/29,at=6/29,st=3*at*at;function lt(e){if(e instanceof ut)return new ut(e.l,e.a,e.b,e.opacity);if(e instanceof ht)return mt(e);e instanceof Ve||(e=We(e));var t,r,n=ft(e.r),o=ft(e.g),i=ft(e.b),a=ct((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=ct((.4360747*n+.3850649*o+.1430804*i)/.96422),r=ct((.0139322*n+.0971045*o+.7141733*i)/.82521)),new ut(116*a-16,500*(t-a),200*(a-r),e.opacity)}function ut(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function ct(e){return e>.008856451679035631?Math.pow(e,1/3):e/st+it}function dt(e){return e>at?e*e*e:st*(e-it)}function pt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ft(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ht(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function mt(e){if(isNaN(e.h))return new ut(e.l,0,0,e.opacity);var t=e.h*nt;return new ut(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ce(ut,(function(e,t,r,n){return 1===arguments.length?lt(e):new ut(e,t,r,null==n?1:n)}),Ee(Re,{brighter(e){return new ut(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ut(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Ve(pt(3.1338561*(t=.96422*dt(t))-1.6168667*(e=1*dt(e))-.4906146*(r=.82521*dt(r))),pt(-.9787684*t+1.9161415*e+.033454*r),pt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ce(ht,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ht)return new ht(e.h,e.c,e.l,e.opacity);if(e instanceof ut||(e=lt(e)),0===e.a&&0===e.b)return new ht(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ot;return new ht(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ht(e,t,r,null==n?1:n)}),Ee(Re,{brighter(e){return new ht(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ht(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return mt(this).rgb()}}));var gt=e=>()=>e;function bt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):gt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?bt:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):gt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Be(e)).r,(t=Be(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=bt(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var vt="center",yt="bottom";[{key:"NoDataExist",alignment:vt,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:vt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:vt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:vt},{key:"DataRangeIncludingZero",alignment:yt},{key:"LimitedData",alignment:yt},{key:"NegativeOrZeroValues",alignment:yt}].reduce((function(e,t){return e[t.key]=t,e}),{});var xt,St=["__proto__","constructor"];function wt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!St.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function Ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function Et(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Rt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=At)):void 0===t&&(t=Pt);for(var r,n,o,i,a,s=new kt(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new kt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Mt)}function Pt(e){return e.children}function At(e){return Array.isArray(e)?e[1]:null}function It(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Mt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function kt(e){this.data=e,this.depth=this.height=0,this.parent=null}kt.prototype=Rt.prototype={constructor:kt,count:function(){return this.eachAfter(Et)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Rt(this).eachBefore(It)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},xt=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
9
  e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},xt({exports:{}});const Dt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Tt(e,t){return r((()=>e),t)}const Ot={},Lt=()=>{const{viewState:e}=n(),t=(e=>{const t=r((()=>({current:Ot})),[]);return t.current=t.current===Ot?e:t.current,t})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=r((()=>Dt()),[]),l=Tt((e=>{t.current.add(e)}),[t]),u=Tt(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(t.current),t.current.clear(),s()}),1e3),[s,t]);return o((async()=>{await a}),[a]),r((()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,e,l])},qt={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},Nt={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...qt,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},jt=12,_t=14,zt=16,Ft=24,Ht=3,$t=300,Wt=400,Bt=600,Vt=700,Ut={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Kt={exports:{}},Xt={},Jt=S,Zt=Symbol.for("react.element"),Qt=Symbol.for("react.fragment"),er=Object.prototype.hasOwnProperty,tr=Jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0};function nr(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)er.call(t,n)&&!rr.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Zt,type:e,key:i,ref:a,props:o,_owner:tr.current}}Xt.Fragment=Qt,Xt.jsx=nr,Xt.jsxs=nr,Kt.exports=Xt;var or=Kt.exports;const ir={black:"#000",white:"#fff"},ar="#e57373",sr="#ef5350",lr="#f44336",ur="#d32f2f",cr="#c62828",dr="#f3e5f5",pr="#ce93d8",fr="#ba68c8",hr="#ab47bc",mr="#9c27b0",gr="#7b1fa2",br="#e3f2fd",vr="#90caf9",yr="#42a5f5",xr="#1976d2",Sr="#1565c0",wr="#4fc3f7",Cr="#29b6f6",Er="#03a9f4",Rr="#0288d1",Pr="#01579b",Ar="#81c784",Ir="#66bb6a",Mr="#4caf50",kr="#388e3c",Dr="#2e7d32",Tr="#1b5e20",Or="#ffb74d",Lr="#ffa726",qr="#ff9800",Nr="#f57c00",jr="#e65100",_r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function zr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Fr=Object.freeze({__proto__:null,default:zr}),Hr="$$material";function $r(){return $r=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},$r.apply(null,arguments)}function Wr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var Br=function(){return Br=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Br.apply(this,arguments)};function Vr(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ur="-ms-",Gr="-moz-",Yr="-webkit-",Kr="comm",Xr="rule",Jr="decl",Zr="@import",Qr="@keyframes",en=Math.abs,tn=String.fromCharCode,rn=Object.assign;function nn(e){return e.trim()}function on(e,t){return(e=t.exec(e))?e[0]:e}function an(e,t,r){return e.replace(t,r)}function sn(e,t,r){return e.indexOf(t,r)}function ln(e,t){return 0|e.charCodeAt(t)}function un(e,t,r){return e.slice(t,r)}function cn(e){return e.length}function dn(e){return e.length}function pn(e,t){return t.push(e),e}function fn(e,t){return e.filter((function(e){return!on(e,t)}))}var hn=1,mn=1,gn=0,bn=0,vn=0,yn="";function xn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:hn,column:mn,length:a,return:"",siblings:s}}function Sn(e,t){return rn(xn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function wn(e){for(;e.root;)e=Sn(e.root,{children:[e]});pn(e,e.siblings)}function Cn(){return vn=bn>0?ln(yn,--bn):0,mn--,10===vn&&(mn=1,hn--),vn}function En(){return vn=bn<gn?ln(yn,bn++):0,mn++,10===vn&&(mn=1,hn++),vn}function Rn(){return ln(yn,bn)}function Pn(){return bn}function An(e,t){return un(yn,e,t)}function In(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 Mn(e){return nn(An(bn-1,Tn(91===e?e+2:40===e?e+1:e)))}function kn(e){for(;(vn=Rn())&&vn<33;)En();return In(e)>2||In(vn)>3?"":" "}function Dn(e,t){for(;--t&&En()&&!(vn<48||vn>102||vn>57&&vn<65||vn>70&&vn<97););return An(e,Pn()+(t<6&&32==Rn()&&32==En()))}function Tn(e){for(;En();)switch(vn){case e:return bn;case 34:case 39:34!==e&&39!==e&&Tn(vn);break;case 40:41===e&&Tn(e);break;case 92:En()}return bn}function On(e,t){for(;En()&&e+vn!==57&&(e+vn!==84||47!==Rn()););return"/*"+An(t,bn-1)+"*"+tn(47===e?e:En())}function Ln(e){for(;!In(Rn());)En();return An(e,bn)}function qn(e){return function(e){return yn="",e}(Nn("",null,null,null,[""],e=function(e){return hn=mn=1,gn=cn(yn=e),bn=0,[]}(e),0,[0],e))}function Nn(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=En()){case 40:if(108!=h&&58==ln(C,d-1)){-1!=sn(C+=an(Mn(v),"&","&\f"),"&\f",en(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Mn(v);break;case 9:case 10:case 13:case 32:C+=kn(h);break;case 92:C+=Dn(Pn()-1,7);continue;case 47:switch(Rn()){case 42:case 47:pn(_n(On(En(),Pn()),t,r,l),l),5!=In(h||1)&&5!=In(Rn()||1)||!cn(C)||" "===un(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=cn(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=an(C,/\f/g,"")),f>0&&(cn(C)-d||0===m&&47===h)&&pn(f>32?zn(C+";",n,r,d-1,l):zn(an(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(pn(w=jn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)Nn(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===ln(C,3))break;case 108:if(97===ln(C,2))break;default:c=0;case 100:case 109:case 115:}c?Nn(e,w,w,n&&pn(jn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):Nn(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+cn(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Cn())continue;switch(C+=tn(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(cn(C)-1)*b,b=1;break;case 64:45===Rn()&&(C+=Mn(En())),p=Rn(),c=d=cn(y=C+=Ln(Pn())),v++;break;case 45:45===h&&2==cn(C)&&(m=0)}}return i}function jn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=dn(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=un(e,p+1,p=en(g=a[m])),x=e;v<h;++v)(x=nn(g>0?f[v]+" "+y:an(y,/&\f/g,f[v])))&&(l[b++]=x);return xn(e,t,r,0===o?Xr:s,l,u,c,d)}function _n(e,t,r,n){return xn(e,t,r,Kr,tn(vn),un(e,2,-2),0,n)}function zn(e,t,r,n,o){return xn(e,t,r,Jr,un(e,0,n),un(e,n+1,-1),n,o)}function Fn(e,t,r){switch(function(e,t){return 45^ln(e,0)?(((t<<2^ln(e,0))<<2^ln(e,1))<<2^ln(e,2))<<2^ln(e,3):0}(e,t)){case 5103:return Yr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Yr+e+e;case 4855:return Yr+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Gr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yr+e+Gr+e+Ur+e+e;case 5936:switch(ln(e,t+11)){case 114:return Yr+e+Ur+an(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yr+e+Ur+an(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yr+e+Ur+an(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Yr+e+Ur+e+e;case 6165:return Yr+e+Ur+"flex-"+e+e;case 5187:return Yr+e+an(e,/(\w+).+(:[^]+)/,Yr+"box-$1$2"+Ur+"flex-$1$2")+e;case 5443:return Yr+e+Ur+"flex-item-"+an(e,/flex-|-self/g,"")+(on(e,/flex-|baseline/)?"":Ur+"grid-row-"+an(e,/flex-|-self/g,""))+e;case 4675:return Yr+e+Ur+"flex-line-pack"+an(e,/align-content|flex-|-self/g,"")+e;case 5548:return Yr+e+Ur+an(e,"shrink","negative")+e;case 5292:return Yr+e+Ur+an(e,"basis","preferred-size")+e;case 6060:return Yr+"box-"+an(e,"-grow","")+Yr+e+Ur+an(e,"grow","positive")+e;case 4554:return Yr+an(e,/([^-])(transform)/g,"$1"+Yr+"$2")+e;case 6187:return an(an(an(e,/(zoom-|grab)/,Yr+"$1"),/(image-set)/,Yr+"$1"),e,"")+e;case 5495:case 3959:return an(e,/(image-set\([^]*)/,Yr+"$1$`$1");case 4968:return an(an(e,/(.+:)(flex-)?(.*)/,Yr+"box-pack:$3"+Ur+"flex-pack:$3"),/space-between/,"justify")+Yr+e+e;case 4200:if(!on(e,/flex-|baseline/))return Ur+"grid-column-align"+un(e,t)+e;break;case 2592:case 3360:return Ur+an(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,on(e.props,/grid-\w+-end/)}))?~sn(e+(r=r[t].value),"span",0)?e:Ur+an(e,"-start","")+e+Ur+"grid-row-span:"+(~sn(r,"span",0)?on(r,/\d+/):+on(r,/\d+/)-+on(e,/\d+/))+";":Ur+an(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return on(e.props,/grid-\w+-start/)}))?e:Ur+an(an(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return an(e,/(.+)-inline(.+)/,Yr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(cn(e)-1-t>6)switch(ln(e,t+1)){case 109:if(45!==ln(e,t+4))break;case 102:return an(e,/(.+:)(.+)-([^]+)/,"$1"+Yr+"$2-$3$1"+Gr+(108==ln(e,t+3)?"$3":"$2-$3"))+e;case 115:return~sn(e,"stretch",0)?Fn(an(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return an(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Ur+r+":"+n+s+(o?Ur+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===ln(e,t+6))return an(e,":",":"+Yr)+e;break;case 6444:switch(ln(e,45===ln(e,14)?18:11)){case 120:return an(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Yr+(45===ln(e,14)?"inline-":"")+"box$3$1"+Yr+"$2$3$1"+Ur+"$2box$3")+e;case 100:return an(e,":",":"+Ur)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return an(e,"scroll-","scroll-snap-")+e}return e}function Hn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function $n(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case Zr:case"@namespace":case Jr:return e.return=e.return||e.value;case Kr:return"";case Qr:return e.return=e.value+"{"+Hn(e.children,n)+"}";case Xr:if(!cn(e.value=e.props.join(",")))return""}return cn(r=Hn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Wn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Jr:return void(e.return=Fn(e.value,e.length,r));case Qr:return Hn([Sn(e,{value:an(e.value,"@","@"+Yr)})],n);case Xr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(on(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":wn(Sn(e,{props:[an(t,/:(read-\w+)/,":-moz-$1")]})),wn(Sn(e,{props:[t]})),rn(e,{props:fn(r,n)});break;case"::placeholder":wn(Sn(e,{props:[an(t,/:(plac\w+)/,":"+Yr+"input-$1")]})),wn(Sn(e,{props:[an(t,/:(plac\w+)/,":-moz-$1")]})),wn(Sn(e,{props:[an(t,/:(plac\w+)/,Ur+"input-$1")]})),wn(Sn(e,{props:[t]})),rn(e,{props:fn(r,n)})}return""}))}}var Bn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Un="active",Gn="data-styled-version",Yn="6.3.9",Kn="/*!sc*/\n",Xn="undefined"!=typeof window&&"undefined"!=typeof document,Jn=void 0===S.createContext,Zn=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),Qn={},eo=Object.freeze([]),to=Object.freeze({});function ro(e,t,r){return void 0===r&&(r=to),e.theme!==r.theme&&e.theme||t||r.theme}var no=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),oo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,io=/(^-|-$)/g;function ao(e){return e.replace(oo,"-").replace(io,"")}var so=/(a)(d)/gi,lo=function(e){return String.fromCharCode(e+(e>25?39:97))};function uo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=lo(t%52)+r;return(lo(t%52)+r).replace(so,"$1-$2")}var co,po=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},fo=function(e){return po(5381,e)};function ho(e){return uo(fo(e)>>>0)}function mo(e){return"string"==typeof e&&!0}var go="function"==typeof Symbol&&Symbol.for,bo=go?Symbol.for("react.memo"):60115,vo=go?Symbol.for("react.forward_ref"):60112,yo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},So={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wo=((co={})[vo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},co[bo]=So,co);function Co(e){return("type"in(t=e)&&t.type.$$typeof)===bo?So:"$$typeof"in e?wo[e.$$typeof]:yo;var t}var Eo=Object.defineProperty,Ro=Object.getOwnPropertyNames,Po=Object.getOwnPropertySymbols,Ao=Object.getOwnPropertyDescriptor,Io=Object.getPrototypeOf,Mo=Object.prototype;function ko(e,t,r){if("string"!=typeof t){if(Mo){var n=Io(t);n&&n!==Mo&&ko(e,n,r)}var o=Ro(t);Po&&(o=o.concat(Po(t)));for(var i=Co(e),a=Co(t),s=0;s<o.length;++s){var l=o[s];if(!(l in xo||r&&r[l]||a&&l in a||i&&l in i)){var u=Ao(t,l);try{Eo(e,l,u)}catch(e){}}}}return e}function Do(e){return"function"==typeof e}function To(e){return"object"==typeof e&&"styledComponentId"in e}function Oo(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Lo(e,t){return e.join("")}function qo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function No(e,t,r){if(void 0===r&&(r=!1),!r&&!qo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=No(e[n],t[n]);else if(qo(t))for(var n in t)e[n]=No(e[n],t[n]);return e}function jo(e,t){Object.defineProperty(e,"toString",{value:t})}function _o(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var zo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw _o(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+Kn;return t},e}(),Fo=new Map,Ho=new Map,$o=1,Wo=function(e){if(Fo.has(e))return Fo.get(e);for(;Ho.has($o);)$o++;var t=$o++;return Fo.set(e,t),Ho.set(t,e),t},Bo=function(e,t){$o=t+1,Fo.set(e,t),Ho.set(t,e)},Vo="style[".concat(Vn,"][").concat(Gn,'="').concat(Yn,'"]'),Uo=new RegExp("^".concat(Vn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Go=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},Yo=function(e){if(!e)return document;if(Go(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(Go(t))return t}return document},Ko=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Xo=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Kn),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Uo);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Bo(c,u),Ko(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Jo=function(e){for(var t=Yo(e.options.target).querySelectorAll(Vo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Vn)!==Un&&(Xo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Zo=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Vn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Vn,Un),n.setAttribute(Gn,Yn);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Qo=function(){function e(e){this.element=Zo(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){var t;if(e.sheet)return e.sheet;for(var r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets,n=0,o=r.length;n<o;n++){var i=r[n];if(i.ownerNode===e)return i}throw _o(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),ei=function(){function e(e){this.element=Zo(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),ti=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ri=Xn,ni={isServer:!Xn,useCSSOMInjection:!Zn},oi=function(){function e(e,t,r){void 0===e&&(e=to),void 0===t&&(t={});var n=this;this.options=Br(Br({},ni),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Xn&&ri&&(ri=!1,Jo(this)),jo(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Ho.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o);if(void 0===i||!i.size)return"continue";var a=t.getGroup(r);if(0===a.length)return"continue";var s=Vn+".g"+r+'[id="'+o+'"]',l="";i.forEach((function(e){e.length>0&&(l+=e+",")})),n+=a+s+'{content:"'+l+'"}'+Kn},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Wo(e)},e.prototype.rehydrate=function(){!this.server&&Xn&&Jo(this)},e.prototype.reconstructWithOptions=function(t,r){void 0===r&&(r=!0);var n=new e(Br(Br({},this.options),t),this.gs,r&&this.names||void 0);return!this.server&&Xn&&t.target!==this.options.target&&Yo(this.options.target)!==Yo(t.target)&&Jo(n),n},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new ti(r):t?new Qo(r):new ei(r)}(this.options),new zo(e)));var e},e.prototype.hasNameForId=function(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n},e.prototype.registerName=function(e,t){Wo(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Wo(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Wo(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ii=/&/g,ai=47,si=42;function li(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,o=!1,i=0;i<t;i++){var a=e.charCodeAt(i);if(0!==n||o||a!==ai||e.charCodeAt(i+1)!==si)if(o)a===si&&e.charCodeAt(i+1)===ai&&(o=!1,i++);else if(34!==a&&39!==a||0!==i&&92===e.charCodeAt(i-1)){if(0===n)if(123===a)r++;else if(125===a&&--r<0)return!0}else 0===n?n=a:n===a&&(n=0);else o=!0,i++}return 0!==r||0!==n}function ui(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=ui(e.children,t)),e}))}function ci(e){var t,r,n,o=void 0===e?to:e,i=o.options,a=void 0===i?to:i,s=o.plugins,l=void 0===s?eo:s,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=l.slice();c.push((function(e){e.type===Xr&&e.value.includes("&")&&(n||(n=new RegExp("\\".concat(r,"\\b"),"g")),e.props[0]=e.props[0].replace(ii,r).replace(n,u))})),a.prefix&&c.push(Wn),c.push($n);var d,p=[],f=function(e){var t=dn(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)}))),h=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=void 0;var l=function(e){if(!li(e))return e;for(var t=e.length,r="",n=0,o=0,i=0,a=!1,s=0;s<t;s++){var l=e.charCodeAt(s);if(0!==i||a||l!==ai||e.charCodeAt(s+1)!==si)if(a)l===si&&e.charCodeAt(s+1)===ai&&(a=!1,s++);else if(34!==l&&39!==l||0!==s&&92===e.charCodeAt(s-1)){if(0===i)if(123===l)o++;else if(125===l){if(--o<0){for(var u=s+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,s=u-1,n=u;continue}0===o&&(r+=e.substring(n,s+1),n=s+1)}else 59===l&&0===o&&(r+=e.substring(n,s+1),n=s+1)}else 0===i?i=l:i===l&&(i=0);else a=!0,s++}if(n<t){var d=e.substring(n);li(d)||(r+=d)}return r}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,r=[],n=0,o=0,i=0,a=0;o<t;){var s=e.charCodeAt(o);if(34!==s&&39!==s||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(s===ai&&o+1<t&&e.charCodeAt(o+1)===si){for(o+=2;o+1<t&&(e.charCodeAt(o)!==si||e.charCodeAt(o+1)!==ai);)o++;o+=2}else if(40===s&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))a=1,o++;else if(a>0)41===s?a--:40===s&&a++,o++;else if(s===si&&o+1<t&&e.charCodeAt(o+1)===ai)o>n&&r.push(e.substring(n,o)),n=o+=2;else if(s===ai&&o+1<t&&e.charCodeAt(o+1)===ai){for(o>n&&r.push(e.substring(n,o));o<t&&10!==e.charCodeAt(o);)o++;n=o}else o++;else o++;else 0===i?i=s:i===s&&(i=0),o++}return 0===n?e:(n<t&&r.push(e.substring(n)),r.join(""))}(e)),u=qn(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);return a.namespace&&(u=ui(u,a.namespace)),p=[],Hn(u,f),p};return h.hash=l.length?l.reduce((function(e,t){return t.name||_o(15),po(e,t.name)}),5381).toString():"",h}var di=new oi,pi=ci(),fi={shouldForwardProp:void 0,styleSheet:di,stylis:pi},hi=Jn?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(fi)}}:S.createContext(fi);hi.Consumer;var mi=Jn?{Provider:function(e){return e.children}}:S.createContext(void 0);function gi(){return Jn?fi:S.useContext(hi)}function bi(e){if(Jn||!S.useMemo)return e.children;var t=gi().styleSheet,r=S.useMemo((function(){var r=t;return e.sheet?r=e.sheet:e.target&&(r=r.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(r=r.reconstructWithOptions({useCSSOMInjection:!1})),r}),[e.disableCSSOMInjection,e.sheet,e.target,t]),n=S.useMemo((function(){return ci({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})}),[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=S.useMemo((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:r,stylis:n}}),[e.shouldForwardProp,r,n]);return S.createElement(hi.Provider,{value:o},S.createElement(mi.Provider,{value:n},e.children))}var vi=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=pi);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,jo(this,(function(){throw _o(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=pi),this.name+e.hash},e}();function yi(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Bn||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var xi=function(e){return e>="A"&&e<="Z"};function Si(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;xi(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var wi=function(e){return null==e||!1===e||""===e},Ci=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!wi(n)&&(Array.isArray(n)&&n.isCss||Do(n)?t.push("".concat(Si(r),":"),n,";"):qo(n)?t.push.apply(t,Vr(Vr(["".concat(r," {")],Ci(n),!1),["}"],!1)):t.push("".concat(Si(r),": ").concat(yi(r,n),";")))}return t};function Ei(e,t,r,n,o){if(void 0===o&&(o=[]),"string"==typeof e)return e&&o.push(e),o;if(wi(e))return o;if(To(e))return o.push(".".concat(e.styledComponentId)),o;var i;if(Do(e))return!Do(i=e)||i.prototype&&i.prototype.isReactComponent||!t?(o.push(e),o):Ei(e(t),t,r,n,o);if(e instanceof vi)return r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o;if(qo(e)){for(var a=Ci(e),s=0;s<a.length;s++)o.push(a[s]);return o}if(!Array.isArray(e))return o.push(e.toString()),o;for(s=0;s<e.length;s++)Ei(e[s],t,r,n,o);return o}function Ri(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Do(r)&&!To(r))return!1}return!0}var Pi=fo(Yn),Ai=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Ri(e),this.componentId=t,this.baseHash=po(Pi,t),this.baseStyle=r,oi.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Oo(n,this.staticRulesId);else{var o=Lo(Ei(this.rules,e,t,r)),i=uo(po(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=Oo(n,i),this.staticRulesId=i}else{for(var s=po(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Lo(Ei(c,e,t,r));s=po(po(s,String(u)),d),l+=d}}if(l){var p=uo(s>>>0);if(!t.hasNameForId(this.componentId,p)){var f=r(l,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}n=Oo(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(Wo(this.componentId)):""}},e}(),Ii=Jn?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:S.createContext(void 0);Ii.Consumer;var Mi={};function ki(e,t,r){var n=To(e),o=e,i=!mo(e),a=t.attrs,s=void 0===a?eo:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":ao(e);Mi[r]=(Mi[r]||0)+1;var n="".concat(r,"-").concat(ho(Yn+r+Mi[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return mo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(ao(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var b=new Ai(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=Jn?void 0:S.useContext(Ii),c=gi(),d=e.shouldForwardProp||c.shouldForwardProp,p=ro(t,u,i)||(Jn?void 0:to),f=function(e,t,r){for(var n,o=Br(Br({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Do(n=e[i])?n(o):n;for(var s in a)"className"===s?o.className=Oo(o.className,a[s]):"style"===s?o.style=Br(Br({},o.style),a[s]):o[s]=a[s]}return"className"in t&&"string"==typeof t.className&&(o.className=Oo(o.className,t.className)),o}(n,t,p),h=f.as||l,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var b=function(e,t){var r=gi();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=b.className,y=b.css,x=Oo(a,s);v&&(x+=" "+v),f.className&&(x+=" "+f.className),m[mo(h)&&!no.has(h)?"class":"className"]=x,r&&(m.ref=r);var C=w(h,m);return Jn&&y?S.createElement(S.Fragment,null,S.createElement("style",{precedence:"styled-components",href:"sc-".concat(s,"-").concat(v),children:y}),C):C}(y,e,t)}v.displayName=d;var y=S.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?Oo(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)No(e,o[n],!0);return e}({},o.defaultProps,e):e}}),jo(y,(function(){return".".concat(y.styledComponentId)})),i&&ko(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Di(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Ti=function(e){return Object.assign(e,{isCss:!0})};function Oi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Do(e)||qo(e))return Ti(Ei(Di(eo,Vr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ei(n):Ti(Ei(Di(n,t)))}function Li(e,t,r){if(void 0===r&&(r=to),!t)throw _o(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Oi.apply(void 0,Vr([n],o,!1)))};return n.attrs=function(n){return Li(e,t,Br(Br({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Li(e,t,Br(Br({},r),n))},n}var qi=function(e){return Li(ki,e)},Ni=qi;no.forEach((function(e){Ni[e]=qi(e)}));var ji=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ri(e),oi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Lo(Ei(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&oi.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?r.hasNameForId(o,o)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}();function _i(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Lo(Oi.apply(void 0,Vr([e],t,!1))),o=ho(n);return new vi(o,n)}var zi={exports:{}};function Fi(){}function Hi(){}Hi.resetWarningCache=Fi;zi.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Hi,resetWarningCache:Fi};return r.PropTypes=r,r}();var $i=Gt(zi.exports);function Wi(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}Wi.propTypes={children:$i.node,injectFirst:$i.bool};const Bi=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Oi.apply(void 0,Vr([e],t,!1)),o="sc-global-".concat(ho(JSON.stringify(n))),i=new ji(n,o),a=new WeakMap,s=function(e){var t=gi(),r=Jn?void 0:S.useContext(Ii),n=a.get(t.styleSheet);if(void 0===n&&(n=t.styleSheet.allocateGSInstance(o),a.set(t.styleSheet,n)),("undefined"==typeof window||!t.styleSheet.server)&&l(n,e,t.styleSheet,r,t.stylis),Jn||S.useLayoutEffect((function(){return t.styleSheet.server||l(n,e,t.styleSheet,r,t.stylis),function(){var e;i.removeStyles(n,t.styleSheet),e=t.styleSheet.options.target,"undefined"!=typeof document&&(null!=e?e:document).querySelectorAll('style[data-styled-global="'.concat(o,'"]')).forEach((function(e){return e.remove()}))}}),[n,e,t.styleSheet,r,t.stylis]),Jn){var s=o+n,u="undefined"==typeof window?t.styleSheet.getTag().getGroup(Wo(s)):"";if(u)return S.createElement("style",{key:"".concat(o,"-").concat(n),"data-styled-global":o,children:u})}return null};function l(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Qn,r,o);else{var a=Br(Br({},t),{theme:ro(t,n,s.defaultProps)});i.renderStyles(e,a,r,o)}}return S.memo(s)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
10
10
  /**
@@ -118,4 +118,4 @@ function Vi(e,t){let r;return r=t?Ni(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"),M=new RegExp(s+"(right)"+v,"gi"),k=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"),L=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),q=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"),W=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),B=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(k,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(M,"$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(W,X).replace(B,X).replace(L,"$1$2$3$8$5$6$7$4$9").replace(q,"$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)}(FA,FA.exports);var HA=Gt(FA.exports);function $A(e,t,r){switch(e.type){case Zr:case Jr:case Kr:return e.return=e.return||e.value;case Xr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Kr&&(e.children=e.value)}))}var n=Hn(Array.prototype.concat(e.children),$A);return cn(n)?e.return=e.value+"{"+n+"}":""}function WA(e,t,r,n){if(e.type===Qr||"@supports"===e.type||e.type===Xr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Xr)){var o=HA.transform($A(e));e.children=o?qn(o)[0].children:[],e.return=""}}Object.defineProperty(WA,"name",{value:"stylisRTLPlugin"});let BA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),VA=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}({}),UA=function(e){return e.A="ascending",e.D="descending",e}({}),GA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const YA=[0,0],KA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),XA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},JA=(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&&ie(e.localPaletteColors[t].color).blend(ie(s.color),s.t)},ZA=(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:KA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:XA(n,t,r)})))),n},QA=(e,t,r,n)=>{const o=ZA(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=JA(e,a,t);break}n=i}return r})(o,t);return a},eI=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!LP(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||!LP(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)},tI=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=eI(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||!LP(t))return 0;let a=r&&LP(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}},rI=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=tI(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 XA(o,r.limitPaletteColorIndex,n);const a=KA(r.limitRange,t);return QA(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}},nI=(PC().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)"),oI=4/3,iI="12px",aI="600",sI="Source Sans Pro, sans-serif",lI={height:"auto",fontSize:iI,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"}},uI={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:aI},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},cI=(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,dI=(e,t)=>e.representation.type===NR.Image&&"fitHeight"===e.representation.imageSize?cI(t,e.representation):e.align,pI=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",fI=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},hI=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,mI=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",gI=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",bI=24,vI=mc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),yI=mc(ip,{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?pI(e,n):void 0}))),xI=mc(ip,{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},[`& .${nE}`]:{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"},[`& .${nE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),SI=mc(ip,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),wI=mc(ip,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),CI=mc(md,{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}))),EI=25e4,RI=(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(uE.PixelsMax,Math.max(uE.PixelsMin,f)),i-=n[a]};switch(s){case cE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?uE.PixelsDefault:+e)(l),h();break;case cE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?uE.PercentageDefault:+e)(u)/100*t,h();break;case cE.FitToContent:e.representation?.type===NR.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case cE.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(uE.AutoMinTable,e)}))}return n},PI=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},AI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},II=e=>e.ctrlKey||e.metaKey,MI=e=>e.shiftKey&&II(e),kI=e=>[sE.Left,sE.Right,sE.Up,sE.Down].includes(e),DI=e=>e.shiftKey&&kI(e.key),TI=e=>(e=>kI(e)||[sE.Home,sE.End,sE.PageUp,sE.PageDown].includes(e))(e.key)&&!MI(e),OI=(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),PI(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})},LI=(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&&DI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&DI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===sE.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 PI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},qI=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}},NI=(e,t)=>{switch(t.type){case VA.Select:return OI(e,t.payload);case VA.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 VA.SelectMouseUp:return((e,t)=>qI(e.isSelectMultiValues||e.firstCell!==t.cell?e:OI(e,t)))(e,t.payload);case VA.SelectMultiAdd:return LI(e,t.payload);case VA.SelectMultiEnd:return qI(e);case VA.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case VA.Clear:return e.rows.size?{...e,rows:new Map}:e;case VA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},jI=4/3,_I=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function zI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const FI=(e,t)=>e?{borderBottomColor:IC.DARK_MODE_BORDER,borderRightColor:IC.DARK_MODE_BORDER,borderLeftColor:IC.DARK_MODE_BORDER,borderTopColor:IC.DARK_MODE_BORDER}:{borderLeftColor:IC.BORDER_MEDIUM,borderRightColor:IC.BORDER_MEDIUM,borderTopColor:IC.BORDER_HEAVY,borderBottomColor:t?IC.BORDER_HEAVY:IC.BORDER_LIGHT},HI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*jI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},$I=e=>e.components?.find((e=>"theme"===e.key)),WI=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:_I(r?.fontColor)?zI(IC.TEXT,t,r?.fontColor):i||IC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...FI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function BI(e,t,r){const n=$I(e)?.header,o=WI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=DC(o.background??IC.WHITE,dE),o.activeBackground=DC(o.background??IC.WHITE,pE),o}const VI=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in uI)(e)&&Object.assign(t,uI[e]))),t};function UI(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&&OC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?VI(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=MC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const GI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},YI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=GI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},KI=(e,t,r,n=IC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=YI(e,t,r);return _C(i,o,a,n)??n},XI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return iI}},JI=e=>e?.some((e=>"italic"===e))?"italic":"normal",ZI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?aI:"normal",QI=e=>!1===e?1:3,eM=e=>parseInt(e??lI.fontSize,10)*oI,tM=e=>e?.some((e=>"underline"===e))?"underline":"none",rM=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=$I(t)??{},p=zA(t,o)?IC.WHITE:IC.TRANSPARENT,f=KI(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??sI,fontSize:XI(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:JI(i?.fontStyle),fontWeight:ZI(i?.fontStyle,aI),textDecoration:tM(i?.fontStyle),color:GI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??IC.TEXT,background:f},headerMenuHoverBackground:DC(f,dE),headerMenuActiveBackground:DC(f,pE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??sI,fontSize:XI(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:JI(a?.fontStyle),fontWeight:ZI(a?.fontStyle,"normal"),textDecoration:tM(a?.fontStyle),color:GI(n,a?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??IC.TEXT,background:YI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??IC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??sI,fontSize:XI(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:JI(s?.fontStyle),fontWeight:ZI(s?.fontStyle,"normal"),textDecoration:tM(s?.fontStyle),color:GI(n,s?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??IC.TEXT,background:YI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??IC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??sI,fontSize:XI(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:JI(l?.fontStyle),fontWeight:ZI(l?.fontStyle,aI),textDecoration:tM(l?.fontStyle),color:GI(n,l?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??IC.TEXT,background:KI(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:JI(u?.fontStyle),fontWeight:ZI(u?.fontStyle,"normal"),textDecoration:tM(u?.fontStyle),color:GI(n,u?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??IC.TEXT,background:GI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??IC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??QI(t.multiline?.wrapTextInCells),headerLineClamp:QI(t.multiline?.wrapTextInHeaders),border:GI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?IC.DARK_MODE_BORDER:IC.BORDER_MEDIUM),divider:GI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??IC.BORDER_HEAVY,hoverColors:{color:GI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:GI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:GI(n,c?.zebraStripes?.color?.odd),background:GI(n,c?.zebraStripes?.background?.odd)},even:{color:GI(n,c?.zebraStripes?.color?.even),background:GI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===GI(n,u?.background),overrideNullValueColor:void 0===GI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:kC(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(eM(e.header.fontSize)+8,32),r=eM(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(eM(e.dimension.values.fontSize),eM(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},nM=(e,t,r,n)=>{const o=A((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=$I(e)?.content,i=WI("content",t,o);i.background=t.background.color;const a=HI(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=_I(l)||!!c,p=_I(s)||!!u,f=d||p;let h;h=_I(s)?zI(IC.HOVER,t,s):u||(d?"":IC.HOVER);const m=f?zI(MC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=BI(e,t,!o),s=function(e,t,r){const n=$I(e)?.content,o=WI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=BI(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},oM=new Map;const iM=k({}),aM=function(e){const t=k([()=>{},new Set]);return oM.set(e,t),({children:r,value:n})=>{const o=M(n),i=M(new Set);T((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=q((()=>o.current),[o]),s=A((()=>[a,i.current]),[a]);return or.jsx(e.Provider,{value:n,children:or.jsx(t.Provider,{value:s,children:r})})}}(iM),sM={rows:[],columns:[],totalsPosition:{}},lM=({children:e,tableData:t=sM,selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,setPage:p,pageInfo:f,initialDataPages:h,rect:m,viewService:g,downloadService:b,env:v,direction:y,eventEmitter:x})=>{const[S,w]=((e,t)=>{const[r,n]=D(NI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(t.rows,r),C=nM(n,a,t,l),E=((e,t,r,n,o)=>A((()=>rM(0,t,r,n,o)),[t,r,e,n,o]))(v,n,C,a,g),{xScrollbarWidth:R,yScrollbarWidth:P,setXScrollbarWidth:M,setYScrollbarWidth:k}=(()=>{const[e,t]=I(0),[r,n]=I(0);return{xScrollbarWidth:e,yScrollbarWidth:r,setYScrollbarWidth:n,setXScrollbarWidth:t}})(),{columnWidths:T,setColumnWidths:O,showRightBorder:L,isAdjustingWidth:q,setIsAdjustingWidth:j}=(({columns:e,totalsPosition:t,tableWidth:r,styleService:n,eventEmitter:o,yScrollbarWidth:i,accessibleHeader:a=!0})=>{const s=t.atBottom||t.atTop,l=VC({...n.header,fontWeight:aI},{maxNbrLinesOfText:3}).measureText,u=VC({...n.totalRow,fontWeight:aI},{maxNbrLinesOfText:3}).measureText,{estimateWidth:c}=VC(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:d}=VC(n.measure.values,{maxNbrLinesOfText:3}),p=A((()=>(e,t,r,n,o,i,p)=>{let f=0;if(a){const t=4;let r=25;r+=t+24,n&&(r+=20+t),o&&(r+=20),f=l(e)+r}else{let t=9;t+=16,p&&(t+=bI),t+=bI,t+=bI,f=l(e)+t}const h=i?c:d;return Math.max(f,s?u(t)+24+1:0,h(r))}),[c,d,l,u,s,a]),[f,h]=I(!1),[m,g]=I((()=>RI(e,r,p)));N((()=>{const t=RI(e,r-i,p);g(t),h(!1)}),[e,r,i,p]),N((()=>{f||o.emit("done-adjusting-column-width")}),[f,o]);const b=A((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,i,r)),[m,i,r]);return{columnWidths:m,setColumnWidths:g,showRightBorder:b,isAdjustingWidth:f,setIsAdjustingWidth:h}})({columns:t.columns,totalsPosition:t.totalsPosition,tableWidth:m.width,styleService:E,eventEmitter:x,accessibleHeader:n.accessibleHeader,yScrollbarWidth:P}),_=A((()=>({selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,rect:m,viewService:g,styleService:E,direction:y,downloadService:b})),[r,n,o,i,a,s.active,l,u,c,d,m,g,E,y,b]);return or.jsx(aM,{value:{selectionState:S,selectionDispatch:w,columnWidths:T,setColumnWidths:O,baseProps:_,tableData:t,setPage:p,pageInfo:f,initialDataPages:h,showRightBorder:L,env:v,isAdjustingWidth:q,setIsAdjustingWidth:j,setYScrollbarWidth:k,setXScrollbarWidth:M,xScrollbarWidth:R,yScrollbarWidth:P,eventEmitter:x},children:e})};function uM(e,t){const r=function(e){return oM.get(e)}(e),[n,o]=L(r),[,i]=D((e=>e+1),0),a=M(t),s=M(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=A((()=>t(l)),[l,t]);return T((()=>{a.current=t,s.current=u}),[l,u,t]),T((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function cM(e){const t=PC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Tu({...t,direction:e})}const dM={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},pM={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},fM=mc("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":{...dM},"&::-moz-range-track":{...dM},"&::-ms-track":{...dM},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...pM},"&::-moz-range-thumb":{...pM},"&::-ms-thumb":{...pM},"&: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"}}))),hM=({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=ZC({translator:c.translator}),f=M({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}};XC((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,uE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:cE.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=>{qC(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=>{qC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===sE.Left||e.key===sE.Right){qC(e);const t=5,r=e.key===sE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===sE.Space||e.key===sE.Enter?(qC(e),s(e),l?.(!1),x()):e.key===sE.Esc&&(qC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return or.jsx(fM,{style:b,hoverColor:o,isLastColumn:r,className:lE,"data-testid":lE,onMouseDown:e=>{qC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:cE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(qC(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":uE.PixelsMin,"aria-valuemax":uE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},mM=j(((e,t)=>or.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:or.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),gM=({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},bM=mc(ip,{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"}))),vM=mc(mM,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),yM=mc(Hf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),xM=mc(jp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),SM=mc(Uf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),wM=mc(Uf,{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"}))),CM=mc("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"}))),EM=mc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),RM=mc(Sd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),PM=mc(hf,{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}))),AM=j(((e,t)=>or.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:or.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),IM=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?IM(t):t:e.parentElement?.children?.[0]},MM=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?MM(t):t},kM=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===sE.Down||t===sE.Up){const r=e=>t===sE.Down?IM(e):MM(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},DM=(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 TM={};const OM=({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]=I(!1),f=S.useRef(null),h=q((e=>{e.stopPropagation(),p(!1)}),[p]);return or.jsxs(or.Fragment,{children:[or.jsxs(wM,{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),TM={}),a?.length&&(p(!0),TM[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:kM,children:[l?or.jsx(CM,{direction:u,isPagination:c}):null,or.jsxs(EM,{children:[or.jsx(PM,{direction:u,isPagination:c,children:or.jsx(o,{})}),or.jsx(RM,{variant:"body2",children:n})]}),a?.length?or.jsx(AM,{}):null]},t),a?.length?or.jsx(jM,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:DM(a,TM),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},LM=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&or.jsx(SM,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>or.jsx(OM,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),qM=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[LM({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?or.jsx(xM,{"data-testid":"group-divider",variant:"middle"}):void 0])),NM={appear:0,enter:0,exit:0},jM=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?or.jsx(yM,{className:oE,open:t,anchorEl:e,onClose:r,transitionDuration:NM,MenuListProps:{id:iE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:qM({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,_M=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>q((()=>{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]),zM=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),FM=(e,t)=>e.some((e=>t[e]>0)),HM={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},$M=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=I(null),[a,s]=I(HM);return XC((()=>{e||(s(HM),i(null))}),[e]),T((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=zM(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:FM(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:FM(["qSelected"],e),canSelectPossible:FM(["qOption"],e),canSelectAlternative:FM(["qAlternative"],e),canSelectExcluded:FM(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},WM=j(((e,t)=>or.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:or.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"})}))),BM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})}))),VM=j(((e,t)=>or.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:or.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"})}))),UM=j(((e,t)=>or.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:or.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"})}))),GM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})}))),YM=j(((e,t)=>or.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:or.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"})}))),KM=j(((e,t)=>or.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:or.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"})}))),XM=j(((e,t)=>or.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:or.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"})}))),JM=j(((e,t)=>or.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:or.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"})}))),ZM=j(((e,t)=>or.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:or.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"})}))),QM=j(((e,t)=>or.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:or.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"})}))),ek=j(((e,t)=>or.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:or.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"})}))),tk=j(((e,t)=>or.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:or.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"})}))),rk=j(((e,t)=>or.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:or.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})})));let nk=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const ok="/qListObjectDef",ik=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[nk.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:WM,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:UM,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:XM,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:GM,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[nk.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:JM,enabled:!0}]}]),!e.isLocked&&r[nk.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:rk,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(ok))},icon:ZM,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(ok))},icon:tk,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(ok))},icon:QM,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(ok))},icon:ek,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(ok))},icon:BM,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:KM,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:YM,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[nk.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:VM,enabled:!0}]}]),f},ak=({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=tE})=>{const v=M(null),y=ZC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=$M({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=gM({model:f,headerData:n}),A=_M({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=q((e=>{e.stopPropagation(),t(!1)}),[t]),k=q((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?or.jsxs(bM,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:nE,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?or.jsx(vM,{height:b,className:rE,"data-testid":rE,isInteractionsActive:i.active??!1,children:or.jsx(mM,{})}):null,or.jsx(jM,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:ik({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},sk=e=>e.isDark?{background:e.color,borderColor:IC.DARK_MODE_BORDER,color:IC.DARK_MODE_TEXT,disabledColor:IC.DARK_MODE_DISABLED,iconColor:IC.DARK_MODE_TEXT}:{background:e.color,borderColor:IC.BORDER_MEDIUM,color:IC.TEXT,disabledColor:IC.DISABLED},lk=mc(ip,{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}`}))),uk=mc(Ph,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),ck=mc(mp,{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)}))),dk=mc(Sd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),pk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A((()=>sk(n.background)),[n]);if(!r.active)return null;const a=o?or.jsx(lk,{footerStyle:i,children:e}):null;return t?W.createPortal(e,t):a},fk=k({}),hk=()=>L(fk),mk=({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=A((()=>sk(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=ZC({translator:d}),S=A((()=>({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 or.jsx(fk.Provider,{value:S,children:e})};let gk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),bk=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 vk=j(((e,t)=>or.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:or.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),yk=j(((e,t)=>or.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:or.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),xk=j(((e,t)=>or.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:or.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),Sk={FirstPage:yk,PreviousPage:vk,NextPage:AM,LastPage:xk,FirstPageRTL:xk,PreviousPageRTL:AM,NextPageRTL:vk,LastPageRTL:yk},wk=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=hk(),u=r.concat("rtl"===n?"RTL":""),c=Sk[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}},Ck=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=hk(),o=0===e.page,{IconComponent:i,styledProps:a}=wk({type:gk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||bk.FirstPage)?null:or.jsx(ck,{...a,disabled:!r.active,children:or.jsx(i,{height:tE})})},Ek=(e,t,r=!1)=>{r&&e.key===sE.Tab&&!e.shiftKey&&(qC(e),LC(e.target,t,!1))},Rk=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=hk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=wk({type:gk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{Ek(e,t,n)}:void 0;return o<=(a?.lastPage||bk.LastPage)?null:or.jsx(ck,{...u,onKeyDown:c,disabled:!i.active,children:or.jsx(l,{height:tE})})},Pk=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=hk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=wk({type:gk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>bk.FirstPage&&o>bk.LastPage)&&t.enabled?e=>{Ek(e,t,n)}:void 0;return or.jsx(ck,{...l,onKeyDown:u,disabled:!i.active,children:or.jsx(s,{height:tE})})},Ak=()=>{const{pageInfo:e,interactions:t}=hk(),r=0===e.page,{IconComponent:n,styledProps:o}=wk({type:gk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return or.jsx(ck,{...o,disabled:!t.active,children:or.jsx(n,{height:tE})})},Ik=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=hk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||bk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return or.jsx(dk,{variant:"caption",dir:"ltr",children:s})},Mk=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=hk(),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 or.jsxs(or.Fragment,{children:[or.jsxs(dk,{variant:"caption",id:p,children:[c,":"]}),or.jsx(uk,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},kk=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=hk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||bk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=or.jsx(or.Fragment,{children:e.rowsPerPageOptions.map((e=>or.jsx("option",{value:e,children:e},e)))});return or.jsx(Mk,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},Dk=1e3,Tk="…",Ok=({totalPages:e,page:t})=>{const r=Math.min(e,Dk),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-Dk):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return or.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(or.jsx("option",{value:Tk,disabled:!0,children:Tk},"startMoreOptions")),o<e-1&&a.push(or.jsx("option",{value:Tk,disabled:!0,children:Tk},"endMoreOptions")),or.jsx(or.Fragment,{children:a})},Lk=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=hk(),{page:i}=e;if(t<=(o?.selectPage||bk.SelectPage))return null;const a=or.jsx(Ok,{totalPages:r,page:i});return or.jsx(Mk,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var qk=_((e=>or.jsxs(mk,{...e,children:[or.jsx(kk,{}),or.jsx(Lk,{}),or.jsx(Ik,{}),or.jsx(Ck,{}),or.jsx(Ak,{}),or.jsx(Pk,{}),or.jsx(Rk,{})]})));const Nk=e=>or.jsx(pk,{...e,children:or.jsx(qk,{...e})});var jk=Symbol.for("preact-signals");function _k(){if(Wk>1)Wk--;else{for(var e,t=!1;void 0!==$k;){var r=$k;for($k=void 0,Bk++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Kk(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(Bk=0,Wk--,t)throw e}}function zk(e){if(Wk>0)return e();Wk++;try{return e()}finally{_k()}}var Fk=void 0;function Hk(e){var t=Fk;Fk=void 0;try{return e()}finally{Fk=t}}var $k=void 0,Wk=0,Bk=0,Vk=0;function Uk(e){if(void 0!==Fk){var t=e.n;if(void 0===t||t.t!==Fk)return t={i:0,S:e,p:Fk.s,n:void 0,t:Fk,e:void 0,x:void 0,r:t},void 0!==Fk.s&&(Fk.s.n=t),Fk.s=t,e.n=t,32&Fk.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=Fk.s,t.n=void 0,Fk.s.n=t,Fk.s=t),t}}function Gk(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 Yk(e,t){return new Gk(e,t)}function Kk(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 Xk(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 Jk(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 Zk(e,t){Gk.call(this,void 0),this.x=e,this.s=void 0,this.g=Vk-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 Qk(e,t){return new Zk(e,t)}function eD(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Wk++;var r=Fk;Fk=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,tD(e),t}finally{Fk=r,_k()}}}function tD(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,eD(e)}function rD(e){if(Fk!==this)throw new Error("Out-of-order effect");Jk(this),Fk=e,this.f&=-2,8&this.f&&tD(this),_k()}function nD(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 oD(e,t){var r=new nD(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}Gk.prototype.brand=jk,Gk.prototype.h=function(){return!0},Gk.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:Hk((function(){var e;null==(e=t.W)||e.call(t)})))},Gk.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&&Hk((function(){var e;null==(e=t.Z)||e.call(t)})))}},Gk.prototype.subscribe=function(e){var t=this;return oD((function(){var r=t.value,n=Fk;Fk=void 0;try{e(r)}finally{Fk=n}}),{name:"sub"})},Gk.prototype.valueOf=function(){return this.value},Gk.prototype.toString=function(){return this.value+""},Gk.prototype.toJSON=function(){return this.value},Gk.prototype.peek=function(){var e=Fk;Fk=void 0;try{return this.value}finally{Fk=e}},Object.defineProperty(Gk.prototype,"value",{get:function(){var e=Uk(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Bk>100)throw new Error("Cycle detected");this.v=e,this.i++,Vk++,Wk++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{_k()}}}}),Zk.prototype=new Gk,Zk.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===Vk)return!0;if(this.g=Vk,this.f|=1,this.i>0&&!Kk(this))return this.f&=-2,!0;var e=Fk;try{Xk(this),Fk=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 Fk=e,Jk(this),this.f&=-2,!0},Zk.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)}Gk.prototype.S.call(this,e)},Zk.prototype.U=function(e){if(void 0!==this.t&&(Gk.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)}},Zk.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(Zk.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Uk(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),nD.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()}},nD.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,eD(this),Xk(this),Wk++;var e=Fk;return Fk=this,rD.bind(this,e)},nD.prototype.N=function(){2&this.f||(this.f|=2,this.o=$k,$k=this)},nD.prototype.d=function(){this.f|=8,1&this.f||tD(this)},nD.prototype.dispose=function(){this.d()};var iD,aD,sD,lD,uD,cD,dD,pD,fD,hD,mD,gD,bD,vD,yD,xD,SD,wD,CD,ED,RD=Object.create,PD=Object.defineProperty,AD=Object.defineProperties,ID=Object.getOwnPropertyDescriptor,MD=Object.getOwnPropertyDescriptors,kD=Object.getOwnPropertySymbols,DD=Object.prototype.hasOwnProperty,TD=Object.prototype.propertyIsEnumerable,OD=e=>{throw TypeError(e)},LD=(e,t,r)=>t in e?PD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qD=(e,t)=>PD(e,"name",{value:t,configurable:!0}),ND=["class","method","getter","setter","accessor","field","value","get","set"],jD=e=>void 0!==e&&"function"!=typeof e?OD("Function expected"):e,_D=(e,t,r,n,o)=>({kind:ND[e],name:t,metadata:n,addInitializer:e=>r._?OD("Already initialized"):o.push(jD(e||null))}),zD=(e,t)=>{return LD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},FD=(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},HD=(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=ND[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)&&ID(d<4?o:{get[r](){return BD(this,i)},set[r](e){return UD(this,i,e)}},r));d?f&&d<4&&qD(i,(d>2?"set ":d>1?"get ":"")+r):qD(o,r);for(var y=n.length-1;y>=0;y--)u=_D(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>WD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?BD:GD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>UD(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?jD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?OD("Object expected"):(jD(a=s.get)&&(v.get=a),jD(a=s.set)&&(v.set=a),jD(a=s.init)&&g.unshift(a));return d||zD(e,o),v&&PD(o,r,v),f?4^d?i:v:o},$D=(e,t,r)=>t.has(e)||OD("Cannot "+r),WD=(e,t)=>Object(t)!==t?OD('Cannot use the "in" operator on this value'):e.has(t),BD=(e,t,r)=>($D(e,t,"read from private field"),r?r.call(e):t.get(e)),VD=(e,t,r)=>t.has(e)?OD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),UD=(e,t,r,n)=>($D(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),GD=(e,t,r)=>($D(e,t,"access private method"),r);function YD(e,t){if(t){let r;return Qk((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return Qk(e)}function KD(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)=>!KD(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=>!KD(e[r],t[r])));return!o}return!1}function XD({get:e},t){return{init:e=>Yk(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function JD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=YD(e.bind(this)),r.set(this,t)),t.value}}function ZD(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>AD(e,MD(t)))(((e,t)=>{for(var r in t||(t={}))DD.call(t,r)&&LD(e,r,t[r]);if(kD)for(var r of kD(t))TD.call(t,r)&&LD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function QD(...e){const t=e.map((e=>oD(e)));return()=>t.forEach((e=>e()))}cD=[XD],uD=[XD],lD=[XD],sD=[ZD()],aD=[ZD()],iD=[ZD()];var eT,tT=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,FD(dD,5,this),VD(this,gD),VD(this,pD,FD(dD,8,this)),FD(dD,11,this),VD(this,bD,FD(dD,12,this)),FD(dD,15,this),VD(this,SD,FD(dD,16,this)),FD(dD,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return BD(this,gD,CD)}get initial(){return BD(this,gD,hD)}get previous(){return BD(this,gD,yD)}set current(e){const t=Hk((()=>BD(this,gD,CD)));e&&t&&this.equals(t,e)||zk((()=>{BD(this,gD,hD)||UD(this,gD,e,mD),UD(this,gD,t,xD),UD(this,gD,e,ED)}))}reset(e=this.defaultValue){zk((()=>{UD(this,gD,void 0,xD),UD(this,gD,e,mD),UD(this,gD,e,ED)}))}};function rT(e){return Hk((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}dD=[,,,RD(null)],pD=new WeakMap,gD=new WeakSet,bD=new WeakMap,SD=new WeakMap,fD=HD(dD,20,"#initial",cD,gD,pD),hD=fD.get,mD=fD.set,vD=HD(dD,20,"#previous",uD,gD,bD),yD=vD.get,xD=vD.set,wD=HD(dD,20,"#current",lD,gD,SD),CD=wD.get,ED=wD.set,HD(dD,2,"current",sD,tT),HD(dD,2,"initial",aD,tT),HD(dD,2,"previous",iD,tT),zD(dD,tT);eT=new WeakMap;var nT,oT,iT,aT,sT,lT=Object.create,uT=Object.defineProperty,cT=Object.getOwnPropertyDescriptor,dT=Object.getOwnPropertySymbols,pT=Object.prototype.hasOwnProperty,fT=Object.prototype.propertyIsEnumerable,hT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),mT=e=>{throw TypeError(e)},gT=Math.pow,bT=(e,t,r)=>t in e?uT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vT=["class","method","getter","setter","accessor","field","value","get","set"],yT=e=>void 0!==e&&"function"!=typeof e?mT("Function expected"):e,xT=(e,t,r,n,o)=>({kind:vT[e],name:t,metadata:n,addInitializer:e=>r._?mT("Already initialized"):o.push(yT(e||null))}),ST=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=vT[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,cT(o,r)),h=n.length-1;h>=0;h--)(l=xT(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,yT(a)&&(f[d]=a);return f&&uT(o,r,f),o},wT=(e,t,r)=>t.has(e)||mT("Cannot "+r),CT=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)}},ET=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={}))pT.call(t,r)&&bT(e,r,t[r]);if(dT)for(var r of dT(t))fT.call(t,r)&&bT(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 CT((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 CT.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 RT,PT=class extends(iT=tT,oT=[JD],nT=[JD],iT){constructor(e){var t,r,n;super(CT.from(e),((e,t)=>CT.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)})(sT,5,this),t=this,n=0,(r=aT).has(t)?mT("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 CT.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=CT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(wT(a=this,s=aT,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);zk((()=>{((e,t,r)=>{wT(e,t,"write to private field"),t.set(e,r)})(this,aT,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(CT.from(e)),this.velocity={x:0,y:0}}};function AT({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(gT(n,2)+gT(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}sT=(e=>{var t;return[,,,lT(null!=(t=null==e?void 0:e[hT("metadata")])?t:null)]})(iT),aT=new WeakMap,ST(sT,2,"delta",oT,PT),ST(sT,2,"direction",nT,PT),RT=sT,bT(PT,hT("metadata"),RT[3]);var IT,MT,kT,DT,TT=(e=>(e.Horizontal="x",e.Vertical="y",e))(TT||{}),OT=Object.values(TT),LT=Object.create,qT=Object.defineProperty,NT=Object.defineProperties,jT=Object.getOwnPropertyDescriptor,_T=Object.getOwnPropertyDescriptors,zT=Object.getOwnPropertySymbols,FT=Object.prototype.hasOwnProperty,HT=Object.prototype.propertyIsEnumerable,$T=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),WT=e=>{throw TypeError(e)},BT=(e,t,r)=>t in e?qT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VT=(e,t)=>{for(var r in t||(t={}))FT.call(t,r)&&BT(e,r,t[r]);if(zT)for(var r of zT(t))HT.call(t,r)&&BT(e,r,t[r]);return e},UT=(e,t)=>NT(e,_T(t)),GT=(e,t)=>qT(e,"name",{value:t,configurable:!0}),YT=(e,t)=>{var r={};for(var n in e)FT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&zT)for(var n of zT(e))t.indexOf(n)<0&&HT.call(e,n)&&(r[n]=e[n]);return r},KT=e=>{var t;return[,,,LT(null!=(t=null==e?void 0:e[$T("metadata")])?t:null)]},XT=["class","method","getter","setter","accessor","field","value","get","set"],JT=e=>void 0!==e&&"function"!=typeof e?WT("Function expected"):e,ZT=(e,t,r,n,o)=>({kind:XT[e],name:t,metadata:n,addInitializer:e=>r._?WT("Already initialized"):o.push(JT(e||null))}),QT=(e,t)=>BT(t,$T("metadata"),e[3]),eO=(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},tO=(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=XT[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)&&jT(d<4?o:{get[r](){return oO(this,i)},set[r](e){return aO(this,i,e)}},r));d?f&&d<4&&GT(i,(d>2?"set ":d>1?"get ":"")+r):GT(o,r);for(var y=n.length-1;y>=0;y--)u=ZT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>nO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?oO:sO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>aO(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?JT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?WT("Object expected"):(JT(a=s.get)&&(v.get=a),JT(a=s.set)&&(v.set=a),JT(a=s.init)&&g.unshift(a));return d||QT(e,o),v&&qT(o,r,v),f?4^d?i:v:o},rO=(e,t,r)=>t.has(e)||WT("Cannot "+r),nO=(e,t)=>Object(t)!==t?WT('Cannot use the "in" operator on this value'):e.has(t),oO=(e,t,r)=>(rO(e,t,"read from private field"),r?r.call(e):t.get(e)),iO=(e,t,r)=>t.has(e)?WT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),aO=(e,t,r,n)=>(rO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),sO=(e,t,r)=>(rO(e,t,"access private method"),r);function lO(e,t){return{plugin:e,options:t}}function uO(e){return t=>lO(e,t)}function cO(e){return"function"==typeof e?{plugin:e,options:void 0}:e}IT=[XD];var dO=class{constructor(e,t){this.manager=e,this.options=t,iO(this,kT,eO(MT,8,this,!1)),eO(MT,11,this),iO(this,DT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return Hk((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=oD(e.bind(this));return oO(this,DT).add(t),t}destroy(){oO(this,DT).forEach((e=>e()))}static configure(e){return lO(this,e)}};MT=KT(null),kT=new WeakMap,DT=new WeakMap,tO(MT,4,"disabled",IT,dO,kT),QT(MT,dO);var pO,fO=class extends dO{},hO=class{constructor(e){this.manager=e,this.instances=new Map,iO(this,pO,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(cO).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of oO(this,pO))if(!r.includes(e)){if(e.prototype instanceof fO)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);aO(this,pO,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 mO(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}pO=new WeakMap;var gO,bO,vO=[],yO=class extends dO{constructor(e){super(e),iO(this,gO),iO(this,bO),this.computeCollisions=this.computeCollisions.bind(this),aO(this,bO,Yk(vO)),this.destroy=QD((()=>{const e=this.computeCollisions(),t=Hk((()=>this.manager.dragOperation.position.current));if(e!==vO){const e=oO(this,gO);if(aO(this,gO,t),e&&t.x==e.x&&t.y==e.y)return}else aO(this,gO,void 0);oO(this,bO).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){Hk((()=>{e?oO(this,bO).value=this.computeCollisions():aO(this,gO,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return vO;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=Hk((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?vO:(s.sort(mO),s)}get collisions(){return oO(this,bO).value}};gO=new WeakMap,bO=new WeakMap;var xO=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)}},SO=class extends xO{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function wO(e,t=!0){let r=!1;return UT(VT({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var CO,EO,RO,PO,AO,IO,MO,kO,DO,TO=class extends fO{constructor(e){super(e);let t=[];this.destroy=QD((()=>{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=wO({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;Hk((()=>{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()})))}))}))}},OO=(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))(OO||{}),LO=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(LO||{});MO=[XD],IO=[JD],AO=[JD],PO=[JD],RO=[JD],EO=[JD],CO=[JD];var qO=class{constructor(){eO(kO,5,this),iO(this,DO,eO(kO,8,this,"idle")),eO(kO,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}};kO=KT(null),DO=new WeakMap,tO(kO,4,"value",MO,qO,DO),tO(kO,2,"current",IO,qO),tO(kO,2,"idle",AO,qO),tO(kO,2,"initializing",PO,qO),tO(kO,2,"initialized",RO,qO),tO(kO,2,"dragging",EO,qO),tO(kO,2,"dropped",CO,qO),QT(kO,qO);var NO,jO,_O,zO,FO,HO,$O,WO,BO,VO=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 Hk((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=wO({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return Hk((()=>{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;zk((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=wO({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 Hk((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=wO({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 Hk((()=>{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=Hk((()=>{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=oD((()=>{"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()}))}};zO=[XD],_O=[XD],jO=[XD],NO=[XD];var UO=class{constructor(e,t){iO(this,HO,eO(FO,8,this)),eO(FO,11,this),iO(this,$O,eO(FO,12,this)),eO(FO,15,this),iO(this,WO,eO(FO,16,this)),eO(FO,19,this),iO(this,BO,eO(FO,20,this)),eO(FO,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)}};FO=KT(null),HO=new WeakMap,$O=new WeakMap,WO=new WeakMap,BO=new WeakMap,tO(FO,4,"manager",zO,UO,HO),tO(FO,4,"id",_O,UO,$O),tO(FO,4,"data",jO,UO,WO),tO(FO,4,"disabled",NO,UO,BO),QT(FO,UO);var GO,YO,KO,XO,JO,ZO,QO,eL,tL,rL,nL,oL,iL,aL,sL,lL,uL,cL,dL,pL,fL,hL,mL,gL,bL=class{constructor(){this.map=Yk(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=QD(...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}},vL=class extends(QO=UO,ZO=[XD],JO=[XD],XO=[XD],KO=[JD],YO=[JD],GO=[JD],QO){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=YT(r,["modifiers","type","sensors"]);super(a,t),eO(eL,5,this),iO(this,tL,eO(eL,8,this)),eO(eL,11,this),iO(this,rL,eO(eL,12,this)),eO(eL,15,this),iO(this,nL,eO(eL,16,this,this.isDragSource?"dragging":"idle")),eO(eL,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}};eL=KT(QO),tL=new WeakMap,rL=new WeakMap,nL=new WeakMap,tO(eL,4,"type",ZO,vL,tL),tO(eL,4,"modifiers",JO,vL,rL),tO(eL,4,"status",XO,vL,nL),tO(eL,2,"isDropping",KO,vL),tO(eL,2,"isDragging",YO,vL),tO(eL,2,"isDragSource",GO,vL),QT(eL,vL);var yL=class extends(cL=UO,uL=[XD],lL=[XD],sL=[XD],aL=[XD],iL=[XD],oL=[JD],cL){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(YT(r,["accept","collisionDetector","collisionPriority","type"]),t),eO(dL,5,this),iO(this,pL,eO(dL,8,this)),eO(dL,11,this),iO(this,fL,eO(dL,12,this)),eO(dL,15,this),iO(this,hL,eO(dL,16,this)),eO(dL,19,this),iO(this,mL,eO(dL,20,this)),eO(dL,23,this),iO(this,gL,eO(dL,24,this)),eO(dL,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}};dL=KT(cL),pL=new WeakMap,fL=new WeakMap,hL=new WeakMap,mL=new WeakMap,gL=new WeakMap,tO(dL,4,"accept",uL,yL,pL),tO(dL,4,"type",lL,yL,fL),tO(dL,4,"collisionDetector",sL,yL,hL),tO(dL,4,"collisionPriority",aL,yL,mL),tO(dL,4,"shape",iL,yL,gL),tO(dL,2,"isDropTarget",oL,yL),QT(dL,yL);var xL,SL=class extends dO{constructor(e,t){super(e,t),this.manager=e,this.options=t}},wL=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},CL=class{constructor(e){this.options=e,iO(this,xL)}set controller(e){aO(this,xL,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=oO(this,xL))||t.activate(e)}};xL=new WeakMap;var EL,RL,PL,AL,IL,ML,kL,DL,TL,OL,LL,qL,NL,jL,_L,zL,FL,HL,$L,WL=class extends dO{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},BL=class{constructor(e){this.draggables=new bL,this.droppables=new bL,this.plugins=new hO(e),this.sensors=new hO(e),this.modifiers=new hO(e)}register(e,t){if(e instanceof vL)return this.draggables.register(e.id,e);if(e instanceof yL)return this.droppables.register(e.id,e);if(e.prototype instanceof WL)return this.modifiers.register(e,t);if(e.prototype instanceof SL)return this.sensors.register(e,t);if(e.prototype instanceof dO)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof UO)return e instanceof vL?this.draggables.unregister(e.id,e):e instanceof yL?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof WL)return this.modifiers.unregister(e);if(e.prototype instanceof SL)return this.sensors.unregister(e);if(e.prototype instanceof dO)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()}};TL=[JD],DL=[XD],kL=[XD],ML=[XD],IL=[XD],AL=[XD],PL=[JD],RL=[JD],EL=[JD];var VL=class{constructor(e){eO(NL,5,this),iO(this,OL),iO(this,LL),iO(this,qL,new tT(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new qO,iO(this,jL,eO(NL,8,this,!1)),eO(NL,11,this),iO(this,_L,eO(NL,12,this,null)),eO(NL,15,this),iO(this,zL,eO(NL,16,this,null)),eO(NL,19,this),iO(this,FL,eO(NL,20,this,null)),eO(NL,23,this),iO(this,HL,eO(NL,24,this,[])),eO(NL,27,this),this.position=new PT({x:0,y:0}),iO(this,$L,{x:0,y:0}),aO(this,OL,e)}get shape(){const{current:e,initial:t,previous:r}=oO(this,qL);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?oO(this,qL).current=e:oO(this,qL).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=oO(this,OL).registry.draggables.get(t);return r&&aO(this,LL,r),null!=(e=null!=r?r:oO(this,LL))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=oO(this,OL).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(UT(VT({},this.snapshot()),{transform:r}));return aO(this,$L,r),r}snapshot(){return Hk((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:oO(this,$L),shape:this.shape?rT(this.shape):null,position:rT(this.position),status:rT(this.status),canceled:this.canceled})))}reset(){zk((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,oO(this,qL).reset(),this.position.reset({x:0,y:0}),aO(this,$L,{x:0,y:0}),this.modifiers=[]}))}};NL=KT(null),OL=new WeakMap,LL=new WeakMap,qL=new WeakMap,jL=new WeakMap,_L=new WeakMap,zL=new WeakMap,FL=new WeakMap,HL=new WeakMap,$L=new WeakMap,tO(NL,2,"shape",TL,VL),tO(NL,4,"canceled",DL,VL,jL),tO(NL,4,"activatorEvent",kL,VL,_L),tO(NL,4,"sourceIdentifier",ML,VL,zL),tO(NL,4,"targetIdentifier",IL,VL,FL),tO(NL,4,"modifiers",AL,VL,HL),tO(NL,2,"source",PL,VL),tO(NL,2,"target",RL,VL),tO(NL,2,"transform",EL,VL),QT(NL,VL);var UL={get rendering(){return Promise.resolve()}},GL=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=UL}=null!=e?e:{},i=new SO(this),a=new BL(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new VO(this),this.dragOperation=new VL(this),this.collisionObserver=new yO(this),this.plugins=[TO,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=QD((()=>{var e,t,r;const n=Hk((()=>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}=cO(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}},YL=e=>{throw TypeError(e)},KL=(e,t,r)=>t.has(e)||YL("Cannot "+r),XL=(e,t,r)=>(KL(e,t,"read from private field"),t.get(e)),JL=(e,t,r)=>t.has(e)?YL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ZL=(e,t,r,n)=>(KL(e,t,"write to private field"),t.set(e,r),r),QL=(e,t,r)=>(KL(e,t,"access private method"),r);function eq(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function tq(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=(eq(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function rq(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function nq(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function oq(e){return"nodeType"in e}function iq(e){var t,r,n;return e?nq(e)?e:oq(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 aq(e){const{Document:t}=iq(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function sq(e){return!(!e||nq(e))&&(e instanceof iq(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function lq(e){return e instanceof iq(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function uq(e){return e?nq(e)?e.document:oq(e)?aq(e)?e:sq(e)||lq(e)?e.ownerDocument:document:document:document}function cq(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 dq(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(!cq(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 pq(e){return{x:e.clientX,y:e.clientY}}var fq="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function hq(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...hq(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...hq(o.document,t))}}catch(e){}return r}function mq(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function gq(e){return!(!e||!oq(e))&&e instanceof iq(e).ShadowRoot}function bq(e){if(e&&oq(e)){let t=e.getRootNode();if(gq(t))return t;if(t instanceof Document)return t}return uq(e)}function vq(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function yq(e){return"value"in e}function xq(e){return"CANVAS"===e.tagName}function Sq(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 Sq(e,{x:t-o,y:r-i})}}return n}var wq=new WeakMap;var Cq=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function Eq(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function Rq(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 Pq,Aq=fq?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Iq=class extends Aq{constructor(e){super((t=>{XL(this,Pq)?e(t,this):ZL(this,Pq,!0)})),JL(this,Pq,!1)}};Pq=new WeakMap;var Mq,kq,Dq,Tq,Oq,Lq,qq,Nq,jq,_q,zq,Fq=Array.from({length:100},((e,t)=>t/100)),Hq=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,JL(this,jq),this.disconnect=()=>{var e,t,r;ZL(this,qq,!0),null==(e=XL(this,Dq))||e.disconnect(),null==(t=XL(this,Tq))||t.disconnect(),XL(this,Oq).disconnect(),null==(r=XL(this,Lq))||r.remove()},JL(this,Mq,!0),JL(this,kq),JL(this,Dq),JL(this,Tq),JL(this,Oq),JL(this,Lq),JL(this,qq,!1),JL(this,Nq,Rq((()=>{var e,t,r;const{element:n}=this;if(null==(e=XL(this,Tq))||e.disconnect(),XL(this,qq)||!XL(this,Mq)||!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=dq(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,ZL(this,Tq,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:ET.intersectionRatio(r,dq(n)))&&XL(this,Nq).call(this)}),{threshold:Fq,rootMargin:m,root:o})),XL(this,Tq).observe(n),QL(this,jq,_q).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),ZL(this,Mq,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=dq(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)&&(ZL(this,Lq,document.createElement("div")),XL(this,Lq).style.background="rgba(0,0,0,0.15)",XL(this,Lq).style.position="fixed",XL(this,Lq).style.pointerEvents="none",o.body.appendChild(XL(this,Lq))),ZL(this,Oq,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=XL(this,Mq);ZL(this,Mq,a),(s||l)&&(u&&!a?(null==(r=XL(this,Tq))||r.disconnect(),this.callback(null),null==(n=XL(this,Dq))||n.disconnect(),ZL(this,Dq,void 0),XL(this,Lq)&&(XL(this,Lq).style.visibility="hidden")):XL(this,Nq).call(this),a&&!XL(this,Dq)&&(ZL(this,Dq,new Iq(XL(this,Nq))),XL(this,Dq).observe(e)))}),{threshold:Fq,root:o})),XL(this,Mq)&&!r.skipInitial&&this.callback(this.boundingClientRect),XL(this,Oq).observe(e)}};Mq=new WeakMap,kq=new WeakMap,Dq=new WeakMap,Tq=new WeakMap,Oq=new WeakMap,Lq=new WeakMap,qq=new WeakMap,Nq=new WeakMap,jq=new WeakSet,_q=function(){XL(this,qq)||(QL(this,jq,zq).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,XL(this,kq))||(this.callback(this.boundingClientRect),ZL(this,kq,this.boundingClientRect)))},zq=function(){if(XL(this,Lq)){const{top:e,left:t,width:r,height:n}=dq(this.element);XL(this,Lq).style.overflow="hidden",XL(this,Lq).style.visibility="visible",XL(this,Lq).style.top=`${Math.floor(e)}px`,XL(this,Lq).style.left=`${Math.floor(t)}px`,XL(this,Lq).style.width=`${Math.floor(r)}px`,XL(this,Lq).style.height=`${Math.floor(n)}px`}};var $q,Wq,Bq,Vq,Uq=new WeakMap,Gq=new WeakMap;function Yq(e,t){let r=Uq.get(e);if(!r){const t=new Hq(e,(t=>{const r=Uq.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),Uq.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(Uq.delete(e),r.disconnect())}}var Kq=class{constructor(e,t,r){this.callback=t,JL(this,$q),JL(this,Wq,!1),JL(this,Bq),JL(this,Vq,Rq((e=>{if(!XL(this,Wq)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of XL(this,Bq))if(e.target.contains(t)){this.callback(XL(this,$q).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=Eq(e);for(;r;)t.add(r),r=Eq(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=Yq(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!Gq.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}),Gq.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=Gq.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),Gq.delete(n))}):()=>{}}(e,XL(this,Vq));ZL(this,Bq,n),ZL(this,$q,new Hq(e,t,r)),this.disconnect=()=>{XL(this,Wq)||(ZL(this,Wq,!0),o(),i(),XL(this,$q).disconnect())}}};function Xq(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function Jq(e){try{Xq(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function Zq(e){return!(!fq||!e)&&e===uq(e).scrollingElement}function Qq(e){const t=iq(e),r=Zq(e)?function(e){const{documentElement:t}=uq(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):rq(e),n=Zq(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 eN(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=Qq(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}}$q=new WeakMap,Wq=new WeakMap,Bq=new WeakMap,Vq=new WeakMap;var tN=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)))}},rN=new tN((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),nN=new tN((e=>setTimeout(e,50))),oN=new Map,iN=oN.clear.bind(oN);function aN(e,t=!1){if(!t)return sN(e);let r=oN.get(e);return r||(r=sN(e),oN.set(e,r),nN.schedule(iN),r)}function sN(e){return iq(e).getComputedStyle(e)}var lN={excludeElement:!0,escapeShadowDOM:!0};function uN(e,t=lN){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(aq(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&gq(a))return t(a.host);if(!sq(a))return lq(a)?t(a.parentElement):i;if(i.has(a))return i;const s=aN(a,!0);if(n&&a===e||function(e,t=aN(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,s)&&i.add(a),function(e,t=aN(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function cN(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=Eq(e);for(;n;){if(n===t)return r;const e=rq(n),{x:o,y:i}=dN(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=Eq(n)}return r}function dN(e,t=rq(e)){const r=Math.round(t.width),n=Math.round(t.height);if(sq(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=aN(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function pN(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 fN(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=pN(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 hN=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(hN||{}),mN={x:.2,y:.2},gN={x:10,y:10};function bN(e,t,r,n=25,o=mN,i=gN){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=Qq(e),f=cN(e),h=fN(aN(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new ET(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 vN(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!sq(e))return e.scrollIntoView();var n=function(e){const[t]=uN(e,{limit:1});return null!=t?t:null}(e);if(!sq(n))return;const o=aN(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 yN({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function xN(e,t=aN(e).translate,r=!0){if(r){const t=tq(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=pN(e);if(t)return t}}}if(t){const e=pN(t);if(e)return e}return{x:0,y:0,z:0}}var SN=new tN((e=>setTimeout(e,0))),wN=new Map,CN=wN.clear.bind(wN);function EN(e,t){const r=function(e){const t=e.ownerDocument;let r=wN.get(t);if(r)return r;r=t.getAnimations(),wN.set(t,r),SN.schedule(CN);const n=r.filter((t=>eq(t.effect)&&t.effect.target===e));return wN.set(e,n),r}(e).filter((e=>{var r,n;if(eq(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 RN=class extends ET{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=cN(e),ignoreTransforms:s,getBoundingClientRect:l=rq}=t,u=EN(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||mq())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=aN(e),b=fN(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=eq(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=fN({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 PN(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 AN=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(PN(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(PN(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(PN(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function IN(e){return!!e&&(e instanceof iq(e).Element||oq(e)&&e.nodeType===Node.ELEMENT_NODE)}function MN(e){if(!e)return!1;const{KeyboardEvent:t}=iq(e.target);return e instanceof t}var kN={};function DN(e){const t=null==kN[e]?0:kN[e]+1;return kN[e]=t,`${e}-${t}`}var TN=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/CT.distance(t.shape.center,r),type:LO.PointerIntersection,priority:OO.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=CT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:LO.ShapeIntersection,priority:OO.Normal}}return null})(e)},ON=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?ET.from(n.current.boundingRectangle).corners:void 0,a=ET.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+CT.distance(CT.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:LO.Collision,priority:OO.Normal}},LN=Object.create,qN=Object.defineProperty,NN=Object.defineProperties,jN=Object.getOwnPropertyDescriptor,_N=Object.getOwnPropertyDescriptors,zN=Object.getOwnPropertySymbols,FN=Object.prototype.hasOwnProperty,HN=Object.prototype.propertyIsEnumerable,$N=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),WN=e=>{throw TypeError(e)},BN=(e,t,r)=>t in e?qN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VN=(e,t)=>{for(var r in t||(t={}))FN.call(t,r)&&BN(e,r,t[r]);if(zN)for(var r of zN(t))HN.call(t,r)&&BN(e,r,t[r]);return e},UN=(e,t)=>NN(e,_N(t)),GN=(e,t)=>qN(e,"name",{value:t,configurable:!0}),YN=(e,t)=>{var r={};for(var n in e)FN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&zN)for(var n of zN(e))t.indexOf(n)<0&&HN.call(e,n)&&(r[n]=e[n]);return r},KN=e=>{var t;return[,,,LN(null!=(t=null==e?void 0:e[$N("metadata")])?t:null)]},XN=["class","method","getter","setter","accessor","field","value","get","set"],JN=e=>void 0!==e&&"function"!=typeof e?WN("Function expected"):e,ZN=(e,t,r,n,o)=>({kind:XN[e],name:t,metadata:n,addInitializer:e=>r._?WN("Already initialized"):o.push(JN(e||null))}),QN=(e,t)=>BN(t,$N("metadata"),e[3]),ej=(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},tj=(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)&&jN(d<4?o:{get[r](){return oj(this,i)},set[r](e){return aj(this,i,e)}},r));d?f&&d<4&&GN(i,(d>2?"set ":d>1?"get ":"")+r):GN(o,r);for(var y=n.length-1;y>=0;y--)u=ZN(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>nj(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?oj:sj)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>aj(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?JN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?WN("Object expected"):(JN(a=s.get)&&(v.get=a),JN(a=s.set)&&(v.set=a),JN(a=s.init)&&g.unshift(a));return d||QN(e,o),v&&qN(o,r,v),f?4^d?i:v:o},rj=(e,t,r)=>t.has(e)||WN("Cannot "+r),nj=(e,t)=>Object(t)!==t?WN('Cannot use the "in" operator on this value'):e.has(t),oj=(e,t,r)=>(rj(e,t,"read from private field"),r?r.call(e):t.get(e)),ij=(e,t,r)=>t.has(e)?WN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),aj=(e,t,r,n)=>(rj(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),sj=(e,t,r)=>(rj(e,t,"access private method"),r),lj="button",uj="draggable",cj="dnd-kit-description",dj="dnd-kit-announcement",pj={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."},fj={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 hj(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var mj=["dragover","dragmove"],gj=class extends dO{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=cj,announcement:o=dj}={},announcements:i=fj,screenReaderInstructions:a=pj,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:DN(n),u=r?`${o}-${r}`:DN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>rN.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,mj.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),hj(r)&&!mq()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",lj))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",uj))),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&&rN.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var bj,vj,yj,xj,Sj,wj,Cj,Ej,Rj,Pj,Aj,Ij=new Map,Mj=class extends(Sj=fO,xj=[XD],yj=[JD],vj=[JD],bj=[JD],Sj){constructor(e){super(e),ej(Cj,5,this),ij(this,Rj),ij(this,wj,new Set),ij(this,Ej,ej(Cj,8,this,new Set)),ej(Cj,11,this),this.registerEffect(sj(this,Rj,Pj))}register(e){return oj(this,wj).add(e),()=>{oj(this,wj).delete(e)}}addRoot(e){return Hk((()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t})),()=>{Hk((()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t}))}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return bq(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return bq(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter((e=>null!=e));return new Set([...e,...this.additionalRoots])}return new Set}};Cj=KN(Sj),wj=new WeakMap,Ej=new WeakMap,Rj=new WeakSet,Pj=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of oj(this,wj))t.push(sj(this,Rj,Aj).call(this,r,e));return()=>{for(const e of t)e()}},Aj=function(e,t){let r=Ij.get(e);r||(r=new Map,Ij.set(e,r));let n=r.get(t);if(!n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets),0;const o=aq(e)?e.defaultView:e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=o?o:{};if(!i)return()=>{};const a=new i;a.replaceSync(t),e.adoptedStyleSheets.push(a),n={sheet:a,refCount:0,cleanup:()=>{var n;if(aq(e)||gq(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(a);-1!==t&&e.adoptedStyleSheets.splice(t,1)}r.delete(t),0===r.size&&Ij.delete(e)}},r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},tj(Cj,4,"additionalRoots",xj,Mj,Ej),tj(Cj,2,"sourceRoot",yj,Mj),tj(Cj,2,"targetRoot",vj,Mj),tj(Cj,2,"roots",bj,Mj),QN(Cj,Mj);var kj="data-dnd-",Dj=`${kj}dropping`,Tj="--dnd-",Oj=`${kj}dragging`,Lj=`${kj}placeholder`,qj=[Oj,Lj,"popover","aria-pressed","aria-grabbing"],Nj=["view-transition-name"],jj=`\n :is(:root,:host) [${Oj}] {\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(${Tj}top, 0px) !important;\n left: var(${Tj}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Tj}width, auto);\n max-width: var(${Tj}width, auto);\n height: var(${Tj}height, auto);\n max-height: var(${Tj}height, auto);\n transition: var(${Tj}transition) !important;\n }\n\n :is(:root,:host) [${Lj}] {\n transition: none;\n }\n\n :is(:root,:host) [${Lj}='hidden'] {\n visibility: hidden;\n }\n\n [${Oj}] * {\n pointer-events: none !important;\n }\n\n [${Oj}]:not([${Dj}]) {\n translate: var(${Tj}translate) !important;\n }\n\n [${Oj}][style*='${Tj}scale'] {\n scale: var(${Tj}scale) !important;\n transform-origin: var(${Tj}transform-origin) !important;\n }\n\n @layer {\n :where([${Oj}][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 [${Oj}]::backdrop, [${kj}overlay]:not([${Oj}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function _j(e,t="hidden"){return Hk((()=>{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=`${kj}${DN("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(yq(e)&&yq(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),xq(e)&&xq(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),wq.set(a,i),r.push((()=>{wq.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(Lj,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function zj(e,t){return e===t||Eq(e)===Eq(t)}function Fj(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&IN(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>Jq(t)))}function Hj(e){return"TR"===e.tagName}var $j,Wj,Bj,Vj,Uj,Gj,Yj,Kj=250,Xj="ease";var Jj=class extends(Wj=dO,$j=[XD],Wj){constructor(e,t){super(e,t),ij(this,Uj),ij(this,Vj,ej(Bj,8,this)),ej(Bj,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(Mj),n=null==r?void 0:r.register(jj);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(sj(this,Uj,Gj).bind(this,r)),this.registerEffect(sj(this,Uj,Yj))}};Bj=KN(Wj),Vj=new WeakMap,Uj=new WeakSet,Gj=function(e){const{overlay:t}=this;if(!t||!e)return;const r=bq(t);return r?e.addRoot(r):void 0},Yj=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=cN(f),m=cN(c),g=!zj(c,f),b=new RN(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=b;g&&(x/=v,S/=y);const E=new AN(f),{transition:R,translate:P,boxSizing:A,paddingBlockStart:I,paddingBlockEnd:M,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=aN(c),N="clone"===d,j="content-box"===A,_=j?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=j?parseInt(I)+parseInt(M)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:_j(l,N?"clone":"hidden"),H=Hk((()=>MN(o.dragOperation.activatorEvent)));if("none"!==P){const e=pN(P);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=Hk((()=>s.current));p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,W=w*h.scaleY+h.y,B=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:B,y:W},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=$;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-B,U=p.coordinates.y-W,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X={left:C+K.x,top:w+K.y};f.setAttribute(Oj,"true");const J=Hk((()=>a.transform)),Z=null!=(t=p.translate)?t:{x:0,y:0},Q=J.x*h.scaleX+Z.x,ee=J.y*h.scaleY+Z.y;if(E.set({width:x-_,height:S-z,top:X.top,left:X.left,translate:`${Q}px ${ee}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${v} ${y}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},Tj),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let te,re,ne;Xq(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),Jq(f),f.addEventListener("beforetoggle",Fj));const oe=(ie={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>te,getSavedCellWidths:()=>ne,setSavedCellWidths:e=>{ne=e}},new ResizeObserver((()=>{var e,t;const r=new RN(ie.placeholder,{frameTransform:ie.frameTransform,ignoreTransforms:!0}),n=null!=(e=ie.transformOrigin)?e:{x:1,y:1},o=(ie.width-r.width)*n.x+ie.delta.x,i=(ie.height-r.height)*n.y+ie.delta.y;if(ie.styles.set({width:r.width-ie.widthOffset,height:r.height-ie.heightOffset,top:ie.top+i,left:ie.left+o},Tj),null==(t=ie.getElementMutationObserver())||t.takeRecords(),Hj(ie.element)&&Hj(ie.placeholder)){const e=Array.from(ie.element.cells),t=Array.from(ie.placeholder.cells);ie.getSavedCellWidths()||ie.setSavedCellWidths(e.map((e=>e.style.width)));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}ie.dragOperation.shape=new RN(ie.feedbackElement)})));var ie;const ae=new RN(f);Hk((()=>a.shape=ae));const se=iq(f),le=e=>{this.manager.actions.stop({event:e})},ue=vq(se);H&&se.addEventListener("resize",le),"idle"===Hk((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),F&&(oe.observe(F),te=function(e,t,r){const n=new MutationObserver((n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||qj.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(PN(e)&&PN(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(Nj.includes(e)||e.startsWith(Tj))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)}));return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),re=function(e,t,r){const n=new MutationObserver((n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void Jq(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void Jq(r)}}));return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const ce=null==(r=o.dragOperation.source)?void 0:r.id,de=()=>{var e;if(!H||null==ce)return;const t=o.registry.draggables.get(ce),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;sq(r)&&r.focus()},pe=()=>{var e;if(null==te||te.disconnect(),null==re||re.disconnect(),oe.disconnect(),se.removeEventListener("resize",le),Xq(f)&&(f.removeEventListener("beforetoggle",Fj),f.removeAttribute("popover")),f.removeAttribute(Oj),E.reset(),ne&&Hj(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ne[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},fe=null==i?void 0:i.dropAnimation,he=QD((()=>{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=Hk((()=>a.modifiers)),l=Hk((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=H&&!ue?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},Tj),null==te||te.takeRecords(),l&&l!==ae&&i&&!s.length){const e=CT.delta(o,i);a.shape=ET.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new RN(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||null===fe)return void pe();o.renderer.rendering.then((()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then((()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}const{duration:a=Kj,easing:s=Xj}=null!=i?i:{};Jq(e.feedbackElement);const[,l]=null!=(t=tq(e.feedbackElement,(e=>"translate"in e)))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:zj(e.feedbackElement,u)?null:void 0},d=new RN(e.feedbackElement,c),p=null!=(n=pN(aN(e.feedbackElement).translate))?n:e.translate,f=new RN(u,c),h=ET.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},Tj),e.feedbackElement.setAttribute(Dj,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),yN({element:e.feedbackElement,keyframes:UN(VN(VN({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:vq(iq(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then((()=>{e.feedbackElement.removeAttribute(Dj),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}({element:c,feedbackElement:f,placeholder:F,translate:e,moved:t,transition:R,alignment:l.alignment,styles:E,animation:null!=fe?fe:void 0,getElementMutationObserver:()=>te,cleanup:pe,restoreFocus:de})}))}}));return()=>{pe(),he()}},tj(Bj,4,"overlay",$j,Jj,Vj),QN(Bj,Jj),Jj.configure=uO(Jj);var Zj,Qj,e_,t_,r_,n_,o_,i_=Jj,a_=!0;e_=[XD],t_=hN.Forward,Zj=[XD],Qj=hN.Reverse;var s_=class{constructor(){ij(this,n_,ej(r_,8,this,a_)),ej(r_,11,this),ij(this,o_,ej(r_,12,this,a_)),ej(r_,15,this)}isLocked(e){return e!==hN.Idle&&(null==e?this[hN.Forward]===a_&&this[hN.Reverse]===a_:this[e]===a_)}unlock(e){e!==hN.Idle&&(this[e]=false)}};r_=KN(null),n_=new WeakMap,o_=new WeakMap,tj(r_,4,t_,e_,s_,n_),tj(r_,4,Qj,Zj,s_,o_),QN(r_,s_);var l_,u_,c_,d_,p_,f_,h_=[hN.Forward,hN.Reverse],m_=class{constructor(){this.x=new s_,this.y=new s_}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},g_=class extends dO{constructor(e){super(e);const t=Yk(new m_);let r=null;this.signal=t,oD((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new m_);const{delta:o}=e.dragOperation.position;if(r){const e={x:b_(o.x,r.x),y:b_(o.y,r.y)},n=t.peek();zk((()=>{for(const t of OT)for(const r of h_)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function b_(e,t){return Math.sign(e-t)}var v_=class extends(u_=fO,l_=[XD],u_){constructor(e){super(e),ij(this,d_,ej(c_,8,this,!1)),ej(c_,11,this),ij(this,p_),ij(this,f_,(()=>{if(!oj(this,p_))return;const{element:e,by:t}=oj(this,p_);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 aj(this,p_,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:y_(n.x),y:y_(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=eN(e,n);if(r.x||r.y){const{speed:r,direction:s}=bN(e,o,i);if(a)for(const e of OT)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=oj(this,p_))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return aj(this,p_,{element:e,by:{x:a,y:l}}),rN.schedule(oj(this,f_)),!0}}}}}return aj(this,p_,void 0),!1};let t=null,r=null;const n=YD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=Sq(bq(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=YD((()=>{const t=n.value,{documentElement:o}=uq(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=uN(n,{excludeElement:!1});return r=e,e}}if(t){const e=uN(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),KD);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new g_(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&MN(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function y_(e){return e>0?hN.Forward:e<0?hN.Reverse:hN.Idle}c_=KN(u_),d_=new WeakMap,p_=new WeakMap,f_=new WeakMap,tj(c_,4,"autoScrolling",l_,v_,d_),QN(c_,v_);var x_,S_=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()})),w_=class extends dO{constructor(e,t){super(e);const r=e.registry.plugins.get(v_);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=oD((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>S_.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},C_={capture:!0,passive:!0},E_=class extends fO{constructor(e){super(e),ij(this,x_),this.handleScroll=()=>{null==oj(this,x_)&&aj(this,x_,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),aj(this,x_,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=oD((()=>{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,C_),()=>{o.removeEventListener("scroll",this.handleScroll,C_)}}}))}};x_=new WeakMap;function R_(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var P_,A_=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),I_=class extends SL{constructor(e,t){super(e),this.manager=e,this.options=t,ij(this,P_,[]),this.listeners=new Cq,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!IN(e.target))return;if(t.disabled)return;const{keyboardCodes:n=A_.keyboardCodes,preventActivation:o=A_.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=oD((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{MN(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(),vN(n);const{center:o}=new RN(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=uq(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];oj(this,P_).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=A_.keyboardCodes}=null!=r?r:{};if(D_(e,[...n.end,...n.cancel])){e.preventDefault();const t=D_(e,n.cancel);this.handleEnd(e,t)}else D_(e,n.up)?this.handleMove("up",e):D_(e,n.down)&&this.handleMove("down",e),D_(e,n.left)?this.handleMove("left",e):D_(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:A_.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(w_);!1===(null==e?void 0:e.disabled)&&(e.disable(),oj(this,P_).push((()=>{e.enable()})))}cleanup(){oj(this,P_).forEach((e=>e())),aj(this,P_,[])}destroy(){this.cleanup(),this.listeners.clear()}};P_=new WeakMap,I_.configure=uO(I_),I_.defaults=A_;var M_,k_=I_;function D_(e,t){return t.includes(e.code)}var T_,O_;M_=new WeakMap;T_=new WeakMap,O_=new WeakMap;var L_=class{};L_.Delay=class extends CL{constructor(){super(...arguments),ij(this,T_),ij(this,O_)}onEvent(e){switch(e.type){case"pointerdown":aj(this,O_,pq(e)),aj(this,T_,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!oj(this,O_))return;const{x:t,y:r}=pq(e);AT({x:t-oj(this,O_).x,y:r-oj(this,O_).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){oj(this,T_)&&(clearTimeout(oj(this,T_)),aj(this,O_,void 0),aj(this,T_,void 0))}},L_.Distance=class extends CL{constructor(){super(...arguments),ij(this,M_)}onEvent(e){switch(e.type){case"pointerdown":aj(this,M_,pq(e));break;case"pointermove":if(!oj(this,M_))return;const{x:t,y:r}=pq(e),n={x:t-oj(this,M_).x,y:r-oj(this,M_).y},{tolerance:o}=this.options;if(o&&AT(n,o))return void this.abort();AT(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){aj(this,M_,void 0)}};var q_,N_=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!IN(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new L_.Delay({value:250,tolerance:5})]:function(e){if(!IN(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new L_.Delay({value:200,tolerance:0})]:[new L_.Delay({value:200,tolerance:10}),new L_.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!IN(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),j_=class extends SL{constructor(e,t){super(e),this.manager=e,this.options=t,ij(this,q_,new Set),this.listeners=new Cq,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,r=this.options){const{activationConstraints:n=N_.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=oD((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=iq(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&&($_(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||!IN(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=N_.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=sq(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=cN(t.element),{x:s,y:l}=pq(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new wL(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=hq(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:i?this.handleCancel:z_,options:{capture:!0}}]);oj(this,q_).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=pq(e),n=cN(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,rN.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=uq(t.target).body;o.setPointerCapture(t.pointerId);const i=IN(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:z_,options:{passive:!1}},{type:"click",listener:z_},{type:"contextmenu",listener:z_},{type:"keydown",listener:this.handleKeyDown}]);oj(this,q_).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},oj(this,q_).forEach((e=>e())),oj(this,q_).clear()}destroy(){this.cleanup(),this.listeners.clear()}};q_=new WeakMap,j_.configure=uO(j_),j_.defaults=N_;var __=j_;function z_(e){e.preventDefault()}function F_(){}var H_=new WeakSet;function $_(e){e&&!H_.has(e)&&(e.addEventListener("touchmove",F_,{capture:!1,passive:!1}),H_.add(e))}var W_,B_,V_,U_,G_,Y_,K_,X_,J_,Z_,Q_,ez,tz,rz,nz,oz,iz,az,sz={modifiers:[],plugins:[gj,w_,class extends dO{constructor(e,t){super(e,t),this.manager=e;const r=YD((()=>{var e;return uq(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=oD((()=>{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()}}))}},i_,class extends dO{constructor(e,t){super(e,t),this.manager=e,this.destroy=oD((()=>{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),R_(),document.addEventListener("selectionchange",R_,{capture:!0}),()=>{document.removeEventListener("selectionchange",R_,{capture:!0}),e.remove()}}}))}}],sensors:[__,k_]},lz=class extends GL{constructor(e={}){const{plugins:t=sz.plugins,sensors:r=sz.sensors,modifiers:n=[]}=e;super(UN(VN({},e),{plugins:[E_,v_,Mj,...t],sensors:r,modifiers:n}))}},uz=class extends(U_=vL,V_=[XD],B_=[XD],W_=[XD],U_){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=YN(r,["element","effects","handle","feedback"]);super(VN({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(cO))?t:[...r.sensors]).map((e=>{const t=e instanceof SL?e:r.registry.register(e.plugin),n=e instanceof SL?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),ij(this,Y_,ej(G_,8,this)),ej(G_,11,this),ij(this,K_,ej(G_,12,this)),ej(G_,15,this),ij(this,X_,ej(G_,16,this)),ej(G_,19,this),this.element=n,this.handle=i,this.feedback=a}};G_=KN(U_),Y_=new WeakMap,K_=new WeakMap,X_=new WeakMap,tj(G_,4,"handle",V_,uz,Y_),tj(G_,4,"element",B_,uz,K_),tj(G_,4,"feedback",W_,uz,X_),QN(G_,uz);var cz=class extends(Q_=yL,Z_=[XD],J_=[XD],Q_){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=YN(r,["element","effects"]);const{collisionDetector:a=TN}=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 RN(r),o=Hk((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=Yk(!1);super(UN(VN({},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 Kq(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),ij(this,iz),ij(this,tz,ej(ez,8,this)),ej(ez,11,this),ij(this,az,ej(ez,12,this)),ej(ez,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){aj(this,iz,e,oz)}get element(){var e;return null!=(e=this.proxy)?e:oj(this,iz,nz)}};function dz(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}ez=KN(Q_),tz=new WeakMap,iz=new WeakSet,az=new WeakMap,rz=tj(ez,20,"#element",Z_,iz,tz),nz=rz.get,oz=rz.set,tj(ez,4,"proxy",J_,cz,az),QN(ez,cz);var pz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?N:T;function fz(){const e=I(0)[1];return q((()=>{e((e=>e+1))}),[e])}function hz(e,t=[],r=!1){const n=M(e);return n.current=e,function(e,t=!1){const r=M(e.peek()),n=M(!1),o=fz();return pz((()=>oD((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?V(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(A((()=>YD((()=>n.current()))),t),r)}function mz(e,t){const r=M(new Map),n=fz();return pz((()=>{if(e)return oD((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=Hk((()=>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?V(n):n())}));r.current.clear()}),[e]),A((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function gz(e,t){e()}function bz(e){const t=M(e);return pz((()=>{t.current=e}),[e]),t}function vz(e,t,r=T,n=Object.is){const o=M(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function yz(e,t){const r=M(dz(e));pz((()=>{const n=dz(e);n!==r.current&&(r.current=n,t(n))}))}var xz=Object.getOwnPropertySymbols,Sz=Object.prototype.hasOwnProperty,wz=Object.prototype.propertyIsEnumerable,Cz=new lz,Ez=k(Cz),Rz=_(j((({children:e},t)=>{const[r,n]=I(0),o=M(null),i=M(null),a=A((()=>({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}))),F((()=>{e(),n((e=>e+1))}))}})),[]);return pz((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),H(t,(()=>a)),null}))),Pz=[void 0,KD];function Az(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)Sz.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&xz)for(var n of xz(e))t.indexOf(n)<0&&wz.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=M(null),{plugins:d,modifiers:p,sensors:f}=u,h=bz(o),m=bz(i),g=bz(s),b=bz(a),v=bz(l),y=bz(n),x=function(e){const t=M(null);t.current||(t.current=e());return z((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new lz(u)}));return T((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=x;x.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=h.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=m.current)?void 0:t.call(m,e,x)})),r.addEventListener("dragover",(e=>{const r=g.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragmove",(e=>{const r=b.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragend",(e=>{const r=v.current;r&&t((()=>r(e,x)))})),r.addEventListener("collision",(e=>{var t;return null==(t=y.current)?void 0:t.call(y,e,x)}))];return()=>n.forEach((e=>e()))}),[x]),vz(d,(()=>x&&(x.plugins=null!=d?d:sz.plugins)),...Pz),vz(f,(()=>x&&(x.sensors=null!=f?f:sz.sensors)),...Pz),vz(p,(()=>x&&(x.modifiers=null!=p?p:sz.modifiers)),...Pz),or.jsxs(Ez.Provider,{value:x,children:[or.jsx(Rz,{ref:c,children:r}),r]})}function Iz(){return L(Ez)}function Mz({children:e,className:t,style:r,tag:n,disabled:o}){var i;const a=M(null),s=Iz(),l=null!=(i=hz((()=>null==s?void 0:s.dragOperation.source),[s]).value)?i:null,u="function"==typeof o?o(l):o;T((()=>{if(!a.current||!s||u)return;const e=s.plugins.find((e=>e instanceof i_));return e?(e.overlay=a.current,()=>{e.overlay=void 0}):void 0}),[s,u]);const c=A((()=>{if(!s)return null;const e=new Proxy(s.registry,{get:(e,t)=>"register"===t||"unregister"===t?kz:e[t]});return new Proxy(s,{get:(t,r)=>"registry"===r?e:t[r]})}),[s]);return or.jsx(Ez.Provider,{value:c,children:w(n||"div",{ref:a,className:t,style:r,"data-dnd-overlay":!0},function(){if(!l||u)return null;if("function"==typeof e)return or.jsx(Dz,{source:l,children:e});return e}())})}function kz(){return()=>{}}function Dz({children:e,source:t}){return e(mz(t))}var Tz,Oz,Lz,qz,Nz,jz=Object.create,_z=Object.defineProperty,zz=Object.getOwnPropertyDescriptor,Fz=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Hz=e=>{throw TypeError(e)},$z=["class","method","getter","setter","accessor","field","value","get","set"],Wz=e=>void 0!==e&&"function"!=typeof e?Hz("Function expected"):e,Bz=(e,t,r,n,o)=>({kind:$z[e],name:t,metadata:n,addInitializer:e=>r._?Hz("Already initialized"):o.push(Wz(e||null))}),Vz=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=$z[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,zz(o,r)),h=n.length-1;h>=0;h--)(l=Bz(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,Wz(a)&&(f[d]=a);return f&&_z(o,r,f),o},Uz=(e,t,r)=>t.has(e)||Hz("Cannot "+r),Gz=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)}},Yz=class extends(Lz=tT,Oz=[JD],Tz=[JD],Lz){constructor(e){var t,r,n;super(Gz.from(e),((e,t)=>Gz.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)})(Nz,5,this),t=this,n=0,(r=qz).has(t)?Hz("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 Gz.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=Gz.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(Uz(a=this,s=qz,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);zk((()=>{((e,t,r)=>{Uz(e,t,"write to private field"),t.set(e,r)})(this,qz,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(Gz.from(e)),this.velocity={x:0,y:0}}};Nz=(e=>{var t;return[,,,jz(null!=(t=null==e?void 0:e[Fz("metadata")])?t:null)]})(Lz),qz=new WeakMap,Vz(Nz,2,"delta",Oz,Yz),Vz(Nz,2,"direction",Tz,Yz),((e,t)=>{((e,t,r)=>{t in e?_z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,Fz("metadata"),e[3])})(Nz,Yz);var Kz=(e=>(e.Horizontal="x",e.Vertical="y",e))(Kz||{});function Xz(e){const t=Iz();T((()=>{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(Kz);const Jz=()=>{const[e,t]=I(!1);return Xz({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?or.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},Zz=()=>{const{flags:e}=uM(iM,(e=>e.env)),t=uM(iM,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},Qz=(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}),eF=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),tF=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),rF=e=>e.atTop?2:1,nF=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],oF=e=>e?.setAttribute("tabIndex","0"),iF=e=>e?.setAttribute("tabIndex","-1"),aF=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(iF)},sF=e=>{e?.focus(),oF(e)},lF=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${lE}`);sF(t)}),0)},uF=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{aF(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 sE.Down:u<s&&u++;break;case sE.Up:u>a&&u--;break;case sE.Right:if(i)break;[u,c]="rtl"===n?eF({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):tF({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case sE.Left:if(i)break;[u,c]="rtl"===n?tF({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):eF({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case sE.Home:(II(e)||i)&&(u=a),i||(c=0);break;case sE.End:(II(e)||i)&&(u=s),i||(c=l);break;case sE.PageDown:u=Math.min(s,u+10);break;case sE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=nF(t,a);return sF(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}},cF=(e,t,r,n)=>{aF(t),r(e),n.enabled&&!n.active?n.focus?.():sF(nF(t,e))},dF=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${oE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${GA.First}`),r=e.querySelector(`.${GA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},pF=j(((e,t)=>or.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:or.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"})}))),fF=mc(Bh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...lI,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),hF=mc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:iI,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),mF=parseInt(iI,10)/2,gF=mc("div")({position:"absolute",bottom:-mF,left:`calc(50% - ${mF}px)`}),bF={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},vF=mc(ip)({height:"100%"}),yF=mc("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?{...bF,whiteSpace:"nowrap",display:r?"block":void 0}:{...bF,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),xF=mc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),SF="cell-text",wF=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=uM(iM,(e=>e.baseProps));return o?or.jsx(yF,{"data-testid":SF,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):or.jsx(yF,{"data-testid":SF,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},CF=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,{changeSortOrder:s,interactions:l,embed:u,styleService:c,layout:d,direction:p}=uM(iM,(e=>e.baseProps)),f=sR(cR),h=sR(uR),m=uM(iM,(e=>e.columnWidths[t.pageColIdx])),g=uM(iM,(e=>e.baseProps.model)),b=M(null),v=M(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=VC({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:aI});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:c,column:t,columnWidth:m}),{StartIcon:x,EndIcon:S,LockIcon:w}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?or.jsx(WM,{height:iI,"data-testid":"head-cell-sort-ascending-icon"}):or.jsx(UM,{height:iI,"data-testid":"head-cell-sort-descending-icon"}),a=r?or.jsx(hF,{align:t,dir:o,children:i}):void 0,s=n?or.jsx(SI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:or.jsx(pF,{height:iI,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,y,p);return or.jsxs(xI,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:fI(t,i,p),children:[w,or.jsxs(yI,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:p,isPagination:i,children:[x,or.jsx(wF,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),S]}),r?or.jsxs(or.Fragment,{children:[or.jsx(ak,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:f,anchorRef:b,menuAvailabilityFlags:{[nk.Sorting]:!0,[nk.Searching]:!0,[nk.Selections]:!0,[nk.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:l,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),s(t,r))},searchRelatedArgs:{embed:u,listboxRef:v},selectionRelatedArgs:{app:h,qStateName:d.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:lF},shouldShowMenuIcon:y.shouldShowMenuIcon,model:g,direction:p,isPagination:i,isAccessibleHeader:!0}),or.jsx(vI,{ref:v,direction:p,isPagination:i}),or.jsx(vI,{ref:b,direction:p})]}):null]})},EF=j(((e,t)=>or.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:or.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"})}))),RF=(e,t)=>e.isCyclic&&t,PF=({column:e})=>{const{direction:t,model:r,styleService:n}=uM(iM,(e=>e.baseProps)),o=S.useRef(null),[i,a]=S.useState(!1),s=gM({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return or.jsxs(or.Fragment,{children:[or.jsx(CI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:or.jsx(EF,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),or.jsx(jM,{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:GM,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},AF=e=>e.isLocked,IF=({column:e})=>{const t=sR(uR),r=uM(iM,(e=>e.baseProps.layout.qStateName)),n=uM(iM,(e=>e.baseProps.styleService));return or.jsx(CI,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=zM(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:or.jsx(pF,{height:16,"data-testid":"head-cell-lock-icon"})})},MF=({column:e,open:t,setOpen:r,isPagination:n})=>{const{interactions:o,layout:i,direction:a,changeSortOrder:s,embed:l,styleService:u}=uM(iM,(e=>e.baseProps)),c=sR(cR),d=sR(uR),p=uM(iM,(e=>e.baseProps.model)),f=S.useRef(null),h=S.useRef(null);return or.jsxs(CI,{tabIndex:-1,hoverBackground:u.headerMenuHoverBackground,activeBackground:u.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[or.jsx(ak,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:c,anchorRef:f,menuAvailabilityFlags:{[nk.Sorting]:!0,[nk.Searching]:!0,[nk.Selections]:!0,[nk.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:o,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:l,listboxRef:h},selectionRelatedArgs:{app:d,qStateName:i.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:lF},shouldShowMenuIcon:!0,model:p,direction:a,isPagination:n,isAccessibleHeader:!1,iconSize:16}),or.jsx(vI,{ref:h,direction:a,isPagination:n}),or.jsx(vI,{ref:f,direction:a})]})},kF=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,DF=(e,t)=>{const r=M(t);r.current=t,N((()=>{if(!e.current)return()=>{};const t=new ResizeObserver((e=>{r.current(e)}));return t.observe(e.current),()=>{t.disconnect()}}),[e])},TF=mc(ip)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),OF=({children:e})=>{const t=S.useRef(null),[r,n]=I((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=A((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=q((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 DF(t,i),or.jsx(TF,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})},LF=({children:e})=>e,qF=(e,t)=>!e.isLocked&&e.isDim&&t,NF=({column:e,open:t,setOpen:r})=>{const{embed:n,direction:o,layout:i,styleService:a}=uM(iM,(e=>e.baseProps));sR(uR);const s=S.useRef(null),l=q((()=>{r(!1)}),[r]),u=_M({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:s},selectionRelatedArgs:{qStateName:i.qStateName},direction:o,onPopoverClose:l});return or.jsx(CI,{tabIndex:-1,hoverBackground:a.headerMenuHoverBackground,activeBackground:a.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:or.jsx(JM,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},jF=j(((e,t)=>or.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:or.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"})}))),_F=j(((e,t)=>or.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:or.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"})}))),zF=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?or.jsx(_F,{height:iI,"data-testid":"head-cell-sort-ascending-icon"}):or.jsx(jF,{height:iI,"data-testid":"head-cell-sort-descending-icon"});return r?or.jsx(gF,{children:n}):void 0},FF=0,HF=1,$F=2,WF=3,BF=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i}=e,{styleService:a}=uM(iM,(e=>e.baseProps)),s=(()=>{const e=uM(iM,(e=>e.baseProps.interactions.active)),t=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:l}=VC(a.header),[u,c]=S.useState(!1);return or.jsxs(OF,{children:[or.jsx(LF,{prio:$F,minWidth:bI,children:AF(t)?or.jsx(IF,{column:t}):null},"Lock"),or.jsx(LF,{prio:HF,minWidth:bI,children:RF(t,s)?or.jsx(PF,{column:t}):null},"Cyclic"),or.jsx(LF,{ignore:!0,children:or.jsx(zF,{column:t})},"Sort"),or.jsx(LF,{minWidth:l(t.label)+8,children:or.jsx(wI,{justifyContent:t.headTextAlign,children:or.jsx(wF,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),or.jsx(LF,{prio:FF,minWidth:bI,children:u||qF(t,s)?or.jsx(NF,{open:u,setOpen:c,column:t}):null},"Search"),or.jsx(LF,{prio:WF,minWidth:bI,children:s?or.jsx(MF,{column:t,open:r,setOpen:n,isPagination:o}):null},"Menu")]})},VF=mc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),UF=()=>{},GF=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=uM(iM,(e=>e.baseProps)),o=uM(iM,(e=>e.showRightBorder)),i=uM(iM,(e=>e.tableData.totalsPosition)),a=!1,s=Zz()?CF:BF;return or.jsx(VF,{className:"sn-table-cell",applicableStyle:{...r.header,...Qz(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:mI(n,a,o),borderLeftWidth:gI(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:or.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:UF})})},YF=({isPagination:e})=>{const{columns:t}=uM(iM,(e=>e.tableData)),[r,n]=I();Xz({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?or.jsx(Mz,{children:or.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:or.jsx(GF,{column:o,isPagination:e})})}):null},KF=[__.configure({activationConstraints:[new L_.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],XF=sz.plugins.filter((e=>e!==gj)),JF=({children:e})=>{const{model:t}=uM(iM,(e=>e.baseProps)),{columns:r}=uM(iM,(e=>e.tableData));return or.jsx(Az,{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:KF,plugins:XF,children:e})};function ZF(e,t){const r=M(!1);T((()=>{r.current?e():r.current=!0}),t)}t.meta.env&&t.meta.env.MODE;let QF=!1;function eH(e,r){"production"===(t.meta.env?t.meta.env.MODE:void 0)||QF||(console.warn("[DEPRECATED] atomFamily is deprecated and will be removed in v3. Please use the `jotai-family` package instead: https://github.com/jotaijs/jotai-family"),QF=!0);let n=null;const o=new Map,i=new Set,a=t=>{let r;if(r=o.get(t),void 0!==r){if(!(null==n?void 0:n(r[1],t)))return r[0];a.remove(t)}const i=e(t);return o.set(t,[i,Date.now()]),s("CREATE",t,i),i},s=(e,t,r)=>{for(const n of i)n({type:e,param:t,atom:r})};return a.unstable_listen=e=>(i.add(e),()=>{i.delete(e)}),a.getParams=()=>o.keys(),a.remove=e=>{{if(!o.has(e))return;const[t]=o.get(e);o.delete(e),s("REMOVE",e,t)}},a.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,r]]of o)n(r,e)&&(o.delete(e),s("REMOVE",e,t))},a}!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},r){var n;let o,i;const a={getItem:(t,n)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==r?void 0:r.reviver)}catch(e){return n}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let s;try{s=null==(n=e())?void 0:n.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,(e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)}))))}();const tH=KE(YA),rH=eH((e=>KE((t=>{const[r,n]=t(tH);return 0===r&&n===e})))),nH=()=>{const{downloadService:e}=uM(iM,(e=>e.baseProps));T((()=>{e.notifyIsDoneRendering()}))},oH=(e,t,r)=>{const{rootElement:n,keyboard:o}=uM(iM,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=uM(iM,(e=>e.tableData)),[u,c]=function(e){return[sR(e),lR(e)]}(tH),d=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal()));ZF((()=>{const r=((e,t,r=!1)=>{const n=[rF(t),e[1]];return r?n:YA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(aF(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=nF(t,e);r.current?(sF(s),r.current=!1):oF(s),n&&(a({keys:[s?.textContent??""]}),AI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},iH=(e,t,r)=>{T((()=>{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])},aH=e=>{qC(e),II(e)&&gE(e.currentTarget)},sH=e=>{TI(e.evt)&&(qC(e.evt),uF(e))},lH=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!TI(t))return;qC(t);const i=((e,t)=>[e.pageRowIdx+rF(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?rF(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=uF({...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:VA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):AI(o,a,i)})({...e,nextCell:s})},uH=e=>{const{evt:t}=e;MI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{qC(e);const a=Math.ceil(t/r)-1;e.key===sE.Right&&n<a?(o(),i(n+1)):e.key===sE.Left&&n>0&&(o(),i(n-1))})(e):t.key===sE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(qC(e),t.blur?.(!0))})(e):kI(t.key)&&qC(t)},cH=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(BA.Disabled))return void qC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case sE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{qC(e),t.isSelectable&&r&&n({type:VA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case sE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{qC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case sE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(qC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case sE.C:aH(t);break;case sE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(qC(e),LC(e.currentTarget,t,e.shiftKey))})(n);break;default:lH(n)}},dH=e=>{const t=uM(iM,(e=>e.isAdjustingWidth)),r=uM(iM,(e=>e.setXScrollbarWidth)),n=uM(iM,(e=>e.setYScrollbarWidth)),o=uM(iM,(e=>e.eventEmitter)),i=M();DF(e,(a=>{const s=()=>{if(e.current){const e=a.at(0)?.borderBoxSize.at(0)?.inlineSize??0,t=a.at(0)?.borderBoxSize.at(0)?.blockSize??0,o=a.at(0)?.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.at(0)?.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()})),T((()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}}),[o])},pH=mc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),fH=mc(Yh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),hH=mc(Th,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),mH=()=>or.jsxs(or.Fragment,{children:[or.jsx(pH,{className:GA.First,"data-testid":GA.First,"aria-live":"polite","aria-atomic":"true"}),or.jsx(pH,{className:GA.Second,"data-testid":GA.Second,"aria-live":"polite","aria-atomic":"true"})]}),gH=e=>{const t=M(new Map),r=M(null);T((()=>{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=q(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=q((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return A((()=>({addTask:n,removeTask:o})),[n,o])},bH=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),vH=()=>gH(bH),yH=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{T((()=>{const i=()=>{t({type:VA.Reset})},a=()=>{t({type:VA.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])},xH=e=>{e.stopPropagation()},SH=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:xH,color:IC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),wH=({href:e,text:t,interactions:r,color:n})=>or.jsx(nf,{...SH({href:e,text:t,interactions:r,color:n}),children:t}),CH=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),EH=window.cancelIdleCallback??(e=>{clearTimeout(e)}),RH="qDimensionInfo/0",PH="qMeasureInfo/0",AH="x",IH="y",MH=e=>({key:"bars",type:"box",data:{extract:{field:RH,props:{start:0,end:{field:PH}}}},settings:{major:{scale:AH},minor:{scale:IH},box:{maxWidthPx:8,fill:{fn:e}}}}),kH=e=>({key:"p",type:"point",data:{extract:{field:RH,props:{y:{field:PH}}}},settings:{x:{scale:AH},y:{scale:IH},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),DH=({qNum:e})=>void 0===e?0:Math.sign(e),TH=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=TC(e,t?.negative,r),a=TC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:RH,props:{start:0,end:{field:PH,value:DH}}}},settings:{major:{scale:AH},minor:{scale:IH},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}}}}},OH=(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=TC(e,t?.main,o),l=TC(e,t?.max,s),u=TC(e,t?.min,s),c=TC(e,t?.first,s),d=TC(e,t?.last,s);return e=>{const t=IH in e.datum?IH:"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[MH(a)];case"dots":return[kH(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:RH,props:{v:{field:PH}}}},settings:{coordinates:{major:{scale:AH},minor:{scale:IH,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(TC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,kH(a)]:[t]}case"posNeg":return[TH(e,n)];default:return[]}},LH=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"}),qH=(e,t,r,n)=>({y:{data:{field:PH},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:RH}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),NH=G();NH.use(U),NH.renderer.prio(["canvas"]);const jH={resolve:()=>{},promise:{}},_H=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=M(e.isDownloadedAsPDForImage?Dt():jH);return{addChartPromiseToQueue:q((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:q((()=>{if(null===t.current||null!==e.current)return;u();r.current=CH((()=>{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 NH.chart({element:e,data:{type:"q",key:"qHyperCube",data:LH(s)},settings:{scales:qH(a,l,u,i),components:OH(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:q((()=>{null!==r.current&&EH(r.current),r.current=null,l()}),[r,l])}},zH=e=>{const t=M(null),r=M(!1);return q((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(EH(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=CH((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},FH=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=M(null),l=M(null),u=M(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=_H({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=q((e=>{e.isIntersecting?n():r()}),[n,r]);T((()=>{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})=>{T((()=>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=zH(t);T((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},HH=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=FH({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return or.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},$H=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}`},WH=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},BH=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=uM(iM,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=or.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:WH(s),objectPosition:$H(l),overflow:"hidden"}});return n?or.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?cI(o,e):void 0},children:c}):c},VH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),UH=j(((e,t)=>or.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:or.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"})}))),GH=j(((e,t)=>or.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:[or.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"}),or.jsx("use",{fillRule:"evenodd"})]}))),YH=j(((e,t)=>or.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:or.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"})}))),KH=j(((e,t)=>or.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:or.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"})}))),XH=j(((e,t)=>or.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:or.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"})}))),JH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M2 7.5h12v1H2z"})}))),ZH=j(((e,t)=>or.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:or.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"})}))),QH=j(((e,t)=>or.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:or.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"})}))),e$=j(((e,t)=>or.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:or.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"})}))),t$=j(((e,t)=>or.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:or.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"})}))),r$={m:j(((e,t)=>or.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:or.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":e$,R:_F,S:jF,T:j(((e,t)=>or.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:or.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:j(((e,t)=>or.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:or.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:QH,Q:XH,"è":j(((e,t)=>or.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:or.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"})}))),"¢":YH,"©":GH,"23F4":KH,2013:t$,"&":ZH,add:VH,"minus-2":JH,dot:UH},n$=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&r$[t];return o&&or.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:or.jsx(o,{style:{height:e}})})},o$=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=uM(iM,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=rI(e,t,i,o),d=(e=>parseInt(e||iI,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?or.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&&n$({size:d,iconKey:f,color:p}),or.jsx(wF,{isNumeric:!0,children:a}),"right"===h&&n$({size:d,iconKey:f,color:p})]}):n$({size:d,iconKey:f,color:p})},i$=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,a$=({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}=uM(iM,(e=>e.baseProps)),h=uM(iM,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==NR.Link||h||(m=or.jsx(wH,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===NR.Image)return or.jsx(BH,{representation:t.representation,textStyle:r,maxImageHeight:i$(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!==NR.Indicator||Number.isNaN(g)?t.representation.type===NR.MiniChart&&t.representation.miniChart&&!t.isNull?or.jsx(HH,{height:i$(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):or.jsx(wF,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):or.jsx(o$,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},s$=()=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:or.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),l$=mc("div")({"& path":{stroke:"none !important"}}),u$=({children:e,cellSelectionState:t})=>t===BA.Selected?or.jsxs(xF,{children:[e,or.jsx(l$,{children:or.jsx(s$,{})})]}):e,c$=e=>{const t=function(){const e=Iz(),t=hz((()=>null==e?void 0:e.dragOperation.source),[e]),r=hz((()=>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},d$=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:VA.SelectMultiEnd})};r({type:VA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:VA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:VA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),p$=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=uM(iM,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=uM(iM,(e=>e.baseProps)),u=lR(tH),c=uM(iM,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{cH({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===sE.Shift&&t({type:VA.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;cF([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}=d$(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},f$=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=BA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?BA.Disabled:n.has(e.qElemNumber)?BA.Selected:BA.Possible),i},h$=(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},m$=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},g$=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return m$(t,e,n?"even":"odd")}return e},b$=(e,t)=>{const{styleService:r}=uM(iM,(e=>e.baseProps)),n=uM(iM,(t=>f$(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=g$(o,r,e),o=h$(o,r,e);const i=UI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===BA.Selected?{...e,...r}:t===BA.Disabled?{...e,background:`${nI}, ${e.background}`}:e}(A((()=>e.isNull?o:UI(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}},v$=mc(zh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),y$=mc(am,{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}}}))),x$=mc(Bh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...lI,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),S$=mc(Bh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...lI,...e,fontWeight:aI,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0}))),w$=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=uM(iM,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=p$(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=b$(e,r),g=c$(r.id);return or.jsx(x$,{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} ${aE}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:or.jsx(u$,{cellSelectionState:m,children:or.jsx(a$,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:hI(s,e.align)})})})},C$=KE(0),E$=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const{styleService:o,interactions:i}=uM(iM,(e=>e.baseProps)),a=sR(C$),s=c$(e.id);return or.jsx(S$,{totalsStyle:{...o.totalRow,...Qz(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${aE}`,tabIndex:-1,title:i.passive?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:or.jsx(wF,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},R$=()=>{const{columns:e,totalsPosition:t,rows:r}=uM(iM,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=uM(iM,(e=>e.baseProps)),l=lR(tH),u=!!o?.isModal(),c=!!a.active;return or.jsx(am,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return or.jsx(E$,{column:e,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case sE.C:aH(r);break;case sE.Space:r.preventDefault();break;default:sH(e)}else qC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:l,isSelectionMode:u,isInteractionEnabled:c,direction:s})},onMouseDown:()=>{cF(a,n,l,i)}},e.id)}))})};var P$=_(R$);const A$=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=uM(iM,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=uM(iM,(e=>e.baseProps)),c=uM(iM,(e=>e.selectionDispatch)),d=!!$I(l)?.content?.hoverEffect;yH({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=q((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return gH(t)})(t),f=vH();return or.jsxs(v$,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?or.jsx(P$,{}):void 0,n.map(((e,t)=>or.jsx(y$,{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 or.jsx(w$,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?or.jsx(P$,{}):void 0]})};var I$=_(A$);const M$=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,k$=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,direction:l}=uM(iM,(e=>e.baseProps)),u=sR(cR),c=uM(iM,(e=>e.columnWidths)),d=uM(iM,(e=>e.setColumnWidths));if(!s.active)return null;return or.jsx(hM,{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=>{iF(e);const t=e.closest(".sn-table-cell");sF(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:l})},D$=e=>e.target?.getAttribute("class")?.includes(lE),T$=({isInteractionEnabled:e,column:t})=>{const[r,n]=I(!1),{changeSortOrder:o}=uM(iM,(e=>e.baseProps)),i=uM(iM,(e=>e.isAdjustingWidth)),a=uM(iM,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||D$(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!D$(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var O$=Object.defineProperty,L$=Object.defineProperties,q$=Object.getOwnPropertyDescriptors,N$=Object.getOwnPropertySymbols,j$=Object.prototype.hasOwnProperty,_$=Object.prototype.propertyIsEnumerable,z$=(e,t,r)=>t in e?O$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F$=(e,t)=>{for(var r in t||(t={}))j$.call(t,r)&&z$(e,r,t[r]);if(N$)for(var r of N$(t))_$.call(t,r)&&z$(e,r,t[r]);return e},H$=(e,t)=>L$(e,q$(t)),$$=class extends WL{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return H$(F$({},e),{[t]:r})}};$$.configure=uO($$);var W$=$$;W$.configure({axis:"x",value:0}),W$.configure({axis:"y",value:0});var B$=class extends WL{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$(F$({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};B$.configure=uO(B$);var V$=class extends WL{constructor(e,t){super(e,t),this.boundingRectangle=Yk(null),this.destroy=oD((()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=rq(r)},i=()=>{n||(n=setTimeout((()=>{o(),n=void 0}),25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}}))}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=F$({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new ET(l,u,s,a),r,n);return c}};V$.configure=uO(V$);var U$=V$,G$=Object.create,Y$=Object.defineProperty,K$=Object.defineProperties,X$=Object.getOwnPropertyDescriptor,J$=Object.getOwnPropertyDescriptors,Z$=Object.getOwnPropertySymbols,Q$=Object.prototype.hasOwnProperty,eW=Object.prototype.propertyIsEnumerable,tW=e=>{throw TypeError(e)},rW=(e,t,r)=>t in e?Y$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nW=(e,t)=>{for(var r in t||(t={}))Q$.call(t,r)&&rW(e,r,t[r]);if(Z$)for(var r of Z$(t))eW.call(t,r)&&rW(e,r,t[r]);return e},oW=(e,t)=>K$(e,J$(t)),iW=["class","method","getter","setter","accessor","field","value","get","set"],aW=e=>void 0!==e&&"function"!=typeof e?tW("Function expected"):e,sW=(e,t,r,n,o)=>({kind:iW[e],name:t,metadata:n,addInitializer:e=>r._?tW("Already initialized"):o.push(aW(e||null))}),lW=(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},uW=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=iW[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,X$({get[r](){return dW(this,i)},set[r](e){return fW(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=sW(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?aW(s)&&(g[f]=s):"object"!=typeof s||null===s?tW("Object expected"):(aW(a=s.get)&&(g.get=a),aW(a=s.set)&&(g.set=a),aW(a=s.init)&&h.unshift(a));return g&&Y$(o,r,g),o},cW=(e,t,r)=>t.has(e)||tW("Cannot "+r),dW=(e,t,r)=>(cW(e,t,"read from private field"),t.get(e)),pW=(e,t,r)=>t.has(e)?tW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),fW=(e,t,r,n)=>(cW(e,t,"write to private field"),t.set(e,r),r);function hW(e){return e instanceof WW||e instanceof $W}var mW=Object.defineProperty,gW=Object.defineProperties,bW=Object.getOwnPropertyDescriptors,vW=Object.getOwnPropertySymbols,yW=Object.prototype.hasOwnProperty,xW=Object.prototype.propertyIsEnumerable,SW=(e,t,r)=>t in e?mW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wW=(e,t)=>{for(var r in t||(t={}))yW.call(t,r)&&SW(e,r,t[r]);if(vW)for(var r of vW(t))xW.call(t,r)&&SW(e,r,t[r]);return e},CW=(e,t)=>gW(e,bW(t));function EW(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function RW(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 CW(wW({},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 CW(wW({},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,EW)}var PW="__default__";function AW(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function IW(e,t){return e.index-t.index}function MW(e){return Array.from(e).sort(IW)}var kW,DW,TW,OW,LW,qW,NW,jW,_W=[class extends dO{constructor(e){super(e);const t=oD((()=>{const{dragOperation:t}=e;if(MN(t.activatorEvent)&&hW(t.source)&&t.status.initialized){const t=e.registry.plugins.get(v_);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(!MN(e.nativeEvent))return;if(!hW(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=[];zk((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&hW(e)||!e.element)continue;let r=e.shape;const n=new RN(e.element,{getBoundingClientRect:e=>dq(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,ON);zk((()=>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||!hW(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;vN(c);const d=new RN(c);if(!d)return;const p=ET.delta(d,ET.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 dO{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof WW){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(MW(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!hW(o)||!hW(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=MW(l),g=s?m:MW(u),b=null!=(c=o.sortable.group)?c:PW,v=null!=(d=i.sortable.group)?d:PW,y={[b]:m,[v]:g},x=RW(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),AW(f,S,h,w),zk((()=>{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;hW(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=MW(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(AW(r,i.index,a,o.index),zk((()=>{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()}}}],zW={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},FW=new class{constructor(){VD(this,eT,new WeakMap)}get(e,t){var r;return e?null==(r=BD(this,eT).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return BD(this,eT).has(e)||BD(this,eT).set(e,new Map),null==(n=BD(this,eT).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=BD(this,eT).get(e))?void 0:t.clear():void 0}};DW=[XD],kW=[XD];var HW=class{constructor(e,t){pW(this,OW,lW(TW,8,this)),lW(TW,11,this),pW(this,LW),pW(this,qW),pW(this,NW,lW(TW,12,this)),lW(TW,15,this),pW(this,jW),this.register=()=>(zk((()=>{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=()=>{zk((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{zk((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=zW,plugins:u=_W}=r,c=((e,t)=>{var r={};for(var n in e)Q$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Z$)for(var n of Z$(e))t.indexOf(n)<0&&eW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new WW(c,t,this),this.draggable=new $W(oW(nW({},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)&&FW.clear(this.manager),(null==n?void 0:n.dragging)&&FW.set(this.manager,this.id,Hk((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=dW(this,qW),o=dW(this,LW);e===n&&t===o||(fW(this,qW,e),fW(this,LW,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),fW(this,jW,c.element),this.manager=t,this.index=i,fW(this,qW,i),this.group=o,fW(this,LW,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=FW.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=FW.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){Hk((()=>{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}=aN(n),l=xN(n,s,!1),u=xN(n,s);if(i||a){const r=vq(iq(n))?oW(nW({},t),{duration:0}):t;yN({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}}))}))}get manager(){return this.draggable.manager}set manager(e){zk((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){zk((()=>{const t=dW(this,jW),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),fW(this,jW,e)}))}get element(){var e,t;const r=dW(this,jW);if(r)return null!=(t=null!=(e=wq.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){zk((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){zk((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){zk((()=>{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:TN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){zk((()=>{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)}};TW=[,,,G$(null)],OW=new WeakMap,LW=new WeakMap,qW=new WeakMap,NW=new WeakMap,jW=new WeakMap,uW(TW,4,"index",DW,HW,OW),uW(TW,4,"group",kW,HW,NW),((e,t)=>{return rW(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(TW,HW);var $W=class extends uz{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},WW=class extends cz{constructor(e,t,r){super(e,t),this.sortable=r}},BW=Object.defineProperty,VW=Object.defineProperties,UW=Object.getOwnPropertyDescriptors,GW=Object.getOwnPropertySymbols,YW=Object.prototype.hasOwnProperty,KW=Object.prototype.propertyIsEnumerable,XW=(e,t,r)=>t in e?BW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JW=(e,t)=>{for(var r in t||(t={}))YW.call(t,r)&&XW(e,r,t[r]);if(GW)for(var r of GW(t))KW.call(t,r)&&XW(e,r,t[r]);return e};function ZW(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=JW(JW({},zW),e.transition),b=function(e){var t;const r=null!=(t=Iz())?t:void 0,[n]=I((()=>e(r)));return n.manager!==r&&(n.manager=r),pz(n.register,[r,n]),n}((t=>new HW(((e,t)=>VW(e,UW(t)))(JW({},e),{transition:g,register:!1,handle:dz(s),element:dz(a),target:dz(h),feedback:d}),t))),v=mz(b,QW);return vz(o,(()=>b.id=o)),pz((()=>{zk((()=>{b.group=u,b.index=l}))}),[b,u,l]),vz(m,(()=>b.type=m)),vz(t,(()=>b.accept=t),void 0,KD),vz(i,(()=>i&&(b.data=i))),vz(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),gz),yz(s,(e=>b.handle=e)),yz(a,(e=>b.element=e)),yz(h,(e=>b.target=e)),vz(c,(()=>b.disabled=!0===c)),vz(f,(()=>b.sensors=f)),vz(r,(()=>b.collisionDetector=r)),vz(n,(()=>b.collisionPriority=n)),vz(d,(()=>b.feedback=null!=d?d:"default")),vz(g,(()=>b.transition=g),void 0,KD),vz(p,(()=>b.modifiers=p),void 0,KD),vz(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:q((e=>{b.handle=null!=e?e:void 0}),[b]),ref:q((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:q((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:q((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 QW(e,t,r){return!("isDragSource"!==e||r||!t)}const eB=({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/CT.distance(r.shape.center,s),type:LO.Collision,priority:OO.Normal}:null},tB=[U$.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],rB=(e,t)=>{const{interactions:r,direction:n}=uM(iM,(e=>e.baseProps)),{flags:o}=uM(iM,(e=>e.env)),i=!r.active||!o.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return ZW({id:e.id,disabled:i,index:t,type:"item",accept:"item",group:"column",modifiers:tB,data:e,feedback:"clone",collisionDetector:eB({invert:"rtl"===n})})},nB=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=uM(iM,(e=>e.baseProps)),{columns:l,totalsPosition:u}=uM(iM,(e=>e.tableData)),c=uM(iM,(e=>e.columnWidths[t])),d=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal())),p=lR(tH),f=sR(rH(t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=T$({isInteractionEnabled:h,column:e}),{ref:x,isDragging:S}=rB(e,t),w=c$(e.id),C=Zz(),E=C?CF:BF,R=e.isActivelySorted?UA[e.sortDirection]:void 0,P=m?iE:void 0,A=m?"true":void 0,I=t===r-1,M=[0,e.pageColIdx],k={width:c,zIndex:l.length-t},D=f&&0===t&&!i.enabled&&h?0:-1;return or.jsxs(fF,{"data-dragging":S,ref:x,headerStyle:{...a.header,...Qz(a,u,!0),opacity:w},background:C&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:k,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${aE}`,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 sE.C:aH(r);break;case sE.Enter:case sE.Space:n?.(r);break;default:sH(e)}else qC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,isInteractionEnabled:h,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&cF(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:C?b:y,"aria-sort":R,"aria-controls":P,"aria-expanded":A,"aria-haspopup":"true",children:[or.jsx(E,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),or.jsx(k$,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},oB=()=>{const{columns:e}=uM(iM,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=uM(iM,(e=>e.baseProps)),o=lR(C$),i=uM(iM,(e=>e.columnWidths)),a=M(null),s=M$(r,n);return T((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),or.jsx(em,{style:{visibility:s?"collapse":void 0},children:or.jsx(am,{ref:a,className:"sn-table-row sn-table-head-row",style:{position:"sticky",top:0},children:e.map(((t,r)=>or.jsx(nB,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var iB=_(oB);const aB=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}=uM(iM,(e=>e.tableData)),{rootElement:f,keyboard:h,theme:m,interactions:g,styleService:b,viewService:v,layout:y,rect:x,direction:S}=uM(iM,(e=>e.baseProps)),w=sR(cR),C=uM(iM,(e=>e.showRightBorder)),E=uM(iM,(e=>e.selectionDispatch)),R=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal())),P=M(!1),A=M(null),I=M(null),k=`${w.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${w.get("SNTable.Accessibility.NavigationInstructions")}`,D=_A(y,v),O=D?v.scrollLeft??0:0,L=D?v.rowPartialHeight??0:0,N=q((()=>{P.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),j=q((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),_=q((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return iH(A,S,v),((e,t)=>{const{keyboard:r}=uM(iM,(e=>e.baseProps));T((()=>{const n=e.current;if(!n)return;const o=e=>{dF(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(I,P),(()=>{const{rootElement:e,keyboard:t}=uM(iM,(e=>e.baseProps)),r=sR(tH);XC((()=>{const n=nF(e,r);t.active?sF(n):(n?.blur(),aF(e))}),[t.active,e])})(),oH(P,o,i),T((()=>{const e=A.current;e&&(e.scrollLeft=O,e.scrollTop=L)}),[t,l,O,L]),ZF((()=>{E({type:VA.UpdatePageRows,payload:{pageRows:d}})}),[d]),nH(),dH(A),or.jsxs(JF,{children:[or.jsxs(vF,{ref:I,dir:S,onKeyDown:e=>{uH({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:j,updateShouldRefocus:N,keyboard:h,isSelectionMode:R})},"data-testid":"sn-table",children:[or.jsx(mH,{}),or.jsxs(fH,{ref:A,className:"sn-table-container",fullHeight:!!n||!g.active||!c,interactions:g,tabIndex:-1,role:"application","data-testid":"table-container",children:[or.jsxs(hH,{stickyHeader:!0,"aria-label":k,borderRight:C?`1px solid ${b.grid.border}`:void 0,children:[or.jsx(iB,{}),or.jsx(I$,{...e,updateShouldRefocus:N,tableWrapperRef:I})]}),or.jsx(Jz,{})]}),or.jsx(Nk,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:w,interactions:g,rect:x,layout:y,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:R,direction:S})]}),or.jsx(YF,{isPagination:!0})]})};var sB=_(aB);function lB(){return lB=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},lB.apply(null,arguments)}function uB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cB(e,t){return cB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cB(e,t)}function dB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cB(e,t)}var pB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fB(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||pB(n)&&pB(o)))return!1;var n,o;return!0}function hB(e,t){var r;void 0===t&&(t=fB);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 mB(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 gB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function bB(e){cancelAnimationFrame(e.id)}function vB(e,t){var r=gB();var n={id:requestAnimationFrame((function o(){gB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var yB=-1;function xB(e){if(void 0===e&&(e=!1),-1===yB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),yB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return yB}var SB=null;function wB(e){if(void 0===e&&(e=!1),null===SB||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?SB="positive-descending":(t.scrollLeft=1,SB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),SB}return SB}var CB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function EB(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,uB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:uB(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=hB((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=hB((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=hB((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(wB()){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&&bB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=vB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}dB(t,e),t.getDerivedStateFromProps=function(e,t){return RB(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=xB();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(wB()){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&&bB(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?CB: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(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),P=R[0],A=R[1],I=[];if(n>0&&g)for(var M=P;M<=A;M++)for(var k=C;k<=E;k++)I.push(w(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:lB({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(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 RB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},PB=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},AB=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},IB=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]},MB=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?kB(e,t,r,i,0,n):DB(e,t,r,Math.max(0,i),n)},kB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=IB(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},DB=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&IB(e,t,n,r).offset<o;)n+=a,a*=2;return kB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},TB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=IB(e,t,r,i),u="column"===e?AB(t,i):PB(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}},OB=EB({getColumnOffset:function(e,t,r){return IB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return MB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=IB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:PB,getEstimatedTotalWidth:AB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return TB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return TB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return IB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return MB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=IB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IB("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}}),LB=function(e,t){return e};function qB(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,uB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:uB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=hB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=hB((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=hB((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(wB()){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&&bB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=vB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}dB(t,e),t.getDerivedStateFromProps=function(e,t){return NB(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?xB():0:l.scrollHeight>l.clientHeight?xB():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(wB()){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&&bB(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?LB: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,C=this._getRangeToRender(),E=C[0],R=C[1],P=[];if(u>0)for(var A=E;A<=R;A++)P.push(w(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 w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:lB({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(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 NB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},jB=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]},_B=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=jB(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},zB=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&jB(e,r,t).offset<n;)r+=i,i*=2;return _B(e,t,Math.min(r,o-1),Math.floor(r/2),n)},FB=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},HB=qB({getItemOffset:function(e,t,r){return jB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:FB,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=jB(e,t,o),p=FB(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?_B(e,t,o,0,r):zB(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=jB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=jB(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 $B(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 WB=["style"],BB=["style"];function VB(e,t){var r=e.style,n=mB(e,WB),o=t.style,i=mB(t,BB);return!$B(r,o)&&!$B(n,i)}const UB=KE(-1),GB=eH((e=>KE((t=>t(UB)===e)))),YB=({style:e})=>or.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var KB=S.memo(YB,VB);const XB=()=>{},JB=e=>{e.preventDefault()};const ZB=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=sR(GB(t)),d=lR(UB),{interactions:p,styleService:f,direction:h}=uM(iM,(e=>e.baseProps)),m=uM(iM,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=uM(iM,(e=>e.baseProps)),r=uM(iM,(e=>e.selectionDispatch)),n="object"==typeof e,o=uM(iM,(t=>n?f$(e,t.selectionState):BA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=d$(JB,e,r,XB);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=M(null),i=r&&!r.isNumeric,a=q((r=>{const o=kF(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return DF(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=c$(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=g$(o,i,e);a=h$(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?UI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===BA.Selected?{...s,...i.selectedColors}:n===BA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${nI}, ${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 or.jsx("div",{className:`sn-table-cell ${x} ${aE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:mI(h,g.isLastColumn,m),borderLeftWidth:gI(h,g.isLastColumn,m),justifyContent:dI(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:or.jsx(u$,{cellSelectionState:x,children:or.jsx(a$,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return or.jsx(KB,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var QB=_(ZB,VB);const eV=e=>{const t=M(e);return t.current=e,t},tV=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,rV=(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},nV=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},oV=(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=MA(h,e,a),C=!h&&e.qIsNull,E=C?NP(w):qP(e);f[r]={id:TP(),...e,align:NA(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)&&IA(e,h),representation:AA({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[NR.Image]:!0,[NR.Indicator]:!0,[NR.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}))}))},iV=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=uM(iM,(e=>e.env)),{direction:p}=uM(iM,(e=>e.baseProps)),f=M([]),h=q(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return oV(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=I((()=>h(n??[])));XC((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=eV(e),a=eV(t),s=A((()=>({enqueue:e=>{const t=tV(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(tV(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=q(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(nV(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=q(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(rV(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return T((()=>{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}},aV=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},sV=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,lV=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=uM(iM,(e=>e.baseProps.styleService)),i=uM(iM,(e=>e.columnWidths)),{estimateLineCount:a}=VC(o.dimension.values),s=eM(o.dimension.values.fontSize),l=e||t||1===r;return q(((e,t,o)=>{if(l||e.representation.type===NR.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])},uV=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0,viewService:o})=>{N((()=>{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])},cV=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=uM(iM,(e=>e.baseProps)),[a,s]=I({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}=uM(iM,(e=>e.baseProps)),o=uM(iM,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;XC((()=>{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]),XC((()=>{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})=>q(((o,i,a)=>{F((()=>{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(!sV(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,aV(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})=>q(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),b=lV({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),v=q((e=>c?h??u:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]);return uV({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},dV=(e,t)=>{N((()=>()=>{t(0)}),[e,t]);const r=q((e=>{const r=kF(e);void 0!==r&&t(r)}),[t]);DF(e,r)};let pV=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const fV=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>q((({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=pV.None,i=pV.None;return o=n>t?pV.Down:n<t?pV.Up:pV.None,i=r>e?pV.Right:r<e?pV.Left:pV.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===pV.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===pV.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===pV.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===pV.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]),hV={enabled:!1},mV=()=>{},gV={current:null};const bV=(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=A((()=>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}},vV=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},yV={overflow:"hidden",willChange:"auto"};var xV=_(j(((e,t)=>{const{rect:r,columns:n,pageInfo:o,setInnerBodyHeight:i,bodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=uM(iM,(e=>e.baseProps)),f=uM(iM,(e=>e.columnWidths)),h=uM(iM,(e=>e.initialDataPages)),m=M(null),g=M(null),b=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=M(0),y=!!$I(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=bV(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:C,setEstimatedCellHeight:E,getRowHeight:R,lineClamp:P}=cV({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:I,loadRows:k,loadColumns:D}=iV({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:E}),O=fV({layout:s,loadRows:k,loadColumns:D,rowCount:x,pageInfo:o,gridState:b,viewService:c}),L=vH(),q=A((()=>({rowsInPage:I,columns:n,isHoverEnabled:y,lineClamp:P,setMeasuredCellHeight:C,resizeObserverTaskScheduler:L})),[I,n,y,P,C,L]);return N((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=uM(iM,(e=>e.baseProps)),r=uM(iM,(e=>e.selectionDispatch));T((()=>{r({type:VA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),yH({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:mV,keyboard:hV,tableWrapperRef:gV})}(I),H(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??a)-a,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,a,x]),dV(g,i),or.jsx(OB,{"data-key":"body",ref:m,innerRef:g,style:yV,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:a,rowCount:x,rowHeight:R,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:q,onItemsRendered:O,itemKey:vV,className:"sn-table-body",direction:p,children:QB})})));const SV=({width:e,height:t,children:r})=>or.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),wV=(e,t)=>{const r=M(null),n=uM(iM,(e=>e.columnWidths));N((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=q((r=>{const n=kF(r);n&&t(n+9,e)}),[e,t]);return DF(r,o),r},CV=mc("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}}))),EV=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=uM(iM,(e=>e.baseProps)),u=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal())),c=uM(iM,(e=>e.showRightBorder)),d=uM(iM,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=T$({isInteractionEnabled:p,column:f}),y=Zz(),x=wV(e,i),S=n.length-1===e,w=y?CF:BF,{ref:C,isDragging:E}=rB(f,e),R=c$(f.id);return or.jsxs(CV,{"data-dragging":E,ref:C,className:`sn-table-cell ${aE}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...Qz(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:mI(l,S,c),borderLeftWidth:gI(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:[or.jsx(w,{forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),or.jsx(k$,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},RV=e=>{const[t,r]=I(new Map);XC((()=>{r(new Map)}),[e.length]);const n=q(((e,t)=>{r((r=>sV(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:A((()=>aV(t)),[t]),setMeasuredCellHeight:n}},PV=(e,t)=>{H(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},AV=(e,t,r,n,o)=>{XC((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},IV={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},MV=j(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=S.useRef(null),l=M(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=uM(iM,(e=>e.baseProps)),h=uM(iM,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=RV(n),b=M$(f,u);return PV(t,s),AV(s,u,o,h,c),dV(l,a),or.jsx(HB,{className:"sn-table-head-row",ref:s,outerRef:l,layout:"horizontal",style:{...IV,...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:EV})}));var kV=_(MV);const DV=j(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=uM(iM,(e=>e.baseProps));return or.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,tabIndex:-1,children:r})})),TV=({children:e,rect:t})=>{const{direction:r}=uM(iM,(e=>e.baseProps));return or.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})},OV=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=uM(iM,(e=>e.baseProps)),c=uM(iM,(e=>e.showRightBorder)),d=wV(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=c$(n[e].id);return or.jsx("div",{className:`sn-table-cell ${aE}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...Qz(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:mI(u,m,c),borderLeftWidth:gI(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:or.jsx(wF,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},LV=j(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=M(null),l=M(null),{layout:u,theme:c,styleService:d,direction:p}=uM(iM,(e=>e.baseProps)),f=uM(iM,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=RV(i);return PV(t,s),AV(s,u,n,f,c),dV(l,a),or.jsx(HB,{ref:s,outerRef:l,layout:"horizontal",style:IV,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:OV})}));var qV=_(LV);const NV=(e,t,r,n,o)=>q((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]),jV=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=uM(iM,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=uM(iM,(e=>e.baseProps)),c=uM(iM,(e=>e.columnWidths)),d=M(null),p=M(null),f=M(null),h=M(null),m=A((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),g=uM(iM,(e=>e.yScrollbarWidth)),b=uM(iM,(e=>e.xScrollbarWidth)),v=A((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(m,b,g)),[m,b,g]),{rowCount:y}=bV(i,t,v,c,0),{headerAndTotalsHeight:x,innerBodyHeight:S,setHeaderRowHeight:w,setTotalsRowHeight:C,setInnerBodyHeight:E}=(()=>{const[e,t]=I(0),[r,n]=I(0),[o,i]=I(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:R,height:P}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=uM(iM,(e=>e.baseProps)),a=e+t;let s=r*i.contentMinRowHeight+t;return a<2*n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:S,headerAndTotalsHeight:x,rowCount:y,stickyContainerRect:v,columnWidths:c}),k=NV(p,f,h,l,u),D=((e,t,r)=>Math.min(e.height-t,r))(v,x,S),T=q((()=>{d.current&&(d.current.scrollTop=0)}),[d]);nH(),N((()=>{d.current&&(d.current.scrollLeft=0,d.current.scrollTop=0)}),[n.length]),N((()=>{d.current&&(d.current.scrollTop=0)}),[t,y,a]),dH(d);const O=or.jsx(qV,{rect:v,pageInfo:t,columns:n,ref:f,totals:r,setTotalsRowHeight:C},"totals");return or.jsxs(JF,{children:[or.jsx(DV,{ref:d,width:m.width,height:m.height,onScroll:k,children:or.jsxs(SV,{width:R,height:P,children:[or.jsxs(TV,{rect:v,children:[or.jsx(kV,{rect:v,pageInfo:t,columns:n,ref:p,columResizeHandler:T,setHeaderRowHeight:w}),r.atTop?O:null,or.jsx(xV,{ref:h,rect:v,pageInfo:t,columns:n,setInnerBodyHeight:E,bodyHeight:D}),r.atBottom?O:null]}),or.jsx(Jz,{})]})}),or.jsx(YF,{isPagination:!1})]})};var _V=_(jV);const zV=()=>{const{theme:e,keyboard:t,interactions:r,rect:n,layout:o}=uM(iM,(e=>e.baseProps)),{paginationNeeded:i,totalRowCount:a,totalColumnCount:s,totalPages:l}=uM(iM,(e=>e.tableData)),u=sR(cR),c=uM(iM,(e=>e.pageInfo)),d=uM(iM,(e=>e.setPage));return or.jsxs(vF,{"data-testid":"sn-table",children:[or.jsx(_V,{pageInfo:c}),or.jsx(Nk,{paginationNeeded:i,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:a,totalColumnCount:s,totalPages:l,keyboard:t,translator:u,theme:e,interactions:r,rect:n,layout:o})]})};var FV=_(zV);var HV={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 $V=(e,t)=>{const n=t.get(cR);return r((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(HV).forEach((t=>{e.add(HV[t])}))}(n),((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(`.${GA.First}`),s=e.querySelector(`.${GA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===GA.First?(l=s,r=GA.Second):(l=a,r=GA.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}})(e,n))),[e,n.language()])},WV={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},BV=(e,t)=>{const{model:r,rootElement:o,layout:s,reactRoot:l,isFontLoaded:u,viewService:c,env:d}=e,{direction:p,footerContainer:f}=n(),h=zA(s,c),m=$V(o,t),[g,b]=i(((e,t)=>_A(e,t)?{page:t.page||WV.page,rowsPerPage:t.rowsPerPage||WV.rowsPerPage,rowsPerPageOptions:WV.rowsPerPageOptions}:WV)(s,c)),[v,y]=$C((async()=>h?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>kA)return n({...r,rowsPerPage:DA(d,c),page:0}),null;const g=p>10,b=TA(t,o),v=jA(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=MA(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?NP(c):qP(u);n[l]={id:TP(),...u,align:NA(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)&&IA(u,o.isDim),representation:AA({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[NR.Image]:!0,[NR.Indicator]:!0,[NR.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(r,s,g,b,c,d,!0,p):null),[s,g,r,h,p]);a((()=>{h&&e.model&&e.changeSortOrder&&v&&u&&!y&&function(e,t,r){const{direction:n,...o}=e,i=cM(n);t.render(or.jsx(bi,{stylisPlugins:"rtl"===n?[WA]:void 0,children:or.jsx(bc,{theme:i,children:or.jsx(tR,{store:r,children:or.jsx(lM,{...e,children:or.jsx(sB,{...o})})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:v,pageInfo:g,setPageInfo:b,direction:p,footerContainer:f,announce:m},l,t)}),[m,p,f,u,g,l,e,h,v,y,t])},VV=e=>{const t=r((()=>UC(e)),[e]);return a((()=>()=>{t.unmount()}),[t]),t},UV=(e,t)=>r((()=>((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)}})(e.qDimensionInfo.length,t)),[e.qDimensionInfo.length,t]);const GV=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=$C((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(EI,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}},YV=(e,t)=>{const{layout:n,model:o,keyboard:s,interactions:l,reactRoot:u,isFontLoaded:c,viewService:d,direction:p}=e,f=!zA(n,d),[h,m]=i(!1);h&&m(!1);const g=r((()=>function(e,t,r,n,o){const i=jA(e,o,n),a=TA(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(EI,s),u=s>EI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(n,l,d,p,h)),[n,l,d,p,h]),{pageInfo:b,setPage:v}=((e,t)=>{const[n,o]=i(0),a=Math.min(EI,e.qHyperCube.qSize.qcy),s=r((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(t){const t=Math.floor(e.qHyperCube.qSize.qcy/EI);t<n&&o(t)}return{pageInfo:s,setPage:o}})(n,f),{initialDataPages:y,isLoading:x}=GV({model:o,layout:n,page:b.page,shouldRender:f});a((()=>{f&&s.active&&s.blur?.(!1)}),[s,f]),a((()=>{f&&e.model&&e.changeSortOrder&&y&&!x&&c&&function(e,t,r){const{direction:n}=e,o=cM(n);t.render(or.jsx(S.StrictMode,{children:or.jsx(bc,{theme:o,children:or.jsx(tR,{store:r,children:or.jsx(lM,{...e,children:or.jsx(FV,{})})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:g,pageInfo:b,setPage:v,initialDataPages:y},u,t)}),[y,c,x,b,u,e,v,f,g,t])},KV={version:JSON.stringify("6.5.5"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var XV=e=>({properties:{initial:KV},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>MR({...e}),exportProperties:CR,exploration:kR});function JV(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 ZV=(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]}},QV=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const eU=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||WV.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},tU=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=TA(e,t);if(zA(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=JV(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:eU(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=ZV(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=(QV(h,m,g)?d:d+1)+c;let v=p+c;const y=ZV(p,o),x=y?.getBoundingClientRect();return y&&x&&(QV(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:eU(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},rU=({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{c((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}=tU(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})),d((()=>({getViewState:()=>tU(e,t,n)})),[e,t,n])},nU=e=>{const{viewState:t}=n();return r((()=>((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}))(t,e.snapshotData)),[t,e.snapshotData,e.usePagination])},oU=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),iU=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));
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"),M=new RegExp(s+"(right)"+v,"gi"),k=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"),L=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),q=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"),W=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),B=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(k,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(M,"$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(W,X).replace(B,X).replace(L,"$1$2$3$8$5$6$7$4$9").replace(q,"$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)}(FA,FA.exports);var HA=Gt(FA.exports);function $A(e,t,r){switch(e.type){case Zr:case Jr:case Kr:return e.return=e.return||e.value;case Xr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Kr&&(e.children=e.value)}))}var n=Hn(Array.prototype.concat(e.children),$A);return cn(n)?e.return=e.value+"{"+n+"}":""}function WA(e,t,r,n){if(e.type===Qr||"@supports"===e.type||e.type===Xr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Xr)){var o=HA.transform($A(e));e.children=o?qn(o)[0].children:[],e.return=""}}Object.defineProperty(WA,"name",{value:"stylisRTLPlugin"});let BA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),VA=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}({}),UA=function(e){return e.A="ascending",e.D="descending",e}({}),GA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const YA=[0,0],KA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),XA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},JA=(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&&ie(e.localPaletteColors[t].color).blend(ie(s.color),s.t)},ZA=(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:KA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:XA(n,t,r)})))),n},QA=(e,t,r,n)=>{const o=ZA(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=JA(e,a,t);break}n=i}return r})(o,t);return a},eI=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!LP(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||!LP(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)},tI=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=eI(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||!LP(t))return 0;let a=r&&LP(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}},rI=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=tI(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 XA(o,r.limitPaletteColorIndex,n);const a=KA(r.limitRange,t);return QA(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}},nI=(PC().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)"),oI=4/3,iI="12px",aI="600",sI="Source Sans Pro, sans-serif",lI={height:"auto",fontSize:iI,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"}},uI={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:aI},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},cI=(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,dI=(e,t)=>e.representation.type===NR.Image&&"fitHeight"===e.representation.imageSize?cI(t,e.representation):e.align,pI=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",fI=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},hI=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,mI=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",gI=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",bI=24,vI=mc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),yI=mc(ip,{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?pI(e,n):void 0}))),xI=mc(ip,{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},[`& .${nE}`]:{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"},[`& .${nE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),SI=mc(ip,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),wI=mc(ip,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),CI=mc(md,{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}))),EI=25e4,RI=(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(uE.PixelsMax,Math.max(uE.PixelsMin,f)),i-=n[a]};switch(s){case cE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?uE.PixelsDefault:+e)(l),h();break;case cE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?uE.PercentageDefault:+e)(u)/100*t,h();break;case cE.FitToContent:e.representation?.type===NR.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case cE.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(uE.AutoMinTable,e)}))}return n},PI=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},AI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},II=e=>e.ctrlKey||e.metaKey,MI=e=>e.shiftKey&&II(e),kI=e=>[sE.Left,sE.Right,sE.Up,sE.Down].includes(e),DI=e=>e.shiftKey&&kI(e.key),TI=e=>(e=>kI(e)||[sE.Home,sE.End,sE.PageUp,sE.PageDown].includes(e))(e.key)&&!MI(e),OI=(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),PI(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})},LI=(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&&DI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&DI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===sE.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 PI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},qI=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}},NI=(e,t)=>{switch(t.type){case VA.Select:return OI(e,t.payload);case VA.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 VA.SelectMouseUp:return((e,t)=>qI(e.isSelectMultiValues||e.firstCell!==t.cell?e:OI(e,t)))(e,t.payload);case VA.SelectMultiAdd:return LI(e,t.payload);case VA.SelectMultiEnd:return qI(e);case VA.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case VA.Clear:return e.rows.size?{...e,rows:new Map}:e;case VA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},jI=4/3,_I=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function zI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const FI=(e,t)=>e?{borderBottomColor:IC.DARK_MODE_BORDER,borderRightColor:IC.DARK_MODE_BORDER,borderLeftColor:IC.DARK_MODE_BORDER,borderTopColor:IC.DARK_MODE_BORDER}:{borderLeftColor:IC.BORDER_MEDIUM,borderRightColor:IC.BORDER_MEDIUM,borderTopColor:IC.BORDER_HEAVY,borderBottomColor:t?IC.BORDER_HEAVY:IC.BORDER_LIGHT},HI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*jI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},$I=e=>e.components?.find((e=>"theme"===e.key)),WI=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:_I(r?.fontColor)?zI(IC.TEXT,t,r?.fontColor):i||IC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...FI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function BI(e,t,r){const n=$I(e)?.header,o=WI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=DC(o.background??IC.WHITE,dE),o.activeBackground=DC(o.background??IC.WHITE,pE),o}const VI=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in uI)(e)&&Object.assign(t,uI[e]))),t};function UI(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&&OC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?VI(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=MC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const GI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},YI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=GI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},KI=(e,t,r,n=IC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=YI(e,t,r);return _C(i,o,a,n)??n},XI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return iI}},JI=e=>e?.some((e=>"italic"===e))?"italic":"normal",ZI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?aI:"normal",QI=e=>!1===e?1:3,eM=e=>parseInt(e??lI.fontSize,10)*oI,tM=e=>e?.some((e=>"underline"===e))?"underline":"none",rM=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=$I(t)??{},p=zA(t,o)?IC.WHITE:IC.TRANSPARENT,f=KI(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??sI,fontSize:XI(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:JI(i?.fontStyle),fontWeight:ZI(i?.fontStyle,aI),textDecoration:tM(i?.fontStyle),color:GI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??IC.TEXT,background:f},headerMenuHoverBackground:DC(f,dE),headerMenuActiveBackground:DC(f,pE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??sI,fontSize:XI(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:JI(a?.fontStyle),fontWeight:ZI(a?.fontStyle,"normal"),textDecoration:tM(a?.fontStyle),color:GI(n,a?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??IC.TEXT,background:YI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??IC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??sI,fontSize:XI(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:JI(s?.fontStyle),fontWeight:ZI(s?.fontStyle,"normal"),textDecoration:tM(s?.fontStyle),color:GI(n,s?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??IC.TEXT,background:YI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??IC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??sI,fontSize:XI(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:JI(l?.fontStyle),fontWeight:ZI(l?.fontStyle,aI),textDecoration:tM(l?.fontStyle),color:GI(n,l?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??IC.TEXT,background:KI(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:JI(u?.fontStyle),fontWeight:ZI(u?.fontStyle,"normal"),textDecoration:tM(u?.fontStyle),color:GI(n,u?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??IC.TEXT,background:GI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??IC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??QI(t.multiline?.wrapTextInCells),headerLineClamp:QI(t.multiline?.wrapTextInHeaders),border:GI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?IC.DARK_MODE_BORDER:IC.BORDER_MEDIUM),divider:GI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??IC.BORDER_HEAVY,hoverColors:{color:GI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:GI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:GI(n,c?.zebraStripes?.color?.odd),background:GI(n,c?.zebraStripes?.background?.odd)},even:{color:GI(n,c?.zebraStripes?.color?.even),background:GI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===GI(n,u?.background),overrideNullValueColor:void 0===GI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:kC(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(eM(e.header.fontSize)+8,32),r=eM(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(eM(e.dimension.values.fontSize),eM(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},nM=(e,t,r,n)=>{const o=A((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=$I(e)?.content,i=WI("content",t,o);i.background=t.background.color;const a=HI(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=_I(l)||!!c,p=_I(s)||!!u,f=d||p;let h;h=_I(s)?zI(IC.HOVER,t,s):u||(d?"":IC.HOVER);const m=f?zI(MC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=BI(e,t,!o),s=function(e,t,r){const n=$I(e)?.content,o=WI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=BI(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},oM=new Map;const iM=k({}),aM=function(e){const t=k([()=>{},new Set]);return oM.set(e,t),({children:r,value:n})=>{const o=M(n),i=M(new Set);T((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=q((()=>o.current),[o]),s=A((()=>[a,i.current]),[a]);return or.jsx(e.Provider,{value:n,children:or.jsx(t.Provider,{value:s,children:r})})}}(iM),sM={rows:[],columns:[],totalsPosition:{}},lM=({children:e,tableData:t=sM,selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,setPage:p,pageInfo:f,initialDataPages:h,rect:m,viewService:g,downloadService:b,env:v,direction:y,eventEmitter:x})=>{const[S,w]=((e,t)=>{const[r,n]=D(NI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(t.rows,r),C=nM(n,a,t,l),E=((e,t,r,n,o)=>A((()=>rM(0,t,r,n,o)),[t,r,e,n,o]))(v,n,C,a,g),{xScrollbarWidth:R,yScrollbarWidth:P,setXScrollbarWidth:M,setYScrollbarWidth:k}=(()=>{const[e,t]=I(0),[r,n]=I(0);return{xScrollbarWidth:e,yScrollbarWidth:r,setYScrollbarWidth:n,setXScrollbarWidth:t}})(),{columnWidths:T,setColumnWidths:O,showRightBorder:L,isAdjustingWidth:q,setIsAdjustingWidth:j}=(({columns:e,totalsPosition:t,tableWidth:r,styleService:n,eventEmitter:o,yScrollbarWidth:i,accessibleHeader:a=!0})=>{const s=t.atBottom||t.atTop,l=VC({...n.header,fontWeight:aI},{maxNbrLinesOfText:3}).measureText,u=VC({...n.totalRow,fontWeight:aI},{maxNbrLinesOfText:3}).measureText,{estimateWidth:c}=VC(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:d}=VC(n.measure.values,{maxNbrLinesOfText:3}),p=A((()=>(e,t,r,n,o,i,p)=>{let f=0;if(a){const t=4;let r=25;r+=t+24,n&&(r+=20+t),o&&(r+=20),f=l(e)+r}else{let t=9;t+=16,p&&(t+=bI),t+=bI,t+=bI,f=l(e)+t}const h=i?c:d;return Math.max(f,s?u(t)+24+1:0,h(r))}),[c,d,l,u,s,a]),[f,h]=I(!1),[m,g]=I((()=>RI(e,r,p)));N((()=>{const t=RI(e,r-i,p);g(t),h(!1)}),[e,r,i,p]),N((()=>{f||o.emit("done-adjusting-column-width")}),[f,o]);const b=A((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,i,r)),[m,i,r]);return{columnWidths:m,setColumnWidths:g,showRightBorder:b,isAdjustingWidth:f,setIsAdjustingWidth:h}})({columns:t.columns,totalsPosition:t.totalsPosition,tableWidth:m.width,styleService:E,eventEmitter:x,accessibleHeader:n.accessibleHeader,yScrollbarWidth:P}),_=A((()=>({selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,rect:m,viewService:g,styleService:E,direction:y,downloadService:b})),[r,n,o,i,a,s.active,l,u,c,d,m,g,E,y,b]);return or.jsx(aM,{value:{selectionState:S,selectionDispatch:w,columnWidths:T,setColumnWidths:O,baseProps:_,tableData:t,setPage:p,pageInfo:f,initialDataPages:h,showRightBorder:L,env:v,isAdjustingWidth:q,setIsAdjustingWidth:j,setYScrollbarWidth:k,setXScrollbarWidth:M,xScrollbarWidth:R,yScrollbarWidth:P,eventEmitter:x},children:e})};function uM(e,t){const r=function(e){return oM.get(e)}(e),[n,o]=L(r),[,i]=D((e=>e+1),0),a=M(t),s=M(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=A((()=>t(l)),[l,t]);return T((()=>{a.current=t,s.current=u}),[l,u,t]),T((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function cM(e){const t=PC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Tu({...t,direction:e})}const dM={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},pM={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},fM=mc("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":{...dM},"&::-moz-range-track":{...dM},"&::-ms-track":{...dM},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...pM},"&::-moz-range-thumb":{...pM},"&::-ms-thumb":{...pM},"&: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"}}))),hM=({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=ZC({translator:c.translator}),f=M({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}};XC((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,uE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:cE.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=>{qC(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=>{qC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===sE.Left||e.key===sE.Right){qC(e);const t=5,r=e.key===sE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===sE.Space||e.key===sE.Enter?(qC(e),s(e),l?.(!1),x()):e.key===sE.Esc&&(qC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return or.jsx(fM,{style:b,hoverColor:o,isLastColumn:r,className:lE,"data-testid":lE,onMouseDown:e=>{qC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:cE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(qC(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":uE.PixelsMin,"aria-valuemax":uE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},mM=j(((e,t)=>or.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:or.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),gM=({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},bM=mc(ip,{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"}))),vM=mc(mM,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),yM=mc(Hf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),xM=mc(jp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),SM=mc(Uf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),wM=mc(Uf,{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"}))),CM=mc("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"}))),EM=mc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),RM=mc(Sd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),PM=mc(hf,{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}))),AM=j(((e,t)=>or.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:or.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),IM=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?IM(t):t:e.parentElement?.children?.[0]},MM=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?MM(t):t},kM=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===sE.Down||t===sE.Up){const r=e=>t===sE.Down?IM(e):MM(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},DM=(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 TM={};const OM=({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]=I(!1),f=S.useRef(null),h=q((e=>{e.stopPropagation(),p(!1)}),[p]);return or.jsxs(or.Fragment,{children:[or.jsxs(wM,{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),TM={}),a?.length&&(p(!0),TM[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:kM,children:[l?or.jsx(CM,{direction:u,isPagination:c}):null,or.jsxs(EM,{children:[or.jsx(PM,{direction:u,isPagination:c,children:or.jsx(o,{})}),or.jsx(RM,{variant:"body2",children:n})]}),a?.length?or.jsx(AM,{}):null]},t),a?.length?or.jsx(jM,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:DM(a,TM),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},LM=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&or.jsx(SM,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>or.jsx(OM,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),qM=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[LM({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?or.jsx(xM,{"data-testid":"group-divider",variant:"middle"}):void 0])),NM={appear:0,enter:0,exit:0},jM=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?or.jsx(yM,{className:oE,open:t,anchorEl:e,onClose:r,transitionDuration:NM,MenuListProps:{id:iE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:qM({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,_M=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>q((()=>{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]),zM=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),FM=(e,t)=>e.some((e=>t[e]>0)),HM={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},$M=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=I(null),[a,s]=I(HM);return XC((()=>{e||(s(HM),i(null))}),[e]),T((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=zM(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:FM(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:FM(["qSelected"],e),canSelectPossible:FM(["qOption"],e),canSelectAlternative:FM(["qAlternative"],e),canSelectExcluded:FM(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},WM=j(((e,t)=>or.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:or.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"})}))),BM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})}))),VM=j(((e,t)=>or.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:or.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"})}))),UM=j(((e,t)=>or.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:or.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"})}))),GM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})}))),YM=j(((e,t)=>or.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:or.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"})}))),KM=j(((e,t)=>or.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:or.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"})}))),XM=j(((e,t)=>or.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:or.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"})}))),JM=j(((e,t)=>or.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:or.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"})}))),ZM=j(((e,t)=>or.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:or.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"})}))),QM=j(((e,t)=>or.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:or.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"})}))),ek=j(((e,t)=>or.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:or.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"})}))),tk=j(((e,t)=>or.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:or.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"})}))),rk=j(((e,t)=>or.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:or.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})})));let nk=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const ok="/qListObjectDef",ik=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[nk.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:WM,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:UM,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:XM,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:GM,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[nk.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:JM,enabled:!0}]}]),!e.isLocked&&r[nk.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:rk,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(ok))},icon:ZM,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(ok))},icon:tk,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(ok))},icon:QM,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(ok))},icon:ek,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(ok))},icon:BM,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:KM,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:YM,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[nk.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:VM,enabled:!0}]}]),f},ak=({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=tE})=>{const v=M(null),y=ZC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=$M({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=gM({model:f,headerData:n}),A=_M({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=q((e=>{e.stopPropagation(),t(!1)}),[t]),k=q((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?or.jsxs(bM,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:nE,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?or.jsx(vM,{height:b,className:rE,"data-testid":rE,isInteractionsActive:i.active??!1,children:or.jsx(mM,{})}):null,or.jsx(jM,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:ik({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},sk=e=>e.isDark?{background:e.color,borderColor:IC.DARK_MODE_BORDER,color:IC.DARK_MODE_TEXT,disabledColor:IC.DARK_MODE_DISABLED,iconColor:IC.DARK_MODE_TEXT}:{background:e.color,borderColor:IC.BORDER_MEDIUM,color:IC.TEXT,disabledColor:IC.DISABLED},lk=mc(ip,{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}`}))),uk=mc(Ph,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),ck=mc(mp,{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)}))),dk=mc(Sd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),pk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A((()=>sk(n.background)),[n]);if(!r.active)return null;const a=o?or.jsx(lk,{footerStyle:i,children:e}):null;return t?W.createPortal(e,t):a},fk=k({}),hk=()=>L(fk),mk=({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=A((()=>sk(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=ZC({translator:d}),S=A((()=>({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 or.jsx(fk.Provider,{value:S,children:e})};let gk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),bk=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 vk=j(((e,t)=>or.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:or.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),yk=j(((e,t)=>or.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:or.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),xk=j(((e,t)=>or.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:or.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),Sk={FirstPage:yk,PreviousPage:vk,NextPage:AM,LastPage:xk,FirstPageRTL:xk,PreviousPageRTL:AM,NextPageRTL:vk,LastPageRTL:yk},wk=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=hk(),u=r.concat("rtl"===n?"RTL":""),c=Sk[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}},Ck=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=hk(),o=0===e.page,{IconComponent:i,styledProps:a}=wk({type:gk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||bk.FirstPage)?null:or.jsx(ck,{...a,disabled:!r.active,children:or.jsx(i,{height:tE})})},Ek=(e,t,r=!1)=>{r&&e.key===sE.Tab&&!e.shiftKey&&(qC(e),LC(e.target,t,!1))},Rk=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=hk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=wk({type:gk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{Ek(e,t,n)}:void 0;return o<=(a?.lastPage||bk.LastPage)?null:or.jsx(ck,{...u,onKeyDown:c,disabled:!i.active,children:or.jsx(l,{height:tE})})},Pk=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=hk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=wk({type:gk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>bk.FirstPage&&o>bk.LastPage)&&t.enabled?e=>{Ek(e,t,n)}:void 0;return or.jsx(ck,{...l,onKeyDown:u,disabled:!i.active,children:or.jsx(s,{height:tE})})},Ak=()=>{const{pageInfo:e,interactions:t}=hk(),r=0===e.page,{IconComponent:n,styledProps:o}=wk({type:gk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return or.jsx(ck,{...o,disabled:!t.active,children:or.jsx(n,{height:tE})})},Ik=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=hk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||bk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return or.jsx(dk,{variant:"caption",dir:"ltr",children:s})},Mk=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=hk(),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 or.jsxs(or.Fragment,{children:[or.jsxs(dk,{variant:"caption",id:p,children:[c,":"]}),or.jsx(uk,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},kk=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=hk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||bk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=or.jsx(or.Fragment,{children:e.rowsPerPageOptions.map((e=>or.jsx("option",{value:e,children:e},e)))});return or.jsx(Mk,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},Dk=1e3,Tk="…",Ok=({totalPages:e,page:t})=>{const r=Math.min(e,Dk),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-Dk):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return or.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(or.jsx("option",{value:Tk,disabled:!0,children:Tk},"startMoreOptions")),o<e-1&&a.push(or.jsx("option",{value:Tk,disabled:!0,children:Tk},"endMoreOptions")),or.jsx(or.Fragment,{children:a})},Lk=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=hk(),{page:i}=e;if(t<=(o?.selectPage||bk.SelectPage))return null;const a=or.jsx(Ok,{totalPages:r,page:i});return or.jsx(Mk,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var qk=_((e=>or.jsxs(mk,{...e,children:[or.jsx(kk,{}),or.jsx(Lk,{}),or.jsx(Ik,{}),or.jsx(Ck,{}),or.jsx(Ak,{}),or.jsx(Pk,{}),or.jsx(Rk,{})]})));const Nk=e=>or.jsx(pk,{...e,children:or.jsx(qk,{...e})});var jk=Symbol.for("preact-signals");function _k(){if(Wk>1)Wk--;else{for(var e,t=!1;void 0!==$k;){var r=$k;for($k=void 0,Bk++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Kk(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(Bk=0,Wk--,t)throw e}}function zk(e){if(Wk>0)return e();Wk++;try{return e()}finally{_k()}}var Fk=void 0;function Hk(e){var t=Fk;Fk=void 0;try{return e()}finally{Fk=t}}var $k=void 0,Wk=0,Bk=0,Vk=0;function Uk(e){if(void 0!==Fk){var t=e.n;if(void 0===t||t.t!==Fk)return t={i:0,S:e,p:Fk.s,n:void 0,t:Fk,e:void 0,x:void 0,r:t},void 0!==Fk.s&&(Fk.s.n=t),Fk.s=t,e.n=t,32&Fk.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=Fk.s,t.n=void 0,Fk.s.n=t,Fk.s=t),t}}function Gk(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 Yk(e,t){return new Gk(e,t)}function Kk(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 Xk(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 Jk(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 Zk(e,t){Gk.call(this,void 0),this.x=e,this.s=void 0,this.g=Vk-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 Qk(e,t){return new Zk(e,t)}function eD(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Wk++;var r=Fk;Fk=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,tD(e),t}finally{Fk=r,_k()}}}function tD(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,eD(e)}function rD(e){if(Fk!==this)throw new Error("Out-of-order effect");Jk(this),Fk=e,this.f&=-2,8&this.f&&tD(this),_k()}function nD(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 oD(e,t){var r=new nD(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}Gk.prototype.brand=jk,Gk.prototype.h=function(){return!0},Gk.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:Hk((function(){var e;null==(e=t.W)||e.call(t)})))},Gk.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&&Hk((function(){var e;null==(e=t.Z)||e.call(t)})))}},Gk.prototype.subscribe=function(e){var t=this;return oD((function(){var r=t.value,n=Fk;Fk=void 0;try{e(r)}finally{Fk=n}}),{name:"sub"})},Gk.prototype.valueOf=function(){return this.value},Gk.prototype.toString=function(){return this.value+""},Gk.prototype.toJSON=function(){return this.value},Gk.prototype.peek=function(){var e=Fk;Fk=void 0;try{return this.value}finally{Fk=e}},Object.defineProperty(Gk.prototype,"value",{get:function(){var e=Uk(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Bk>100)throw new Error("Cycle detected");this.v=e,this.i++,Vk++,Wk++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{_k()}}}}),Zk.prototype=new Gk,Zk.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===Vk)return!0;if(this.g=Vk,this.f|=1,this.i>0&&!Kk(this))return this.f&=-2,!0;var e=Fk;try{Xk(this),Fk=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 Fk=e,Jk(this),this.f&=-2,!0},Zk.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)}Gk.prototype.S.call(this,e)},Zk.prototype.U=function(e){if(void 0!==this.t&&(Gk.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)}},Zk.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(Zk.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Uk(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),nD.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()}},nD.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,eD(this),Xk(this),Wk++;var e=Fk;return Fk=this,rD.bind(this,e)},nD.prototype.N=function(){2&this.f||(this.f|=2,this.o=$k,$k=this)},nD.prototype.d=function(){this.f|=8,1&this.f||tD(this)},nD.prototype.dispose=function(){this.d()};var iD,aD,sD,lD,uD,cD,dD,pD,fD,hD,mD,gD,bD,vD,yD,xD,SD,wD,CD,ED,RD=Object.create,PD=Object.defineProperty,AD=Object.defineProperties,ID=Object.getOwnPropertyDescriptor,MD=Object.getOwnPropertyDescriptors,kD=Object.getOwnPropertySymbols,DD=Object.prototype.hasOwnProperty,TD=Object.prototype.propertyIsEnumerable,OD=e=>{throw TypeError(e)},LD=(e,t,r)=>t in e?PD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qD=(e,t)=>PD(e,"name",{value:t,configurable:!0}),ND=["class","method","getter","setter","accessor","field","value","get","set"],jD=e=>void 0!==e&&"function"!=typeof e?OD("Function expected"):e,_D=(e,t,r,n,o)=>({kind:ND[e],name:t,metadata:n,addInitializer:e=>r._?OD("Already initialized"):o.push(jD(e||null))}),zD=(e,t)=>{return LD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},FD=(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},HD=(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=ND[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)&&ID(d<4?o:{get[r](){return BD(this,i)},set[r](e){return UD(this,i,e)}},r));d?f&&d<4&&qD(i,(d>2?"set ":d>1?"get ":"")+r):qD(o,r);for(var y=n.length-1;y>=0;y--)u=_D(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>WD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?BD:GD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>UD(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?jD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?OD("Object expected"):(jD(a=s.get)&&(v.get=a),jD(a=s.set)&&(v.set=a),jD(a=s.init)&&g.unshift(a));return d||zD(e,o),v&&PD(o,r,v),f?4^d?i:v:o},$D=(e,t,r)=>t.has(e)||OD("Cannot "+r),WD=(e,t)=>Object(t)!==t?OD('Cannot use the "in" operator on this value'):e.has(t),BD=(e,t,r)=>($D(e,t,"read from private field"),r?r.call(e):t.get(e)),VD=(e,t,r)=>t.has(e)?OD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),UD=(e,t,r,n)=>($D(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),GD=(e,t,r)=>($D(e,t,"access private method"),r);function YD(e,t){if(t){let r;return Qk((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return Qk(e)}function KD(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)=>!KD(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=>!KD(e[r],t[r])));return!o}return!1}function XD({get:e},t){return{init:e=>Yk(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function JD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=YD(e.bind(this)),r.set(this,t)),t.value}}function ZD(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>AD(e,MD(t)))(((e,t)=>{for(var r in t||(t={}))DD.call(t,r)&&LD(e,r,t[r]);if(kD)for(var r of kD(t))TD.call(t,r)&&LD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function QD(...e){const t=e.map((e=>oD(e)));return()=>t.forEach((e=>e()))}cD=[XD],uD=[XD],lD=[XD],sD=[ZD()],aD=[ZD()],iD=[ZD()];var eT,tT=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,FD(dD,5,this),VD(this,gD),VD(this,pD,FD(dD,8,this)),FD(dD,11,this),VD(this,bD,FD(dD,12,this)),FD(dD,15,this),VD(this,SD,FD(dD,16,this)),FD(dD,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return BD(this,gD,CD)}get initial(){return BD(this,gD,hD)}get previous(){return BD(this,gD,yD)}set current(e){const t=Hk((()=>BD(this,gD,CD)));e&&t&&this.equals(t,e)||zk((()=>{BD(this,gD,hD)||UD(this,gD,e,mD),UD(this,gD,t,xD),UD(this,gD,e,ED)}))}reset(e=this.defaultValue){zk((()=>{UD(this,gD,void 0,xD),UD(this,gD,e,mD),UD(this,gD,e,ED)}))}};function rT(e){return Hk((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}dD=[,,,RD(null)],pD=new WeakMap,gD=new WeakSet,bD=new WeakMap,SD=new WeakMap,fD=HD(dD,20,"#initial",cD,gD,pD),hD=fD.get,mD=fD.set,vD=HD(dD,20,"#previous",uD,gD,bD),yD=vD.get,xD=vD.set,wD=HD(dD,20,"#current",lD,gD,SD),CD=wD.get,ED=wD.set,HD(dD,2,"current",sD,tT),HD(dD,2,"initial",aD,tT),HD(dD,2,"previous",iD,tT),zD(dD,tT);eT=new WeakMap;var nT,oT,iT,aT,sT,lT=Object.create,uT=Object.defineProperty,cT=Object.getOwnPropertyDescriptor,dT=Object.getOwnPropertySymbols,pT=Object.prototype.hasOwnProperty,fT=Object.prototype.propertyIsEnumerable,hT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),mT=e=>{throw TypeError(e)},gT=Math.pow,bT=(e,t,r)=>t in e?uT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vT=["class","method","getter","setter","accessor","field","value","get","set"],yT=e=>void 0!==e&&"function"!=typeof e?mT("Function expected"):e,xT=(e,t,r,n,o)=>({kind:vT[e],name:t,metadata:n,addInitializer:e=>r._?mT("Already initialized"):o.push(yT(e||null))}),ST=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=vT[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,cT(o,r)),h=n.length-1;h>=0;h--)(l=xT(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,yT(a)&&(f[d]=a);return f&&uT(o,r,f),o},wT=(e,t,r)=>t.has(e)||mT("Cannot "+r),CT=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)}},ET=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={}))pT.call(t,r)&&bT(e,r,t[r]);if(dT)for(var r of dT(t))fT.call(t,r)&&bT(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 CT((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 CT.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 RT,PT=class extends(iT=tT,oT=[JD],nT=[JD],iT){constructor(e){var t,r,n;super(CT.from(e),((e,t)=>CT.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)})(sT,5,this),t=this,n=0,(r=aT).has(t)?mT("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 CT.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=CT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(wT(a=this,s=aT,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);zk((()=>{((e,t,r)=>{wT(e,t,"write to private field"),t.set(e,r)})(this,aT,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(CT.from(e)),this.velocity={x:0,y:0}}};function AT({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(gT(n,2)+gT(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}sT=(e=>{var t;return[,,,lT(null!=(t=null==e?void 0:e[hT("metadata")])?t:null)]})(iT),aT=new WeakMap,ST(sT,2,"delta",oT,PT),ST(sT,2,"direction",nT,PT),RT=sT,bT(PT,hT("metadata"),RT[3]);var IT,MT,kT,DT,TT=(e=>(e.Horizontal="x",e.Vertical="y",e))(TT||{}),OT=Object.values(TT),LT=Object.create,qT=Object.defineProperty,NT=Object.defineProperties,jT=Object.getOwnPropertyDescriptor,_T=Object.getOwnPropertyDescriptors,zT=Object.getOwnPropertySymbols,FT=Object.prototype.hasOwnProperty,HT=Object.prototype.propertyIsEnumerable,$T=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),WT=e=>{throw TypeError(e)},BT=(e,t,r)=>t in e?qT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VT=(e,t)=>{for(var r in t||(t={}))FT.call(t,r)&&BT(e,r,t[r]);if(zT)for(var r of zT(t))HT.call(t,r)&&BT(e,r,t[r]);return e},UT=(e,t)=>NT(e,_T(t)),GT=(e,t)=>qT(e,"name",{value:t,configurable:!0}),YT=(e,t)=>{var r={};for(var n in e)FT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&zT)for(var n of zT(e))t.indexOf(n)<0&&HT.call(e,n)&&(r[n]=e[n]);return r},KT=e=>{var t;return[,,,LT(null!=(t=null==e?void 0:e[$T("metadata")])?t:null)]},XT=["class","method","getter","setter","accessor","field","value","get","set"],JT=e=>void 0!==e&&"function"!=typeof e?WT("Function expected"):e,ZT=(e,t,r,n,o)=>({kind:XT[e],name:t,metadata:n,addInitializer:e=>r._?WT("Already initialized"):o.push(JT(e||null))}),QT=(e,t)=>BT(t,$T("metadata"),e[3]),eO=(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},tO=(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=XT[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)&&jT(d<4?o:{get[r](){return oO(this,i)},set[r](e){return aO(this,i,e)}},r));d?f&&d<4&&GT(i,(d>2?"set ":d>1?"get ":"")+r):GT(o,r);for(var y=n.length-1;y>=0;y--)u=ZT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>nO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?oO:sO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>aO(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?JT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?WT("Object expected"):(JT(a=s.get)&&(v.get=a),JT(a=s.set)&&(v.set=a),JT(a=s.init)&&g.unshift(a));return d||QT(e,o),v&&qT(o,r,v),f?4^d?i:v:o},rO=(e,t,r)=>t.has(e)||WT("Cannot "+r),nO=(e,t)=>Object(t)!==t?WT('Cannot use the "in" operator on this value'):e.has(t),oO=(e,t,r)=>(rO(e,t,"read from private field"),r?r.call(e):t.get(e)),iO=(e,t,r)=>t.has(e)?WT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),aO=(e,t,r,n)=>(rO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),sO=(e,t,r)=>(rO(e,t,"access private method"),r);function lO(e,t){return{plugin:e,options:t}}function uO(e){return t=>lO(e,t)}function cO(e){return"function"==typeof e?{plugin:e,options:void 0}:e}IT=[XD];var dO=class{constructor(e,t){this.manager=e,this.options=t,iO(this,kT,eO(MT,8,this,!1)),eO(MT,11,this),iO(this,DT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return Hk((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=oD(e.bind(this));return oO(this,DT).add(t),t}destroy(){oO(this,DT).forEach((e=>e()))}static configure(e){return lO(this,e)}};MT=KT(null),kT=new WeakMap,DT=new WeakMap,tO(MT,4,"disabled",IT,dO,kT),QT(MT,dO);var pO,fO=class extends dO{},hO=class{constructor(e){this.manager=e,this.instances=new Map,iO(this,pO,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(cO).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of oO(this,pO))if(!r.includes(e)){if(e.prototype instanceof fO)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);aO(this,pO,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 mO(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}pO=new WeakMap;var gO,bO,vO=[],yO=class extends dO{constructor(e){super(e),iO(this,gO),iO(this,bO),this.computeCollisions=this.computeCollisions.bind(this),aO(this,bO,Yk(vO)),this.destroy=QD((()=>{const e=this.computeCollisions(),t=Hk((()=>this.manager.dragOperation.position.current));if(e!==vO){const e=oO(this,gO);if(aO(this,gO,t),e&&t.x==e.x&&t.y==e.y)return}else aO(this,gO,void 0);oO(this,bO).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){Hk((()=>{e?oO(this,bO).value=this.computeCollisions():aO(this,gO,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return vO;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=Hk((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?vO:(s.sort(mO),s)}get collisions(){return oO(this,bO).value}};gO=new WeakMap,bO=new WeakMap;var xO=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)}},SO=class extends xO{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function wO(e,t=!0){let r=!1;return UT(VT({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var CO,EO,RO,PO,AO,IO,MO,kO,DO,TO=class extends fO{constructor(e){super(e);let t=[];this.destroy=QD((()=>{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=wO({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;Hk((()=>{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()})))}))}))}},OO=(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))(OO||{}),LO=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(LO||{});MO=[XD],IO=[JD],AO=[JD],PO=[JD],RO=[JD],EO=[JD],CO=[JD];var qO=class{constructor(){eO(kO,5,this),iO(this,DO,eO(kO,8,this,"idle")),eO(kO,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}};kO=KT(null),DO=new WeakMap,tO(kO,4,"value",MO,qO,DO),tO(kO,2,"current",IO,qO),tO(kO,2,"idle",AO,qO),tO(kO,2,"initializing",PO,qO),tO(kO,2,"initialized",RO,qO),tO(kO,2,"dragging",EO,qO),tO(kO,2,"dropped",CO,qO),QT(kO,qO);var NO,jO,_O,zO,FO,HO,$O,WO,BO,VO=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 Hk((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=wO({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return Hk((()=>{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;zk((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=wO({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 Hk((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=wO({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 Hk((()=>{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=Hk((()=>{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=oD((()=>{"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()}))}};zO=[XD],_O=[XD],jO=[XD],NO=[XD];var UO=class{constructor(e,t){iO(this,HO,eO(FO,8,this)),eO(FO,11,this),iO(this,$O,eO(FO,12,this)),eO(FO,15,this),iO(this,WO,eO(FO,16,this)),eO(FO,19,this),iO(this,BO,eO(FO,20,this)),eO(FO,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)}};FO=KT(null),HO=new WeakMap,$O=new WeakMap,WO=new WeakMap,BO=new WeakMap,tO(FO,4,"manager",zO,UO,HO),tO(FO,4,"id",_O,UO,$O),tO(FO,4,"data",jO,UO,WO),tO(FO,4,"disabled",NO,UO,BO),QT(FO,UO);var GO,YO,KO,XO,JO,ZO,QO,eL,tL,rL,nL,oL,iL,aL,sL,lL,uL,cL,dL,pL,fL,hL,mL,gL,bL=class{constructor(){this.map=Yk(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=QD(...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}},vL=class extends(QO=UO,ZO=[XD],JO=[XD],XO=[XD],KO=[JD],YO=[JD],GO=[JD],QO){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=YT(r,["modifiers","type","sensors"]);super(a,t),eO(eL,5,this),iO(this,tL,eO(eL,8,this)),eO(eL,11,this),iO(this,rL,eO(eL,12,this)),eO(eL,15,this),iO(this,nL,eO(eL,16,this,this.isDragSource?"dragging":"idle")),eO(eL,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}};eL=KT(QO),tL=new WeakMap,rL=new WeakMap,nL=new WeakMap,tO(eL,4,"type",ZO,vL,tL),tO(eL,4,"modifiers",JO,vL,rL),tO(eL,4,"status",XO,vL,nL),tO(eL,2,"isDropping",KO,vL),tO(eL,2,"isDragging",YO,vL),tO(eL,2,"isDragSource",GO,vL),QT(eL,vL);var yL=class extends(cL=UO,uL=[XD],lL=[XD],sL=[XD],aL=[XD],iL=[XD],oL=[JD],cL){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(YT(r,["accept","collisionDetector","collisionPriority","type"]),t),eO(dL,5,this),iO(this,pL,eO(dL,8,this)),eO(dL,11,this),iO(this,fL,eO(dL,12,this)),eO(dL,15,this),iO(this,hL,eO(dL,16,this)),eO(dL,19,this),iO(this,mL,eO(dL,20,this)),eO(dL,23,this),iO(this,gL,eO(dL,24,this)),eO(dL,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}};dL=KT(cL),pL=new WeakMap,fL=new WeakMap,hL=new WeakMap,mL=new WeakMap,gL=new WeakMap,tO(dL,4,"accept",uL,yL,pL),tO(dL,4,"type",lL,yL,fL),tO(dL,4,"collisionDetector",sL,yL,hL),tO(dL,4,"collisionPriority",aL,yL,mL),tO(dL,4,"shape",iL,yL,gL),tO(dL,2,"isDropTarget",oL,yL),QT(dL,yL);var xL,SL=class extends dO{constructor(e,t){super(e,t),this.manager=e,this.options=t}},wL=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},CL=class{constructor(e){this.options=e,iO(this,xL)}set controller(e){aO(this,xL,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=oO(this,xL))||t.activate(e)}};xL=new WeakMap;var EL,RL,PL,AL,IL,ML,kL,DL,TL,OL,LL,qL,NL,jL,_L,zL,FL,HL,$L,WL=class extends dO{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},BL=class{constructor(e){this.draggables=new bL,this.droppables=new bL,this.plugins=new hO(e),this.sensors=new hO(e),this.modifiers=new hO(e)}register(e,t){if(e instanceof vL)return this.draggables.register(e.id,e);if(e instanceof yL)return this.droppables.register(e.id,e);if(e.prototype instanceof WL)return this.modifiers.register(e,t);if(e.prototype instanceof SL)return this.sensors.register(e,t);if(e.prototype instanceof dO)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof UO)return e instanceof vL?this.draggables.unregister(e.id,e):e instanceof yL?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof WL)return this.modifiers.unregister(e);if(e.prototype instanceof SL)return this.sensors.unregister(e);if(e.prototype instanceof dO)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()}};TL=[JD],DL=[XD],kL=[XD],ML=[XD],IL=[XD],AL=[XD],PL=[JD],RL=[JD],EL=[JD];var VL=class{constructor(e){eO(NL,5,this),iO(this,OL),iO(this,LL),iO(this,qL,new tT(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new qO,iO(this,jL,eO(NL,8,this,!1)),eO(NL,11,this),iO(this,_L,eO(NL,12,this,null)),eO(NL,15,this),iO(this,zL,eO(NL,16,this,null)),eO(NL,19,this),iO(this,FL,eO(NL,20,this,null)),eO(NL,23,this),iO(this,HL,eO(NL,24,this,[])),eO(NL,27,this),this.position=new PT({x:0,y:0}),iO(this,$L,{x:0,y:0}),aO(this,OL,e)}get shape(){const{current:e,initial:t,previous:r}=oO(this,qL);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?oO(this,qL).current=e:oO(this,qL).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=oO(this,OL).registry.draggables.get(t);return r&&aO(this,LL,r),null!=(e=null!=r?r:oO(this,LL))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=oO(this,OL).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(UT(VT({},this.snapshot()),{transform:r}));return aO(this,$L,r),r}snapshot(){return Hk((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:oO(this,$L),shape:this.shape?rT(this.shape):null,position:rT(this.position),status:rT(this.status),canceled:this.canceled})))}reset(){zk((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,oO(this,qL).reset(),this.position.reset({x:0,y:0}),aO(this,$L,{x:0,y:0}),this.modifiers=[]}))}};NL=KT(null),OL=new WeakMap,LL=new WeakMap,qL=new WeakMap,jL=new WeakMap,_L=new WeakMap,zL=new WeakMap,FL=new WeakMap,HL=new WeakMap,$L=new WeakMap,tO(NL,2,"shape",TL,VL),tO(NL,4,"canceled",DL,VL,jL),tO(NL,4,"activatorEvent",kL,VL,_L),tO(NL,4,"sourceIdentifier",ML,VL,zL),tO(NL,4,"targetIdentifier",IL,VL,FL),tO(NL,4,"modifiers",AL,VL,HL),tO(NL,2,"source",PL,VL),tO(NL,2,"target",RL,VL),tO(NL,2,"transform",EL,VL),QT(NL,VL);var UL={get rendering(){return Promise.resolve()}};function GL(e,t){return"function"==typeof e?e(t):null!=e?e:t}var YL=class{constructor(e){var t;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 r=null!=e?e:{},n=GL(r.plugins,[]),o=GL(r.sensors,[]),i=GL(r.modifiers,[]),a=null!=(t=r.renderer)?t:UL,s=new SO(this),l=new BL(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new VO(this),this.dragOperation=new VL(this),this.collisionObserver=new yO(this),this.plugins=[TO,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=QD((()=>{var e,t,r;const n=Hk((()=>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}=cO(e);return new t(this,r)})))?r:o}));this.destroy=()=>{c(),u()}}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}},KL=e=>{throw TypeError(e)},XL=(e,t,r)=>t.has(e)||KL("Cannot "+r),JL=(e,t,r)=>(XL(e,t,"read from private field"),t.get(e)),ZL=(e,t,r)=>t.has(e)?KL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),QL=(e,t,r,n)=>(XL(e,t,"write to private field"),t.set(e,r),r),eq=(e,t,r)=>(XL(e,t,"access private method"),r);function tq(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function rq(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=(tq(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function nq(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function oq(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function iq(e){return"nodeType"in e}function aq(e){var t,r,n;return e?oq(e)?e:iq(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 sq(e){const{Document:t}=aq(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function lq(e){return!(!e||oq(e))&&(e instanceof aq(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function uq(e){return e instanceof aq(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function cq(e){return e?oq(e)?e.document:iq(e)?sq(e)?e:lq(e)||uq(e)?e.ownerDocument:document:document:document}function dq(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 pq(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!dq(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,b=r*g,v=r*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function fq(e){return{x:e.clientX,y:e.clientY}}var hq="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function mq(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...mq(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...mq(o.document,t))}}catch(e){}return r}function gq(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function bq(){var e,t;const r=gq()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function vq(e){return!(!e||!iq(e))&&e instanceof aq(e).ShadowRoot}function yq(e){if(e&&iq(e)){let t=e.getRootNode();if(vq(t))return t;if(t instanceof Document)return t}return cq(e)}function xq(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function Sq(e){return"value"in e}function wq(e){return"CANVAS"===e.tagName}function Cq(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 Cq(e,{x:t-o,y:r-i})}}return n}var Eq=new WeakMap;var Rq=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function Pq(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function Aq(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 Iq,Mq=hq?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},kq=class extends Mq{constructor(e){super((t=>{JL(this,Iq)?e(t,this):QL(this,Iq,!0)})),ZL(this,Iq,!1)}};Iq=new WeakMap;var Dq,Tq,Oq,Lq,qq,Nq,jq,_q,zq,Fq,Hq,$q=Array.from({length:100},((e,t)=>t/100)),Wq=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,ZL(this,zq),this.disconnect=()=>{var e,t,r;QL(this,jq,!0),null==(e=JL(this,Oq))||e.disconnect(),null==(t=JL(this,Lq))||t.disconnect(),JL(this,qq).disconnect(),null==(r=JL(this,Nq))||r.remove()},ZL(this,Dq,!0),ZL(this,Tq),ZL(this,Oq),ZL(this,Lq),ZL(this,qq),ZL(this,Nq),ZL(this,jq,!1),ZL(this,_q,Aq((()=>{var e,t,r;const{element:n}=this;if(null==(e=JL(this,Lq))||e.disconnect(),JL(this,jq)||!JL(this,Dq)||!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=pq(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,QL(this,Lq,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:ET.intersectionRatio(r,pq(n)))&&JL(this,_q).call(this)}),{threshold:$q,rootMargin:m,root:o})),JL(this,Lq).observe(n),eq(this,zq,Fq).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),QL(this,Dq,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=pq(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)&&(QL(this,Nq,document.createElement("div")),JL(this,Nq).style.background="rgba(0,0,0,0.15)",JL(this,Nq).style.position="fixed",JL(this,Nq).style.pointerEvents="none",o.body.appendChild(JL(this,Nq))),QL(this,qq,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=JL(this,Dq);QL(this,Dq,a),(s||l)&&(u&&!a?(null==(r=JL(this,Lq))||r.disconnect(),this.callback(null),null==(n=JL(this,Oq))||n.disconnect(),QL(this,Oq,void 0),JL(this,Nq)&&(JL(this,Nq).style.visibility="hidden")):JL(this,_q).call(this),a&&!JL(this,Oq)&&(QL(this,Oq,new kq(JL(this,_q))),JL(this,Oq).observe(e)))}),{threshold:$q,root:o})),JL(this,Dq)&&!r.skipInitial&&this.callback(this.boundingClientRect),JL(this,qq).observe(e)}};Dq=new WeakMap,Tq=new WeakMap,Oq=new WeakMap,Lq=new WeakMap,qq=new WeakMap,Nq=new WeakMap,jq=new WeakMap,_q=new WeakMap,zq=new WeakSet,Fq=function(){JL(this,jq)||(eq(this,zq,Hq).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,JL(this,Tq))||(this.callback(this.boundingClientRect),QL(this,Tq,this.boundingClientRect)))},Hq=function(){if(JL(this,Nq)){const{top:e,left:t,width:r,height:n}=pq(this.element);JL(this,Nq).style.overflow="hidden",JL(this,Nq).style.visibility="visible",JL(this,Nq).style.top=`${Math.floor(e)}px`,JL(this,Nq).style.left=`${Math.floor(t)}px`,JL(this,Nq).style.width=`${Math.floor(r)}px`,JL(this,Nq).style.height=`${Math.floor(n)}px`}};var Bq,Vq,Uq,Gq,Yq=new WeakMap,Kq=new WeakMap;function Xq(e,t){let r=Yq.get(e);if(!r){const t=new Wq(e,(t=>{const r=Yq.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),Yq.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(Yq.delete(e),r.disconnect())}}var Jq=class{constructor(e,t,r){this.callback=t,ZL(this,Bq),ZL(this,Vq,!1),ZL(this,Uq),ZL(this,Gq,Aq((e=>{if(!JL(this,Vq)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of JL(this,Uq))if(e.target.contains(t)){this.callback(JL(this,Bq).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=Pq(e);for(;r;)t.add(r),r=Pq(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=Xq(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!Kq.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}),Kq.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=Kq.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),Kq.delete(n))}):()=>{}}(e,JL(this,Gq));QL(this,Uq,n),QL(this,Bq,new Wq(e,t,r)),this.disconnect=()=>{JL(this,Vq)||(QL(this,Vq,!0),o(),i(),JL(this,Bq).disconnect())}}};function Zq(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function Qq(e){try{Zq(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function eN(e){return!(!hq||!e)&&e===cq(e).scrollingElement}function tN(e){var t,r;const n=aq(e),o=eN(e)?function(e){var t,r,n,o;const{documentElement:i}=cq(e),a=aq(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):nq(e),i=n.visualViewport,a=eN(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function rN(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=tN(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}}Bq=new WeakMap,Vq=new WeakMap,Uq=new WeakMap,Gq=new WeakMap;var nN=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)))}},oN=new nN((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),iN=new nN((e=>setTimeout(e,50))),aN=new Map,sN=aN.clear.bind(aN);function lN(e,t=!1){if(!t)return uN(e);let r=aN.get(e);return r||(r=uN(e),aN.set(e,r),iN.schedule(sN),r)}function uN(e){return aq(e).getComputedStyle(e)}var cN={excludeElement:!0,escapeShadowDOM:!0};function dN(e,t=cN){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(sq(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&vq(a))return t(a.host);if(!lq(a))return uq(a)?t(a.parentElement):i;if(i.has(a))return i;const s=lN(a,!0);if(n&&a===e||function(e,t=lN(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,s)&&i.add(a),function(e,t=lN(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function pN(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=Pq(e);for(;n;){if(n===t)return r;const e=nq(n),{x:o,y:i}=fN(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=Pq(n)}return r}function fN(e,t=nq(e)){const r=Math.round(t.width),n=Math.round(t.height);if(lq(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=lN(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function hN(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 mN(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=hN(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 gN=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(gN||{}),bN={x:.2,y:.2},vN={x:10,y:10};function yN(e,t,r,n=25,o=bN,i=vN){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=tN(e),f=pN(e),h=mN(lN(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new ET(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 xN(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!lq(e))return e.scrollIntoView();var n=function(e){const[t]=dN(e,{limit:1});return null!=t?t:null}(e);if(!lq(n))return;const o=lN(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 SN({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function wN(e,t=lN(e).translate,r=!0){if(r){const t=rq(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=hN(e);if(t)return t}}}if(t){const e=hN(t);if(e)return e}return{x:0,y:0,z:0}}var CN=new nN((e=>setTimeout(e,0))),EN=new Map,RN=EN.clear.bind(EN);function PN(e,t){const r=function(e){const t=e.ownerDocument;let r=EN.get(t);if(r)return r;r=t.getAnimations(),EN.set(t,r),CN.schedule(RN);const n=r.filter((t=>tq(t.effect)&&t.effect.target===e));return EN.set(e,n),r}(e).filter((e=>{var r,n;if(tq(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 AN=class extends ET{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=pN(e),ignoreTransforms:s,getBoundingClientRect:l=nq}=t,u=PN(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||gq())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=lN(e),b=mN(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=tq(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=mN({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 IN(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 MN=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(IN(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(IN(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(IN(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function kN(e){return!!e&&(e instanceof aq(e).Element||iq(e)&&e.nodeType===Node.ELEMENT_NODE)}function DN(e){if(!e)return!1;const{KeyboardEvent:t}=aq(e.target);return e instanceof t}var TN={};function ON(e){const t=null==TN[e]?0:TN[e]+1;return TN[e]=t,`${e}-${t}`}var LN=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/CT.distance(t.shape.center,r),type:LO.PointerIntersection,priority:OO.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=CT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:LO.ShapeIntersection,priority:OO.Normal}}return null})(e)},qN=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?ET.from(n.current.boundingRectangle).corners:void 0,a=ET.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+CT.distance(CT.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:LO.Collision,priority:OO.Normal}},NN=Object.create,jN=Object.defineProperty,_N=Object.defineProperties,zN=Object.getOwnPropertyDescriptor,FN=Object.getOwnPropertyDescriptors,HN=Object.getOwnPropertySymbols,$N=Object.prototype.hasOwnProperty,WN=Object.prototype.propertyIsEnumerable,BN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),VN=e=>{throw TypeError(e)},UN=(e,t,r)=>t in e?jN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,GN=(e,t)=>{for(var r in t||(t={}))$N.call(t,r)&&UN(e,r,t[r]);if(HN)for(var r of HN(t))WN.call(t,r)&&UN(e,r,t[r]);return e},YN=(e,t)=>_N(e,FN(t)),KN=(e,t)=>jN(e,"name",{value:t,configurable:!0}),XN=(e,t)=>{var r={};for(var n in e)$N.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&HN)for(var n of HN(e))t.indexOf(n)<0&&WN.call(e,n)&&(r[n]=e[n]);return r},JN=e=>{var t;return[,,,NN(null!=(t=null==e?void 0:e[BN("metadata")])?t:null)]},ZN=["class","method","getter","setter","accessor","field","value","get","set"],QN=e=>void 0!==e&&"function"!=typeof e?VN("Function expected"):e,ej=(e,t,r,n,o)=>({kind:ZN[e],name:t,metadata:n,addInitializer:e=>r._?VN("Already initialized"):o.push(QN(e||null))}),tj=(e,t)=>UN(t,BN("metadata"),e[3]),rj=(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},nj=(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=ZN[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)&&zN(d<4?o:{get[r](){return aj(this,i)},set[r](e){return lj(this,i,e)}},r));d?f&&d<4&&KN(i,(d>2?"set ":d>1?"get ":"")+r):KN(o,r);for(var y=n.length-1;y>=0;y--)u=ej(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>ij(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?aj:uj)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>lj(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?QN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?VN("Object expected"):(QN(a=s.get)&&(v.get=a),QN(a=s.set)&&(v.set=a),QN(a=s.init)&&g.unshift(a));return d||tj(e,o),v&&jN(o,r,v),f?4^d?i:v:o},oj=(e,t,r)=>t.has(e)||VN("Cannot "+r),ij=(e,t)=>Object(t)!==t?VN('Cannot use the "in" operator on this value'):e.has(t),aj=(e,t,r)=>(oj(e,t,"read from private field"),r?r.call(e):t.get(e)),sj=(e,t,r)=>t.has(e)?VN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),lj=(e,t,r,n)=>(oj(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),uj=(e,t,r)=>(oj(e,t,"access private method"),r),cj="button",dj="draggable",pj="dnd-kit-description",fj="dnd-kit-announcement",hj={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."},mj={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 gj(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var bj=["dragover","dragmove"],vj=class extends dO{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=pj,announcement:o=fj}={},announcements:i=mj,screenReaderInstructions:a=hj,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:ON(n),u=r?`${o}-${r}`:ON(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>oN.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,bj.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),gj(r)&&!gq()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",cj))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",dj))),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&&oN.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var yj,xj,Sj,wj,Cj,Ej,Rj,Pj,Aj,Ij,Mj,kj=new Map,Dj=class extends(Cj=fO,wj=[XD],Sj=[JD],xj=[JD],yj=[JD],Cj){constructor(e){super(e),rj(Rj,5,this),sj(this,Aj),sj(this,Ej,new Set),sj(this,Pj,rj(Rj,8,this,new Set)),rj(Rj,11,this),this.registerEffect(uj(this,Aj,Ij))}register(e){return aj(this,Ej).add(e),()=>{aj(this,Ej).delete(e)}}addRoot(e){return Hk((()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t})),()=>{Hk((()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t}))}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return yq(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return yq(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter((e=>null!=e));return new Set([...e,...this.additionalRoots])}return new Set}};Rj=JN(Cj),Ej=new WeakMap,Pj=new WeakMap,Aj=new WeakSet,Ij=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of aj(this,Ej))t.push(uj(this,Aj,Mj).call(this,r,e));return()=>{for(const e of t)e()}},Mj=function(e,t){let r=kj.get(e);r||(r=new Map,kj.set(e,r));let n=r.get(t);if(!n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets),0;const o=sq(e)?e.defaultView:e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=o?o:{};if(!i)return()=>{};const a=new i;a.replaceSync(t),e.adoptedStyleSheets.push(a),n={sheet:a,refCount:0,cleanup:()=>{var n;if(sq(e)||vq(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(a);-1!==t&&e.adoptedStyleSheets.splice(t,1)}r.delete(t),0===r.size&&kj.delete(e)}},r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},nj(Rj,4,"additionalRoots",wj,Dj,Pj),nj(Rj,2,"sourceRoot",Sj,Dj),nj(Rj,2,"targetRoot",xj,Dj),nj(Rj,2,"roots",yj,Dj),tj(Rj,Dj);var Tj="data-dnd-",Oj=`${Tj}dropping`,Lj="--dnd-",qj=`${Tj}dragging`,Nj=`${Tj}placeholder`,jj=[qj,Nj,"popover","aria-pressed","aria-grabbing"],_j=["view-transition-name"],zj=`\n :is(:root,:host) [${qj}] {\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(${Lj}top, 0px) !important;\n left: var(${Lj}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Lj}width, auto);\n max-width: var(${Lj}width, auto);\n height: var(${Lj}height, auto);\n max-height: var(${Lj}height, auto);\n transition: var(${Lj}transition) !important;\n }\n\n :is(:root,:host) [${Nj}] {\n transition: none;\n }\n\n :is(:root,:host) [${Nj}='hidden'] {\n visibility: hidden;\n }\n\n [${qj}] * {\n pointer-events: none !important;\n }\n\n [${qj}]:not([${Oj}]) {\n translate: var(${Lj}translate) !important;\n }\n\n [${qj}][style*='${Lj}scale'] {\n scale: var(${Lj}scale) !important;\n transform-origin: var(${Lj}transform-origin) !important;\n }\n\n @layer {\n :where([${qj}][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 [${qj}]::backdrop, [${Tj}overlay]:not([${qj}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function Fj(e,t="hidden"){return Hk((()=>{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=`${Tj}${ON("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(Sq(e)&&Sq(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),Eq.set(a,i),r.push((()=>{Eq.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(Nj,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function Hj(e,t){return e===t||Pq(e)===Pq(t)}function $j(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&kN(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>Qq(t)))}function Wj(e){return"TR"===e.tagName}var Bj,Vj,Uj,Gj,Yj,Kj,Xj,Jj=250,Zj="ease";var Qj=class extends(Vj=dO,Bj=[XD],Vj){constructor(e,t){super(e,t),sj(this,Yj),sj(this,Gj,rj(Uj,8,this)),rj(Uj,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(Dj),n=null==r?void 0:r.register(zj);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(uj(this,Yj,Kj).bind(this,r)),this.registerEffect(uj(this,Yj,Xj))}};Uj=JN(Vj),Gj=new WeakMap,Yj=new WeakSet,Kj=function(e){const{overlay:t}=this;if(!t||!e)return;const r=yq(t);return r?e.addRoot(r):void 0},Xj=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=pN(f),m=pN(c),g=!Hj(c,f),b=new AN(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=b;g&&(x/=v,S/=y);const E=new MN(f),{transition:R,translate:P,boxSizing:A,paddingBlockStart:I,paddingBlockEnd:M,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=lN(c),N="clone"===d,j="content-box"===A,_=j?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=j?parseInt(I)+parseInt(M)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:Fj(l,N?"clone":"hidden"),H=Hk((()=>DN(o.dragOperation.activatorEvent)));if("none"!==P){const e=hN(P);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=Hk((()=>s.current));p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,W=w*h.scaleY+h.y,B=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:B,y:W},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=$;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-B,U=p.coordinates.y-W,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(qj,"true");const Z=Hk((()=>a.transform)),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,re=bq();if(E.set({width:x-_,height:S-z,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${v} ${y}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},Lj),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;Zq(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),Qq(f),f.addEventListener("beforetoggle",$j));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver((()=>{var e,t;const r=new AN(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=bq();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},Lj),null==(t=se.getElementMutationObserver())||t.takeRecords(),Wj(se.element)&&Wj(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map((e=>e.style.width)));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new AN(se.feedbackElement)})));var se;const le=new AN(f);Hk((()=>a.shape=le));const ue=aq(f),ce=e=>{this.manager.actions.stop({event:e})},de=xq(ue);H&&ue.addEventListener("resize",ce),"idle"===Hk((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),F&&(ae.observe(F),ne=function(e,t,r){const n=new MutationObserver((n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||jj.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(IN(e)&&IN(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(_j.includes(e)||e.startsWith(Lj))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)}));return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),oe=function(e,t,r){const n=new MutationObserver((n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void Qq(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void Qq(r)}}));return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!H||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;lq(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),Zq(f)&&(f.removeEventListener("beforetoggle",$j),f.removeAttribute("popover")),f.removeAttribute(qj),E.reset(),ie&&Wj(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},me=null==i?void 0:i.dropAnimation,ge=this,be=QD((()=>{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=Hk((()=>a.modifiers)),l=Hk((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=H&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},Lj),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=CT.delta(o,i);a.shape=ET.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new AN(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then((()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then((()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}const{duration:a=Jj,easing:s=Zj}=null!=i?i:{};Qq(e.feedbackElement);const[,l]=null!=(t=rq(e.feedbackElement,(e=>"translate"in e)))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:Hj(e.feedbackElement,u)?null:void 0},d=new AN(e.feedbackElement,c),p=null!=(n=hN(lN(e.feedbackElement).translate))?n:e.translate,f=new AN(u,c),h=ET.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},Lj),e.feedbackElement.setAttribute(Oj,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),SN({element:e.feedbackElement,keyframes:YN(GN(GN({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:xq(aq(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then((()=>{e.feedbackElement.removeAttribute(Oj),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}({element:c,feedbackElement:f,placeholder:F,translate:t,moved:r,transition:R,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})}))}}));return()=>{he(),be()}},nj(Uj,4,"overlay",Bj,Qj,Gj),tj(Uj,Qj),Qj.configure=uO(Qj);var e_,t_,r_,n_,o_,i_,a_,s_=Qj,l_=!0;r_=[XD],n_=gN.Forward,e_=[XD],t_=gN.Reverse;var u_=class{constructor(){sj(this,i_,rj(o_,8,this,l_)),rj(o_,11,this),sj(this,a_,rj(o_,12,this,l_)),rj(o_,15,this)}isLocked(e){return e!==gN.Idle&&(null==e?this[gN.Forward]===l_&&this[gN.Reverse]===l_:this[e]===l_)}unlock(e){e!==gN.Idle&&(this[e]=false)}};o_=JN(null),i_=new WeakMap,a_=new WeakMap,nj(o_,4,n_,r_,u_,i_),nj(o_,4,t_,e_,u_,a_),tj(o_,u_);var c_,d_,p_,f_,h_,m_,g_=[gN.Forward,gN.Reverse],b_=class{constructor(){this.x=new u_,this.y=new u_}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},v_=class extends dO{constructor(e){super(e);const t=Yk(new b_);let r=null;this.signal=t,oD((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new b_);const{delta:o}=e.dragOperation.position;if(r){const e={x:y_(o.x,r.x),y:y_(o.y,r.y)},n=t.peek();zk((()=>{for(const t of OT)for(const r of g_)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function y_(e,t){return Math.sign(e-t)}var x_=class extends(d_=fO,c_=[XD],d_){constructor(e){super(e),sj(this,f_,rj(p_,8,this,!1)),rj(p_,11,this),sj(this,h_),sj(this,m_,(()=>{if(!aj(this,h_))return;const{element:e,by:t}=aj(this,h_);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 lj(this,h_,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:S_(n.x),y:S_(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=rN(e,n);if(r.x||r.y){const{speed:r,direction:s}=yN(e,o,i);if(a)for(const e of OT)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=aj(this,h_))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return lj(this,h_,{element:e,by:{x:a,y:l}}),oN.schedule(aj(this,m_)),!0}}}}}return lj(this,h_,void 0),!1};let t=null,r=null;const n=YD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=Cq(yq(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=YD((()=>{const t=n.value,{documentElement:o}=cq(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=dN(n,{excludeElement:!1});return r=e,e}}if(t){const e=dN(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),KD);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new v_(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&DN(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function S_(e){return e>0?gN.Forward:e<0?gN.Reverse:gN.Idle}p_=JN(d_),f_=new WeakMap,h_=new WeakMap,m_=new WeakMap,nj(p_,4,"autoScrolling",c_,x_,f_),tj(p_,x_);var w_,C_=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()})),E_=class extends dO{constructor(e,t){super(e);const r=e.registry.plugins.get(x_);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=oD((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>C_.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},R_={capture:!0,passive:!0},P_=class extends fO{constructor(e){super(e),sj(this,w_),this.handleScroll=()=>{null==aj(this,w_)&&lj(this,w_,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),lj(this,w_,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=oD((()=>{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,R_),()=>{o.removeEventListener("scroll",this.handleScroll,R_)}}}))}};w_=new WeakMap;function A_(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var I_,M_=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),k_=class extends SL{constructor(e,t){super(e),this.manager=e,this.options=t,sj(this,I_,[]),this.listeners=new Rq,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!kN(e.target))return;if(t.disabled)return;const{keyboardCodes:n=M_.keyboardCodes,preventActivation:o=M_.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=oD((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{DN(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(),xN(n);const{center:o}=new AN(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=cq(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];aj(this,I_).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=M_.keyboardCodes}=null!=r?r:{};if(O_(e,[...n.end,...n.cancel])){e.preventDefault();const t=O_(e,n.cancel);this.handleEnd(e,t)}else O_(e,n.up)?this.handleMove("up",e):O_(e,n.down)&&this.handleMove("down",e),O_(e,n.left)?this.handleMove("left",e):O_(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:M_.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(E_);!1===(null==e?void 0:e.disabled)&&(e.disable(),aj(this,I_).push((()=>{e.enable()})))}cleanup(){aj(this,I_).forEach((e=>e())),lj(this,I_,[])}destroy(){this.cleanup(),this.listeners.clear()}};I_=new WeakMap,k_.configure=uO(k_),k_.defaults=M_;var D_,T_=k_;function O_(e,t){return t.includes(e.code)}var L_,q_;D_=new WeakMap;L_=new WeakMap,q_=new WeakMap;var N_=class{};N_.Delay=class extends CL{constructor(){super(...arguments),sj(this,L_),sj(this,q_)}onEvent(e){switch(e.type){case"pointerdown":lj(this,q_,fq(e)),lj(this,L_,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!aj(this,q_))return;const{x:t,y:r}=fq(e);AT({x:t-aj(this,q_).x,y:r-aj(this,q_).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){aj(this,L_)&&(clearTimeout(aj(this,L_)),lj(this,q_,void 0),lj(this,L_,void 0))}},N_.Distance=class extends CL{constructor(){super(...arguments),sj(this,D_)}onEvent(e){switch(e.type){case"pointerdown":lj(this,D_,fq(e));break;case"pointermove":if(!aj(this,D_))return;const{x:t,y:r}=fq(e),n={x:t-aj(this,D_).x,y:r-aj(this,D_).y},{tolerance:o}=this.options;if(o&&AT(n,o))return void this.abort();AT(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){lj(this,D_,void 0)}};var j_,__=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!kN(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new N_.Delay({value:250,tolerance:5})]:function(e){if(!kN(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new N_.Delay({value:200,tolerance:0})]:[new N_.Delay({value:200,tolerance:10}),new N_.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!kN(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),z_=class extends SL{constructor(e,t){super(e),this.manager=e,this.options=t,sj(this,j_,new Set),this.listeners=new Rq,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,r=this.options){const{activationConstraints:n=__.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=oD((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=aq(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&&(B_(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||!kN(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=__.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=lq(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=pN(t.element),{x:s,y:l}=fq(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new wL(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=mq(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:H_,options:{capture:!0}}]);aj(this,j_).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=fq(e),n=pN(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,oN.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=cq(t.target).body;o.setPointerCapture(t.pointerId);const i=kN(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:H_,options:{passive:!1}},{type:"click",listener:H_},{type:"contextmenu",listener:H_},{type:"keydown",listener:this.handleKeyDown}]);aj(this,j_).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},aj(this,j_).forEach((e=>e())),aj(this,j_).clear()}destroy(){this.cleanup(),this.listeners.clear()}};j_=new WeakMap,z_.configure=uO(z_),z_.defaults=__;var F_=z_;function H_(e){e.preventDefault()}function $_(){}var W_=new WeakSet;function B_(e){e&&!W_.has(e)&&(e.addEventListener("touchmove",$_,{capture:!1,passive:!1}),W_.add(e))}var V_,U_,G_,Y_,K_,X_,J_,Z_,Q_,ez,tz,rz,nz,oz,iz,az,sz,lz,uz={modifiers:[],plugins:[vj,E_,class extends dO{constructor(e,t){super(e,t),this.manager=e;const r=YD((()=>{var e;return cq(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=oD((()=>{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()}}))}},s_,class extends dO{constructor(e,t){super(e,t),this.manager=e,this.destroy=oD((()=>{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),A_(),document.addEventListener("selectionchange",A_,{capture:!0}),()=>{document.removeEventListener("selectionchange",A_,{capture:!0}),e.remove()}}}))}}],sensors:[F_,T_]},cz=class extends YL{constructor(e={}){const t=GL(e.plugins,uz.plugins),r=GL(e.sensors,uz.sensors),n=GL(e.modifiers,uz.modifiers);super(YN(GN({},e),{plugins:[P_,x_,Dj,...t],sensors:r,modifiers:n}))}},dz=class extends(Y_=vL,G_=[XD],U_=[XD],V_=[XD],Y_){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=XN(r,["element","effects","handle","feedback"]);super(GN({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(cO))?t:[...r.sensors]).map((e=>{const t=e instanceof SL?e:r.registry.register(e.plugin),n=e instanceof SL?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),sj(this,X_,rj(K_,8,this)),rj(K_,11,this),sj(this,J_,rj(K_,12,this)),rj(K_,15,this),sj(this,Z_,rj(K_,16,this)),rj(K_,19,this),this.element=n,this.handle=i,this.feedback=a}};K_=JN(Y_),X_=new WeakMap,J_=new WeakMap,Z_=new WeakMap,nj(K_,4,"handle",G_,dz,X_),nj(K_,4,"element",U_,dz,J_),nj(K_,4,"feedback",V_,dz,Z_),tj(K_,dz);var pz=class extends(tz=yL,ez=[XD],Q_=[XD],tz){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=XN(r,["element","effects"]);const{collisionDetector:a=LN}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new AN(r),o=Hk((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=Yk(!1);super(YN(GN({},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 Jq(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),sj(this,sz),sj(this,nz,rj(rz,8,this)),rj(rz,11,this),sj(this,lz,rj(rz,12,this)),rj(rz,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){lj(this,sz,e,az)}get element(){var e;return null!=(e=this.proxy)?e:aj(this,sz,iz)}};function fz(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}rz=JN(tz),nz=new WeakMap,sz=new WeakSet,lz=new WeakMap,oz=nj(rz,20,"#element",ez,sz,nz),iz=oz.get,az=oz.set,nj(rz,4,"proxy",Q_,pz,lz),tj(rz,pz);var hz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?N:T;function mz(){const e=I(0)[1];return q((()=>{e((e=>e+1))}),[e])}function gz(e,t=[],r=!1){const n=M(e);return n.current=e,function(e,t=!1){const r=M(e.peek()),n=M(!1),o=mz();return hz((()=>oD((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?V(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(A((()=>YD((()=>n.current()))),t),r)}function bz(e,t){const r=M(new Map),n=mz();return hz((()=>{if(e)return oD((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=Hk((()=>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?V(n):n())}));r.current.clear()}),[e]),A((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function vz(e,t){e()}function yz(e){const t=M(e);return hz((()=>{t.current=e}),[e]),t}function xz(e,t,r=T,n=Object.is){const o=M(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function Sz(e,t){const r=M(fz(e));hz((()=>{const n=fz(e);n!==r.current&&(r.current=n,t(n))}))}var wz=Object.getOwnPropertySymbols,Cz=Object.prototype.hasOwnProperty,Ez=Object.prototype.propertyIsEnumerable,Rz=new cz,Pz=k(Rz),Az=_(j((({children:e},t)=>{const[r,n]=I(0),o=M(null),i=M(null),a=A((()=>({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}))),F((()=>{e(),n((e=>e+1))}))}})),[]);return hz((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),H(t,(()=>a)),null}))),Iz=[void 0,KD];function Mz(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)Cz.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&wz)for(var n of wz(e))t.indexOf(n)<0&&Ez.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=M(null),{plugins:d,modifiers:p,sensors:f}=u,h=GL(d,uz.plugins),m=GL(f,uz.sensors),g=GL(p,uz.modifiers),b=yz(o),v=yz(i),y=yz(s),x=yz(a),S=yz(l),w=yz(n),C=function(e){const t=M(null);t.current||(t.current=e());return z((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new cz(u)}));return T((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=b.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)})),r.addEventListener("dragover",(e=>{const r=y.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragmove",(e=>{const r=x.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragend",(e=>{const r=S.current;r&&t((()=>r(e,C)))})),r.addEventListener("collision",(e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)}))];return()=>n.forEach((e=>e()))}),[C]),xz(h,(()=>C&&(C.plugins=h)),...Iz),xz(m,(()=>C&&(C.sensors=m)),...Iz),xz(g,(()=>C&&(C.modifiers=g)),...Iz),or.jsxs(Pz.Provider,{value:C,children:[or.jsx(Az,{ref:c,children:r}),r]})}function kz(){return L(Pz)}function Dz({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=M(null),l=kz(),u=null!=(a=gz((()=>null==l?void 0:l.dragOperation.source),[l]).value)?a:null,c="function"==typeof i?i(u):i;T((()=>{if(!s.current||!l||c)return;const e=l.plugins.find((e=>e instanceof s_));return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0}),[l,c]),T((()=>{if(!l)return;const e=l.plugins.find((e=>e instanceof s_));return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0}),[l,r]);const d=A((()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?Tz:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})}),[l]);return or.jsx(Pz.Provider,{value:d,children:w(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return or.jsx(Oz,{source:u,children:e});return e}())})}function Tz(){return()=>{}}function Oz({children:e,source:t}){return e(bz(t))}var Lz,qz,Nz,jz,_z,zz=Object.create,Fz=Object.defineProperty,Hz=Object.getOwnPropertyDescriptor,$z=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Wz=e=>{throw TypeError(e)},Bz=["class","method","getter","setter","accessor","field","value","get","set"],Vz=e=>void 0!==e&&"function"!=typeof e?Wz("Function expected"):e,Uz=(e,t,r,n,o)=>({kind:Bz[e],name:t,metadata:n,addInitializer:e=>r._?Wz("Already initialized"):o.push(Vz(e||null))}),Gz=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=Bz[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Hz(o,r)),h=n.length-1;h>=0;h--)(l=Uz(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,Vz(a)&&(f[d]=a);return f&&Fz(o,r,f),o},Yz=(e,t,r)=>t.has(e)||Wz("Cannot "+r),Kz=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)}},Xz=class extends(Nz=tT,qz=[JD],Lz=[JD],Nz){constructor(e){var t,r,n;super(Kz.from(e),((e,t)=>Kz.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(_z,5,this),t=this,n=0,(r=jz).has(t)?Wz("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 Kz.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=Kz.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(Yz(a=this,s=jz,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);zk((()=>{((e,t,r)=>{Yz(e,t,"write to private field"),t.set(e,r)})(this,jz,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(Kz.from(e)),this.velocity={x:0,y:0}}};_z=(e=>{var t;return[,,,zz(null!=(t=null==e?void 0:e[$z("metadata")])?t:null)]})(Nz),jz=new WeakMap,Gz(_z,2,"delta",qz,Xz),Gz(_z,2,"direction",Lz,Xz),((e,t)=>{((e,t,r)=>{t in e?Fz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,$z("metadata"),e[3])})(_z,Xz);var Jz=(e=>(e.Horizontal="x",e.Vertical="y",e))(Jz||{});function Zz(e){const t=kz();T((()=>{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(Jz);const Qz=()=>{const[e,t]=I(!1);return Zz({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?or.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},eF=()=>{const{flags:e}=uM(iM,(e=>e.env)),t=uM(iM,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},tF=(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}),rF=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),nF=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),oF=e=>e.atTop?2:1,iF=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],aF=e=>e?.setAttribute("tabIndex","0"),sF=e=>e?.setAttribute("tabIndex","-1"),lF=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(sF)},uF=e=>{e?.focus(),aF(e)},cF=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${lE}`);uF(t)}),0)},dF=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{lF(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 sE.Down:u<s&&u++;break;case sE.Up:u>a&&u--;break;case sE.Right:if(i)break;[u,c]="rtl"===n?rF({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):nF({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case sE.Left:if(i)break;[u,c]="rtl"===n?nF({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):rF({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case sE.Home:(II(e)||i)&&(u=a),i||(c=0);break;case sE.End:(II(e)||i)&&(u=s),i||(c=l);break;case sE.PageDown:u=Math.min(s,u+10);break;case sE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=iF(t,a);return uF(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}},pF=(e,t,r,n)=>{lF(t),r(e),n.enabled&&!n.active?n.focus?.():uF(iF(t,e))},fF=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${oE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${GA.First}`),r=e.querySelector(`.${GA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},hF=j(((e,t)=>or.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:or.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"})}))),mF=mc(Bh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...lI,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),gF=mc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:iI,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),bF=parseInt(iI,10)/2,vF=mc("div")({position:"absolute",bottom:-bF,left:`calc(50% - ${bF}px)`}),yF={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},xF=mc(ip)({height:"100%"}),SF=mc("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?{...yF,whiteSpace:"nowrap",display:r?"block":void 0}:{...yF,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),wF=mc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),CF="cell-text",EF=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=uM(iM,(e=>e.baseProps));return o?or.jsx(SF,{"data-testid":CF,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):or.jsx(SF,{"data-testid":CF,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},RF=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,{changeSortOrder:s,interactions:l,embed:u,styleService:c,layout:d,direction:p}=uM(iM,(e=>e.baseProps)),f=sR(cR),h=sR(uR),m=uM(iM,(e=>e.columnWidths[t.pageColIdx])),g=uM(iM,(e=>e.baseProps.model)),b=M(null),v=M(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=VC({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:aI});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:c,column:t,columnWidth:m}),{StartIcon:x,EndIcon:S,LockIcon:w}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?or.jsx(WM,{height:iI,"data-testid":"head-cell-sort-ascending-icon"}):or.jsx(UM,{height:iI,"data-testid":"head-cell-sort-descending-icon"}),a=r?or.jsx(gF,{align:t,dir:o,children:i}):void 0,s=n?or.jsx(SI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:or.jsx(hF,{height:iI,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,y,p);return or.jsxs(xI,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:fI(t,i,p),children:[w,or.jsxs(yI,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:p,isPagination:i,children:[x,or.jsx(EF,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),S]}),r?or.jsxs(or.Fragment,{children:[or.jsx(ak,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:f,anchorRef:b,menuAvailabilityFlags:{[nk.Sorting]:!0,[nk.Searching]:!0,[nk.Selections]:!0,[nk.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:l,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),s(t,r))},searchRelatedArgs:{embed:u,listboxRef:v},selectionRelatedArgs:{app:h,qStateName:d.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:cF},shouldShowMenuIcon:y.shouldShowMenuIcon,model:g,direction:p,isPagination:i,isAccessibleHeader:!0}),or.jsx(vI,{ref:v,direction:p,isPagination:i}),or.jsx(vI,{ref:b,direction:p})]}):null]})},PF=j(((e,t)=>or.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:or.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"})}))),AF=(e,t)=>e.isCyclic&&t,IF=({column:e})=>{const{direction:t,model:r,styleService:n}=uM(iM,(e=>e.baseProps)),o=S.useRef(null),[i,a]=S.useState(!1),s=gM({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return or.jsxs(or.Fragment,{children:[or.jsx(CI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:or.jsx(PF,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),or.jsx(jM,{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:GM,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},MF=e=>e.isLocked,kF=({column:e})=>{const t=sR(uR),r=uM(iM,(e=>e.baseProps.layout.qStateName)),n=uM(iM,(e=>e.baseProps.styleService));return or.jsx(CI,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=zM(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:or.jsx(hF,{height:16,"data-testid":"head-cell-lock-icon"})})},DF=({column:e,open:t,setOpen:r,isPagination:n})=>{const{interactions:o,layout:i,direction:a,changeSortOrder:s,embed:l,styleService:u}=uM(iM,(e=>e.baseProps)),c=sR(cR),d=sR(uR),p=uM(iM,(e=>e.baseProps.model)),f=S.useRef(null),h=S.useRef(null);return or.jsxs(CI,{tabIndex:-1,hoverBackground:u.headerMenuHoverBackground,activeBackground:u.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[or.jsx(ak,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:c,anchorRef:f,menuAvailabilityFlags:{[nk.Sorting]:!0,[nk.Searching]:!0,[nk.Selections]:!0,[nk.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:o,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:l,listboxRef:h},selectionRelatedArgs:{app:d,qStateName:i.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:cF},shouldShowMenuIcon:!0,model:p,direction:a,isPagination:n,isAccessibleHeader:!1,iconSize:16}),or.jsx(vI,{ref:h,direction:a,isPagination:n}),or.jsx(vI,{ref:f,direction:a})]})},TF=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,OF=(e,t)=>{const r=M(t);r.current=t,N((()=>{if(!e.current)return()=>{};const t=new ResizeObserver((e=>{r.current(e)}));return t.observe(e.current),()=>{t.disconnect()}}),[e])},LF=mc(ip)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),qF=({children:e})=>{const t=S.useRef(null),[r,n]=I((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=A((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=q((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 OF(t,i),or.jsx(LF,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})},NF=({children:e})=>e,jF=(e,t)=>!e.isLocked&&e.isDim&&t,_F=({column:e,open:t,setOpen:r})=>{const{embed:n,direction:o,layout:i,styleService:a}=uM(iM,(e=>e.baseProps));sR(uR);const s=S.useRef(null),l=q((()=>{r(!1)}),[r]),u=_M({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:s},selectionRelatedArgs:{qStateName:i.qStateName},direction:o,onPopoverClose:l});return or.jsx(CI,{tabIndex:-1,hoverBackground:a.headerMenuHoverBackground,activeBackground:a.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:or.jsx(JM,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},zF=j(((e,t)=>or.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:or.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"})}))),FF=j(((e,t)=>or.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:or.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"})}))),HF=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?or.jsx(FF,{height:iI,"data-testid":"head-cell-sort-ascending-icon"}):or.jsx(zF,{height:iI,"data-testid":"head-cell-sort-descending-icon"});return r?or.jsx(vF,{children:n}):void 0},$F=()=>{const e=uM(iM,(e=>e.baseProps.interactions.active)),t=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t},WF=0,BF=1,VF=2,UF=3,GF=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i}=e,{styleService:a}=uM(iM,(e=>e.baseProps)),s=$F(),{measureText:l}=VC(a.header),[u,c]=S.useState(!1);return or.jsxs(qF,{children:[or.jsx(NF,{prio:VF,minWidth:bI,children:MF(t)?or.jsx(kF,{column:t}):null},"Lock"),or.jsx(NF,{prio:BF,minWidth:bI,children:AF(t,s)?or.jsx(IF,{column:t}):null},"Cyclic"),or.jsx(NF,{ignore:!0,children:or.jsx(HF,{column:t})},"Sort"),or.jsx(NF,{minWidth:l(t.label)+8,children:or.jsx(wI,{justifyContent:t.headTextAlign,children:or.jsx(EF,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),or.jsx(NF,{prio:WF,minWidth:bI,children:u||jF(t,s)?or.jsx(_F,{open:u,setOpen:c,column:t}):null},"Search"),or.jsx(NF,{prio:UF,minWidth:bI,children:s?or.jsx(DF,{column:t,open:r,setOpen:n,isPagination:o}):null},"Menu")]})},YF=mc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),KF=()=>{},XF=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=uM(iM,(e=>e.baseProps)),o=uM(iM,(e=>e.showRightBorder)),i=uM(iM,(e=>e.tableData.totalsPosition)),a=!1,s=eF()?RF:GF;return or.jsx(YF,{className:"sn-table-cell",applicableStyle:{...r.header,...tF(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:mI(n,a,o),borderLeftWidth:gI(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:or.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:KF})})},JF=({isPagination:e})=>{const{columns:t}=uM(iM,(e=>e.tableData)),[r,n]=I();Zz({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?or.jsx(Dz,{children:or.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:or.jsx(XF,{column:o,isPagination:e})})}):null},ZF=[F_.configure({activationConstraints:[new N_.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],QF=uz.plugins.filter((e=>e!==vj)),eH=({children:e})=>{const{model:t}=uM(iM,(e=>e.baseProps)),{columns:r}=uM(iM,(e=>e.tableData));return or.jsx(Mz,{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:ZF,plugins:QF,children:e})};function tH(e,t){const r=M(!1);T((()=>{r.current?e():r.current=!0}),t)}function rH(e,t){let r=null;const n=new Map,o=new Set;function i(t){let o;if(o=n.get(t),void 0!==o){if(!r?.(o[1],t))return o[0];i.remove(t)}const s=e(t);return n.set(t,[s,Date.now()]),a("CREATE",t,s),s}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{{if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}const nH=KE(YA),oH=rH((e=>KE((t=>{const[r,n]=t(nH);return 0===r&&n===e})))),iH=()=>{const{downloadService:e}=uM(iM,(e=>e.baseProps));T((()=>{e.notifyIsDoneRendering()}))},aH=(e,t,r)=>{const{rootElement:n,keyboard:o}=uM(iM,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=uM(iM,(e=>e.tableData)),[u,c]=function(e){return[sR(e),lR(e)]}(nH),d=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal()));tH((()=>{const r=((e,t,r=!1)=>{const n=[oF(t),e[1]];return r?n:YA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(lF(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=iF(t,e);r.current?(uF(s),r.current=!1):aF(s),n&&(a({keys:[s?.textContent??""]}),AI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},sH=(e,t,r)=>{T((()=>{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])},lH=e=>{qC(e),II(e)&&gE(e.currentTarget)},uH=e=>{TI(e.evt)&&(qC(e.evt),dF(e))},cH=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!TI(t))return;qC(t);const i=((e,t)=>[e.pageRowIdx+oF(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?oF(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=dF({...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:VA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):AI(o,a,i)})({...e,nextCell:s})},dH=e=>{const{evt:t}=e;MI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{qC(e);const a=Math.ceil(t/r)-1;e.key===sE.Right&&n<a?(o(),i(n+1)):e.key===sE.Left&&n>0&&(o(),i(n-1))})(e):t.key===sE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(qC(e),t.blur?.(!0))})(e):kI(t.key)&&qC(t)},pH=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(BA.Disabled))return void qC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case sE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{qC(e),t.isSelectable&&r&&n({type:VA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case sE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{qC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case sE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(qC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case sE.C:lH(t);break;case sE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(qC(e),LC(e.currentTarget,t,e.shiftKey))})(n);break;default:cH(n)}},fH=e=>{const t=uM(iM,(e=>e.isAdjustingWidth)),r=uM(iM,(e=>e.setXScrollbarWidth)),n=uM(iM,(e=>e.setYScrollbarWidth)),o=uM(iM,(e=>e.eventEmitter)),i=M();OF(e,(a=>{const s=()=>{if(e.current){const e=a.at(0)?.borderBoxSize.at(0)?.inlineSize??0,t=a.at(0)?.borderBoxSize.at(0)?.blockSize??0,o=a.at(0)?.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.at(0)?.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()})),T((()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}}),[o])},hH=mc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),mH=mc(Yh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),gH=mc(Th,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),bH=()=>or.jsxs(or.Fragment,{children:[or.jsx(hH,{className:GA.First,"data-testid":GA.First,"aria-live":"polite","aria-atomic":"true"}),or.jsx(hH,{className:GA.Second,"data-testid":GA.Second,"aria-live":"polite","aria-atomic":"true"})]}),vH=e=>{const t=M(new Map),r=M(null);T((()=>{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=q(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=q((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return A((()=>({addTask:n,removeTask:o})),[n,o])},yH=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),xH=()=>vH(yH),SH=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{T((()=>{const i=()=>{t({type:VA.Reset})},a=()=>{t({type:VA.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])},wH=e=>{e.stopPropagation()},CH=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:wH,color:IC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),EH=({href:e,text:t,interactions:r,color:n})=>or.jsx(nf,{...CH({href:e,text:t,interactions:r,color:n}),children:t}),RH=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),PH=window.cancelIdleCallback??(e=>{clearTimeout(e)}),AH="qDimensionInfo/0",IH="qMeasureInfo/0",MH="x",kH="y",DH=e=>({key:"bars",type:"box",data:{extract:{field:AH,props:{start:0,end:{field:IH}}}},settings:{major:{scale:MH},minor:{scale:kH},box:{maxWidthPx:8,fill:{fn:e}}}}),TH=e=>({key:"p",type:"point",data:{extract:{field:AH,props:{y:{field:IH}}}},settings:{x:{scale:MH},y:{scale:kH},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),OH=({qNum:e})=>void 0===e?0:Math.sign(e),LH=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=TC(e,t?.negative,r),a=TC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:AH,props:{start:0,end:{field:IH,value:OH}}}},settings:{major:{scale:MH},minor:{scale:kH},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}}}}},qH=(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=TC(e,t?.main,o),l=TC(e,t?.max,s),u=TC(e,t?.min,s),c=TC(e,t?.first,s),d=TC(e,t?.last,s);return e=>{const t=kH in e.datum?kH:"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[DH(a)];case"dots":return[TH(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:AH,props:{v:{field:IH}}}},settings:{coordinates:{major:{scale:MH},minor:{scale:kH,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(TC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,TH(a)]:[t]}case"posNeg":return[LH(e,n)];default:return[]}},NH=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"}),jH=(e,t,r,n)=>({y:{data:{field:IH},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:AH}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),_H=G();_H.use(U),_H.renderer.prio(["canvas"]);const zH={resolve:()=>{},promise:{}},FH=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=M(e.isDownloadedAsPDForImage?Dt():zH);return{addChartPromiseToQueue:q((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:q((()=>{if(null===t.current||null!==e.current)return;u();r.current=RH((()=>{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 _H.chart({element:e,data:{type:"q",key:"qHyperCube",data:NH(s)},settings:{scales:jH(a,l,u,i),components:qH(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:q((()=>{null!==r.current&&PH(r.current),r.current=null,l()}),[r,l])}},HH=e=>{const t=M(null),r=M(!1);return q((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(PH(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=RH((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},$H=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=M(null),l=M(null),u=M(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=FH({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=q((e=>{e.isIntersecting?n():r()}),[n,r]);T((()=>{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})=>{T((()=>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=HH(t);T((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},WH=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=$H({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return or.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},BH=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}`},VH=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},UH=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=uM(iM,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=or.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:VH(s),objectPosition:BH(l),overflow:"hidden"}});return n?or.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?cI(o,e):void 0},children:c}):c},GH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),YH=j(((e,t)=>or.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:or.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"})}))),KH=j(((e,t)=>or.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:[or.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"}),or.jsx("use",{fillRule:"evenodd"})]}))),XH=j(((e,t)=>or.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:or.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"})}))),JH=j(((e,t)=>or.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:or.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"})}))),ZH=j(((e,t)=>or.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:or.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"})}))),QH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:or.jsx("path",{d:"M2 7.5h12v1H2z"})}))),e$=j(((e,t)=>or.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:or.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"})}))),t$=j(((e,t)=>or.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:or.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"})}))),r$=j(((e,t)=>or.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:or.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"})}))),n$=j(((e,t)=>or.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:or.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"})}))),o$={m:j(((e,t)=>or.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:or.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":r$,R:FF,S:zF,T:j(((e,t)=>or.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:or.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:j(((e,t)=>or.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:or.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:t$,Q:ZH,"è":j(((e,t)=>or.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:or.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"})}))),"¢":XH,"©":KH,"23F4":JH,2013:n$,"&":e$,add:GH,"minus-2":QH,dot:YH},i$=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&o$[t];return o&&or.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:or.jsx(o,{style:{height:e}})})},a$=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=uM(iM,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=rI(e,t,i,o),d=(e=>parseInt(e||iI,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?or.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&&i$({size:d,iconKey:f,color:p}),or.jsx(EF,{isNumeric:!0,children:a}),"right"===h&&i$({size:d,iconKey:f,color:p})]}):i$({size:d,iconKey:f,color:p})},s$=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,l$=({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}=uM(iM,(e=>e.baseProps)),h=uM(iM,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==NR.Link||h||(m=or.jsx(EH,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===NR.Image)return or.jsx(UH,{representation:t.representation,textStyle:r,maxImageHeight:s$(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!==NR.Indicator||Number.isNaN(g)?t.representation.type===NR.MiniChart&&t.representation.miniChart&&!t.isNull?or.jsx(WH,{height:s$(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):or.jsx(EF,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):or.jsx(a$,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},u$=()=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:or.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),c$=mc("div")({"& path":{stroke:"none !important"}}),d$=({children:e,cellSelectionState:t})=>t===BA.Selected?or.jsxs(wF,{children:[e,or.jsx(c$,{children:or.jsx(u$,{})})]}):e,p$=e=>{const t=function(){const e=kz(),t=gz((()=>null==e?void 0:e.dragOperation.source),[e]),r=gz((()=>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},f$=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:VA.SelectMultiEnd})};r({type:VA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:VA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:VA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),h$=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=uM(iM,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=uM(iM,(e=>e.baseProps)),u=lR(nH),c=uM(iM,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{pH({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===sE.Shift&&t({type:VA.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;pF([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}=f$(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},m$=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=BA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?BA.Disabled:n.has(e.qElemNumber)?BA.Selected:BA.Possible),i},g$=(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},b$=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},v$=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return b$(t,e,n?"even":"odd")}return e},y$=(e,t)=>{const{styleService:r}=uM(iM,(e=>e.baseProps)),n=uM(iM,(t=>m$(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=v$(o,r,e),o=g$(o,r,e);const i=UI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===BA.Selected?{...e,...r}:t===BA.Disabled?{...e,background:`${nI}, ${e.background}`}:e}(A((()=>e.isNull?o:UI(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}},x$=mc(zh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),S$=mc(am,{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}}}))),w$=mc(Bh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...lI,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),C$=mc(Bh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...lI,...e,fontWeight:aI,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0}))),E$=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=uM(iM,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=h$(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=y$(e,r),g=p$(r.id);return or.jsx(w$,{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} ${aE}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:or.jsx(d$,{cellSelectionState:m,children:or.jsx(l$,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:hI(s,e.align)})})})},R$=KE(0),P$=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const{styleService:o,interactions:i}=uM(iM,(e=>e.baseProps)),a=sR(R$),s=p$(e.id);return or.jsx(C$,{totalsStyle:{...o.totalRow,...tF(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${aE}`,tabIndex:-1,title:i.passive?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:or.jsx(EF,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},A$=()=>{const{columns:e,totalsPosition:t,rows:r}=uM(iM,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=uM(iM,(e=>e.baseProps)),l=lR(nH),u=!!o?.isModal(),c=!!a.active;return or.jsx(am,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return or.jsx(P$,{column:e,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case sE.C:lH(r);break;case sE.Space:r.preventDefault();break;default:uH(e)}else qC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:l,isSelectionMode:u,isInteractionEnabled:c,direction:s})},onMouseDown:()=>{pF(a,n,l,i)}},e.id)}))})};var I$=_(A$);const M$=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=uM(iM,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=uM(iM,(e=>e.baseProps)),c=uM(iM,(e=>e.selectionDispatch)),d=!!$I(l)?.content?.hoverEffect;SH({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=q((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return vH(t)})(t),f=xH();return or.jsxs(x$,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?or.jsx(I$,{}):void 0,n.map(((e,t)=>or.jsx(S$,{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 or.jsx(E$,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?or.jsx(I$,{}):void 0]})};var k$=_(M$);const D$=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,T$=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,direction:l}=uM(iM,(e=>e.baseProps)),u=sR(cR),c=uM(iM,(e=>e.columnWidths)),d=uM(iM,(e=>e.setColumnWidths));if(!s.active)return null;return or.jsx(hM,{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=>{sF(e);const t=e.closest(".sn-table-cell");uF(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:l})},O$=e=>e.target?.getAttribute("class")?.includes(lE),L$=({isInteractionEnabled:e,column:t})=>{const[r,n]=I(!1),{changeSortOrder:o}=uM(iM,(e=>e.baseProps)),i=uM(iM,(e=>e.isAdjustingWidth)),a=uM(iM,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||O$(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!O$(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var q$=Object.defineProperty,N$=Object.defineProperties,j$=Object.getOwnPropertyDescriptors,_$=Object.getOwnPropertySymbols,z$=Object.prototype.hasOwnProperty,F$=Object.prototype.propertyIsEnumerable,H$=(e,t,r)=>t in e?q$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$$=(e,t)=>{for(var r in t||(t={}))z$.call(t,r)&&H$(e,r,t[r]);if(_$)for(var r of _$(t))F$.call(t,r)&&H$(e,r,t[r]);return e},W$=(e,t)=>N$(e,j$(t)),B$=class extends WL{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return W$($$({},e),{[t]:r})}};B$.configure=uO(B$);var V$=B$;V$.configure({axis:"x",value:0}),V$.configure({axis:"y",value:0});var U$=class extends WL{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 W$($$({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};U$.configure=uO(U$);var G$=class extends WL{constructor(e,t){super(e,t),this.boundingRectangle=Yk(null),this.destroy=oD((()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=nq(r)},i=()=>{n||(n=setTimeout((()=>{o(),n=void 0}),25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}}))}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=$$({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new ET(l,u,s,a),r,n);return c}};G$.configure=uO(G$);var Y$=G$,K$=Object.create,X$=Object.defineProperty,J$=Object.defineProperties,Z$=Object.getOwnPropertyDescriptor,Q$=Object.getOwnPropertyDescriptors,eW=Object.getOwnPropertySymbols,tW=Object.prototype.hasOwnProperty,rW=Object.prototype.propertyIsEnumerable,nW=e=>{throw TypeError(e)},oW=(e,t,r)=>t in e?X$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iW=(e,t)=>{for(var r in t||(t={}))tW.call(t,r)&&oW(e,r,t[r]);if(eW)for(var r of eW(t))rW.call(t,r)&&oW(e,r,t[r]);return e},aW=(e,t)=>J$(e,Q$(t)),sW=["class","method","getter","setter","accessor","field","value","get","set"],lW=e=>void 0!==e&&"function"!=typeof e?nW("Function expected"):e,uW=(e,t,r,n,o)=>({kind:sW[e],name:t,metadata:n,addInitializer:e=>r._?nW("Already initialized"):o.push(lW(e||null))}),cW=(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},dW=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=sW[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,Z$({get[r](){return fW(this,i)},set[r](e){return mW(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=uW(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?lW(s)&&(g[f]=s):"object"!=typeof s||null===s?nW("Object expected"):(lW(a=s.get)&&(g.get=a),lW(a=s.set)&&(g.set=a),lW(a=s.init)&&h.unshift(a));return g&&X$(o,r,g),o},pW=(e,t,r)=>t.has(e)||nW("Cannot "+r),fW=(e,t,r)=>(pW(e,t,"read from private field"),t.get(e)),hW=(e,t,r)=>t.has(e)?nW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),mW=(e,t,r,n)=>(pW(e,t,"write to private field"),t.set(e,r),r);function gW(e){return e instanceof UW||e instanceof VW}var bW=Object.defineProperty,vW=Object.defineProperties,yW=Object.getOwnPropertyDescriptors,xW=Object.getOwnPropertySymbols,SW=Object.prototype.hasOwnProperty,wW=Object.prototype.propertyIsEnumerable,CW=(e,t,r)=>t in e?bW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,EW=(e,t)=>{for(var r in t||(t={}))SW.call(t,r)&&CW(e,r,t[r]);if(xW)for(var r of xW(t))wW.call(t,r)&&CW(e,r,t[r]);return e},RW=(e,t)=>vW(e,yW(t));function PW(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function AW(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function IW(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex((e=>u(e,a.id))),o=e.findIndex((e=>u(e,s.id)));if(-1===n||-1===o){if(AW(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex((e=>u(e,a.id))),-1!==f&&(d=e)),-1===h&&(h=t.findIndex((e=>u(e,s.id))),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&AW(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return RW(EW({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return RW(EW({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&AW(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return RW(EW({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return RW(EW({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return RW(EW({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return RW(EW({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,PW)}var MW="__default__";function kW(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function DW(e,t){return e.index-t.index}function TW(e){return Array.from(e).sort(DW)}var OW,LW,qW,NW,jW,_W,zW,FW,HW=[class extends dO{constructor(e){super(e);const t=oD((()=>{const{dragOperation:t}=e;if(DN(t.activatorEvent)&&gW(t.source)&&t.status.initialized){const t=e.registry.plugins.get(x_);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(!DN(e.nativeEvent))return;if(!gW(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=[];zk((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&gW(e)||!e.element)continue;let r=e.shape;const n=new AN(e.element,{getBoundingClientRect:e=>pq(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,qN);zk((()=>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||!gW(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;xN(c);const d=new AN(c);if(!d)return;const p=ET.delta(d,ET.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 dO{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof UW){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(TW(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!gW(o)||!gW(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=TW(l),g=s?m:TW(u),b=null!=(c=o.sortable.group)?c:MW,v=null!=(d=i.sortable.group)?d:MW,y={[b]:m,[v]:g},x=IW(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),kW(f,S,h,w),zk((()=>{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;gW(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=TW(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(kW(r,i.index,a,o.index),zk((()=>{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()}}}],$W={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},WW=new class{constructor(){VD(this,eT,new WeakMap)}get(e,t){var r;return e?null==(r=BD(this,eT).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return BD(this,eT).has(e)||BD(this,eT).set(e,new Map),null==(n=BD(this,eT).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=BD(this,eT).get(e))?void 0:t.clear():void 0}};LW=[XD],OW=[XD];var BW=class{constructor(e,t){hW(this,NW,cW(qW,8,this)),cW(qW,11,this),hW(this,jW),hW(this,_W),hW(this,zW,cW(qW,12,this)),cW(qW,15,this),hW(this,FW),this.register=()=>(zk((()=>{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=()=>{zk((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{zk((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=$W,plugins:u=HW}=r,c=((e,t)=>{var r={};for(var n in e)tW.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&eW)for(var n of eW(e))t.indexOf(n)<0&&rW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new UW(c,t,this),this.draggable=new VW(aW(iW({},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)&&WW.clear(this.manager),(null==n?void 0:n.dragging)&&WW.set(this.manager,this.id,Hk((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=fW(this,_W),o=fW(this,jW);e===n&&t===o||(mW(this,_W,e),mW(this,jW,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),mW(this,FW,c.element),this.manager=t,this.index=i,mW(this,_W,i),this.group=o,mW(this,jW,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=WW.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=WW.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){Hk((()=>{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}=lN(n),l=wN(n,s,!1),u=wN(n,s);if(i||a){const r=xq(aq(n))?aW(iW({},t),{duration:0}):t;SN({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}}))}))}get manager(){return this.draggable.manager}set manager(e){zk((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){zk((()=>{const t=fW(this,FW),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),mW(this,FW,e)}))}get element(){var e,t;const r=fW(this,FW);if(r)return null!=(t=null!=(e=Eq.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){zk((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){zk((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){zk((()=>{this.droppable.id=e,this.draggable.id=e}))}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:LN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){zk((()=>{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)}};qW=[,,,K$(null)],NW=new WeakMap,jW=new WeakMap,_W=new WeakMap,zW=new WeakMap,FW=new WeakMap,dW(qW,4,"index",LW,BW,NW),dW(qW,4,"group",OW,BW,zW),((e,t)=>{return oW(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(qW,BW);var VW=class extends dz{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},UW=class extends pz{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},GW=Object.defineProperty,YW=Object.defineProperties,KW=Object.getOwnPropertyDescriptors,XW=Object.getOwnPropertySymbols,JW=Object.prototype.hasOwnProperty,ZW=Object.prototype.propertyIsEnumerable,QW=(e,t,r)=>t in e?GW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eB=(e,t)=>{for(var r in t||(t={}))JW.call(t,r)&&QW(e,r,t[r]);if(XW)for(var r of XW(t))ZW.call(t,r)&&QW(e,r,t[r]);return e};function tB(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=eB(eB({},$W),e.transition),b=function(e){var t;const r=null!=(t=kz())?t:void 0,[n]=I((()=>e(r)));return n.manager!==r&&(n.manager=r),hz(n.register,[r,n]),n}((t=>new BW(((e,t)=>YW(e,KW(t)))(eB({},e),{transition:g,register:!1,handle:fz(s),element:fz(a),target:fz(h),feedback:d}),t))),v=bz(b,rB);return xz(o,(()=>b.id=o)),hz((()=>{zk((()=>{b.group=u,b.index=l}))}),[b,u,l]),xz(m,(()=>b.type=m)),xz(t,(()=>b.accept=t),void 0,KD),xz(i,(()=>i&&(b.data=i))),xz(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),vz),Sz(s,(e=>b.handle=e)),Sz(a,(e=>b.element=e)),Sz(h,(e=>b.target=e)),xz(c,(()=>b.disabled=!0===c)),xz(f,(()=>b.sensors=f)),xz(r,(()=>b.collisionDetector=r)),xz(n,(()=>b.collisionPriority=n)),xz(d,(()=>b.feedback=null!=d?d:"default")),xz(g,(()=>b.transition=g),void 0,KD),xz(p,(()=>b.modifiers=p),void 0,KD),xz(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:q((e=>{b.handle=null!=e?e:void 0}),[b]),ref:q((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:q((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:q((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 rB(e,t,r){return!("isDragSource"!==e||r||!t)}const nB=({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/CT.distance(r.shape.center,s),type:LO.Collision,priority:OO.Normal}:null},oB=[Y$.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],iB=(e,t)=>{const{direction:r}=uM(iM,(e=>e.baseProps)),{flags:n}=uM(iM,(e=>e.env)),o=!$F()||!n.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return tB({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:oB,data:e,feedback:"clone",collisionDetector:nB({invert:"rtl"===r})})},aB=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=uM(iM,(e=>e.baseProps)),{columns:l,totalsPosition:u}=uM(iM,(e=>e.tableData)),c=uM(iM,(e=>e.columnWidths[t])),d=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal())),p=lR(nH),f=sR(oH(t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=L$({isInteractionEnabled:h,column:e}),{ref:x,isDragging:S}=iB(e,t),w=p$(e.id),C=eF(),E=C?RF:GF,R=e.isActivelySorted?UA[e.sortDirection]:void 0,P=m?iE:void 0,A=m?"true":void 0,I=t===r-1,M=[0,e.pageColIdx],k={width:c,zIndex:l.length-t},D=f&&0===t&&!i.enabled&&h?0:-1;return or.jsxs(mF,{"data-dragging":S,ref:x,headerStyle:{...a.header,...tF(a,u,!0),opacity:w},background:C&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:k,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${aE}`,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 sE.C:lH(r);break;case sE.Enter:case sE.Space:n?.(r);break;default:uH(e)}else qC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,isInteractionEnabled:h,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&pF(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:C?b:y,"aria-sort":R,"aria-controls":P,"aria-expanded":A,"aria-haspopup":"true",children:[or.jsx(E,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),or.jsx(T$,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},sB=()=>{const{columns:e}=uM(iM,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=uM(iM,(e=>e.baseProps)),o=lR(R$),i=uM(iM,(e=>e.columnWidths)),a=M(null),s=D$(r,n);return T((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),or.jsx(em,{style:{visibility:s?"collapse":void 0},children:or.jsx(am,{ref:a,className:"sn-table-row sn-table-head-row",style:{position:"sticky",top:0},children:e.map(((t,r)=>or.jsx(aB,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var lB=_(sB);const uB=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}=uM(iM,(e=>e.tableData)),{rootElement:f,keyboard:h,theme:m,interactions:g,styleService:b,viewService:v,layout:y,rect:x,direction:S}=uM(iM,(e=>e.baseProps)),w=sR(cR),C=uM(iM,(e=>e.showRightBorder)),E=uM(iM,(e=>e.selectionDispatch)),R=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal())),P=M(!1),A=M(null),I=M(null),k=`${w.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${w.get("SNTable.Accessibility.NavigationInstructions")}`,D=_A(y,v),O=D?v.scrollLeft??0:0,L=D?v.rowPartialHeight??0:0,N=q((()=>{P.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),j=q((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),_=q((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return sH(A,S,v),((e,t)=>{const{keyboard:r}=uM(iM,(e=>e.baseProps));T((()=>{const n=e.current;if(!n)return;const o=e=>{fF(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(I,P),(()=>{const{rootElement:e,keyboard:t}=uM(iM,(e=>e.baseProps)),r=sR(nH);XC((()=>{const n=iF(e,r);t.active?uF(n):(n?.blur(),lF(e))}),[t.active,e])})(),aH(P,o,i),T((()=>{const e=A.current;e&&(e.scrollLeft=O,e.scrollTop=L)}),[t,l,O,L]),tH((()=>{E({type:VA.UpdatePageRows,payload:{pageRows:d}})}),[d]),iH(),fH(A),or.jsxs(eH,{children:[or.jsxs(xF,{ref:I,dir:S,onKeyDown:e=>{dH({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:j,updateShouldRefocus:N,keyboard:h,isSelectionMode:R})},"data-testid":"sn-table",children:[or.jsx(bH,{}),or.jsxs(mH,{ref:A,className:"sn-table-container",fullHeight:!!n||!g.active||!c,interactions:g,tabIndex:-1,role:"application","data-testid":"table-container",children:[or.jsxs(gH,{stickyHeader:!0,"aria-label":k,borderRight:C?`1px solid ${b.grid.border}`:void 0,children:[or.jsx(lB,{}),or.jsx(k$,{...e,updateShouldRefocus:N,tableWrapperRef:I})]}),or.jsx(Qz,{})]}),or.jsx(Nk,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:w,interactions:g,rect:x,layout:y,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:R,direction:S})]}),or.jsx(JF,{isPagination:!0})]})};var cB=_(uB);function dB(){return dB=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},dB.apply(null,arguments)}function pB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fB(e,t){return fB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fB(e,t)}function hB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fB(e,t)}var mB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function gB(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||mB(n)&&mB(o)))return!1;var n,o;return!0}function bB(e,t){var r;void 0===t&&(t=gB);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 vB(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 yB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function xB(e){cancelAnimationFrame(e.id)}function SB(e,t){var r=yB();var n={id:requestAnimationFrame((function o(){yB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var wB=-1;function CB(e){if(void 0===e&&(e=!1),-1===wB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),wB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return wB}var EB=null;function RB(e){if(void 0===e&&(e=!1),null===EB||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?EB="positive-descending":(t.scrollLeft=1,EB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),EB}return EB}var PB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function AB(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,pB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:pB(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=bB((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=bB((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=bB((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(RB()){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&&xB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=SB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}hB(t,e),t.getDerivedStateFromProps=function(e,t){return IB(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=CB();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(RB()){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&&xB(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?PB: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(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),P=R[0],A=R[1],I=[];if(n>0&&g)for(var M=P;M<=A;M++)for(var k=C;k<=E;k++)I.push(w(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:dB({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(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 IB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},MB=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},kB=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},DB=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]},TB=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?OB(e,t,r,i,0,n):LB(e,t,r,Math.max(0,i),n)},OB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=DB(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},LB=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&DB(e,t,n,r).offset<o;)n+=a,a*=2;return OB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},qB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=DB(e,t,r,i),u="column"===e?kB(t,i):MB(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}},NB=AB({getColumnOffset:function(e,t,r){return DB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return TB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=DB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=DB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:MB,getEstimatedTotalWidth:kB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return qB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return qB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return DB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return TB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=DB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=DB("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}}),jB=function(e,t){return e};function _B(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,pB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:pB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=bB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=bB((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=bB((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(RB()){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&&xB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=SB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}hB(t,e),t.getDerivedStateFromProps=function(e,t){return zB(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?CB():0:l.scrollHeight>l.clientHeight?CB():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(RB()){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&&xB(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?jB: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,C=this._getRangeToRender(),E=C[0],R=C[1],P=[];if(u>0)for(var A=E;A<=R;A++)P.push(w(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 w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:dB({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(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 zB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},FB=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]},HB=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=FB(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},$B=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&FB(e,r,t).offset<n;)r+=i,i*=2;return HB(e,t,Math.min(r,o-1),Math.floor(r/2),n)},WB=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},BB=_B({getItemOffset:function(e,t,r){return FB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:WB,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=FB(e,t,o),p=WB(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?HB(e,t,o,0,r):$B(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=FB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=FB(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 VB(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 UB=["style"],GB=["style"];function YB(e,t){var r=e.style,n=vB(e,UB),o=t.style,i=vB(t,GB);return!VB(r,o)&&!VB(n,i)}const KB=KE(-1),XB=rH((e=>KE((t=>t(KB)===e)))),JB=({style:e})=>or.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var ZB=S.memo(JB,YB);const QB=()=>{},eV=e=>{e.preventDefault()};const tV=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=sR(XB(t)),d=lR(KB),{interactions:p,styleService:f,direction:h}=uM(iM,(e=>e.baseProps)),m=uM(iM,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=uM(iM,(e=>e.baseProps)),r=uM(iM,(e=>e.selectionDispatch)),n="object"==typeof e,o=uM(iM,(t=>n?m$(e,t.selectionState):BA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=f$(eV,e,r,QB);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=M(null),i=r&&!r.isNumeric,a=q((r=>{const o=TF(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return OF(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=p$(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=v$(o,i,e);a=g$(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?UI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===BA.Selected?{...s,...i.selectedColors}:n===BA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${nI}, ${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 or.jsx("div",{className:`sn-table-cell ${x} ${aE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:mI(h,g.isLastColumn,m),borderLeftWidth:gI(h,g.isLastColumn,m),justifyContent:dI(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:or.jsx(d$,{cellSelectionState:x,children:or.jsx(l$,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return or.jsx(ZB,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var rV=_(tV,YB);const nV=e=>{const t=M(e);return t.current=e,t},oV=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,iV=(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},aV=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},sV=(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=MA(h,e,a),C=!h&&e.qIsNull,E=C?NP(w):qP(e);f[r]={id:TP(),...e,align:NA(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)&&IA(e,h),representation:AA({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[NR.Image]:!0,[NR.Indicator]:!0,[NR.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}))}))},lV=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=uM(iM,(e=>e.env)),{direction:p}=uM(iM,(e=>e.baseProps)),f=M([]),h=q(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return sV(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=I((()=>h(n??[])));XC((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=nV(e),a=nV(t),s=A((()=>({enqueue:e=>{const t=oV(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(oV(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=q(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(aV(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=q(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(iV(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return T((()=>{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}},uV=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},cV=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,dV=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=uM(iM,(e=>e.baseProps.styleService)),i=uM(iM,(e=>e.columnWidths)),{estimateLineCount:a}=VC(o.dimension.values),s=eM(o.dimension.values.fontSize),l=e||t||1===r;return q(((e,t,o)=>{if(l||e.representation.type===NR.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])},pV=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0,viewService:o})=>{N((()=>{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])},fV=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=uM(iM,(e=>e.baseProps)),[a,s]=I({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}=uM(iM,(e=>e.baseProps)),o=uM(iM,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;XC((()=>{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]),XC((()=>{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})=>q(((o,i,a)=>{F((()=>{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(!cV(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,uV(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})=>q(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),b=dV({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),v=q((e=>c?h??u:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]);return pV({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},hV=(e,t)=>{N((()=>()=>{t(0)}),[e,t]);const r=q((e=>{const r=TF(e);void 0!==r&&t(r)}),[t]);OF(e,r)};let mV=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const gV=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>q((({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=mV.None,i=mV.None;return o=n>t?mV.Down:n<t?mV.Up:mV.None,i=r>e?mV.Right:r<e?mV.Left:mV.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===mV.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===mV.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===mV.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===mV.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]),bV={enabled:!1},vV=()=>{},yV={current:null};const xV=(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=A((()=>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}},SV=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},wV={overflow:"hidden",willChange:"auto"};var CV=_(j(((e,t)=>{const{rect:r,columns:n,pageInfo:o,setInnerBodyHeight:i,bodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=uM(iM,(e=>e.baseProps)),f=uM(iM,(e=>e.columnWidths)),h=uM(iM,(e=>e.initialDataPages)),m=M(null),g=M(null),b=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=M(0),y=!!$I(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=xV(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:C,setEstimatedCellHeight:E,getRowHeight:R,lineClamp:P}=fV({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:I,loadRows:k,loadColumns:D}=lV({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:E}),O=gV({layout:s,loadRows:k,loadColumns:D,rowCount:x,pageInfo:o,gridState:b,viewService:c}),L=xH(),q=A((()=>({rowsInPage:I,columns:n,isHoverEnabled:y,lineClamp:P,setMeasuredCellHeight:C,resizeObserverTaskScheduler:L})),[I,n,y,P,C,L]);return N((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=uM(iM,(e=>e.baseProps)),r=uM(iM,(e=>e.selectionDispatch));T((()=>{r({type:VA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),SH({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:vV,keyboard:bV,tableWrapperRef:yV})}(I),H(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??a)-a,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,a,x]),hV(g,i),or.jsx(NB,{"data-key":"body",ref:m,innerRef:g,style:wV,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:a,rowCount:x,rowHeight:R,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:q,onItemsRendered:O,itemKey:SV,className:"sn-table-body",direction:p,children:rV})})));const EV=({width:e,height:t,children:r})=>or.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),RV=(e,t)=>{const r=M(null),n=uM(iM,(e=>e.columnWidths));N((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=q((r=>{const n=TF(r);n&&t(n+9,e)}),[e,t]);return OF(r,o),r},PV=mc("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}}))),AV=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=uM(iM,(e=>e.baseProps)),u=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal())),c=uM(iM,(e=>e.showRightBorder)),d=uM(iM,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=L$({isInteractionEnabled:p,column:f}),y=eF(),x=RV(e,i),S=n.length-1===e,w=y?RF:GF,{ref:C,isDragging:E}=iB(f,e),R=p$(f.id);return or.jsxs(PV,{"data-dragging":E,ref:C,className:`sn-table-cell ${aE}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...tF(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:mI(l,S,c),borderLeftWidth:gI(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:[or.jsx(w,{forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),or.jsx(T$,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},IV=e=>{const[t,r]=I(new Map);XC((()=>{r(new Map)}),[e.length]);const n=q(((e,t)=>{r((r=>cV(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:A((()=>uV(t)),[t]),setMeasuredCellHeight:n}},MV=(e,t)=>{H(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},kV=(e,t,r,n,o)=>{XC((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},DV={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},TV=j(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=S.useRef(null),l=M(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=uM(iM,(e=>e.baseProps)),h=uM(iM,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=IV(n),b=D$(f,u);return MV(t,s),kV(s,u,o,h,c),hV(l,a),or.jsx(BB,{className:"sn-table-head-row",ref:s,outerRef:l,layout:"horizontal",style:{...DV,...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:AV})}));var OV=_(TV);const LV=j(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=uM(iM,(e=>e.baseProps));return or.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,tabIndex:-1,children:r})})),qV=({children:e,rect:t})=>{const{direction:r}=uM(iM,(e=>e.baseProps));return or.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})},NV=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=uM(iM,(e=>e.baseProps)),c=uM(iM,(e=>e.showRightBorder)),d=RV(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=p$(n[e].id);return or.jsx("div",{className:`sn-table-cell ${aE}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...tF(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:mI(u,m,c),borderLeftWidth:gI(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:or.jsx(EF,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},jV=j(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=M(null),l=M(null),{layout:u,theme:c,styleService:d,direction:p}=uM(iM,(e=>e.baseProps)),f=uM(iM,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=IV(i);return MV(t,s),kV(s,u,n,f,c),hV(l,a),or.jsx(BB,{ref:s,outerRef:l,layout:"horizontal",style:DV,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:NV})}));var _V=_(jV);const zV=(e,t,r,n,o)=>q((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]),FV=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=uM(iM,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=uM(iM,(e=>e.baseProps)),c=uM(iM,(e=>e.columnWidths)),d=M(null),p=M(null),f=M(null),h=M(null),m=A((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),g=uM(iM,(e=>e.yScrollbarWidth)),b=uM(iM,(e=>e.xScrollbarWidth)),v=A((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(m,b,g)),[m,b,g]),{rowCount:y}=xV(i,t,v,c,0),{headerAndTotalsHeight:x,innerBodyHeight:S,setHeaderRowHeight:w,setTotalsRowHeight:C,setInnerBodyHeight:E}=(()=>{const[e,t]=I(0),[r,n]=I(0),[o,i]=I(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:R,height:P}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=uM(iM,(e=>e.baseProps)),a=e+t;let s=r*i.contentMinRowHeight+t;return a<2*n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:S,headerAndTotalsHeight:x,rowCount:y,stickyContainerRect:v,columnWidths:c}),k=zV(p,f,h,l,u),D=((e,t,r)=>Math.min(e.height-t,r))(v,x,S),T=q((()=>{d.current&&(d.current.scrollTop=0)}),[d]);iH(),N((()=>{d.current&&(d.current.scrollLeft=0,d.current.scrollTop=0)}),[n.length]),N((()=>{d.current&&(d.current.scrollTop=0)}),[t,y,a]),fH(d);const O=or.jsx(_V,{rect:v,pageInfo:t,columns:n,ref:f,totals:r,setTotalsRowHeight:C},"totals");return or.jsxs(eH,{children:[or.jsx(LV,{ref:d,width:m.width,height:m.height,onScroll:k,children:or.jsxs(EV,{width:R,height:P,children:[or.jsxs(qV,{rect:v,children:[or.jsx(OV,{rect:v,pageInfo:t,columns:n,ref:p,columResizeHandler:T,setHeaderRowHeight:w}),r.atTop?O:null,or.jsx(CV,{ref:h,rect:v,pageInfo:t,columns:n,setInnerBodyHeight:E,bodyHeight:D}),r.atBottom?O:null]}),or.jsx(Qz,{})]})}),or.jsx(JF,{isPagination:!1})]})};var HV=_(FV);const $V=()=>{const{theme:e,keyboard:t,interactions:r,rect:n,layout:o}=uM(iM,(e=>e.baseProps)),{paginationNeeded:i,totalRowCount:a,totalColumnCount:s,totalPages:l}=uM(iM,(e=>e.tableData)),u=sR(cR),c=uM(iM,(e=>e.pageInfo)),d=uM(iM,(e=>e.setPage));return or.jsxs(xF,{"data-testid":"sn-table",children:[or.jsx(HV,{pageInfo:c}),or.jsx(Nk,{paginationNeeded:i,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:a,totalColumnCount:s,totalPages:l,keyboard:t,translator:u,theme:e,interactions:r,rect:n,layout:o})]})};var WV=_($V);var BV={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 VV=(e,t)=>{const n=t.get(cR);return r((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(BV).forEach((t=>{e.add(BV[t])}))}(n),((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(`.${GA.First}`),s=e.querySelector(`.${GA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===GA.First?(l=s,r=GA.Second):(l=a,r=GA.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}})(e,n))),[e,n.language()])},UV={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},GV=(e,t)=>{const{model:r,rootElement:o,layout:s,reactRoot:l,isFontLoaded:u,viewService:c,env:d}=e,{direction:p,footerContainer:f}=n(),h=zA(s,c),m=VV(o,t),[g,b]=i(((e,t)=>_A(e,t)?{page:t.page||UV.page,rowsPerPage:t.rowsPerPage||UV.rowsPerPage,rowsPerPageOptions:UV.rowsPerPageOptions}:UV)(s,c)),[v,y]=$C((async()=>h?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>kA)return n({...r,rowsPerPage:DA(d,c),page:0}),null;const g=p>10,b=TA(t,o),v=jA(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=MA(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?NP(c):qP(u);n[l]={id:TP(),...u,align:NA(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)&&IA(u,o.isDim),representation:AA({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[NR.Image]:!0,[NR.Indicator]:!0,[NR.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(r,s,g,b,c,d,!0,p):null),[s,g,r,h,p]);a((()=>{h&&e.model&&e.changeSortOrder&&v&&u&&!y&&function(e,t,r){const{direction:n,...o}=e,i=cM(n);t.render(or.jsx(bi,{stylisPlugins:"rtl"===n?[WA]:void 0,children:or.jsx(bc,{theme:i,children:or.jsx(tR,{store:r,children:or.jsx(lM,{...e,children:or.jsx(cB,{...o})})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:v,pageInfo:g,setPageInfo:b,direction:p,footerContainer:f,announce:m},l,t)}),[m,p,f,u,g,l,e,h,v,y,t])},YV=e=>{const t=r((()=>UC(e)),[e]);return a((()=>()=>{t.unmount()}),[t]),t},KV=(e,t)=>r((()=>((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)}})(e.qDimensionInfo.length,t)),[e.qDimensionInfo.length,t]);const XV=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=$C((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(EI,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}},JV=(e,t)=>{const{layout:n,model:o,keyboard:s,interactions:l,reactRoot:u,isFontLoaded:c,viewService:d,direction:p}=e,f=!zA(n,d),[h,m]=i(!1);h&&m(!1);const g=r((()=>function(e,t,r,n,o){const i=jA(e,o,n),a=TA(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(EI,s),u=s>EI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(n,l,d,p,h)),[n,l,d,p,h]),{pageInfo:b,setPage:v}=((e,t)=>{const[n,o]=i(0),a=Math.min(EI,e.qHyperCube.qSize.qcy),s=r((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(t){const t=Math.floor(e.qHyperCube.qSize.qcy/EI);t<n&&o(t)}return{pageInfo:s,setPage:o}})(n,f),{initialDataPages:y,isLoading:x}=XV({model:o,layout:n,page:b.page,shouldRender:f});a((()=>{f&&s.active&&s.blur?.(!1)}),[s,f]),a((()=>{f&&e.model&&e.changeSortOrder&&y&&!x&&c&&function(e,t,r){const{direction:n}=e,o=cM(n);t.render(or.jsx(S.StrictMode,{children:or.jsx(bc,{theme:o,children:or.jsx(tR,{store:r,children:or.jsx(lM,{...e,children:or.jsx(WV,{})})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:g,pageInfo:b,setPage:v,initialDataPages:y},u,t)}),[y,c,x,b,u,e,v,f,g,t])},ZV={version:JSON.stringify("6.5.7"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var QV=e=>({properties:{initial:ZV},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>MR({...e}),exportProperties:CR,exploration:kR});function eU(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 tU=(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]}},rU=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const nU=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||UV.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},oU=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=TA(e,t);if(zA(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=eU(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:nU(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=tU(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=(rU(h,m,g)?d:d+1)+c;let v=p+c;const y=tU(p,o),x=y?.getBoundingClientRect();return y&&x&&(rU(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:nU(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},iU=({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{c((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}=oU(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})),d((()=>({getViewState:()=>oU(e,t,n)})),[e,t,n])},aU=e=>{const{viewState:t}=n();return r((()=>((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}))(t,e.snapshotData)),[t,e.snapshotData,e.usePagination])},sU=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),lU=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));