@nebula.js/sn-table 6.48.0 → 6.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  /*
2
- * @nebula.js/sn-table v6.48.0
2
+ * @nebula.js/sn-table v6.50.0
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
7
  import{useMemo as e,useOptions as t,usePromise as r,useState as n,useEffect as o,useTheme as i,onContextMenu as a,HyperCubeHandler as s,onTakeSnapshot as l,useImperativeHandle as c,useStaleLayout as u,useElement as d,useApp as p,useModel as f,useInteractionState as h,useTranslator as m,useSelections as g,useKeyboard as b,useRect as v,useEmbed as y}from"@nebula.js/stardust";import*as x from"react";import S,{createElement as w,isValidElement as C,cloneElement as E,Children as R,useMemo as A,useState as I,useRef as k,createContext as P,useReducer as D,useEffect as M,useDebugValue as T,useCallback as q,useContext as O,useLayoutEffect as L,useInsertionEffect as N,memo as j,forwardRef as _,startTransition as z,useImperativeHandle as F,PureComponent as $}from"react";import*as H from"react-dom";import B,{flushSync as V}from"react-dom";import W from"picasso-plugin-q";import U from"picasso.js";function G(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&&G(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}const Y={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}},X="qcm-color";function J(...e){const t={type:X,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&&a.type===X)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(G(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 c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];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 c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];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 c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];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 Y}(e)){const t=Y[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,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,n=0;else{switch(r=c-u,t=d>.5?r/(2-c-u):r/(c+u),c){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),c=Math.min(i,a,s),u=l;if(l===c)t=0,n=0;else{switch(r=l-c,t=0===r?0:r/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{h:360*n%360,s:100*t,v:100*u}}function ee(e){if(G(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 G(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:te(J(e))}function re(e){return G(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(G(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),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,n=0;else{switch(r=l-c,t=u>.5?r/(2-l-c):r/(l+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`hsl(${360*n}, ${100*t}, ${100*u})`}(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)}const se="#FFFFFF";function le(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 ce,ue="top",de="top-right",pe="right",fe="bottom-right",he="bottom",me="bottom-left",ge="left",be="top-left";le(le(le(le(le(le(le(le(le(le(ce={},"equal-equal",[ue,he]),"equal-higher",[he,fe]),"equal-lower",[ue,de]),"equal-void",[ue,he]),"higher-equal",[ge,me,ue,de]),"higher-higher-acute",[he,me,ge,de]),"higher-higher-obtuse",[he,ue]),"higher-lower-negative",[ue,de,pe]),"higher-lower-positive",[he,me,ge]),"higher-void",[ue]),le(le(le(le(le(le(le(le(le(le(ce,"lower-equal",[ue]),"lower-higher-negative",[ue,be]),"lower-higher-positive",[fe]),"lower-lower-acute",[ue,be,ge,de,pe]),"lower-lower-obtuse",[ue,he]),"lower-void",[ue]),"void-equal",[ue]),"void-higher",[ue,he]),"void-lower",[ue,he,ge]),"void-void",[ue]),le(ce,"unclassified",[ue,he,pe,ge,de,fe,me,be]);var ve,ye,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(){return xe}var we=function(){if(ye)return ve;ye=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 ve=function e(){var t,r,n,l,c,u,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)||(c=o(l)))?(c?(c=!1,u=n&&o(n)?n:[]):u=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},ve}();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 Ae=.7,Ie=1/Ae,ke="\\s*([+-]?\\d+)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",De="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Me=/^#([0-9a-f]{3,8})$/,Te=new RegExp(`^rgb\\(${ke},${ke},${ke}\\)$`),qe=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),Oe=new RegExp(`^rgba\\(${ke},${ke},${ke},${Pe}\\)$`),Le=new RegExp(`^rgba\\(${De},${De},${De},${Pe}\\)$`),Ne=new RegExp(`^hsl\\(${Pe},${De},${De}\\)$`),je=new RegExp(`^hsla\\(${Pe},${De},${De},${Pe}\\)$`),_e={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 ze(){return this.rgb().formatHex()}function Fe(){return this.rgb().formatRgb()}function $e(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Me.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?He(t):3===r?new Ue(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Be(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Be(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=Te.exec(e))?new Ue(t[1],t[2],t[3],1):(t=qe.exec(e))?new Ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Oe.exec(e))?Be(t[1],t[2],t[3],t[4]):(t=Le.exec(e))?Be(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ne.exec(e))?Ze(t[1],t[2]/100,t[3]/100,1):(t=je.exec(e))?Ze(t[1],t[2]/100,t[3]/100,t[4]):_e.hasOwnProperty(e)?He(_e[e]):"transparent"===e?new Ue(NaN,NaN,NaN,0):null}function He(e){return new Ue(e>>16&255,e>>8&255,255&e,1)}function Be(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ue(e,t,r,n)}function Ve(e){return e instanceof Re||(e=$e(e)),e?new Ue((e=e.rgb()).r,e.g,e.b,e.opacity):new Ue}function We(e,t,r,n){return 1===arguments.length?Ve(e):new Ue(e,t,r,null==n?1:n)}function Ue(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ge(){return`#${Je(this.r)}${Je(this.g)}${Je(this.b)}`}function Ke(){const e=Ye(this.opacity);return`${1===e?"rgb(":"rgba("}${Xe(this.r)}, ${Xe(this.g)}, ${Xe(this.b)}${1===e?")":`, ${e})`}`}function Ye(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Je(e){return((e=Xe(e))<16?"0":"")+e.toString(16)}function Ze(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new et(e,t,r,n)}function Qe(e){if(e instanceof et)return new et(e.h,e.s,e.l,e.opacity);if(e instanceof Re||(e=$e(e)),!e)return new et;if(e instanceof et)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 et(a,s,l,e.opacity)}function et(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function tt(e){return(e=(e||0)%360)<0?e+360:e}function rt(e){return Math.max(0,Math.min(1,e||0))}function nt(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,$e,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ze,formatHex:ze,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Qe(this).formatHsl()},formatRgb:Fe,toString:Fe}),Ce(Ue,We,Ee(Re,{brighter(e){return e=null==e?Ie:Math.pow(Ie,e),new Ue(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ae:Math.pow(Ae,e),new Ue(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ue(Xe(this.r),Xe(this.g),Xe(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:Ge,formatHex:Ge,formatHex8:function(){return`#${Je(this.r)}${Je(this.g)}${Je(this.b)}${Je(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ke,toString:Ke})),Ce(et,function(e,t,r,n){return 1===arguments.length?Qe(e):new et(e,t,r,null==n?1:n)},Ee(Re,{brighter(e){return e=null==e?Ie:Math.pow(Ie,e),new et(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ae:Math.pow(Ae,e),new et(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 Ue(nt(e>=240?e-240:e+120,o,n),nt(e,o,n),nt(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new et(tt(this.h),rt(this.s),rt(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("}${tt(this.h)}, ${100*rt(this.s)}%, ${100*rt(this.l)}%${1===e?")":`, ${e})`}`}}));const ot=Math.PI/180,it=180/Math.PI,at=.96422,st=.82521,lt=4/29,ct=6/29,ut=3*ct*ct,dt=ct*ct*ct;function pt(e){if(e instanceof ft)return new ft(e.l,e.a,e.b,e.opacity);if(e instanceof vt)return yt(e);e instanceof Ue||(e=Ve(e));var t,r,n=bt(e.r),o=bt(e.g),i=bt(e.b),a=ht((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=ht((.4360747*n+.3850649*o+.1430804*i)/at),r=ht((.0139322*n+.0971045*o+.7141733*i)/st)),new ft(116*a-16,500*(t-a),200*(a-r),e.opacity)}function ft(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function ht(e){return e>dt?Math.pow(e,1/3):e/ut+lt}function mt(e){return e>ct?e*e*e:ut*(e-lt)}function gt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function yt(e){if(isNaN(e.h))return new ft(e.l,0,0,e.opacity);var t=e.h*ot;return new ft(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ce(ft,function(e,t,r,n){return 1===arguments.length?pt(e):new ft(e,t,r,null==n?1:n)},Ee(Re,{brighter(e){return new ft(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ft(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 Ue(gt(3.1338561*(t=at*mt(t))-1.6168667*(e=1*mt(e))-.4906146*(r=st*mt(r))),gt(-.9787684*t+1.9161415*e+.033454*r),gt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ce(vt,function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof vt)return new vt(e.h,e.c,e.l,e.opacity);if(e instanceof ft||(e=pt(e)),0===e.a&&0===e.b)return new vt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*it;return new vt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new vt(e,t,r,null==n?1:n)},Ee(Re,{brighter(e){return new vt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new vt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return yt(this).rgb()}}));var xt=e=>()=>e;function St(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):xt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1===(e=+e)?St: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):xt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=We(e)).r,(t=We(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=St(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 wt="center",Ct="bottom";[{key:"NoDataExist",alignment:wt,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:wt,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:wt,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:wt},{key:"DataRangeIncludingZero",alignment:Ct},{key:"LimitedData",alignment:Ct},{key:"NegativeOrZeroValues",alignment:Ct}].reduce(function(e,t){return e[t.key]=t,e},{});var Et,Rt=["__proto__","constructor"];function At(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Rt.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 It(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 kt(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 Pt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Mt)):void 0===t&&(t=Dt);for(var r,n,o,i,a,s=new Ot(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 Ot(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(qt)}function Dt(e){return e.children}function Mt(e){return Array.isArray(e)?e[1]:null}function Tt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function qt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ot(e){this.data=e,this.depth=this.height=0,this.parent=null}Ot.prototype=Pt.prototype={constructor:Ot,count:function(){return this.eachAfter(kt)},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 Pt(this).eachBefore(Tt)},[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)}},Et=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,c,u,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"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.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}},Et({exports:{}});const Lt=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function Nt(t,r){return e(()=>t,r)}const jt={},_t=()=>{const{viewState:n}=t(),o=(t=>{const r=e(()=>({current:jt}),[]);return r.current=r.current===jt?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e(()=>Lt(),[]),l=Nt(e=>{o.current.add(e)},[o]),c=Nt(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(o.current),o.current.clear(),s()},1e3),[s,o]);return r(async()=>{await a},[a]),e(()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:c,waitForPromise:l}),[c,i,n,l])},zt={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"},Ft={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",...zt,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)"},$t=12,Ht=14,Bt=16,Vt=24,Wt=3,Ut=300,Gt=400,Kt=600,Yt=700,Xt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch(e){}return r?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 Qt,er,tr={exports:{}},rr={};var nr=(er||(er=1,tr.exports=function(){if(Qt)return rr;Qt=1;var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(u=r.ref),r)n.call(r,s)&&!i.hasOwnProperty(s)&&(l[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===l[s]&&(l[s]=r[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return rr.Fragment=r,rr.jsx=a,rr.jsxs=a,rr}()),tr.exports);const or={black:"#000",white:"#fff"},ir="#e57373",ar="#ef5350",sr="#f44336",lr="#d32f2f",cr="#c62828",ur="#f3e5f5",dr="#ce93d8",pr="#ba68c8",fr="#ab47bc",hr="#9c27b0",mr="#7b1fa2",gr="#e3f2fd",br="#90caf9",vr="#42a5f5",yr="#1976d2",xr="#1565c0",Sr="#4fc3f7",wr="#29b6f6",Cr="#03a9f4",Er="#0288d1",Rr="#01579b",Ar="#81c784",Ir="#66bb6a",kr="#4caf50",Pr="#388e3c",Dr="#2e7d32",Mr="#1b5e20",Tr="#ffb74d",qr="#ffa726",Or="#ff9800",Lr="#f57c00",Nr="#e65100",jr={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 _r(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 zr=Object.freeze({__proto__:null,default:_r}),Fr="$$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 Hr(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="-ms-",Vr="-moz-",Wr="-webkit-",Ur="comm",Gr="rule",Kr="decl",Yr="@keyframes",Xr=Math.abs,Jr=String.fromCharCode,Zr=Object.assign;function Qr(e){return e.trim()}function en(e,t){return(e=t.exec(e))?e[0]:e}function tn(e,t,r){return e.replace(t,r)}function rn(e,t,r){return e.indexOf(t,r)}function nn(e,t){return 0|e.charCodeAt(t)}function on(e,t,r){return e.slice(t,r)}function an(e){return e.length}function sn(e){return e.length}function ln(e,t){return t.push(e),e}function cn(e,t){return e.filter(function(e){return!en(e,t)})}var un,dn,pn=1,fn=1,hn=0,mn=0,gn=0,bn="";function vn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:pn,column:fn,length:a,return:"",siblings:s}}function yn(e,t){return Zr(vn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xn(e){for(;e.root;)e=yn(e.root,{children:[e]});ln(e,e.siblings)}function Sn(){return gn=mn>0?nn(bn,--mn):0,fn--,10===gn&&(fn=1,pn--),gn}function wn(){return gn=mn<hn?nn(bn,mn++):0,fn++,10===gn&&(fn=1,pn++),gn}function Cn(){return nn(bn,mn)}function En(){return mn}function Rn(e,t){return on(bn,e,t)}function An(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 In(e){return Qr(Rn(mn-1,Dn(91===e?e+2:40===e?e+1:e)))}function kn(e){for(;(gn=Cn())&&gn<33;)wn();return An(e)>2||An(gn)>3?"":" "}function Pn(e,t){for(;--t&&wn()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return Rn(e,En()+(t<6&&32==Cn()&&32==wn()))}function Dn(e){for(;wn();)switch(gn){case e:return mn;case 34:case 39:34!==e&&39!==e&&Dn(gn);break;case 40:41===e&&Dn(e);break;case 92:wn()}return mn}function Mn(e,t){for(;wn()&&e+gn!==57&&(e+gn!==84||47!==Cn()););return"/*"+Rn(t,mn-1)+"*"+Jr(47===e?e:wn())}function Tn(e){for(;!An(Cn());)wn();return Rn(e,mn)}function qn(e){return function(e){return bn="",e}(On("",null,null,null,[""],e=function(e){return pn=fn=1,hn=an(bn=e),mn=0,[]}(e),0,[0],e))}function On(e,t,r,n,o,i,a,s,l){for(var c=0,u=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=wn()){case 40:if(108!=h&&58==nn(C,d-1)){-1!=rn(C+=tn(In(v),"&","&\f"),"&\f",Xr(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=In(v);break;case 9:case 10:case 13:case 32:C+=kn(h);break;case 92:C+=Pn(En()-1,7);continue;case 47:switch(Cn()){case 42:case 47:ln(Nn(Mn(wn(),En()),t,r,l),l),5!=An(h||1)&&5!=An(Cn()||1)||!an(C)||" "===on(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[c++]=an(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(C=tn(C,/\f/g,"")),f>0&&(an(C)-d||0===m&&47===h)&&ln(f>32?jn(C+";",n,r,d-1,l):jn(tn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(ln(w=Ln(C,t,r,c,u,o,s,y,x=[],S=[],d,i),i),123===v)if(0===u)On(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===nn(C,3))break;case 108:if(97===nn(C,2))break;default:u=0;case 100:case 109:case 115:}u?On(e,w,w,n&&ln(Ln(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):On(C,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+an(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Sn())continue;switch(C+=Jr(v),v*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(an(C)-1)*b,b=1;break;case 64:45===Cn()&&(C+=In(wn())),p=Cn(),u=d=an(y=C+=Tn(En())),v++;break;case 45:45===h&&2==an(C)&&(m=0)}}return i}function Ln(e,t,r,n,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=sn(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=on(e,p+1,p=Xr(g=a[m])),x=e;v<h;++v)(x=Qr(g>0?f[v]+" "+y:tn(y,/&\f/g,f[v])))&&(l[b++]=x);return vn(e,t,r,0===o?Gr:s,l,c,u,d)}function Nn(e,t,r,n){return vn(e,t,r,Ur,Jr(gn),on(e,2,-2),0,n)}function jn(e,t,r,n,o){return vn(e,t,r,Kr,on(e,0,n),on(e,n+1,-1),n,o)}function _n(e,t,r){switch(function(e,t){return 45^nn(e,0)?(((t<<2^nn(e,0))<<2^nn(e,1))<<2^nn(e,2))<<2^nn(e,3):0}(e,t)){case 5103:return Wr+"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 Wr+e+e;case 4855:return Wr+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Vr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Wr+e+Vr+e+Br+e+e;case 5936:switch(nn(e,t+11)){case 114:return Wr+e+Br+tn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wr+e+Br+tn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wr+e+Br+tn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Wr+e+Br+e+e;case 6165:return Wr+e+Br+"flex-"+e+e;case 5187:return Wr+e+tn(e,/(\w+).+(:[^]+)/,Wr+"box-$1$2"+Br+"flex-$1$2")+e;case 5443:return Wr+e+Br+"flex-item-"+tn(e,/flex-|-self/g,"")+(en(e,/flex-|baseline/)?"":Br+"grid-row-"+tn(e,/flex-|-self/g,""))+e;case 4675:return Wr+e+Br+"flex-line-pack"+tn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Wr+e+Br+tn(e,"shrink","negative")+e;case 5292:return Wr+e+Br+tn(e,"basis","preferred-size")+e;case 6060:return Wr+"box-"+tn(e,"-grow","")+Wr+e+Br+tn(e,"grow","positive")+e;case 4554:return Wr+tn(e,/([^-])(transform)/g,"$1"+Wr+"$2")+e;case 6187:return tn(tn(tn(e,/(zoom-|grab)/,Wr+"$1"),/(image-set)/,Wr+"$1"),e,"")+e;case 5495:case 3959:return tn(e,/(image-set\([^]*)/,Wr+"$1$`$1");case 4968:return tn(tn(e,/(.+:)(flex-)?(.*)/,Wr+"box-pack:$3"+Br+"flex-pack:$3"),/space-between/,"justify")+Wr+e+e;case 4200:if(!en(e,/flex-|baseline/))return Br+"grid-column-align"+on(e,t)+e;break;case 2592:case 3360:return Br+tn(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,en(e.props,/grid-\w+-end/)})?~rn(e+(r=r[t].value),"span",0)?e:Br+tn(e,"-start","")+e+Br+"grid-row-span:"+(~rn(r,"span",0)?en(r,/\d+/):+en(r,/\d+/)-+en(e,/\d+/))+";":Br+tn(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return en(e.props,/grid-\w+-start/)})?e:Br+tn(tn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return tn(e,/(.+)-inline(.+)/,Wr+"$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(an(e)-1-t>6)switch(nn(e,t+1)){case 109:if(45!==nn(e,t+4))break;case 102:return tn(e,/(.+:)(.+)-([^]+)/,"$1"+Wr+"$2-$3$1"+Vr+(108==nn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rn(e,"stretch",0)?_n(tn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return tn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,i,a,s){return Br+r+":"+n+s+(o?Br+r+"-span:"+(i?a:+a-+n)+s:"")+e});case 4949:if(121===nn(e,t+6))return tn(e,":",":"+Wr)+e;break;case 6444:switch(nn(e,45===nn(e,14)?18:11)){case 120:return tn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Wr+(45===nn(e,14)?"inline-":"")+"box$3$1"+Wr+"$2$3$1"+Br+"$2box$3")+e;case 100:return tn(e,":",":"+Br)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return tn(e,"scroll-","scroll-snap-")+e}return e}function zn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Fn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Kr:return e.return=e.return||e.value;case Ur:return"";case Yr:return e.return=e.value+"{"+zn(e.children,n)+"}";case Gr:if(!an(e.value=e.props.join(",")))return""}return an(r=zn(e.children,n))?e.return=e.value+"{"+r+"}":""}function $n(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kr:return void(e.return=_n(e.value,e.length,r));case Yr:return zn([yn(e,{value:tn(e.value,"@","@"+Wr)})],n);case Gr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(en(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xn(yn(e,{props:[tn(t,/:(read-\w+)/,":-moz-$1")]})),xn(yn(e,{props:[t]})),Zr(e,{props:cn(r,n)});break;case"::placeholder":xn(yn(e,{props:[tn(t,/:(plac\w+)/,":"+Wr+"input-$1")]})),xn(yn(e,{props:[tn(t,/:(plac\w+)/,":-moz-$1")]})),xn(yn(e,{props:[tn(t,/:(plac\w+)/,Br+"input-$1")]})),xn(yn(e,{props:[t]})),Zr(e,{props:cn(r,n)})}return""})}}const Hn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Bn="active",Vn="data-styled-version",Wn="6.4.3",Un="/*!sc*/\n",Gn="undefined"!=typeof window&&"undefined"!=typeof document;function Kn(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Yn=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(dn=null!==(un=Kn("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==un?un:Kn("SC_DISABLE_SPEEDY"))&&void 0!==dn?dn:"undefined"!=typeof process&&void 0!==process.env&&!1),Xn="sc-keyframes-",Jn={};function Zn(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let Qn=new Map,eo=new Map,to=1;const ro=e=>{if(Qn.has(e))return Qn.get(e);for(;eo.has(to);)to++;const t=to++;return Qn.set(e,t),eo.set(t,e),t},no=e=>eo.get(e),oo=(e,t)=>{to=t+1,Qn.set(e,t),eo.set(t,e)},io=Object.freeze([]),ao=Object.freeze({});function so(e,t,r=ao){return e.theme!==r.theme&&e.theme||t||r.theme}const lo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,co=/(^-|-$)/g;function uo(e){return e.replace(lo,"-").replace(co,"")}const po=/(a)(d)/gi,fo=e=>String.fromCharCode(e+(e>25?39:97));function ho(e){let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=fo(t%52)+r;return(fo(t%52)+r).replace(po,"$1-$2")}const mo=5381,go=(e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e},bo=e=>go(mo,e);function vo(e){return ho(bo(e)>>>0)}function yo(e){return"string"==typeof e&&!0}function xo(e){return yo(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const So=Symbol.for("react.memo"),wo=Symbol.for("react.forward_ref"),Co={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Eo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ro={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ao={[wo]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[So]:Ro};function Io(e){return("type"in(t=e)&&t.type.$$typeof)===So?Ro:"$$typeof"in e?Ao[e.$$typeof]:Co;var t}const ko=Object.defineProperty,Po=Object.getOwnPropertyNames,Do=Object.getOwnPropertySymbols,Mo=Object.getOwnPropertyDescriptor,To=Object.getPrototypeOf,qo=Object.prototype;function Oo(e,t,r){if("string"!=typeof t){const n=To(t);n&&n!==qo&&Oo(e,n,r);const o=Po(t).concat(Do(t)),i=Io(e),a=Io(t);for(let n=0;n<o.length;++n){const s=o[n];if(!(s in Eo||r&&r[s]||a&&s in a||i&&s in i)){const r=Mo(t,s);try{ko(e,s,r)}catch(e){}}}}return e}function Lo(e){return"function"==typeof e}const No=Symbol.for("react.forward_ref");function jo(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===No&&"styledComponentId"in e}function _o(e,t){return e&&t?e+" "+t:e||t||""}function zo(e,t){return e.join("")}function Fo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function $o(e,t,r=!1){if(!r&&!Fo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let r=0;r<t.length;r++)e[r]=$o(e[r],t[r]);else if(Fo(t))for(const r in t)e[r]=$o(e[r],t[r]);return e}function Ho(e,t){Object.defineProperty(e,"toString",{value:t})}const Bo=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(let r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,r=t.length;let n=r;for(;e>=n;)if(n<<=1,n<0)throw Zn(16,`${e}`);this.groupSizes=new Uint32Array(n),this.groupSizes.set(t),this.length=n;for(let e=r;e<n;e++)this.groupSizes[e]=0}let r=this.indexOfGroup(e+1),n=0;for(let o=0,i=t.length;o<i;o++)this.tag.insertRule(r,t[o])&&(this.groupSizes[e]++,r++,n++);n>0&&this._cGroup>e&&(this._cIndex+=n)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(let e=r;e<n;e++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r;for(let e=n;e<o;e++)t+=this.tag.getRule(e)+Un;return t}},Vo=`style[${Hn}][${Vn}="${Wn}"]`,Wo=new RegExp(`^${Hn}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Uo=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Go=e=>{if(!e)return document;if(Uo(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Uo(t))return t}return document},Ko=(e,t,r)=>{const n=r.split(",");let o;for(let r=0,i=n.length;r<i;r++)(o=n[r])&&e.registerName(t,o)},Yo=(e,t)=>{var r;const n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Un),o=[];for(let t=0,r=n.length;t<r;t++){const r=n[t].trim();if(!r)continue;const i=r.match(Wo);if(i){const t=0|parseInt(i[1],10),r=i[2];0!==t&&(oo(r,t),Ko(e,r,i[3]),e.getTag().insertRules(t,o)),o.length=0}else o.push(r)}},Xo=e=>{const t=Go(e.options.target).querySelectorAll(Vo);for(let r=0,n=t.length;r<n;r++){const n=t[r];n&&n.getAttribute(Hn)!==Bn&&(Yo(e,n),n.parentNode&&n.parentNode.removeChild(n))}};let Jo=!1;const Zo=(e,t)=>{const r=document.head,n=e||r,o=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${Hn}]`));return t[t.length-1]})(n),a=void 0!==i?i.nextSibling:null;o.setAttribute(Hn,Bn),o.setAttribute(Vn,Wn);const s=t||function(){if(!1!==Jo)return Jo;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Jo=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Jo=t.getAttribute("content")||void 0}return Jo="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&o.setAttribute("nonce",s),n.insertBefore(o,a),o},Qo=class{constructor(e,t){this.element=Zo(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,n=r.length;t<n;t++){const n=r[t];if(n.ownerNode===e)return n}throw Zn(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},ei=class{constructor(e,t){this.element=Zo(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let ti=Gn;const ri={isServer:!Gn,useCSSOMInjection:!Yn};class ni{static registerId(e){return ro(e)}constructor(e=ao,t={},r){this.options=Object.assign(Object.assign({},ri),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Gn&&ti&&(ti=!1,Xo(this)),Ho(this,()=>(e=>{const t=e.getTag(),{length:r}=t;let n="";for(let o=0;o<r;o++){const r=no(o);if(void 0===r)continue;const i=e.names.get(r);if(void 0===i||!i.size)continue;const a=t.getGroup(o);if(0===a.length)continue;const s=Hn+".g"+o+'[id="'+r+'"]';let l="";for(const e of i)e.length>0&&(l+=e+",");n+=a+s+'{content:"'+l+'"}'+Un}return n})(this))}rehydrate(){!this.server&&Gn&&Xo(this)}reconstructWithOptions(e,t=!0){const r=new ni(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&Gn&&e.target!==this.options.target&&Go(this.options.target)!==Go(e.target)&&Xo(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:r})=>e?new Qo(t,r):new ei(t,r))(this.options),new Bo(e)));var e}hasNameForId(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}registerName(e,t){ro(e),e.startsWith(Xn)&&this.keyframeIds.add(e);const r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,r){this.registerName(e,t),this.getTag().insertRules(ro(e),r)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(ro(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const oi=new WeakSet,ii={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart: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};function ai(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in ii||e.startsWith("--")?String(t).trim():t+"px"}const si=47;function li(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t+=n>=65&&n<=90?"-"+String.fromCharCode(n+32):e[r]}return t.startsWith("ms-")?"-"+t:t}const ci=Symbol.for("sc-keyframes");function ui(e){return Lo(e)&&!(e.prototype&&e.prototype.isReactComponent)}const di=e=>null==e||!1===e||""===e,pi=Symbol.for("react.client.reference");function fi(e){return e.$$typeof===pi}function hi(e,t){for(const r in e){const n=e[r];e.hasOwnProperty(r)&&!di(n)&&(Array.isArray(n)&&oi.has(n)||Lo(n)?t.push(li(r)+":",n,";"):Fo(n)?(t.push(r+" {"),hi(n,t),t.push("}")):t.push(li(r)+": "+ai(r,n)+";"))}}function mi(e,t,r,n,o=[]){if(di(e))return o;const i=typeof e;if("string"===i)return o.push(e),o;if("function"===i){if(fi(e))return o;if(ui(e)&&t){return mi(e(t),t,r,n,o)}return o.push(e),o}if(Array.isArray(e)){for(let i=0;i<e.length;i++)mi(e[i],t,r,n,o);return o}return jo(e)?(o.push(`.${e.styledComponentId}`),o):function(e){return"object"==typeof e&&null!==e&&ci in e}(e)?(r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o):fi(e)?o:Fo(e)?e.toString!==Object.prototype.toString?(o.push(e.toString()),o):(hi(e,o),o):(o.push(e.toString()),o)}const gi=bo(Wn);class bi{constructor(e,t,r){this.rules=e,this.componentId=t,this.baseHash=go(gi,t),this.baseStyle=r,ni.registerId(t)}generateAndInjectStyles(e,t,r){let n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";{let o="";for(let n=0;n<this.rules.length;n++){const i=this.rules[n];if("string"==typeof i)o+=i;else if(i)if(ui(i)){const n=i(e);"string"==typeof n?o+=n:null!=n&&!1!==n&&(o+=zo(mi(n,e,t,r)))}else o+=zo(mi(i,e,t,r))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=r.hash?r.hash+o:o;let i=this.dynamicNameCache.get(e);if(!i){if(i=ho(go(go(this.baseHash,r.hash),o)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,i)}if(!t.hasNameForId(this.componentId,i)){const e=r(o,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}n=_o(n,i)}}return n}}const vi=/&/g;function yi(e,t){let r=0;for(;--t>=0&&92===e.charCodeAt(t);)r++;return!(1&~r)}function xi(e){const t=e.length;let r="",n=0,o=0,i=0,a=!1,s=!1;for(let l=0;l<t;l++){const c=e.charCodeAt(l);if(0!==i||a||c!==si||42!==e.charCodeAt(l+1))if(a)42===c&&e.charCodeAt(l+1)===si&&(a=!1,l++);else if(34!==c&&39!==c||yi(e,l)){if(0===i)if(123===c)o++;else if(125===c){if(o--,o<0){s=!0;let r=l+1;for(;r<t;){const t=e.charCodeAt(r);if(59===t||10===t)break;r++}r<t&&59===e.charCodeAt(r)&&r++,o=0,l=r-1,n=r;continue}0===o&&(r+=e.substring(n,l+1),n=l+1)}else 59===c&&0===o&&(r+=e.substring(n,l+1),n=l+1)}else 0===i?i=c:i===c&&(i=0);else a=!0,l++}return s||0!==o||0!==i?(n<t&&0===o&&0===i&&(r+=e.substring(n)),r):e}function Si(e,t){const r=t+" ",n=","+r;for(let o=0;o<e.length;o++){const i=e[o];if("rule"===i.type){i.value=(r+i.value).replaceAll(",",n);const e=i.props,t=[];for(let n=0;n<e.length;n++)t[n]=r+e[n];i.props=t}Array.isArray(i.children)&&"@keyframes"!==i.type&&Si(i.children,t)}return e}function wi({options:e=ao,plugins:t=io}=ao){let r,n,o;const i=(e,t,o)=>o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?`.${r}`:e,a=t.slice();a.push(e=>{e.type===Gr&&e.value.includes("&")&&(o||(o=new RegExp(`\\${n}\\b`,"g")),e.props[0]=e.props[0].replace(vi,n).replace(o,i))}),e.prefix&&a.push($n),a.push(Fn);let s=[];const l=function(e){var t=sn(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(a.concat((d=e=>s.push(e),function(e){e.root||(e=e.return)&&d(e)}))),c=(t,i="",a="",c="&")=>{r=c,n=i,o=void 0;const u=function(e){const t=-1!==e.indexOf("//"),r=-1!==e.indexOf("}");if(!t&&!r)return e;if(!t)return xi(e);const n=e.length;let o="",i=0,a=0,s=0,l=0,c=0,u=!1;for(;a<n;){const t=e.charCodeAt(a);if(34!==t&&39!==t||yi(e,a))if(0===s)if(t===si&&a+1<n&&42===e.charCodeAt(a+1)){for(a+=2;a+1<n&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==si);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<n&&e.charCodeAt(a+1)===si)o+=e.substring(i,a),a+=2,i=a,u=!0;else if(t===si&&a+1<n&&e.charCodeAt(a+1)===si){for(o+=e.substring(i,a);a<n&&10!==e.charCodeAt(a);)a++;i=a,u=!0}else 123===t?c++:125===t&&c--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===s?s=t:s===t&&(s=0),a++}return u?(i<n&&(o+=e.substring(i)),0===c?o:xi(o)):0===c?e:xi(e)}(t);let d=qn(a||i?a+" "+i+" { "+u+" }":u);return e.namespace&&(d=Si(d,e.namespace)),s=[],zn(d,l),s},u=e;var d;let p=mo;for(let e=0;e<t.length;e++)t[e].name||Zn(15),p=go(p,t[e].name);return(null==u?void 0:u.namespace)&&(p=go(p,u.namespace)),(null==u?void 0:u.prefix)&&(p=go(p,"p")),c.hash=p!==mo?p.toString():"",c}const Ci=new ni,Ei=wi(),Ri=S.createContext({shouldForwardProp:void 0,styleSheet:Ci,stylis:Ei,stylisPlugins:void 0});function Ai(){return S.useContext(Ri)}function Ii(e){var t;const r=Ai(),{styleSheet:n}=r,o=S.useMemo(()=>{let t=n;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions(void 0!==e.nonce?{target:e.target,nonce:e.nonce}:{target:e.target},!1):void 0!==e.nonce&&(t=t.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,n]),i=S.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?r.stylis:wi({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:r.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,r.stylis,r.stylisPlugins]),a="shouldForwardProp"in e?e.shouldForwardProp:r.shouldForwardProp,s=null!==(t=e.stylisPlugins)&&void 0!==t?t:r.stylisPlugins,l=S.useMemo(()=>({shouldForwardProp:a,styleSheet:o,stylis:i,stylisPlugins:s}),[a,o,i,s]);return S.createElement(Ri.Provider,{value:l},e.children)}Ri.Consumer;const ki=S.createContext(void 0);ki.Consumer;const Pi=Object.prototype.hasOwnProperty,Di={};function Mi(e,t){const r="string"!=typeof e?"sc":uo(e);Di[r]=(Di[r]||0)+1;const n=r+"-"+vo(Wn+r+Di[r]);return t?t+"-"+n:n}function Ti(e,t,r){const n=jo(e),o=e,i=!yo(e),{attrs:a=io,componentId:s=Mi(t.displayName,t.parentComponentId),displayName:l=xo(e)}=t,c=t.displayName&&t.componentId?uo(t.displayName)+"-"+t.componentId:t.componentId||s,u=n&&o.attrs?o.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:d}=t;if(n&&o.shouldForwardProp){const e=o.shouldForwardProp;if(t.shouldForwardProp){const r=t.shouldForwardProp;d=(t,n)=>e(t,n)&&r(t,n)}else d=e}const p=new bi(r,c,n?o.componentStyle:void 0);function f(e,t){return function(e,t,r){const{attrs:n,componentStyle:o,defaultProps:i,foldedComponentIds:a,styledComponentId:s,target:l}=e,c=S.useContext(ki),u=Ai(),d=e.shouldForwardProp||u.shouldForwardProp,p=so(t,c,i)||ao;let f,h;{const e=S.useRef(null),r=e.current;if(null!==r&&r[1]===p&&r[2]===u.styleSheet&&r[3]===u.stylis&&r[7]===o&&function(e,t,r){const n=e,o=t;let i=0;for(const e in o)if(Pi.call(o,e)&&(i++,n[e]!==o[e]))return!1;return i===r}(r[0],t,r[4]))f=r[5],h=r[6];else{f=function(e,t,r){const n=Object.assign(Object.assign({},t),{className:void 0,theme:r}),o=e.length>1;for(let r=0;r<e.length;r++){const i=e[r],a=Lo(i)?i(o?Object.assign({},n):n):i;for(const e in a)"className"===e?n.className=_o(n.className,a[e]):"style"===e?n.style=Object.assign(Object.assign({},n.style),a[e]):e in t&&void 0===t[e]||(n[e]=a[e])}return"className"in t&&"string"==typeof t.className&&(n.className=_o(n.className,t.className)),n}(n,t,p),h=function(e,t,r,n){return e.generateAndInjectStyles(t,r,n)}(o,f,u.styleSheet,u.stylis);let r=0;for(const e in t)Pi.call(t,e)&&r++;e.current=[t,p,u.styleSheet,u.stylis,r,f,h,o]}}const m=f.as||l,g=function(e,t,r,n){const o={};for(const i in e)void 0===e[i]||"$"===i[0]||"as"===i||"theme"===i&&e.theme===r||("forwardedAs"===i?o.as=e.forwardedAs:n&&!n(i,t)||(o[i]=e[i]));return o}(f,m,p,d);let b=_o(a,s);return h&&(b+=" "+h),f.className&&(b+=" "+f.className),g[yo(m)&&m.includes("-")?"class":"className"]=b,r&&(g.ref=r),w(m,g)}(h,e,t)}f.displayName=l;let h=S.forwardRef(f);return h.attrs=u,h.componentStyle=p,h.displayName=l,h.shouldForwardProp=d,h.foldedComponentIds=n?_o(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=c,h.target=n?o.target:e,Object.defineProperty(h,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=n?function(e,...t){for(const r of t)$o(e,r,!0);return e}({},o.defaultProps,e):e}}),Ho(h,()=>`.${h.styledComponentId}`),i&&Oo(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var qi=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"]);function Oi(e,t){const r=[e[0]];for(let n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}const Li=e=>(oi.add(e),e);function Ni(e,...t){if(Lo(e)||Fo(e))return Li(mi(Oi(io,[e,...t])));const r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?mi(r):Li(mi(Oi(r,t)))}function ji(e,t,r=ao){if(!t)throw Zn(1,t);const n=(n,...o)=>e(t,r,Ni(n,...o));return n.attrs=n=>ji(e,t,Object.assign(Object.assign({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)})),n.withConfig=n=>ji(e,t,Object.assign(Object.assign({},r),n)),n}const _i=e=>ji(Ti,e),zi=_i;qi.forEach(e=>{zi[e]=_i(e)});class Fi{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const r=e[t];if(Lo(r)&&!jo(r))return!1}return!0}(e),ni.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,r,n){const o=this.componentId;if(this.isStatic){if(r.hasNameForId(o,o+e))this.instanceRules.has(e)||this.computeRules(e,t,r,n);else{const i=this.computeRules(e,t,r,n);r.insertRules(o,i.name,i.rules)}return}const i=this.instanceRules.get(e);if(this.computeRules(e,t,r,n),!r.server&&i){const t=i.rules,r=this.instanceRules.get(e).rules;if(t.length===r.length){let e=!0;for(let n=0;n<t.length;n++)if(t[n]!==r[n]){e=!1;break}if(e)return}}this.rebuildGroup(r)}computeRules(e,t,r,n){const o=zo(mi(this.rules,t,r,n)),i={name:this.componentId+e,rules:n(o,"")};return this.instanceRules.set(e,i),i}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const r of this.instanceRules.values())e.insertRules(t,r.name,r.rules)}}var $i;class Hi{constructor(e,t){this[$i]=!0,this.inject=(e,t=Ei)=>{const r=this.getName(t);if(!e.hasNameForId(this.id,r)){const n=t(this.rules,r,"@keyframes");e.insertRules(this.id,r,n)}},this.name=e,this.id=Xn+e,this.rules=t,ro(this.id),Ho(this,()=>{throw Zn(12,String(this.name))})}getName(e=Ei){return e.hash?this.name+ho(+e.hash>>>0):this.name}}function Bi(e,...t){const r=zo(Ni(e,...t)),n=vo(r);return new Hi(n,r)}$i=ci;var Vi,Wi,Ui,Gi,Ki,Yi={exports:{}};function Xi(){if(Wi)return Vi;Wi=1;return Vi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ji(){if(Gi)return Ui;Gi=1;var e=Xi();function t(){}function r(){}return r.resetWarningCache=t,Ui=function(){function n(t,r,n,o,i,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i}}function Zi(){return Ki||(Ki=1,Yi.exports=Ji()()),Yi.exports}var Qi=Jt(Zi());function ea(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}ea.propTypes={children:Qi.node,injectFirst:Qi.bool};const ta=function(e,...t){const r=Ni(e,...t),n=`sc-global-${vo(JSON.stringify(r))}`,o=new Fi(r,n),i=e=>{const t=Ai(),r=S.useContext(ki);let i;{const e=S.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(n)),i=e.current}t.styleSheet.server&&a(i,e,t.styleSheet,r,t.stylis);{const s=o.isStatic?[i,t.styleSheet,o]:[i,e,t.styleSheet,r,t.stylis,o],l=S.useRef(o);S.useLayoutEffect(()=>{t.styleSheet.server||(l.current!==o&&(t.styleSheet.clearRules(n),l.current=o),a(i,e,t.styleSheet,r,t.stylis))},s),S.useLayoutEffect(()=>()=>{t.styleSheet.server||o.removeStyles(i,t.styleSheet)},[i,t.styleSheet,o])}return t.styleSheet.server&&o.instanceRules.delete(i),null};function a(e,t,r,n,a){if(o.isStatic)o.renderStyles(e,Jn,r,a);else{const s=Object.assign(Object.assign({},t),{theme:so(t,n,i.defaultProps)});o.renderStyles(e,s,r,a)}}return S.memo(i)}(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});
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,c,u,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"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.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}},Et({exports:{}});const Lt=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function Nt(t,r){return e(()=>t,r)}const jt={},_t=()=>{const{viewState:n}=t(),o=(t=>{const r=e(()=>({current:jt}),[]);return r.current=r.current===jt?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e(()=>Lt(),[]),l=Nt(e=>{o.current.add(e)},[o]),c=Nt(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(o.current),o.current.clear(),s()},1e3),[s,o]);return r(async()=>{await a},[a]),e(()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:c,waitForPromise:l}),[c,i,n,l])},zt={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"},Ft={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",...zt,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)"},$t=12,Ht=14,Bt=16,Vt=24,Wt=3,Ut=300,Gt=400,Kt=600,Yt=700,Xt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch(e){}return r?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 Qt,er,tr={exports:{}},rr={};var nr=(er||(er=1,tr.exports=function(){if(Qt)return rr;Qt=1;var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(u=r.ref),r)n.call(r,s)&&!i.hasOwnProperty(s)&&(l[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===l[s]&&(l[s]=r[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return rr.Fragment=r,rr.jsx=a,rr.jsxs=a,rr}()),tr.exports);const or={black:"#000",white:"#fff"},ir="#e57373",ar="#ef5350",sr="#f44336",lr="#d32f2f",cr="#c62828",ur="#f3e5f5",dr="#ce93d8",pr="#ba68c8",fr="#ab47bc",hr="#9c27b0",mr="#7b1fa2",gr="#e3f2fd",br="#90caf9",vr="#42a5f5",yr="#1976d2",xr="#1565c0",Sr="#4fc3f7",wr="#29b6f6",Cr="#03a9f4",Er="#0288d1",Rr="#01579b",Ar="#81c784",Ir="#66bb6a",kr="#4caf50",Pr="#388e3c",Dr="#2e7d32",Mr="#1b5e20",Tr="#ffb74d",qr="#ffa726",Or="#ff9800",Lr="#f57c00",Nr="#e65100",jr={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 _r(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 zr=Object.freeze({__proto__:null,default:_r}),Fr="$$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 Hr(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="-ms-",Vr="-moz-",Wr="-webkit-",Ur="comm",Gr="rule",Kr="decl",Yr="@keyframes",Xr=Math.abs,Jr=String.fromCharCode,Zr=Object.assign;function Qr(e){return e.trim()}function en(e,t){return(e=t.exec(e))?e[0]:e}function tn(e,t,r){return e.replace(t,r)}function rn(e,t,r){return e.indexOf(t,r)}function nn(e,t){return 0|e.charCodeAt(t)}function on(e,t,r){return e.slice(t,r)}function an(e){return e.length}function sn(e){return e.length}function ln(e,t){return t.push(e),e}function cn(e,t){return e.filter(function(e){return!en(e,t)})}var un,dn,pn=1,fn=1,hn=0,mn=0,gn=0,bn="";function vn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:pn,column:fn,length:a,return:"",siblings:s}}function yn(e,t){return Zr(vn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xn(e){for(;e.root;)e=yn(e.root,{children:[e]});ln(e,e.siblings)}function Sn(){return gn=mn>0?nn(bn,--mn):0,fn--,10===gn&&(fn=1,pn--),gn}function wn(){return gn=mn<hn?nn(bn,mn++):0,fn++,10===gn&&(fn=1,pn++),gn}function Cn(){return nn(bn,mn)}function En(){return mn}function Rn(e,t){return on(bn,e,t)}function An(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 In(e){return Qr(Rn(mn-1,Dn(91===e?e+2:40===e?e+1:e)))}function kn(e){for(;(gn=Cn())&&gn<33;)wn();return An(e)>2||An(gn)>3?"":" "}function Pn(e,t){for(;--t&&wn()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return Rn(e,En()+(t<6&&32==Cn()&&32==wn()))}function Dn(e){for(;wn();)switch(gn){case e:return mn;case 34:case 39:34!==e&&39!==e&&Dn(gn);break;case 40:41===e&&Dn(e);break;case 92:wn()}return mn}function Mn(e,t){for(;wn()&&e+gn!==57&&(e+gn!==84||47!==Cn()););return"/*"+Rn(t,mn-1)+"*"+Jr(47===e?e:wn())}function Tn(e){for(;!An(Cn());)wn();return Rn(e,mn)}function qn(e){return function(e){return bn="",e}(On("",null,null,null,[""],e=function(e){return pn=fn=1,hn=an(bn=e),mn=0,[]}(e),0,[0],e))}function On(e,t,r,n,o,i,a,s,l){for(var c=0,u=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=wn()){case 40:if(108!=h&&58==nn(C,d-1)){-1!=rn(C+=tn(In(v),"&","&\f"),"&\f",Xr(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=In(v);break;case 9:case 10:case 13:case 32:C+=kn(h);break;case 92:C+=Pn(En()-1,7);continue;case 47:switch(Cn()){case 42:case 47:ln(Nn(Mn(wn(),En()),t,r,l),l),5!=An(h||1)&&5!=An(Cn()||1)||!an(C)||" "===on(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[c++]=an(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(C=tn(C,/\f/g,"")),f>0&&(an(C)-d||0===m&&47===h)&&ln(f>32?jn(C+";",n,r,d-1,l):jn(tn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(ln(w=Ln(C,t,r,c,u,o,s,y,x=[],S=[],d,i),i),123===v)if(0===u)On(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===nn(C,3))break;case 108:if(97===nn(C,2))break;default:u=0;case 100:case 109:case 115:}u?On(e,w,w,n&&ln(Ln(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):On(C,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+an(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Sn())continue;switch(C+=Jr(v),v*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(an(C)-1)*b,b=1;break;case 64:45===Cn()&&(C+=In(wn())),p=Cn(),u=d=an(y=C+=Tn(En())),v++;break;case 45:45===h&&2==an(C)&&(m=0)}}return i}function Ln(e,t,r,n,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=sn(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=on(e,p+1,p=Xr(g=a[m])),x=e;v<h;++v)(x=Qr(g>0?f[v]+" "+y:tn(y,/&\f/g,f[v])))&&(l[b++]=x);return vn(e,t,r,0===o?Gr:s,l,c,u,d)}function Nn(e,t,r,n){return vn(e,t,r,Ur,Jr(gn),on(e,2,-2),0,n)}function jn(e,t,r,n,o){return vn(e,t,r,Kr,on(e,0,n),on(e,n+1,-1),n,o)}function _n(e,t,r){switch(function(e,t){return 45^nn(e,0)?(((t<<2^nn(e,0))<<2^nn(e,1))<<2^nn(e,2))<<2^nn(e,3):0}(e,t)){case 5103:return Wr+"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 Wr+e+e;case 4855:return Wr+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Vr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Wr+e+Vr+e+Br+e+e;case 5936:switch(nn(e,t+11)){case 114:return Wr+e+Br+tn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wr+e+Br+tn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wr+e+Br+tn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Wr+e+Br+e+e;case 6165:return Wr+e+Br+"flex-"+e+e;case 5187:return Wr+e+tn(e,/(\w+).+(:[^]+)/,Wr+"box-$1$2"+Br+"flex-$1$2")+e;case 5443:return Wr+e+Br+"flex-item-"+tn(e,/flex-|-self/g,"")+(en(e,/flex-|baseline/)?"":Br+"grid-row-"+tn(e,/flex-|-self/g,""))+e;case 4675:return Wr+e+Br+"flex-line-pack"+tn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Wr+e+Br+tn(e,"shrink","negative")+e;case 5292:return Wr+e+Br+tn(e,"basis","preferred-size")+e;case 6060:return Wr+"box-"+tn(e,"-grow","")+Wr+e+Br+tn(e,"grow","positive")+e;case 4554:return Wr+tn(e,/([^-])(transform)/g,"$1"+Wr+"$2")+e;case 6187:return tn(tn(tn(e,/(zoom-|grab)/,Wr+"$1"),/(image-set)/,Wr+"$1"),e,"")+e;case 5495:case 3959:return tn(e,/(image-set\([^]*)/,Wr+"$1$`$1");case 4968:return tn(tn(e,/(.+:)(flex-)?(.*)/,Wr+"box-pack:$3"+Br+"flex-pack:$3"),/space-between/,"justify")+Wr+e+e;case 4200:if(!en(e,/flex-|baseline/))return Br+"grid-column-align"+on(e,t)+e;break;case 2592:case 3360:return Br+tn(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,en(e.props,/grid-\w+-end/)})?~rn(e+(r=r[t].value),"span",0)?e:Br+tn(e,"-start","")+e+Br+"grid-row-span:"+(~rn(r,"span",0)?en(r,/\d+/):+en(r,/\d+/)-+en(e,/\d+/))+";":Br+tn(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return en(e.props,/grid-\w+-start/)})?e:Br+tn(tn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return tn(e,/(.+)-inline(.+)/,Wr+"$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(an(e)-1-t>6)switch(nn(e,t+1)){case 109:if(45!==nn(e,t+4))break;case 102:return tn(e,/(.+:)(.+)-([^]+)/,"$1"+Wr+"$2-$3$1"+Vr+(108==nn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rn(e,"stretch",0)?_n(tn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return tn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,i,a,s){return Br+r+":"+n+s+(o?Br+r+"-span:"+(i?a:+a-+n)+s:"")+e});case 4949:if(121===nn(e,t+6))return tn(e,":",":"+Wr)+e;break;case 6444:switch(nn(e,45===nn(e,14)?18:11)){case 120:return tn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Wr+(45===nn(e,14)?"inline-":"")+"box$3$1"+Wr+"$2$3$1"+Br+"$2box$3")+e;case 100:return tn(e,":",":"+Br)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return tn(e,"scroll-","scroll-snap-")+e}return e}function zn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Fn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Kr:return e.return=e.return||e.value;case Ur:return"";case Yr:return e.return=e.value+"{"+zn(e.children,n)+"}";case Gr:if(!an(e.value=e.props.join(",")))return""}return an(r=zn(e.children,n))?e.return=e.value+"{"+r+"}":""}function $n(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kr:return void(e.return=_n(e.value,e.length,r));case Yr:return zn([yn(e,{value:tn(e.value,"@","@"+Wr)})],n);case Gr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(en(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xn(yn(e,{props:[tn(t,/:(read-\w+)/,":-moz-$1")]})),xn(yn(e,{props:[t]})),Zr(e,{props:cn(r,n)});break;case"::placeholder":xn(yn(e,{props:[tn(t,/:(plac\w+)/,":"+Wr+"input-$1")]})),xn(yn(e,{props:[tn(t,/:(plac\w+)/,":-moz-$1")]})),xn(yn(e,{props:[tn(t,/:(plac\w+)/,Br+"input-$1")]})),xn(yn(e,{props:[t]})),Zr(e,{props:cn(r,n)})}return""})}}const Hn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Bn="active",Vn="data-styled-version",Wn="6.4.4",Un="/*!sc*/\n",Gn="undefined"!=typeof window&&"undefined"!=typeof document;function Kn(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Yn=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(dn=null!==(un=Kn("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==un?un:Kn("SC_DISABLE_SPEEDY"))&&void 0!==dn?dn:"undefined"!=typeof process&&void 0!==process.env&&!1),Xn="sc-keyframes-",Jn={};function Zn(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let Qn=new Map,eo=new Map,to=1;const ro=e=>{if(Qn.has(e))return Qn.get(e);for(;eo.has(to);)to++;const t=to++;return Qn.set(e,t),eo.set(t,e),t},no=e=>eo.get(e),oo=(e,t)=>{to=t+1,Qn.set(e,t),eo.set(t,e)},io=Object.freeze([]),ao=Object.freeze({});function so(e,t,r=ao){return e.theme!==r.theme&&e.theme||t||r.theme}const lo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,co=/(^-|-$)/g;function uo(e){return e.replace(lo,"-").replace(co,"")}const po=/(a)(d)/gi,fo=e=>String.fromCharCode(e+(e>25?39:97));function ho(e){let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=fo(t%52)+r;return(fo(t%52)+r).replace(po,"$1-$2")}const mo=5381,go=(e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e},bo=e=>go(mo,e);function vo(e){return ho(bo(e)>>>0)}function yo(e){return"string"==typeof e&&!0}function xo(e){return yo(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const So=Symbol.for("react.memo"),wo=Symbol.for("react.forward_ref"),Co={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Eo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ro={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ao={[wo]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[So]:Ro};function Io(e){return("type"in(t=e)&&t.type.$$typeof)===So?Ro:"$$typeof"in e?Ao[e.$$typeof]:Co;var t}const ko=Object.defineProperty,Po=Object.getOwnPropertyNames,Do=Object.getOwnPropertySymbols,Mo=Object.getOwnPropertyDescriptor,To=Object.getPrototypeOf,qo=Object.prototype;function Oo(e,t,r){if("string"!=typeof t){const n=To(t);n&&n!==qo&&Oo(e,n,r);const o=Po(t).concat(Do(t)),i=Io(e),a=Io(t);for(let n=0;n<o.length;++n){const s=o[n];if(!(s in Eo||r&&r[s]||a&&s in a||i&&s in i)){const r=Mo(t,s);try{ko(e,s,r)}catch(e){}}}}return e}function Lo(e){return"function"==typeof e}const No=Symbol.for("react.forward_ref");function jo(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===No&&"styledComponentId"in e}function _o(e,t){return e&&t?e+" "+t:e||t||""}function zo(e,t){return e.join("")}function Fo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function $o(e,t,r=!1){if(!r&&!Fo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let r=0;r<t.length;r++)e[r]=$o(e[r],t[r]);else if(Fo(t))for(const r in t)e[r]=$o(e[r],t[r]);return e}function Ho(e,t){Object.defineProperty(e,"toString",{value:t})}const Bo=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(let r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,r=t.length;let n=r;for(;e>=n;)if(n<<=1,n<0)throw Zn(16,`${e}`);this.groupSizes=new Uint32Array(n),this.groupSizes.set(t),this.length=n;for(let e=r;e<n;e++)this.groupSizes[e]=0}let r=this.indexOfGroup(e+1),n=0;for(let o=0,i=t.length;o<i;o++)this.tag.insertRule(r,t[o])&&(this.groupSizes[e]++,r++,n++);n>0&&this._cGroup>e&&(this._cIndex+=n)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(let e=r;e<n;e++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r;for(let e=n;e<o;e++)t+=this.tag.getRule(e)+Un;return t}},Vo=`style[${Hn}][${Vn}="${Wn}"]`,Wo=new RegExp(`^${Hn}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Uo=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Go=e=>{if(!e)return document;if(Uo(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Uo(t))return t}return document},Ko=(e,t,r)=>{const n=r.split(",");let o;for(let r=0,i=n.length;r<i;r++)(o=n[r])&&e.registerName(t,o)},Yo=(e,t)=>{var r;const n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Un),o=[];for(let t=0,r=n.length;t<r;t++){const r=n[t].trim();if(!r)continue;const i=r.match(Wo);if(i){const t=0|parseInt(i[1],10),r=i[2];0!==t&&(oo(r,t),Ko(e,r,i[3]),e.getTag().insertRules(t,o)),o.length=0}else o.push(r)}},Xo=e=>{const t=Go(e.options.target).querySelectorAll(Vo);for(let r=0,n=t.length;r<n;r++){const n=t[r];n&&n.getAttribute(Hn)!==Bn&&(Yo(e,n),n.parentNode&&n.parentNode.removeChild(n))}};let Jo=!1;const Zo=(e,t)=>{const r=document.head,n=e||r,o=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${Hn}]`));return t[t.length-1]})(n),a=void 0!==i?i.nextSibling:null;o.setAttribute(Hn,Bn),o.setAttribute(Vn,Wn);const s=t||function(){if(!1!==Jo)return Jo;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Jo=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Jo=t.getAttribute("content")||void 0}return Jo="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&o.setAttribute("nonce",s),n.insertBefore(o,a),o},Qo=class{constructor(e,t){this.element=Zo(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,n=r.length;t<n;t++){const n=r[t];if(n.ownerNode===e)return n}throw Zn(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},ei=class{constructor(e,t){this.element=Zo(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let ti=Gn;const ri={isServer:!Gn,useCSSOMInjection:!Yn};class ni{static registerId(e){return ro(e)}constructor(e=ao,t={},r){this.options=Object.assign(Object.assign({},ri),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Gn&&ti&&(ti=!1,Xo(this)),Ho(this,()=>(e=>{const t=e.getTag(),{length:r}=t;let n="";for(let o=0;o<r;o++){const r=no(o);if(void 0===r)continue;const i=e.names.get(r);if(void 0===i||!i.size)continue;const a=t.getGroup(o);if(0===a.length)continue;const s=Hn+".g"+o+'[id="'+r+'"]';let l="";for(const e of i)e.length>0&&(l+=e+",");n+=a+s+'{content:"'+l+'"}'+Un}return n})(this))}rehydrate(){!this.server&&Gn&&Xo(this)}reconstructWithOptions(e,t=!0){const r=new ni(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&Gn&&e.target!==this.options.target&&Go(this.options.target)!==Go(e.target)&&Xo(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:r})=>e?new Qo(t,r):new ei(t,r))(this.options),new Bo(e)));var e}hasNameForId(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}registerName(e,t){ro(e),e.startsWith(Xn)&&this.keyframeIds.add(e);const r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,r){this.registerName(e,t),this.getTag().insertRules(ro(e),r)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(ro(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const oi=new WeakSet,ii={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart: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};function ai(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in ii||e.startsWith("--")?String(t).trim():t+"px"}const si=47;function li(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t+=n>=65&&n<=90?"-"+String.fromCharCode(n+32):e[r]}return t.startsWith("ms-")?"-"+t:t}const ci=Symbol.for("sc-keyframes");function ui(e){return Lo(e)&&!(e.prototype&&e.prototype.isReactComponent)}const di=e=>null==e||!1===e||""===e,pi=Symbol.for("react.client.reference");function fi(e){return e.$$typeof===pi}function hi(e,t){for(const r in e){const n=e[r];e.hasOwnProperty(r)&&!di(n)&&(Array.isArray(n)&&oi.has(n)||Lo(n)?t.push(li(r)+":",n,";"):Fo(n)?(t.push(r+" {"),hi(n,t),t.push("}")):t.push(li(r)+": "+ai(r,n)+";"))}}function mi(e,t,r,n,o=[]){if(di(e))return o;const i=typeof e;if("string"===i)return o.push(e),o;if("function"===i){if(fi(e))return o;if(ui(e)&&t){return mi(e(t),t,r,n,o)}return o.push(e),o}if(Array.isArray(e)){for(let i=0;i<e.length;i++)mi(e[i],t,r,n,o);return o}return jo(e)?(o.push(`.${e.styledComponentId}`),o):function(e){return"object"==typeof e&&null!==e&&ci in e}(e)?(r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o):fi(e)?o:Fo(e)?e.toString!==Object.prototype.toString?(o.push(e.toString()),o):(hi(e,o),o):(o.push(e.toString()),o)}const gi=bo(Wn);class bi{constructor(e,t,r){this.rules=e,this.componentId=t,this.baseHash=go(gi,t),this.baseStyle=r,ni.registerId(t)}generateAndInjectStyles(e,t,r){let n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";{let o="";for(let n=0;n<this.rules.length;n++){const i=this.rules[n];if("string"==typeof i)o+=i;else if(i)if(ui(i)){const n=i(e);"string"==typeof n?o+=n:null!=n&&!1!==n&&(o+=zo(mi(n,e,t,r)))}else o+=zo(mi(i,e,t,r))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=r.hash?r.hash+o:o;let i=this.dynamicNameCache.get(e);if(!i){if(i=ho(go(go(this.baseHash,r.hash),o)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,i)}if(!t.hasNameForId(this.componentId,i)){const e=r(o,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}n=_o(n,i)}}return n}}const vi=/&/g;function yi(e,t){let r=0;for(;--t>=0&&92===e.charCodeAt(t);)r++;return!(1&~r)}function xi(e){const t=e.length;let r="",n=0,o=0,i=0,a=!1,s=!1;for(let l=0;l<t;l++){const c=e.charCodeAt(l);if(0!==i||a||c!==si||42!==e.charCodeAt(l+1))if(a)42===c&&e.charCodeAt(l+1)===si&&(a=!1,l++);else if(34!==c&&39!==c||yi(e,l)){if(0===i)if(123===c)o++;else if(125===c){if(o--,o<0){s=!0;let r=l+1;for(;r<t;){const t=e.charCodeAt(r);if(59===t||10===t)break;r++}r<t&&59===e.charCodeAt(r)&&r++,o=0,l=r-1,n=r;continue}0===o&&(r+=e.substring(n,l+1),n=l+1)}else 59===c&&0===o&&(r+=e.substring(n,l+1),n=l+1)}else 0===i?i=c:i===c&&(i=0);else a=!0,l++}return s||0!==o||0!==i?(n<t&&0===o&&0===i&&(r+=e.substring(n)),r):e}function Si(e,t){const r=t+" ",n=","+r;for(let o=0;o<e.length;o++){const i=e[o];if("rule"===i.type){i.value=(r+i.value).replaceAll(",",n);const e=i.props,t=[];for(let n=0;n<e.length;n++)t[n]=r+e[n];i.props=t}Array.isArray(i.children)&&"@keyframes"!==i.type&&Si(i.children,t)}return e}function wi({options:e=ao,plugins:t=io}=ao){let r,n,o;const i=(e,t,o)=>o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?`.${r}`:e,a=t.slice();a.push(e=>{e.type===Gr&&e.value.includes("&")&&(o||(o=new RegExp(`\\${n}\\b`,"g")),e.props[0]=e.props[0].replace(vi,n).replace(o,i))}),e.prefix&&a.push($n),a.push(Fn);let s=[];const l=function(e){var t=sn(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(a.concat((d=e=>s.push(e),function(e){e.root||(e=e.return)&&d(e)}))),c=(t,i="",a="",c="&")=>{r=c,n=i,o=void 0;const u=function(e){const t=-1!==e.indexOf("//"),r=-1!==e.indexOf("}");if(!t&&!r)return e;if(!t)return xi(e);const n=e.length;let o="",i=0,a=0,s=0,l=0,c=0,u=!1;for(;a<n;){const t=e.charCodeAt(a);if(34!==t&&39!==t||yi(e,a))if(0===s)if(t===si&&a+1<n&&42===e.charCodeAt(a+1)){for(a+=2;a+1<n&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==si);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<n&&e.charCodeAt(a+1)===si)o+=e.substring(i,a),a+=2,i=a,u=!0;else if(t===si&&a+1<n&&e.charCodeAt(a+1)===si){for(o+=e.substring(i,a);a<n&&10!==e.charCodeAt(a);)a++;i=a,u=!0}else 123===t?c++:125===t&&c--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===s?s=t:s===t&&(s=0),a++}return u?(i<n&&(o+=e.substring(i)),0===c?o:xi(o)):0===c?e:xi(e)}(t);let d=qn(a||i?a+" "+i+" { "+u+" }":u);return e.namespace&&(d=Si(d,e.namespace)),s=[],zn(d,l),s},u=e;var d;let p=mo;for(let e=0;e<t.length;e++)t[e].name||Zn(15),p=go(p,t[e].name);return(null==u?void 0:u.namespace)&&(p=go(p,u.namespace)),(null==u?void 0:u.prefix)&&(p=go(p,"p")),c.hash=p!==mo?p.toString():"",c}const Ci=new ni,Ei=wi(),Ri=S.createContext({shouldForwardProp:void 0,styleSheet:Ci,stylis:Ei,stylisPlugins:void 0});function Ai(){return S.useContext(Ri)}function Ii(e){var t;const r=Ai(),{styleSheet:n}=r,o=S.useMemo(()=>{let t=n;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions(void 0!==e.nonce?{target:e.target,nonce:e.nonce}:{target:e.target},!1):void 0!==e.nonce&&(t=t.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,n]),i=S.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?r.stylis:wi({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:r.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,r.stylis,r.stylisPlugins]),a="shouldForwardProp"in e?e.shouldForwardProp:r.shouldForwardProp,s=null!==(t=e.stylisPlugins)&&void 0!==t?t:r.stylisPlugins,l=S.useMemo(()=>({shouldForwardProp:a,styleSheet:o,stylis:i,stylisPlugins:s}),[a,o,i,s]);return S.createElement(Ri.Provider,{value:l},e.children)}Ri.Consumer;const ki=S.createContext(void 0);ki.Consumer;const Pi=Object.prototype.hasOwnProperty,Di={};function Mi(e,t){const r="string"!=typeof e?"sc":uo(e);Di[r]=(Di[r]||0)+1;const n=r+"-"+vo(Wn+r+Di[r]);return t?t+"-"+n:n}function Ti(e,t,r){const n=jo(e),o=e,i=!yo(e),{attrs:a=io,componentId:s=Mi(t.displayName,t.parentComponentId),displayName:l=xo(e)}=t,c=t.displayName&&t.componentId?uo(t.displayName)+"-"+t.componentId:t.componentId||s,u=n&&o.attrs?o.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:d}=t;if(n&&o.shouldForwardProp){const e=o.shouldForwardProp;if(t.shouldForwardProp){const r=t.shouldForwardProp;d=(t,n)=>e(t,n)&&r(t,n)}else d=e}const p=new bi(r,c,n?o.componentStyle:void 0);function f(e,t){return function(e,t,r){const{attrs:n,componentStyle:o,defaultProps:i,foldedComponentIds:a,styledComponentId:s,target:l}=e,c=S.useContext(ki),u=Ai(),d=e.shouldForwardProp||u.shouldForwardProp,p=so(t,c,i)||ao;let f,h;{const e=S.useRef(null),r=e.current;if(null!==r&&r[1]===p&&r[2]===u.styleSheet&&r[3]===u.stylis&&r[7]===o&&function(e,t,r){const n=e,o=t;let i=0;for(const e in o)if(Pi.call(o,e)&&(i++,n[e]!==o[e]))return!1;return i===r}(r[0],t,r[4]))f=r[5],h=r[6];else{f=function(e,t,r){const n=Object.assign(Object.assign({},t),{className:void 0,theme:r}),o=e.length>1;for(let r=0;r<e.length;r++){const i=e[r],a=Lo(i)?i(o?Object.assign({},n):n):i;for(const e in a)"className"===e?n.className=_o(n.className,a[e]):"style"===e?n.style=Object.assign(Object.assign({},n.style),a[e]):e in t&&void 0===t[e]||(n[e]=a[e])}return"className"in t&&"string"==typeof t.className&&(n.className=_o(n.className,t.className)),n}(n,t,p),h=function(e,t,r,n){return e.generateAndInjectStyles(t,r,n)}(o,f,u.styleSheet,u.stylis);let r=0;for(const e in t)Pi.call(t,e)&&r++;e.current=[t,p,u.styleSheet,u.stylis,r,f,h,o]}}const m=f.as||l,g=function(e,t,r,n){const o={};for(const i in e)void 0===e[i]||"$"===i[0]||"as"===i||"theme"===i&&e.theme===r||("forwardedAs"===i?o.as=e.forwardedAs:n&&!n(i,t)||(o[i]=e[i]));return o}(f,m,p,d);let b=_o(a,s);return h&&(b+=" "+h),f.className&&(b+=" "+f.className),g[yo(m)&&m.includes("-")?"class":"className"]=b,r&&(g.ref=r),w(m,g)}(h,e,t)}f.displayName=l;let h=S.forwardRef(f);return h.attrs=u,h.componentStyle=p,h.displayName=l,h.shouldForwardProp=d,h.foldedComponentIds=n?_o(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=c,h.target=n?o.target:e,Object.defineProperty(h,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=n?function(e,...t){for(const r of t)$o(e,r,!0);return e}({},o.defaultProps,e):e}}),Ho(h,()=>`.${h.styledComponentId}`),i&&Oo(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var qi=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"]);function Oi(e,t){const r=[e[0]];for(let n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}const Li=e=>(oi.add(e),e);function Ni(e,...t){if(Lo(e)||Fo(e))return Li(mi(Oi(io,[e,...t])));const r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?mi(r):Li(mi(Oi(r,t)))}function ji(e,t,r=ao){if(!t)throw Zn(1,t);const n=(n,...o)=>e(t,r,Ni(n,...o));return n.attrs=n=>ji(e,t,Object.assign(Object.assign({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)})),n.withConfig=n=>ji(e,t,Object.assign(Object.assign({},r),n)),n}const _i=e=>ji(Ti,e),zi=_i;qi.forEach(e=>{zi[e]=_i(e)});class Fi{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const r=e[t];if(Lo(r)&&!jo(r))return!1}return!0}(e),ni.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,r,n){const o=this.componentId;if(this.isStatic){if(r.hasNameForId(o,o+e))this.instanceRules.has(e)||this.computeRules(e,t,r,n);else{const i=this.computeRules(e,t,r,n);r.insertRules(o,i.name,i.rules)}return}const i=this.instanceRules.get(e);if(this.computeRules(e,t,r,n),!r.server&&i){const t=i.rules,r=this.instanceRules.get(e).rules;if(t.length===r.length){let e=!0;for(let n=0;n<t.length;n++)if(t[n]!==r[n]){e=!1;break}if(e)return}}this.rebuildGroup(r)}computeRules(e,t,r,n){const o=zo(mi(this.rules,t,r,n)),i={name:this.componentId+e,rules:n(o,"")};return this.instanceRules.set(e,i),i}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const r of this.instanceRules.values())e.insertRules(t,r.name,r.rules)}}var $i;class Hi{constructor(e,t){this[$i]=!0,this.inject=(e,t=Ei)=>{const r=this.getName(t);if(!e.hasNameForId(this.id,r)){const n=t(this.rules,r,"@keyframes");e.insertRules(this.id,r,n)}},this.name=e,this.id=Xn+e,this.rules=t,ro(this.id),Ho(this,()=>{throw Zn(12,String(this.name))})}getName(e=Ei){return e.hash?this.name+ho(+e.hash>>>0):this.name}}function Bi(e,...t){const r=zo(Ni(e,...t)),n=vo(r);return new Hi(n,r)}$i=ci;var Vi,Wi,Ui,Gi,Ki,Yi={exports:{}};function Xi(){if(Wi)return Vi;Wi=1;return Vi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ji(){if(Gi)return Ui;Gi=1;var e=Xi();function t(){}function r(){}return r.resetWarningCache=t,Ui=function(){function n(t,r,n,o,i,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i}}function Zi(){return Ki||(Ki=1,Yi.exports=Ji()()),Yi.exports}var Qi=Jt(Zi());function ea(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}ea.propTypes={children:Qi.node,injectFirst:Qi.bool};const ta=function(e,...t){const r=Ni(e,...t),n=`sc-global-${vo(JSON.stringify(r))}`,o=new Fi(r,n),i=e=>{const t=Ai(),r=S.useContext(ki);let i;{const e=S.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(n)),i=e.current}t.styleSheet.server&&a(i,e,t.styleSheet,r,t.stylis);{const s=o.isStatic?[i,t.styleSheet,o]:[i,e,t.styleSheet,r,t.stylis,o],l=S.useRef(o);S.useLayoutEffect(()=>{t.styleSheet.server||(l.current!==o&&(t.styleSheet.clearRules(n),l.current=o),a(i,e,t.styleSheet,r,t.stylis))},s),S.useLayoutEffect(()=>()=>{t.styleSheet.server||o.removeStyles(i,t.styleSheet)},[i,t.styleSheet,o])}return t.styleSheet.server&&o.instanceRules.delete(i),null};function a(e,t,r,n,a){if(o.isStatic)o.renderStyles(e,Jn,r,a);else{const s=Object.assign(Object.assign({},t),{theme:so(t,n,i.defaultProps)});o.renderStyles(e,s,r,a)}}return S.memo(i)}(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
  /**
11
11
  * @mui/styled-engine-sc v6.4.3
12
12
  *
@@ -118,4 +118,4 @@ function ra(e,t){let r;return r=t?zi(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
- */var o$=(r$||(r$=1,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="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+u+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+r+"|"+u+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+u+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+c+v+"[^;}]+;?)","gi"),I=new RegExp("("+c+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),D=new RegExp(l+"(left)"+b+y+v,"gi"),M=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),q=new RegExp(l+"(right)"+x,"gi"),O=/(:dir\( *)ltr( *\))/g,L=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,r){var n,o;return t.split("(").length>t.split(")").length?e:("%"===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 Z(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 Q(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?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(A,"`NOFLIP_SINGLE`"),a=new n(I,"`NOFLIP_CLASS`"),s=new n(R,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(O,"$1`TMPLTR`$2").replace(L,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(q,"$1left").replace(w,"right")),r=r.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(D,"$1"+e).replace(M,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(V,Q).replace(W,te).replace(U,ne).replace(G,ne).replace(K,te).replace(Y,re).replace(X,re).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),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)}(n$,n$.exports)),n$.exports),i$=Jt(o$),a$="comm",s$="rule",l$="decl",c$=Math.abs,u$=String.fromCharCode;function d$(e){return e.trim()}function p$(e,t,r){return e.replace(t,r)}function f$(e,t){return 0|e.charCodeAt(t)}function h$(e,t,r){return e.slice(t,r)}function m$(e){return e.length}function g$(e,t){return t.push(e),e}var b$=1,v$=1,y$=0,x$=0,S$=0,w$="";function C$(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:b$,column:v$,length:a,return:"",siblings:s}}function E$(){return S$=x$>0?f$(w$,--x$):0,v$--,10===S$&&(v$=1,b$--),S$}function R$(){return S$=x$<y$?f$(w$,x$++):0,v$++,10===S$&&(v$=1,b$++),S$}function A$(){return f$(w$,x$)}function I$(){return x$}function k$(e,t){return h$(w$,e,t)}function P$(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 D$(e){return d$(k$(x$-1,q$(91===e?e+2:40===e?e+1:e)))}function M$(e){for(;(S$=A$())&&S$<33;)R$();return P$(e)>2||P$(S$)>3?"":" "}function T$(e,t){for(;--t&&R$()&&!(S$<48||S$>102||S$>57&&S$<65||S$>70&&S$<97););return k$(e,I$()+(t<6&&32==A$()&&32==R$()))}function q$(e){for(;R$();)switch(S$){case e:return x$;case 34:case 39:34!==e&&39!==e&&q$(S$);break;case 40:41===e&&q$(e);break;case 92:R$()}return x$}function O$(e,t){for(;R$()&&e+S$!==57&&(e+S$!==84||47!==A$()););return"/*"+k$(t,x$-1)+"*"+u$(47===e?e:R$())}function L$(e){for(;!P$(A$());)R$();return k$(e,x$)}function N$(e){return function(e){return w$="",e}(j$("",null,null,null,[""],e=function(e){return b$=v$=1,y$=m$(w$=e),x$=0,[]}(e),0,[0],e))}function j$(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y=0,x="",S=o,w=i,C=n,E=x;g;)switch(h=y,y=R$()){case 40:108!=h&&58==f$(E,d-1)?(v++,E+="("):E+=D$(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=D$(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=u$(y);break}E+=M$(h);break;case 92:E+=T$(I$()-1,7);continue;case 47:switch(A$()){case 42:case 47:g$(z$(O$(R$(),I$()),t,r,l),l),5!=P$(h||1)&&5!=P$(A$()||1)||!m$(E)||" "===h$(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=m$(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=u$(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=p$(E,/\f/g,"")),f>0&&(m$(E)-d||0===m)&&g$(f>32?F$(E+";",n,r,d-1,l):F$(p$(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(g$(C=_$(E,t,r,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)j$(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===f$(E,3))break;case 108:if(97===f$(E,2))break;default:u=0;case 100:case 109:case 115:}u?j$(e,C,C,n&&g$(_$(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,n?S:w):j$(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+m$(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==E$())continue;switch(E+=u$(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(m$(E)-1)*b,b=1;break;case 64:45===A$()&&(E+=D$(R$())),p=A$(),u=d=m$(x=E+=L$(I$())),y++;break;case 45:45===h&&2==m$(E)&&(m=0)}}return i}function _$(e,t,r,n,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=h$(e,p+1,p=c$(g=a[m])),x=e;v<h;++v)(x=d$(g>0?f[v]+" "+y:p$(y,/&\f/g,f[v])))&&(l[b++]=x);return C$(e,t,r,0===o?s$:s,l,c,u,d)}function z$(e,t,r,n){return C$(e,t,r,a$,u$(S$),h$(e,2,-2),0,n)}function F$(e,t,r,n,o){return C$(e,t,r,l$,h$(e,0,n),h$(e,n+1,-1),n,o)}function $$(e,t,r){switch(e.type){case"@import":case l$:case a$:return e.return=e.return||e.value;case s$:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===a$&&(e.children=e.value)})}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),$$);return m$(n)?e.return=e.value+"{"+n+"}":""}function H$(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===s$&&(!e.parent||"@media"===e.parent.type||e.parent.type===s$)){var o=i$.transform($$(e));e.children=o?N$(o)[0].children:[],e.return=""}}Object.defineProperty(H$,"name",{value:"stylisRTLPlugin"});const B$=hI(({options:e,...t})=>Kg(Hm(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);class V${#y={on:new Map,once:new Map};#x=10;#S(e){this.listenerCount(e)>this.#x&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#w(e,t,r){const n=this.#y[e].get(t)??new Set;n.add(r),this.#y[e].set(t,n),this.#S(t)}setMaxListeners(e){this.#x=e}on(e,t){this.#w("on",e,t)}once(e,t){this.#w("once",e,t)}off(e,t){this.#y.on.get(e)?.delete(t),this.#y.once.get(e)?.delete(t)}emit(e,...t){this.#y.on.get(e)?.forEach(e=>{e(...t)}),this.#y.once.get(e)?.forEach(e=>{e(...t)}),this.#y.once.delete(e)}listenerCount(e){return(this.#y.on.get(e)?.size??0)+(this.#y.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#y.on.clear(),this.#y.once.clear()):(this.#y.on.delete(e),this.#y.once.delete(e))}}const W$=Kg(()=>new V$);let U$=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),G$=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}({}),K$=function(e){return e.A="ascending",e.D="descending",e}({}),Y$=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const X$=[0,0],J$=e=>"number"==typeof e&&!Number.isNaN(+e),Z$=e=>J$(e.qNum),Q$=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),eH=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),tH=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},rH=(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,c=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-c}:{color:l.color,t:c-.5}:a.gradient?{color:s.color,t:1-(.5+c/2)}:i.gradient?{color:l.color,t:c/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return ie(e.localPaletteColors[t].color??"").blend(ie(s.color??""),s.t)},nH=(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:eH(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:tH(n,t,r)}))),n},oH=(e,t,r,n)=>{const o=nH(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=rH(e,a,t);break}n=i}return r})(o,t);return a},iH=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!J$(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||!J$(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)},aH=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=iH(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||!J$(t))return 0;let a=r&&J$(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}},sH=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=aH(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 tH(o,r.limitPaletteColorIndex,n);const a=eH(r.limitRange,t);return oH(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let c=l?.position||"right";return"rtl"===r&&(c="right"===c?"left":"right"),{color:a,iconKey:s,position:c}},lH=(wm().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)"),cH=4/3,uH="12px",dH="600",pH="Source Sans Pro, sans-serif",fH={height:"auto",fontSize:uH,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"}},hH={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:dH},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},mH=(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,gH=(e,t)=>e.representation.type===lF.Image&&"fitHeight"===e.representation.imageSize?mH(t,e.representation):e.align,bH=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",vH=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},yH=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,xH=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",SH=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",wH=24,CH=_c("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),EH=_c(Pd,{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?bH(e,n):void 0})),RH=_c(Pd,{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},[`& .${eg}`]:{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"},[`& .${eg}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),AH=_c(Pd,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),IH=_c(Pd,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),kH=_c(zu,{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})),PH=Kg(),DH=Kg(0),MH=Kg(0),TH=e=>parseInt(e??fH.fontSize,10)*cH,qH=4/3,OH=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function LH(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const NH=(e,t)=>e?{borderBottomColor:Rm.DARK_MODE_BORDER,borderRightColor:Rm.DARK_MODE_BORDER,borderLeftColor:Rm.DARK_MODE_BORDER,borderTopColor:Rm.DARK_MODE_BORDER}:{borderLeftColor:Rm.BORDER_MEDIUM,borderRightColor:Rm.BORDER_MEDIUM,borderTopColor:Rm.BORDER_HEAVY,borderBottomColor:t?Rm.BORDER_HEAVY:Rm.BORDER_LIGHT},jH=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*qH+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},_H=e=>e.components?.find(e=>"theme"===e.key),zH=(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:OH(r?.fontColor)?LH(Rm.TEXT,t,r?.fontColor):i||Rm.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...NH(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function FH(e,t,r){const n=_H(e)?.header,o=zH("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=km(o.background??Rm.WHITE,lg),o.activeBackground=km(o.background??Rm.WHITE,cg),o}const $H=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in hH)(e)&&Object.assign(t,hH[e])),t};function HH(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&&Dm(i);a&&(n[r[t]]=a),o=i?$H(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=Am(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const BH=25e4,VH=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,WH=5e6,UH=5e5;const GH={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:KH(e),value:KH(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}};function KH(e){try{return decodeURIComponent(e)}catch{return e}}function YH(e){if(!(this instanceof YH))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>GH.fromSearchString(t.search)}})}function XH(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}YH.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},YH.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=XH(t.key),t.value?r+=`=${XH(t.value)}`:r+=t.useEqualSign?"=":"";return r};var JH=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},ZH=class{decode(e){let t="";const r=new JH(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}};const QH=e=>e>=0&&e<=1114111,eB=e=>e.match(/[\s]/);var tB=class extends ZH{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!eB(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return QH(a)?String.fromCharCode(a):"�"}},rB=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},nB=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return rB.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return rB.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||rB.newInstanceIfNeeded(e,t,this._value)}},oB=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new nB);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const iB=(()=>{const e=[],t=[],r=new oB;let n,o,i;for(n in e["&quot"]="34",e["&amp"]="38",e["&lt"]="60",e["&gt"]="62",e["&nbsp"]="160",e["&iexcl"]="161",e["&cent"]="162",e["&pound"]="163",e["&curren"]="164",e["&yen"]="165",e["&brvbar"]="166",e["&sect"]="167",e["&uml"]="168",e["&copy"]="169",e["&ordf"]="170",e["&laquo"]="171",e["&not"]="172",e["&shy"]="173",e["&reg"]="174",e["&macr"]="175",e["&deg"]="176",e["&plusmn"]="177",e["&sup2"]="178",e["&sup3"]="179",e["&acute"]="180",e["&micro"]="181",e["&para"]="182",e["&middot"]="183",e["&cedil"]="184",e["&sup1"]="185",e["&ordm"]="186",e["&raquo"]="187",e["&frac14"]="188",e["&frac12"]="189",e["&frac34"]="190",e["&iquest"]="191",e["&Agrave"]="192",e["&Aacute"]="193",e["&Acirc"]="194",e["&Atilde"]="195",e["&Auml"]="196",e["&Aring"]="197",e["&AElig"]="198",e["&Ccedil"]="199",e["&Egrave"]="200",e["&Eacute"]="201",e["&Ecirc"]="202",e["&Euml"]="203",e["&Igrave"]="204",e["&Iacute"]="205",e["&Icirc"]="206",e["&Iuml"]="207",e["&ETH"]="208",e["&Ntilde"]="209",e["&Ograve"]="210",e["&Oacute"]="211",e["&Ocirc"]="212",e["&Otilde"]="213",e["&Ouml"]="214",e["&times"]="215",e["&Oslash"]="216",e["&Ugrave"]="217",e["&Uacute"]="218",e["&Ucirc"]="219",e["&Uuml"]="220",e["&Yacute"]="221",e["&THORN"]="222",e["&szlig"]="223",e["&agrave"]="224",e["&aacute"]="225",e["&acirc"]="226",e["&atilde"]="227",e["&auml"]="228",e["&aring"]="229",e["&aelig"]="230",e["&ccedil"]="231",e["&egrave"]="232",e["&eacute"]="233",e["&ecirc"]="234",e["&euml"]="235",e["&igrave"]="236",e["&iacute"]="237",e["&icirc"]="238",e["&iuml"]="239",e["&eth"]="240",e["&ntilde"]="241",e["&ograve"]="242",e["&oacute"]="243",e["&ocirc"]="244",e["&otilde"]="245",e["&ouml"]="246",e["&divide"]="247",e["&oslash"]="248",e["&ugrave"]="249",e["&uacute"]="250",e["&ucirc"]="251",e["&uuml"]="252",e["&yacute"]="253",e["&thorn"]="254",e["&yuml"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["&notin"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})();var aB=class extends ZH{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,iB.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=iB.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&QH(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&QH(n)?String.fromCharCode(n):null}},sB=class extends ZH{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),QH(i))?String.fromCharCode(i):(e.reset(),null)}};let lB;"undefined"!=typeof document&&(lB=document.createElement("div"));const cB=Array.prototype.indexOf,uB=[",",".","_"," "],dB=[",",".","-","_"," "],pB={width:["%"],height:["%"]},fB={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},hB={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":fB.image,"background-color":fB.color,"border-color":fB.color,"border-image":fB.image,color:fB.color,icon:fB.image,"list-style-image":fB.image,"outline-color":fB.color},mB={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function gB(e,t,r){let n;if(t){if(cB)return cB.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function bB(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return lB.appendChild(r),t=lB.innerHTML,lB.removeChild(r),t}function vB(e,t,r){let n,o,i,a,s,l,c,u,d;for(e=xB(e).toLowerCase(),t=xB(t),i=0;i<mB.attr_name.length;i++)if(e.match(mB.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<mB.attr_val.length;i++)if(t.toLowerCase().match(mB.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=pB[e],n||(n=dB),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&gB(c,n)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return r||(o+='"'),o}function yB(e,t,r){let n,o,i,a,s,l,c,u,d,p;if(e=xB(e).toLowerCase(),t=xB(t),gB(e,mB.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<mB.css_val.length;n++)if(t.toLowerCase().indexOf(mB.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=hB[e],o||(o=fB.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&gB(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function xB(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new aB,new sB,new tB];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}const SB=[];for(let e=0;e<255;e++)SB[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const wB={html:e=>bB(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=yB(t,r[t],!0),i+=yB(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=vB(e,t[e],!0),o+=vB(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function CB(e,t){throw new Error(t)}var EB={canonicalize:xB,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?wB.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&CB(this,"Invalid parameter type"),wB.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&CB(this,"Invalid parameter type"),wB.attr(e)):void CB(this,"Invalid parameter type")},encodeForAttr:vB,encodeForAttr2:function(e){return vB("nonsens",e,!0)},encodeForCSS:yB,encodeForHref:function(e){xB(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new YH(e),r=YH.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+YH.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=uB),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),gB(o,t)>=0||null==SB[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:bB,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=xB(t).toLowerCase():CB(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:r=UH,maxByteSizeImage:n=WH}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=VH.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const RB=(e,t)=>t.qAttrExps?.qValues?.[e],AB=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},IB=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!EB.isSafeDataURL(t))?{type:lF.Text,url:void 0,text:e,labelStructure:o}:{type:lF.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:AB(n,a),labelStructure:o,imageBox:i},kB=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:lF.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:lF.MiniChart,text:n,miniChart:a}},PB=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===cF.Attribute?void 0:r?.urlLabel},DB=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:lF.Link,url:EB.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:lF.Text,url:void 0,text:t,labelStructure:e}}},MB=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:c})=>{const u=uF(t),d=s(e);return u===lF.Image&&c[lF.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=RB(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),IB({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return IB({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=RB(r.imageLabel??-1,e)?.qText??n;return IB({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:lF.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):u===lF.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===cF.Attribute){const i=PB(r.url??-1,e,t);return DB({labelStructure:n,text:o||i||"",url:i})}if(i===cF.Dimension){const i=PB(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),DB({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:lF.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):u===lF.Indicator&&c[lF.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:lF.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):u===lF.MiniChart&&c[lF.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?kB(e,t,i,d):{type:lF.Text,url:void 0,text:d,labelStructure:a}},TB=Kg(e=>{const t=e(Kb),r=e(Mb);return e(Tb),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}}),qB=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),OB=({cId:e})=>e??Zz(),LB=1e4;function NB(e,t){return[...t].reverse().find(t=>t*e<=LB)||Math.floor(LB/e)}function jB(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function _B(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function zB(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return J$(r?.qNum)}function FB(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const $B=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",HB=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=ie(r??""),i=ie(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?km(s,lg):void 0,c=s?km(s,cg):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:Am(s),headerMenuHoverBackground:l,headerMenuActiveBackground:c}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:c}};const BB=(e,t,r,n=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const r=e<n,o=(r?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,r,n,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:c,visibleDimInfoIdx:u,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===ug.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==u){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=u,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:I,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:D,qApprMaxGlyphCount:M,columnWidth:T,qLibraryId:q,headerColor:O}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:q,pageColIdx:c,qApprMaxGlyphCount:M,qReverseSort:D,columnWidth:T??{type:sg.Auto},selectionColIdx:S,isActivelySorted:g,id:OB(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:qB(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:_B(e,f,c,d??-1),...!f&&{isTotalNumeric:zB(e,d??-1)},...FB(I,b,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?HB(O,r):void 0}}(e,o,t,r,n))},VB=(e,t,r,n)=>e?(n?r.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":r.nullValueRepresentation?.text??t.qText??"-",WB=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,UB={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},GB=Kg(e=>{const t=e(KB),r=e(Rb),n=e(TB),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>LB?{...t,rowsPerPage:NB(l,t.rowsPerPageOptions),page:0}:t}),KB=Kg(UB),YB=Kg(e=>{const t=e(Rb),r=e(Kb),n=e(TB);return Vb(t,r)?{page:n.page||UB.page,rowsPerPage:n.rowsPerPage||UB.rowsPerPage,rowsPerPageOptions:UB.rowsPerPageOptions}:e(GB)},(e,t,r)=>{t(KB,e=>({...e,...r}))}),XB=!0,JB=e=>-1===e.qElemNumber||!!e.qIsTotalCell,ZB=Kg(async e=>{const t=e(Rb),r=e(Kb),n=e(Ub),{page:o,rowsPerPage:i}=e(YB),a=e(TB),s=e(Qb),l=e(Sb),c=e(Ib),u=e(wb),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=jB(t,r),v=BB(t,XB,n,u),y=l.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),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]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});c||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const S=x.at(0)?.qMatrix.map((e,r)=>{const o=[],i=e.some(JB);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&WB(c,a.isDim),p=u||d?VB(a.isDim,c,t,y):c.qText,f=u?Q$(p):Z$(c),g=Z$(c)&&!Q$(c.qText??"");o[s]={id:Zz(),...c,align:$B(f,a.bodyTextAlign,n,XB),rowIdx:r+h,colIdx:a.colIdx,pageRowIdx:r,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i&&!d,isTotalRow:i,isLastRow:r===m-1,isNumeric:f,isDual:g,isNull:(!u||!f)&&WB(c,a.isDim),representation:MB({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:n,enabledFeatures:{[lF.Image]:!0,[lF.Indicator]:!0,[lF.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),QB=oA(ZB,e=>e),eV=Kg(e=>{const t=e(Rb),r=e(Kb),n=e(_b),o=e(Ub),i=e(wb),a=BB(t,false,o,i),s=jB(t,r),l=t.qHyperCube.qSize.qcy,c=Math.min(BH,l),u=l>BH&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/c),paginationNeeded:u}}),tV={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},rV=Kg(),nV=Kg(e=>{const t=e(Xb),r=e(rV);return r||(t?e(QB)??tV:e(eV))}),oV=Kg(e=>e(nV).totalsPosition),iV=Kg(e=>e(nV).columns),aV=Kg(e=>e(iV).length),sV=Kg(e=>e(nV).rows),lV=Kg(e=>e(nV).totalRowCount),cV=Kg(e=>e(nV).totalColumnCount),uV=Kg(e=>e(nV).paginationNeeded),dV=Kg(e=>{const t=e(iv),r=e(lv),n=e(Rb),o=e(oV),i=e(sV),a=o.atTop,s=function(e,t,r,n){const o=_H(e)?.content,i=zH("content",t,o);i.background=t.background.color;const a=jH(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),u=t.getStyle("object","","straightTableV2.content.hover.color"),d=OH(l)||!!u,p=OH(s)||!!c,f=d||p;let h;h=OH(s)?LH(Rm.HOVER,t,s):c||(d?"":Rm.HOVER);const m=f?LH(Am(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=FH(n,r,!a),c=function(e,t,r){const n=_H(e)?.content,o=zH("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=FH(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:c}}),pV=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},fV=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=pV(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},hV=(e,t,r,n=Rm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=fV(e,t,r);return Lm(i,o,a,n)??n},mV=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return uH}},gV=e=>e?.some(e=>"italic"===e)?"italic":"normal",bV=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?dH:"normal",vV=e=>!1===e?1:3,yV=e=>e?.some(e=>"underline"===e)?"underline":"none",xV=Kg(e=>{const t=e(Kb),r=e(Xb),n=e(lv),o=e(Rb),i=e(dV),a=e(wb),{header:s,dimensionValues:l,measureValues:c,totalValues:u,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=_H(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=r?Rm.WHITE:Rm.TRANSPARENT,v=hV(n,s,"object.straightTableV2.dimension.label.name.backgroundColor",b),y=t?.maxLineCount??m?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),x=(g?f:void 0)??p;return{header:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??pH,fontSize:mV(s?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:gV(s?.fontStyle),fontWeight:bV(s?.fontStyle,dH),textDecoration:yV(s?.fontStyle),color:pV(n,s?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??Rm.TEXT,background:v},headerMenuHoverBackground:km(v,lg),headerMenuActiveBackground:km(v,cg),dimension:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??pH,fontSize:mV(l?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:gV(l?.fontStyle),fontWeight:bV(l?.fontStyle,"normal"),textDecoration:yV(l?.fontStyle),color:pV(n,l?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??Rm.TEXT,background:fV(n,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??Rm.TRANSPARENT}},measure:{values:{fontFamily:c?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??pH,fontSize:mV(c?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:gV(c?.fontStyle),fontWeight:bV(c?.fontStyle,"normal"),textDecoration:yV(c?.fontStyle),color:pV(n,c?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??Rm.TEXT,background:fV(n,c,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??Rm.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??pH,fontSize:mV(u?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:gV(u?.fontStyle),fontWeight:bV(u?.fontStyle,dH),textDecoration:yV(u?.fontStyle),color:pV(n,u?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??Rm.TEXT,background:hV(n,u,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??n.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??pH,fontSize:mV(d?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:gV(d?.fontStyle),fontWeight:bV(d?.fontStyle,dH),textDecoration:yV(d?.fontStyle),color:pV(n,d?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??Rm.TEXT,background:hV(n,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:gV(x?.fontStyle),fontWeight:bV(x?.fontStyle,"normal"),textDecoration:yV(x?.fontStyle),color:pV(n,x?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??Rm.TEXT,background:pV(n,x?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??Rm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:gV(p?.fontStyle),fontWeight:bV(p?.fontStyle,"normal"),textDecoration:yV(p?.fontStyle),color:pV(n,p?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??Rm.TEXT,background:pV(n,p?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??Rm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??vV(o.multiline?.wrapTextInCells),headerLineClamp:vV(o.multiline?.wrapTextInHeaders),border:pV(n,h?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?Rm.DARK_MODE_BORDER:Rm.BORDER_MEDIUM),divider:pV(n,h?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??Rm.BORDER_HEAVY,hoverColors:{color:pV(n,m?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:pV(n,m?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:pV(n,h?.zebraStripes?.color?.odd),background:pV(n,h?.zebraStripes?.background?.odd)},even:{color:pV(n,h?.zebraStripes?.color?.even),background:pV(n,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===pV(n,x?.background),overrideDimNullValueColor:void 0===pV(n,x?.fontColor),overrideMeasNullValueBackground:void 0===pV(n,p?.background),overrideMeasNullValueColor:void 0===pV(n,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:Im(n),contentStaticLineCount:y}}),SV=Kg(e=>{const t=e(xV);return Math.max(TH(t.header.fontSize)+8,32)}),wV=Kg(e=>{const t=e(xV),r=TH(t.totalRow.fontSize);return Math.max(r+9,24)}),CV=Kg(e=>{const t=e(xV),r=e(kb),n=e(Pb);return Math.max(r>0?TH(t.dimension.values.fontSize):0,n>0?TH(t.measure.values.fontSize):0)}),EV=Kg(e=>{const t=e(xV),r=e(CV),n=(t.contentStaticLineCount||1)*r;return Math.max(n+9,24)}),RV=Kg(e=>{const t=e(xV),r=TH(t.subTotalRow.fontSize),n=(t.contentStaticLineCount||1)*r;return Math.max(n+9,24)}),AV=(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:c},label:u,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(ag.PixelsMax,Math.max(ag.PixelsMin,f)),i-=n[a]};switch(s){case sg.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?ag.PixelsDefault:+e)(l),h();break;case sg.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?ag.PercentageDefault:+e)(c)/100*t,h();break;case sg.FitToContent:e.representation?.type===lF.Image?o.push(a):(f=r(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case sg.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(ag.AutoMinTable,e)})}return n},IV=Kg(e=>{const t=e(xV),r=e(nV).totalsPosition,n=e(qb),{measureText:o}=e(B$({...t.header,fontWeight:dH})),{measureText:i}=e(B$({...t.totalRow,fontWeight:dH})),{estimateWidth:a}=e(B$(t.dimension.values)),{estimateWidth:s}=e(B$(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,c,u,d,p)=>{let f;if(n){const t=4;let r=25;r+=t+24,c&&(r+=20+t),u&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=wH),t+=wH,t+=wH,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),kV=Kg(null),PV=Kg(e=>{const t=e(nV),r=e(ov).width,n=e(MH),o=e(IV);return AV(t.columns,r-n,o)}),DV=Kg(e=>e(kV)??e(PV),(e,t,r)=>{t(kV,r)}),MV=cA(e=>{const t=e(W$);!1===e(PH)&&t.emit("done-adjusting-column-width")}),TV=cA((e,t)=>{e(Rb),t(kV,null)}),qV=Kg(e=>e(DV).reduce((e,t)=>e+t,0)),OV=({children:e})=>(ab(TV),ab(MV),e);function LV(e){const t=wm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),vc({...t,direction:e})}const NV={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},jV={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},_V=_c("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":{...NV},"&::-moz-range-track":{...NV},"&::-ms-track":{...NV},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...jV},"&::-moz-range-thumb":{...jV},"&::-ms-thumb":{...jV},"&: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"}})),zV=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:u,direction:d="ltr"})=>{const p=Jm({translator:u.translator}),f=k({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!c,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}};Ym(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,ag.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:sg.Pixels,pixels:f.current.columnWidth};a(e)}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=>{Tm(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=>{Tm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===og.Left||e.key===og.Right){Tm(e);const t=5,r=e.key===og.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===og.Space||e.key===og.Enter?(Tm(e),s(e),l?.(!1),x()):e.key===og.Esc&&(Tm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return nr.jsx(_V,{style:b,hoverColor:o,isLastColumn:r,className:ig,"data-testid":ig,onMouseDown:e=>{Tm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:sg.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Tm(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":A,"aria-valuemin":ag.PixelsMin,"aria-valuemax":ag.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},FV=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),$V=({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},HV=_c(Pd,{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"})),BV=_c(FV,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),VV=_c(Wf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),WV=_c(Cp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),UV=_c(Xf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),GV=_c(Xf,{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"})),KV=_c("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"})),YV=_c("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),XV=_c(Wu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),JV=_c(vf,{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})),ZV=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),QV=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?QV(t):t:e.parentElement?.children?.[0]},eW=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?eW(t):t},tW=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===og.Down||t===og.Up){const r=e=>t===og.Down?QV(e):eW(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},rW=(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 nW={};const oW=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:u})=>{const[d,p]=I(!1),f=S.useRef(null),h=q(e=>{e.stopPropagation(),p(!1)},[p]);return nr.jsxs(nr.Fragment,{children:[nr.jsxs(GV,{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),nW={}),a?.length&&(p(!0),nW[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:tW,children:[l?nr.jsx(KV,{direction:c,isPagination:u}):null,nr.jsxs(YV,{children:[nr.jsx(JV,{direction:c,isPagination:u,children:nr.jsx(o,{})}),nr.jsx(XV,{variant:"body2",children:n})]}),a?.length?nr.jsx(ZV,{}):null]},t),a?.length?nr.jsx(lW,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:rW(a,nW),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},iW=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&nr.jsx(UV,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>nr.jsx(oW,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),aW=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[iW({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?nr.jsx(WV,{"data-testid":"group-divider",variant:"middle"}):void 0]),sW={appear:0,enter:0,exit:0},lW=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?nr.jsx(VV,{className:tg,open:t,anchorEl:e,onClose:r,transitionDuration:sW,MenuListProps:{id:rg},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:aW({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,cW=({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]),uW=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),dW=(e,t)=>e.some(e=>t[e]>0),pW={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},fW=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=I(null),[a,s]=I(pW);return Ym(()=>{e||(s(pW),i(null))},[e]),M(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=uW(t,r),c=await n.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:dW(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:dW(["qSelected"],e),canSelectPossible:dW(["qOption"],e),canSelectAlternative:dW(["qAlternative"],e),canSelectExcluded:dW(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},hW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),mW=_((e,t)=>nr.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:nr.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"})})),gW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),bW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),vW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),yW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),xW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),SW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),wW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),CW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),EW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),RW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),AW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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 IW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const kW="/qListObjectDef",PW=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[IW.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:hW,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:bW,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:xW,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Iz,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[IW.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:SW,enabled:!0}]}]),!e.isLocked&&r[IW.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:AW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(kW))},icon:wW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(kW))},icon:RW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(kW))},icon:CW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(kW))},icon:EW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(kW))},icon:mW,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:yW,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:vW,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[IW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),u?.(c)},icon:gW,enabled:!0}]}]),f},DW=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:u,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=Zm})=>{const v=k(null),y=Jm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=fW({open:e,headerData:n,app:C,qStateName:u?.qStateName}),A=$V({model:f,headerData:n}),I=cW({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),P=q(e=>{e.stopPropagation(),t(!1)},[t]),D=q(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?nr.jsxs(HV,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:eg,onClick:!1===g?D:void 0,ref:v,isAccessibleHeader:g,children:[s?nr.jsx(BV,{height:b,className:Qm,"data-testid":Qm,isInteractionsActive:i.active??!1,children:nr.jsx(FV,{})}):null,nr.jsx(lW,{open:e,anchorEl:!1===g?v.current:r.current,onClose:P,menuGroups:PW({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},MW=e=>e.isDark?{background:e.color,borderColor:Rm.DARK_MODE_BORDER,color:Rm.DARK_MODE_TEXT,disabledColor:Rm.DARK_MODE_DISABLED,iconColor:Rm.DARK_MODE_TEXT}:{background:e.color,borderColor:Rm.BORDER_MEDIUM,color:Rm.TEXT,disabledColor:Rm.DISABLED},TW=_c(Pd,{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}`})),qW=_c(Dh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),OW=_c(zd,{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)})),LW=_c(Wu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),NW=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A(()=>MW(n.background),[n]);if(!r.active)return null;const a=o?nr.jsx(TW,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},jW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),_W=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),zW=P({}),FW=()=>O(zW),$W=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(u)?0:-1,v=A(()=>MW(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=Jm({translator:d}),S=A(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,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,c,u,x,p,f,h,m,v,b,y,g]);return nr.jsx(zW.Provider,{value:S,children:e})},HW=({disabledCondition:e,pageNumber:t,type:r,footerStyle:n,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:n,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${r}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let BW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),VW=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 WW=()=>{const{direction:e,pageInfo:t,width:r,interactions:n,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=FW(),c=0===t.page,u=HW({type:BW.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:n,tabIndex:l});return r<=(o?.firstPage||VW.FirstPage)?null:nr.jsx(OW,{...u,disabled:!n.active,children:"rtl"===e?nr.jsx(_W,{height:Zm}):nr.jsx(jW,{height:Zm})})},UW=(e,t,r=!1)=>{r&&e.key===og.Tab&&!e.shiftKey&&(Tm(e),Mm(e.target,t,!1))},GW=()=>{const{direction:e,pageInfo:t,keyboard:r,totalPages:n,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:c,translator:u,tabIndex:d}=FW(),p=t.page>=n-1,f=HW({type:BW.LastPage,disabledCondition:p,pageNumber:n-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=r.enabled?e=>{UW(e,r,o)}:void 0;return i<=(s?.lastPage||VW.LastPage)?null:nr.jsx(OW,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?nr.jsx(jW,{height:Zm}):nr.jsx(_W,{height:Zm})})},KW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),YW=()=>{const{direction:e,pageInfo:t,keyboard:r,totalPages:n,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=FW(),d=t.page>=n-1,p=HW({type:BW.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>VW.FirstPage&&i>VW.LastPage)&&r.enabled?e=>{UW(e,r,o)}:void 0;return nr.jsx(OW,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?nr.jsx(KW,{height:Zm}):nr.jsx(ZV,{height:Zm})})},XW=()=>{const{direction:e,pageInfo:t,interactions:r,footerStyle:n,handleChangePage:o,translator:i,tabIndex:a}=FW(),s=0===t.page,l=HW({type:BW.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:n,handleChangePage:o,translator:i,interactions:r,tabIndex:a});return nr.jsx(OW,{...l,disabled:!r.active,children:"rtl"===e?nr.jsx(ZV,{height:Zm}):nr.jsx(KW,{height:Zm})})},JW=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=FW(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||VW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return nr.jsx(LW,{variant:"caption",dir:"ltr",children:s})},ZW=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=FW(),c=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${c}`,f={tabIndex:s,id:`${d}-${c}`,"data-testid":d,"aria-labelledby":p};return nr.jsxs(nr.Fragment,{children:[nr.jsxs(LW,{variant:"caption",id:p,children:[u,":"]}),nr.jsx(qW,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},QW=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=FW();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||VW.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=nr.jsx(nr.Fragment,{children:e.rowsPerPageOptions.map(e=>nr.jsx("option",{value:e,children:e},e))});return nr.jsx(ZW,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},eU=1e3,tU="…",rU=({totalPages:e,page:t})=>{const r=Math.min(e,eU),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-eU):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return nr.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(nr.jsx("option",{value:tU,disabled:!0,children:tU},"startMoreOptions")),o<e-1&&a.push(nr.jsx("option",{value:tU,disabled:!0,children:tU},"endMoreOptions")),nr.jsx(nr.Fragment,{children:a})},nU=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=FW(),{page:i}=e;if(t<=(o?.selectPage||VW.SelectPage))return null;const a=nr.jsx(rU,{totalPages:r,page:i});return nr.jsx(ZW,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var oU=j(e=>nr.jsxs($W,{...e,children:[nr.jsx(QW,{}),nr.jsx(nU,{}),nr.jsx(JW,{}),nr.jsx(WW,{}),nr.jsx(XW,{}),nr.jsx(YW,{}),nr.jsx(GW,{})]}));const iU=e=>nr.jsx(NW,{...e,children:nr.jsx(oU,{...e})}),aU=(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"]})},sU=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},lU=e=>e.ctrlKey||e.metaKey,cU=e=>e.shiftKey&&lU(e),uU=e=>[og.Left,og.Right,og.Up,og.Down].includes(e),dU=e=>e.shiftKey&&uU(e.key),pU=e=>(e=>uU(e)||[og.Home,og.End,og.PageUp,og.PageDown].includes(e))(e.key)&&!cU(e),fU=(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),aU(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})},hU=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:c}=t;if(!(a||"key"in c&&dU(c)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const u=((e,t,r,n,o)=>{if(!r.isSelectable)return t;const i=new Map(t);if("key"in n&&dU(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===og.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return o.isSelectable&&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];r.isSelectable&&i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,c,a);return aU(l,n,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},mU=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}},gU=(e,t)=>{switch(t.type){case G$.Select:return fU(e,t.payload);case G$.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 G$.SelectMouseUp:return((e,t)=>mU(e.isSelectMultiValues||e.firstCell!==t.cell?e:fU(e,t)))(e,t.payload);case G$.SelectMultiAdd:return hU(e,t.payload);case G$.SelectMultiEnd:return mU(e);case G$.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case G$.Clear:return e.rows.size?{...e,rows:new Map}:e;case G$.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},bU=Kg(e=>{const t=e(Nb);return function(e,t){return Kg(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(nV).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},gU)}),vU=Kg(e=>e(e(bU)),(e,t,r)=>{t(e(bU),r)}),yU=hI(e=>Kg(t=>{const{colIdx:r,rows:n,api:o}=t(vU);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?U$.Disabled:n.has(e.qElemNumber)?U$.Selected:U$.Possible:U$.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),xU=Kg(e=>{const t=e(qV),r=e(ov).width,n=e(MH);return t>0&&t+n<r}),SU=()=>{const[e,t]=I(!1);return dj({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?nr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},wU=(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}),CU=Kg(e=>{const t=e(kb),r=e(ev);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,c=o?i:i-t,u=await r.getEffectiveProperties(),d=u.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=u.qHyperCubeDef.qMeasures.at(c)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${c}/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"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),r.applyPatches(p,!0)}}),EU=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},RU=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),AU=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),IU=e=>e.atTop?2:1,kU=(e,t)=>({top:e?IU(t):0,bottom:e&&t.atBottom?1:0}),PU=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],DU=e=>e?.setAttribute("tabIndex","0"),MU=e=>e?.setAttribute("tabIndex","-1"),TU=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(MU)},qU=e=>{e?.focus(),DU(e)},OU=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${ig}`);qU(t)},0)},LU=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{TU(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[c,u]=r;switch(e.key){case og.Down:c<s&&c++;break;case og.Up:c>a&&c--;break;case og.Right:if(i)break;[c,u]="rtl"===n?RU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):AU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case og.Left:if(i)break;[c,u]="rtl"===n?AU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):RU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case og.Home:(lU(e)||i)&&(c=a),i||(u=0);break;case og.End:(lU(e)||i)&&(c=s),i||(u=l);break;case og.PageDown:c=Math.min(s,c+10);break;case og.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,r,i,o),s=PU(t,a);return qU(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}},NU=(e,t,r,n)=>{TU(t),r(e),n.enabled&&!n.active?n.focus?.():qU(PU(t,e))},jU=(e,t,r)=>{const n=e.currentTarget;if(!n)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${tg}`))return;const i=!!o&&n.contains(o);!r.enabled||t.current||i||(e=>{const t=e.querySelector(`.${Y$.First}`),r=e.querySelector(`.${Y$.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),((e,t,r)=>{const n=e.currentTarget;if(!r.enabled||t.current||!n)return;const o=e.relatedTarget??document.activeElement;o&&n.contains(o)||r.blur?.(!1)})(e,t,r)},_U=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),zU=_c(Kh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...fH,...e,cursor:t.active?"pointer":"default",background:n,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}})),FU=_c("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:uH,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),$U=parseInt(uH,10)/2,HU=_c("div")({position:"absolute",bottom:-$U,left:`calc(50% - ${$U}px)`}),BU=_c(um)({position:"sticky",top:0,zIndex:1}),VU={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},WU=_c(Pd)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),UU=_c("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isDual"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1,isDual:o=!1})=>n&&!o||1===e&&!t?{...VU,whiteSpace:"nowrap",display:r?"block":void 0}:{...VU,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),GU=_c("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),KU="cell-text",YU=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=ab(xV);return o?nr.jsx(UU,{"data-testid":KU,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):nr.jsx(UU,{"data-testid":KU,ref:t,className:"sn-table-cell-text",isDual:i,isNumeric:r,lineClamp:a??s.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},XU=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=ab(Db),l=ab(CU),c=ab(Ub),u=ab(_b),d=ab(db),p=ab(cv),f=ab(cb),h=ab(DV)[t.pageColIdx],m=ab(Qb),g=k(null),b=k(null),v=(({column:e,columnWidth:t})=>{const r=ab(xV),{measureText:n}=Bm({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:dH});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,c=t-25,u=s?20:0,d=l?20:0;let p=n(e.label);return s&&p+u<=c&&(a=!0,p+=u,l&&p+d<=c&&(i=!0,p+=d)),!s&&l&&p+d<=c&&(i=!0,p+=d),p+24<=c&&(o=!0),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?nr.jsx(hW,{height:uH,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(bW,{height:uH,"data-testid":"head-cell-sort-descending-icon"}),a=r?nr.jsx(FU,{align:t,dir:o,children:i}):void 0,s=n?nr.jsx(AH,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:nr.jsx(_U,{height:uH,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return nr.jsxs(RH,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:vH(t,i,c),children:[S,nr.jsxs(EH,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,nr.jsx(YU,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?nr.jsxs(nr.Fragment,{children:[nr.jsx(DW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[IW.Sorting]:!0,[IW.Searching]:!0,[IW.Selections]:!0,[IW.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:u,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:OU},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),nr.jsx(CH,{ref:b,direction:c,isPagination:i}),nr.jsx(CH,{ref:g,direction:c})]}):null]})},JU=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),ZU=(e,t)=>e.isCyclic&&t,QU=({column:e})=>{const t=ab(xV),r=ab(Ub),n=ab(Qb),o=S.useRef(null),[i,a]=S.useState(!1),s=$V({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return nr.jsxs(nr.Fragment,{children:[nr.jsx(kH,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:nr.jsx(JU,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),nr.jsx(lW,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:Iz,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},eG=e=>e.isLocked,tG=({column:e})=>{const t=ab(cb),r=ab(Db),n=ab(Cb),o=ab(xV);return nr.jsx(kH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,onClick:o=>{o.stopPropagation(),(async(e,t,r,n={warn:()=>{},error:()=>{}})=>{const o=uW(t??"$",r);let i;try{const t=await(e?.createSessionObject(o));i=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){n.error({msg:"Failed to unlock field from table header",payload:e})}finally{i&&(await(e?.destroySessionObject(i))||n.error({msg:"Failed to destroy session object when unlocking field from table header"}))}})(t,r,e,n)},children:nr.jsx(_U,{height:16,"data-testid":"head-cell-lock-icon"})})},rG=({column:e,menuIconRef:t,open:r,setOpen:n})=>{const o=ab(xV);return nr.jsx(kH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:r,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),n(e=>!e)},ref:t,children:nr.jsx(FV,{height:16})})},nG=({anchorRef:e,column:t,isPagination:r,listboxRef:n,open:o,setOpen:i})=>{const a=ab(cb),s=ab(Ub),l=ab(db),c=ab(_b),u=ab(Qb),d=ab(Db),p=ab(cv),f=ab(CU);return nr.jsx(DW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[IW.Sorting]:!0,[IW.Searching]:!0,[IW.Selections]:!0,[IW.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),f?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:n},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:OU},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:r})},oG=Kg();oG.onMount=e=>{const t=new Map,r=new ResizeObserver(e=>{for(const r of e){const e=t.get(r.target);e&&e.current(r)}});return e({callbacks:t,observer:r}),()=>{t.clear(),r.disconnect()}};const iG=({ref:e,callback:t})=>{const r=ab(oG),n=k(t);n.current=t,L(()=>{const t=e.current;return void 0===r?()=>{}:(t&&(r.callbacks.set(t,n),r.observer.observe(t)),()=>{t&&(r.callbacks.delete(t),r.observer.unobserve(t))})},[e,n,r])},aG=_c(Pd)({display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",boxSizing:"border-box"}),sG=({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.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 iG({ref:t,callback:i}),nr.jsx(aG,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},lG=({children:e})=>e,cG=(e,t)=>!e.isLocked&&e.isDim&&t,uG=({column:e,open:t,setOpen:r})=>{const n=ab(xV),o=ab(Db),i=ab(Ub),a=ab(db);ab(cb);const s=S.useRef(null),l=q(()=>{r(!1)},[r]),c=cW({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return nr.jsx(kH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:nr.jsx(SW,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},dG=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),pG=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),fG=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?nr.jsx(pG,{height:uH,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(dG,{height:uH,"data-testid":"head-cell-sort-descending-icon"});return r?nr.jsx(HU,{children:n}):void 0},hG=0,mG=1,gG=2,bG=3,vG=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=ab(xV),c=ab(Ub),{measureText:u}=Bm(l.header),[d,p]=I(!1),f=k(null),h=k(null),m=k(null),g="number"==typeof a&&a>ag.PixelsMin+18;return nr.jsxs(nr.Fragment,{children:[nr.jsxs(sG,{children:[nr.jsx(lG,{prio:gG,minWidth:wH,children:eG(t)?nr.jsx(tG,{column:t}):null},"Lock"),nr.jsx(lG,{prio:mG,minWidth:wH,children:ZU(t,s)?nr.jsx(QU,{column:t}):null},"Cyclic"),nr.jsx(lG,{ignore:!0,children:nr.jsx(fG,{column:t})},"Sort"),nr.jsx(lG,{minWidth:u(t.label)+8,children:nr.jsx(IH,{justifyContent:t.headTextAlign,children:nr.jsx(YU,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),nr.jsx(lG,{prio:g?void 0:hG,minWidth:wH,children:d||cG(t,s)?nr.jsx(uG,{open:d,setOpen:p,column:t}):null},"Search"),nr.jsx(lG,{prio:bG,minWidth:wH,children:s?nr.jsx(rG,{menuIconRef:m,column:t,open:r,setOpen:n}):null},"Menu")]}),s?nr.jsxs(nr.Fragment,{children:[nr.jsx(CH,{ref:h,direction:c,isPagination:o}),nr.jsx(CH,{ref:f,direction:c}),nr.jsx(nG,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:r,setOpen:n})]}):null]})},yG=_c("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:r})=>({...t,background:e,color:r})),xG=()=>{},SG=({column:e,isPagination:t})=>{const r=ab(xV),n=ab(Ub),o=ab(xU),i=ab(oV),a=!1,s=ab(qb)?XU:vG;return nr.jsx(yG,{className:"sn-table-cell",applicableStyle:{...r.header,...wU(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:xH(n,a,o),borderLeftWidth:SH(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:e.headerColor?.background??r.header.background,color:e.headerColor?.color??r.header.color,children:nr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:xG})})},wG=({isPagination:e})=>{const t=ab(iV),[r,n]=I();dj({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?nr.jsx(HN,{children:nr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:nr.jsx(SG,{column:o,isPagination:e})})}):null},CG=oA(Kg(async e=>{e(Rb);const t=e(ev);return t?.getEffectiveProperties()}),e=>e),EG=Kg(e=>e(CG)?.qHyperCubeDef),RG=[YL.configure({activationConstraints:[new WL.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],AG=gN.plugins.filter(e=>e!==CO),IG=(e,t,r)=>{const n=JSON.stringify(t),o=JSON.stringify(r);if(n!==o)return{qPath:e,qOp:"Replace",qValue:o}},kG=(e,t,r,n,o)=>{if(!e||!t||n===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:r,visibleColumnIds:n,sourceId:o,targetId:i})=>{const a=Qz({qDimensions:e,qMeasures:t}),s=[...e,...t],l=n.findIndex(e=>e===o),c=n.findIndex(e=>e===i);if(l<0||c<0||l===c)return;const u=((e,t,r)=>{const n=[...e],[o]=n.splice(t,1);return n.splice(r,0,o),n})(n,l,c),d=new Map(u.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const r=d.get(e.id),n=d.get(t.id);return void 0===r||void 0===n?0:r-n}),f=p.filter(e=>e.isDimension).map(e=>e.def),h=p.filter(e=>!e.isDimension).map(e=>e.def),m=[...f,...h],g=new Map(m.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:f,qMeasures:h,qInterColumnSortOrder:eF({previousColumns:s,nextColumns:m,qInterColumnSortOrder:r}),qColumnOrder:u.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:r.map(e=>e.id),sourceId:n,targetId:o});if(!i)return;const a=[IG("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),IG("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),IG("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),IG("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},PG=({children:e})=>{const t=ab(ev),r=ab(EG),n=ab(iV);return nr.jsx(zN,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&kG(t,r,n,o,i)},sensors:RG,plugins:AG,children:e})};function DG(e,t){const r=k(!1);M(()=>{r.current?e():r.current=!0},t)}const MG=(e,t)=>{const r=ab(Zb);M(()=>{const n=e.current;if(!n)return;const o=e=>{jU(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])},TG=Kg(X$),qG=hI(e=>Kg(t=>{const[r,n]=t(TG);return 0===r&&n===e})),OG=()=>{const e=ab(ub);M(()=>{e.notifyIsDoneRendering()})};var LG={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 NG=Kg(e=>{const t=e(cv),r=e(iv),n=e(Cb);let o;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(LG).forEach(t=>{e.add(LG[t])})}(t),({keys:e,politeness:i="polite"})=>{const a=e.map(e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)}).join(" "),s=r.querySelector(`.${Y$.First}`),l=r.querySelector(`.${Y$.Second}`);if(!s||!l)return void n.error({msg:"could not find aria-live elements, which means accessibility is not working properly"});let c;o===Y$.First?(c=l,o=Y$.Second):(c=s,o=Y$.First),c.innerHTML=c.innerHTML.endsWith(" ­")?a:`${a} ­`,c.setAttribute("aria-live",i)}}),jG=(e,t)=>{const r=ab(NG),n=ab(iv),o=ab(cV),i=ab(lV),a=ab(sV),s=ab(oV),[l,c]=lb(TG),u=ab(Lb),d=ab(Zb);DG(()=>{const t=((e,t,r=!1)=>{const n=[IU(t),e[1]];return r?n:X$})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(TU(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=PU(t,e);r.current?(qU(s),r.current=!1):DU(s),n&&(a({keys:[s?.textContent??""]}),sU(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:r})},[a.length,i,o,t])},_G=e=>{Tm(e),lU(e)&&fg(e.currentTarget)},zG=e=>{pU(e.evt)&&(Tm(e.evt),LU(e))},FG=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!pU(t))return;Tm(t);const i=((e,t)=>[e.pageRowIdx+IU(t),e.pageColIdx])(n,r),a=kU(o,r),{nextCell:s,nextCellCoord:l}=LU({...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:G$.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):sU(o,a,i)})({...e,nextCell:s})},$G=e=>{const{evt:t}=e;cU(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{Tm(e);const a=Math.ceil(t/r)-1;e.key===og.Right&&n<a?(o(),i(n+1)):e.key===og.Left&&n>0&&(o(),i(n-1))})(e):t.key===og.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(Tm(e),t.blur?.(!0))})(e):uU(t.key)&&Tm(t)},HG=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(U$.Disabled))return void Tm(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case og.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{Tm(e),t.isSelectable&&r&&n({type:G$.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case og.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{Tm(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case og.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(Tm(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case og.C:_G(t);break;case og.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(Tm(e),Mm(e.currentTarget,t,e.shiftKey))})(n);break;default:FG(n)}},BG=e=>{const t=ab(PH),r=sb(DH),n=sb(MH),o=ab(W$),i=k();iG({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.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()}}),M(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},VG=_c("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),WG=_c(Zh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),UG=_c(Nh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),GG=()=>nr.jsxs(nr.Fragment,{children:[nr.jsx(VG,{className:Y$.First,"data-testid":Y$.First,"aria-live":"polite","aria-atomic":"true"}),nr.jsx(VG,{className:Y$.Second,"data-testid":Y$.Second,"aria-live":"polite","aria-atomic":"true"})]}),KG=e=>{const t=k(new Map),r=k(null);M(()=>{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])},YG=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),XG=()=>KG(YG),JG=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=ab(Nb),n=ab(Zb),o=sb(vU);M(()=>{const i=()=>{o({type:G$.Reset})},a=()=>{o({type:G$.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}},[r,n,o,e,t])},ZG=e=>{e.stopPropagation()},QG=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:ZG,color:Rm.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),eK=({href:e,text:t,interactions:r,color:n})=>nr.jsx(Yp,{...QG({href:e,text:t,interactions:r,color:n}),children:t}),tK=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),rK=window.cancelIdleCallback??(e=>{clearTimeout(e)}),nK="qDimensionInfo/0",oK="qMeasureInfo/0",iK="x",aK="y",sK=e=>({key:"bars",type:"box",data:{extract:{field:nK,props:{start:0,end:{field:oK}}}},settings:{major:{scale:iK},minor:{scale:aK},box:{maxWidthPx:8,fill:{fn:e}}}}),lK=e=>({key:"p",type:"point",data:{extract:{field:nK,props:{y:{field:oK}}}},settings:{x:{scale:iK},y:{scale:aK},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),cK=({qNum:e})=>void 0===e?0:Math.sign(e),uK=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=Pm(e,t?.negative,r),a=Pm(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:nK,props:{start:0,end:{field:oK,value:cK}}}},settings:{major:{scale:iK},minor:{scale:aK},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}}}}},dK=(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=Pm(e,t?.main,o),l=Pm(e,t?.max,s),c=Pm(e,t?.min,s),u=Pm(e,t?.first,s),d=Pm(e,t?.last,s);return e=>{const t=aK in e.datum?aK:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?c:e.data.items.at(0)===e.datum?u:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[sK(a)];case"dots":return[lK(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:nK,props:{v:{field:oK}}}},settings:{coordinates:{major:{scale:iK},minor:{scale:aK,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Pm(e,n?.main,e.getDataColorSpecials().primary));return r?[t,lK(a)]:[t]}case"posNeg":return[uK(e,n)];default:return[]}},pK=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"}),fK=(e,t,r,n)=>({y:{data:{field:oK},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:nK}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),hK=U();hK.use(W),hK.renderer.prio(["canvas"]);const mK={resolve:()=>{},promise:{}},gK=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:c}=(e=>{const t=k(e.isDownloadedAsPDForImage?Lt():mK);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;c();r.current=tK(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:c}=n;return hK.chart({element:e,data:{type:"q",key:"qHyperCube",data:pK(s)},settings:{scales:fK(a,l,c,i),components:dK(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,c,r,n,o,a,i,l]),safeCancelIdleCallback:q(()=>{null!==r.current&&rK(r.current),r.current=null,l()},[r,l])}},bK=e=>{const t=k(null),r=k(!1);return q(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(rK(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=tK(()=>{e.current?.update()},{timeout:2e3})):r.current=!1:r.current=!0},[e])},vK=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),c=k(null),{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:d}=gK({element:s,chart:l,requestId:c,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]);M(()=>{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:u,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{M(()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null}),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=bK(t);M(()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}},[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},yK=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=vK({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return nr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},xK=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}`},SK=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},wK=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=ab(Ub),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=nr.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:r,objectFit:SK(s),objectPosition:xK(l),overflow:"hidden"}});return n?nr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?r:"100%",overflow:"hidden",display:"flex",justifyContent:c?mH(o,e):void 0},children:u}):u},CK=_((e,t)=>nr.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:nr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),EK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),RK=_((e,t)=>nr.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:[nr.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"}),nr.jsx("use",{fillRule:"evenodd"})]})),AK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),IK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),kK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),PK=_((e,t)=>nr.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:nr.jsx("path",{d:"M2 7.5h12v1H2z"})})),DK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),MK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),TK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),qK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),OK={m:_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":TK,R:pG,S:dG,T:_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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:_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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:MK,Q:kK,"è":_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),"¢":AK,"©":RK,"23F4":IK,2013:qK,"&":DK,add:CK,"minus-2":PK,dot:EK},LK=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&OK[t];return o&&nr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:nr.jsx(o,{style:{height:e}})})},NK=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=ab(xV),o=ab(Ub),i=ab(lv),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=sH(e,t,o,i),d=(e=>parseInt(e||uH,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=u||{};return l?nr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?p:void 0},children:["left"===h&&LK({size:d,iconKey:f,color:p}),nr.jsx(YU,{isNumeric:!0,children:a}),"right"===h&&LK({size:d,iconKey:f,color:p})]}):LK({size:d,iconKey:f,color:p})},jK=(e,t,r)=>e.contentStaticLineCount?t*(r??e.grid.contentLineClamp):t,_K=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=ab(xV),c=ab(CV),u=ab(ub),d=ab(Rb),p=ab(lv),f=ab(Ub),h=ab(_b),m=ab(Lb);if(t.representation.type===lF.Image&&!t.representation.url?.trim())return null;if(t.representation.type===lF.Image)return nr.jsx(wK,{representation:t.representation,textStyle:r,maxImageHeight:jK(l,c,o),wrapInContainer:!n});let g=t.representation.text;t.representation.type!==lF.Link||m||t.isNull||(g=nr.jsx(eK,{href:t.representation.url,text:t.representation.text,interactions:h,color:r.cellForegroundColor}));const b="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==lF.Indicator||Number.isNaN(b)?t.representation.type===lF.MiniChart&&t.representation.miniChart&&!t.isNull?nr.jsx(yK,{height:jK(l,c,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:u}):nr.jsx(YU,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:g}):nr.jsx(NK,{representation:t.representation,cellValue:b,paginationCellAlign:n?void 0:s})},zK=()=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:nr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),FK=_c("div")({"& path":{stroke:"none !important"}}),$K=({children:e,cellSelectionState:t,hideTickIcon:r})=>t!==U$.Selected||r?e:nr.jsxs(GU,{children:[e,nr.jsx(FK,{children:nr.jsx(zK,{})})]}),HK=e=>{const t=function(){const e=FN(),t=CN(()=>null==e?void 0:e.dragOperation.source,[e]),r=CN(()=>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},BK=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:G$.SelectMultiEnd})};r({type:G$.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:G$.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:G$.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),VK=e=>{const t=ab(uV),r=ab(oV),n=ab(NG),o=ab(iv),i=ab(Ub),a=sb(TG),s=sb(vU),l=ab(Zb),c=ab($b),u=ab(Nb),d=d=>{HG({evt:d,rootElement:o,selectionsAPI:u,cell:e,selectionDispatch:s,isSelectionsEnabled:c,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===og.Shift&&t({type:G$.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;NU([s,a],t,r,n)})(e,o,a,l,r)};if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=BK(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},WK=e=>{M(()=>()=>{yU.remove(e)},[e])},UK=(e,t,r,n)=>{if(!r.isNull)return e;const o=n?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=n?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=n?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},GK=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},KK=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return GK(t,e,n?"even":"odd")}return e},YK=(e,t)=>{const r=ab(xV),n=ab(yU(e)),o=ab(wb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");WK(e);let a=t.isDim?r.dimension.values:r.measure.values;a=KK(a,r,e),a=i?r.subTotalRow:a,a=UK(a,r,e,t.isDim);const s=e.isNull||i&&t.isDim?a:HH(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,r){return t===U$.Selected?{...e,...r}:t===U$.Disabled?{...e,background:`${lH}, ${e.background}`}:e}(s,n,r.selectedColors);return{cellStyle:{...l,borderColor:r.grid.border},representationStyle:s,cellSelectionState:n}},XK=_c(Bh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),JK=_c(um,{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}}})),ZK=_c(Kh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...fH,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),QK=_c(Kh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...fH,...e,fontWeight:dH,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})),eY=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=ab(Ub),a=ab(_b),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=VK(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=YK(e,t),m=HK(t.id);return nr.jsx(ZK,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${ng}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:nr.jsx($K,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:nr.jsx(_K,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:yH(i,e.align)})})})},tY=Kg(0),rY=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=ab(xV),i=ab(Fb),a=ab(tY),s=HK(e.id);return nr.jsx(QK,{totalsStyle:{...o.totalRow,...wU(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${ng}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:nr.jsx(YU,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},nY=()=>{const e=ab(oV),t=ab(iV),r=ab(sV),n=ab(iv),o=ab(zb),i=ab(Ub),a=sb(TG),s=ab(Lb),l=ab(Zb);return nr.jsx(um,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:r.length+1,c];return nr.jsx(rY,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case og.C:_G(r);break;case og.Space:r.preventDefault();break;default:zG(e)}else Tm(r)})({evt:e,rootElement:n,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{NU(u,n,a,l)}},t.id)})})};var oY=j(nY);const iY=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=ab(sV),n=ab(oV),o=ab(iV),i=ab(xV),a=ab(EV),s=ab(RV),l=ab(Rb),c=!!_H(l)?.content?.hoverEffect;JG({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=q(t=>new IntersectionObserver(e=>{e.forEach(e=>{const r=t.get(e.target);r?.(e)})},{root:e.current}),[e]);return KG(t)})(t),d=XG();return nr.jsxs(XK,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?nr.jsx(oY,{}):void 0,r.map((e,t)=>{const r=e.at(0)?.isTotalRow??!1;return nr.jsx(JK,{hoverColors:i.grid.hoverColors,hover:c,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:r?s:a,children:o.map((t,r)=>{const{id:n}=t,o=e[r];return nr.jsx(eY,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},n)})},`row-${t}`)}),n.atBottom?nr.jsx(oY,{}):void 0]})};var aY=j(iY);const sY=(e,t)=>!!e?.skipHeader||!!t.hideHeader,lY=Kg(e=>{const t=e(Rb),r=e(Qb);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}}),cY=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=ab(lY),s=ab(Ub),l=ab(zb),c=ab(cv),[u,d]=lb(DV);if(!l)return null;return nr.jsx(zV,{columnWidth:u.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...u];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{MU(e);const t=e.closest(".sn-table-cell");qU(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},uY=e=>e.target?.getAttribute("class")?.includes(ig),dY=({isInteractionEnabled:e,column:t})=>{const[r,n]=I(!1),o=ab(CU),i=ab(PH);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||uY(t)||i||n(!0)},toggleSortOrder:r=>{e&&!uY(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var pY=class extends UM{constructor(e,t){super(e,t),this.boundingRectangle=YI(null),this.destroy=ik(()=>{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=aT(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,c=o.center.y-a/2,u=function(e,t,r){const n=Aj({},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 RP(l,c,s,a),r,n);return u}};pY.configure=uD(pY);const fY=({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/EP.distance(r.shape.center,s),type:xM.Collision,priority:yM.Normal}:null},hY=[pY.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],mY=(e,t)=>{const r=ab(Ub),n=!ab(Bb);return V_({id:e.id,disabled:n,index:t,type:"item",accept:"item",group:"column",modifiers:hY,data:e,plugins:e=>[...e,mL.configure({feedback:"clone"})],collisionDetector:fY({invert:"rtl"===r})})},gY=({column:e,columnIndex:t,columnsLength:r})=>{const n=ab(xV),o=ab(iv),i=ab(Ub),a=ab(_b),s=ab(iV),l=ab(oV),c=ab(DV)[t],u=sb(TG),d=ab(qG(t)),p=ab(Bb),f=ab(Zb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=dY({isInteractionEnabled:p,column:e}),v=sb(PH),{ref:y,isDragging:x}=mY(e,t),S=HK(e.id),w=ab(qb),C=w?XU:vG,E=e.isActivelySorted?K$[e.sortDirection]:void 0,R=h?rg:void 0,A=h?"true":void 0,I=t===r-1,k=[0,e.pageColIdx],P={width:c,zIndex:s.length-t},D=d&&0===t&&!f.enabled&&p?0:-1;return nr.jsxs(zU,{"data-dragging":x,ref:y,headerStyle:{...n.header,...wU(n,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground:e.headerColor?.background??n.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,color:e.headerColor?.color??n.header.color,interactions:a,style:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${ng}`,tabIndex:D,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case og.C:_G(r);break;case og.Enter:case og.Space:n?.(r);break;default:zG(e)}else Tm(r)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&NU(r,t,n,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[nr.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),nr.jsx(cY,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},bY=()=>{const e=ab(iV),t=ab(xV),r=ab(Rb),n=ab(Kb),o=sb(tY),i=ab(DV),a=k(null),s=sY(n,r);return M(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),nr.jsx(om,{style:{visibility:s?"collapse":void 0},children:nr.jsx(BU,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,r)=>nr.jsx(gY,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var vY=j(bY);var yY=j(()=>{const e=ab(NG),[t,r]=lb(YB),{page:n,rowsPerPage:o}=t,i=ab(Gb),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=ab(nV),p=ab(xV),f=ab(TB),h=ab(Rb),m=ab(lv),g=ab(ov),b=ab(iv),v=ab(Kb),y=ab(Ub),x=ab(_b),S=ab(cv),w=ab(xU),C=sb(vU),E=ab(Lb),R=ab(Zb),A=k(!1),I=k(null),P=k(null),D=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=Vb(h,v),O=T?f.scrollLeft??0:0,L=T?f.rowPartialHeight??0:0,N=q(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=q(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),_=q(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return(e=>{const t=ab(Ub),r=ab(TB);M(()=>{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,{scrollLeft:o}=r;let i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&e.preventDefault()})(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])})(I),MG(P,A),(()=>{const e=ab(iv),t=ab(Zb),r=ab(TG);Ym(()=>{const n=PU(e,r);t.active?qU(n):(n?.blur(),TU(e))},[t.active,e])})(),jG(A,n),M(()=>{const e=I.current;e&&(e.scrollLeft=O,e.scrollTop=L)},[t,s,O,L]),DG(()=>{C({type:G$.UpdatePageRows,payload:{pageRows:u}})},[u]),OG(),BG(I),nr.jsxs(PG,{children:[nr.jsxs(WU,{ref:P,dir:y,onKeyDown:e=>{$G({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[nr.jsx(GG,{}),nr.jsxs(WG,{ref:I,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[nr.jsxs(UG,{stickyHeader:!0,"aria-label":D,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[nr.jsx(vY,{}),nr.jsx(aY,{updateShouldRefocus:N,tableWrapperRef:P})]}),nr.jsx(SU,{})]}),nr.jsx(iU,{footerContainer:i,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),nr.jsx(wG,{isPagination:!0})]})});const xY=Kg(0),SY=Kg(e=>{const t=e(Ab);return Math.min(BH,t)}),wY=Kg(e=>{const t=e(Ab);return t===BH?0:Math.floor(t/BH)}),CY=Kg(e=>{const t=e(xY),r=e(wY);return Math.min(t,r)}),EY=Kg(e=>({page:e(CY),rowsPerPage:e(SY),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(wY);t(xY,Math.max(0,Math.min(r,n)))}),RY=Kg(null),AY=Kg(null),IY=Kg(e=>{const t=e(EY),r=e(Ab);return Math.min(t.rowsPerPage,r-t.page*t.rowsPerPage)}),kY=Kg(null),PY=Kg(null),DY=Kg(e=>e(oV).atTop?2:1),MY=Kg(e=>e(oV).atTop?1:e(DY)+e(IY)),TY=Kg(e=>kU(Boolean(e(Lb)),e(oV))),qY=Kg(e=>({firstBodyRowIdx:e(DY),totalsRowIdx:e(MY),allowedRows:e(TY)})),OY=Kg(e=>({rootElement:e(iv),totalsPosition:e(oV),rowCount:e(IY),colCount:e(aV),columnWidths:e(DV)})),LY=Kg(e=>({scrollToCell:e(kY),scrollableContainerElement:e(PY)})),NY=Kg(e=>({keyboard:e(Zb),isInSelectionMode:e(Lb),selectionsAPI:e(Nb),isSelectionsEnabled:e($b)})),jY=Kg(e=>({direction:e(Ub),isInteractionEnabled:e(Bb),paginationNeeded:e(uV),announce:e(NG),shouldRefocusRef:e(RY)})),_Y=10,zY=e=>e.atTop?2:1,FY=(e,[t,r],n,o)=>{const i=zY(n);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${r}"]`);if(n.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${r}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${r}"]`):e.querySelector(`.sn-table-totals-row [data-col="${r}"]`)},$Y=(e,t,r,n,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=r,d=c-zY(n),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,u),m=requestAnimationFrame(()=>{if(g())return;const e=((e,t)=>{if(!e||!t)return!1;const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom&&r.left>=n.left&&r.right<=n.right})(FY(t,r,n,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},HY=(e,t,r,n,o,i)=>e<i?[t,e+1]:t<n?[t+1,o]:[t,e],BY=(e,t,r,n,o,i)=>e>o?[t,e-1]:t>r?[t-1,i]:[t,e],VY=(e,[t,r],n,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,c=a.top,u=n-1-a.bottom,d=o-1;switch(e.key){case og.Down:case og.Up:t=((e,t,r,n)=>e===og.Down&&t<n?t+1:e===og.Up&&t>r?t-1:t)(e.key,t,c,u);break;case og.Right:l||([t,r]=((e,t,r,n,o,i,a)=>"rtl"===a?BY(e,t,r,0,o,i):HY(e,t,0,n,o,i))(r,t,c,u,0,d,i));break;case og.Left:l||([t,r]=((e,t,r,n,o,i,a)=>"rtl"===a?HY(e,t,0,n,o,i):BY(e,t,r,0,o,i))(r,t,c,u,0,d,i));break;case og.Home:l?t=Math.max(c,t-_Y):(lU(e)&&(t=c),r=0);break;case og.End:l?t=Math.min(u,t+_Y):(lU(e)&&(t=u),r=d);break;case og.PageDown:t=Math.min(u,t+_Y);break;case og.PageUp:if(l)t=Math.max(c,t-_Y);else{const e=s?zY(s):1,r=t-e;t=r>0&&r<=_Y?e:Math.max(c,t-_Y)}}return[t,r]},WY=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},UY=[og.Home,og.End,og.PageUp,og.PageDown],GY=()=>{const e=k(!1),t=k(0),r=k(0),n=k(null),o=k(null),i=k(null),a=k(0),s=sb(TG),l=sb(vU),c=ab(wb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=ab(OY),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=ab(qY),{scrollToCell:v,scrollableContainerElement:y}=ab(LY),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=ab(NY),{direction:E,announce:R,isInteractionEnabled:I,paginationNeeded:P,shouldRefocusRef:D}=ab(jY),T=A(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let r=0;r<e.length;r++)t[r+1]=t[r]+(e[r]??0);return t})(h),[h]);M(()=>()=>{t.current+=1,r.current+=1,a.current+=1,n.current?.(),n.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const O=q((e,t,r,n)=>{const o=t=>{if(n&&!n())return void r?.(!1);const i=FY(u,e,d,p);if(i)return document.activeElement!==i&&EU(i),document.activeElement===i?void r?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void r?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):r?.(!1)};requestAnimationFrame(()=>{o(t)})},[u,d,p]),L=q((e,t)=>{const n=a.current+1;a.current=n;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==n)return;if(r.current!==t)return;if(u instanceof HTMLElement&&!u.isConnected)return;if(Date.now()>s||i>=5)return;const c=document.activeElement;c&&c!==document.body&&c!==document.documentElement||(i+=1,D&&(D.current=!0),o.current?.(),o.current=$Y(v,u,e,d,p,y,10,()=>a.current===n&&r.current===t,()=>{O(e,300,()=>{D&&(D.current=!1)},()=>a.current===n&&r.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[O,u,p,v,y,D,d]),N=q(()=>(D&&(D.current=!0),t.current+=1,t.current),[D]),j=q(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=q((e,r)=>{const n=o=>{t.current===e&&(i.current?.(),i.current=$Y(v,u,r,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=FY(u,r,d,p);i&&document.activeElement!==i&&EU(i),o>0?requestAnimationFrame(()=>{n(o-1)}):t.current===e&&D&&(D.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{n(300)})})},[u,d,p,v,D,y]),z=q((e,t)=>{if(!pU(e))return;Tm(e),j(),r.current+=1;const o=r.current;a.current+=1,n.current?.(),n.current=null;const i=((e,t)=>zY(t)+e+(t.atBottom?1:0))(p,d),l=VY(e,t,i,f,E,g,d);WY(u),s(l);const[,c]=l,[,h]=t;return c!==h&&((e,t,r)=>{if(!e)return;const n=t[r]??0,o=t[r+1]??n,{scrollLeft:i,clientWidth:a}=e;n<i?e.scrollLeft=n:o>i+a&&(e.scrollLeft=o-a)})(y,T,c),D&&(D.current=!0),n.current=$Y(v,u,l,d,p,y,10,()=>r.current===o,()=>{O(l,300,t=>{D&&(D.current=!1),t&&(e=>UY.includes(e))(e.key)&&L(l,o)},()=>r.current===o)}),l},[u,d,p,f,E,v,s,g,y,D,O,j,T,L]),F=q(e=>{e.key===og.Esc?x.enabled&&!S&&(Tm(e),x.blur?.(!0)):uU(e.key)&&Tm(e)},[x,S]),$=q((e,t,r)=>{switch(e.key){case og.C:Tm(e),I&&(e.ctrlKey||e.metaKey)&&fg(e.currentTarget);break;case og.Enter:case og.Space:if(!I){Tm(e);break}r?.(e);break;default:z(e,[0,t])}},[z,I]),H=q((t,n,o,i)=>{const a=[n+m,o];switch(t.key){case og.Space:if(Tm(t),i.isSelectable&&C){e.current=!0;const r=N();l({type:G$.Select,payload:{cell:i,evt:t,announce:R}}),_(r,a)}break;case og.Enter:if(Tm(t),e.current=!1,S){N(),s(X$),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),r.current+=1;const t=r.current;O(X$,300,()=>{D&&(D.current=!1)},()=>r.current===t)}break;case og.Esc:if(e.current=!1,S){Tm(t);const e=N();w?.cancel(),_(e,a)}break;case og.C:Tm(t),I&&(t.ctrlKey||t.metaKey)&&fg(t.currentTarget);break;case og.Tab:{const e=t.shiftKey||!P;x.enabled&&S&&e&&(Tm(t),Mm(t.currentTarget,x,t.shiftKey));break}default:{const r=t.key===og.Left||t.key===og.Right,n=S||Boolean(w?.isModal())||e.current;if(r&&n){Tm(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:G$.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,P,I,N,_,s,v,y,O,D]),B=q(t=>{t.key===og.Space&&(e.current=!1),t.key===og.Shift&&l({type:G$.SelectMultiEnd})},[l]),V=q((e,t)=>{if(S)Tm(e);else{if(e.key!==og.Space)return e.key===og.C?(Tm(e),void(I&&(e.ctrlKey||e.metaKey)&&fg(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,I]),W=q(e=>{j(),r.current+=1;const t=r.current;WY(u),s(e),x.enabled&&x.focus?.(),O(e,2,r=>{r&&L(e,t)},()=>r.current===t)},[u,s,x,O,j,L]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:q(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:q((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:q(e=>{c&&W([b,e])},[W,b,c])}};var KY=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function YY(e,t){return e===t||!(!KY(e)||!KY(t))}function XY(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!YY(e[r],t[r]))return!1;return!0}function JY(e,t){var r;void 0===t&&(t=XY);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}}var ZY="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function QY(e){cancelAnimationFrame(e.id)}function eX(e,t){var r=ZY();var n={id:requestAnimationFrame(function o(){ZY()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var tX=-1;function rX(e){if(void 0===e&&(e=!1),-1===tX||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),tX=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return tX}var nX=null;function oX(e){if(void 0===e&&(e=!1),null===nX||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?nX="positive-descending":(t.scrollLeft=1,nX=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),nX}return nX}var iX=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function aX(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=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,iu(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:iu(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=JY(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=JY(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,c=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&c),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:u(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=JY(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,c=i;if("rtl"===t)switch(oX()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,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&&QY(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=eX(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Yc(t,e),t.getDerivedStateFromProps=function(e,t){return sX(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,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=rX();void 0!==n&&(n=Math.max(0,Math.min(n,u-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?c(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(oX()){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&&QY(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,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?iX: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(),A=R[0],I=R[1],k=[];if(n>0&&g)for(var P=A;P<=I;P++)for(var D=C;D<=E;D++)k.push(w(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,D)}));var M=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:$r({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(c||u||"div",{children:k,ref:l,style:{height:M,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],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,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,c=l.horizontalScrollDirection,u=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=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?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,c=a.scrollTop,u=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);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 sX=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},lX=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},cX=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},uX=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 c=a+1;c<=r;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},dX=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?pX(e,t,r,i,0,n):fX(e,t,r,Math.max(0,i),n)},pX=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=uX(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},fX=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&uX(e,t,n,r).offset<o;)n+=a,a*=2;return pX(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},hX=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=uX(e,t,r,i),c="column"===e?cX(t,i):lX(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);default:return o>=d&&o<=u?o:d>u||o<d?d:u}},mX=aX({getColumnOffset:function(e,t,r){return uX("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return dX("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=uX("column",e,t,n),s=r+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=uX("column",e,c,n).size;return c},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:lX,getEstimatedTotalWidth:cX,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return hX("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return hX("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return uX("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return dX("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=uX("row",e,t,n),s=r+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=uX("row",e,c,n).size;return c},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}}),gX=function(e,t){return e};function bX(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,iu(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:iu(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=JY(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=JY(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,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[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;u[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=JY(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(oX()){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&&QY(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=eX(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Yc(t,e),t.getDerivedStateFromProps=function(e,t){return vX(e,t),u(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?rX():0:l.scrollHeight>l.clientHeight?rX():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(oX()){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&&QY(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,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?gX: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],A=[];if(c>0)for(var I=E;I<=R;I++)A.push(w(t,{data:u,key:p(I,u),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var k=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:$r({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"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 c=a(this.props,l,this._instanceProps),u=s(this.props,c,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,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var vX=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},yX=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 c=n(l);o[l]={offset:a,size:c},a+=c}r.lastMeasuredIndex=t}return o[t]},xX=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=yX(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},SX=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&yX(e,r,t).offset<n;)r+=i,i*=2;return xX(e,t,Math.min(r,o-1),Math.floor(r/2),n)},wX=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},CX=bX({getItemOffset:function(e,t,r){return yX(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:wX,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=yX(e,t,o),p=wX(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===r&&(r=n>=h-u&&n<=f+u?"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?xX(e,t,o,0,r):SX(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,c="horizontal"===o||"horizontal"===s?l:i,u=yX(e,t,n),d=r+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=yX(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 EX(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 RX=["style"],AX=["style"];function IX(e,t){var r=e.style,n=Hr(e,RX),o=t.style,i=Hr(t,AX);return!EX(r,o)&&!EX(n,i)}const kX=Kg(0),PX=Kg(0),DX=Kg(0),MX=Kg(e=>e(kX)+e(PX)),TX=Kg(e=>{const t=e(ov),r=e(uV),n=t.height-(r?41:0);return{width:t.width,height:n}}),qX=Kg(e=>{const t=e(TX),r=e(DH),n=e(MH);return{width:t.width-n,height:t.height-r}}),OX=Kg(e=>{const t=e(qX),r=e(MX),n=e(DX);return Math.min(t.height-r,n)}),LX=Kg(-1),NX=hI(e=>Kg(t=>t(LX)===e)),jX=({style:e})=>nr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var _X=S.memo(jX,IX);const zX=Kg(e=>{const t=e(qX),r=e(EV),n=e(MX),o=e(DX)+n,i=e(IY)*r+n;return o<2*t.height?o:i}),FX=Kg(e=>e(zX)<=e(TX).height),$X=()=>{},HX=e=>{e.preventDefault()};const BX=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:c,onKeyDown:u,onKeyUp:d,onCellClick:p}=n,f=ab(NX(t)),h=sb(LX),m=ab(xV),g=ab(Ub),b=ab(Fb),v=ab(Bb),y=ab(xU),x=ab(wb),S=ab(FX),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:A}=function(e){const t="object"==typeof e,r=ab($b),n=sb(vU),o=ab(yU(e));if(WK(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=BK(HX,e,n,$X);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),I=((e,t,r,n)=>{const o=k(null),i=r&&(!r.isNumeric||r.isDual),a=r?.isTotalRow??!1,s=q(r=>{const o=r.contentBoxSize.at(0)?.blockSize;o&&i&&n(o,e,t,a)},[a,t,n,e,i]);return iG({ref:o,callback:s}),o})(t,e,w,s),P=i[e]?.isDim?m.dimension.values:m.measure.values,D=HK(i[e].id);if("object"==typeof w){const n=((e,t,r,n,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS");let l=KK(o,i,e);l=s?i.subTotalRow:l,l=UK(l,i,e,t.isDim);const c=e.isNull||s&&t.isDim?l:HH(l,e.qAttrExps,t.qAttrExprInfoIDs);return n!==U$.Selected||s?n!==U$.Disabled||s?r?{...c,...i.grid.hoverColors}:c:{...c,color:r?i.grid.hoverColors?.color:c.color,background:`${lH}, ${r?i.grid.hoverColors?.background:c.background}`}:{...c,...i.selectedColors}})(w,i[e],a&&f,A,P,m,x),o={rowindex:t,columnindex:e},s=r=>{v&&p?.(t,e),C?.(r)},k=u?r=>{u(r,t,e,w)}:void 0;return nr.jsx("div",{className:`sn-table-cell ${A} ${ng}`,tabIndex:-1,style:{...r,...n,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:xH(g,w.isLastColumn,y),borderLeftWidth:SH(g,w.isLastColumn,y),justifyContent:gH(w,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:D},onMouseDown:s,onMouseUp:R,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:k,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:nr.jsx($K,{cellSelectionState:A,hideTickIcon:!!w.isTotalRow,children:nr.jsx(_K,{forwardRef:m.contentStaticLineCount||1===l?void 0:I,cell:w,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return nr.jsx(_X,{style:{...r,...P,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:D}})};var VX=j(BX,IX);const WX=oA(Kg(async e=>{const t=e(Rb),r=e(Qb),n=e(EY).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(BH,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),UX=Kg(e=>{const t=e(IY),r=e(qX),n=e(EV);return Math.min(t,Math.ceil(r.height/n))}),GX=Kg(e=>{const t=e(DV),r=e(qX);return t.reduce((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),KX=e=>{const t=k(e);return t.current=e,t},YX=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,XX=e=>-1===e.qElemNumber||!!e.qIsTotalCell,JX=(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},ZX=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},QX=(e,t,r,n,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,c)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,c)=>{const{qSize:u}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[],h=t.some(XX);return t.forEach((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w}=i[r],C=s.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),E=!m&&e.qIsNull,R=m&&WB(e,m),A=E||R?VB(m,e,a,C):e.qText,I=E?Q$(A):Z$(e),k=Z$(e)&&!Q$(e.qText??"");f[r]={id:Zz(),...e,align:$B(I,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h&&!R,isTotalRow:h,pageRowIdx:p,pageColIdx:r,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:r===u.qcx-1,isNumeric:I,isDual:k,isNull:(!E||!I)&&WB(e,m),representation:MB({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>A,direction:c,enabledFeatures:{[lF.Image]:!0,[lF.Indicator]:!0,[lF.MiniChart]:!0}})},l(f[r],d,r)}),{row:f,pageRowIdx:p}})(r,l,c,e.qArea,u,n,o,i,a,s);r[p]=d})})},eJ=({gridState:e,setEstimatedCellHeight:t})=>{const r=ab(Rb),n=ab(lv),o=ab(Qb),i=ab(Sb),a=ab(Ub),s=ab(EY),l=ab(WX),c=ab(iV),u=ab(IY),d=ab(UX),p=ab(GX),f=k([]),h=q((e,n)=>{const o=Array.isArray(n)?n.slice(0,u):(e=>Array(e).fill(void 0))(u);return QX(e,s,o,c,r,i,t,a),f.current=o,o},[u,s,c,r,i,t,a]),[m,g]=I(()=>h(l??[]));Ym(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const r=ab(Cb),n=k(new Set),o=k(new Set),i=k(new Set),a=KX(e),s=KX(t),l=A(()=>({enqueue:e=>{const t=YX(e);i.current.has(t)||(n.current.add(e),i.current.add(t),1===n.current.size&&setTimeout(async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),o.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 a.current(t);o.current.has(e)&&s.current(r)}catch(t){e.forEach(e=>{i.current.delete(YX(e))}),r.error({msg:"Failed to fetch pages",payload:t})}finally{o.current.delete(e)}}},75))},clear:()=>{n.current.clear(),o.current.clear(),i.current.clear()}}),[r,a,s]);return l})(e=>o&&"getHyperCubeData"in o?o.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(ZX(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}},[b]),y=q((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(JX(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};b.enqueue(t)}}},[b,s]);return M(()=>{if(void 0===l)return;const{qcx:t,qcy:n}=r.qHyperCube.qSize,o=e.current.overscanRowStartIndex,i=e.current.overscanColumnStartIndex,a=o+s.page*s.rowsPerPage,c=t-i,u=s.rowsPerPage-o,f=Math.min(100,c,t,p+5),h=Math.min(100,u,n,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,r,d,p,s,b,y,e,n]),{rowsInPage:m,loadRows:y,loadColumns:v}},tJ=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},rJ=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,nJ=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=ab(xV),i=ab(DV),{estimateLineCount:a}=Bm(o.dimension.values),s=TH(o.dimension.values.fontSize),l=e||t||1===r;return q((e,t,o)=>{if(l||e.representation.type===lF.Image||e.isNumeric&&!e.isDual)return;const c=(e=>Math.max(0,e-24-1))(i[o]),u=e.representation.text?a({text:e.representation.text,maxWidth:c,isNumeric:!1}):1,d=Math.min(r,Math.max(1,u));n(d*s,t,o,e.isTotalRow??!1)},[l,i,a,r,s,n])},oJ=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=ab(TB);L(()=>{const i=e?n:((e,t)=>{const r=0===t?0:e/t;return Math.ceil(r)})(r.sumHeight,r.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},iJ=({isSnapshot:e,gridRef:t})=>{const r=ab(xV),n=ab(IY),[o,i]=I(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=ab(CV),s=ab(EV),l=ab(RV),c=!!r.contentStaticLineCount,u=Math.max(8e6/n,s,l)-9,d=u+9,p=Math.max(1,Math.min(r.grid.contentLineClamp,Math.round(u/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:c});(({gridRef:e,setState:t})=>{const r=ab(Rb),n=ab(EY),o=ab(DV),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;Ym(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),Ym(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:r})=>{const n=ab(EV),o=ab(RV);return q((i,a,s,l=!1)=>{z(()=>{e(e=>{const c=l?o:n,u=Math.max(c,i+9),d=Math.min(t,u),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!rJ(p.get(s),d))return e;const f={...e},h=e.rowHeights.get(a);p.set(s,d);const m=void 0===h||d>=h?d:tJ(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,r.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,n,o,r])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>q((o,i,a,s)=>{e||t||1===r||n(o,i,a,s)},[e,t,r,n]))({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),g=nJ({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=q(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return oJ({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},aJ=(e,t)=>{L(()=>()=>{t(0)},[e,t]);const r=q(e=>{const r=e.contentBoxSize.at(0)?.blockSize;void 0!==r&&t(r)},[t]);iG({ref:e,callback:r})};let sJ=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const lJ=({loadRows:e,loadColumns:t,gridState:r})=>{const n=ab(TB),o=ab(Rb),i=ab(EY),a=ab(IY);return q(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:c,overscanRowStopIndex:u,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o,i;return o=n>t?sJ.Down:n<t?sJ.Up:sJ.None,i=r>e?sJ.Right:r<e?sJ.Left:sJ.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(r.current,s,c);if(r.current.overscanColumnStartIndex=s,r.current.overscanColumnStopIndex=l,r.current.overscanRowStartIndex=c,r.current.overscanRowStopIndex=u,c>a)return;const b=s,v=c+i.page*i.rowsPerPage,y=l-s+1,x=u-c+1;if(n.visibleLeft=d,n.visibleWidth=p-d+1,n.visibleTop=f+i.page*i.rowsPerPage,n.visibleHeight=h-f+1,n.page=i.page,n.rowsPerPage=i.rowsPerPage,m===sJ.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===sJ.Up){const t=x+25,r=i.page*i.rowsPerPage,n=Math.max(r,v-25);e(b,n,y,t)}if(g===sJ.Right){const e=o.qHyperCube.qSize.qcx-b,r=y+5,n=Math.min(e,r);t(b,v,n,x)}else if(g===sJ.Left){const e=Math.max(0,b-5),r=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,r,x)}},[r,a,i.page,i.rowsPerPage,n,e,o.qHyperCube.qSize.qcx,t])};const cJ=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},uJ=(e,t)=>{if(!e||!t)return;const r=e.scrollHeight-e.clientHeight,n=Math.round(r*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==n&&(e.scrollTop=n)},dJ={overflow:"hidden",willChange:"auto"},pJ=_((e,t)=>{const{handleBodyKeyDown:r,handleBodyKeyUp:n,focusBodyCellOnClick:o}=GY(),i=ab(iV),a=ab(qX),s=sb(DX),l=ab(OX),c=ab(TB),u=ab(Rb),d=ab(Ub),p=ab(DV),f=ab(IY),h=ab(PY),m=sb(kY),g=k(null),b=k(null),v=k(null),y=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=k(0),S=!!_H(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=iJ({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:I,loadRows:P,loadColumns:D}=eJ({gridState:y,setEstimatedCellHeight:C}),T=lJ({loadRows:P,loadColumns:D,gridState:y}),O=XG(),N=A(()=>({rowsInPage:I,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:O,onKeyDown:r,onKeyUp:n,onCellClick:o}),[I,i,S,R,w,O,r,n,o]);return L(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=sb(vU),{shouldRefocusRef:r}=ab(jY),n=ab(iv),o=ab(AY);M(()=>{t({type:G$.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=q(()=>{r&&(r.current=n.contains(document.activeElement))},[r,n]);JG({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(I),F(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(v.current?.clientHeight??l)-l,n=Math.round(r*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[v,l,f]),M(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),uJ(h,b.current)}),()=>{m(null)}),[h,m]),aJ(v,s),nr.jsx(mX,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:dJ,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:N,onItemsRendered:T,itemKey:cJ,className:"sn-table-body",direction:d,children:VX})});var fJ=j(pJ);const hJ=({children:e})=>{const t=ab(qV),r=ab(zX);return nr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r},children:e})},mJ=(e,t)=>{const r=k(null),n=ab(DV);L(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=q(r=>{const n=r.contentBoxSize.at(0)?.blockSize;n&&t(n+9,e)},[e,t]);return iG({ref:r,callback:o}),r},gJ=_c("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:r,applicableStyle:n,color:o})=>({...n,background:r,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),bJ=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=r,l=ab(xV),c=ab(Ub),u=ab(_b),d=ab(xU),p=sb(PH),f=ab(oV),h=ab(Bb),m=ab(DV)[e],g=ab(Zb),b=ab(qG(e)),v=n[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=dY({isInteractionEnabled:h,column:v}),C=ab(qb),E=mJ(e,i),R=n.length-1===e,A=C?XU:vG,{ref:I,isDragging:k}=mY(v,e),P=HK(v.id),D=b&&!g.enabled&&h?0:-1,M=a?t=>{a(t,e,S)}:void 0;return nr.jsxs(gJ,{"data-dragging":k,ref:I,className:`sn-table-cell ${ng}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...wU(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:xH(c,R,d),borderLeftWidth:SH(c,R,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:P},interactions:u,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:D,onKeyDown:M,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[nr.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),nr.jsx(cY,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},vJ=e=>{const[t,r]=I(new Map);Ym(()=>{r(new Map)},[e.length]);const n=q((e,t)=>{r(r=>rJ(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:A(()=>tJ(t),[t]),setMeasuredCellHeight:n}},yJ=(e,t)=>{F(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},xJ=e=>{const t=ab(lv),r=ab(Rb),n=ab(EY),o=ab(DV);Ym(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},SJ={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},wJ=_((e,t)=>{const{columResizeHandler:r}=e,n=ab(iV),o=ab(qX),i=sb(kX),a=S.useRef(null),s=k(null),l=ab(SV),c=ab(Rb),u=ab(Kb),d=ab(Ub),p=ab(DV),{rowHeight:f,setMeasuredCellHeight:h}=vJ(n),m=sY(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=GY();return yJ(t,a),xJ(a),aJ(s,i),nr.jsx(CX,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...SJ,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:r,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:bJ})});var CJ=j(wJ);const EJ=_((e,t)=>{const{children:r,onScroll:n}=e,o=ab(Ub),i=ab(Hb),{width:a,height:s}=ab(TX),l=sb(PY),c=q(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return nr.jsx("div",{"data-testid":"scrollable-container",ref:c,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:n,dir:o,tabIndex:-1,children:r})}),RJ=({children:e})=>{const t=ab(Ub),r=ab(qX);return nr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:r.width,height:r.height},children:e})},AJ=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=r,l=ab(xV),c=ab(Rb),u=ab(Ub),d=ab(Fb),p=ab(Bb),f=ab(xU),h=ab(FX),m=mJ(e,i),g=n[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=n[e],y=c.qHyperCube.qSize.qcx-1===e,x=HK(n[e].id),S=a?t=>{a(t,e)}:void 0;return nr.jsx("div",{className:`sn-table-cell ${ng}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...wU(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:xH(u,y,f),borderLeftWidth:SH(u,y,f),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:h&&o.atBottom||o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:b,textAlign:b,boxSizing:"border-box",cursor:"default",opacity:x},children:nr.jsx(YU,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},IJ=_((e,t)=>{const{totals:r}=e,n=ab(iV),o=ab(qX),i=sb(PX),a=k(null),s=k(null),l=ab(wV),c=ab(Ub),u=ab(Rb),d=ab(DV),{rowHeight:p,setMeasuredCellHeight:f}=vJ(n),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=GY();return yJ(t,a),xJ(a),aJ(s,i),nr.jsx(CX,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:SJ,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:n,totals:r,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:c,children:AJ})});var kJ=j(IJ);const PJ=(e,t,r)=>{const n=ab(Ub),o=ab(TB);return q(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,c=((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,n),u=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=u,o.scrollLeft=c,r.current?.interpolatedScrollTo(Number.isNaN(u)?0:u,c),e.current?.scrollTo(c),t.current?.scrollTo(c)},[o,r,e,t,n])};var DJ=j(()=>{const e=ab(oV),t=k(null),r=k(null),n=k(null),o=k(null),i=PJ(r,n,o),a=q(()=>{t.current&&(t.current.scrollTop=0)},[t]);OG(),(e=>{const t=ab(aV),r=ab(EY),n=ab(lv),o=ab(IY);M(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),M(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[r,o,n,e])})(t),BG(t);const s=nr.jsx(kJ,{ref:n,totals:e},"totals");return nr.jsxs(PG,{children:[nr.jsx(EJ,{ref:t,onScroll:i,children:nr.jsxs(hJ,{children:[nr.jsxs(RJ,{children:[nr.jsx(CJ,{ref:r,columResizeHandler:a}),e.atTop?s:null,nr.jsx(fJ,{ref:o}),e.atBottom?s:null]}),nr.jsx(SU,{})]})}),nr.jsx(wG,{isPagination:!1})]})});const MJ=()=>{const e=ab(Rb),t=ab(ov),r=ab(_b),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=ab(nV),s=ab(lv),l=ab(cv),c=ab(Zb),[u,d]=lb(EY),p=k(null),f=k(!1),h=sb(RY),m=sb(AY);M(()=>{h(f)},[h]);const g=S.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=GY();return(()=>{const e=ab(iv),{keyboard:t}=ab(NY),r=ab(TG),n=ab(oV),o=ab(IY),{scrollToCell:i}=ab(LY),{shouldRefocusRef:a}=ab(jY),s=k({focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:e}),l=k(null),c=k(null);L(()=>{s.current={focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:e}},[r,n,o,i,e]),M(()=>{let e=!1;const{focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:u}=s.current;if("function"==typeof u.querySelector){if(t.active){const[t,a]=r,d=n.atTop?2:1;if(t>=d&&t<d+o){null!==c.current&&(cancelAnimationFrame(c.current),c.current=null),i?.(t-d,a);const r=t=>{if(e)return;const n=FY(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);n&&document.activeElement!==n&&EU(n),n&&document.activeElement===n||t>0&&(l.current=requestAnimationFrame(()=>{r(t-1)}))};l.current=requestAnimationFrame(()=>{e||r(5)})}else{const e=FY(u,r,n,o);e&&EU(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),c.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const r=FY(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);r?.blur(),WY(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==c.current&&(cancelAnimationFrame(c.current),c.current=null)}}},[t.active,e,a])})(),MG(p,f),nr.jsxs(WU,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[nr.jsx(GG,{}),nr.jsx(DJ,{}),nr.jsx(iU,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:u,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:c,translator:l,theme:s,interactions:r,rect:t,layout:e})]})};var TJ=j(MJ);const qJ=e=>{const t=e.get(Qb),r=e.get(Xb),n=e.get(Eb),i=e.get(Ub);o(()=>{n&&t&&(r?function(e){const t=e.get(Ub),r=e.get(sv),n=LV(t);r.render(nr.jsx(Ii,{stylisPlugins:"rtl"===t?[H$]:void 0,children:nr.jsx(Fc,{theme:n,children:nr.jsx(eb,{store:e,children:nr.jsx(OV,{children:nr.jsx(yY,{})})})})}))}(e):function(e){const t=e.get(Ub),r=e.get(sv),n=LV(t);r.render(nr.jsx(S.StrictMode,{children:nr.jsx(Fc,{theme:n,children:nr.jsx(eb,{store:e,children:nr.jsx(OV,{children:nr.jsx(TJ,{})})})})}))}(e))},[n,r,e,t,i])};function OJ(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"),c={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},u=((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,c),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,c),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,c,u);return{visibleRowStartIndex:u,visibleRowEndIndex:d,rowPartialHeight:p}}const LJ=(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]}},NJ=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const jJ=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||UB.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},_J=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=jB(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=OJ(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:jJ(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-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:c=0}=t,u=l*c,d=a-u,p=d+s-1,f=LJ(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)+u,visibleRowEndIndex:p+u};const g=n.y+n.height,b=(NJ(h,m,g)?d:d+1)+u;let v=p+u;const y=LJ(p,o),x=y?.getBoundingClientRect();return y&&x&&(NJ(x,m,g)||(v=p-1+u)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:jJ(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},zJ={version:JSON.stringify("6.48.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var FJ=e=>({properties:{initial:zJ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>Dv({...t,env:e}),exportProperties:Ev,exploration:Hz(e)});const $J=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),HJ=e=>e.getStyle("object","straightTableV2","backgroundColor");function BJ(r){return{qae:FJ(r),ext:t$(r),component(){const n=u(),i=e(()=>Jg(),[!1!==n.usePagination]);i.set(Sb,r);const s=d();i.set(iv,s),i.set(Rb,n),i.set(cb,p()),i.set(Qb,f()),i.set(_b,h()),i.set(cv,m()),i.set(Nb,g()),i.set(Wb,t()),i.set(Zb,b()),i.set(ov,v()),i.set(db,y());const x=_m(n,s,$J,HJ);i.set(lv,x),i.set(Eb,Km(x,n,r)),i.set(ub,_t()),(e=>{const t=e.get(sv);o(()=>()=>{t.unmount()},[t])})(i),a?.((e,t)=>{const r=t.target,n=r?.closest(`.${ng}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{fg(n)}})}),(({store:e})=>{const t=e.get(Rb),r=e.get(Qb),n=e.get(iv),o=e.get(nv),i=e.get(Kb),a=e.get(Xb);l(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get(TB),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=_J(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),c(()=>({getViewState:()=>_J(t,e.get(TB),n,i,a)}),[t,e,n,a])})({store:i}),qJ(i)}}}export{BJ as default};
121
+ */var o$=(r$||(r$=1,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="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+u+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+r+"|"+u+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+u+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+c+v+"[^;}]+;?)","gi"),I=new RegExp("("+c+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),D=new RegExp(l+"(left)"+b+y+v,"gi"),M=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),q=new RegExp(l+"(right)"+x,"gi"),O=/(:dir\( *)ltr( *\))/g,L=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,r){var n,o;return t.split("(").length>t.split(")").length?e:("%"===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 Z(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 Q(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?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(A,"`NOFLIP_SINGLE`"),a=new n(I,"`NOFLIP_CLASS`"),s=new n(R,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(O,"$1`TMPLTR`$2").replace(L,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(q,"$1left").replace(w,"right")),r=r.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(D,"$1"+e).replace(M,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(V,Q).replace(W,te).replace(U,ne).replace(G,ne).replace(K,te).replace(Y,re).replace(X,re).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),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)}(n$,n$.exports)),n$.exports),i$=Jt(o$),a$="comm",s$="rule",l$="decl",c$=Math.abs,u$=String.fromCharCode;function d$(e){return e.trim()}function p$(e,t,r){return e.replace(t,r)}function f$(e,t){return 0|e.charCodeAt(t)}function h$(e,t,r){return e.slice(t,r)}function m$(e){return e.length}function g$(e,t){return t.push(e),e}var b$=1,v$=1,y$=0,x$=0,S$=0,w$="";function C$(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:b$,column:v$,length:a,return:"",siblings:s}}function E$(){return S$=x$>0?f$(w$,--x$):0,v$--,10===S$&&(v$=1,b$--),S$}function R$(){return S$=x$<y$?f$(w$,x$++):0,v$++,10===S$&&(v$=1,b$++),S$}function A$(){return f$(w$,x$)}function I$(){return x$}function k$(e,t){return h$(w$,e,t)}function P$(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 D$(e){return d$(k$(x$-1,q$(91===e?e+2:40===e?e+1:e)))}function M$(e){for(;(S$=A$())&&S$<33;)R$();return P$(e)>2||P$(S$)>3?"":" "}function T$(e,t){for(;--t&&R$()&&!(S$<48||S$>102||S$>57&&S$<65||S$>70&&S$<97););return k$(e,I$()+(t<6&&32==A$()&&32==R$()))}function q$(e){for(;R$();)switch(S$){case e:return x$;case 34:case 39:34!==e&&39!==e&&q$(S$);break;case 40:41===e&&q$(e);break;case 92:R$()}return x$}function O$(e,t){for(;R$()&&e+S$!==57&&(e+S$!==84||47!==A$()););return"/*"+k$(t,x$-1)+"*"+u$(47===e?e:R$())}function L$(e){for(;!P$(A$());)R$();return k$(e,x$)}function N$(e){return function(e){return w$="",e}(j$("",null,null,null,[""],e=function(e){return b$=v$=1,y$=m$(w$=e),x$=0,[]}(e),0,[0],e))}function j$(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y=0,x="",S=o,w=i,C=n,E=x;g;)switch(h=y,y=R$()){case 40:108!=h&&58==f$(E,d-1)?(v++,E+="("):E+=D$(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=D$(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=u$(y);break}E+=M$(h);break;case 92:E+=T$(I$()-1,7);continue;case 47:switch(A$()){case 42:case 47:g$(z$(O$(R$(),I$()),t,r,l),l),5!=P$(h||1)&&5!=P$(A$()||1)||!m$(E)||" "===h$(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=m$(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=u$(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=p$(E,/\f/g,"")),f>0&&(m$(E)-d||0===m)&&g$(f>32?F$(E+";",n,r,d-1,l):F$(p$(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(g$(C=_$(E,t,r,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)j$(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===f$(E,3))break;case 108:if(97===f$(E,2))break;default:u=0;case 100:case 109:case 115:}u?j$(e,C,C,n&&g$(_$(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,n?S:w):j$(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+m$(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==E$())continue;switch(E+=u$(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(m$(E)-1)*b,b=1;break;case 64:45===A$()&&(E+=D$(R$())),p=A$(),u=d=m$(x=E+=L$(I$())),y++;break;case 45:45===h&&2==m$(E)&&(m=0)}}return i}function _$(e,t,r,n,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=h$(e,p+1,p=c$(g=a[m])),x=e;v<h;++v)(x=d$(g>0?f[v]+" "+y:p$(y,/&\f/g,f[v])))&&(l[b++]=x);return C$(e,t,r,0===o?s$:s,l,c,u,d)}function z$(e,t,r,n){return C$(e,t,r,a$,u$(S$),h$(e,2,-2),0,n)}function F$(e,t,r,n,o){return C$(e,t,r,l$,h$(e,0,n),h$(e,n+1,-1),n,o)}function $$(e,t,r){switch(e.type){case"@import":case l$:case a$:return e.return=e.return||e.value;case s$:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===a$&&(e.children=e.value)})}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),$$);return m$(n)?e.return=e.value+"{"+n+"}":""}function H$(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===s$&&(!e.parent||"@media"===e.parent.type||e.parent.type===s$)){var o=i$.transform($$(e));e.children=o?N$(o)[0].children:[],e.return=""}}Object.defineProperty(H$,"name",{value:"stylisRTLPlugin"});const B$=hI(({options:e,...t})=>Kg(Hm(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);class V${#y={on:new Map,once:new Map};#x=10;#S(e){this.listenerCount(e)>this.#x&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#w(e,t,r){const n=this.#y[e].get(t)??new Set;n.add(r),this.#y[e].set(t,n),this.#S(t)}setMaxListeners(e){this.#x=e}on(e,t){this.#w("on",e,t)}once(e,t){this.#w("once",e,t)}off(e,t){this.#y.on.get(e)?.delete(t),this.#y.once.get(e)?.delete(t)}emit(e,...t){this.#y.on.get(e)?.forEach(e=>{e(...t)}),this.#y.once.get(e)?.forEach(e=>{e(...t)}),this.#y.once.delete(e)}listenerCount(e){return(this.#y.on.get(e)?.size??0)+(this.#y.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#y.on.clear(),this.#y.once.clear()):(this.#y.on.delete(e),this.#y.once.delete(e))}}const W$=Kg(()=>new V$);let U$=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),G$=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}({}),K$=function(e){return e.A="ascending",e.D="descending",e}({}),Y$=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const X$=[0,0],J$=e=>"number"==typeof e&&!Number.isNaN(+e),Z$=e=>J$(e.qNum),Q$=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),eH=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),tH=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},rH=(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,c=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-c}:{color:l.color,t:c-.5}:a.gradient?{color:s.color,t:1-(.5+c/2)}:i.gradient?{color:l.color,t:c/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return ie(e.localPaletteColors[t].color??"").blend(ie(s.color??""),s.t)},nH=(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:eH(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:tH(n,t,r)}))),n},oH=(e,t,r,n)=>{const o=nH(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=rH(e,a,t);break}n=i}return r})(o,t);return a},iH=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!J$(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||!J$(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)},aH=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=iH(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||!J$(t))return 0;let a=r&&J$(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}},sH=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=aH(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 tH(o,r.limitPaletteColorIndex,n);const a=eH(r.limitRange,t);return oH(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let c=l?.position||"right";return"rtl"===r&&(c="right"===c?"left":"right"),{color:a,iconKey:s,position:c}},lH=(wm().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)"),cH=4/3,uH="12px",dH="600",pH="Source Sans Pro, sans-serif",fH={height:"auto",fontSize:uH,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"}},hH={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:dH},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},mH=(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,gH=(e,t)=>e.representation.type===lF.Image&&"fitHeight"===e.representation.imageSize?mH(t,e.representation):e.align,bH=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",vH=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},yH=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,xH=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",SH=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",wH=24,CH=_c("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),EH=_c(Pd,{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?bH(e,n):void 0})),RH=_c(Pd,{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},[`& .${eg}`]:{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"},[`& .${eg}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),AH=_c(Pd,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),IH=_c(Pd,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),kH=_c(zu,{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})),PH=Kg(),DH=Kg(0),MH=Kg(0),TH=e=>parseInt(e??fH.fontSize,10)*cH,qH=4/3,OH=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function LH(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const NH=(e,t)=>e?{borderBottomColor:Rm.DARK_MODE_BORDER,borderRightColor:Rm.DARK_MODE_BORDER,borderLeftColor:Rm.DARK_MODE_BORDER,borderTopColor:Rm.DARK_MODE_BORDER}:{borderLeftColor:Rm.BORDER_MEDIUM,borderRightColor:Rm.BORDER_MEDIUM,borderTopColor:Rm.BORDER_HEAVY,borderBottomColor:t?Rm.BORDER_HEAVY:Rm.BORDER_LIGHT},jH=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*qH+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},_H=e=>e.components?.find(e=>"theme"===e.key),zH=(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:OH(r?.fontColor)?LH(Rm.TEXT,t,r?.fontColor):i||Rm.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...NH(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function FH(e,t,r){const n=_H(e)?.header,o=zH("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=km(o.background??Rm.WHITE,lg),o.activeBackground=km(o.background??Rm.WHITE,cg),o}const $H=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in hH)(e)&&Object.assign(t,hH[e])),t};function HH(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&&Dm(i);a&&(n[r[t]]=a),o=i?$H(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=Am(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const BH=25e4,VH=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,WH=5e6,UH=5e5;const GH={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:KH(e),value:KH(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}};function KH(e){try{return decodeURIComponent(e)}catch{return e}}function YH(e){if(!(this instanceof YH))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>GH.fromSearchString(t.search)}})}function XH(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}YH.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},YH.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=XH(t.key),t.value?r+=`=${XH(t.value)}`:r+=t.useEqualSign?"=":"";return r};var JH=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},ZH=class{decode(e){let t="";const r=new JH(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}};const QH=e=>e>=0&&e<=1114111,eB=e=>e.match(/[\s]/);var tB=class extends ZH{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!eB(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return QH(a)?String.fromCharCode(a):"�"}},rB=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},nB=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return rB.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return rB.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||rB.newInstanceIfNeeded(e,t,this._value)}},oB=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new nB);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const iB=(()=>{const e=[],t=[],r=new oB;let n,o,i;for(n in e["&quot"]="34",e["&amp"]="38",e["&lt"]="60",e["&gt"]="62",e["&nbsp"]="160",e["&iexcl"]="161",e["&cent"]="162",e["&pound"]="163",e["&curren"]="164",e["&yen"]="165",e["&brvbar"]="166",e["&sect"]="167",e["&uml"]="168",e["&copy"]="169",e["&ordf"]="170",e["&laquo"]="171",e["&not"]="172",e["&shy"]="173",e["&reg"]="174",e["&macr"]="175",e["&deg"]="176",e["&plusmn"]="177",e["&sup2"]="178",e["&sup3"]="179",e["&acute"]="180",e["&micro"]="181",e["&para"]="182",e["&middot"]="183",e["&cedil"]="184",e["&sup1"]="185",e["&ordm"]="186",e["&raquo"]="187",e["&frac14"]="188",e["&frac12"]="189",e["&frac34"]="190",e["&iquest"]="191",e["&Agrave"]="192",e["&Aacute"]="193",e["&Acirc"]="194",e["&Atilde"]="195",e["&Auml"]="196",e["&Aring"]="197",e["&AElig"]="198",e["&Ccedil"]="199",e["&Egrave"]="200",e["&Eacute"]="201",e["&Ecirc"]="202",e["&Euml"]="203",e["&Igrave"]="204",e["&Iacute"]="205",e["&Icirc"]="206",e["&Iuml"]="207",e["&ETH"]="208",e["&Ntilde"]="209",e["&Ograve"]="210",e["&Oacute"]="211",e["&Ocirc"]="212",e["&Otilde"]="213",e["&Ouml"]="214",e["&times"]="215",e["&Oslash"]="216",e["&Ugrave"]="217",e["&Uacute"]="218",e["&Ucirc"]="219",e["&Uuml"]="220",e["&Yacute"]="221",e["&THORN"]="222",e["&szlig"]="223",e["&agrave"]="224",e["&aacute"]="225",e["&acirc"]="226",e["&atilde"]="227",e["&auml"]="228",e["&aring"]="229",e["&aelig"]="230",e["&ccedil"]="231",e["&egrave"]="232",e["&eacute"]="233",e["&ecirc"]="234",e["&euml"]="235",e["&igrave"]="236",e["&iacute"]="237",e["&icirc"]="238",e["&iuml"]="239",e["&eth"]="240",e["&ntilde"]="241",e["&ograve"]="242",e["&oacute"]="243",e["&ocirc"]="244",e["&otilde"]="245",e["&ouml"]="246",e["&divide"]="247",e["&oslash"]="248",e["&ugrave"]="249",e["&uacute"]="250",e["&ucirc"]="251",e["&uuml"]="252",e["&yacute"]="253",e["&thorn"]="254",e["&yuml"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["&notin"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})();var aB=class extends ZH{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,iB.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=iB.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&QH(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&QH(n)?String.fromCharCode(n):null}},sB=class extends ZH{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),QH(i))?String.fromCharCode(i):(e.reset(),null)}};let lB;"undefined"!=typeof document&&(lB=document.createElement("div"));const cB=Array.prototype.indexOf,uB=[",",".","_"," "],dB=[",",".","-","_"," "],pB={width:["%"],height:["%"]},fB={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},hB={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":fB.image,"background-color":fB.color,"border-color":fB.color,"border-image":fB.image,color:fB.color,icon:fB.image,"list-style-image":fB.image,"outline-color":fB.color},mB={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function gB(e,t,r){let n;if(t){if(cB)return cB.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function bB(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return lB.appendChild(r),t=lB.innerHTML,lB.removeChild(r),t}function vB(e,t,r){let n,o,i,a,s,l,c,u,d;for(e=xB(e).toLowerCase(),t=xB(t),i=0;i<mB.attr_name.length;i++)if(e.match(mB.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<mB.attr_val.length;i++)if(t.toLowerCase().match(mB.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=pB[e],n||(n=dB),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&gB(c,n)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return r||(o+='"'),o}function yB(e,t,r){let n,o,i,a,s,l,c,u,d,p;if(e=xB(e).toLowerCase(),t=xB(t),gB(e,mB.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<mB.css_val.length;n++)if(t.toLowerCase().indexOf(mB.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=hB[e],o||(o=fB.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&gB(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function xB(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new aB,new sB,new tB];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}const SB=[];for(let e=0;e<255;e++)SB[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const wB={html:e=>bB(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=yB(t,r[t],!0),i+=yB(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=vB(e,t[e],!0),o+=vB(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function CB(e,t){throw new Error(t)}var EB={canonicalize:xB,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?wB.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&CB(this,"Invalid parameter type"),wB.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&CB(this,"Invalid parameter type"),wB.attr(e)):void CB(this,"Invalid parameter type")},encodeForAttr:vB,encodeForAttr2:function(e){return vB("nonsens",e,!0)},encodeForCSS:yB,encodeForHref:function(e){xB(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new YH(e),r=YH.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+YH.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=uB),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),gB(o,t)>=0||null==SB[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:bB,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=xB(t).toLowerCase():CB(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:r=UH,maxByteSizeImage:n=WH}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=VH.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const RB=(e,t)=>t.qAttrExps?.qValues?.[e],AB=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},IB=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!EB.isSafeDataURL(t))?{type:lF.Text,url:void 0,text:e,labelStructure:o}:{type:lF.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:AB(n,a),labelStructure:o,imageBox:i},kB=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:lF.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:lF.MiniChart,text:n,miniChart:a}},PB=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===cF.Attribute?void 0:r?.urlLabel},DB=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:lF.Link,url:EB.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:lF.Text,url:void 0,text:t,labelStructure:e}}},MB=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:c})=>{const u=uF(t),d=s(e);return u===lF.Image&&c[lF.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=RB(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),IB({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return IB({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=RB(r.imageLabel??-1,e)?.qText??n;return IB({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:lF.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):u===lF.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===cF.Attribute){const i=PB(r.url??-1,e,t);return DB({labelStructure:n,text:o||i||"",url:i})}if(i===cF.Dimension){const i=PB(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),DB({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:lF.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):u===lF.Indicator&&c[lF.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:lF.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):u===lF.MiniChart&&c[lF.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?kB(e,t,i,d):{type:lF.Text,url:void 0,text:d,labelStructure:a}},TB=Kg(e=>{const t=e(Kb),r=e(Mb);return e(Tb),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}}),qB=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),OB=({cId:e})=>e??Zz(),LB=1e4;function NB(e,t){return[...t].reverse().find(t=>t*e<=LB)||Math.floor(LB/e)}function jB(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function _B(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function zB(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return J$(r?.qNum)}function FB(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const $B=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",HB=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=ie(r??""),i=ie(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?km(s,lg):void 0,c=s?km(s,cg):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:Am(s),headerMenuHoverBackground:l,headerMenuActiveBackground:c}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:c}};const BB=(e,t,r,n=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const r=e<n,o=(r?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,r,n,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:c,visibleDimInfoIdx:u,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===ug.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==u){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=u,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:I,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:D,qApprMaxGlyphCount:M,columnWidth:T,qLibraryId:q,headerColor:O}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:q,pageColIdx:c,qApprMaxGlyphCount:M,qReverseSort:D,columnWidth:T??{type:sg.Auto},selectionColIdx:S,isActivelySorted:g,id:OB(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:qB(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:_B(e,f,c,d??-1),...!f&&{isTotalNumeric:zB(e,d??-1)},...FB(I,b,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?HB(O,r):void 0}}(e,o,t,r,n))},VB=(e,t,r,n)=>e?(n?r.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":r.nullValueRepresentation?.text??t.qText??"-",WB=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,UB={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},GB=Kg(e=>{const t=e(KB),r=e(Rb),n=e(TB),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>LB?{...t,rowsPerPage:NB(l,t.rowsPerPageOptions),page:0}:t}),KB=Kg(UB),YB=Kg(e=>{const t=e(Rb),r=e(Kb),n=e(TB);return Vb(t,r)?{page:n.page||UB.page,rowsPerPage:n.rowsPerPage||UB.rowsPerPage,rowsPerPageOptions:UB.rowsPerPageOptions}:e(GB)},(e,t,r)=>{t(KB,e=>({...e,...r}))}),XB=!0,JB=e=>-1===e.qElemNumber||!!e.qIsTotalCell,ZB=Kg(async e=>{const t=e(Rb),r=e(Kb),n=e(Ub),{page:o,rowsPerPage:i}=e(YB),a=e(TB),s=e(Qb),l=e(Sb),c=e(Ib),u=e(wb),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=jB(t,r),v=BB(t,XB,n,u),y=l.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),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]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});c||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const S=x.at(0)?.qMatrix.map((e,r)=>{const o=[],i=e.some(JB);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&WB(c,a.isDim),p=u||d?VB(a.isDim,c,t,y):c.qText,f=u?Q$(p):Z$(c),g=Z$(c)&&!Q$(c.qText??"");o[s]={id:Zz(),...c,align:$B(f,a.bodyTextAlign,n,XB),rowIdx:r+h,colIdx:a.colIdx,pageRowIdx:r,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i&&!d,isTotalRow:i,isLastRow:r===m-1,isNumeric:f,isDual:g,isNull:(!u||!f)&&WB(c,a.isDim),representation:MB({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:n,enabledFeatures:{[lF.Image]:!0,[lF.Indicator]:!0,[lF.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),QB=oA(ZB,e=>e),eV=Kg(e=>{const t=e(Rb),r=e(Kb),n=e(_b),o=e(Ub),i=e(wb),a=BB(t,false,o,i),s=jB(t,r),l=t.qHyperCube.qSize.qcy,c=Math.min(BH,l),u=l>BH&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/c),paginationNeeded:u}}),tV={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},rV=Kg(),nV=Kg(e=>{const t=e(Xb),r=e(rV);return r||(t?e(QB)??tV:e(eV))}),oV=Kg(e=>e(nV).totalsPosition),iV=Kg(e=>e(nV).columns),aV=Kg(e=>e(iV).length),sV=Kg(e=>e(nV).rows),lV=Kg(e=>e(nV).totalRowCount),cV=Kg(e=>e(nV).totalColumnCount),uV=Kg(e=>e(nV).paginationNeeded),dV=Kg(e=>{const t=e(iv),r=e(lv),n=e(Rb),o=e(oV),i=e(sV),a=o.atTop,s=function(e,t,r,n){const o=_H(e)?.content,i=zH("content",t,o);i.background=t.background.color;const a=jH(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),u=t.getStyle("object","","straightTableV2.content.hover.color"),d=OH(l)||!!u,p=OH(s)||!!c,f=d||p;let h;h=OH(s)?LH(Rm.HOVER,t,s):c||(d?"":Rm.HOVER);const m=f?LH(Am(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=FH(n,r,!a),c=function(e,t,r){const n=_H(e)?.content,o=zH("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=FH(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:c}}),pV=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},fV=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=pV(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},hV=(e,t,r,n=Rm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=fV(e,t,r);return Lm(i,o,a,n)??n},mV=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return uH}},gV=e=>e?.some(e=>"italic"===e)?"italic":"normal",bV=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?dH:"normal",vV=e=>!1===e?1:3,yV=e=>e?.some(e=>"underline"===e)?"underline":"none",xV=Kg(e=>{const t=e(Kb),r=e(Xb),n=e(lv),o=e(Rb),i=e(dV),a=e(wb),{header:s,dimensionValues:l,measureValues:c,totalValues:u,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=_H(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=r?Rm.WHITE:Rm.TRANSPARENT,v=hV(n,s,"object.straightTableV2.dimension.label.name.backgroundColor",b),y=t?.maxLineCount??m?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),x=(g?f:void 0)??p;return{header:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??pH,fontSize:mV(s?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:gV(s?.fontStyle),fontWeight:bV(s?.fontStyle,dH),textDecoration:yV(s?.fontStyle),color:pV(n,s?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??Rm.TEXT,background:v},headerMenuHoverBackground:km(v,lg),headerMenuActiveBackground:km(v,cg),dimension:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??pH,fontSize:mV(l?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:gV(l?.fontStyle),fontWeight:bV(l?.fontStyle,"normal"),textDecoration:yV(l?.fontStyle),color:pV(n,l?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??Rm.TEXT,background:fV(n,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??Rm.TRANSPARENT}},measure:{values:{fontFamily:c?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??pH,fontSize:mV(c?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:gV(c?.fontStyle),fontWeight:bV(c?.fontStyle,"normal"),textDecoration:yV(c?.fontStyle),color:pV(n,c?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??Rm.TEXT,background:fV(n,c,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??Rm.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??pH,fontSize:mV(u?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:gV(u?.fontStyle),fontWeight:bV(u?.fontStyle,dH),textDecoration:yV(u?.fontStyle),color:pV(n,u?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??Rm.TEXT,background:hV(n,u,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??n.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??pH,fontSize:mV(d?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:gV(d?.fontStyle),fontWeight:bV(d?.fontStyle,dH),textDecoration:yV(d?.fontStyle),color:pV(n,d?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??Rm.TEXT,background:hV(n,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:gV(x?.fontStyle),fontWeight:bV(x?.fontStyle,"normal"),textDecoration:yV(x?.fontStyle),color:pV(n,x?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??Rm.TEXT,background:pV(n,x?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??Rm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:gV(p?.fontStyle),fontWeight:bV(p?.fontStyle,"normal"),textDecoration:yV(p?.fontStyle),color:pV(n,p?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??Rm.TEXT,background:pV(n,p?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??Rm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??vV(o.multiline?.wrapTextInCells),headerLineClamp:vV(o.multiline?.wrapTextInHeaders),border:pV(n,h?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?Rm.DARK_MODE_BORDER:Rm.BORDER_MEDIUM),divider:pV(n,h?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??Rm.BORDER_HEAVY,hoverColors:{color:pV(n,m?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:pV(n,m?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:pV(n,h?.zebraStripes?.color?.odd),background:pV(n,h?.zebraStripes?.background?.odd)},even:{color:pV(n,h?.zebraStripes?.color?.even),background:pV(n,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===pV(n,x?.background),overrideDimNullValueColor:void 0===pV(n,x?.fontColor),overrideMeasNullValueBackground:void 0===pV(n,p?.background),overrideMeasNullValueColor:void 0===pV(n,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:Im(n),contentStaticLineCount:y}}),SV=Kg(e=>{const t=e(xV);return Math.max(TH(t.header.fontSize)+8,32)}),wV=Kg(e=>{const t=e(xV),r=TH(t.totalRow.fontSize);return Math.max(r+9,24)}),CV=Kg(e=>{const t=e(xV),r=e(kb),n=e(Pb);return Math.max(r>0?TH(t.dimension.values.fontSize):0,n>0?TH(t.measure.values.fontSize):0)}),EV=Kg(e=>{const t=e(xV),r=e(CV),n=(t.contentStaticLineCount||1)*r;return Math.max(n+9,24)}),RV=Kg(e=>{const t=e(xV),r=TH(t.subTotalRow.fontSize),n=(t.contentStaticLineCount||1)*r;return Math.max(n+9,24)}),AV=(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:c},label:u,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(ag.PixelsMax,Math.max(ag.PixelsMin,f)),i-=n[a]};switch(s){case sg.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?ag.PixelsDefault:+e)(l),h();break;case sg.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?ag.PercentageDefault:+e)(c)/100*t,h();break;case sg.FitToContent:e.representation?.type===lF.Image?o.push(a):(f=r(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case sg.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(ag.AutoMinTable,e)})}return n},IV=Kg(e=>{const t=e(xV),r=e(nV).totalsPosition,n=e(qb),{measureText:o}=e(B$({...t.header,fontWeight:dH})),{measureText:i}=e(B$({...t.totalRow,fontWeight:dH})),{estimateWidth:a}=e(B$(t.dimension.values)),{estimateWidth:s}=e(B$(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,c,u,d,p)=>{let f;if(n){const t=4;let r=25;r+=t+24,c&&(r+=20+t),u&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=wH),t+=wH,t+=wH,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),kV=Kg(null),PV=Kg(e=>{const t=e(nV),r=e(ov).width,n=e(MH),o=e(IV);return AV(t.columns,r-n,o)}),DV=Kg(e=>e(kV)??e(PV),(e,t,r)=>{t(kV,r)}),MV=cA(e=>{const t=e(W$);!1===e(PH)&&t.emit("done-adjusting-column-width")}),TV=cA((e,t)=>{e(Rb),t(kV,null)}),qV=Kg(e=>e(DV).reduce((e,t)=>e+t,0)),OV=({children:e})=>(ab(TV),ab(MV),e);function LV(e){const t=wm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),vc({...t,direction:e})}const NV={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},jV={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},_V=_c("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":{...NV},"&::-moz-range-track":{...NV},"&::-ms-track":{...NV},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...jV},"&::-moz-range-thumb":{...jV},"&::-ms-thumb":{...jV},"&: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"}})),zV=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:u,direction:d="ltr"})=>{const p=Jm({translator:u.translator}),f=k({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!c,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}};Ym(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,ag.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:sg.Pixels,pixels:f.current.columnWidth};a(e)}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=>{Tm(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=>{Tm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===og.Left||e.key===og.Right){Tm(e);const t=5,r=e.key===og.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===og.Space||e.key===og.Enter?(Tm(e),s(e),l?.(!1),x()):e.key===og.Esc&&(Tm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return nr.jsx(_V,{style:b,hoverColor:o,isLastColumn:r,className:ig,"data-testid":ig,onMouseDown:e=>{Tm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:sg.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Tm(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":A,"aria-valuemin":ag.PixelsMin,"aria-valuemax":ag.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},FV=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),$V=({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},HV=_c(Pd,{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"})),BV=_c(FV,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),VV=_c(Wf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),WV=_c(Cp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),UV=_c(Xf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),GV=_c(Xf,{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"})),KV=_c("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"})),YV=_c("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),XV=_c(Wu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),JV=_c(vf,{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})),ZV=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),QV=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?QV(t):t:e.parentElement?.children?.[0]},eW=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?eW(t):t},tW=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===og.Down||t===og.Up){const r=e=>t===og.Down?QV(e):eW(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},rW=(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 nW={};const oW=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:u})=>{const[d,p]=I(!1),f=S.useRef(null),h=q(e=>{e.stopPropagation(),p(!1)},[p]);return nr.jsxs(nr.Fragment,{children:[nr.jsxs(GV,{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),nW={}),a?.length&&(p(!0),nW[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:tW,children:[l?nr.jsx(KV,{direction:c,isPagination:u}):null,nr.jsxs(YV,{children:[nr.jsx(JV,{direction:c,isPagination:u,children:nr.jsx(o,{})}),nr.jsx(XV,{variant:"body2",children:n})]}),a?.length?nr.jsx(ZV,{}):null]},t),a?.length?nr.jsx(lW,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:rW(a,nW),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},iW=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&nr.jsx(UV,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>nr.jsx(oW,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),aW=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[iW({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?nr.jsx(WV,{"data-testid":"group-divider",variant:"middle"}):void 0]),sW={appear:0,enter:0,exit:0},lW=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?nr.jsx(VV,{className:tg,open:t,anchorEl:e,onClose:r,transitionDuration:sW,MenuListProps:{id:rg},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:aW({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,cW=({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]),uW=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),dW=(e,t)=>e.some(e=>t[e]>0),pW={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},fW=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=I(null),[a,s]=I(pW);return Ym(()=>{e||(s(pW),i(null))},[e]),M(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=uW(t,r),c=await n.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:dW(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:dW(["qSelected"],e),canSelectPossible:dW(["qOption"],e),canSelectAlternative:dW(["qAlternative"],e),canSelectExcluded:dW(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},hW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),mW=_((e,t)=>nr.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:nr.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"})})),gW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),bW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),vW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),yW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),xW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),SW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),wW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),CW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),EW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),RW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),AW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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 IW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const kW="/qListObjectDef",PW=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[IW.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:hW,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:bW,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:xW,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Iz,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[IW.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:SW,enabled:!0}]}]),!e.isLocked&&r[IW.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:AW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(kW))},icon:wW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(kW))},icon:RW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(kW))},icon:CW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(kW))},icon:EW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(kW))},icon:mW,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:yW,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:vW,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[IW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),u?.(c)},icon:gW,enabled:!0}]}]),f},DW=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:u,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=Zm})=>{const v=k(null),y=Jm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=fW({open:e,headerData:n,app:C,qStateName:u?.qStateName}),A=$V({model:f,headerData:n}),I=cW({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),P=q(e=>{e.stopPropagation(),t(!1)},[t]),D=q(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?nr.jsxs(HV,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:eg,onClick:!1===g?D:void 0,ref:v,isAccessibleHeader:g,children:[s?nr.jsx(BV,{height:b,className:Qm,"data-testid":Qm,isInteractionsActive:i.active??!1,children:nr.jsx(FV,{})}):null,nr.jsx(lW,{open:e,anchorEl:!1===g?v.current:r.current,onClose:P,menuGroups:PW({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},MW=e=>e.isDark?{background:e.color,borderColor:Rm.DARK_MODE_BORDER,color:Rm.DARK_MODE_TEXT,disabledColor:Rm.DARK_MODE_DISABLED,iconColor:Rm.DARK_MODE_TEXT}:{background:e.color,borderColor:Rm.BORDER_MEDIUM,color:Rm.TEXT,disabledColor:Rm.DISABLED},TW=_c(Pd,{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}`})),qW=_c(Dh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),OW=_c(zd,{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)})),LW=_c(Wu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),NW=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A(()=>MW(n.background),[n]);if(!r.active)return null;const a=o?nr.jsx(TW,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},jW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),_W=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),zW=P({}),FW=()=>O(zW),$W=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(u)?0:-1,v=A(()=>MW(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=Jm({translator:d}),S=A(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,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,c,u,x,p,f,h,m,v,b,y,g]);return nr.jsx(zW.Provider,{value:S,children:e})},HW=({disabledCondition:e,pageNumber:t,type:r,footerStyle:n,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:n,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${r}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let BW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),VW=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 WW=()=>{const{direction:e,pageInfo:t,width:r,interactions:n,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=FW(),c=0===t.page,u=HW({type:BW.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:n,tabIndex:l});return r<=(o?.firstPage||VW.FirstPage)?null:nr.jsx(OW,{...u,disabled:!n.active,children:"rtl"===e?nr.jsx(_W,{height:Zm}):nr.jsx(jW,{height:Zm})})},UW=(e,t,r=!1)=>{r&&e.key===og.Tab&&!e.shiftKey&&(Tm(e),Mm(e.target,t,!1))},GW=()=>{const{direction:e,pageInfo:t,keyboard:r,totalPages:n,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:c,translator:u,tabIndex:d}=FW(),p=t.page>=n-1,f=HW({type:BW.LastPage,disabledCondition:p,pageNumber:n-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=r.enabled?e=>{UW(e,r,o)}:void 0;return i<=(s?.lastPage||VW.LastPage)?null:nr.jsx(OW,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?nr.jsx(jW,{height:Zm}):nr.jsx(_W,{height:Zm})})},KW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),YW=()=>{const{direction:e,pageInfo:t,keyboard:r,totalPages:n,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=FW(),d=t.page>=n-1,p=HW({type:BW.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>VW.FirstPage&&i>VW.LastPage)&&r.enabled?e=>{UW(e,r,o)}:void 0;return nr.jsx(OW,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?nr.jsx(KW,{height:Zm}):nr.jsx(ZV,{height:Zm})})},XW=()=>{const{direction:e,pageInfo:t,interactions:r,footerStyle:n,handleChangePage:o,translator:i,tabIndex:a}=FW(),s=0===t.page,l=HW({type:BW.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:n,handleChangePage:o,translator:i,interactions:r,tabIndex:a});return nr.jsx(OW,{...l,disabled:!r.active,children:"rtl"===e?nr.jsx(ZV,{height:Zm}):nr.jsx(KW,{height:Zm})})},JW=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=FW(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||VW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return nr.jsx(LW,{variant:"caption",dir:"ltr",children:s})},ZW=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=FW(),c=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${c}`,f={tabIndex:s,id:`${d}-${c}`,"data-testid":d,"aria-labelledby":p};return nr.jsxs(nr.Fragment,{children:[nr.jsxs(LW,{variant:"caption",id:p,children:[u,":"]}),nr.jsx(qW,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},QW=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=FW();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||VW.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=nr.jsx(nr.Fragment,{children:e.rowsPerPageOptions.map(e=>nr.jsx("option",{value:e,children:e},e))});return nr.jsx(ZW,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},eU=1e3,tU="…",rU=({totalPages:e,page:t})=>{const r=Math.min(e,eU),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-eU):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return nr.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(nr.jsx("option",{value:tU,disabled:!0,children:tU},"startMoreOptions")),o<e-1&&a.push(nr.jsx("option",{value:tU,disabled:!0,children:tU},"endMoreOptions")),nr.jsx(nr.Fragment,{children:a})},nU=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=FW(),{page:i}=e;if(t<=(o?.selectPage||VW.SelectPage))return null;const a=nr.jsx(rU,{totalPages:r,page:i});return nr.jsx(ZW,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var oU=j(e=>nr.jsxs($W,{...e,children:[nr.jsx(QW,{}),nr.jsx(nU,{}),nr.jsx(JW,{}),nr.jsx(WW,{}),nr.jsx(XW,{}),nr.jsx(YW,{}),nr.jsx(GW,{})]}));const iU=e=>nr.jsx(NW,{...e,children:nr.jsx(oU,{...e})}),aU=(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"]})},sU=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},lU=e=>e.ctrlKey||e.metaKey,cU=e=>e.shiftKey&&lU(e),uU=e=>[og.Left,og.Right,og.Up,og.Down].includes(e),dU=e=>e.shiftKey&&uU(e.key),pU=e=>(e=>uU(e)||[og.Home,og.End,og.PageUp,og.PageDown].includes(e))(e.key)&&!cU(e),fU=(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),aU(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})},hU=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:c}=t;if(!(a||"key"in c&&dU(c)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const u=((e,t,r,n,o)=>{if(!r.isSelectable)return t;const i=new Map(t);if("key"in n&&dU(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===og.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return o.isSelectable&&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];r.isSelectable&&i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,c,a);return aU(l,n,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},mU=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}},gU=(e,t)=>{switch(t.type){case G$.Select:return fU(e,t.payload);case G$.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 G$.SelectMouseUp:return((e,t)=>mU(e.isSelectMultiValues||e.firstCell!==t.cell?e:fU(e,t)))(e,t.payload);case G$.SelectMultiAdd:return hU(e,t.payload);case G$.SelectMultiEnd:return mU(e);case G$.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case G$.Clear:return e.rows.size?{...e,rows:new Map}:e;case G$.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},bU=Kg(e=>{const t=e(Nb);return function(e,t){return Kg(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(nV).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},gU)}),vU=Kg(e=>e(e(bU)),(e,t,r)=>{t(e(bU),r)}),yU=hI(e=>Kg(t=>{const{colIdx:r,rows:n,api:o}=t(vU);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?U$.Disabled:n.has(e.qElemNumber)?U$.Selected:U$.Possible:U$.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),xU=Kg(e=>{const t=e(qV),r=e(ov).width,n=e(MH);return t>0&&t+n<r}),SU=()=>{const[e,t]=I(!1);return dj({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?nr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},wU=(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}),CU=Kg(e=>{const t=e(kb),r=e(ev);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,c=o?i:i-t,u=await r.getEffectiveProperties(),d=u.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=u.qHyperCubeDef.qMeasures.at(c)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${c}/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"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),r.applyPatches(p,!0)}}),EU=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},RU=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),AU=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),IU=e=>e.atTop?2:1,kU=(e,t)=>({top:e?IU(t):0,bottom:e&&t.atBottom?1:0}),PU=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],DU=e=>e?.setAttribute("tabIndex","0"),MU=e=>e?.setAttribute("tabIndex","-1"),TU=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(MU)},qU=e=>{e?.focus(),DU(e)},OU=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${ig}`);qU(t)},0)},LU=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{TU(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[c,u]=r;switch(e.key){case og.Down:c<s&&c++;break;case og.Up:c>a&&c--;break;case og.Right:if(i)break;[c,u]="rtl"===n?RU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):AU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case og.Left:if(i)break;[c,u]="rtl"===n?AU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):RU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case og.Home:(lU(e)||i)&&(c=a),i||(u=0);break;case og.End:(lU(e)||i)&&(c=s),i||(u=l);break;case og.PageDown:c=Math.min(s,c+10);break;case og.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,r,i,o),s=PU(t,a);return qU(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}},NU=(e,t,r,n)=>{TU(t),r(e),n.enabled&&!n.active?n.focus?.():qU(PU(t,e))},jU=(e,t,r)=>{const n=e.currentTarget;if(!n)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${tg}`))return;const i=!!o&&n.contains(o);!r.enabled||t.current||i||(e=>{const t=e.querySelector(`.${Y$.First}`),r=e.querySelector(`.${Y$.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),((e,t,r)=>{const n=e.currentTarget;if(!r.enabled||t.current||!n)return;const o=e.relatedTarget??document.activeElement;o&&n.contains(o)||r.blur?.(!1)})(e,t,r)},_U=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),zU=_c(Kh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...fH,...e,cursor:t.active?"pointer":"default",background:n,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}})),FU=_c("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:uH,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),$U=parseInt(uH,10)/2,HU=_c("div")({position:"absolute",bottom:-$U,left:`calc(50% - ${$U}px)`}),BU=_c(um)({position:"sticky",top:0,zIndex:1}),VU={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},WU=_c(Pd)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),UU=_c("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isDual"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1,isDual:o=!1})=>n&&!o||1===e&&!t?{...VU,whiteSpace:"nowrap",display:r?"block":void 0}:{...VU,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),GU=_c("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),KU="cell-text",YU=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=ab(xV);return o?nr.jsx(UU,{"data-testid":KU,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):nr.jsx(UU,{"data-testid":KU,ref:t,className:"sn-table-cell-text",isDual:i,isNumeric:r,lineClamp:a??s.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},XU=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=ab(Db),l=ab(CU),c=ab(Ub),u=ab(_b),d=ab(db),p=ab(cv),f=ab(cb),h=ab(DV)[t.pageColIdx],m=ab(Qb),g=k(null),b=k(null),v=(({column:e,columnWidth:t})=>{const r=ab(xV),{measureText:n}=Bm({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:dH});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,c=t-25,u=s?20:0,d=l?20:0;let p=n(e.label);return s&&p+u<=c&&(a=!0,p+=u,l&&p+d<=c&&(i=!0,p+=d)),!s&&l&&p+d<=c&&(i=!0,p+=d),p+24<=c&&(o=!0),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?nr.jsx(hW,{height:uH,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(bW,{height:uH,"data-testid":"head-cell-sort-descending-icon"}),a=r?nr.jsx(FU,{align:t,dir:o,children:i}):void 0,s=n?nr.jsx(AH,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:nr.jsx(_U,{height:uH,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return nr.jsxs(RH,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:vH(t,i,c),children:[S,nr.jsxs(EH,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,nr.jsx(YU,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?nr.jsxs(nr.Fragment,{children:[nr.jsx(DW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[IW.Sorting]:!0,[IW.Searching]:!0,[IW.Selections]:!0,[IW.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:u,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:OU},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),nr.jsx(CH,{ref:b,direction:c,isPagination:i}),nr.jsx(CH,{ref:g,direction:c})]}):null]})},JU=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),ZU=(e,t)=>e.isCyclic&&t,QU=({column:e})=>{const t=ab(xV),r=ab(Ub),n=ab(Qb),o=S.useRef(null),[i,a]=S.useState(!1),s=$V({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return nr.jsxs(nr.Fragment,{children:[nr.jsx(kH,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:nr.jsx(JU,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),nr.jsx(lW,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:Iz,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},eG=e=>e.isLocked,tG=({column:e})=>{const t=ab(cb),r=ab(Db),n=ab(Cb),o=ab(xV);return nr.jsx(kH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,onClick:o=>{o.stopPropagation(),(async(e,t,r,n={warn:()=>{},error:()=>{}})=>{const o=uW(t??"$",r);let i;try{const t=await(e?.createSessionObject(o));i=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){n.error({msg:"Failed to unlock field from table header",payload:e})}finally{i&&(await(e?.destroySessionObject(i))||n.error({msg:"Failed to destroy session object when unlocking field from table header"}))}})(t,r,e,n)},children:nr.jsx(_U,{height:16,"data-testid":"head-cell-lock-icon"})})},rG=({column:e,menuIconRef:t,open:r,setOpen:n})=>{const o=ab(xV);return nr.jsx(kH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:r,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),n(e=>!e)},ref:t,children:nr.jsx(FV,{height:16})})},nG=({anchorRef:e,column:t,isPagination:r,listboxRef:n,open:o,setOpen:i})=>{const a=ab(cb),s=ab(Ub),l=ab(db),c=ab(_b),u=ab(Qb),d=ab(Db),p=ab(cv),f=ab(CU);return nr.jsx(DW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[IW.Sorting]:!0,[IW.Searching]:!0,[IW.Selections]:!0,[IW.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),f?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:n},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:OU},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:r})},oG=Kg();oG.onMount=e=>{const t=new Map,r=new ResizeObserver(e=>{for(const r of e){const e=t.get(r.target);e&&e.current(r)}});return e({callbacks:t,observer:r}),()=>{t.clear(),r.disconnect()}};const iG=({ref:e,callback:t})=>{const r=ab(oG),n=k(t);n.current=t,L(()=>{const t=e.current;return void 0===r?()=>{}:(t&&(r.callbacks.set(t,n),r.observer.observe(t)),()=>{t&&(r.callbacks.delete(t),r.observer.unobserve(t))})},[e,n,r])},aG=_c(Pd)({display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",boxSizing:"border-box"}),sG=({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.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 iG({ref:t,callback:i}),nr.jsx(aG,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},lG=({children:e})=>e,cG=(e,t)=>!e.isLocked&&e.isDim&&t,uG=({column:e,open:t,setOpen:r})=>{const n=ab(xV),o=ab(Db),i=ab(Ub),a=ab(db);ab(cb);const s=S.useRef(null),l=q(()=>{r(!1)},[r]),c=cW({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return nr.jsx(kH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:nr.jsx(SW,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},dG=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),pG=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),fG=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?nr.jsx(pG,{height:uH,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(dG,{height:uH,"data-testid":"head-cell-sort-descending-icon"});return r?nr.jsx(HU,{children:n}):void 0},hG=0,mG=1,gG=2,bG=3,vG=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=ab(xV),c=ab(Ub),{measureText:u}=Bm(l.header),[d,p]=I(!1),f=k(null),h=k(null),m=k(null),g="number"==typeof a&&a>ag.PixelsMin+18;return nr.jsxs(nr.Fragment,{children:[nr.jsxs(sG,{children:[nr.jsx(lG,{prio:gG,minWidth:wH,children:eG(t)?nr.jsx(tG,{column:t}):null},"Lock"),nr.jsx(lG,{prio:mG,minWidth:wH,children:ZU(t,s)?nr.jsx(QU,{column:t}):null},"Cyclic"),nr.jsx(lG,{ignore:!0,children:nr.jsx(fG,{column:t})},"Sort"),nr.jsx(lG,{minWidth:u(t.label)+8,children:nr.jsx(IH,{justifyContent:t.headTextAlign,children:nr.jsx(YU,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),nr.jsx(lG,{prio:g?void 0:hG,minWidth:wH,children:d||cG(t,s)?nr.jsx(uG,{open:d,setOpen:p,column:t}):null},"Search"),nr.jsx(lG,{prio:bG,minWidth:wH,children:s?nr.jsx(rG,{menuIconRef:m,column:t,open:r,setOpen:n}):null},"Menu")]}),s?nr.jsxs(nr.Fragment,{children:[nr.jsx(CH,{ref:h,direction:c,isPagination:o}),nr.jsx(CH,{ref:f,direction:c}),nr.jsx(nG,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:r,setOpen:n})]}):null]})},yG=_c("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:r})=>({...t,background:e,color:r})),xG=()=>{},SG=({column:e,isPagination:t})=>{const r=ab(xV),n=ab(Ub),o=ab(xU),i=ab(oV),a=!1,s=ab(qb)?XU:vG;return nr.jsx(yG,{className:"sn-table-cell",applicableStyle:{...r.header,...wU(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:xH(n,a,o),borderLeftWidth:SH(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:e.headerColor?.background??r.header.background,color:e.headerColor?.color??r.header.color,children:nr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:xG})})},wG=({isPagination:e})=>{const t=ab(iV),[r,n]=I();dj({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?nr.jsx(HN,{children:nr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:nr.jsx(SG,{column:o,isPagination:e})})}):null},CG=oA(Kg(async e=>{e(Rb);const t=e(ev);return t?.getEffectiveProperties()}),e=>e),EG=Kg(e=>e(CG)?.qHyperCubeDef),RG=[YL.configure({activationConstraints:[new WL.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],AG=gN.plugins.filter(e=>e!==CO),IG=(e,t,r)=>{const n=JSON.stringify(t),o=JSON.stringify(r);if(n!==o)return{qPath:e,qOp:"Replace",qValue:o}},kG=(e,t,r,n,o)=>{if(!e||!t||n===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:r,visibleColumnIds:n,sourceId:o,targetId:i})=>{const a=Qz({qDimensions:e,qMeasures:t}),s=[...e,...t],l=n.findIndex(e=>e===o),c=n.findIndex(e=>e===i);if(l<0||c<0||l===c)return;const u=((e,t,r)=>{const n=[...e],[o]=n.splice(t,1);return n.splice(r,0,o),n})(n,l,c),d=new Map(u.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const r=d.get(e.id),n=d.get(t.id);return void 0===r||void 0===n?0:r-n}),f=p.filter(e=>e.isDimension).map(e=>e.def),h=p.filter(e=>!e.isDimension).map(e=>e.def),m=[...f,...h],g=new Map(m.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:f,qMeasures:h,qInterColumnSortOrder:eF({previousColumns:s,nextColumns:m,qInterColumnSortOrder:r}),qColumnOrder:u.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:r.map(e=>e.id),sourceId:n,targetId:o});if(!i)return;const a=[IG("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),IG("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),IG("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),IG("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},PG=({children:e})=>{const t=ab(ev),r=ab(EG),n=ab(iV);return nr.jsx(zN,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&kG(t,r,n,o,i)},sensors:RG,plugins:AG,children:e})};function DG(e,t){const r=k(!1);M(()=>{r.current?e():r.current=!0},t)}const MG=(e,t)=>{const r=ab(Zb);M(()=>{const n=e.current;if(!n)return;const o=e=>{jU(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])},TG=Kg(X$),qG=hI(e=>Kg(t=>{const[r,n]=t(TG);return 0===r&&n===e})),OG=()=>{const e=ab(ub);M(()=>{e.notifyIsDoneRendering()})};var LG={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 NG=Kg(e=>{const t=e(cv),r=e(iv),n=e(Cb);let o;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(LG).forEach(t=>{e.add(LG[t])})}(t),({keys:e,politeness:i="polite"})=>{const a=e.map(e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)}).join(" "),s=r.querySelector(`.${Y$.First}`),l=r.querySelector(`.${Y$.Second}`);if(!s||!l)return void n.error({msg:"could not find aria-live elements, which means accessibility is not working properly"});let c;o===Y$.First?(c=l,o=Y$.Second):(c=s,o=Y$.First),c.innerHTML=c.innerHTML.endsWith(" ­")?a:`${a} ­`,c.setAttribute("aria-live",i)}}),jG=(e,t)=>{const r=ab(NG),n=ab(iv),o=ab(cV),i=ab(lV),a=ab(sV),s=ab(oV),[l,c]=lb(TG),u=ab(Lb),d=ab(Zb);DG(()=>{const t=((e,t,r=!1)=>{const n=[IU(t),e[1]];return r?n:X$})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(TU(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=PU(t,e);r.current?(qU(s),r.current=!1):DU(s),n&&(a({keys:[s?.textContent??""]}),sU(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:r})},[a.length,i,o,t])},_G=e=>{Tm(e),lU(e)&&fg(e.currentTarget)},zG=e=>{pU(e.evt)&&(Tm(e.evt),LU(e))},FG=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!pU(t))return;Tm(t);const i=((e,t)=>[e.pageRowIdx+IU(t),e.pageColIdx])(n,r),a=kU(o,r),{nextCell:s,nextCellCoord:l}=LU({...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:G$.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):sU(o,a,i)})({...e,nextCell:s})},$G=e=>{const{evt:t}=e;cU(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{Tm(e);const a=Math.ceil(t/r)-1;e.key===og.Right&&n<a?(o(),i(n+1)):e.key===og.Left&&n>0&&(o(),i(n-1))})(e):t.key===og.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(Tm(e),t.blur?.(!0))})(e):uU(t.key)&&Tm(t)},HG=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(U$.Disabled))return void Tm(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case og.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{Tm(e),t.isSelectable&&r&&n({type:G$.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case og.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{Tm(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case og.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(Tm(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case og.C:_G(t);break;case og.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(Tm(e),Mm(e.currentTarget,t,e.shiftKey))})(n);break;default:FG(n)}},BG=e=>{const t=ab(PH),r=sb(DH),n=sb(MH),o=ab(W$),i=k();iG({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.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()}}),M(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},VG=_c("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),WG=_c(Zh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),UG=_c(Nh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),GG=()=>nr.jsxs(nr.Fragment,{children:[nr.jsx(VG,{className:Y$.First,"data-testid":Y$.First,"aria-live":"polite","aria-atomic":"true"}),nr.jsx(VG,{className:Y$.Second,"data-testid":Y$.Second,"aria-live":"polite","aria-atomic":"true"})]}),KG=e=>{const t=k(new Map),r=k(null);M(()=>{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])},YG=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),XG=()=>KG(YG),JG=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=ab(Nb),n=ab(Zb),o=sb(vU);M(()=>{const i=()=>{o({type:G$.Reset})},a=()=>{o({type:G$.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}},[r,n,o,e,t])},ZG=e=>{e.stopPropagation()},QG=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:ZG,color:Rm.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),eK=({href:e,text:t,interactions:r,color:n})=>nr.jsx(Yp,{...QG({href:e,text:t,interactions:r,color:n}),children:t}),tK=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),rK=window.cancelIdleCallback??(e=>{clearTimeout(e)}),nK="qDimensionInfo/0",oK="qMeasureInfo/0",iK="x",aK="y",sK=e=>({key:"bars",type:"box",data:{extract:{field:nK,props:{start:0,end:{field:oK}}}},settings:{major:{scale:iK},minor:{scale:aK},box:{maxWidthPx:8,fill:{fn:e}}}}),lK=e=>({key:"p",type:"point",data:{extract:{field:nK,props:{y:{field:oK}}}},settings:{x:{scale:iK},y:{scale:aK},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),cK=({qNum:e})=>void 0===e?0:Math.sign(e),uK=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=Pm(e,t?.negative,r),a=Pm(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:nK,props:{start:0,end:{field:oK,value:cK}}}},settings:{major:{scale:iK},minor:{scale:aK},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}}}}},dK=(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=Pm(e,t?.main,o),l=Pm(e,t?.max,s),c=Pm(e,t?.min,s),u=Pm(e,t?.first,s),d=Pm(e,t?.last,s);return e=>{const t=aK in e.datum?aK:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?c:e.data.items.at(0)===e.datum?u:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[sK(a)];case"dots":return[lK(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:nK,props:{v:{field:oK}}}},settings:{coordinates:{major:{scale:iK},minor:{scale:aK,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Pm(e,n?.main,e.getDataColorSpecials().primary));return r?[t,lK(a)]:[t]}case"posNeg":return[uK(e,n)];default:return[]}},pK=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"}),fK=(e,t,r,n)=>({y:{data:{field:oK},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:nK}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),hK=U();hK.use(W),hK.renderer.prio(["canvas"]);const mK={resolve:()=>{},promise:{}},gK=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:c}=(e=>{const t=k(e.isDownloadedAsPDForImage?Lt():mK);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;c();r.current=tK(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:c}=n;return hK.chart({element:e,data:{type:"q",key:"qHyperCube",data:pK(s)},settings:{scales:fK(a,l,c,i),components:dK(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,c,r,n,o,a,i,l]),safeCancelIdleCallback:q(()=>{null!==r.current&&rK(r.current),r.current=null,l()},[r,l])}},bK=e=>{const t=k(null),r=k(!1);return q(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(rK(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=tK(()=>{e.current?.update()},{timeout:2e3})):r.current=!1:r.current=!0},[e])},vK=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),c=k(null),{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:d}=gK({element:s,chart:l,requestId:c,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]);M(()=>{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:u,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{M(()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null}),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=bK(t);M(()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}},[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},yK=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=vK({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return nr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},xK=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}`},SK=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},wK=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=ab(Ub),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=nr.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:r,objectFit:SK(s),objectPosition:xK(l),overflow:"hidden"}});return n?nr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?r:"100%",overflow:"hidden",display:"flex",justifyContent:c?mH(o,e):void 0},children:u}):u},CK=_((e,t)=>nr.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:nr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),EK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),RK=_((e,t)=>nr.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:[nr.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"}),nr.jsx("use",{fillRule:"evenodd"})]})),AK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),IK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),kK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),PK=_((e,t)=>nr.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:nr.jsx("path",{d:"M2 7.5h12v1H2z"})})),DK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),MK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),TK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),qK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),OK={m:_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":TK,R:pG,S:dG,T:_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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:_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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:MK,Q:kK,"è":_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.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"})})),"¢":AK,"©":RK,"23F4":IK,2013:qK,"&":DK,add:CK,"minus-2":PK,dot:EK},LK=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&OK[t];return o&&nr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:nr.jsx(o,{style:{height:e}})})},NK=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=ab(xV),o=ab(Ub),i=ab(lv),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=sH(e,t,o,i),d=(e=>parseInt(e||uH,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=u||{};return l?nr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?p:void 0},children:["left"===h&&LK({size:d,iconKey:f,color:p}),nr.jsx(YU,{isNumeric:!0,children:a}),"right"===h&&LK({size:d,iconKey:f,color:p})]}):LK({size:d,iconKey:f,color:p})},jK=(e,t,r)=>e.contentStaticLineCount?t*(r??e.grid.contentLineClamp):t,_K=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=ab(xV),c=ab(CV),u=ab(ub),d=ab(Rb),p=ab(lv),f=ab(Ub),h=ab(_b),m=ab(Lb);if(t.representation.type===lF.Image&&!t.representation.url?.trim())return null;if(t.representation.type===lF.Image)return nr.jsx(wK,{representation:t.representation,textStyle:r,maxImageHeight:jK(l,c,o),wrapInContainer:!n});let g=t.representation.text;t.representation.type!==lF.Link||m||t.isNull||(g=nr.jsx(eK,{href:t.representation.url,text:t.representation.text,interactions:h,color:r.cellForegroundColor}));const b="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==lF.Indicator||Number.isNaN(b)?t.representation.type===lF.MiniChart&&t.representation.miniChart&&!t.isNull?nr.jsx(yK,{height:jK(l,c,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:u}):nr.jsx(YU,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:g}):nr.jsx(NK,{representation:t.representation,cellValue:b,paginationCellAlign:n?void 0:s})},zK=()=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:nr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),FK=_c("div")({"& path":{stroke:"none !important"}}),$K=({children:e,cellSelectionState:t,hideTickIcon:r})=>t!==U$.Selected||r?e:nr.jsxs(GU,{children:[e,nr.jsx(FK,{children:nr.jsx(zK,{})})]}),HK=e=>{const t=function(){const e=FN(),t=CN(()=>null==e?void 0:e.dragOperation.source,[e]),r=CN(()=>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},BK=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:G$.SelectMultiEnd})};r({type:G$.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:G$.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:G$.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),VK=e=>{const t=ab(uV),r=ab(oV),n=ab(NG),o=ab(iv),i=ab(Ub),a=sb(TG),s=sb(vU),l=ab(Zb),c=ab($b),u=ab(Nb),d=d=>{HG({evt:d,rootElement:o,selectionsAPI:u,cell:e,selectionDispatch:s,isSelectionsEnabled:c,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===og.Shift&&t({type:G$.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;NU([s,a],t,r,n)})(e,o,a,l,r)};if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=BK(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},WK=e=>{M(()=>()=>{yU.remove(e)},[e])},UK=(e,t,r,n)=>{if(!r.isNull)return e;const o=n?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=n?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=n?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},GK=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},KK=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return GK(t,e,n?"even":"odd")}return e},YK=(e,t)=>{const r=ab(xV),n=ab(yU(e)),o=ab(wb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");WK(e);let a=t.isDim?r.dimension.values:r.measure.values;a=KK(a,r,e),a=i?r.subTotalRow:a,a=UK(a,r,e,t.isDim);const s=e.isNull||i&&t.isDim?a:HH(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,r){return t===U$.Selected?{...e,...r}:t===U$.Disabled?{...e,background:`${lH}, ${e.background}`}:e}(s,n,r.selectedColors);return{cellStyle:{...l,borderColor:r.grid.border},representationStyle:s,cellSelectionState:n}},XK=_c(Bh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),JK=_c(um,{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}}})),ZK=_c(Kh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...fH,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),QK=_c(Kh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...fH,...e,fontWeight:dH,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})),eY=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=ab(Ub),a=ab(_b),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=VK(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=YK(e,t),m=HK(t.id);return nr.jsx(ZK,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${ng}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:nr.jsx($K,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:nr.jsx(_K,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:yH(i,e.align)})})})},tY=Kg(0),rY=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=ab(xV),i=ab(Fb),a=ab(tY),s=HK(e.id);return nr.jsx(QK,{totalsStyle:{...o.totalRow,...wU(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${ng}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:nr.jsx(YU,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},nY=()=>{const e=ab(oV),t=ab(iV),r=ab(sV),n=ab(iv),o=ab(zb),i=ab(Ub),a=sb(TG),s=ab(Lb),l=ab(Zb);return nr.jsx(um,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:r.length+1,c];return nr.jsx(rY,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case og.C:_G(r);break;case og.Space:r.preventDefault();break;default:zG(e)}else Tm(r)})({evt:e,rootElement:n,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{NU(u,n,a,l)}},t.id)})})};var oY=j(nY);const iY=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=ab(sV),n=ab(oV),o=ab(iV),i=ab(xV),a=ab(EV),s=ab(RV),l=ab(Rb),c=!!_H(l)?.content?.hoverEffect;JG({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=q(t=>new IntersectionObserver(e=>{e.forEach(e=>{const r=t.get(e.target);r?.(e)})},{root:e.current}),[e]);return KG(t)})(t),d=XG();return nr.jsxs(XK,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?nr.jsx(oY,{}):void 0,r.map((e,t)=>{const r=e.at(0)?.isTotalRow??!1;return nr.jsx(JK,{hoverColors:i.grid.hoverColors,hover:c,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:r?s:a,children:o.map((t,r)=>{const{id:n}=t,o=e[r];return nr.jsx(eY,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},n)})},`row-${t}`)}),n.atBottom?nr.jsx(oY,{}):void 0]})};var aY=j(iY);const sY=(e,t)=>!!e?.skipHeader||!!t.hideHeader,lY=Kg(e=>{const t=e(Rb),r=e(Qb);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}}),cY=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=ab(lY),s=ab(Ub),l=ab(zb),c=ab(cv),[u,d]=lb(DV);if(!l)return null;return nr.jsx(zV,{columnWidth:u.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...u];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{MU(e);const t=e.closest(".sn-table-cell");qU(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},uY=e=>e.target?.getAttribute("class")?.includes(ig),dY=({isInteractionEnabled:e,column:t})=>{const[r,n]=I(!1),o=ab(CU),i=ab(PH);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||uY(t)||i||n(!0)},toggleSortOrder:r=>{e&&!uY(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var pY=class extends UM{constructor(e,t){super(e,t),this.boundingRectangle=YI(null),this.destroy=ik(()=>{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=aT(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,c=o.center.y-a/2,u=function(e,t,r){const n=Aj({},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 RP(l,c,s,a),r,n);return u}};pY.configure=uD(pY);const fY=({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/EP.distance(r.shape.center,s),type:xM.Collision,priority:yM.Normal}:null},hY=[pY.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],mY=(e,t)=>{const r=ab(Ub),n=!ab(Bb);return V_({id:e.id,disabled:n,index:t,type:"item",accept:"item",group:"column",modifiers:hY,data:e,plugins:e=>[...e,mL.configure({feedback:"clone"})],collisionDetector:fY({invert:"rtl"===r})})},gY=({column:e,columnIndex:t,columnsLength:r})=>{const n=ab(xV),o=ab(iv),i=ab(Ub),a=ab(_b),s=ab(iV),l=ab(oV),c=ab(DV)[t],u=sb(TG),d=ab(qG(t)),p=ab(Bb),f=ab(Zb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=dY({isInteractionEnabled:p,column:e}),v=sb(PH),{ref:y,isDragging:x}=mY(e,t),S=HK(e.id),w=ab(qb),C=w?XU:vG,E=e.isActivelySorted?K$[e.sortDirection]:void 0,R=h?rg:void 0,A=h?"true":void 0,I=t===r-1,k=[0,e.pageColIdx],P={width:c,zIndex:s.length-t},D=d&&0===t&&!f.enabled&&p?0:-1;return nr.jsxs(zU,{"data-dragging":x,ref:y,headerStyle:{...n.header,...wU(n,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground:e.headerColor?.background??n.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,color:e.headerColor?.color??n.header.color,interactions:a,style:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${ng}`,tabIndex:D,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case og.C:_G(r);break;case og.Enter:case og.Space:n?.(r);break;default:zG(e)}else Tm(r)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&NU(r,t,n,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[nr.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),nr.jsx(cY,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},bY=()=>{const e=ab(iV),t=ab(xV),r=ab(Rb),n=ab(Kb),o=sb(tY),i=ab(DV),a=k(null),s=sY(n,r);return M(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),nr.jsx(om,{style:{visibility:s?"collapse":void 0},children:nr.jsx(BU,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,r)=>nr.jsx(gY,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var vY=j(bY);var yY=j(()=>{const e=ab(NG),[t,r]=lb(YB),{page:n,rowsPerPage:o}=t,i=ab(Gb),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=ab(nV),p=ab(xV),f=ab(TB),h=ab(Rb),m=ab(lv),g=ab(ov),b=ab(iv),v=ab(Kb),y=ab(Ub),x=ab(_b),S=ab(cv),w=ab(xU),C=sb(vU),E=ab(Lb),R=ab(Zb),A=k(!1),I=k(null),P=k(null),D=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=Vb(h,v),O=T?f.scrollLeft??0:0,L=T?f.rowPartialHeight??0:0,N=q(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=q(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),_=q(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return(e=>{const t=ab(Ub),r=ab(TB);M(()=>{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,{scrollLeft:o}=r;let i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&e.preventDefault()})(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])})(I),MG(P,A),(()=>{const e=ab(iv),t=ab(Zb),r=ab(TG);Ym(()=>{const n=PU(e,r);t.active?qU(n):(n?.blur(),TU(e))},[t.active,e])})(),jG(A,n),M(()=>{const e=I.current;e&&(e.scrollLeft=O,e.scrollTop=L)},[t,s,O,L]),DG(()=>{C({type:G$.UpdatePageRows,payload:{pageRows:u}})},[u]),OG(),BG(I),nr.jsxs(PG,{children:[nr.jsxs(WU,{ref:P,dir:y,onKeyDown:e=>{$G({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[nr.jsx(GG,{}),nr.jsxs(WG,{ref:I,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[nr.jsxs(UG,{stickyHeader:!0,"aria-label":D,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[nr.jsx(vY,{}),nr.jsx(aY,{updateShouldRefocus:N,tableWrapperRef:P})]}),nr.jsx(SU,{})]}),nr.jsx(iU,{footerContainer:i,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),nr.jsx(wG,{isPagination:!0})]})});const xY=Kg(0),SY=Kg(e=>{const t=e(Ab);return Math.min(BH,t)}),wY=Kg(e=>{const t=e(Ab);return t===BH?0:Math.floor(t/BH)}),CY=Kg(e=>{const t=e(xY),r=e(wY);return Math.min(t,r)}),EY=Kg(e=>({page:e(CY),rowsPerPage:e(SY),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(wY);t(xY,Math.max(0,Math.min(r,n)))}),RY=Kg(null),AY=Kg(null),IY=Kg(e=>{const t=e(EY),r=e(Ab);return Math.min(t.rowsPerPage,r-t.page*t.rowsPerPage)}),kY=Kg(null),PY=Kg(null),DY=Kg(e=>e(oV).atTop?2:1),MY=Kg(e=>e(oV).atTop?1:e(DY)+e(IY)),TY=Kg(e=>kU(Boolean(e(Lb)),e(oV))),qY=Kg(e=>({firstBodyRowIdx:e(DY),totalsRowIdx:e(MY),allowedRows:e(TY)})),OY=Kg(e=>({rootElement:e(iv),totalsPosition:e(oV),rowCount:e(IY),colCount:e(aV),columnWidths:e(DV)})),LY=Kg(e=>({scrollToCell:e(kY),scrollableContainerElement:e(PY)})),NY=Kg(e=>({keyboard:e(Zb),isInSelectionMode:e(Lb),selectionsAPI:e(Nb),isSelectionsEnabled:e($b)})),jY=Kg(e=>({direction:e(Ub),isInteractionEnabled:e(Bb),paginationNeeded:e(uV),announce:e(NG),shouldRefocusRef:e(RY)})),_Y=10,zY=e=>e.atTop?2:1,FY=(e,[t,r],n,o)=>{const i=zY(n);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${r}"]`);if(n.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${r}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${r}"]`):e.querySelector(`.sn-table-totals-row [data-col="${r}"]`)},$Y=(e,t,r,n,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=r,d=c-zY(n),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,u),m=requestAnimationFrame(()=>{if(g())return;const e=((e,t)=>{if(!e||!t)return!1;const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom&&r.left>=n.left&&r.right<=n.right})(FY(t,r,n,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},HY=(e,t,r,n,o,i)=>e<i?[t,e+1]:t<n?[t+1,o]:[t,e],BY=(e,t,r,n,o,i)=>e>o?[t,e-1]:t>r?[t-1,i]:[t,e],VY=(e,[t,r],n,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,c=a.top,u=n-1-a.bottom,d=o-1;switch(e.key){case og.Down:case og.Up:t=((e,t,r,n)=>e===og.Down&&t<n?t+1:e===og.Up&&t>r?t-1:t)(e.key,t,c,u);break;case og.Right:l||([t,r]=((e,t,r,n,o,i,a)=>"rtl"===a?BY(e,t,r,0,o,i):HY(e,t,0,n,o,i))(r,t,c,u,0,d,i));break;case og.Left:l||([t,r]=((e,t,r,n,o,i,a)=>"rtl"===a?HY(e,t,0,n,o,i):BY(e,t,r,0,o,i))(r,t,c,u,0,d,i));break;case og.Home:l?t=Math.max(c,t-_Y):(lU(e)&&(t=c),r=0);break;case og.End:l?t=Math.min(u,t+_Y):(lU(e)&&(t=u),r=d);break;case og.PageDown:t=Math.min(u,t+_Y);break;case og.PageUp:if(l)t=Math.max(c,t-_Y);else{const e=s?zY(s):1,r=t-e;t=r>0&&r<=_Y?e:Math.max(c,t-_Y)}}return[t,r]},WY=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},UY=[og.Home,og.End,og.PageUp,og.PageDown],GY=()=>{const e=k(!1),t=k(0),r=k(0),n=k(null),o=k(null),i=k(null),a=k(0),s=sb(TG),l=sb(vU),c=ab(wb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=ab(OY),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=ab(qY),{scrollToCell:v,scrollableContainerElement:y}=ab(LY),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=ab(NY),{direction:E,announce:R,isInteractionEnabled:I,paginationNeeded:P,shouldRefocusRef:D}=ab(jY),T=A(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let r=0;r<e.length;r++)t[r+1]=t[r]+(e[r]??0);return t})(h),[h]);M(()=>()=>{t.current+=1,r.current+=1,a.current+=1,n.current?.(),n.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const O=q((e,t,r,n)=>{const o=t=>{if(n&&!n())return void r?.(!1);const i=FY(u,e,d,p);if(i)return document.activeElement!==i&&EU(i),document.activeElement===i?void r?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void r?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):r?.(!1)};requestAnimationFrame(()=>{o(t)})},[u,d,p]),L=q((e,t)=>{const n=a.current+1;a.current=n;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==n)return;if(r.current!==t)return;if(u instanceof HTMLElement&&!u.isConnected)return;if(Date.now()>s||i>=5)return;const c=document.activeElement;c&&c!==document.body&&c!==document.documentElement||(i+=1,D&&(D.current=!0),o.current?.(),o.current=$Y(v,u,e,d,p,y,10,()=>a.current===n&&r.current===t,()=>{O(e,300,()=>{D&&(D.current=!1)},()=>a.current===n&&r.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[O,u,p,v,y,D,d]),N=q(()=>(D&&(D.current=!0),t.current+=1,t.current),[D]),j=q(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=q((e,r)=>{const n=o=>{t.current===e&&(i.current?.(),i.current=$Y(v,u,r,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=FY(u,r,d,p);i&&document.activeElement!==i&&EU(i),o>0?requestAnimationFrame(()=>{n(o-1)}):t.current===e&&D&&(D.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{n(300)})})},[u,d,p,v,D,y]),z=q((e,t)=>{if(!pU(e))return;Tm(e),j(),r.current+=1;const o=r.current;a.current+=1,n.current?.(),n.current=null;const i=((e,t)=>zY(t)+e+(t.atBottom?1:0))(p,d),l=VY(e,t,i,f,E,g,d);WY(u),s(l);const[,c]=l,[,h]=t;return c!==h&&((e,t,r)=>{if(!e)return;const n=t[r]??0,o=t[r+1]??n,{scrollLeft:i,clientWidth:a}=e;n<i?e.scrollLeft=n:o>i+a&&(e.scrollLeft=o-a)})(y,T,c),D&&(D.current=!0),n.current=$Y(v,u,l,d,p,y,10,()=>r.current===o,()=>{O(l,300,t=>{D&&(D.current=!1),t&&(e=>UY.includes(e))(e.key)&&L(l,o)},()=>r.current===o)}),l},[u,d,p,f,E,v,s,g,y,D,O,j,T,L]),F=q(e=>{e.key===og.Esc?x.enabled&&!S&&(Tm(e),x.blur?.(!0)):uU(e.key)&&Tm(e)},[x,S]),$=q((e,t,r)=>{switch(e.key){case og.C:Tm(e),I&&(e.ctrlKey||e.metaKey)&&fg(e.currentTarget);break;case og.Enter:case og.Space:if(!I){Tm(e);break}r?.(e);break;default:z(e,[0,t])}},[z,I]),H=q((t,n,o,i)=>{const a=[n+m,o];switch(t.key){case og.Space:if(Tm(t),i.isSelectable&&C){e.current=!0;const r=N();l({type:G$.Select,payload:{cell:i,evt:t,announce:R}}),_(r,a)}break;case og.Enter:if(Tm(t),e.current=!1,S){N(),s(X$),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),r.current+=1;const t=r.current;O(X$,300,()=>{D&&(D.current=!1)},()=>r.current===t)}break;case og.Esc:if(e.current=!1,S){Tm(t);const e=N();w?.cancel(),_(e,a)}break;case og.C:Tm(t),I&&(t.ctrlKey||t.metaKey)&&fg(t.currentTarget);break;case og.Tab:{const e=t.shiftKey||!P;x.enabled&&S&&e&&(Tm(t),Mm(t.currentTarget,x,t.shiftKey));break}default:{const r=t.key===og.Left||t.key===og.Right,n=S||Boolean(w?.isModal())||e.current;if(r&&n){Tm(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:G$.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,P,I,N,_,s,v,y,O,D]),B=q(t=>{t.key===og.Space&&(e.current=!1),t.key===og.Shift&&l({type:G$.SelectMultiEnd})},[l]),V=q((e,t)=>{if(S)Tm(e);else{if(e.key!==og.Space)return e.key===og.C?(Tm(e),void(I&&(e.ctrlKey||e.metaKey)&&fg(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,I]),W=q(e=>{j(),r.current+=1;const t=r.current;WY(u),s(e),x.enabled&&x.focus?.(),O(e,2,r=>{r&&L(e,t)},()=>r.current===t)},[u,s,x,O,j,L]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:q(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:q((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:q(e=>{c&&W([b,e])},[W,b,c])}};var KY=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function YY(e,t){return e===t||!(!KY(e)||!KY(t))}function XY(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!YY(e[r],t[r]))return!1;return!0}function JY(e,t){var r;void 0===t&&(t=XY);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}}var ZY="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function QY(e){cancelAnimationFrame(e.id)}function eX(e,t){var r=ZY();var n={id:requestAnimationFrame(function o(){ZY()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var tX=-1;function rX(e){if(void 0===e&&(e=!1),-1===tX||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),tX=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return tX}var nX=null;function oX(e){if(void 0===e&&(e=!1),null===nX||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?nX="positive-descending":(t.scrollLeft=1,nX=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),nX}return nX}var iX=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function aX(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=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,iu(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:iu(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=JY(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=JY(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,c=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&c),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:u(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=JY(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,c=i;if("rtl"===t)switch(oX()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,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&&QY(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=eX(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Yc(t,e),t.getDerivedStateFromProps=function(e,t){return sX(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,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=rX();void 0!==n&&(n=Math.max(0,Math.min(n,u-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?c(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(oX()){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&&QY(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,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?iX: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(),A=R[0],I=R[1],k=[];if(n>0&&g)for(var P=A;P<=I;P++)for(var D=C;D<=E;D++)k.push(w(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,D)}));var M=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:$r({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(c||u||"div",{children:k,ref:l,style:{height:M,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],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,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,c=l.horizontalScrollDirection,u=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=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?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,c=a.scrollTop,u=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);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 sX=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},lX=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},cX=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},uX=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 c=a+1;c<=r;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},dX=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?pX(e,t,r,i,0,n):fX(e,t,r,Math.max(0,i),n)},pX=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=uX(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},fX=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&uX(e,t,n,r).offset<o;)n+=a,a*=2;return pX(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},hX=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=uX(e,t,r,i),c="column"===e?cX(t,i):lX(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);default:return o>=d&&o<=u?o:d>u||o<d?d:u}},mX=aX({getColumnOffset:function(e,t,r){return uX("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return dX("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=uX("column",e,t,n),s=r+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=uX("column",e,c,n).size;return c},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:lX,getEstimatedTotalWidth:cX,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return hX("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return hX("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return uX("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return dX("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=uX("row",e,t,n),s=r+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=uX("row",e,c,n).size;return c},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}}),gX=function(e,t){return e};function bX(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,iu(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:iu(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=JY(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=JY(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,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[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;u[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=JY(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(oX()){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&&QY(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=eX(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Yc(t,e),t.getDerivedStateFromProps=function(e,t){return vX(e,t),u(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?rX():0:l.scrollHeight>l.clientHeight?rX():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(oX()){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&&QY(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,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?gX: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],A=[];if(c>0)for(var I=E;I<=R;I++)A.push(w(t,{data:u,key:p(I,u),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var k=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:$r({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"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 c=a(this.props,l,this._instanceProps),u=s(this.props,c,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,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var vX=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},yX=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 c=n(l);o[l]={offset:a,size:c},a+=c}r.lastMeasuredIndex=t}return o[t]},xX=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=yX(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},SX=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&yX(e,r,t).offset<n;)r+=i,i*=2;return xX(e,t,Math.min(r,o-1),Math.floor(r/2),n)},wX=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},CX=bX({getItemOffset:function(e,t,r){return yX(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:wX,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=yX(e,t,o),p=wX(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===r&&(r=n>=h-u&&n<=f+u?"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?xX(e,t,o,0,r):SX(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,c="horizontal"===o||"horizontal"===s?l:i,u=yX(e,t,n),d=r+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=yX(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 EX(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 RX=["style"],AX=["style"];function IX(e,t){var r=e.style,n=Hr(e,RX),o=t.style,i=Hr(t,AX);return!EX(r,o)&&!EX(n,i)}const kX=Kg(0),PX=Kg(0),DX=Kg(0),MX=Kg(e=>e(kX)+e(PX)),TX=Kg(e=>{const t=e(ov),r=e(uV),n=t.height-(r?41:0);return{width:t.width,height:n}}),qX=Kg(e=>{const t=e(TX),r=e(DH),n=e(MH);return{width:t.width-n,height:t.height-r}}),OX=Kg(e=>{const t=e(qX),r=e(MX),n=e(DX);return Math.min(t.height-r,n)}),LX=Kg(-1),NX=hI(e=>Kg(t=>t(LX)===e)),jX=({style:e})=>nr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var _X=S.memo(jX,IX);const zX=Kg(e=>{const t=e(qX),r=e(EV),n=e(MX),o=e(DX)+n,i=e(IY)*r+n;return o<2*t.height?o:i}),FX=Kg(e=>e(zX)<=e(TX).height),$X=()=>{},HX=e=>{e.preventDefault()};const BX=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:c,onKeyDown:u,onKeyUp:d,onCellClick:p}=n,f=ab(NX(t)),h=sb(LX),m=ab(xV),g=ab(Ub),b=ab(Fb),v=ab(Bb),y=ab(xU),x=ab(wb),S=ab(FX),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:A}=function(e){const t="object"==typeof e,r=ab($b),n=sb(vU),o=ab(yU(e));if(WK(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=BK(HX,e,n,$X);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),I=((e,t,r,n)=>{const o=k(null),i=r&&(!r.isNumeric||r.isDual),a=r?.isTotalRow??!1,s=q(r=>{const o=r.contentBoxSize.at(0)?.blockSize;o&&i&&n(o,e,t,a)},[a,t,n,e,i]);return iG({ref:o,callback:s}),o})(t,e,w,s),P=i[e]?.isDim?m.dimension.values:m.measure.values,D=HK(i[e].id);if("object"==typeof w){const n=((e,t,r,n,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS");let l=KK(o,i,e);l=s?i.subTotalRow:l,l=UK(l,i,e,t.isDim);const c=e.isNull||s&&t.isDim?l:HH(l,e.qAttrExps,t.qAttrExprInfoIDs);return n!==U$.Selected||s?n!==U$.Disabled||s?r?{...c,...i.grid.hoverColors}:c:{...c,color:r?i.grid.hoverColors?.color:c.color,background:`${lH}, ${r?i.grid.hoverColors?.background:c.background}`}:{...c,...i.selectedColors}})(w,i[e],a&&f,A,P,m,x),o={rowindex:t,columnindex:e},s=r=>{v&&p?.(t,e),C?.(r)},k=u?r=>{u(r,t,e,w)}:void 0;return nr.jsx("div",{className:`sn-table-cell ${A} ${ng}`,tabIndex:-1,style:{...r,...n,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:xH(g,w.isLastColumn,y),borderLeftWidth:SH(g,w.isLastColumn,y),justifyContent:gH(w,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:D},onMouseDown:s,onMouseUp:R,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:k,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:nr.jsx($K,{cellSelectionState:A,hideTickIcon:!!w.isTotalRow,children:nr.jsx(_K,{forwardRef:m.contentStaticLineCount||1===l?void 0:I,cell:w,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return nr.jsx(_X,{style:{...r,...P,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:D}})};var VX=j(BX,IX);const WX=oA(Kg(async e=>{const t=e(Rb),r=e(Qb),n=e(EY).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(BH,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),UX=Kg(e=>{const t=e(IY),r=e(qX),n=e(EV);return Math.min(t,Math.ceil(r.height/n))}),GX=Kg(e=>{const t=e(DV),r=e(qX);return t.reduce((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),KX=e=>{const t=k(e);return t.current=e,t},YX=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,XX=e=>-1===e.qElemNumber||!!e.qIsTotalCell,JX=(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},ZX=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},QX=(e,t,r,n,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,c)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,c)=>{const{qSize:u}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[],h=t.some(XX);return t.forEach((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w}=i[r],C=s.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),E=!m&&e.qIsNull,R=m&&WB(e,m),A=E||R?VB(m,e,a,C):e.qText,I=E?Q$(A):Z$(e),k=Z$(e)&&!Q$(e.qText??"");f[r]={id:Zz(),...e,align:$B(I,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h&&!R,isTotalRow:h,pageRowIdx:p,pageColIdx:r,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:r===u.qcx-1,isNumeric:I,isDual:k,isNull:(!E||!I)&&WB(e,m),representation:MB({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>A,direction:c,enabledFeatures:{[lF.Image]:!0,[lF.Indicator]:!0,[lF.MiniChart]:!0}})},l(f[r],d,r)}),{row:f,pageRowIdx:p}})(r,l,c,e.qArea,u,n,o,i,a,s);r[p]=d})})},eJ=({gridState:e,setEstimatedCellHeight:t})=>{const r=ab(Rb),n=ab(lv),o=ab(Qb),i=ab(Sb),a=ab(Ub),s=ab(EY),l=ab(WX),c=ab(iV),u=ab(IY),d=ab(UX),p=ab(GX),f=k([]),h=q((e,n)=>{const o=Array.isArray(n)?n.slice(0,u):(e=>Array(e).fill(void 0))(u);return QX(e,s,o,c,r,i,t,a),f.current=o,o},[u,s,c,r,i,t,a]),[m,g]=I(()=>h(l??[]));Ym(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const r=ab(Cb),n=k(new Set),o=k(new Set),i=k(new Set),a=KX(e),s=KX(t),l=A(()=>({enqueue:e=>{const t=YX(e);i.current.has(t)||(n.current.add(e),i.current.add(t),1===n.current.size&&setTimeout(async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),o.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 a.current(t);o.current.has(e)&&s.current(r)}catch(t){e.forEach(e=>{i.current.delete(YX(e))}),r.error({msg:"Failed to fetch pages",payload:t})}finally{o.current.delete(e)}}},75))},clear:()=>{n.current.clear(),o.current.clear(),i.current.clear()}}),[r,a,s]);return l})(e=>o&&"getHyperCubeData"in o?o.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(ZX(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}},[b]),y=q((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(JX(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};b.enqueue(t)}}},[b,s]);return M(()=>{if(void 0===l)return;const{qcx:t,qcy:n}=r.qHyperCube.qSize,o=e.current.overscanRowStartIndex,i=e.current.overscanColumnStartIndex,a=o+s.page*s.rowsPerPage,c=t-i,u=s.rowsPerPage-o,f=Math.min(100,c,t,p+5),h=Math.min(100,u,n,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,r,d,p,s,b,y,e,n]),{rowsInPage:m,loadRows:y,loadColumns:v}},tJ=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},rJ=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,nJ=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=ab(xV),i=ab(DV),{estimateLineCount:a}=Bm(o.dimension.values),s=TH(o.dimension.values.fontSize),l=e||t||1===r;return q((e,t,o)=>{if(l||e.representation.type===lF.Image||e.isNumeric&&!e.isDual)return;const c=(e=>Math.max(0,e-24-1))(i[o]),u=e.representation.text?a({text:e.representation.text,maxWidth:c,isNumeric:!1}):1,d=Math.min(r,Math.max(1,u));n(d*s,t,o,e.isTotalRow??!1)},[l,i,a,r,s,n])},oJ=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=ab(TB);L(()=>{const i=e?n:((e,t)=>{const r=0===t?0:e/t;return Math.ceil(r)})(r.sumHeight,r.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},iJ=({isSnapshot:e,gridRef:t})=>{const r=ab(xV),n=ab(IY),[o,i]=I(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=ab(CV),s=ab(EV),l=ab(RV),c=!!r.contentStaticLineCount,u=Math.max(8e6/n,s,l)-9,d=u+9,p=Math.max(1,Math.min(r.grid.contentLineClamp,Math.round(u/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:c});(({gridRef:e,setState:t})=>{const r=ab(Rb),n=ab(EY),o=ab(DV),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;Ym(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),Ym(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:r})=>{const n=ab(EV),o=ab(RV);return q((i,a,s,l=!1)=>{z(()=>{e(e=>{const c=l?o:n,u=Math.max(c,i+9),d=Math.min(t,u),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!rJ(p.get(s),d))return e;const f={...e},h=e.rowHeights.get(a);p.set(s,d);const m=void 0===h||d>=h?d:tJ(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,r.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,n,o,r])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>q((o,i,a,s)=>{e||t||1===r||n(o,i,a,s)},[e,t,r,n]))({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),g=nJ({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=q(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return oJ({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},aJ=(e,t)=>{L(()=>()=>{t(0)},[e,t]);const r=q(e=>{const r=e.contentBoxSize.at(0)?.blockSize;void 0!==r&&t(r)},[t]);iG({ref:e,callback:r})};let sJ=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const lJ=({loadRows:e,loadColumns:t,gridState:r})=>{const n=ab(TB),o=ab(Rb),i=ab(EY),a=ab(IY);return q(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:c,overscanRowStopIndex:u,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o,i;return o=n>t?sJ.Down:n<t?sJ.Up:sJ.None,i=r>e?sJ.Right:r<e?sJ.Left:sJ.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(r.current,s,c);if(r.current.overscanColumnStartIndex=s,r.current.overscanColumnStopIndex=l,r.current.overscanRowStartIndex=c,r.current.overscanRowStopIndex=u,c>a)return;const b=s,v=c+i.page*i.rowsPerPage,y=l-s+1,x=u-c+1;if(n.visibleLeft=d,n.visibleWidth=p-d+1,n.visibleTop=f+i.page*i.rowsPerPage,n.visibleHeight=h-f+1,n.page=i.page,n.rowsPerPage=i.rowsPerPage,m===sJ.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===sJ.Up){const t=x+25,r=i.page*i.rowsPerPage,n=Math.max(r,v-25);e(b,n,y,t)}if(g===sJ.Right){const e=o.qHyperCube.qSize.qcx-b,r=y+5,n=Math.min(e,r);t(b,v,n,x)}else if(g===sJ.Left){const e=Math.max(0,b-5),r=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,r,x)}},[r,a,i.page,i.rowsPerPage,n,e,o.qHyperCube.qSize.qcx,t])};const cJ=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},uJ=(e,t)=>{if(!e||!t)return;const r=e.scrollHeight-e.clientHeight,n=Math.round(r*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==n&&(e.scrollTop=n)},dJ={overflow:"hidden",willChange:"auto"},pJ=_((e,t)=>{const{handleBodyKeyDown:r,handleBodyKeyUp:n,focusBodyCellOnClick:o}=GY(),i=ab(iV),a=ab(qX),s=sb(DX),l=ab(OX),c=ab(TB),u=ab(Rb),d=ab(Ub),p=ab(DV),f=ab(IY),h=ab(PY),m=sb(kY),g=k(null),b=k(null),v=k(null),y=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=k(0),S=!!_H(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=iJ({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:I,loadRows:P,loadColumns:D}=eJ({gridState:y,setEstimatedCellHeight:C}),T=lJ({loadRows:P,loadColumns:D,gridState:y}),O=XG(),N=A(()=>({rowsInPage:I,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:O,onKeyDown:r,onKeyUp:n,onCellClick:o}),[I,i,S,R,w,O,r,n,o]);return L(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=sb(vU),{shouldRefocusRef:r}=ab(jY),n=ab(iv),o=ab(AY);M(()=>{t({type:G$.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=q(()=>{r&&(r.current=n.contains(document.activeElement))},[r,n]);JG({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(I),F(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(v.current?.clientHeight??l)-l,n=Math.round(r*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[v,l,f]),M(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),uJ(h,b.current)}),()=>{m(null)}),[h,m]),aJ(v,s),nr.jsx(mX,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:dJ,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:N,onItemsRendered:T,itemKey:cJ,className:"sn-table-body",direction:d,children:VX})});var fJ=j(pJ);const hJ=({children:e})=>{const t=ab(qV),r=ab(zX);return nr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r},children:e})},mJ=(e,t)=>{const r=k(null),n=ab(DV);L(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=q(r=>{const n=r.contentBoxSize.at(0)?.blockSize;n&&t(n+9,e)},[e,t]);return iG({ref:r,callback:o}),r},gJ=_c("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:r,applicableStyle:n,color:o})=>({...n,background:r,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),bJ=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=r,l=ab(xV),c=ab(Ub),u=ab(_b),d=ab(xU),p=sb(PH),f=ab(oV),h=ab(Bb),m=ab(DV)[e],g=ab(Zb),b=ab(qG(e)),v=n[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=dY({isInteractionEnabled:h,column:v}),C=ab(qb),E=mJ(e,i),R=n.length-1===e,A=C?XU:vG,{ref:I,isDragging:k}=mY(v,e),P=HK(v.id),D=b&&!g.enabled&&h?0:-1,M=a?t=>{a(t,e,S)}:void 0;return nr.jsxs(gJ,{"data-dragging":k,ref:I,className:`sn-table-cell ${ng}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...wU(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:xH(c,R,d),borderLeftWidth:SH(c,R,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:P},interactions:u,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:D,onKeyDown:M,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[nr.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),nr.jsx(cY,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},vJ=e=>{const[t,r]=I(new Map);Ym(()=>{r(new Map)},[e.length]);const n=q((e,t)=>{r(r=>rJ(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:A(()=>tJ(t),[t]),setMeasuredCellHeight:n}},yJ=(e,t)=>{F(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},xJ=e=>{const t=ab(lv),r=ab(Rb),n=ab(EY),o=ab(DV);Ym(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},SJ={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},wJ=_((e,t)=>{const{columResizeHandler:r}=e,n=ab(iV),o=ab(qX),i=sb(kX),a=S.useRef(null),s=k(null),l=ab(SV),c=ab(Rb),u=ab(Kb),d=ab(Ub),p=ab(DV),{rowHeight:f,setMeasuredCellHeight:h}=vJ(n),m=sY(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=GY();return yJ(t,a),xJ(a),aJ(s,i),nr.jsx(CX,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...SJ,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:r,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:bJ})});var CJ=j(wJ);const EJ=_((e,t)=>{const{children:r,onScroll:n}=e,o=ab(Ub),i=ab(Hb),{width:a,height:s}=ab(TX),l=sb(PY),c=q(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return nr.jsx("div",{"data-testid":"scrollable-container",ref:c,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:n,dir:o,tabIndex:-1,children:r})}),RJ=({children:e})=>{const t=ab(Ub),r=ab(qX);return nr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:r.width,height:r.height},children:e})},AJ=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=r,l=ab(xV),c=ab(Rb),u=ab(Ub),d=ab(Fb),p=ab(Bb),f=ab(xU),h=ab(FX),m=mJ(e,i),g=n[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=n[e],y=c.qHyperCube.qSize.qcx-1===e,x=HK(n[e].id),S=a?t=>{a(t,e)}:void 0;return nr.jsx("div",{className:`sn-table-cell ${ng}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...wU(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:xH(u,y,f),borderLeftWidth:SH(u,y,f),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:h&&o.atBottom||o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:b,textAlign:b,boxSizing:"border-box",cursor:"default",opacity:x},children:nr.jsx(YU,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},IJ=_((e,t)=>{const{totals:r}=e,n=ab(iV),o=ab(qX),i=sb(PX),a=k(null),s=k(null),l=ab(wV),c=ab(Ub),u=ab(Rb),d=ab(DV),{rowHeight:p,setMeasuredCellHeight:f}=vJ(n),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=GY();return yJ(t,a),xJ(a),aJ(s,i),nr.jsx(CX,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:SJ,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:n,totals:r,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:c,children:AJ})});var kJ=j(IJ);const PJ=(e,t,r)=>{const n=ab(Ub),o=ab(TB);return q(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,c=((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,n),u=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=u,o.scrollLeft=c,r.current?.interpolatedScrollTo(Number.isNaN(u)?0:u,c),e.current?.scrollTo(c),t.current?.scrollTo(c)},[o,r,e,t,n])};var DJ=j(()=>{const e=ab(oV),t=k(null),r=k(null),n=k(null),o=k(null),i=PJ(r,n,o),a=q(()=>{t.current&&(t.current.scrollTop=0)},[t]);OG(),(e=>{const t=ab(aV),r=ab(EY),n=ab(lv),o=ab(IY);M(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),M(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[r,o,n,e])})(t),BG(t);const s=nr.jsx(kJ,{ref:n,totals:e},"totals");return nr.jsxs(PG,{children:[nr.jsx(EJ,{ref:t,onScroll:i,children:nr.jsxs(hJ,{children:[nr.jsxs(RJ,{children:[nr.jsx(CJ,{ref:r,columResizeHandler:a}),e.atTop?s:null,nr.jsx(fJ,{ref:o}),e.atBottom?s:null]}),nr.jsx(SU,{})]})}),nr.jsx(wG,{isPagination:!1})]})});const MJ=()=>{const e=ab(Rb),t=ab(ov),r=ab(_b),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=ab(nV),s=ab(lv),l=ab(cv),c=ab(Zb),[u,d]=lb(EY),p=k(null),f=k(!1),h=sb(RY),m=sb(AY);M(()=>{h(f)},[h]);const g=S.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=GY();return(()=>{const e=ab(iv),{keyboard:t}=ab(NY),r=ab(TG),n=ab(oV),o=ab(IY),{scrollToCell:i}=ab(LY),{shouldRefocusRef:a}=ab(jY),s=k({focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:e}),l=k(null),c=k(null);L(()=>{s.current={focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:e}},[r,n,o,i,e]),M(()=>{let e=!1;const{focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:u}=s.current;if("function"==typeof u.querySelector){if(t.active){const[t,a]=r,d=n.atTop?2:1;if(t>=d&&t<d+o){null!==c.current&&(cancelAnimationFrame(c.current),c.current=null),i?.(t-d,a);const r=t=>{if(e)return;const n=FY(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);n&&document.activeElement!==n&&EU(n),n&&document.activeElement===n||t>0&&(l.current=requestAnimationFrame(()=>{r(t-1)}))};l.current=requestAnimationFrame(()=>{e||r(5)})}else{const e=FY(u,r,n,o);e&&EU(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),c.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const r=FY(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);r?.blur(),WY(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==c.current&&(cancelAnimationFrame(c.current),c.current=null)}}},[t.active,e,a])})(),MG(p,f),nr.jsxs(WU,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[nr.jsx(GG,{}),nr.jsx(DJ,{}),nr.jsx(iU,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:u,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:c,translator:l,theme:s,interactions:r,rect:t,layout:e})]})};var TJ=j(MJ);const qJ=e=>{const t=e.get(Qb),r=e.get(Xb),n=e.get(Eb),i=e.get(Ub);o(()=>{n&&t&&(r?function(e){const t=e.get(Ub),r=e.get(sv),n=LV(t);r.render(nr.jsx(Ii,{stylisPlugins:"rtl"===t?[H$]:void 0,children:nr.jsx(Fc,{theme:n,children:nr.jsx(eb,{store:e,children:nr.jsx(OV,{children:nr.jsx(yY,{})})})})}))}(e):function(e){const t=e.get(Ub),r=e.get(sv),n=LV(t);r.render(nr.jsx(S.StrictMode,{children:nr.jsx(Fc,{theme:n,children:nr.jsx(eb,{store:e,children:nr.jsx(OV,{children:nr.jsx(TJ,{})})})})}))}(e))},[n,r,e,t,i])};function OJ(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"),c={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},u=((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,c),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,c),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,c,u);return{visibleRowStartIndex:u,visibleRowEndIndex:d,rowPartialHeight:p}}const LJ=(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]}},NJ=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const jJ=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||UB.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},_J=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=jB(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=OJ(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:jJ(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-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:c=0}=t,u=l*c,d=a-u,p=d+s-1,f=LJ(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)+u,visibleRowEndIndex:p+u};const g=n.y+n.height,b=(NJ(h,m,g)?d:d+1)+u;let v=p+u;const y=LJ(p,o),x=y?.getBoundingClientRect();return y&&x&&(NJ(x,m,g)||(v=p-1+u)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:jJ(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},zJ={version:JSON.stringify("6.50.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var FJ=e=>({properties:{initial:zJ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>Dv({...t,env:e}),exportProperties:Ev,exploration:Hz(e)});const $J=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),HJ=e=>e.getStyle("object","straightTableV2","backgroundColor");function BJ(r){return{qae:FJ(r),ext:t$(r),component(){const n=u(),i=e(()=>Jg(),[!1!==n.usePagination]);i.set(Sb,r);const s=d();i.set(iv,s),i.set(Rb,n),i.set(cb,p()),i.set(Qb,f()),i.set(_b,h()),i.set(cv,m()),i.set(Nb,g()),i.set(Wb,t()),i.set(Zb,b()),i.set(ov,v()),i.set(db,y());const x=_m(n,s,$J,HJ);i.set(lv,x),i.set(Eb,Km(x,n,r)),i.set(ub,_t()),(e=>{const t=e.get(sv);o(()=>()=>{t.unmount()},[t])})(i),a?.((e,t)=>{const r=t.target,n=r?.closest(`.${ng}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{fg(n)}})}),(({store:e})=>{const t=e.get(Rb),r=e.get(Qb),n=e.get(iv),o=e.get(nv),i=e.get(Kb),a=e.get(Xb);l(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get(TB),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=_J(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),c(()=>({getViewState:()=>_J(t,e.get(TB),n,i,a)}),[t,e,n,a])})({store:i}),qJ(i)}}}export{BJ as default};