@nebula.js/sn-table 6.71.0 → 6.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  /*
2
- * @nebula.js/sn-table v6.71.0
2
+ * @nebula.js/sn-table v6.72.0
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],function(e,t){"use strict";var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,v,y,x,S,w,C,E,I,A,R,D,M,k,T,q,P,L,O,N,j,_,z,F,$,B,H,V,W,U,G,K;return{setters:[function(e){n=e.useMemo,r=e.useOptions,o=e.usePromise,i=e.useState,a=e.useEffect,s=e.useTheme,l=e.onContextMenu,c=e.HyperCubeHandler,u=e.onTakeSnapshot,d=e.useImperativeHandle,p=e.useStaleLayout,f=e.useElement,h=e.useApp,m=e.useModel,g=e.useInteractionState,b=e.useTranslator,v=e.useSelections,y=e.useKeyboard,x=e.useRect,S=e.useEmbed},function(e){w=e.default,C=e.createElement,E=e,I=e.isValidElement,A=e.cloneElement,R=e.Children,D=e.useMemo,M=e.useState,k=e.useRef,T=e.createContext,q=e.useReducer,P=e.useEffect,L=e.useDebugValue,O=e.useCallback,N=e.useContext,j=e.useLayoutEffect,_=e.useInsertionEffect,z=e.memo,F=e.forwardRef,$=e.startTransition,B=e.useImperativeHandle,H=e.PureComponent},function(e){V=e.default,W=e,U=e.flushSync},function(e){G=e.default},function(e){K=e.default}],execute:function(){function Y(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function X(e){if("object"==typeof e&&Y(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}e("default",function(e){return{qae:wU(e),ext:WL(e),component(){const t=p(),o=n(()=>_g(),[!1!==t.usePagination]);o.set(cb,e);const i=f();o.set(Gb,i),o.set(fb,t),o.set(Xg,h()),o.set($b,m()),o.set(Ab,g()),o.set(Jb,b()),o.set(Eb,v()),o.set(Pb,r()),o.set(Fb,y()),o.set(Ub,x()),o.set(Zg,S());const a=Em(t,i,CU,EU);o.set(Xb,a),o.set(pb,Lm(a,t,e)),o.set(Jg,kt()),UL(o),l?.((e,t)=>{const n=t.target,r=n?.closest(`.${Hm}`);r?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{Qm(r)}})}),xU({store:o}),hU(o)}}});const J={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}},Z="qcm-color";function Q(...e){const t={type:Z,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===Z)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Y(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=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))n=parseInt(s[1],10),r=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,n=parseInt(s[2],10),r=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))n=parseInt(s[1],16),r=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))n=parseInt(s[1]+s[1],16),r=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<0?e=0:e>360&&(e=360),t<0?t=0:t>1&&(t=1),a<0?a=0:a>1&&(a=1);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;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),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<0?e=0:e>360&&(e=360),t<0?t=0:t>1&&(t=1),a<0?a=0:a>1&&(a=1);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;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),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<0?e=0:e>360&&(e=360),t<0?t=0:t>1&&(t=1),a<0?a=0:a>1&&(a=1);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;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in J}(e)){const t=J[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function ee(e){let t,n,r=0;const o="string"==typeof e?Q(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,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function te(e){let t,n,r=0;const o="string"==typeof e?Q(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,r=0;else{switch(n=l-c,t=0===n?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function ne(e){if(Y(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?X(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function re(e,t){return Y(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:re(Q(e))}function oe(e){return Y(e)?1===e.a?ne(e):re(e):oe(Q(e))}const ie=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function ae(e){return.2126*ie(e.r)+.7152*ie(e.g)+.0722*ie(e.b)}function se(...e){const t=Q(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=ee(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Q(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=Q(...e);return t.invalid||ae(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=ne(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=re(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=oe(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=function(e){let t,n,r;if(Y(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?X(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?Q(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,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=ee(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=te(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=te(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>se(o(18*e)),getDarkenedColor:(e=1)=>se(o(18*-e))}}function le(e,t){if(!e||!t)return;const n=ae(e),r=ae(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const ce="#FFFFFF";const ue=["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 de(){return ue}var pe,fe,he=function(){if(fe)return pe;fe=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return pe=function e(){var t,n,r,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(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},pe}();function me(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ge(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function be(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(he);var ve=.7,ye=1/ve,xe="\\s*([+-]?\\d+)\\s*",Se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",we="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ce=/^#([0-9a-f]{3,8})$/,Ee=new RegExp(`^rgb\\(${xe},${xe},${xe}\\)$`),Ie=new RegExp(`^rgb\\(${we},${we},${we}\\)$`),Ae=new RegExp(`^rgba\\(${xe},${xe},${xe},${Se}\\)$`),Re=new RegExp(`^rgba\\(${we},${we},${we},${Se}\\)$`),De=new RegExp(`^hsl\\(${Se},${we},${we}\\)$`),Me=new RegExp(`^hsla\\(${Se},${we},${we},${Se}\\)$`),ke={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 Te(){return this.rgb().formatHex()}function qe(){return this.rgb().formatRgb()}function Pe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Le(t):3===n?new _e(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Oe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Oe(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=Ee.exec(e))?new _e(t[1],t[2],t[3],1):(t=Ie.exec(e))?new _e(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ae.exec(e))?Oe(t[1],t[2],t[3],t[4]):(t=Re.exec(e))?Oe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=De.exec(e))?Ve(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Ve(t[1],t[2]/100,t[3]/100,t[4]):ke.hasOwnProperty(e)?Le(ke[e]):"transparent"===e?new _e(NaN,NaN,NaN,0):null}function Le(e){return new _e(e>>16&255,e>>8&255,255&e,1)}function Oe(e,t,n,r){return r<=0&&(e=t=n=NaN),new _e(e,t,n,r)}function Ne(e){return e instanceof be||(e=Pe(e)),e?new _e((e=e.rgb()).r,e.g,e.b,e.opacity):new _e}function je(e,t,n,r){return 1===arguments.length?Ne(e):new _e(e,t,n,null==r?1:r)}function _e(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ze(){return`#${He(this.r)}${He(this.g)}${He(this.b)}`}function Fe(){const e=$e(this.opacity);return`${1===e?"rgb(":"rgba("}${Be(this.r)}, ${Be(this.g)}, ${Be(this.b)}${1===e?")":`, ${e})`}`}function $e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Be(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function He(e){return((e=Be(e))<16?"0":"")+e.toString(16)}function Ve(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ue(e,t,n,r)}function We(e){if(e instanceof Ue)return new Ue(e.h,e.s,e.l,e.opacity);if(e instanceof be||(e=Pe(e)),!e)return new Ue;if(e instanceof Ue)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Ue(a,s,l,e.opacity)}function Ue(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ge(e){return(e=(e||0)%360)<0?e+360:e}function Ke(e){return Math.max(0,Math.min(1,e||0))}function Ye(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}me(be,Pe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Te,formatHex:Te,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return We(this).formatHsl()},formatRgb:qe,toString:qe}),me(_e,je,ge(be,{brighter(e){return e=null==e?ye:Math.pow(ye,e),new _e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ve:Math.pow(ve,e),new _e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _e(Be(this.r),Be(this.g),Be(this.b),$e(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:ze,formatHex:ze,formatHex8:function(){return`#${He(this.r)}${He(this.g)}${He(this.b)}${He(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Fe,toString:Fe})),me(Ue,function(e,t,n,r){return 1===arguments.length?We(e):new Ue(e,t,n,null==r?1:r)},ge(be,{brighter(e){return e=null==e?ye:Math.pow(ye,e),new Ue(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ve:Math.pow(ve,e),new Ue(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new _e(Ye(e>=240?e-240:e+120,o,r),Ye(e,o,r),Ye(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ue(Ge(this.h),Ke(this.s),Ke(this.l),$e(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=$e(this.opacity);return`${1===e?"hsl(":"hsla("}${Ge(this.h)}, ${100*Ke(this.s)}%, ${100*Ke(this.l)}%${1===e?")":`, ${e})`}`}}));const Xe=Math.PI/180,Je=180/Math.PI,Ze=.96422,Qe=.82521,et=4/29,tt=6/29,nt=3*tt*tt,rt=tt*tt*tt;function ot(e){if(e instanceof it)return new it(e.l,e.a,e.b,e.opacity);if(e instanceof ut)return dt(e);e instanceof _e||(e=Ne(e));var t,n,r=ct(e.r),o=ct(e.g),i=ct(e.b),a=at((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=at((.4360747*r+.3850649*o+.1430804*i)/Ze),n=at((.0139322*r+.0971045*o+.7141733*i)/Qe)),new it(116*a-16,500*(t-a),200*(a-n),e.opacity)}function it(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function at(e){return e>rt?Math.pow(e,1/3):e/nt+et}function st(e){return e>tt?e*e*e:nt*(e-et)}function lt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ct(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ut(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function dt(e){if(isNaN(e.h))return new it(e.l,0,0,e.opacity);var t=e.h*Xe;return new it(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}me(it,function(e,t,n,r){return 1===arguments.length?ot(e):new it(e,t,n,null==r?1:r)},ge(be,{brighter(e){return new it(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new it(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new _e(lt(3.1338561*(t=Ze*st(t))-1.6168667*(e=1*st(e))-.4906146*(n=Qe*st(n))),lt(-.9787684*t+1.9161415*e+.033454*n),lt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),me(ut,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ut)return new ut(e.h,e.c,e.l,e.opacity);if(e instanceof it||(e=ot(e)),0===e.a&&0===e.b)return new ut(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Je;return new ut(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ut(e,t,n,null==r?1:r)},ge(be,{brighter(e){return new ut(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ut(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dt(this).rgb()}}));var pt=e=>()=>e;function ft(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):pt(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?ft:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):pt(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=je(e)).r,(t=je(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ft(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var ht="center",mt="bottom";[{key:"NoDataExist",alignment:ht,condition:({layoutService:e})=>{if(!e)return!1;const{x:t,y:n}=e.meta.size;return t*n===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:ht,condition:({layoutService:e})=>!!e&&e.getHyperCubeValue("qMeasureInfo").every(e=>"NaN"===e.qMin&&"NaN"===e.qMax)},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:ht,condition:({layoutService:e})=>{if(!e)return!1;const{isContinuous:t}=e.meta;if(!t)return!1;const n=e.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:ht},{key:"DataRangeIncludingZero",alignment:mt},{key:"LimitedData",alignment:mt},{key:"NegativeOrZeroValues",alignment:mt}].reduce((e,t)=>(e[t.key]=t,e),{});const gt=["__proto__","constructor"];function bt(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if(gt.some(e=>r.includes(e)))return;let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}function vt(e,t=e=>e){const n=function(){let e={};return{get:t=>e[t],set:(t,n)=>(e[t]=n,n),has:t=>t in e,remove(t){delete e[t]},empty(){e={}}}}();return r=>{const o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function yt(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function xt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=St);for(var n,r,o,i,a,s=new It(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new It(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Et)}function St(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Ct(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Et(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}var At;It.prototype=xt.prototype={constructor:It,count:function(){return this.eachAfter(yt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return xt(this).eachBefore(Ct)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},At=function(e){
7
+ System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],function(e,t){"use strict";var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,v,y,x,S,w,C,E,I,R,A,D,M,k,T,q,P,L,O,N,j,_,z,F,$,B,H,V,W,U,G,K;return{setters:[function(e){n=e.useMemo,r=e.useOptions,o=e.usePromise,i=e.useState,a=e.useEffect,s=e.useTheme,l=e.onContextMenu,c=e.HyperCubeHandler,u=e.onTakeSnapshot,d=e.useImperativeHandle,p=e.useStaleLayout,f=e.useElement,h=e.useApp,m=e.useModel,g=e.useInteractionState,b=e.useTranslator,v=e.useSelections,y=e.useKeyboard,x=e.useRect,S=e.useEmbed},function(e){w=e.default,C=e.createElement,E=e,I=e.isValidElement,R=e.cloneElement,A=e.Children,D=e.useMemo,M=e.useState,k=e.useRef,T=e.createContext,q=e.useReducer,P=e.useEffect,L=e.useDebugValue,O=e.useCallback,N=e.useContext,j=e.useLayoutEffect,_=e.useInsertionEffect,z=e.memo,F=e.forwardRef,$=e.startTransition,B=e.useImperativeHandle,H=e.PureComponent},function(e){V=e.default,W=e,U=e.flushSync},function(e){G=e.default},function(e){K=e.default}],execute:function(){function Y(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function X(e){if("object"==typeof e&&Y(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}e("default",function(e){return{qae:wU(e),ext:VL(e),component(){const t=p(),o=n(()=>_g(),[!1!==t.usePagination]);o.set(cb,e);const i=f();o.set(Gb,i),o.set(fb,t),o.set(Xg,h()),o.set($b,m()),o.set(Rb,g()),o.set(Jb,b()),o.set(Eb,v()),o.set(Pb,r()),o.set(Fb,y()),o.set(Ub,x()),o.set(Zg,S());const a=Em(t,i,CU,EU);o.set(Xb,a),o.set(pb,Lm(a,t,e)),o.set(Jg,kt()),WL(o),l?.((e,t)=>{const n=t.target,r=n?.closest(`.${Hm}`);r?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{Qm(r)}})}),xU({store:o}),hU(o)}}});const J={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}},Z="qcm-color";function Q(...e){const t={type:Z,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===Z)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Y(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=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))n=parseInt(s[1],10),r=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,n=parseInt(s[2],10),r=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))n=parseInt(s[1],16),r=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))n=parseInt(s[1]+s[1],16),r=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<0?e=0:e>360&&(e=360),t<0?t=0:t>1&&(t=1),a<0?a=0:a>1&&(a=1);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;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),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<0?e=0:e>360&&(e=360),t<0?t=0:t>1&&(t=1),a<0?a=0:a>1&&(a=1);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;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),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<0?e=0:e>360&&(e=360),t<0?t=0:t>1&&(t=1),a<0?a=0:a>1&&(a=1);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;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in J}(e)){const t=J[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function ee(e){let t,n,r=0;const o="string"==typeof e?Q(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,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function te(e){let t,n,r=0;const o="string"==typeof e?Q(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,r=0;else{switch(n=l-c,t=0===n?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function ne(e){if(Y(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?X(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function re(e,t){return Y(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:re(Q(e))}function oe(e){return Y(e)?1===e.a?ne(e):re(e):oe(Q(e))}const ie=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function ae(e){return.2126*ie(e.r)+.7152*ie(e.g)+.0722*ie(e.b)}function se(...e){const t=Q(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=ee(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Q(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=Q(...e);return t.invalid||ae(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=ne(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=re(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=oe(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=function(e){let t,n,r;if(Y(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?X(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?Q(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,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=ee(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=te(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=te(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>se(o(18*e)),getDarkenedColor:(e=1)=>se(o(18*-e))}}function le(e,t){if(!e||!t)return;const n=ae(e),r=ae(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const ce="#FFFFFF";const ue=["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 de(){return ue}var pe,fe,he=function(){if(fe)return pe;fe=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return pe=function e(){var t,n,r,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(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},pe}();function me(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ge(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function be(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(he);var ve=.7,ye=1/ve,xe="\\s*([+-]?\\d+)\\s*",Se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",we="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ce=/^#([0-9a-f]{3,8})$/,Ee=new RegExp(`^rgb\\(${xe},${xe},${xe}\\)$`),Ie=new RegExp(`^rgb\\(${we},${we},${we}\\)$`),Re=new RegExp(`^rgba\\(${xe},${xe},${xe},${Se}\\)$`),Ae=new RegExp(`^rgba\\(${we},${we},${we},${Se}\\)$`),De=new RegExp(`^hsl\\(${Se},${we},${we}\\)$`),Me=new RegExp(`^hsla\\(${Se},${we},${we},${Se}\\)$`),ke={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 Te(){return this.rgb().formatHex()}function qe(){return this.rgb().formatRgb()}function Pe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Le(t):3===n?new _e(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Oe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Oe(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=Ee.exec(e))?new _e(t[1],t[2],t[3],1):(t=Ie.exec(e))?new _e(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Re.exec(e))?Oe(t[1],t[2],t[3],t[4]):(t=Ae.exec(e))?Oe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=De.exec(e))?Ve(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Ve(t[1],t[2]/100,t[3]/100,t[4]):ke.hasOwnProperty(e)?Le(ke[e]):"transparent"===e?new _e(NaN,NaN,NaN,0):null}function Le(e){return new _e(e>>16&255,e>>8&255,255&e,1)}function Oe(e,t,n,r){return r<=0&&(e=t=n=NaN),new _e(e,t,n,r)}function Ne(e){return e instanceof be||(e=Pe(e)),e?new _e((e=e.rgb()).r,e.g,e.b,e.opacity):new _e}function je(e,t,n,r){return 1===arguments.length?Ne(e):new _e(e,t,n,null==r?1:r)}function _e(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ze(){return`#${He(this.r)}${He(this.g)}${He(this.b)}`}function Fe(){const e=$e(this.opacity);return`${1===e?"rgb(":"rgba("}${Be(this.r)}, ${Be(this.g)}, ${Be(this.b)}${1===e?")":`, ${e})`}`}function $e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Be(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function He(e){return((e=Be(e))<16?"0":"")+e.toString(16)}function Ve(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ue(e,t,n,r)}function We(e){if(e instanceof Ue)return new Ue(e.h,e.s,e.l,e.opacity);if(e instanceof be||(e=Pe(e)),!e)return new Ue;if(e instanceof Ue)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Ue(a,s,l,e.opacity)}function Ue(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ge(e){return(e=(e||0)%360)<0?e+360:e}function Ke(e){return Math.max(0,Math.min(1,e||0))}function Ye(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}me(be,Pe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Te,formatHex:Te,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return We(this).formatHsl()},formatRgb:qe,toString:qe}),me(_e,je,ge(be,{brighter(e){return e=null==e?ye:Math.pow(ye,e),new _e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ve:Math.pow(ve,e),new _e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _e(Be(this.r),Be(this.g),Be(this.b),$e(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:ze,formatHex:ze,formatHex8:function(){return`#${He(this.r)}${He(this.g)}${He(this.b)}${He(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Fe,toString:Fe})),me(Ue,function(e,t,n,r){return 1===arguments.length?We(e):new Ue(e,t,n,null==r?1:r)},ge(be,{brighter(e){return e=null==e?ye:Math.pow(ye,e),new Ue(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ve:Math.pow(ve,e),new Ue(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new _e(Ye(e>=240?e-240:e+120,o,r),Ye(e,o,r),Ye(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ue(Ge(this.h),Ke(this.s),Ke(this.l),$e(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=$e(this.opacity);return`${1===e?"hsl(":"hsla("}${Ge(this.h)}, ${100*Ke(this.s)}%, ${100*Ke(this.l)}%${1===e?")":`, ${e})`}`}}));const Xe=Math.PI/180,Je=180/Math.PI,Ze=.96422,Qe=.82521,et=4/29,tt=6/29,nt=3*tt*tt,rt=tt*tt*tt;function ot(e){if(e instanceof it)return new it(e.l,e.a,e.b,e.opacity);if(e instanceof ut)return dt(e);e instanceof _e||(e=Ne(e));var t,n,r=ct(e.r),o=ct(e.g),i=ct(e.b),a=at((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=at((.4360747*r+.3850649*o+.1430804*i)/Ze),n=at((.0139322*r+.0971045*o+.7141733*i)/Qe)),new it(116*a-16,500*(t-a),200*(a-n),e.opacity)}function it(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function at(e){return e>rt?Math.pow(e,1/3):e/nt+et}function st(e){return e>tt?e*e*e:nt*(e-et)}function lt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ct(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ut(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function dt(e){if(isNaN(e.h))return new it(e.l,0,0,e.opacity);var t=e.h*Xe;return new it(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}me(it,function(e,t,n,r){return 1===arguments.length?ot(e):new it(e,t,n,null==r?1:r)},ge(be,{brighter(e){return new it(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new it(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new _e(lt(3.1338561*(t=Ze*st(t))-1.6168667*(e=1*st(e))-.4906146*(n=Qe*st(n))),lt(-.9787684*t+1.9161415*e+.033454*n),lt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),me(ut,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ut)return new ut(e.h,e.c,e.l,e.opacity);if(e instanceof it||(e=ot(e)),0===e.a&&0===e.b)return new ut(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Je;return new ut(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ut(e,t,n,null==r?1:r)},ge(be,{brighter(e){return new ut(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ut(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dt(this).rgb()}}));var pt=e=>()=>e;function ft(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):pt(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?ft:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):pt(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=je(e)).r,(t=je(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=ft(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var ht="center",mt="bottom";[{key:"NoDataExist",alignment:ht,condition:({layoutService:e})=>{if(!e)return!1;const{x:t,y:n}=e.meta.size;return t*n===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:ht,condition:({layoutService:e})=>!!e&&e.getHyperCubeValue("qMeasureInfo").every(e=>"NaN"===e.qMin&&"NaN"===e.qMax)},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:ht,condition:({layoutService:e})=>{if(!e)return!1;const{isContinuous:t}=e.meta;if(!t)return!1;const n=e.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:ht},{key:"DataRangeIncludingZero",alignment:mt},{key:"LimitedData",alignment:mt},{key:"NegativeOrZeroValues",alignment:mt}].reduce((e,t)=>(e[t.key]=t,e),{});const gt=["__proto__","constructor"];function bt(e,t,n){if(void 0===e||void 0===t)return;const r=t.split("."),o=r[r.length-1];if(gt.some(e=>r.includes(e)))return;let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0===i[t]&&(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]}function vt(e,t=e=>e){const n=function(){let e={};return{get:t=>e[t],set:(t,n)=>(e[t]=n,n),has:t=>t in e,remove(t){delete e[t]},empty(){e={}}}}();return r=>{const o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function yt(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function xt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=St);for(var n,r,o,i,a,s=new It(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new It(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Et)}function St(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Ct(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Et(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}var Rt;It.prototype=xt.prototype={constructor:It,count:function(){return this.eachAfter(yt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return xt(this).eachBefore(Ct)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Rt=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 n,r,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(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",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"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},At({exports:{}});const Rt=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function Dt(e,t){return n(()=>e,t)}const Mt={},kt=()=>{const{viewState:e}=r(),t=(e=>{const t=n(()=>({current:Mt}),[]);return t.current=t.current===Mt?e:t.current,t})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=n(()=>Rt(),[]),l=Dt(e=>{t.current.add(e)},[t]),c=Dt(function(e,t=50){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}(async()=>{await Promise.all(t.current),t.current.clear(),s()},1e3),[s,t]);return o(async()=>{await a},[a]),n(()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:c,waitForPromise:l}),[c,i,e,l])},Tt={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"},qt={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",...Tt,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)"},Pt=12,Lt=14,Ot=16,Nt=24,jt=3,_t=300,zt=400,Ft=600,$t=700,Bt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Wt,Ut,Gt={exports:{}},Kt={};var Yt=(Ut||(Ut=1,Gt.exports=function(){if(Wt)return Kt;Wt=1;var e=w,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=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,n,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return Kt.Fragment=n,Kt.jsx=a,Kt.jsxs=a,Kt}()),Gt.exports);const Xt={black:"#000",white:"#fff"},Jt="#e57373",Zt="#ef5350",Qt="#f44336",en="#d32f2f",tn="#c62828",nn="#f3e5f5",rn="#ce93d8",on="#ba68c8",an="#ab47bc",sn="#9c27b0",ln="#7b1fa2",cn="#e3f2fd",un="#90caf9",dn="#42a5f5",pn="#1976d2",fn="#1565c0",hn="#4fc3f7",mn="#29b6f6",gn="#03a9f4",bn="#0288d1",vn="#01579b",yn="#81c784",xn="#66bb6a",Sn="#4caf50",wn="#388e3c",Cn="#2e7d32",En="#1b5e20",In="#ffb74d",An="#ffa726",Rn="#ff9800",Dn="#f57c00",Mn="#e65100",kn={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 Tn(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 qn=Object.freeze({__proto__:null,default:Tn}),Pn="$$material";function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ln.apply(null,arguments)}function On(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Nn="-ms-",jn="-moz-",_n="-webkit-",zn="comm",Fn="rule",$n="decl",Bn="@keyframes",Hn=Math.abs,Vn=String.fromCharCode,Wn=Object.assign;function Un(e){return e.trim()}function Gn(e,t){return(e=t.exec(e))?e[0]:e}function Kn(e,t,n){return e.replace(t,n)}function Yn(e,t,n){return e.indexOf(t,n)}function Xn(e,t){return 0|e.charCodeAt(t)}function Jn(e,t,n){return e.slice(t,n)}function Zn(e){return e.length}function Qn(e){return e.length}function er(e,t){return t.push(e),e}function tr(e,t){return e.filter(function(e){return!Gn(e,t)})}var nr,rr,or=1,ir=1,ar=0,sr=0,lr=0,cr="";function ur(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:or,column:ir,length:a,return:"",siblings:s}}function dr(e,t){return Wn(ur("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function pr(e){for(;e.root;)e=dr(e.root,{children:[e]});er(e,e.siblings)}function fr(){return lr=sr>0?Xn(cr,--sr):0,ir--,10===lr&&(ir=1,or--),lr}function hr(){return lr=sr<ar?Xn(cr,sr++):0,ir++,10===lr&&(ir=1,or++),lr}function mr(){return Xn(cr,sr)}function gr(){return sr}function br(e,t){return Jn(cr,e,t)}function vr(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 yr(e){return Un(br(sr-1,wr(91===e?e+2:40===e?e+1:e)))}function xr(e){for(;(lr=mr())&&lr<33;)hr();return vr(e)>2||vr(lr)>3?"":" "}function Sr(e,t){for(;--t&&hr()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return br(e,gr()+(t<6&&32==mr()&&32==hr()))}function wr(e){for(;hr();)switch(lr){case e:return sr;case 34:case 39:34!==e&&39!==e&&wr(lr);break;case 40:41===e&&wr(e);break;case 92:hr()}return sr}function Cr(e,t){for(;hr()&&e+lr!==57&&(e+lr!==84||47!==mr()););return"/*"+br(t,sr-1)+"*"+Vn(47===e?e:hr())}function Er(e){for(;!vr(mr());)hr();return br(e,sr)}function Ir(e){return function(e){return cr="",e}(Ar("",null,null,null,[""],e=function(e){return or=ir=1,ar=Zn(cr=e),sr=0,[]}(e),0,[0],e))}function Ar(e,t,n,r,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=r,C=y;g;)switch(h=v,v=hr()){case 40:if(108!=h&&58==Xn(C,d-1)){-1!=Yn(C+=Kn(yr(v),"&","&\f"),"&\f",Hn(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=yr(v);break;case 9:case 10:case 13:case 32:C+=xr(h);break;case 92:C+=Sr(gr()-1,7);continue;case 47:switch(mr()){case 42:case 47:er(Dr(Cr(hr(),gr()),t,n,l),l),5!=vr(h||1)&&5!=vr(mr()||1)||!Zn(C)||" "===Jn(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[c++]=Zn(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(C=Kn(C,/\f/g,"")),f>0&&(Zn(C)-d||0===m&&47===h)&&er(f>32?Mr(C+";",r,n,d-1,l):Mr(Kn(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(er(w=Rr(C,t,n,c,u,o,s,y,x=[],S=[],d,i),i),123===v)if(0===u)Ar(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===Xn(C,3))break;case 108:if(97===Xn(C,2))break;default:u=0;case 100:case 109:case 115:}u?Ar(e,w,w,r&&er(Rr(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,r?x:S):Ar(C,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Zn(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==fr())continue;switch(C+=Vn(v),v*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Zn(C)-1)*b,b=1;break;case 64:45===mr()&&(C+=yr(hr())),p=mr(),u=d=Zn(y=C+=Er(gr())),v++;break;case 45:45===h&&2==Zn(C)&&(m=0)}}return i}function Rr(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=Qn(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=Jn(e,p+1,p=Hn(g=a[m])),x=e;v<h;++v)(x=Un(g>0?f[v]+" "+y:Kn(y,/&\f/g,f[v])))&&(l[b++]=x);return ur(e,t,n,0===o?Fn:s,l,c,u,d)}function Dr(e,t,n,r){return ur(e,t,n,zn,Vn(lr),Jn(e,2,-2),0,r)}function Mr(e,t,n,r,o){return ur(e,t,n,$n,Jn(e,0,r),Jn(e,r+1,-1),r,o)}function kr(e,t,n){switch(function(e,t){return 45^Xn(e,0)?(((t<<2^Xn(e,0))<<2^Xn(e,1))<<2^Xn(e,2))<<2^Xn(e,3):0}(e,t)){case 5103:return _n+"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 _n+e+e;case 4855:return _n+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return jn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _n+e+jn+e+Nn+e+e;case 5936:switch(Xn(e,t+11)){case 114:return _n+e+Nn+Kn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _n+e+Nn+Kn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _n+e+Nn+Kn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _n+e+Nn+e+e;case 6165:return _n+e+Nn+"flex-"+e+e;case 5187:return _n+e+Kn(e,/(\w+).+(:[^]+)/,_n+"box-$1$2"+Nn+"flex-$1$2")+e;case 5443:return _n+e+Nn+"flex-item-"+Kn(e,/flex-|-self/g,"")+(Gn(e,/flex-|baseline/)?"":Nn+"grid-row-"+Kn(e,/flex-|-self/g,""))+e;case 4675:return _n+e+Nn+"flex-line-pack"+Kn(e,/align-content|flex-|-self/g,"")+e;case 5548:return _n+e+Nn+Kn(e,"shrink","negative")+e;case 5292:return _n+e+Nn+Kn(e,"basis","preferred-size")+e;case 6060:return _n+"box-"+Kn(e,"-grow","")+_n+e+Nn+Kn(e,"grow","positive")+e;case 4554:return _n+Kn(e,/([^-])(transform)/g,"$1"+_n+"$2")+e;case 6187:return Kn(Kn(Kn(e,/(zoom-|grab)/,_n+"$1"),/(image-set)/,_n+"$1"),e,"")+e;case 5495:case 3959:return Kn(e,/(image-set\([^]*)/,_n+"$1$`$1");case 4968:return Kn(Kn(e,/(.+:)(flex-)?(.*)/,_n+"box-pack:$3"+Nn+"flex-pack:$3"),/space-between/,"justify")+_n+e+e;case 4200:if(!Gn(e,/flex-|baseline/))return Nn+"grid-column-align"+Jn(e,t)+e;break;case 2592:case 3360:return Nn+Kn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Gn(e.props,/grid-\w+-end/)})?~Yn(e+(n=n[t].value),"span",0)?e:Nn+Kn(e,"-start","")+e+Nn+"grid-row-span:"+(~Yn(n,"span",0)?Gn(n,/\d+/):+Gn(n,/\d+/)-+Gn(e,/\d+/))+";":Nn+Kn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return Gn(e.props,/grid-\w+-start/)})?e:Nn+Kn(Kn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Kn(e,/(.+)-inline(.+)/,_n+"$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(Zn(e)-1-t>6)switch(Xn(e,t+1)){case 109:if(45!==Xn(e,t+4))break;case 102:return Kn(e,/(.+:)(.+)-([^]+)/,"$1"+_n+"$2-$3$1"+jn+(108==Xn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Yn(e,"stretch",0)?kr(Kn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Kn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,s){return Nn+n+":"+r+s+(o?Nn+n+"-span:"+(i?a:+a-+r)+s:"")+e});case 4949:if(121===Xn(e,t+6))return Kn(e,":",":"+_n)+e;break;case 6444:switch(Xn(e,45===Xn(e,14)?18:11)){case 120:return Kn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_n+(45===Xn(e,14)?"inline-":"")+"box$3$1"+_n+"$2$3$1"+Nn+"$2box$3")+e;case 100:return Kn(e,":",":"+Nn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Kn(e,"scroll-","scroll-snap-")+e}return e}function Tr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function qr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case $n:return e.return=e.return||e.value;case zn:return"";case Bn:return e.return=e.value+"{"+Tr(e.children,r)+"}";case Fn:if(!Zn(e.value=e.props.join(",")))return""}return Zn(n=Tr(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pr(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $n:return void(e.return=kr(e.value,e.length,n));case Bn:return Tr([dr(e,{value:Kn(e.value,"@","@"+_n)})],r);case Fn:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(Gn(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pr(dr(e,{props:[Kn(t,/:(read-\w+)/,":-moz-$1")]})),pr(dr(e,{props:[t]})),Wn(e,{props:tr(n,r)});break;case"::placeholder":pr(dr(e,{props:[Kn(t,/:(plac\w+)/,":"+_n+"input-$1")]})),pr(dr(e,{props:[Kn(t,/:(plac\w+)/,":-moz-$1")]})),pr(dr(e,{props:[Kn(t,/:(plac\w+)/,Nn+"input-$1")]})),pr(dr(e,{props:[t]})),Wn(e,{props:tr(n,r)})}return""})}}function Lr(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(", ")}`:""}`)}const Or="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Nr="active",jr="data-styled-version",_r="6.6.0",zr="/*!sc*/\n",Fr="undefined"!=typeof window&&"undefined"!=typeof document;if(!w.createContext)throw Lr(19);function $r(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Br=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(rr=null!==(nr=$r("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==nr?nr:$r("SC_DISABLE_SPEEDY"))&&void 0!==rr?rr:"undefined"!=typeof process&&void 0!==process.env&&!1),Hr="sc-keyframes-",Vr={};let Wr=new Map,Ur=new Map,Gr=1;const Kr=e=>{if(Wr.has(e))return Wr.get(e);for(;Ur.has(Gr);)Gr++;const t=Gr++;return Wr.set(e,t),Ur.set(t,e),t},Yr=e=>Ur.get(e),Xr=(e,t)=>{Gr=t+1,Wr.set(e,t),Ur.set(t,e)},Jr=Object.freeze([]),Zr=Object.freeze({});function Qr(e,t,n=Zr){return e.theme!==n.theme&&e.theme||t||n.theme}const eo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,to=/(^-|-$)/g;function no(e){return e.replace(eo,"-").replace(to,"")}const ro=/(a)(d)/gi,oo=e=>String.fromCharCode(e+(e>25?39:97));function io(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=oo(t%52)+n;return(oo(t%52)+n).replace(ro,"$1-$2")}const ao=5381,so=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},lo=e=>so(ao,e);function co(e){return io(lo(e)>>>0)}function uo(e){return"string"==typeof e&&!0}function po(e){return uo(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const fo=Symbol.for("react.memo"),ho=Symbol.for("react.forward_ref"),mo={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},go={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},bo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vo={[ho]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[fo]:bo};function yo(e){return("type"in(t=e)&&t.type.$$typeof)===fo?bo:"$$typeof"in e?vo[e.$$typeof]:mo;var t}const xo=Object.defineProperty,So=Object.getOwnPropertyNames,wo=Object.getOwnPropertySymbols,Co=Object.getOwnPropertyDescriptor,Eo=Object.getPrototypeOf,Io=Object.prototype;function Ao(e,t,n){if("string"!=typeof t){const r=Eo(t);r&&r!==Io&&Ao(e,r,n);const o=So(t).concat(wo(t)),i=yo(e),a=yo(t);for(let r=0;r<o.length;++r){const s=o[r];if(!(s in go||n&&n[s]||a&&s in a||i&&s in i)){const n=Co(t,s);try{xo(e,s,n)}catch(e){}}}}return e}function Ro(e){return"function"==typeof e}const Do=Symbol.for("react.forward_ref");function Mo(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===Do&&"styledComponentId"in e}function ko(e,t){return e&&t?e+" "+t:e||t||""}function To(e,t){return e.join("")}function qo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Po(e,t,n=!1){if(!n&&!qo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Po(e[n],t[n]);else if(qo(t))for(const n in t)e[n]=Po(e[n],t[n]);return e}function Lo(e,t){Object.defineProperty(e,"toString",{value:t})}const Oo=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 n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw Lr(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let o=0,i=t.length;o<i;o++)this.tag.insertRule(n,t[o])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n;for(let e=r;e<o;e++)t+=this.tag.getRule(e)+zr;return t}},No=`style[${Or}][${jr}="${_r}"]`,jo=new RegExp(`^${Or}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),_o=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,zo=e=>{if(!e)return document;if(_o(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(_o(t))return t}return document},Fo=(e,t,n)=>{const r=n.split(",");let o;for(let n=0,i=r.length;n<i;n++)(o=r[n])&&e.registerName(t,o)},$o=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(zr),o=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const i=n.match(jo);if(i){const t=0|parseInt(i[1],10),n=i[2];0!==t&&(Xr(n,t),Fo(e,n,i[3]),e.getTag().insertRules(t,o)),o.length=0}else o.push(n)}},Bo=e=>{const t=zo(e.options.target).querySelectorAll(No);for(let n=0,r=t.length;n<r;n++){const r=t[n];r&&r.getAttribute(Or)!==Nr&&($o(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let Ho=!1;const Vo=(e,t)=>{if("undefined"==typeof document)throw Lr(20);const n=document.head,r=e||n,o=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${Or}]`));return t[t.length-1]})(r),a=void 0!==i?i.nextSibling:null;o.setAttribute(Or,Nr),o.setAttribute(jr,_r);const s=t||function(){if(!1!==Ho)return Ho;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Ho=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Ho=t.getAttribute("content")||void 0}return Ho="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&o.setAttribute("nonce",s),r.insertBefore(o,a),o},Wo=class{constructor(e,t){this.element=Vo(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw Lr(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:""}},Uo=class{constructor(e,t){this.element=Vo(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,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 Go=Fr;const Ko={isServer:!Fr,useCSSOMInjection:!Br};class Yo{static registerId(e){return Kr(e)}constructor(e=Zr,t={},n){this.options=Object.assign(Object.assign({},Ko),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Fr&&Go&&(Go=!1,Bo(this)),Lo(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let o=0;o<n;o++){const n=Yr(o);if(void 0===n)continue;const i=e.names.get(n);if(void 0===i||!i.size)continue;const a=t.getGroup(o);if(0===a.length)continue;const s=Or+".g"+o+'[id="'+n+'"]';let l="";for(const e of i)e.length>0&&(l+=e+",");r+=a+s+'{content:"'+l+'"}'+zr}return r})(this))}rehydrate(){!this.server&&Fr&&Bo(this)}reconstructWithOptions(e,t=!0){const n=new Yo(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&Fr&&e.target!==this.options.target&&zo(this.options.target)!==zo(e.target)&&Bo(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new Wo(t,n):new Uo(t,n))(this.options),new Oo(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){Kr(e),e.startsWith(Hr)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(Kr(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(Kr(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Xo=new WeakSet,Jo={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 Zo(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Jo||e.startsWith("--")?String(t).trim():t+"px"}const Qo=47;function ei(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const ti=Symbol.for("sc-keyframes");function ni(e){return Ro(e)&&!(e.prototype&&e.prototype.isReactComponent)}const ri=e=>null==e||!1===e||""===e,oi=Symbol.for("react.client.reference");function ii(e){return e.$$typeof===oi}function ai(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!ri(r)&&(Array.isArray(r)&&Xo.has(r)||Ro(r)?t.push(ei(n)+":",r,";"):qo(r)?(t.push(n+" {"),ai(r,t),t.push("}")):t.push(ei(n)+": "+Zo(n,r)+";"))}}function si(e,t,n,r,o=[]){if(ri(e))return o;const i=typeof e;if("string"===i)return o.push(e),o;if("function"===i){if(ii(e))return o;if(ni(e)&&t){return si(e(t),t,n,r,o)}return o.push(e),o}if(Array.isArray(e)){for(let i=0;i<e.length;i++)si(e[i],t,n,r,o);return o}return Mo(e)?(o.push(`.${e.styledComponentId}`),o):function(e){return"object"==typeof e&&null!==e&&ti in e}(e)?(n?(e.inject(n,r),o.push(e.getName(r))):o.push(e),o):ii(e)?o:qo(e)?e.toString!==Object.prototype.toString?(o.push(e.toString()),o):(ai(e,o),o):(o.push(e.toString()),o)}const li=lo(_r);class ci{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=so(li,t),this.baseStyle=n,Yo.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let o="";for(let r=0;r<this.rules.length;r++){const i=this.rules[r];if("string"==typeof i)o+=i;else if(i)if(ni(i)){const r=i(e);"string"==typeof r?o+=r:null!=r&&!1!==r&&(o+=To(si(r,e,t,n)))}else o+=To(si(i,e,t,n))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+o:o;let i=this.dynamicNameCache.get(e);if(!i){if(i=io(so(so(this.baseHash,n.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=n(o,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}r=ko(r,i)}}return r}}const ui=/&/g;function di(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function pi(e){const t=e.length;let n="",r=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!==Qo||42!==e.charCodeAt(l+1))if(a)42===c&&e.charCodeAt(l+1)===Qo&&(a=!1,l++);else if(34!==c&&39!==c||di(e,l)){if(0===i)if(123===c)o++;else if(125===c){if(o--,o<0){s=!0;let n=l+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,o=0,l=n-1,r=n;continue}0===o&&(n+=e.substring(r,l+1),r=l+1)}else 59===c&&0===o&&(n+=e.substring(r,l+1),r=l+1)}else 0===i?i=c:i===c&&(i=0);else a=!0,l++}return s||0!==o||0!==i?(r<t&&0===o&&0===i&&(n+=e.substring(r)),n):e}function fi(e,t){const n=t+" ",r=","+n;for(let o=0;o<e.length;o++){const i=e[o];if("rule"===i.type){i.value=(n+i.value).replaceAll(",",r);const e=i.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];i.props=t}Array.isArray(i.children)&&"@keyframes"!==i.type&&fi(i.children,t)}return e}function hi({options:e=Zr,plugins:t=Jr}=Zr){let n,r,o;const i=(e,t,o)=>o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===Fn&&e.value.includes("&")&&(o||(o=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(ui,r).replace(o,i))}),e.prefix&&a.push(Pr),a.push(qr);let s=[];const l=function(e){var t=Qn(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,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="&")=>{n=c,r=i,o=void 0;const u=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return pi(e);const r=e.length;let o="",i=0,a=0,s=0,l=0,c=0,u=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||di(e,a))if(0===s)if(t===Qo&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==Qo);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===Qo)o+=e.substring(i,a),a+=2,i=a,u=!0;else if(t===Qo&&a+1<r&&e.charCodeAt(a+1)===Qo){for(o+=e.substring(i,a);a<r&&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<r&&(o+=e.substring(i)),0===c?o:pi(o)):0===c?e:pi(e)}(t);let d=Ir(a||i?a+" "+i+" { "+u+" }":u);return e.namespace&&(d=fi(d,e.namespace)),s=[],Tr(d,l),s},u=e;var d;let p=ao;for(let e=0;e<t.length;e++)t[e].name||Lr(15),p=so(p,t[e].name);return(null==u?void 0:u.namespace)&&(p=so(p,u.namespace)),(null==u?void 0:u.prefix)&&(p=so(p,"p")),c.hash=p!==ao?p.toString():"",c}const mi=new Yo,gi=hi(),bi=w.createContext({shouldForwardProp:void 0,styleSheet:mi,stylis:gi,stylisPlugins:void 0});function vi(){return w.useContext(bi)}function yi(e){var t;const n=vi(),{styleSheet:r}=n,o=w.useMemo(()=>{let t=r;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,r]),i=w.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?n.stylis:hi({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:n.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,n.stylis,n.stylisPlugins]),a="shouldForwardProp"in e?e.shouldForwardProp:n.shouldForwardProp,s=null!==(t=e.stylisPlugins)&&void 0!==t?t:n.stylisPlugins,l=w.useMemo(()=>({shouldForwardProp:a,styleSheet:o,stylis:i,stylisPlugins:s}),[a,o,i,s]);return w.createElement(bi.Provider,{value:l},e.children)}bi.Consumer;const xi=w.createContext(void 0);xi.Consumer;const Si={};function wi(e,t){const n="string"!=typeof e?"sc":no(e);Si[n]=(Si[n]||0)+1;const r=n+"-"+co(_r+n+Si[n]);return t?t+"-"+r:r}function Ci(e,t,n){const r=Mo(e),o=e,i=!uo(e),{attrs:a=Jr,componentId:s=wi(t.displayName,t.parentComponentId),displayName:l=po(e)}=t,c=t.displayName&&t.componentId?no(t.displayName)+"-"+t.componentId:t.componentId||s,u=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:d}=t;if(r&&o.shouldForwardProp){const e=o.shouldForwardProp;if(t.shouldForwardProp){const n=t.shouldForwardProp;d=(t,r)=>e(t,r)&&n(t,r)}else d=e}const p=new ci(n,c,r?o.componentStyle:void 0);function f(e,t){return function(e,t,n){const{attrs:r,componentStyle:o,defaultProps:i,foldedComponentIds:a,styledComponentId:s,target:l}=e,c=w.useContext(xi),u=vi(),d=e.shouldForwardProp||u.shouldForwardProp,p=Qr(t,c,i)||Zr,[f,h]=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n});let o=null;const i=e.length>1;for(let t=0;t<e.length;t++){const n=e[t],a=Ro(n)?n(i?Object.assign({},r):r):n;for(const e in a)"className"===e?r.className=ko(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):void 0===a[e]?e in r&&(void 0!==r[e]&&(o||(o=[])).push(e),r[e]=void 0):r[e]=a[e]}return"className"in t&&"string"==typeof t.className&&(r.className=ko(r.className,t.className)),[r,o]}(r,t,p),m=o.generateAndInjectStyles(f,u.styleSheet,u.stylis),g=f.as||l,b=uo(g),v=function(e,t,n,r,o,i){const a={};for(const s in e)"$"===s[0]||"as"===s||"theme"===s&&e.theme===n||("forwardedAs"===s?void 0!==e.forwardedAs&&(a.as=e.forwardedAs):void 0===e[s]?"className"===s||o||null!==i&&-1!==i.indexOf(s)||r&&!r(s,t)||(a[s]=void 0):r&&!r(s,t)||(a[s]=e[s]));return a}(f,g,p,d,b,h);let y=ko(a,s);return m&&(y+=" "+m),f.className&&(y+=" "+f.className),v[b&&g.includes("-")?"class":"className"]=y,n&&(v.ref=n),C(g,v)}(h,e,t)}f.displayName=l;let h=w.forwardRef(f);return h.attrs=u,h.componentStyle=p,h.displayName=l,h.shouldForwardProp=d,h.foldedComponentIds=r?ko(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=c,h.target=r?o.target:e,Object.defineProperty(h,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(const n of t)Po(e,n,!0);return e}({},o.defaultProps,e):e}}),Lo(h,()=>`.${h.styledComponentId}`),i&&Ao(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var Ei=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 Ii(e,t){const n=[e[0]];for(let r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}const Ai=e=>(Xo.add(e),e);function Ri(e,...t){if(Ro(e)||qo(e))return Ai(si(Ii(Jr,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?si(n):Ai(si(Ii(n,t)))}function Di(e,t,n=Zr){if(!t)throw Lr(1,t);const r=(r,...o)=>e(t,n,Ri(r,...o));return r.attrs=r=>Di(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Di(e,t,Object.assign(Object.assign({},n),r)),r}const Mi=e=>Di(Ci,e),ki=Mi;Ei.forEach(e=>{ki[e]=Mi(e)});let Ti=class{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 n=e[t];if(Ro(n)&&!Mo(n))return!1}return!0}(e),Yo.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){const o=this.componentId;if(this.isStatic){if(n.hasNameForId(o,o+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{const i=this.computeRules(e,t,n,r);n.insertRules(o,i.name,i.rules)}return}const i=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&i){const t=i.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){const o=To(si(this.rules,t,n,r)),i={name:this.componentId+e,rules:r(o,"")};return this.instanceRules.set(e,i),i}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};var qi;class Pi{constructor(e,t){this[qi]=!0,this.inject=(e,t=gi)=>{const n=this.getName(t);if(!e.hasNameForId(this.id,n)){const r=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,r)}},this.name=e,this.id=Hr+e,this.rules=t,Kr(this.id),Lo(this,()=>{throw Lr(12,String(this.name))})}getName(e=gi){return e.hash?this.name+io(+e.hash>>>0):this.name}}function Li(e,...t){const n=To(Ri(e,...t)),r=co(n);return new Pi(r,n)}qi=ti;var Oi,Ni,ji,_i,zi,Fi={exports:{}};function $i(){if(Ni)return Oi;Ni=1;return Oi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Bi(){if(_i)return ji;_i=1;var e=$i();function t(){}function n(){}return n.resetWarningCache=t,ji=function(){function r(t,n,r,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 r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Hi(){return zi||(zi=1,Fi.exports=Bi()()),Fi.exports}var Vi=Ht(Hi());function Wi(e){const{injectFirst:t,children:n}=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 n}Wi.propTypes={children:Vi.node,injectFirst:Vi.bool};const Ui=function(e,...t){const n=Ri(e,...t),r=`sc-global-${co(JSON.stringify(n))}`,o=new Ti(n,r),i=e=>{const t=vi(),n=w.useContext(xi);let i;{const e=w.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(r)),i=e.current}t.styleSheet.server&&a(i,e,t.styleSheet,n,t.stylis);{const s=o.isStatic?[i,t.styleSheet,o]:[i,e,t.styleSheet,n,t.stylis,o],l=w.useRef(o);w.useLayoutEffect(()=>{t.styleSheet.server||(l.current!==o&&(t.styleSheet.clearRules(r),l.current=o),a(i,e,t.styleSheet,n,t.stylis))},s),w.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,n,r,a){if(o.isStatic)o.renderStyles(e,Vr,n,a);else{const s=Object.assign(Object.assign({},t),{theme:Qr(t,r,i.defaultProps)});o.renderStyles(e,s,n,a)}}return w.memo(i)}(e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r});
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,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(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",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"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},Rt({exports:{}});const At=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function Dt(e,t){return n(()=>e,t)}const Mt={},kt=()=>{const{viewState:e}=r(),t=(e=>{const t=n(()=>({current:Mt}),[]);return t.current=t.current===Mt?e:t.current,t})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=n(()=>At(),[]),l=Dt(e=>{t.current.add(e)},[t]),c=Dt(function(e,t=50){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}(async()=>{await Promise.all(t.current),t.current.clear(),s()},1e3),[s,t]);return o(async()=>{await a},[a]),n(()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:c,waitForPromise:l}),[c,i,e,l])},Tt={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"},qt={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",...Tt,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)"},Pt=12,Lt=14,Ot=16,Nt=24,jt=3,_t=300,zt=400,Ft=600,$t=700,Bt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Ht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Wt,Ut,Gt={exports:{}},Kt={};var Yt=(Ut||(Ut=1,Gt.exports=function(){if(Wt)return Kt;Wt=1;var e=w,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=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,n,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return Kt.Fragment=n,Kt.jsx=a,Kt.jsxs=a,Kt}()),Gt.exports);const Xt={black:"#000",white:"#fff"},Jt="#e57373",Zt="#ef5350",Qt="#f44336",en="#d32f2f",tn="#c62828",nn="#f3e5f5",rn="#ce93d8",on="#ba68c8",an="#ab47bc",sn="#9c27b0",ln="#7b1fa2",cn="#e3f2fd",un="#90caf9",dn="#42a5f5",pn="#1976d2",fn="#1565c0",hn="#4fc3f7",mn="#29b6f6",gn="#03a9f4",bn="#0288d1",vn="#01579b",yn="#81c784",xn="#66bb6a",Sn="#4caf50",wn="#388e3c",Cn="#2e7d32",En="#1b5e20",In="#ffb74d",Rn="#ffa726",An="#ff9800",Dn="#f57c00",Mn="#e65100",kn={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 Tn(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 qn=Object.freeze({__proto__:null,default:Tn}),Pn="$$material";function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ln.apply(null,arguments)}function On(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Nn="-ms-",jn="-moz-",_n="-webkit-",zn="comm",Fn="rule",$n="decl",Bn="@keyframes",Hn=Math.abs,Vn=String.fromCharCode,Wn=Object.assign;function Un(e){return e.trim()}function Gn(e,t){return(e=t.exec(e))?e[0]:e}function Kn(e,t,n){return e.replace(t,n)}function Yn(e,t,n){return e.indexOf(t,n)}function Xn(e,t){return 0|e.charCodeAt(t)}function Jn(e,t,n){return e.slice(t,n)}function Zn(e){return e.length}function Qn(e){return e.length}function er(e,t){return t.push(e),e}function tr(e,t){return e.filter(function(e){return!Gn(e,t)})}var nr,rr,or=1,ir=1,ar=0,sr=0,lr=0,cr="";function ur(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:or,column:ir,length:a,return:"",siblings:s}}function dr(e,t){return Wn(ur("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function pr(e){for(;e.root;)e=dr(e.root,{children:[e]});er(e,e.siblings)}function fr(){return lr=sr>0?Xn(cr,--sr):0,ir--,10===lr&&(ir=1,or--),lr}function hr(){return lr=sr<ar?Xn(cr,sr++):0,ir++,10===lr&&(ir=1,or++),lr}function mr(){return Xn(cr,sr)}function gr(){return sr}function br(e,t){return Jn(cr,e,t)}function vr(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 yr(e){return Un(br(sr-1,wr(91===e?e+2:40===e?e+1:e)))}function xr(e){for(;(lr=mr())&&lr<33;)hr();return vr(e)>2||vr(lr)>3?"":" "}function Sr(e,t){for(;--t&&hr()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return br(e,gr()+(t<6&&32==mr()&&32==hr()))}function wr(e){for(;hr();)switch(lr){case e:return sr;case 34:case 39:34!==e&&39!==e&&wr(lr);break;case 40:41===e&&wr(e);break;case 92:hr()}return sr}function Cr(e,t){for(;hr()&&e+lr!==57&&(e+lr!==84||47!==mr()););return"/*"+br(t,sr-1)+"*"+Vn(47===e?e:hr())}function Er(e){for(;!vr(mr());)hr();return br(e,sr)}function Ir(e){return function(e){return cr="",e}(Rr("",null,null,null,[""],e=function(e){return or=ir=1,ar=Zn(cr=e),sr=0,[]}(e),0,[0],e))}function Rr(e,t,n,r,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=r,C=y;g;)switch(h=v,v=hr()){case 40:if(108!=h&&58==Xn(C,d-1)){-1!=Yn(C+=Kn(yr(v),"&","&\f"),"&\f",Hn(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=yr(v);break;case 9:case 10:case 13:case 32:C+=xr(h);break;case 92:C+=Sr(gr()-1,7);continue;case 47:switch(mr()){case 42:case 47:er(Dr(Cr(hr(),gr()),t,n,l),l),5!=vr(h||1)&&5!=vr(mr()||1)||!Zn(C)||" "===Jn(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[c++]=Zn(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(C=Kn(C,/\f/g,"")),f>0&&(Zn(C)-d||0===m&&47===h)&&er(f>32?Mr(C+";",r,n,d-1,l):Mr(Kn(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(er(w=Ar(C,t,n,c,u,o,s,y,x=[],S=[],d,i),i),123===v)if(0===u)Rr(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===Xn(C,3))break;case 108:if(97===Xn(C,2))break;default:u=0;case 100:case 109:case 115:}u?Rr(e,w,w,r&&er(Ar(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,r?x:S):Rr(C,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+Zn(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==fr())continue;switch(C+=Vn(v),v*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Zn(C)-1)*b,b=1;break;case 64:45===mr()&&(C+=yr(hr())),p=mr(),u=d=Zn(y=C+=Er(gr())),v++;break;case 45:45===h&&2==Zn(C)&&(m=0)}}return i}function Ar(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=Qn(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=Jn(e,p+1,p=Hn(g=a[m])),x=e;v<h;++v)(x=Un(g>0?f[v]+" "+y:Kn(y,/&\f/g,f[v])))&&(l[b++]=x);return ur(e,t,n,0===o?Fn:s,l,c,u,d)}function Dr(e,t,n,r){return ur(e,t,n,zn,Vn(lr),Jn(e,2,-2),0,r)}function Mr(e,t,n,r,o){return ur(e,t,n,$n,Jn(e,0,r),Jn(e,r+1,-1),r,o)}function kr(e,t,n){switch(function(e,t){return 45^Xn(e,0)?(((t<<2^Xn(e,0))<<2^Xn(e,1))<<2^Xn(e,2))<<2^Xn(e,3):0}(e,t)){case 5103:return _n+"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 _n+e+e;case 4855:return _n+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return jn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _n+e+jn+e+Nn+e+e;case 5936:switch(Xn(e,t+11)){case 114:return _n+e+Nn+Kn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _n+e+Nn+Kn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _n+e+Nn+Kn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _n+e+Nn+e+e;case 6165:return _n+e+Nn+"flex-"+e+e;case 5187:return _n+e+Kn(e,/(\w+).+(:[^]+)/,_n+"box-$1$2"+Nn+"flex-$1$2")+e;case 5443:return _n+e+Nn+"flex-item-"+Kn(e,/flex-|-self/g,"")+(Gn(e,/flex-|baseline/)?"":Nn+"grid-row-"+Kn(e,/flex-|-self/g,""))+e;case 4675:return _n+e+Nn+"flex-line-pack"+Kn(e,/align-content|flex-|-self/g,"")+e;case 5548:return _n+e+Nn+Kn(e,"shrink","negative")+e;case 5292:return _n+e+Nn+Kn(e,"basis","preferred-size")+e;case 6060:return _n+"box-"+Kn(e,"-grow","")+_n+e+Nn+Kn(e,"grow","positive")+e;case 4554:return _n+Kn(e,/([^-])(transform)/g,"$1"+_n+"$2")+e;case 6187:return Kn(Kn(Kn(e,/(zoom-|grab)/,_n+"$1"),/(image-set)/,_n+"$1"),e,"")+e;case 5495:case 3959:return Kn(e,/(image-set\([^]*)/,_n+"$1$`$1");case 4968:return Kn(Kn(e,/(.+:)(flex-)?(.*)/,_n+"box-pack:$3"+Nn+"flex-pack:$3"),/space-between/,"justify")+_n+e+e;case 4200:if(!Gn(e,/flex-|baseline/))return Nn+"grid-column-align"+Jn(e,t)+e;break;case 2592:case 3360:return Nn+Kn(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Gn(e.props,/grid-\w+-end/)})?~Yn(e+(n=n[t].value),"span",0)?e:Nn+Kn(e,"-start","")+e+Nn+"grid-row-span:"+(~Yn(n,"span",0)?Gn(n,/\d+/):+Gn(n,/\d+/)-+Gn(e,/\d+/))+";":Nn+Kn(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return Gn(e.props,/grid-\w+-start/)})?e:Nn+Kn(Kn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Kn(e,/(.+)-inline(.+)/,_n+"$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(Zn(e)-1-t>6)switch(Xn(e,t+1)){case 109:if(45!==Xn(e,t+4))break;case 102:return Kn(e,/(.+:)(.+)-([^]+)/,"$1"+_n+"$2-$3$1"+jn+(108==Xn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Yn(e,"stretch",0)?kr(Kn(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Kn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,s){return Nn+n+":"+r+s+(o?Nn+n+"-span:"+(i?a:+a-+r)+s:"")+e});case 4949:if(121===Xn(e,t+6))return Kn(e,":",":"+_n)+e;break;case 6444:switch(Xn(e,45===Xn(e,14)?18:11)){case 120:return Kn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_n+(45===Xn(e,14)?"inline-":"")+"box$3$1"+_n+"$2$3$1"+Nn+"$2box$3")+e;case 100:return Kn(e,":",":"+Nn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Kn(e,"scroll-","scroll-snap-")+e}return e}function Tr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function qr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case $n:return e.return=e.return||e.value;case zn:return"";case Bn:return e.return=e.value+"{"+Tr(e.children,r)+"}";case Fn:if(!Zn(e.value=e.props.join(",")))return""}return Zn(n=Tr(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pr(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $n:return void(e.return=kr(e.value,e.length,n));case Bn:return Tr([dr(e,{value:Kn(e.value,"@","@"+_n)})],r);case Fn:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(Gn(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pr(dr(e,{props:[Kn(t,/:(read-\w+)/,":-moz-$1")]})),pr(dr(e,{props:[t]})),Wn(e,{props:tr(n,r)});break;case"::placeholder":pr(dr(e,{props:[Kn(t,/:(plac\w+)/,":"+_n+"input-$1")]})),pr(dr(e,{props:[Kn(t,/:(plac\w+)/,":-moz-$1")]})),pr(dr(e,{props:[Kn(t,/:(plac\w+)/,Nn+"input-$1")]})),pr(dr(e,{props:[t]})),Wn(e,{props:tr(n,r)})}return""})}}function Lr(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(", ")}`:""}`)}const Or="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Nr="active",jr="data-styled-version",_r="6.6.0",zr="/*!sc*/\n",Fr="undefined"!=typeof window&&"undefined"!=typeof document;if(!w.createContext)throw Lr(19);function $r(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Br=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(rr=null!==(nr=$r("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==nr?nr:$r("SC_DISABLE_SPEEDY"))&&void 0!==rr?rr:"undefined"!=typeof process&&void 0!==process.env&&!1),Hr="sc-keyframes-",Vr={};let Wr=new Map,Ur=new Map,Gr=1;const Kr=e=>{if(Wr.has(e))return Wr.get(e);for(;Ur.has(Gr);)Gr++;const t=Gr++;return Wr.set(e,t),Ur.set(t,e),t},Yr=e=>Ur.get(e),Xr=(e,t)=>{Gr=t+1,Wr.set(e,t),Ur.set(t,e)},Jr=Object.freeze([]),Zr=Object.freeze({});function Qr(e,t,n=Zr){return e.theme!==n.theme&&e.theme||t||n.theme}const eo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,to=/(^-|-$)/g;function no(e){return e.replace(eo,"-").replace(to,"")}const ro=/(a)(d)/gi,oo=e=>String.fromCharCode(e+(e>25?39:97));function io(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=oo(t%52)+n;return(oo(t%52)+n).replace(ro,"$1-$2")}const ao=5381,so=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},lo=e=>so(ao,e);function co(e){return io(lo(e)>>>0)}function uo(e){return"string"==typeof e&&!0}function po(e){return uo(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const fo=Symbol.for("react.memo"),ho=Symbol.for("react.forward_ref"),mo={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},go={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},bo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vo={[ho]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[fo]:bo};function yo(e){return("type"in(t=e)&&t.type.$$typeof)===fo?bo:"$$typeof"in e?vo[e.$$typeof]:mo;var t}const xo=Object.defineProperty,So=Object.getOwnPropertyNames,wo=Object.getOwnPropertySymbols,Co=Object.getOwnPropertyDescriptor,Eo=Object.getPrototypeOf,Io=Object.prototype;function Ro(e,t,n){if("string"!=typeof t){const r=Eo(t);r&&r!==Io&&Ro(e,r,n);const o=So(t).concat(wo(t)),i=yo(e),a=yo(t);for(let r=0;r<o.length;++r){const s=o[r];if(!(s in go||n&&n[s]||a&&s in a||i&&s in i)){const n=Co(t,s);try{xo(e,s,n)}catch(e){}}}}return e}function Ao(e){return"function"==typeof e}const Do=Symbol.for("react.forward_ref");function Mo(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===Do&&"styledComponentId"in e}function ko(e,t){return e&&t?e+" "+t:e||t||""}function To(e,t){return e.join("")}function qo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Po(e,t,n=!1){if(!n&&!qo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Po(e[n],t[n]);else if(qo(t))for(const n in t)e[n]=Po(e[n],t[n]);return e}function Lo(e,t){Object.defineProperty(e,"toString",{value:t})}const Oo=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 n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw Lr(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let o=0,i=t.length;o<i;o++)this.tag.insertRule(n,t[o])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n;for(let e=r;e<o;e++)t+=this.tag.getRule(e)+zr;return t}},No=`style[${Or}][${jr}="${_r}"]`,jo=new RegExp(`^${Or}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),_o=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,zo=e=>{if(!e)return document;if(_o(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(_o(t))return t}return document},Fo=(e,t,n)=>{const r=n.split(",");let o;for(let n=0,i=r.length;n<i;n++)(o=r[n])&&e.registerName(t,o)},$o=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(zr),o=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const i=n.match(jo);if(i){const t=0|parseInt(i[1],10),n=i[2];0!==t&&(Xr(n,t),Fo(e,n,i[3]),e.getTag().insertRules(t,o)),o.length=0}else o.push(n)}},Bo=e=>{const t=zo(e.options.target).querySelectorAll(No);for(let n=0,r=t.length;n<r;n++){const r=t[n];r&&r.getAttribute(Or)!==Nr&&($o(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let Ho=!1;const Vo=(e,t)=>{if("undefined"==typeof document)throw Lr(20);const n=document.head,r=e||n,o=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${Or}]`));return t[t.length-1]})(r),a=void 0!==i?i.nextSibling:null;o.setAttribute(Or,Nr),o.setAttribute(jr,_r);const s=t||function(){if(!1!==Ho)return Ho;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Ho=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Ho=t.getAttribute("content")||void 0}return Ho="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&o.setAttribute("nonce",s),r.insertBefore(o,a),o},Wo=class{constructor(e,t){this.element=Vo(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw Lr(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:""}},Uo=class{constructor(e,t){this.element=Vo(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,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 Go=Fr;const Ko={isServer:!Fr,useCSSOMInjection:!Br};class Yo{static registerId(e){return Kr(e)}constructor(e=Zr,t={},n){this.options=Object.assign(Object.assign({},Ko),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Fr&&Go&&(Go=!1,Bo(this)),Lo(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let o=0;o<n;o++){const n=Yr(o);if(void 0===n)continue;const i=e.names.get(n);if(void 0===i||!i.size)continue;const a=t.getGroup(o);if(0===a.length)continue;const s=Or+".g"+o+'[id="'+n+'"]';let l="";for(const e of i)e.length>0&&(l+=e+",");r+=a+s+'{content:"'+l+'"}'+zr}return r})(this))}rehydrate(){!this.server&&Fr&&Bo(this)}reconstructWithOptions(e,t=!0){const n=new Yo(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&Fr&&e.target!==this.options.target&&zo(this.options.target)!==zo(e.target)&&Bo(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new Wo(t,n):new Uo(t,n))(this.options),new Oo(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){Kr(e),e.startsWith(Hr)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(Kr(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(Kr(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Xo=new WeakSet,Jo={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 Zo(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Jo||e.startsWith("--")?String(t).trim():t+"px"}const Qo=47;function ei(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const ti=Symbol.for("sc-keyframes");function ni(e){return Ao(e)&&!(e.prototype&&e.prototype.isReactComponent)}const ri=e=>null==e||!1===e||""===e,oi=Symbol.for("react.client.reference");function ii(e){return e.$$typeof===oi}function ai(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!ri(r)&&(Array.isArray(r)&&Xo.has(r)||Ao(r)?t.push(ei(n)+":",r,";"):qo(r)?(t.push(n+" {"),ai(r,t),t.push("}")):t.push(ei(n)+": "+Zo(n,r)+";"))}}function si(e,t,n,r,o=[]){if(ri(e))return o;const i=typeof e;if("string"===i)return o.push(e),o;if("function"===i){if(ii(e))return o;if(ni(e)&&t){return si(e(t),t,n,r,o)}return o.push(e),o}if(Array.isArray(e)){for(let i=0;i<e.length;i++)si(e[i],t,n,r,o);return o}return Mo(e)?(o.push(`.${e.styledComponentId}`),o):function(e){return"object"==typeof e&&null!==e&&ti in e}(e)?(n?(e.inject(n,r),o.push(e.getName(r))):o.push(e),o):ii(e)?o:qo(e)?e.toString!==Object.prototype.toString?(o.push(e.toString()),o):(ai(e,o),o):(o.push(e.toString()),o)}const li=lo(_r);class ci{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=so(li,t),this.baseStyle=n,Yo.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let o="";for(let r=0;r<this.rules.length;r++){const i=this.rules[r];if("string"==typeof i)o+=i;else if(i)if(ni(i)){const r=i(e);"string"==typeof r?o+=r:null!=r&&!1!==r&&(o+=To(si(r,e,t,n)))}else o+=To(si(i,e,t,n))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+o:o;let i=this.dynamicNameCache.get(e);if(!i){if(i=io(so(so(this.baseHash,n.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=n(o,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}r=ko(r,i)}}return r}}const ui=/&/g;function di(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function pi(e){const t=e.length;let n="",r=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!==Qo||42!==e.charCodeAt(l+1))if(a)42===c&&e.charCodeAt(l+1)===Qo&&(a=!1,l++);else if(34!==c&&39!==c||di(e,l)){if(0===i)if(123===c)o++;else if(125===c){if(o--,o<0){s=!0;let n=l+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,o=0,l=n-1,r=n;continue}0===o&&(n+=e.substring(r,l+1),r=l+1)}else 59===c&&0===o&&(n+=e.substring(r,l+1),r=l+1)}else 0===i?i=c:i===c&&(i=0);else a=!0,l++}return s||0!==o||0!==i?(r<t&&0===o&&0===i&&(n+=e.substring(r)),n):e}function fi(e,t){const n=t+" ",r=","+n;for(let o=0;o<e.length;o++){const i=e[o];if("rule"===i.type){i.value=(n+i.value).replaceAll(",",r);const e=i.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];i.props=t}Array.isArray(i.children)&&"@keyframes"!==i.type&&fi(i.children,t)}return e}function hi({options:e=Zr,plugins:t=Jr}=Zr){let n,r,o;const i=(e,t,o)=>o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===Fn&&e.value.includes("&")&&(o||(o=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(ui,r).replace(o,i))}),e.prefix&&a.push(Pr),a.push(qr);let s=[];const l=function(e){var t=Qn(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,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="&")=>{n=c,r=i,o=void 0;const u=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return pi(e);const r=e.length;let o="",i=0,a=0,s=0,l=0,c=0,u=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||di(e,a))if(0===s)if(t===Qo&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==Qo);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===Qo)o+=e.substring(i,a),a+=2,i=a,u=!0;else if(t===Qo&&a+1<r&&e.charCodeAt(a+1)===Qo){for(o+=e.substring(i,a);a<r&&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<r&&(o+=e.substring(i)),0===c?o:pi(o)):0===c?e:pi(e)}(t);let d=Ir(a||i?a+" "+i+" { "+u+" }":u);return e.namespace&&(d=fi(d,e.namespace)),s=[],Tr(d,l),s},u=e;var d;let p=ao;for(let e=0;e<t.length;e++)t[e].name||Lr(15),p=so(p,t[e].name);return(null==u?void 0:u.namespace)&&(p=so(p,u.namespace)),(null==u?void 0:u.prefix)&&(p=so(p,"p")),c.hash=p!==ao?p.toString():"",c}const mi=new Yo,gi=hi(),bi=w.createContext({shouldForwardProp:void 0,styleSheet:mi,stylis:gi,stylisPlugins:void 0});function vi(){return w.useContext(bi)}function yi(e){var t;const n=vi(),{styleSheet:r}=n,o=w.useMemo(()=>{let t=r;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,r]),i=w.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?n.stylis:hi({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:n.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,n.stylis,n.stylisPlugins]),a="shouldForwardProp"in e?e.shouldForwardProp:n.shouldForwardProp,s=null!==(t=e.stylisPlugins)&&void 0!==t?t:n.stylisPlugins,l=w.useMemo(()=>({shouldForwardProp:a,styleSheet:o,stylis:i,stylisPlugins:s}),[a,o,i,s]);return w.createElement(bi.Provider,{value:l},e.children)}bi.Consumer;const xi=w.createContext(void 0);xi.Consumer;const Si={};function wi(e,t){const n="string"!=typeof e?"sc":no(e);Si[n]=(Si[n]||0)+1;const r=n+"-"+co(_r+n+Si[n]);return t?t+"-"+r:r}function Ci(e,t,n){const r=Mo(e),o=e,i=!uo(e),{attrs:a=Jr,componentId:s=wi(t.displayName,t.parentComponentId),displayName:l=po(e)}=t,c=t.displayName&&t.componentId?no(t.displayName)+"-"+t.componentId:t.componentId||s,u=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:d}=t;if(r&&o.shouldForwardProp){const e=o.shouldForwardProp;if(t.shouldForwardProp){const n=t.shouldForwardProp;d=(t,r)=>e(t,r)&&n(t,r)}else d=e}const p=new ci(n,c,r?o.componentStyle:void 0);function f(e,t){return function(e,t,n){const{attrs:r,componentStyle:o,defaultProps:i,foldedComponentIds:a,styledComponentId:s,target:l}=e,c=w.useContext(xi),u=vi(),d=e.shouldForwardProp||u.shouldForwardProp,p=Qr(t,c,i)||Zr,[f,h]=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n});let o=null;const i=e.length>1;for(let t=0;t<e.length;t++){const n=e[t],a=Ao(n)?n(i?Object.assign({},r):r):n;for(const e in a)"className"===e?r.className=ko(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):void 0===a[e]?e in r&&(void 0!==r[e]&&(o||(o=[])).push(e),r[e]=void 0):r[e]=a[e]}return"className"in t&&"string"==typeof t.className&&(r.className=ko(r.className,t.className)),[r,o]}(r,t,p),m=o.generateAndInjectStyles(f,u.styleSheet,u.stylis),g=f.as||l,b=uo(g),v=function(e,t,n,r,o,i){const a={};for(const s in e)"$"===s[0]||"as"===s||"theme"===s&&e.theme===n||("forwardedAs"===s?void 0!==e.forwardedAs&&(a.as=e.forwardedAs):void 0===e[s]?"className"===s||o||null!==i&&-1!==i.indexOf(s)||r&&!r(s,t)||(a[s]=void 0):r&&!r(s,t)||(a[s]=e[s]));return a}(f,g,p,d,b,h);let y=ko(a,s);return m&&(y+=" "+m),f.className&&(y+=" "+f.className),v[b&&g.includes("-")?"class":"className"]=y,n&&(v.ref=n),C(g,v)}(h,e,t)}f.displayName=l;let h=w.forwardRef(f);return h.attrs=u,h.componentStyle=p,h.displayName=l,h.shouldForwardProp=d,h.foldedComponentIds=r?ko(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=c,h.target=r?o.target:e,Object.defineProperty(h,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(const n of t)Po(e,n,!0);return e}({},o.defaultProps,e):e}}),Lo(h,()=>`.${h.styledComponentId}`),i&&Ro(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var Ei=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 Ii(e,t){const n=[e[0]];for(let r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}const Ri=e=>(Xo.add(e),e);function Ai(e,...t){if(Ao(e)||qo(e))return Ri(si(Ii(Jr,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?si(n):Ri(si(Ii(n,t)))}function Di(e,t,n=Zr){if(!t)throw Lr(1,t);const r=(r,...o)=>e(t,n,Ai(r,...o));return r.attrs=r=>Di(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Di(e,t,Object.assign(Object.assign({},n),r)),r}const Mi=e=>Di(Ci,e),ki=Mi;Ei.forEach(e=>{ki[e]=Mi(e)});let Ti=class{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 n=e[t];if(Ao(n)&&!Mo(n))return!1}return!0}(e),Yo.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){const o=this.componentId;if(this.isStatic){if(n.hasNameForId(o,o+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{const i=this.computeRules(e,t,n,r);n.insertRules(o,i.name,i.rules)}return}const i=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&i){const t=i.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){const o=To(si(this.rules,t,n,r)),i={name:this.componentId+e,rules:r(o,"")};return this.instanceRules.set(e,i),i}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};var qi;class Pi{constructor(e,t){this[qi]=!0,this.inject=(e,t=gi)=>{const n=this.getName(t);if(!e.hasNameForId(this.id,n)){const r=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,r)}},this.name=e,this.id=Hr+e,this.rules=t,Kr(this.id),Lo(this,()=>{throw Lr(12,String(this.name))})}getName(e=gi){return e.hash?this.name+io(+e.hash>>>0):this.name}}function Li(e,...t){const n=To(Ai(e,...t)),r=co(n);return new Pi(r,n)}qi=ti;var Oi,Ni,ji,_i,zi,Fi={exports:{}};function $i(){if(Ni)return Oi;Ni=1;return Oi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Bi(){if(_i)return ji;_i=1;var e=$i();function t(){}function n(){}return n.resetWarningCache=t,ji=function(){function r(t,n,r,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 r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Hi(){return zi||(zi=1,Fi.exports=Bi()()),Fi.exports}var Vi=Ht(Hi());function Wi(e){const{injectFirst:t,children:n}=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 n}Wi.propTypes={children:Vi.node,injectFirst:Vi.bool};const Ui=function(e,...t){const n=Ai(e,...t),r=`sc-global-${co(JSON.stringify(n))}`,o=new Ti(n,r),i=e=>{const t=vi(),n=w.useContext(xi);let i;{const e=w.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(r)),i=e.current}t.styleSheet.server&&a(i,e,t.styleSheet,n,t.stylis);{const s=o.isStatic?[i,t.styleSheet,o]:[i,e,t.styleSheet,n,t.stylis,o],l=w.useRef(o);w.useLayoutEffect(()=>{t.styleSheet.server||(l.current!==o&&(t.styleSheet.clearRules(r),l.current=o),a(i,e,t.styleSheet,n,t.stylis))},s),w.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,n,r,a){if(o.isStatic)o.renderStyles(e,Vr,n,a);else{const s=Object.assign(Object.assign({},t),{theme:Qr(t,r,i.defaultProps)});o.renderStyles(e,s,n,a)}}return w.memo(i)}(e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r});
10
10
  /**
11
11
  * @mui/styled-engine-sc v6.4.3
12
12
  *
@@ -14,7 +14,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,d,p=e.le
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- function Gi(e,t){let n;return n=t?ki(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ki(e),n}function Ki(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Yi(e){return e}Ui.propTypes={defaultTheme:Vi.object,styles:Vi.oneOfType([Vi.array,Vi.string,Vi.object,Vi.func])};var Xi=Object.freeze({__proto__:null,GlobalStyles:Ui,StyledEngineProvider:Wi,ThemeContext:xi,css:Ri,default:Gi,internal_mutateStyles:Ki,internal_processStyles:function(e,t){return Ki(e,t)},internal_serializeStyles:Yi,keyframes:Li});function Ji(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Zi(e){if(E.isValidElement(e)||!Ji(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Zi(e[n])}),t}function Qi(e,t,n={clone:!0}){const r=n.clone?Ln({},e):e;return Ji(e)&&Ji(t)&&Object.keys(t).forEach(o=>{E.isValidElement(t[o])?r[o]=t[o]:Ji(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ji(e[o])?r[o]=Qi(e[o],t[o],n):n.clone?r[o]=Ji(t[o])?Zi(t[o]):t[o]:r[o]=t[o]}),r}var ea=Object.freeze({__proto__:null,default:Qi,isPlainObject:Ji});const ta=["values","unit","step"];function na(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=On(e,ta),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>Ln({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ln({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const ra={borderRadius:4};function oa(e,t){return t?Qi(e,t,{clone:!1}):e}const ia={xs:0,sm:600,md:900,lg:1200,xl:1536},aa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ia[e]}px)`};function sa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||aa;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||aa;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||ia).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function la(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ca(e){if("string"!=typeof e)throw new Error(Tn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ua=Object.freeze({__proto__:null,default:ca});function da(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function pa(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:da(e,n)||r,t&&(o=t(o,r,e)),o}function fa(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=da(e.theme,r)||{};return sa(e,i,e=>{let r=pa(a,o,e);return e===r&&"string"==typeof e&&(r=pa(a,o,`${t}${"default"===e?"":ca(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const ha={m:"margin",p:"padding"},ma={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ga={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ba=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!ga[e])return[e];e=ga[e]}const[t,n]=e.split(""),r=ha[t],o=ma[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),va=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ya=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function xa(e,t,n,r){var o;const i=null!=(o=da(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Sa(e){return xa(e,"spacing",8)}function wa(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Ca(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=wa(t,n),e),{})}(ba(n),r);return sa(e,e[n],o)}function Ea(e,t){const n=Sa(e.theme);return Object.keys(e).map(r=>Ca(e,t,r,n)).reduce(oa,{})}function Ia(e){return Ea(e,va)}function Aa(e){return Ea(e,ya)}function Ra(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?oa(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Da(e){return"number"!=typeof e?e:`${e}px solid`}function Ma(e,t){return fa({prop:e,themeKey:"borders",transform:t})}Ia.propTypes={},Ia.filterProps=va,Aa.propTypes={},Aa.filterProps=ya;const ka=Ma("border",Da),Ta=Ma("borderTop",Da),qa=Ma("borderRight",Da),Pa=Ma("borderBottom",Da),La=Ma("borderLeft",Da),Oa=Ma("borderColor"),Na=Ma("borderTopColor"),ja=Ma("borderRightColor"),_a=Ma("borderBottomColor"),za=Ma("borderLeftColor"),Fa=Ma("outline",Da),$a=Ma("outlineColor"),Ba=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xa(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:wa(t,e)});return sa(e,e.borderRadius,n)}return null};Ba.propTypes={},Ba.filterProps=["borderRadius"],Ra(ka,Ta,qa,Pa,La,Oa,Na,ja,_a,za,Ba,Fa,$a);const Ha=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xa(e.theme,"spacing",8),n=e=>({gap:wa(t,e)});return sa(e,e.gap,n)}return null};Ha.propTypes={},Ha.filterProps=["gap"];const Va=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xa(e.theme,"spacing",8),n=e=>({columnGap:wa(t,e)});return sa(e,e.columnGap,n)}return null};Va.propTypes={},Va.filterProps=["columnGap"];const Wa=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xa(e.theme,"spacing",8),n=e=>({rowGap:wa(t,e)});return sa(e,e.rowGap,n)}return null};Wa.propTypes={},Wa.filterProps=["rowGap"];function Ua(e,t){return"grey"===t?t:e}Ra(Ha,Va,Wa,fa({prop:"gridColumn"}),fa({prop:"gridRow"}),fa({prop:"gridAutoFlow"}),fa({prop:"gridAutoColumns"}),fa({prop:"gridAutoRows"}),fa({prop:"gridTemplateColumns"}),fa({prop:"gridTemplateRows"}),fa({prop:"gridTemplateAreas"}),fa({prop:"gridArea"}));function Ga(e){return e<=1&&0!==e?100*e+"%":e}Ra(fa({prop:"color",themeKey:"palette",transform:Ua}),fa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ua}),fa({prop:"backgroundColor",themeKey:"palette",transform:Ua}));const Ka=fa({prop:"width",transform:Ga}),Ya=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||ia[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ga(t)}};return sa(e,e.maxWidth,t)}return null};Ya.filterProps=["maxWidth"];const Xa=fa({prop:"minWidth",transform:Ga}),Ja=fa({prop:"height",transform:Ga}),Za=fa({prop:"maxHeight",transform:Ga}),Qa=fa({prop:"minHeight",transform:Ga});fa({prop:"size",cssProperty:"width",transform:Ga}),fa({prop:"size",cssProperty:"height",transform:Ga});Ra(Ka,Ya,Xa,Ja,Za,Qa,fa({prop:"boxSizing"}));const es={border:{themeKey:"borders",transform:Da},borderTop:{themeKey:"borders",transform:Da},borderRight:{themeKey:"borders",transform:Da},borderBottom:{themeKey:"borders",transform:Da},borderLeft:{themeKey:"borders",transform:Da},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Da},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ba},color:{themeKey:"palette",transform:Ua},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ua},backgroundColor:{themeKey:"palette",transform:Ua},p:{style:Aa},pt:{style:Aa},pr:{style:Aa},pb:{style:Aa},pl:{style:Aa},px:{style:Aa},py:{style:Aa},padding:{style:Aa},paddingTop:{style:Aa},paddingRight:{style:Aa},paddingBottom:{style:Aa},paddingLeft:{style:Aa},paddingX:{style:Aa},paddingY:{style:Aa},paddingInline:{style:Aa},paddingInlineStart:{style:Aa},paddingInlineEnd:{style:Aa},paddingBlock:{style:Aa},paddingBlockStart:{style:Aa},paddingBlockEnd:{style:Aa},m:{style:Ia},mt:{style:Ia},mr:{style:Ia},mb:{style:Ia},ml:{style:Ia},mx:{style:Ia},my:{style:Ia},margin:{style:Ia},marginTop:{style:Ia},marginRight:{style:Ia},marginBottom:{style:Ia},marginLeft:{style:Ia},marginX:{style:Ia},marginY:{style:Ia},marginInline:{style:Ia},marginInlineStart:{style:Ia},marginInlineEnd:{style:Ia},marginBlock:{style:Ia},marginBlockStart:{style:Ia},marginBlockEnd:{style:Ia},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ha},rowGap:{style:Wa},columnGap:{style:Va},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ga},maxWidth:{style:Ya},minWidth:{transform:Ga},height:{transform:Ga},maxHeight:{transform:Ga},minHeight:{transform:Ga},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ts(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=da(n,s)||{};if(c)return c(o);return sa(o,t,t=>{let n=pa(u,l,t);return t===n&&"string"==typeof t&&(n=pa(u,l,`${e}${"default"===t?"":ca(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:es;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=oa(c,e(n,o,i,s));else{const e=sa({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=oa(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=oa(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":la(l,c)}:la(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const ns=ts();function rs(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}ns.filterProps=["sx"];const os=["breakpoints","palette","spacing","shape"];function is(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=On(e,os),s=na(n),l=function(e=8){if(e.mui)return e;const t=Sa({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let c=Qi({breakpoints:s,direction:"ltr",components:{},palette:Ln({mode:"light"},r),spacing:l,shape:Ln({},ra,i)},a);return c.applyStyles=rs,c=t.reduce((e,t)=>Qi(e,t),c),c.unstable_sxConfig=Ln({},es,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ns({sx:e,theme:this})},c}var as=Object.freeze({__proto__:null,default:is,private_createBreakpoints:na,unstable_applyStyles:rs});function ss(e=null){const t=E.useContext(xi);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ls=is();function cs(e=ls){return ss(e)}function us(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ds({styles:e,themeId:t,defaultTheme:n={}}){const r=cs(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>us("function"==typeof e?e(o):e)):us(i)),Yt.jsx(Ui,{styles:i})}const ps=["sx"];function fs(e){const{sx:t}=e,n=On(e,ps),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:es;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ji(n)?Ln({},r,n):r}:Ln({},r,t),Ln({},o,{sx:i})}var hs=Object.freeze({__proto__:null,default:ns,extendSxProp:fs,unstable_createStyleFunctionSx:ts,unstable_defaultSxConfig:es});const ms=e=>e,gs=(()=>{let e=ms;return{configure(t){e=t},generate:t=>e(t),reset(){e=ms}}})();function bs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=bs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vs(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bs(e))&&(r&&(r+=" "),r+=t);return r}const ys=["className","component"];const xs={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ss(e,t,n="Mui"){const r=xs[t];return r?`${n}-${r}`:`${gs.generate(e)}-${t}`}function ws(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Ss(e,t,n)}),r}var Cs,Es,Is={exports:{}},As={};function Rs(){if(Cs)return As;Cs=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case n:case o:case r:case l:case c:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case u:case i:return f;default:return h}}case t:return h}}}return As.ContextConsumer=i,As.ContextProvider=a,As.Element=e,As.ForwardRef=s,As.Fragment=n,As.Lazy=d,As.Memo=u,As.Portal=t,As.Profiler=o,As.StrictMode=r,As.Suspense=l,As.SuspenseList=c,As.isContextConsumer=function(e){return h(e)===i},As.isContextProvider=function(e){return h(e)===a},As.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},As.isForwardRef=function(e){return h(e)===s},As.isFragment=function(e){return h(e)===n},As.isLazy=function(e){return h(e)===d},As.isMemo=function(e){return h(e)===u},As.isPortal=function(e){return h(e)===t},As.isProfiler=function(e){return h(e)===o},As.isStrictMode=function(e){return h(e)===r},As.isSuspense=function(e){return h(e)===l},As.isSuspenseList=function(e){return h(e)===c},As.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},As.typeOf=h,As}function Ds(){return Es||(Es=1,Is.exports=Rs()),Is.exports}var Ms=Ds();const ks=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ts(e){const t=`${e}`.match(ks);return t&&t[1]||""}function qs(e,t=""){return e.displayName||e.name||Ts(e)||t}function Ps(e,t,n){const r=qs(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ls=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return qs(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ms.ForwardRef:return Ps(e,e.render,"ForwardRef");case Ms.Memo:return Ps(e,e.type,"memo");default:return}}},getFunctionName:Ts});function Os(e,t){const n=Ln({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ln({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Ln({},i),Object.keys(o).forEach(e=>{n[r][e]=Os(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const Ns="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;function js(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var _s=Object.freeze({__proto__:null,default:js});function zs(e){if(e.type)return e;if("#"===e.charAt(0))return zs(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Tn(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Tn(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function Fs(e,t){return e=zs(e),t=function(e,t=0,n=1){return js(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function $s(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Bs(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Hs(e){return e&&e.ownerDocument||document}function Vs(e){return Hs(e).defaultView||window}function Ws(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Us=0;const Gs=E["useId".toString()];function Ks(e){if(void 0!==Gs){return Gs()}return function(e){const[t,n]=E.useState(e),r=t;return E.useEffect(()=>{null==t&&(Us+=1,n(`mui-${Us}`))},[t]),r}(e)}function Ys({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=E.useRef(void 0!==e),[i,a]=E.useState(t);return[o?e:i,E.useCallback(e=>{o||a(e)},[])]}function Xs(e){const t=E.useRef(e);return Ns(()=>{t.current=e}),E.useRef((...e)=>(0,t.current)(...e)).current}function Js(...e){return E.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Ws(e,t)})},e)}const Zs={};const Qs=[];class el{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new el}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function tl(){const e=function(e,t){const n=E.useRef(Zs);return n.current===Zs&&(n.current=e(t)),n}(el.create).current;return function(e){E.useEffect(e,Qs)}(e.disposeEffect),e}let nl=!0,rl=!1;const ol=new el,il={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function al(e){e.metaKey||e.altKey||e.ctrlKey||(nl=!0)}function sl(){nl=!1}function ll(){"hidden"===this.visibilityState&&rl&&(nl=!0)}function cl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return nl||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!il[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ul(){const e=E.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",al,!0),t.addEventListener("mousedown",sl,!0),t.addEventListener("pointerdown",sl,!0),t.addEventListener("touchstart",sl,!0),t.addEventListener("visibilitychange",ll,!0))},[]),t=E.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!cl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(rl=!0,ol.start(100,()=>{rl=!1}),t.current=!1,!0)},ref:e}}function dl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function pl(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function fl(e){return"string"==typeof e}function hl(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function ml(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}const gl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function bl(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=On(e,gl),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=vs(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Ln({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Ln({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=hl(Ln({},o,r)),s=ml(r),l=ml(o),c=t(a),u=vs(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Ln({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Ln({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(Ln({},a,{externalSlotProps:s})),u=function(e,t,n){return void 0===e||fl(e)?t:Ln({},t,{ownerState:Ln({},t.ownerState,n)})}(n,Ln({},l,{ref:Js(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}function vl(e){var t;return parseInt(E.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const yl=E.createContext(null);function xl(){return E.useContext(yl)}var Sl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function wl(e){const{children:t,theme:n}=e,r=xl(),o=E.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Ln({},e,t)}(r,n);return null!=e&&(e[Sl]=null!==r),e},[n,r]);return Yt.jsx(yl.Provider,{value:o,children:t})}const Cl=["value"],El=E.createContext();function Il(e){let{value:t}=e,n=On(e,Cl);return Yt.jsx(El.Provider,Ln({value:null==t||t},n))}const Al=E.createContext(void 0);function Rl({value:e,children:t}){return Yt.jsx(Al.Provider,{value:e,children:t})}function Dl({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Os(o.defaultProps,r):o.styleOverrides||o.variants?r:Os(o,r)}({props:e,name:t,theme:{components:E.useContext(Al)}})}const Ml={};function kl(e,t,n,r=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Ln({},t,{[e]:i}):i;return r?()=>a:a}return Ln({},t,e?{[e]:n}:n)},[e,t,n,r])}function Tl(e){const{children:t,theme:n,themeId:r}=e,o=ss(Ml),i=xl()||Ml,a=kl(r,o,n),s=kl(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=ss(),n=Ks()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Ns(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Yt.jsx(ds,{styles:o}):null}(a);return Yt.jsx(wl,{theme:s,children:Yt.jsx(xi.Provider,{value:a,children:Yt.jsx(Il,{value:l,children:Yt.jsxs(Rl,{value:null==a?void 0:a.components,children:[c,t]})})})})}var ql,Pl={},Ll={exports:{}};function Ol(){return ql||(ql=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ll)),Ll.exports}var Nl,jl=Vt(qn),_l=Vt(_s);function zl(){if(Nl)return Pl;Nl=1;var e=Ol();Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.alpha=u,Pl.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},Pl.colorChannel=void 0,Pl.darken=d,Pl.decomposeColor=i,Pl.emphasize=f,Pl.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Pl.getLuminance=c,Pl.hexToRgb=o,Pl.hslToRgb=l,Pl.lighten=p,Pl.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},Pl.private_safeColorChannel=void 0,Pl.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},Pl.private_safeEmphasize=function(e,t,n){try{return f(e,t)}catch(t){return e}},Pl.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},Pl.recomposeColor=s,Pl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(jl),n=e(_l);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};Pl.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function f(e,t=.15){return c(e)>.5?d(e,t):p(e,t)}return Pl.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},Pl}var Fl=zl();const $l=["mode","contrastThreshold","tonalOffset"],Bl={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Xt.white,default:Xt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Hl={text:{primary:Xt.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Xt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Vl(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Fl.lighten(e.main,o):"dark"===t&&(e.dark=Fl.darken(e.main,i)))}function Wl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=On(e,$l),i=e.primary||function(e="light"){return"dark"===e?{main:un,light:cn,dark:dn}:{main:pn,light:dn,dark:fn}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:rn,light:nn,dark:an}:{main:sn,light:on,dark:ln}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Qt,light:Jt,dark:en}:{main:en,light:Zt,dark:tn}}(t),l=e.info||function(e="light"){return"dark"===e?{main:mn,light:hn,dark:bn}:{main:bn,light:gn,dark:vn}}(t),c=e.success||function(e="light"){return"dark"===e?{main:xn,light:yn,dark:wn}:{main:Cn,light:Sn,dark:En}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:An,light:In,dark:Dn}:{main:"#ed6c02",light:Rn,dark:Mn}}(t);function d(e){return Fl.getContrastRatio(e,Hl.text.primary)>=n?Hl.text.primary:Bl.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ln({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Tn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Tn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Vl(e,"light",o,r),Vl(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Hl,light:Bl};return Qi(Ln({common:Ln({},Xt),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:kn,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ul=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Gl={textTransform:"uppercase"},Kl='"Roboto", "Helvetica", "Arial", sans-serif';function Yl(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Kl,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=On(n,Ul),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return Ln({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Kl?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Gl),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Gl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qi(Ln({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Xl(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Jl=["none",Xl(0,2,1,-1,0,1,1,0,0,1,3,0),Xl(0,3,1,-2,0,2,2,0,0,1,5,0),Xl(0,3,3,-2,0,3,4,0,0,1,8,0),Xl(0,2,4,-1,0,4,5,0,0,1,10,0),Xl(0,3,5,-1,0,5,8,0,0,1,14,0),Xl(0,3,5,-1,0,6,10,0,0,1,18,0),Xl(0,4,5,-2,0,7,10,1,0,2,16,1),Xl(0,5,5,-3,0,8,10,1,0,3,14,2),Xl(0,5,6,-3,0,9,12,1,0,3,16,2),Xl(0,6,6,-3,0,10,14,1,0,4,18,3),Xl(0,6,7,-4,0,11,15,1,0,4,20,3),Xl(0,7,8,-4,0,12,17,2,0,5,22,4),Xl(0,7,8,-4,0,13,19,2,0,5,24,4),Xl(0,7,9,-4,0,14,21,2,0,5,26,4),Xl(0,8,9,-5,0,15,22,2,0,6,28,5),Xl(0,8,10,-5,0,16,24,2,0,6,30,5),Xl(0,8,11,-5,0,17,26,2,0,6,32,5),Xl(0,9,11,-5,0,18,28,2,0,7,34,6),Xl(0,9,12,-6,0,19,29,2,0,7,36,6),Xl(0,10,13,-6,0,20,31,3,0,8,38,7),Xl(0,10,13,-6,0,21,33,3,0,8,40,7),Xl(0,10,14,-6,0,22,35,3,0,8,42,7),Xl(0,11,14,-7,0,23,36,3,0,9,44,8),Xl(0,11,15,-7,0,24,38,3,0,9,46,8)],Zl=["duration","easing","delay"],Ql={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ec={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tc(e){return`${Math.round(e)}ms`}function nc(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function rc(e){const t=Ln({},Ql,e.easing),n=Ln({},ec,e.duration);return Ln({getAutoHeightDuration:nc,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return On(r,Zl),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:tc(o)} ${i} ${"string"==typeof a?a:tc(a)}`).join(",")}},e,{easing:t,duration:n})}const oc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ic=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ac(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=On(e,ic);if(e.vars&&void 0===e.generateCssVars)throw new Error(Tn(18));const s=Wl(r),l=is(e);let c=Qi(l,{mixins:(u=l.breakpoints,d=n,Ln({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Jl.slice(),typography:Yl(s,i),transitions:rc(o),zIndex:Ln({},oc)});var u,d;return c=Qi(c,a),c=t.reduce((e,t)=>Qi(e,t),c),c.unstable_sxConfig=Ln({},es,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ns({sx:e,theme:this})},c}const sc=ac();function lc(){const e=cs(sc);return e[Pn]||e}var cc,uc={},dc={exports:{}};var pc,fc={exports:{}};var hc,mc=Vt(Xi),gc=Vt(ea),bc=Vt(ua),vc=Vt(Ls),yc=Vt(as),xc=Vt(hs);function Sc(){if(hc)return uc;hc=1;var e=Ol();Object.defineProperty(uc,"__esModule",{value:!0}),uc.default=function(e={}){const{themeId:i,defaultTheme:s=f,rootShouldForwardProp:l=d,slotShouldForwardProp:u=d}=e,p=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:s,themeId:i}))}));return p.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:f,slot:v,skipVariantsResolver:y,skipSx:x,overridesResolver:S=g(h(v))}=a,w=(0,n.default)(a,c),C=f&&f.startsWith("Mui")||v?"components":"custom",E=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,I=x||!1;let A=d;"Root"===v||"root"===v?A=l:v?A=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(A=void 0);const R=(0,r.default)(e,(0,t.default)({shouldForwardProp:A,label:void 0},w)),D=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=m({theme:n.theme,defaultTheme:s,themeId:i});return b(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?C:void 0)}:e,M=(n,...r)=>{let o=D(n);const a=r?r.map(D):[];f&&S&&a.push(e=>{const n=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));if(!n.components||!n.components[f]||!n.components[f].styleOverrides)return null;const r=n.components[f].styleOverrides,o={};return Object.entries(r).forEach(([r,i])=>{o[r]=b(i,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),S(e,o)}),f&&!E&&a.push(e=>{var n;const r=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));return b({variants:null==r||null==(n=r.components)||null==(n=n[f])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),I||a.push(p);const l=a.length-r.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const c=R(o,...a);return e.muiName&&(c.muiName=e.muiName),c};return R.withConfig&&(M.withConfig=R.withConfig),M}},uc.shouldForwardProp=d,uc.systemDefaultTheme=void 0;var t=e((cc||(cc=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(dc)),dc.exports)),n=e((pc||(pc=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(fc)),fc.exports)),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(mc),o=gc;e(bc),e(vc);var i=e(yc),a=e(xc);const s=["ownerState"],l=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function p(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=uc.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function b(e,o,i){let{ownerState:a}=o,c=(0,n.default)(o,s);const u="function"==typeof e?e((0,t.default)({ownerState:a},c)):e;if(Array.isArray(u))return u.flatMap(e=>b(e,(0,t.default)({ownerState:a},c),i));if(u&&"object"==typeof u&&Array.isArray(u.variants)){const{variants:e=[]}=u;let o=(0,n.default)(u,l);return e.forEach(e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:a},c,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&c[t]!==e.props[t]&&(n=!1)}),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:a},c,a)):e.style;o.push(i?p((0,r.internal_serializeStyles)(n),i):n)}}),o}return i?p((0,r.internal_serializeStyles)(u),i):u}return uc}function wc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Cc=e=>wc(e)&&"classes"!==e,Ec=Ht(Sc())({themeId:Pn,defaultTheme:sc,rootShouldForwardProp:Cc}),Ic=["theme"];function Ac(e){let{theme:t}=e,n=On(e,Ic);const r=t[Pn];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=Ln({},r,{vars:null}):t&&!t.vars&&(o=Ln({},t,{vars:null}))),Yt.jsx(Tl,Ln({},n,{themeId:r?Pn:void 0,theme:o}))}const Rc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Dc(e){return Dl(e)}function Mc(e){return Ss("MuiSvgIcon",e)}ws("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const kc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Tc=Ec("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ca(n.color)}`],t[`fontSize${ca(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),qc=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=On(n,kc),f=E.isValidElement(r)&&"svg"===r.type,h=Ln({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return pl({root:["root","inherit"!==t&&`color${ca(t)}`,`fontSize${ca(n)}`]},Mc,r)})(h);return Yt.jsxs(Tc,Ln({as:a,className:vs(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?Yt.jsx("title",{children:u}):null]}))});function Pc(e,t){function n(n,r){return Yt.jsx(qc,Ln({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=qc.muiName,E.memo(E.forwardRef(n))}function Lc(e,t){return Lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lc(e,t)}function Oc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lc(e,t)}qc.muiName="SvgIcon";var Nc=!1,jc=w.createContext(null),_c="unmounted",zc="exited",Fc="entering",$c="entered",Bc="exiting",Hc=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=zc,r.appearStatus=Fc):o=$c:o=t.unmountOnExit||t.mountOnEnter?_c:zc,r.state={status:o},r.nextCallback=null,r}Oc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===_c?{status:zc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Fc&&n!==$c&&(t=Fc):n!==Fc&&n!==$c||(t=Bc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Fc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:V.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zc&&this.setState({status:_c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[V.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Nc?this.safeSetState({status:$c},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Fc},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:$c},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:V.findDOMNode(this);t&&!Nc?(this.props.onExit(r),this.safeSetState({status:Bc},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:zc},function(){e.props.onExited(r)})})})):this.safeSetState({status:zc},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:V.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===_c)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=On(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return w.createElement(jc.Provider,{value:null},"function"==typeof n?n(e,r):w.cloneElement(w.Children.only(n),r))},t}(w.Component);function Vc(){}function Wc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uc(e,t){var n=Object.create(null);return e&&R.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&I(e)?t(e):e}(e)}),n}function Gc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Kc(e,t,n){var r=Uc(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(I(a)){var s=i in t,l=i in r,c=t[i],u=I(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&I(c)&&(o[i]=A(a,{onExited:n.bind(null,a),in:c.props.in,exit:Gc(a,"exit",e),enter:Gc(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:n.bind(null,a),in:!0,exit:Gc(a,"exit",e),enter:Gc(a,"enter",e)})}}),o}Hc.contextType=jc,Hc.propTypes={},Hc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vc,onEntering:Vc,onEntered:Vc,onExit:Vc,onExiting:Vc,onExited:Vc},Hc.UNMOUNTED=_c,Hc.EXITED=zc,Hc.ENTERING=Fc,Hc.ENTERED=$c,Hc.EXITING=Bc;var Yc=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Xc=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Wc(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Oc(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Uc(n.children,function(e){return A(e,{onExited:r.bind(null,e),in:!0,appear:Gc(e,"appear",n),enter:Gc(e,"enter",n),exit:Gc(e,"exit",n)})})):Kc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Uc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Ln({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=On(e,["component","childFactory"]),o=this.state.contextValue,i=Yc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?w.createElement(jc.Provider,{value:o},i):w.createElement(jc.Provider,{value:o},w.createElement(t,r,i))},t}(w.Component);Xc.propTypes={},Xc.defaultProps={component:"div",childFactory:function(e){return e}};const Jc=e=>e.scrollTop;function Zc(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Qc(e){return Ss("MuiPaper",e)}ws("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const eu=["className","component","elevation","square","variant"],tu=Ec("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return Ln({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Ln({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Fl.alpha("#fff",Rc(t.elevation))}, ${Fl.alpha("#fff",Rc(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),nu=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=On(n,eu),c=Ln({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return pl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Qc,o)})(c);return Yt.jsx(tu,Ln({as:o,ownerState:c,className:vs(u.root,r),ref:t},l))});const ru=ws("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ou=["center","classes","className"];let iu,au,su,lu,cu=e=>e;const uu=Li(iu||(iu=cu`
17
+ function Gi(e,t){let n;return n=t?ki(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ki(e),n}function Ki(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Yi(e){return e}Ui.propTypes={defaultTheme:Vi.object,styles:Vi.oneOfType([Vi.array,Vi.string,Vi.object,Vi.func])};var Xi=Object.freeze({__proto__:null,GlobalStyles:Ui,StyledEngineProvider:Wi,ThemeContext:xi,css:Ai,default:Gi,internal_mutateStyles:Ki,internal_processStyles:function(e,t){return Ki(e,t)},internal_serializeStyles:Yi,keyframes:Li});function Ji(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Zi(e){if(E.isValidElement(e)||!Ji(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Zi(e[n])}),t}function Qi(e,t,n={clone:!0}){const r=n.clone?Ln({},e):e;return Ji(e)&&Ji(t)&&Object.keys(t).forEach(o=>{E.isValidElement(t[o])?r[o]=t[o]:Ji(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ji(e[o])?r[o]=Qi(e[o],t[o],n):n.clone?r[o]=Ji(t[o])?Zi(t[o]):t[o]:r[o]=t[o]}),r}var ea=Object.freeze({__proto__:null,default:Qi,isPlainObject:Ji});const ta=["values","unit","step"];function na(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=On(e,ta),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>Ln({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ln({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const ra={borderRadius:4};function oa(e,t){return t?Qi(e,t,{clone:!1}):e}const ia={xs:0,sm:600,md:900,lg:1200,xl:1536},aa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ia[e]}px)`};function sa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||aa;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||aa;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||ia).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function la(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function ca(e){if("string"!=typeof e)throw new Error(Tn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ua=Object.freeze({__proto__:null,default:ca});function da(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function pa(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:da(e,n)||r,t&&(o=t(o,r,e)),o}function fa(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=da(e.theme,r)||{};return sa(e,i,e=>{let r=pa(a,o,e);return e===r&&"string"==typeof e&&(r=pa(a,o,`${t}${"default"===e?"":ca(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const ha={m:"margin",p:"padding"},ma={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ga={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ba=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!ga[e])return[e];e=ga[e]}const[t,n]=e.split(""),r=ha[t],o=ma[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),va=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ya=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function xa(e,t,n,r){var o;const i=null!=(o=da(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Sa(e){return xa(e,"spacing",8)}function wa(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Ca(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=wa(t,n),e),{})}(ba(n),r);return sa(e,e[n],o)}function Ea(e,t){const n=Sa(e.theme);return Object.keys(e).map(r=>Ca(e,t,r,n)).reduce(oa,{})}function Ia(e){return Ea(e,va)}function Ra(e){return Ea(e,ya)}function Aa(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?oa(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Da(e){return"number"!=typeof e?e:`${e}px solid`}function Ma(e,t){return fa({prop:e,themeKey:"borders",transform:t})}Ia.propTypes={},Ia.filterProps=va,Ra.propTypes={},Ra.filterProps=ya;const ka=Ma("border",Da),Ta=Ma("borderTop",Da),qa=Ma("borderRight",Da),Pa=Ma("borderBottom",Da),La=Ma("borderLeft",Da),Oa=Ma("borderColor"),Na=Ma("borderTopColor"),ja=Ma("borderRightColor"),_a=Ma("borderBottomColor"),za=Ma("borderLeftColor"),Fa=Ma("outline",Da),$a=Ma("outlineColor"),Ba=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=xa(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:wa(t,e)});return sa(e,e.borderRadius,n)}return null};Ba.propTypes={},Ba.filterProps=["borderRadius"],Aa(ka,Ta,qa,Pa,La,Oa,Na,ja,_a,za,Ba,Fa,$a);const Ha=e=>{if(void 0!==e.gap&&null!==e.gap){const t=xa(e.theme,"spacing",8),n=e=>({gap:wa(t,e)});return sa(e,e.gap,n)}return null};Ha.propTypes={},Ha.filterProps=["gap"];const Va=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=xa(e.theme,"spacing",8),n=e=>({columnGap:wa(t,e)});return sa(e,e.columnGap,n)}return null};Va.propTypes={},Va.filterProps=["columnGap"];const Wa=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=xa(e.theme,"spacing",8),n=e=>({rowGap:wa(t,e)});return sa(e,e.rowGap,n)}return null};Wa.propTypes={},Wa.filterProps=["rowGap"];function Ua(e,t){return"grey"===t?t:e}Aa(Ha,Va,Wa,fa({prop:"gridColumn"}),fa({prop:"gridRow"}),fa({prop:"gridAutoFlow"}),fa({prop:"gridAutoColumns"}),fa({prop:"gridAutoRows"}),fa({prop:"gridTemplateColumns"}),fa({prop:"gridTemplateRows"}),fa({prop:"gridTemplateAreas"}),fa({prop:"gridArea"}));function Ga(e){return e<=1&&0!==e?100*e+"%":e}Aa(fa({prop:"color",themeKey:"palette",transform:Ua}),fa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ua}),fa({prop:"backgroundColor",themeKey:"palette",transform:Ua}));const Ka=fa({prop:"width",transform:Ga}),Ya=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||ia[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ga(t)}};return sa(e,e.maxWidth,t)}return null};Ya.filterProps=["maxWidth"];const Xa=fa({prop:"minWidth",transform:Ga}),Ja=fa({prop:"height",transform:Ga}),Za=fa({prop:"maxHeight",transform:Ga}),Qa=fa({prop:"minHeight",transform:Ga});fa({prop:"size",cssProperty:"width",transform:Ga}),fa({prop:"size",cssProperty:"height",transform:Ga});Aa(Ka,Ya,Xa,Ja,Za,Qa,fa({prop:"boxSizing"}));const es={border:{themeKey:"borders",transform:Da},borderTop:{themeKey:"borders",transform:Da},borderRight:{themeKey:"borders",transform:Da},borderBottom:{themeKey:"borders",transform:Da},borderLeft:{themeKey:"borders",transform:Da},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Da},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ba},color:{themeKey:"palette",transform:Ua},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ua},backgroundColor:{themeKey:"palette",transform:Ua},p:{style:Ra},pt:{style:Ra},pr:{style:Ra},pb:{style:Ra},pl:{style:Ra},px:{style:Ra},py:{style:Ra},padding:{style:Ra},paddingTop:{style:Ra},paddingRight:{style:Ra},paddingBottom:{style:Ra},paddingLeft:{style:Ra},paddingX:{style:Ra},paddingY:{style:Ra},paddingInline:{style:Ra},paddingInlineStart:{style:Ra},paddingInlineEnd:{style:Ra},paddingBlock:{style:Ra},paddingBlockStart:{style:Ra},paddingBlockEnd:{style:Ra},m:{style:Ia},mt:{style:Ia},mr:{style:Ia},mb:{style:Ia},ml:{style:Ia},mx:{style:Ia},my:{style:Ia},margin:{style:Ia},marginTop:{style:Ia},marginRight:{style:Ia},marginBottom:{style:Ia},marginLeft:{style:Ia},marginX:{style:Ia},marginY:{style:Ia},marginInline:{style:Ia},marginInlineStart:{style:Ia},marginInlineEnd:{style:Ia},marginBlock:{style:Ia},marginBlockStart:{style:Ia},marginBlockEnd:{style:Ia},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ha},rowGap:{style:Wa},columnGap:{style:Va},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ga},maxWidth:{style:Ya},minWidth:{transform:Ga},height:{transform:Ga},maxHeight:{transform:Ga},minHeight:{transform:Ga},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ts(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=da(n,s)||{};if(c)return c(o);return sa(o,t,t=>{let n=pa(u,l,t);return t===n&&"string"==typeof t&&(n=pa(u,l,`${e}${"default"===t?"":ca(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:es;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=oa(c,e(n,o,i,s));else{const e=sa({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=oa(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=oa(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":la(l,c)}:la(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const ns=ts();function rs(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}ns.filterProps=["sx"];const os=["breakpoints","palette","spacing","shape"];function is(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=On(e,os),s=na(n),l=function(e=8){if(e.mui)return e;const t=Sa({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let c=Qi({breakpoints:s,direction:"ltr",components:{},palette:Ln({mode:"light"},r),spacing:l,shape:Ln({},ra,i)},a);return c.applyStyles=rs,c=t.reduce((e,t)=>Qi(e,t),c),c.unstable_sxConfig=Ln({},es,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ns({sx:e,theme:this})},c}var as=Object.freeze({__proto__:null,default:is,private_createBreakpoints:na,unstable_applyStyles:rs});function ss(e=null){const t=E.useContext(xi);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ls=is();function cs(e=ls){return ss(e)}function us(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ds({styles:e,themeId:t,defaultTheme:n={}}){const r=cs(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>us("function"==typeof e?e(o):e)):us(i)),Yt.jsx(Ui,{styles:i})}const ps=["sx"];function fs(e){const{sx:t}=e,n=On(e,ps),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:es;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ji(n)?Ln({},r,n):r}:Ln({},r,t),Ln({},o,{sx:i})}var hs=Object.freeze({__proto__:null,default:ns,extendSxProp:fs,unstable_createStyleFunctionSx:ts,unstable_defaultSxConfig:es});const ms=e=>e,gs=(()=>{let e=ms;return{configure(t){e=t},generate:t=>e(t),reset(){e=ms}}})();function bs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=bs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vs(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=bs(e))&&(r&&(r+=" "),r+=t);return r}const ys=["className","component"];const xs={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ss(e,t,n="Mui"){const r=xs[t];return r?`${n}-${r}`:`${gs.generate(e)}-${t}`}function ws(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Ss(e,t,n)}),r}var Cs,Es,Is={exports:{}},Rs={};function As(){if(Cs)return Rs;Cs=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case n:case o:case r:case l:case c:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case u:case i:return f;default:return h}}case t:return h}}}return Rs.ContextConsumer=i,Rs.ContextProvider=a,Rs.Element=e,Rs.ForwardRef=s,Rs.Fragment=n,Rs.Lazy=d,Rs.Memo=u,Rs.Portal=t,Rs.Profiler=o,Rs.StrictMode=r,Rs.Suspense=l,Rs.SuspenseList=c,Rs.isContextConsumer=function(e){return h(e)===i},Rs.isContextProvider=function(e){return h(e)===a},Rs.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Rs.isForwardRef=function(e){return h(e)===s},Rs.isFragment=function(e){return h(e)===n},Rs.isLazy=function(e){return h(e)===d},Rs.isMemo=function(e){return h(e)===u},Rs.isPortal=function(e){return h(e)===t},Rs.isProfiler=function(e){return h(e)===o},Rs.isStrictMode=function(e){return h(e)===r},Rs.isSuspense=function(e){return h(e)===l},Rs.isSuspenseList=function(e){return h(e)===c},Rs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},Rs.typeOf=h,Rs}function Ds(){return Es||(Es=1,Is.exports=As()),Is.exports}var Ms=Ds();const ks=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ts(e){const t=`${e}`.match(ks);return t&&t[1]||""}function qs(e,t=""){return e.displayName||e.name||Ts(e)||t}function Ps(e,t,n){const r=qs(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Ls=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return qs(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ms.ForwardRef:return Ps(e,e.render,"ForwardRef");case Ms.Memo:return Ps(e,e.type,"memo");default:return}}},getFunctionName:Ts});function Os(e,t){const n=Ln({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ln({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Ln({},i),Object.keys(o).forEach(e=>{n[r][e]=Os(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const Ns="undefined"!=typeof window?E.useLayoutEffect:E.useEffect;function js(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var _s=Object.freeze({__proto__:null,default:js});function zs(e){if(e.type)return e;if("#"===e.charAt(0))return zs(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Tn(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Tn(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function Fs(e,t){return e=zs(e),t=function(e,t=0,n=1){return js(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function $s(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Bs(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Hs(e){return e&&e.ownerDocument||document}function Vs(e){return Hs(e).defaultView||window}function Ws(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Us=0;const Gs=E["useId".toString()];function Ks(e){if(void 0!==Gs){return Gs()}return function(e){const[t,n]=E.useState(e),r=t;return E.useEffect(()=>{null==t&&(Us+=1,n(`mui-${Us}`))},[t]),r}(e)}function Ys({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=E.useRef(void 0!==e),[i,a]=E.useState(t);return[o?e:i,E.useCallback(e=>{o||a(e)},[])]}function Xs(e){const t=E.useRef(e);return Ns(()=>{t.current=e}),E.useRef((...e)=>(0,t.current)(...e)).current}function Js(...e){return E.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Ws(e,t)})},e)}const Zs={};const Qs=[];class el{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new el}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function tl(){const e=function(e,t){const n=E.useRef(Zs);return n.current===Zs&&(n.current=e(t)),n}(el.create).current;return function(e){E.useEffect(e,Qs)}(e.disposeEffect),e}let nl=!0,rl=!1;const ol=new el,il={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function al(e){e.metaKey||e.altKey||e.ctrlKey||(nl=!0)}function sl(){nl=!1}function ll(){"hidden"===this.visibilityState&&rl&&(nl=!0)}function cl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return nl||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!il[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ul(){const e=E.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",al,!0),t.addEventListener("mousedown",sl,!0),t.addEventListener("pointerdown",sl,!0),t.addEventListener("touchstart",sl,!0),t.addEventListener("visibilitychange",ll,!0))},[]),t=E.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!cl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(rl=!0,ol.start(100,()=>{rl=!1}),t.current=!1,!0)},ref:e}}function dl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function pl(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function fl(e){return"string"==typeof e}function hl(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function ml(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}const gl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function bl(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=On(e,gl),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=vs(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Ln({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Ln({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=hl(Ln({},o,r)),s=ml(r),l=ml(o),c=t(a),u=vs(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Ln({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Ln({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(Ln({},a,{externalSlotProps:s})),u=function(e,t,n){return void 0===e||fl(e)?t:Ln({},t,{ownerState:Ln({},t.ownerState,n)})}(n,Ln({},l,{ref:Js(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}function vl(e){var t;return parseInt(E.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const yl=E.createContext(null);function xl(){return E.useContext(yl)}var Sl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function wl(e){const{children:t,theme:n}=e,r=xl(),o=E.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Ln({},e,t)}(r,n);return null!=e&&(e[Sl]=null!==r),e},[n,r]);return Yt.jsx(yl.Provider,{value:o,children:t})}const Cl=["value"],El=E.createContext();function Il(e){let{value:t}=e,n=On(e,Cl);return Yt.jsx(El.Provider,Ln({value:null==t||t},n))}const Rl=E.createContext(void 0);function Al({value:e,children:t}){return Yt.jsx(Rl.Provider,{value:e,children:t})}function Dl({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Os(o.defaultProps,r):o.styleOverrides||o.variants?r:Os(o,r)}({props:e,name:t,theme:{components:E.useContext(Rl)}})}const Ml={};function kl(e,t,n,r=!1){return E.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Ln({},t,{[e]:i}):i;return r?()=>a:a}return Ln({},t,e?{[e]:n}:n)},[e,t,n,r])}function Tl(e){const{children:t,theme:n,themeId:r}=e,o=ss(Ml),i=xl()||Ml,a=kl(r,o,n),s=kl(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=ss(),n=Ks()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Ns(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?Yt.jsx(ds,{styles:o}):null}(a);return Yt.jsx(wl,{theme:s,children:Yt.jsx(xi.Provider,{value:a,children:Yt.jsx(Il,{value:l,children:Yt.jsxs(Al,{value:null==a?void 0:a.components,children:[c,t]})})})})}var ql,Pl={},Ll={exports:{}};function Ol(){return ql||(ql=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ll)),Ll.exports}var Nl,jl=Vt(qn),_l=Vt(_s);function zl(){if(Nl)return Pl;Nl=1;var e=Ol();Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.alpha=u,Pl.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},Pl.colorChannel=void 0,Pl.darken=d,Pl.decomposeColor=i,Pl.emphasize=f,Pl.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Pl.getLuminance=c,Pl.hexToRgb=o,Pl.hslToRgb=l,Pl.lighten=p,Pl.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},Pl.private_safeColorChannel=void 0,Pl.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},Pl.private_safeEmphasize=function(e,t,n){try{return f(e,t)}catch(t){return e}},Pl.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},Pl.recomposeColor=s,Pl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(jl),n=e(_l);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};Pl.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function f(e,t=.15){return c(e)>.5?d(e,t):p(e,t)}return Pl.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},Pl}var Fl=zl();const $l=["mode","contrastThreshold","tonalOffset"],Bl={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Xt.white,default:Xt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Hl={text:{primary:Xt.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Xt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Vl(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Fl.lighten(e.main,o):"dark"===t&&(e.dark=Fl.darken(e.main,i)))}function Wl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=On(e,$l),i=e.primary||function(e="light"){return"dark"===e?{main:un,light:cn,dark:dn}:{main:pn,light:dn,dark:fn}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:rn,light:nn,dark:an}:{main:sn,light:on,dark:ln}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Qt,light:Jt,dark:en}:{main:en,light:Zt,dark:tn}}(t),l=e.info||function(e="light"){return"dark"===e?{main:mn,light:hn,dark:bn}:{main:bn,light:gn,dark:vn}}(t),c=e.success||function(e="light"){return"dark"===e?{main:xn,light:yn,dark:wn}:{main:Cn,light:Sn,dark:En}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Rn,light:In,dark:Dn}:{main:"#ed6c02",light:An,dark:Mn}}(t);function d(e){return Fl.getContrastRatio(e,Hl.text.primary)>=n?Hl.text.primary:Bl.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ln({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Tn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Tn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Vl(e,"light",o,r),Vl(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Hl,light:Bl};return Qi(Ln({common:Ln({},Xt),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:kn,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ul=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Gl={textTransform:"uppercase"},Kl='"Roboto", "Helvetica", "Arial", sans-serif';function Yl(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Kl,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=On(n,Ul),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return Ln({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Kl?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Gl),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Gl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qi(Ln({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Xl(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Jl=["none",Xl(0,2,1,-1,0,1,1,0,0,1,3,0),Xl(0,3,1,-2,0,2,2,0,0,1,5,0),Xl(0,3,3,-2,0,3,4,0,0,1,8,0),Xl(0,2,4,-1,0,4,5,0,0,1,10,0),Xl(0,3,5,-1,0,5,8,0,0,1,14,0),Xl(0,3,5,-1,0,6,10,0,0,1,18,0),Xl(0,4,5,-2,0,7,10,1,0,2,16,1),Xl(0,5,5,-3,0,8,10,1,0,3,14,2),Xl(0,5,6,-3,0,9,12,1,0,3,16,2),Xl(0,6,6,-3,0,10,14,1,0,4,18,3),Xl(0,6,7,-4,0,11,15,1,0,4,20,3),Xl(0,7,8,-4,0,12,17,2,0,5,22,4),Xl(0,7,8,-4,0,13,19,2,0,5,24,4),Xl(0,7,9,-4,0,14,21,2,0,5,26,4),Xl(0,8,9,-5,0,15,22,2,0,6,28,5),Xl(0,8,10,-5,0,16,24,2,0,6,30,5),Xl(0,8,11,-5,0,17,26,2,0,6,32,5),Xl(0,9,11,-5,0,18,28,2,0,7,34,6),Xl(0,9,12,-6,0,19,29,2,0,7,36,6),Xl(0,10,13,-6,0,20,31,3,0,8,38,7),Xl(0,10,13,-6,0,21,33,3,0,8,40,7),Xl(0,10,14,-6,0,22,35,3,0,8,42,7),Xl(0,11,14,-7,0,23,36,3,0,9,44,8),Xl(0,11,15,-7,0,24,38,3,0,9,46,8)],Zl=["duration","easing","delay"],Ql={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ec={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tc(e){return`${Math.round(e)}ms`}function nc(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function rc(e){const t=Ln({},Ql,e.easing),n=Ln({},ec,e.duration);return Ln({getAutoHeightDuration:nc,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return On(r,Zl),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:tc(o)} ${i} ${"string"==typeof a?a:tc(a)}`).join(",")}},e,{easing:t,duration:n})}const oc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ic=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ac(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=On(e,ic);if(e.vars&&void 0===e.generateCssVars)throw new Error(Tn(18));const s=Wl(r),l=is(e);let c=Qi(l,{mixins:(u=l.breakpoints,d=n,Ln({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Jl.slice(),typography:Yl(s,i),transitions:rc(o),zIndex:Ln({},oc)});var u,d;return c=Qi(c,a),c=t.reduce((e,t)=>Qi(e,t),c),c.unstable_sxConfig=Ln({},es,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ns({sx:e,theme:this})},c}const sc=ac();function lc(){const e=cs(sc);return e[Pn]||e}var cc,uc={},dc={exports:{}};var pc,fc={exports:{}};var hc,mc=Vt(Xi),gc=Vt(ea),bc=Vt(ua),vc=Vt(Ls),yc=Vt(as),xc=Vt(hs);function Sc(){if(hc)return uc;hc=1;var e=Ol();Object.defineProperty(uc,"__esModule",{value:!0}),uc.default=function(e={}){const{themeId:i,defaultTheme:s=f,rootShouldForwardProp:l=d,slotShouldForwardProp:u=d}=e,p=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:s,themeId:i}))}));return p.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:f,slot:v,skipVariantsResolver:y,skipSx:x,overridesResolver:S=g(h(v))}=a,w=(0,n.default)(a,c),C=f&&f.startsWith("Mui")||v?"components":"custom",E=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,I=x||!1;let R=d;"Root"===v||"root"===v?R=l:v?R=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(R=void 0);const A=(0,r.default)(e,(0,t.default)({shouldForwardProp:R,label:void 0},w)),D=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=m({theme:n.theme,defaultTheme:s,themeId:i});return b(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?C:void 0)}:e,M=(n,...r)=>{let o=D(n);const a=r?r.map(D):[];f&&S&&a.push(e=>{const n=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));if(!n.components||!n.components[f]||!n.components[f].styleOverrides)return null;const r=n.components[f].styleOverrides,o={};return Object.entries(r).forEach(([r,i])=>{o[r]=b(i,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),S(e,o)}),f&&!E&&a.push(e=>{var n;const r=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));return b({variants:null==r||null==(n=r.components)||null==(n=n[f])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),I||a.push(p);const l=a.length-r.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const c=A(o,...a);return e.muiName&&(c.muiName=e.muiName),c};return A.withConfig&&(M.withConfig=A.withConfig),M}},uc.shouldForwardProp=d,uc.systemDefaultTheme=void 0;var t=e((cc||(cc=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(dc)),dc.exports)),n=e((pc||(pc=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(fc)),fc.exports)),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(mc),o=gc;e(bc),e(vc);var i=e(yc),a=e(xc);const s=["ownerState"],l=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function p(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=uc.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function b(e,o,i){let{ownerState:a}=o,c=(0,n.default)(o,s);const u="function"==typeof e?e((0,t.default)({ownerState:a},c)):e;if(Array.isArray(u))return u.flatMap(e=>b(e,(0,t.default)({ownerState:a},c),i));if(u&&"object"==typeof u&&Array.isArray(u.variants)){const{variants:e=[]}=u;let o=(0,n.default)(u,l);return e.forEach(e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:a},c,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&c[t]!==e.props[t]&&(n=!1)}),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:a},c,a)):e.style;o.push(i?p((0,r.internal_serializeStyles)(n),i):n)}}),o}return i?p((0,r.internal_serializeStyles)(u),i):u}return uc}function wc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Cc=e=>wc(e)&&"classes"!==e,Ec=Ht(Sc())({themeId:Pn,defaultTheme:sc,rootShouldForwardProp:Cc}),Ic=["theme"];function Rc(e){let{theme:t}=e,n=On(e,Ic);const r=t[Pn];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=Ln({},r,{vars:null}):t&&!t.vars&&(o=Ln({},t,{vars:null}))),Yt.jsx(Tl,Ln({},n,{themeId:r?Pn:void 0,theme:o}))}const Ac=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Dc(e){return Dl(e)}function Mc(e){return Ss("MuiSvgIcon",e)}ws("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const kc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Tc=Ec("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ca(n.color)}`],t[`fontSize${ca(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),qc=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=On(n,kc),f=E.isValidElement(r)&&"svg"===r.type,h=Ln({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return pl({root:["root","inherit"!==t&&`color${ca(t)}`,`fontSize${ca(n)}`]},Mc,r)})(h);return Yt.jsxs(Tc,Ln({as:a,className:vs(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?Yt.jsx("title",{children:u}):null]}))});function Pc(e,t){function n(n,r){return Yt.jsx(qc,Ln({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=qc.muiName,E.memo(E.forwardRef(n))}function Lc(e,t){return Lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lc(e,t)}function Oc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lc(e,t)}qc.muiName="SvgIcon";var Nc=!1,jc=w.createContext(null),_c="unmounted",zc="exited",Fc="entering",$c="entered",Bc="exiting",Hc=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=zc,r.appearStatus=Fc):o=$c:o=t.unmountOnExit||t.mountOnEnter?_c:zc,r.state={status:o},r.nextCallback=null,r}Oc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===_c?{status:zc}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Fc&&n!==$c&&(t=Fc):n!==Fc&&n!==$c||(t=Bc)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Fc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:V.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zc&&this.setState({status:_c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[V.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Nc?this.safeSetState({status:$c},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Fc},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:$c},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:V.findDOMNode(this);t&&!Nc?(this.props.onExit(r),this.safeSetState({status:Bc},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:zc},function(){e.props.onExited(r)})})})):this.safeSetState({status:zc},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:V.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===_c)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=On(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return w.createElement(jc.Provider,{value:null},"function"==typeof n?n(e,r):w.cloneElement(w.Children.only(n),r))},t}(w.Component);function Vc(){}function Wc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uc(e,t){var n=Object.create(null);return e&&A.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&I(e)?t(e):e}(e)}),n}function Gc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Kc(e,t,n){var r=Uc(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(I(a)){var s=i in t,l=i in r,c=t[i],u=I(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&I(c)&&(o[i]=R(a,{onExited:n.bind(null,a),in:c.props.in,exit:Gc(a,"exit",e),enter:Gc(a,"enter",e)})):o[i]=R(a,{in:!1}):o[i]=R(a,{onExited:n.bind(null,a),in:!0,exit:Gc(a,"exit",e),enter:Gc(a,"enter",e)})}}),o}Hc.contextType=jc,Hc.propTypes={},Hc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vc,onEntering:Vc,onEntered:Vc,onExit:Vc,onExiting:Vc,onExited:Vc},Hc.UNMOUNTED=_c,Hc.EXITED=zc,Hc.ENTERING=Fc,Hc.ENTERED=$c,Hc.EXITING=Bc;var Yc=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Xc=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Wc(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Oc(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Uc(n.children,function(e){return R(e,{onExited:r.bind(null,e),in:!0,appear:Gc(e,"appear",n),enter:Gc(e,"enter",n),exit:Gc(e,"exit",n)})})):Kc(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Uc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Ln({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=On(e,["component","childFactory"]),o=this.state.contextValue,i=Yc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?w.createElement(jc.Provider,{value:o},i):w.createElement(jc.Provider,{value:o},w.createElement(t,r,i))},t}(w.Component);Xc.propTypes={},Xc.defaultProps={component:"div",childFactory:function(e){return e}};const Jc=e=>e.scrollTop;function Zc(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Qc(e){return Ss("MuiPaper",e)}ws("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const eu=["className","component","elevation","square","variant"],tu=Ec("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return Ln({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Ln({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Fl.alpha("#fff",Ac(t.elevation))}, ${Fl.alpha("#fff",Ac(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),nu=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=On(n,eu),c=Ln({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return pl({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Qc,o)})(c);return Yt.jsx(tu,Ln({as:o,ownerState:c,className:vs(u.root,r),ref:t},l))});const ru=ws("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ou=["center","classes","className"];let iu,au,su,lu,cu=e=>e;const uu=Li(iu||(iu=cu`
18
18
  0% {
19
19
  transform: scale(0);
20
20
  opacity: 0.1;
@@ -87,7 +87,7 @@ function Gi(e,t){let n;return n=t?ki(e).withConfig({displayName:t.label,shouldFo
87
87
  animation-iteration-count: infinite;
88
88
  animation-delay: 200ms;
89
89
  }
90
- `),ru.rippleVisible,uu,550,({theme:e})=>e.transitions.easing.easeInOut,ru.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ru.child,ru.childLeaving,du,550,({theme:e})=>e.transitions.easing.easeInOut,ru.childPulsate,pu,({theme:e})=>e.transitions.easing.easeInOut),mu=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=On(n,ou),[s,l]=E.useState([]),c=E.useRef(0),u=E.useRef(null);E.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const d=E.useRef(!1),p=tl(),f=E.useRef(null),h=E.useRef(null),m=E.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,Yt.jsx(hu,{classes:{ripple:vs(o.ripple,ru.ripple),rippleVisible:vs(o.rippleVisible,ru.rippleVisible),ripplePulsate:vs(o.ripplePulsate,ru.ripplePulsate),child:vs(o.child,ru.child),childLeaving:vs(o.childLeaving,ru.childLeaving),childPulsate:vs(o.childPulsate,ru.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,u.current=a},[o]),g=E.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},[r,m,p]),b=E.useCallback(()=>{g({},{pulsate:!0})},[g]),v=E.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,()=>{v(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),u.current=t},[p]);return E.useImperativeHandle(t,()=>({pulsate:b,start:g,stop:v}),[b,g,v]),Yt.jsx(fu,Ln({className:vs(ru.root,o.root,i),ref:h},a,{children:Yt.jsx(Xc,{component:null,exit:!0,children:s})}))});function gu(e){return Ss("MuiButtonBase",e)}const bu=ws("MuiButtonBase",["root","disabled","focusVisible"]),vu=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],yu=Ec("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xu=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:C,onTouchEnd:I,onTouchMove:A,onTouchStart:R,tabIndex:D=0,TouchRippleProps:M,touchRippleRef:k,type:T}=n,q=On(n,vu),P=E.useRef(null),L=E.useRef(null),O=Js(L,k),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=ul(),[F,$]=E.useState(!1);l&&F&&$(!1),E.useImperativeHandle(r,()=>({focusVisible:()=>{$(!0),P.current.focus()}}),[]);const[B,H]=E.useState(!1);E.useEffect(()=>{H(!0)},[]);const V=B&&!c&&!l;function W(e,t,n=u){return Xs(r=>{t&&t(r);return!n&&L.current&&L.current[e](r),!0})}E.useEffect(()=>{F&&d&&!c&&B&&L.current.pulsate()},[c,d,F,B]);const U=W("start",S),G=W("stop",m),K=W("stop",g),Y=W("stop",C),X=W("stop",e=>{F&&e.preventDefault(),w&&w(e)}),J=W("start",R),Z=W("stop",I),Q=W("stop",A),ee=W("stop",e=>{_(),!1===N.current&&$(!1),f&&f(e)},!1),te=Xs(e=>{P.current||(P.current=e.currentTarget),j(e),!0===N.current&&($(!0),v&&v(e)),b&&b(e)}),ne=()=>{const e=P.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=E.useRef(!1),oe=Xs(e=>{d&&!re.current&&F&&L.current&&" "===e.key&&(re.current=!0,L.current.stop(e,()=>{L.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=Xs(e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(re.current=!1,L.current.stop(e,()=>{L.current.pulsate(e)})),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(q.href||q.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===T?"button":T,se.disabled=l):(q.href||q.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Js(t,z,P),ce=Ln({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:D,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=pl({root:["root",t&&"disabled",n&&"focusVisible"]},gu,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Yt.jsxs(yu,Ln({as:ae,className:vs(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:D,type:T},se,q,{children:[i,V?Yt.jsx(mu,Ln({ref:O,center:o},M)):null]}))});function Su(e){return Ss("MuiIconButton",e)}const wu=ws("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Cu=["edge","children","className","color","disabled","disableFocusRipple","size"],Eu=Ec(xu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${ca(n.color)}`],n.edge&&t[`edge${ca(n.edge)}`],t[`size${ca(n.size)}`]]}})(({theme:e,ownerState:t})=>Ln({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return Ln({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Ln({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Ln({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${wu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Iu=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=On(n,Cu),d=Ln({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return pl({root:["root",n&&"disabled","default"!==r&&`color${ca(r)}`,o&&`edge${ca(o)}`,`size${ca(i)}`]},Su,t)})(d);return Yt.jsx(Eu,Ln({className:vs(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))});function Au(e){return Ss("MuiTypography",e)}ws("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ru=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Du=Ec("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${ca(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Ln({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Mu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ku={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Tu=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTypography"}),r=(e=>ku[e]||e)(n.color),o=fs(Ln({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Mu}=o,f=On(o,Ru),h=Ln({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||Mu[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return pl({root:["root",i,"inherit"!==e.align&&`align${ca(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Au,a)})(h);return Yt.jsx(Du,Ln({as:m,ref:t,ownerState:h,className:vs(g.root,a)},f))});const qu=E.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=E.useState(null),s=Js(E.isValidElement(n)?vl(n):null,t);if(Ns(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Ns(()=>{if(i&&!o)return Ws(t,i),()=>{Ws(t,null)}},[t,i,o]),o){if(E.isValidElement(n)){const e={ref:s};return E.cloneElement(n,e)}return Yt.jsx(E.Fragment,{children:n})}return Yt.jsx(E.Fragment,{children:i?W.createPortal(n,i):i})}),Pu=["onChange","maxRows","minRows","style","value"];function Lu(e){return parseInt(e,10)||0}const Ou={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Nu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const ju=E.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=On(e,Pu),{current:l}=E.useRef(null!=a),c=E.useRef(null),u=Js(t,c),d=E.useRef(null),p=E.useRef(null),f=E.useCallback(()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=Vs(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Lu(i.paddingBottom)+Lu(i.paddingTop),l=Lu(i.borderBottomWidth)+Lu(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-u)<=1}},[r,o,e.placeholder]),h=Xs(()=>{const e=c.current,t=f();if(!e||!t||Nu(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),m=E.useCallback(()=>{const e=c.current,t=f();if(!e||!t||Nu(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=E.useRef(-1);Ns(()=>{const e=Bs(m),t=null==c?void 0:c.current;if(!t)return;const n=Vs(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[f,m,h]),Ns(()=>{m()});return Yt.jsxs(E.Fragment,{children:[Yt.jsx("textarea",Ln({value:a,onChange:e=>{l||m(),n&&n(e)},ref:u,rows:o,style:i},s)),Yt.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Ln({},Ou,i,{paddingTop:0,paddingBottom:0})})]})});function _u({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const zu=E.createContext(void 0);function Fu(){return E.useContext(zu)}function $u(e){return Yt.jsx(ds,Ln({},e,{defaultTheme:sc,themeId:Pn}))}function Bu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Hu(e,t=!1){return e&&(Bu(e.value)&&""!==e.value||t&&Bu(e.defaultValue)&&""!==e.defaultValue)}function Vu(e){return Ss("MuiInputBase",e)}const Wu=ws("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Uu=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Gu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ca(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ku=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Yu=Ec("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Gu})(({theme:e,ownerState:t})=>Ln({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Wu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ln({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Xu=Ec("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ku})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Ln({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Ln({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Wu.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Wu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),Ju=Yt.jsx($u,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Zu=E.forwardRef(function(e,t){var n;const r=Dc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:C,onChange:I,onClick:A,onFocus:R,onKeyDown:D,onKeyUp:M,placeholder:k,readOnly:T,renderSuffix:q,rows:P,slotProps:L={},slots:O={},startAdornment:N,type:j="text",value:_}=r,z=On(r,Uu),F=null!=b.value?b.value:_,{current:$}=E.useRef(null!=F),B=E.useRef(),H=E.useCallback(e=>{},[]),V=Js(B,v,b.ref,H),[W,U]=E.useState(!1),G=Fu(),K=_u({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:W,E.useEffect(()=>{!G&&d&&W&&(U(!1),C&&C())},[G,d,W,C]);const Y=G&&G.onFilled,X=G&&G.onEmpty,J=E.useCallback(e=>{Hu(e)?Y&&Y():X&&X()},[Y,X]);Ns(()=>{$&&J({value:F})},[F,J,$]);E.useEffect(()=>{J(B.current)},[]);let Z=g,Q=b;S&&"input"===Z&&(Q=Ln(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:y,minRows:x},Q),Z=ju);E.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=Ln({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:N,type:j}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return pl({root:["root",`color${ca(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ca(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Vu,t)})(ee),ne=O.root||l.Root||Yu,re=L.root||c.root||{},oe=O.input||l.Input||Xu;return Q=Ln({},Q,null!=(n=L.input)?n:c.input),Yt.jsxs(E.Fragment,{children:[!p&&Ju,Yt.jsxs(ne,Ln({},re,!fl(ne)&&{ownerState:Ln({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},z,{className:vs(te.root,re.className,s,T&&"MuiInputBase-readOnly"),children:[N,Yt.jsx(zu.Provider,{value:null,children:Yt.jsx(oe,Ln({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:k,readOnly:T,required:K.required,rows:P,value:F,onKeyDown:D,onKeyUp:M,type:j},Q,!fl(oe)&&{as:Z,ownerState:Ln({},ee,Q.ownerState)},{ref:V,className:vs(te.input,Q.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(Tn(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),I&&I(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,q?q(Ln({},K,{startAdornment:N})):null]}))]})});function Qu(e){return Ss("MuiInput",e)}const ed=Ln({},Wu,ws("MuiInput",["root","underline","input"]));function td(e){return Ss("MuiOutlinedInput",e)}const nd=Ln({},Wu,ws("MuiOutlinedInput",["root","notchedOutline","input"]));function rd(e){return Ss("MuiFilledInput",e)}const od=Ln({},Wu,ws("MuiFilledInput",["root","underline","input"]));var id=Pc(Yt.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ad=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sd={entering:{opacity:1},entered:{opacity:1}},ld=E.forwardRef(function(e,t){const n=lc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=Hc}=e,v=On(e,ad),y=E.useRef(null),x=Js(y,vl(a),t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),C=S((e,t)=>{Jc(e);const r=Zc({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),I=S(u),A=S(h),R=S(e=>{const t=Zc({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),D=S(f);return Yt.jsx(b,Ln({appear:i,in:l,nodeRef:y,onEnter:C,onEntered:I,onEntering:w,onExit:R,onExited:D,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>E.cloneElement(a,Ln({style:Ln({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},sd[e],m,a.props.style),ref:x},t))}))});function cd(e){return Ss("MuiBackdrop",e)}ws("MuiBackdrop",["root","invisible"]);const ud=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],dd=Ec("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Ln({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),pd=E.forwardRef(function(e,t){var n,r,o;const i=Dc({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=ld,transitionDuration:g}=i,b=On(i,ud),v=Ln({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return pl({root:["root",n&&"invisible"]},cd,t)})(v),x=null!=(n=f.root)?n:u.root;return Yt.jsx(m,Ln({in:p,timeout:g},b,{children:Yt.jsx(dd,Ln({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:l,className:vs(y.root,s,null==x?void 0:x.className),ownerState:Ln({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),fd=ws("MuiBox",["root"]),hd=ac(),md=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Gi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ns);return E.forwardRef(function(e,a){const s=cs(n),l=fs(e),{className:c,component:u="div"}=l,d=On(l,ys);return Yt.jsx(i,Ln({as:u,ref:a,className:vs(c,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:Pn,defaultTheme:hd,defaultClassName:fd.root,generateClassName:gs.generate});function gd(e){return Ss("MuiButton",e)}const bd=ws("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),vd=E.createContext({}),yd=E.createContext(void 0),xd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Sd=e=>Ln({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),wd=Ec(xu,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ca(n.color)}`],t[`size${ca(n.size)}`],t[`${n.variant}Size${ca(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Ln({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ln({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ln({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${bd.focusVisible}`]:Ln({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${bd.disabled}`]:Ln({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Fl.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${bd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bd.disabled}`]:{boxShadow:"none"}}),Cd=Ec("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ca(n.size)}`]]}})(({ownerState:e})=>Ln({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Sd(e))),Ed=Ec("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ca(n.size)}`]]}})(({ownerState:e})=>Ln({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Sd(e))),Id=E.forwardRef(function(e,t){const n=E.useContext(vd),r=E.useContext(yd),o=Dc({props:Os(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=On(o,xd),x=Ln({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Ln({},a,pl({root:["root",i,`${i}${ca(t)}`,`size${ca(o)}`,`${i}Size${ca(o)}`,`color${ca(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ca(o)}`],endIcon:["icon","endIcon",`iconSize${ca(o)}`]},gd,a))})(x),w=g&&Yt.jsx(Cd,{className:S.startIcon,ownerState:x,children:g}),C=p&&Yt.jsx(Ed,{className:S.endIcon,ownerState:x,children:p}),I=r||"";return Yt.jsxs(wd,Ln({ownerState:x,className:vs(n.className,S.root,l,I),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:vs(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[w,i,C]}))});function Ad(e){return Ss("PrivateSwitchBase",e)}ws("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Rd=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Dd=Ec(xu,{name:"MuiSwitchBase"})(({ownerState:e})=>Ln({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),Md=Ec("input",{name:"MuiSwitchBase",shouldForwardProp:Cc})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),kd=E.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,C=On(e,Rd),[E,I]=Ys({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),A=Fu();let R=s;A&&void 0===R&&(R=A.disabled);const D="checkbox"===S||"radio"===S,M=Ln({},e,{checked:E,disabled:R,disableFocusRipple:l,edge:c}),k=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return pl({root:["root",n&&"checked",r&&"disabled",o&&`edge${ca(o)}`],input:["input"]},Ad,t)})(M);return Yt.jsxs(Dd,Ln({component:"span",className:vs(k.root,i),centerRipple:!0,focusRipple:!l,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),A&&A.onFocus&&A.onFocus(e)},onBlur:e=>{m&&m(e),A&&A.onBlur&&A.onBlur(e)},ownerState:M,ref:t},C,{children:[Yt.jsx(Md,Ln({autoFocus:n,checked:r,defaultChecked:a,className:k.input,disabled:R,id:D?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;I(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:M,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:u]}))});var Td=Pc(Yt.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),qd=Pc(Yt.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Pd=Pc(Yt.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Ld(e){return Ss("MuiCheckbox",e)}const Od=ws("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Nd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],jd=Ec(kd,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ca(n.size)}`],"default"!==n.color&&t[`color${ca(n.color)}`]]}})(({theme:e,ownerState:t})=>Ln({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Od.checked}, &.${Od.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Od.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),_d=Yt.jsx(qd,{}),zd=Yt.jsx(Td,{}),Fd=Yt.jsx(Pd,{}),$d=E.forwardRef(function(e,t){var n,r;const o=Dc({props:e,name:"MuiCheckbox"}),{checkedIcon:i=_d,color:a="primary",icon:s=zd,indeterminate:l=!1,indeterminateIcon:c=Fd,inputProps:u,size:d="medium",className:p}=o,f=On(o,Nd),h=l?c:s,m=l?c:i,g=Ln({},o,{color:a,indeterminate:l,size:d}),b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return Ln({},t,pl({root:["root",n&&"indeterminate",`color${ca(r)}`,`size${ca(o)}`]},Ld,t))})(g);return Yt.jsx(jd,Ln({type:"checkbox",inputProps:Ln({"data-indeterminate":l},u),icon:E.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:E.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:vs(b.root,p)},f,{classes:b}))});function Bd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Hd(e){return parseInt(Vs(e).getComputedStyle(e).paddingRight,10)||0}function Vd(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Bd(e,o)})}function Wd(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Ud(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Hs(e);return t.body===e?Vs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=dl(Hs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Hd(r)+e}px`;const t=Hs(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Hd(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Hs(r).body;else{const t=r.parentElement,n=Vs(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const Gd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Kd(e){const t=[],n=[];return Array.from(e.querySelectorAll(Gd)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Yd(){return!0}function Xd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Kd,isEnabled:a=Yd,open:s}=e,l=E.useRef(!1),c=E.useRef(null),u=E.useRef(null),d=E.useRef(null),p=E.useRef(null),f=E.useRef(!1),h=E.useRef(null),m=Js(vl(t),h),g=E.useRef(null);E.useEffect(()=>{s&&h.current&&(f.current=!n)},[n,s]),E.useEffect(()=>{if(!s||!h.current)return;const e=Hs(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),E.useEffect(()=>{if(!s||!h.current)return;const e=Hs(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(h.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Yt.jsxs(E.Fragment,{children:[Yt.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Yt.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const Jd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Bd(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Vd(t,e.mount,e.modalRef,r,!0);const o=Wd(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Wd(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=Ud(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Wd(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Bd(e.modalRef,t),Vd(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Bd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Zd(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Jd,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=E.useRef({}),f=E.useRef(null),h=E.useRef(null),m=Js(h,d),[g,b]=E.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=Xs(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Hs(f.current).body;o.add(x(),e),h.current&&S()}),C=E.useCallback(()=>o.isTopModal(x()),[o]),I=Xs(e=>{f.current=e,e&&(u&&C()?S():h.current&&Bd(h.current,y))}),A=E.useCallback(()=>{o.remove(x(),y)},[y,o]);E.useEffect(()=>()=>{A()},[A]),E.useEffect(()=>{u?w():v&&i||A()},[u,A,v,i,w]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},D=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=hl(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ln({},n,t);return Ln({role:"presentation"},r,{onKeyDown:R(r),ref:m})},getBackdropProps:(e={})=>Ln({"aria-hidden":!0},e,{onClick:D(e),open:u}),getTransitionProps:()=>({onEnter:$s(()=>{b(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:$s(()=>{b(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:I,isTopModal:C,exited:g,hasTransition:v}}function Qd(e){return Ss("MuiModal",e)}ws("MuiModal",["root","hidden","backdrop"]);const ep=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],tp=Ec("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Ln({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),np=Ec(pd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),rp=E.forwardRef(function(e,t){var n,r,o,i,a,s;const l=Dc({name:"MuiModal",props:e}),{BackdropComponent:c=np,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:I=!1,keepMounted:A=!1,onBackdropClick:R,open:D,slotProps:M,slots:k}=l,T=On(l,ep),q=Ln({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:I,keepMounted:A}),{getRootProps:P,getBackdropProps:L,getTransitionProps:O,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=Zd(Ln({},q,{rootRef:t})),F=Ln({},q,{exited:_}),$=(e=>{const{open:t,exited:n,classes:r}=e;return pl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Qd,r)})(F),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=O();B.onEnter=e,B.onExited=t}const H=null!=(n=null!=(r=null==k?void 0:k.root)?r:g.Root)?n:tp,V=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:c,W=null!=(a=null==M?void 0:M.root)?a:b.root,U=null!=(s=null==M?void 0:M.backdrop)?s:b.backdrop,G=bl({elementType:H,externalSlotProps:W,externalForwardedProps:T,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:F,className:vs(d,null==W?void 0:W.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=bl({elementType:V,externalSlotProps:U,additionalProps:u,getSlotProps:e=>L(Ln({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:vs(null==U?void 0:U.className,null==u?void 0:u.className,null==$?void 0:$.backdrop),ownerState:F});return A||D||z&&!_?Yt.jsx(qu,{ref:N,container:h,disablePortal:S,children:Yt.jsxs(H,Ln({},G,{children:[!I&&c?Yt.jsx(V,Ln({},K)):null,Yt.jsx(Xd,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:j,open:D,children:E.cloneElement(f,B)})]}))}):null});function op(e){return Ss("MuiDivider",e)}const ip=ws("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ap=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],sp=Ec("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Ln({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Fl.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Ln({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Ln({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Ln({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Ln({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),lp=Ec("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Ln({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),cp=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=On(n,ap),h=Ln({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return pl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},op,r)})(h);return Yt.jsx(sp,Ln({as:a,className:vs(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?Yt.jsx(lp,{className:m.wrapper,ownerState:h,children:o}):null}))});cp.muiSkipListHighlight=!0;const up=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],dp=Ec(Yu,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Gu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ln({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${od.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${od.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${od.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${od.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${od.disabled}, .${od.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${od.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Ln({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),pp=Ec(Xu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ku})(({theme:e,ownerState:t})=>Ln({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),fp=E.forwardRef(function(e,t){var n,r,o,i;const a=Dc({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=On(a,up),g=Ln({},a,{fullWidth:c,inputComponent:u,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Ln({},t,pl({root:["root",!n&&"underline"],input:["input"]},rd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Qi(v,null!=p?p:l):v,x=null!=(n=null!=(r=f.root)?r:s.Root)?n:dp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:pp;return Yt.jsx(Zu,Ln({slots:{root:x,input:S},componentsProps:y,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:h},m,{classes:b}))});fp.muiName="Input";const hp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function mp(e){return`scale(${e}, ${e**2})`}const gp={entering:{opacity:1,transform:mp(1)},entered:{opacity:1,transform:"none"}},bp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vp=E.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Hc}=e,g=On(e,hp),b=tl(),v=E.useRef(),y=lc(),x=E.useRef(null),S=Js(x,vl(o),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=w(c),I=w((e,t)=>{Jc(e);const{duration:n,delay:r,easing:o}=Zc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:bp?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),A=w(l),R=w(p),D=w(e=>{const{duration:t,delay:n,easing:r}=Zc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:bp?o:.666*o,delay:bp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=mp(.75),u&&u(e)}),M=w(d);return Yt.jsx(m,Ln({appear:r,in:a,nodeRef:x,onEnter:I,onEntered:A,onEntering:C,onExit:D,onExited:M,onExiting:R,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>E.cloneElement(o,Ln({style:Ln({opacity:0,transform:mp(.75),visibility:"exited"!==e||a?void 0:"hidden"},gp[e],f,o.props.style),ref:S},t))}))});vp.muiSupportAuto=!0;const yp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],xp=Ec(Yu,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Gu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Ln({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ed.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ed.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ed.disabled}, .${ed.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ed.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Sp=Ec(Xu,{name:"MuiInput",slot:"Input",overridesResolver:Ku})({}),wp=E.forwardRef(function(e,t){var n,r,o,i;const a=Dc({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=On(a,yp),b=(e=>{const{classes:t,disableUnderline:n}=e;return Ln({},t,pl({root:["root",!n&&"underline"],input:["input"]},Qu,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:c)?Qi(null!=f?f:c,v):v,x=null!=(n=null!=(r=h.root)?r:l.Root)?n:xp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Sp;return Yt.jsx(Zu,Ln({slots:{root:x,input:S},slotProps:y,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))});function Cp(e){return Ss("MuiInputAdornment",e)}wp.muiName="Input";const Ep=ws("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ip;const Ap=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Rp=Ec("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ca(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>Ln({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Ep.positionStart}&:not(.${Ep.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),Dp=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=n,u=On(n,Ap),d=Fu()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=Ln({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return pl({root:["root",n&&"disablePointerEvents",o&&`position${ca(o)}`,a,r&&"hiddenLabel",i&&`size${ca(i)}`]},Cp,t)})(f);return Yt.jsx(zu.Provider,{value:null,children:Yt.jsx(Rp,Ln({as:i,ownerState:f,className:vs(h.root,o),ref:t},u,{children:"string"!=typeof r||s?Yt.jsxs(E.Fragment,{children:["start"===l?Ip||(Ip=Yt.jsx("span",{className:"notranslate",children:"​"})):null,r]}):Yt.jsx(Tu,{color:"text.secondary",children:r})}))})});function Mp(e){return Ss("MuiLink",e)}const kp=ws("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Tp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qp=({theme:e,ownerState:t})=>{const n=(e=>Tp[e]||e)(t.color),r=da(e,`palette.${n}`,!1)||t.color,o=da(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Fl.alpha(r,.4)},Pp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Lp=Ec(Tu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ca(n.underline)}`],"button"===n.component&&t.button]}})(({theme:e,ownerState:t})=>Ln({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Ln({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:qp({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kp.focusVisible}`]:{outline:"auto"}})),Op=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:c="always",variant:u="inherit",sx:d}=n,p=On(n,Pp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=ul(),[b,v]=E.useState(!1),y=Js(t,g),x=Ln({},n,{color:o,component:i,focusVisible:b,underline:c,variant:u}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return pl({root:["root",`underline${ca(o)}`,"button"===n&&"button",r&&"focusVisible"]},Mp,t)})(x);return Yt.jsx(Lp,Ln({color:o,className:vs(S.root,r),classes:l,component:i,onBlur:e=>{h(),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:u,sx:[...Object.keys(Tp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),Np=E.createContext({});function jp(e){return Ss("MuiList",e)}ws("MuiList",["root","padding","dense","subheader"]);const _p=["children","className","component","dense","disablePadding","subheader"],zp=Ec("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>Ln({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fp=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=On(n,_p),u=E.useMemo(()=>({dense:a}),[a]),d=Ln({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return pl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},jp,t)})(d);return Yt.jsx(Np.Provider,{value:u,children:Yt.jsxs(zp,Ln({as:i,className:vs(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})});function $p(e){return Ss("MuiListItem",e)}const Bp=ws("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Hp=ws("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Vp(e){return Ss("MuiListItemSecondaryAction",e)}ws("MuiListItemSecondaryAction",["root","disableGutters"]);const Wp=["className"],Up=Ec("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Ln({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Gp=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=On(n,Wp),i=Ln({},n,{disableGutters:E.useContext(Np).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return pl({root:["root",t&&"disableGutters"]},Vp,n)})(i);return Yt.jsx(Up,Ln({className:vs(a.root,r),ownerState:i,ref:t},o))});Gp.muiName="ListItemSecondaryAction";const Kp=["className"],Yp=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Xp=Ec("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>Ln({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Ln({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Hp.root}`]:{paddingRight:48}},{[`&.${Bp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Bp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Jp=Ec("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Zp=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:b=!1,focusVisibleClassName:v,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,C=On(n.ContainerProps,Kp),I=On(n,Yp),A=E.useContext(Np),R=E.useMemo(()=>({dense:f||A.dense||!1,alignItems:r,disableGutters:m}),[r,A.dense,f,m]),D=E.useRef(null);Ns(()=>{o&&D.current&&D.current.focus()},[o]);const M=E.Children.toArray(a),k=M.length&&(T=M[M.length-1],q=["ListItemSecondaryAction"],E.isValidElement(T)&&-1!==q.indexOf(null!=(P=T.type.muiName)?P:null==(L=T.type)||null==(L=L._payload)||null==(L=L.value)?void 0:L.muiName));var T,q,P,L;const O=Ln({},n,{alignItems:r,autoFocus:o,button:i,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:b,hasSecondaryAction:k,selected:x}),N=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return pl({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},$p,r)})(O),j=Js(D,t),_=w.root||c.Root||Xp,z=S.root||u.root||{},F=Ln({className:vs(N.root,z.className,s),disabled:h},I);let $=l||"li";return i&&(F.component=l||"div",F.focusVisibleClassName=vs(Bp.focusVisible,v),$=xu),k?($=F.component||l?$:"div","li"===d&&("li"===$?$="div":"li"===F.component&&(F.component="div")),Yt.jsx(Np.Provider,{value:R,children:Yt.jsxs(Jp,Ln({as:d,className:vs(N.container,p),ref:j,ownerState:O},C,{children:[Yt.jsx(_,Ln({},z,!fl(_)&&{as:$,ownerState:Ln({},O,z.ownerState)},F,{children:M})),M.pop()]}))})):Yt.jsx(Np.Provider,{value:R,children:Yt.jsxs(_,Ln({},z,{as:$,ref:j},!fl(_)&&{ownerState:Ln({},O,z.ownerState)},F,{children:[M,y&&Yt.jsx(Gp,{children:y})]}))})});function Qp(e){return Ss("MuiListItemIcon",e)}const ef=ws("MuiListItemIcon",["root","alignItemsFlexStart"]),tf=["className"],nf=Ec("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Ln({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),rf=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=On(n,tf),i=Ln({},n,{alignItems:E.useContext(Np).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return pl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Qp,n)})(i);return Yt.jsx(nf,Ln({className:vs(a.root,r),ownerState:i,ref:t},o))}),of=ws("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),af=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function sf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function lf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function cf(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function uf(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&cf(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const df=E.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=On(e,af),p=E.useRef(null),f=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ns(()=>{r&&p.current.focus()},[r]),E.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${dl(Hs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const h=Js(p,t);let m=-1;E.Children.forEach(i,(e,t)=>{E.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=E.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),E.cloneElement(e,t)}return e});return Yt.jsx(Fp,Ln({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Hs(t).activeElement;if("ArrowDown"===n)e.preventDefault(),uf(t,r,l,s,sf);else if("ArrowUp"===n)e.preventDefault(),uf(t,r,l,s,lf);else if("Home"===n)e.preventDefault(),uf(t,null,l,s,sf);else if("End"===n)e.preventDefault(),uf(t,null,l,s,lf);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&cf(r,o);o.previousKeyMatched&&(l||uf(t,r,!1,s,sf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))});function pf(e){return Ss("MuiPopover",e)}ws("MuiPopover",["root","paper"]);const ff=["onEntering"],hf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],mf=["slotProps"];function gf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function bf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function vf(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function yf(e){return"function"==typeof e?e():e}const xf=Ec(rp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sf=Ec(nu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),wf=E.forwardRef(function(e,t){var n,r,o;const i=Dc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=vp,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:I=!1}=i,A=On(i.TransitionProps,ff),R=On(i,hf),D=null!=(n=null==y?void 0:y.paper)?n:b,M=E.useRef(),k=Js(M,D.ref),T=Ln({},i,{anchorOrigin:l,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:D,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:A}),q=(e=>{const{classes:t}=e;return pl({root:["root"],paper:["paper"]},pf,t)})(T),P=E.useCallback(()=>{if("anchorPosition"===u)return c;const e=yf(s),t=(e&&1===e.nodeType?e:Hs(M.current).body).getBoundingClientRect();return{top:t.top+gf(t,l.vertical),left:t.left+bf(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,u]),L=E.useCallback(e=>({vertical:gf(e,x.vertical),horizontal:bf(e,x.horizontal)}),[x.horizontal,x.vertical]),O=E.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=L(t);if("none"===u)return{top:null,left:null,transformOrigin:vf(n)};const r=P();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=Vs(yf(s)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:vf(n)}},[s,u,P,L,m]),[N,j]=E.useState(g),_=E.useCallback(()=>{const e=M.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)},[O]);E.useEffect(()=>(I&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,I,_]);E.useEffect(()=>{g&&_()}),E.useImperativeHandle(a,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),E.useEffect(()=>{if(!g)return;const e=Bs(()=>{_()}),t=Vs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,_]);let z=w;"auto"!==w||S.muiSupportAuto||(z=void 0);const F=f||(s?Hs(yf(s)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:xf,B=null!=(o=null==v?void 0:v.paper)?o:Sf,H=bl({elementType:B,externalSlotProps:Ln({},D,{style:N?D.style:Ln({},D.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:T,className:vs(q.paper,null==D?void 0:D.className)}),V=bl({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:T,className:vs(q.root,p)}),{slotProps:W}=V,U=On(V,mf);return Yt.jsx($,Ln({},U,!fl($)&&{slotProps:W,disableScrollLock:I},{children:Yt.jsx(S,Ln({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),_()},onExited:()=>{j(!1)},timeout:z},A,{children:Yt.jsx(B,Ln({},H,{children:d}))}))}))});function Cf(e){return Ss("MuiMenu",e)}ws("MuiMenu",["root","paper","list"]);const Ef=["onEntering"],If=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Af={vertical:"top",horizontal:"right"},Rf={vertical:"top",horizontal:"left"},Df=Ec(wf,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mf=Ec(Sf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),kf=Ec(df,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Tf=E.forwardRef(function(e,t){var n,r;const o=Dc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=On(o.TransitionProps,Ef),x=On(o,If),S=(()=>{const e=E.useContext(El);return null!=e&&e})(),w=Ln({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return pl({root:["root"],paper:["paper"],list:["list"]},Cf,t)})(w),I=i&&!l&&d,A=E.useRef(null);let R=-1;E.Children.map(a,(e,t)=>{E.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===R)&&(R=t))});const D=null!=(n=b.paper)?n:Mf,M=null!=(r=v.paper)?r:p,k=bl({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[C.root,s]}),T=bl({elementType:D,externalSlotProps:M,ownerState:w,className:C.paper});return Yt.jsx(Df,Ln({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Af:Rf,slots:{paper:D,root:b.root},slotProps:{root:k,paper:T},open:d,ref:t,transitionDuration:h,TransitionProps:Ln({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:Yt.jsx(kf,Ln({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===R||l),autoFocusItem:I,variant:g},c,{className:vs(C.list,c.className),children:a}))}))});function qf(e){return Ss("MuiMenuItem",e)}const Pf=ws("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Lf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Of=Ec(xu,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>Ln({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Pf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Pf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Pf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Pf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ip.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ip.inset}`]:{marginLeft:52},[`& .${of.root}`]:{marginTop:0,marginBottom:0},[`& .${of.inset}`]:{paddingLeft:36},[`& .${ef.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ln({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ef.root} svg`]:{fontSize:"1.25rem"}}))),Nf=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:u,className:d}=n,p=On(n,Lf),f=E.useContext(Np),h=E.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=E.useRef(null);Ns(()=>{r&&m.current&&m.current.focus()},[r]);const g=Ln({},n,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Ln({},a,pl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},qf,a))})(n),v=Js(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),Yt.jsx(Np.Provider,{value:h,children:Yt.jsx(Of,Ln({ref:v,role:c,tabIndex:y,component:o,focusVisibleClassName:vs(b.focusVisible,l),className:vs(b.root,d)},p,{ownerState:g,classes:b}))})});function jf(e){return Ss("MuiNativeSelect",e)}const _f=ws("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),zf=["className","disabled","error","IconComponent","inputRef","variant"],Ff=({ownerState:e,theme:t})=>Ln({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ln({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${_f.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),$f=Ec("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${_f.multiple}`]:t.multiple}]}})(Ff),Bf=({ownerState:e,theme:t})=>Ln({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${_f.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Hf=Ec("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ca(n.variant)}`],n.open&&t.iconOpen]}})(Bf),Vf=E.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=On(e,zf),c=Ln({},e,{disabled:r,variant:s,error:o}),u=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return pl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ca(n)}`,i&&"iconOpen",r&&"disabled"]},jf,t)})(c);return Yt.jsxs(E.Fragment,{children:[Yt.jsx($f,Ln({ownerState:c,className:vs(u.select,n),disabled:r,ref:a||t},l)),e.multiple?null:Yt.jsx(Hf,{as:i,ownerState:c,className:u.icon})]})});var Wf;const Uf=["children","classes","className","label","notched"],Gf=Ec("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Cc})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Kf=Ec("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Cc})(({ownerState:e,theme:t})=>Ln({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Ln({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));const Yf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Xf=Ec(Yu,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Gu})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ln({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${nd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${nd.focused} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${nd.error} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${nd.disabled} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Ln({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),Jf=Ec(function(e){const{className:t,label:n,notched:r}=e,o=On(e,Uf),i=null!=n&&""!==n,a=Ln({},e,{notched:r,withLabel:i});return Yt.jsx(Gf,Ln({"aria-hidden":!0,className:t,ownerState:a},o,{children:Yt.jsx(Kf,{ownerState:a,children:i?Yt.jsx("span",{children:n}):Wf||(Wf=Yt.jsx("span",{className:"notranslate",children:"​"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Zf=Ec(Xu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ku})(({theme:e,ownerState:t})=>Ln({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Qf=E.forwardRef(function(e,t){var n,r,o,i,a;const s=Dc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=On(s,Yf),b=(e=>{const{classes:t}=e;return Ln({},t,pl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},td,t))})(s),v=Fu(),y=_u({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Ln({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:l.Root)?n:Xf,w=null!=(o=null!=(i=h.input)?i:l.Input)?o:Zf;return Yt.jsx(Zu,Ln({slots:{root:S,input:w},renderSuffix:e=>Yt.jsx(Jf,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Yt.jsxs(E.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:Ln({},b,{notchedOutline:null})}))});function eh(e){return Ss("MuiSelect",e)}Qf.muiName="Input";const th=ws("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var nh;const rh=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],oh=Ec("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${th.select}`]:t.select},{[`&.${th.select}`]:t[n.variant]},{[`&.${th.error}`]:t.error},{[`&.${th.multiple}`]:t.multiple}]}})(Ff,{[`&.${th.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ih=Ec("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ca(n.variant)}`],n.open&&t.iconOpen]}})(Bf),ah=Ec("input",{shouldForwardProp:e=>wc(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function sh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function lh(e){return null==e||"string"==typeof e&&!e.trim()}const ch=E.forwardRef(function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:w,onFocus:C,onOpen:I,open:A,readOnly:R,renderValue:D,SelectDisplayProps:M={},tabIndex:k,value:T,variant:q="standard"}=e,P=On(e,rh),[L,O]=Ys({controlled:T,default:u,name:"Select"}),[N,j]=Ys({controlled:A,default:c,name:"Select"}),_=E.useRef(null),z=E.useRef(null),[F,$]=E.useState(null),{current:B}=E.useRef(null!=A),[H,V]=E.useState(),W=Js(t,m),U=E.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;E.useImperativeHandle(W,()=>({focus:()=>{z.current.focus()},node:_.current,value:L}),[L]),E.useEffect(()=>{c&&N&&F&&!B&&(V(a?null:G.clientWidth),z.current.focus())},[F,a]),E.useEffect(()=>{i&&z.current.focus()},[i]),E.useEffect(()=>{if(!g)return;const e=Hs(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const K=(e,t)=>{e?I&&I(t):w&&w(t),B||(V(a?null:G.clientWidth),j(e))},Y=E.Children.toArray(s),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==n&&(O(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}v||K(!1,t)}},J=null!==F&&N;let Z,Q;delete P["aria-invalid"];const ee=[];let te=!1;(Hu({value:L})||p)&&(D?Z=D(L):te=!0);const ne=Y.map(e=>{if(!E.isValidElement(e))return null;let t;if(v){if(!Array.isArray(L))throw new Error(Tn(2));t=L.some(t=>sh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=sh(L,e.props.value),t&&te&&(Q=e.props.children);return E.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=v?0===ee.length?null:ee.reduce((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e),[]):Q);let re,oe=H;!a&&B&&F&&(oe=G.clientWidth),re=void 0!==k?k:d?null:0;const ie=M.id||(y?`mui-component-select-${y}`:void 0),ae=Ln({},e,{variant:q,value:L,open:J,error:f}),se=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return pl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ca(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},eh,t)})(ae),le=Ln({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ce=Ks();return Yt.jsxs(E.Fragment,{children:[Yt.jsx(oh,Ln({ref:U,tabIndex:re,role:"combobox","aria-controls":ce,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))}},onMouseDown:d||R?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),K(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:y}}),x(e))},onFocus:C},M,{ownerState:ae,className:vs(M.className,se.select,l),id:ie,children:lh(Z)?nh||(nh=Yt.jsx("span",{className:"notranslate",children:"​"})):Z})),Yt.jsx(ah,Ln({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=Y.find(t=>t.props.value===e.target.value);void 0!==t&&(O(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},P)),Yt.jsx(ih,{as:h,className:se.icon,ownerState:ae}),Yt.jsx(Tf,Ln({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Ln({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ce},b.MenuListProps),slotProps:Ln({},b.slotProps,{paper:Ln({},le,{style:Ln({minWidth:oe},null!=le?le.style:null)})}),children:ne}))]})}),uh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],dh=["root"],ph={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Cc(e)&&"variant"!==e,slot:"Root"},fh=Ec(wp,ph)(""),hh=Ec(Qf,ph)(""),mh=Ec(fp,ph)(""),gh=E.forwardRef(function(e,t){const n=Dc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=id,id:u,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:w,variant:C="outlined"}=n,I=On(n,uh),A=b?Vf:ch,R=_u({props:n,muiFormControl:Fu(),states:["variant","error"]}),D=R.variant||C,M=Ln({},n,{variant:D,classes:i}),k=(e=>{const{classes:t}=e;return t})(M),T=On(k,dh),q=d||{standard:Yt.jsx(fh,{ownerState:M}),outlined:Yt.jsx(hh,{label:f,ownerState:M}),filled:Yt.jsx(mh,{ownerState:M})}[D],P=Js(t,vl(q));return Yt.jsx(E.Fragment,{children:E.cloneElement(q,Ln({inputComponent:A,inputProps:Ln({children:o,error:R.error,IconComponent:c,variant:D,type:void 0,multiple:g},b?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Ln({id:u},w)},p,{classes:p?Qi(T,p.classes):T},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===D?{notched:!0}:{},{ref:P,className:vs(q.props.className,a,k.root)},!d&&{variant:D},I))})});gh.muiName="Select";const bh=E.createContext();function vh(e){return Ss("MuiTable",e)}ws("MuiTable",["root","stickyHeader"]);const yh=["className","component","padding","size","stickyHeader"],xh=Ec("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Ln({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ln({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Sh="table",wh=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTable"}),{className:r,component:o=Sh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=n,l=On(n,yh),c=Ln({},n,{component:o,padding:i,size:a,stickyHeader:s}),u=(e=>{const{classes:t,stickyHeader:n}=e;return pl({root:["root",n&&"stickyHeader"]},vh,t)})(c),d=E.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return Yt.jsx(bh.Provider,{value:d,children:Yt.jsx(xh,Ln({as:o,role:o===Sh?null:"table",ref:t,className:vs(u.root,r),ownerState:c},l))})}),Ch=E.createContext();function Eh(e){return Ss("MuiTableBody",e)}ws("MuiTableBody",["root"]);const Ih=["className","component"],Ah=Ec("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Rh={variant:"body"},Dh="tbody",Mh=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTableBody"}),{className:r,component:o=Dh}=n,i=On(n,Ih),a=Ln({},n,{component:o}),s=(e=>{const{classes:t}=e;return pl({root:["root"]},Eh,t)})(a);return Yt.jsx(Ch.Provider,{value:Rh,children:Yt.jsx(Ah,Ln({className:vs(s.root,r),as:o,ref:t,role:o===Dh?null:"rowgroup",ownerState:a},i))})});function kh(e){return Ss("MuiTableCell",e)}const Th=ws("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),qh=["align","className","component","padding","scope","size","sortDirection","variant"],Ph=Ec("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ca(n.size)}`],"normal"!==n.padding&&t[`padding${ca(n.padding)}`],"inherit"!==n.align&&t[`align${ca(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Ln({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Fl.lighten(Fl.alpha(e.palette.divider,1),.88):Fl.darken(Fl.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Th.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Lh=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:c,variant:u}=n,d=On(n,qh),p=E.useContext(bh),f=E.useContext(Ch),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=u||f&&f.variant,v=Ln({},n,{align:r,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return pl({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${ca(r)}`,"normal"!==o&&`padding${ca(o)}`,`size${ca(i)}`]},kh,t)})(v);let x=null;return c&&(x="asc"===c?"ascending":"descending"),Yt.jsx(Ph,Ln({as:m,ref:t,className:vs(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))});function Oh(e){return Ss("MuiTableContainer",e)}ws("MuiTableContainer",["root"]);const Nh=["className","component"],jh=Ec("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),_h=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=On(n,Nh),a=Ln({},n,{component:o}),s=(e=>{const{classes:t}=e;return pl({root:["root"]},Oh,t)})(a);return Yt.jsx(jh,Ln({ref:t,as:o,className:vs(s.root,r),ownerState:a},i))});function zh(e){return Ss("MuiTableHead",e)}ws("MuiTableHead",["root"]);const Fh=["className","component"],$h=Ec("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Bh={variant:"head"},Hh="thead",Vh=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTableHead"}),{className:r,component:o=Hh}=n,i=On(n,Fh),a=Ln({},n,{component:o}),s=(e=>{const{classes:t}=e;return pl({root:["root"]},zh,t)})(a);return Yt.jsx(Ch.Provider,{value:Bh,children:Yt.jsx($h,Ln({as:o,className:vs(s.root,r),ref:t,role:o===Hh?null:"rowgroup",ownerState:a},i))})});function Wh(e){return Ss("MuiTableRow",e)}const Uh=ws("MuiTableRow",["root","selected","hover","head","footer"]),Gh=["className","component","hover","selected"],Kh=Ec("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Uh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Uh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Yh="tr",Xh=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTableRow"}),{className:r,component:o=Yh,hover:i=!1,selected:a=!1}=n,s=On(n,Gh),l=E.useContext(Ch),c=Ln({},n,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),u=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return pl({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},Wh,t)})(c);return Yt.jsx(Kh,Ln({as:o,ref:t,className:vs(u.root,r),role:o===Yh?null:"row",ownerState:c},s))});function Jh(e){return Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Yt.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function Zh({fontSize:e="medium",children:t=null,className:n=""}={}){return Yt.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function Qh(e={}){return Yt.jsx(Zh,{...e,children:Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yt.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yt.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function em(e={}){return Yt.jsx(Zh,{fontSize:"medium",...e,children:Yt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yt.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yt.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function tm(e){return Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Yt.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function nm(e={}){return Yt.jsx(Zh,{...e,children:Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yt.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yt.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yt.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function rm(e={}){return Yt.jsx(Zh,{fontSize:"medium",...e,children:Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yt.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yt.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function om({className:e}){return Yt.jsx(Zh,{fontSize:"small",className:e,children:Yt.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yt.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yt.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yt.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yt.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Yt.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function im(e={}){return Yt.jsx(Zh,{...e,children:Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yt.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yt.jsx("rect",{stroke:qt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var am=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:qt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yt.jsx(Jh,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${qt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,borderRadius:jt,backgroundColor:qt.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${qt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:qt.WHITE,color:qt.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:jt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:qt.GREYSCALE_0_15,backgroundColor:qt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Fs(qt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Fs(qt.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:jt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:qt.GREYSCALE_0_42,backgroundColor:qt.GREYSCALE_100_60,"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:qt.PURPLE,"&.Mui-focusVisible":{borderColor:qt.PURPLE,boxShadow:`0 0 0 3px ${Fs(qt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:qt.GREEN,"&.Mui-focusVisible":{borderColor:qt.GREEN,boxShadow:`0 0 0 3px ${Fs(qt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:qt.BLUE,"&.Mui-focusVisible":{borderColor:qt.BLUE,boxShadow:`0 0 0 3px ${Fs(qt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:qt.ORANGE,"&.Mui-focusVisible":{borderColor:qt.ORANGE,boxShadow:`0 0 0 3px ${Fs(qt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:qt.RED,"&.Mui-focusVisible":{borderColor:qt.RED,boxShadow:`0 0 0 3px ${Fs(qt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:qt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:qt.PURPLE_PALE},"&:active":{backgroundColor:qt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:qt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Fs(qt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Fs(qt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Fs(qt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:qt.ORANGE_PALE},"&:active":{backgroundColor:qt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:qt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Fs(qt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:qt.RED_PALE},"&:active":{backgroundColor:qt.RED_DARK},"&.Mui-focusVisible":{borderColor:qt.RED_PALE,boxShadow:`0 0 0 3px ${Fs(qt.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:qt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:qt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:jt,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yt.jsx(tm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Pt,borderRadius:jt,color:qt.TEXT_PRIMARY,backgroundColor:qt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:qt.GREYSCALE_0_05,color:qt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:qt.GREEN,borderColor:qt.GREEN},"&.MuiChip-outlinedInfo":{color:qt.BLUE,borderColor:qt.BLUE},"&.MuiChip-outlinedWarning":{color:qt.ORANGE,borderColor:qt.ORANGE},"&.MuiChip-outlinedError":{color:qt.RED,borderColor:qt.RED}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:jt,boxShadow:"none",backgroundColor:qt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:qt.GREEN,borderColor:qt.GREEN},outlinedSecondary:{color:qt.BLUE,borderColor:qt.BLUE},label:{fontFamily:Bt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yt.jsx(tm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yt.jsx(Jh,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:jt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:jt,fontSize:Lt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:qt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${qt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:qt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:qt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:jt,border:`solid 1px ${qt.GREYSCALE_0_15}`,color:qt.GREYSCALE_0_60,marginRight:0,width:Nt,height:Nt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${qt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:jt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:qt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Lt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Pt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:qt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:qt.GREYSCALE_25,fontSize:Pt,fontFamily:Bt.FONT_FAMILY,fontWeight:Ft,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:qt.TEXT_PRIMARY},"&.Mui-error":{color:qt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:qt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:zt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:qt.TEXT_SECONDARY,content:"'(required)'",fontWeight:zt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Lt,lineHeight:"16px",backgroundColor:qt.WHITE,borderRadius:jt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_05}`,borderColor:qt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.RED}`,boxShadow:`0px 0px 0px 1px ${qt.RED}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_10}`,borderColor:qt.GREYSCALE_0_10,backgroundColor:qt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:qt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:qt.GREYSCALE_0_15,borderRadius:jt,boxShadow:`inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yt.jsx(Jh,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:qt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:qt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&:focus":{backgroundColor:qt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:qt.GREYSCALE_0_30,"&:hover":{backgroundColor:qt.GREYSCALE_0_0,borderColor:qt.GREYSCALE_0_15},"& ~svg":{color:qt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:jt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:qt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Lt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Pt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Pt,fontWeight:Ft,color:qt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ft}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yt.jsx(rm,{}),checkedIcon:Yt.jsx(em,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:qt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Fs(qt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Fs(qt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:qt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:qt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yt.jsx(im,{}),checkedIcon:Yt.jsx(Qh,{}),indeterminateIcon:Yt.jsx(nm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:jt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:qt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:qt.GREYSCALE_0_55,color:qt.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:qt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:qt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:qt.GREYSCALE_0_55,"&:hover":{color:qt.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:qt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:qt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Lt,color:qt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ft},secondary:{fontSize:Pt,color:qt.GREYSCALE_45,fontWeight:zt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Lt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Lt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:qt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Pt,borderBottom:`solid 1px ${qt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Lt,color:qt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:qt.RED}}},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:qt.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:qt.GREEN,height:"24px","&.Mui-disabled":{color:qt.GREYSCALE_0_15}},rail:{backgroundColor:qt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:jt,boxShadow:`inset 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:jt},thumb:{height:"16px",width:"16px",borderRadius:jt,backgroundColor:qt.WHITE,boxShadow:`0px 1px 2px 0px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`,"&:hover":{borderRadius:jt,boxShadow:`0 2px 4px 0 ${qt.GREYSCALE_0_30}, 0 0 0 1px ${qt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:qt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:qt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:qt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:qt.GREYSCALE_0_15},markLabel:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:qt.WHITE,color:qt.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:qt.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Fs(qt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Fs(qt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:qt.GREYSCALE_0_15,borderRadius:jt},thumb:{height:"16px",width:"16px",borderRadius:jt,backgroundColor:qt.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Lt,fontWeight:Ft,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${qt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,backgroundColor:qt.GREYSCALE_0_03,borderRadius:jt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:qt.GREYSCALE_25,"&.Mui-selected":{color:qt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Lt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:jt,"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${qt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${qt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:jt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderRight:`1px solid ${qt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ft,backgroundColor:qt.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:qt.GREYSCALE_98,borderBottom:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderTop:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05,"&:hover":{backgroundColor:qt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:qt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yt.jsx(om,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${qt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Lt,borderRadius:jt,padding:"7px 16px",border:`1px solid ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_60,color:qt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,border:`1px solid ${qt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:qt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`,border:`1px solid ${qt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:qt.GREYSCALE_25,backgroundColor:qt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Pt,height:24,width:24,padding:7},sizeLarge:{fontSize:Ot,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Lt,borderRadius:jt}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:qt.GREYSCALE_20},tooltip:{backgroundColor:qt.GREYSCALE_20,fontSize:Pt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const sm=e=>({mode:"light",primary:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},secondary:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},error:{ultraLight:qt.RED_ULTRA_LIGHT,light:qt.RED_PALE,main:qt.RED,dark:qt.RED_DARK,extraDark:qt.RED_EXTRA_DARK,contrastText:qt.WHITE},warning:{ultraLight:qt.ORANGE_ULTRA_LIGHT,light:qt.ORANGE_PALE,main:qt.ORANGE,dark:qt.ORANGE_DARK,extraDark:qt.ORANGE_EXTRA_DARK,contrastText:qt.WHITE},success:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},info:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},text:{primary:qt.TEXT_PRIMARY,secondary:qt.TEXT_SECONDARY,disabled:qt.GREYSCALE_0_30},action:{hover:qt.GREYSCALE_0_03,hoverOpacity:.03,selected:qt.GREYSCALE_0_05,selectedOpacity:.05,focus:qt.MISC_FOCUS_BORDER},amethyst:{ultraLight:qt.WHITE,main:qt.PURPLE,light:qt.PURPLE_PALE,dark:qt.PURPLE_DARK,extraDark:qt.GREYSCALE_0_0,contrastText:qt.WHITE},background:{paper:qt.WHITE,default:qt.GREYSCALE_95},divider:qt.GREYSCALE_0_15}),lm=(e="light")=>ac({components:am(),palette:sm(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Lt,fontWeightLight:_t,fontWeightRegular:zt,fontWeightMedium:Ft,fontWeightBold:$t,htmlFontSize:Lt,fontFamily:Bt.FONT_FAMILY,button:{fontWeight:Ft,fontSize:Lt,textTransform:"none"},body1:{fontSize:Ot,lineHeight:"24px"},body2:{fontSize:Lt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Nt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ot,fontWeight:Ft,lineHeight:"16px"},h6:{fontSize:Lt,fontWeight:Ft,lineHeight:"16px"},caption:{color:qt.TEXT_SECONDARY},subtitle1:{fontSize:Lt,color:qt.TEXT_SECONDARY},subtitle2:{fontSize:Pt,color:qt.TEXT_SECONDARY}},shape:{borderRadius:jt}}),cm={...Tt},um=lm().palette,dm={TEXT:um.text.primary,DISABLED:um.text.disabled,HOVER:um.action.hover,WHITE:cm.GREYSCALE_100,BORDER_LIGHT:cm.GREYSCALE_90,BORDER_MEDIUM:cm.GREYSCALE_85,BORDER_HEAVY:cm.GREYSCALE_50,DARK_MODE_TEXT:cm.GREYSCALE_95,DARK_MODE_BORDER:cm.GREYSCALE_95,DARK_MODE_DISABLED:cm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:cm.GREYSCALE_95,SELECTED:um.primary.main,LINK:um.info.main,ERROR:um.error.main},pm=(e,t=dm.TEXT,n=dm.WHITE)=>{const r=se(e??""),o=se(t),i=se(n);return r.isInvalid()?t:function(e,t,n){const r=le(e,t),o=le(e,n);if(void 0!==r&&void 0!==o)return r>o?t:n}(r,i,o).getRGB()},fm=e=>{const t=e.getStyle("","","dataColors.selected")||dm.SELECTED,n=function(e,t){const n=se(ce),r=se(e),o=se(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=le(n,r),a=le(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?ce:"#000000"}(t,dm.TEXT);return{background:t,color:n}},hm=(e,t)=>{const n=se(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},mm=(e,t,n)=>{const r=t?e.getColorPickerColor(t):"none";return"none"===r?n:r},gm=e=>{const t=se(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},bm=(e,t,n)=>{const r=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;r?r.focus():t.focusSelection?.(n)},vm=e=>{e.stopPropagation(),e.preventDefault()},ym=e=>!!e&&0===se(e).a,xm="#grid",Sm=(e,t,n,r=dm.WHITE)=>e&&!ym(e)?e:ym(t)?n&&!ym(n)?n:r:t,wm=(e,t)=>{const n=t?.closest(e);return n&&window.getComputedStyle(n).backgroundColor},Cm=(e,t,n,r,o)=>{const i=wm(".qv-object .qv-inner-object",n),a=wm(".qv-panel-sheet",n),s=wm(xm,n)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),n=t?.bgColor?.colorExpression,r=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&n)return gm(n);if("none"===r)return"transparent";if(void 0===r)return;const i=se(r);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),c=r?.(t),u=o?.(t),d=l||c||i||u,p=ym(d),f=!ym(h=p?s:d)&&pm(h,dm.TEXT,dm.DARK_MODE_TEXT)===ne(dm.DARK_MODE_TEXT);var h;return{color:d,headerColor:Sm(l,d,s),isDark:f}},Em=(e,t,r,o)=>{const l=s(),c=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=i([]);return a(()=>{let n;return e&&(n=new MutationObserver(e=>{r(e)}),n.observe(e,t)),()=>{n?.disconnect()}},[e,t]),n})(t.closest(xm),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return n(()=>({...l,background:Cm(e,l,t,r,o)}),[l.name(),t,r,o,e,c])};const Im=3,Am=/\n/g;function Rm(e,t,n){let r=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=n(a),c=n(s);if(l>t&&c<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?r=i+1:o=i}return null}const Dm=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o)=>{const{maxNbrLinesOfText:i=Im,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const s=o.measureText.bind(o),l=vt(e=>{if(void 0===e)return 0;if(a){const t=e.split(Am).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(Am," ");return s(t).width}),c=e=>+l(e).toFixed(2),u=vt(({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;const r=a?e.split(Am):[e];let o=0;for(const e of r){let n=e;do{o+=1,n=Rm(n,t,c)}while(null!==n&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:u}}};function Mm({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Im,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:c}=D(()=>Dm({fontStyle:n,fontWeight:r,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[n,r,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:c}}var km,Tm={};var qm=function(){if(km)return Tm;km=1;var e=V;return Tm.createRoot=e.createRoot,Tm.hydrateRoot=e.hydrateRoot,Tm}();const Pm="Source Sans Pro, sans-serif",Lm=(e,t,r)=>{const[,i,a]=function(e,t){const r=n(()=>({isLoading:!0}),t),[i,a]=o(async()=>{try{return await e()}finally{r.isLoading=!1}},t);return[i,r.isLoading,a]}(async()=>{const t=de(),n=e.getStyle("","","fontFamily"),r=e.getStyle("object","label.name","fontFamily"),o=e.getStyle("object","label.value","fontFamily"),i=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...i,n,r,o,Pm].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,r]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function Om(e,t){const[n,r]=M(t);n.some((e,n)=>e!==t[n])&&(r(t),e())}var Nm={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const jm=({translator:e})=>(D(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Nm).forEach(t=>{e.add(Nm[t])})}}(e)},[e]),e),_m="12px",zm="nebula-table-utils-head-menu-button",Fm="nebula-table-utils-head-menu-wrapper",$m="nebula-table-utils-head-menu",Bm="nebula-table-utils-head-menu-list-id",Hm="sn-copy-cell";let Vm=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const Wm="nebula-table-utils-column-adjuster";let Um=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),Gm=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Km={darker:.15,brighter:.3,opacity:.03},Ym={darker:.3,brighter:.5,opacity:.05};let Xm=function(e){return e.Cyclic="C",e}({});const Jm=document.createElement("textarea");function Zm(e){Jm.value=e,document.body.appendChild(Jm),Jm.select(),Jm.setSelectionRange(0,Jm.value.length),document.execCommand("copy"),document.body.removeChild(Jm)}Jm.style.position="absolute",Jm.style.left="-9999px",Jm.setAttribute("readonly","");const Qm=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{Zm(t)}):Zm(t))};function eg(e){return"init"in e}function tg(e){return"function"==typeof e.write}function ng(e){return"v"in e||"e"in e}function rg(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function og(e){return"function"==typeof(null==e?void 0:e.then)}function ig(e){if(!(e instanceof Error))return!1;const t=e.name,n=e.message.toLowerCase();return("RangeError"===t||"InternalError"===t)&&(n.includes("call stack")||n.includes("too much recursion")||n.includes("stack overflow"))}function ag(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function sg(e,t,n){const r=n.get(e),o=null==r?void 0:r.t,i=t.p;if(!(null==o?void 0:o.size))return i;if(!i.size)return o;const a=new Set(o);for(const e of i)a.add(e);return a}const lg=()=>{const e={},t=new WeakMap,n=n=>{var r,o;null==(r=t.get(e))||r.forEach(e=>e(n)),null==(o=t.get(n))||o.forEach(e=>e())};return n.add=(n,r)=>{const o=n||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(r),()=>{i.delete(r),i.size||t.delete(o)}},n};const cg=(e,t,n,...r)=>n.read(...r),ug=(e,t,n,...r)=>n.write(...r),dg=(e,t,n)=>n.INTERNAL_onInit(t),pg=(e,t,n,r)=>{var o;return null==(o=n.onMount)?void 0:o.call(n,r)},fg=(e,t,n)=>{var r;const o=e[0];let i=o.get(n);if(!i){const a=e[6],s=e[9];i={d:new Map,p:new Set,n:0},o.set(n,i),null==(r=a.i)||r.call(a,n),function(e){return!!e.INTERNAL_onInit}(n)&&s(e,t,n)}return i},hg=(e,t)=>{var n;const r=e[1],o=e[3],i=e[4],a=e[5],s=e[6],l=e[13];if(!(s.f||o.size||i.size||a.size))return;const c=[],u=e=>{try{e()}catch(e){c.push(e)}};do{s.f&&u(s.f);const c=new Set;for(const e of o){const t=null==(n=r.get(e))?void 0:n.l;if(t)for(const e of t)c.add(e)}o.clear();for(const e of a)c.add(e);a.clear();for(const e of i)c.add(e);i.clear();for(const e of c)u(e);o.size&&l(e,t)}while(o.size||a.size||i.size);if(c.length)throw new AggregateError(c)},mg=(e,n)=>{const r=e[1],o=e[2],i=e[3],a=e[11],s=e[14],l=e[17];if(!i.size)return;const c=[],u=[],d=new WeakSet,p=new WeakSet,f=[],h=[];for(const t of i)f.push(t),h.push(a(e,n,t));for(;f.length;){const i=f.length-1,s=f[i],l=h[i];if(p.has(s))f.pop(),h.pop();else if(d.has(s)){if(o.get(s)===l.n)c.push(s),u.push(l);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(s))throw new Error("[Bug] invalidated atom exists");p.add(s),f.pop(),h.pop()}else{d.add(s);for(const t of sg(s,l,r))d.has(t)||(f.push(t),h.push(a(e,n,t)))}}for(let t=c.length-1;t>=0;--t){const r=c[t],a=u[t];let d=!1;for(const e of a.d.keys())if(e!==r&&i.has(e)){d=!0;break}d&&(o.set(r,a.n),s(e,n,r),l(e,n,r)),o.delete(r)}},gg=new WeakSet,bg=(e,n,r)=>{var o,i;const a=e[1],s=e[2],l=e[3],c=e[6],u=e[7],d=e[11],p=e[12],f=e[13],h=e[14],m=e[16],g=e[17],b=e[20],v=e[26],y=e[28],x=d(e,n,r),S=y[0];if(ng(x)){if(a.has(r)&&s.get(r)!==x.n||x.m===S)return x.m=S,x;let t=!1;for(const[r,o]of x.d)if(h(e,n,r).n!==o){t=!0;break}if(!t)return x.m=S,x}let w=!0;const C=new Set(x.d.keys()),E=()=>{for(const e of C)x.d.delete(e)},I=()=>{if(a.has(r)){const t=!l.size;g(e,n,r),t&&(f(e,n),p(e,n))}},A=t=>{var o;if(t===r){const r=d(e,n,t);if(!ng(r)){if(!eg(t))throw new Error("no atom init");b(e,n,t,t.init)}return rg(r)}const i=h(e,n,t);try{return rg(i)}finally{C.delete(t),x.d.set(t,i.n),og(x.v)&&ag(r,x.v,i),a.has(r)&&(null==(o=a.get(t))||o.t.add(r)),w||I()}};let R,D;const M={get signal(){return R||(R=new AbortController),R.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||tg(r)||console.warn("setSelf function cannot be used with read-only atom"),!D&&tg(r)&&(D=(...o)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,n,r,o)}finally{f(e,n),p(e,n)}}),D}},k=x.n,T=s.get(r)===k;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&gg.delete(n);const i=u(e,n,r,A,M);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&gg.has(n)&&console.warn("Detected store mutation during atom read. This is not supported."),b(e,n,r,i),og(i)){v(e,n,i,()=>null==R?void 0:R.abort());const t=()=>{E(),I()};i.then(t,t)}else E();return null==(o=c.r)||o.call(c,r),x.m=S,x}catch(e){if(ig(e))throw e;return delete x.v,x.e=e,++x.n,x.m=S,x}finally{w=!1,x.n!==k&&T&&(s.set(r,x.n),l.add(r),null==(i=c.c)||i.call(c,r))}},vg=(e,t,n)=>{const r=e[1],o=e[2],i=e[11],a=[n];for(;a.length;){const n=a.pop(),s=i(e,t,n);for(const l of sg(n,s,r)){const n=i(e,t,l);o.get(l)!==n.n&&(o.set(l,n.n),a.push(l))}}},yg=(e,n,r,o)=>{const i=e[3],a=e[6],s=e[8],l=e[11],c=e[12],u=e[13],d=e[14],p=e[15],f=e[16],h=e[17],m=e[20],g=e[28];let b=!0;const v=t=>rg(d(e,n,t)),y=(o,...s)=>{var d;const v=l(e,n,o);try{if(o===r){if(!eg(o))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&gg.add(n);const r=v.n,l=s[0];return m(e,n,o,l),h(e,n,o),void(r!==v.n&&(++g[0],i.add(o),p(e,n,o),null==(d=a.c)||d.call(a,o)))}return f(e,n,o,s)}finally{b||(u(e,n),c(e,n))}};try{return s(e,n,r,v,y,...o)}finally{b=!1}},xg=(e,t,n)=>{var r;const o=e[1],i=e[3],a=e[6],s=e[11],l=e[15],c=e[18],u=e[19],d=s(e,t,n),p=o.get(n);if(p&&d.d.size>0){for(const[o,u]of d.d)if(!p.d.has(o)){const d=s(e,t,o);c(e,t,o).t.add(n),p.d.add(o),u!==d.n&&(i.add(o),l(e,t,o),null==(r=a.c)||r.call(a,o))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const o=u(e,t,r);null==o||o.t.delete(n)}}},Sg=(e,t,n)=>{var r;const o=e[1],i=e[4],a=e[6],s=e[10],l=e[11],c=e[12],u=e[13],d=e[14],p=e[16],f=e[18],h=l(e,t,n);let m=o.get(n);if(!m){d(e,t,n);for(const r of h.d.keys()){f(e,t,r).t.add(n)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(n,m),tg(n)&&function(e){return!!e.onMount}(n)){const r=()=>{let r=!0;const o=(...o)=>{try{return p(e,t,n,o)}finally{r||(u(e,t),c(e,t))}};try{const i=s(e,t,n,o);i&&(m.u=()=>{r=!0;try{i()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,n)}return m},wg=(e,t,n)=>{var r,o;const i=e[1],a=e[5],s=e[6],l=e[11],c=e[19],u=l(e,t,n);let d=i.get(n);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(n)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(n);for(const r of u.d.keys()){const o=c(e,t,r);null==o||o.t.delete(n)}null==(o=s.u)||o.call(s,n)},Cg=(e,t,n,r)=>{const o=e[11],i=e[27],a=o(e,t,n),s="v"in a,l=a.v;if(og(r))for(const i of a.d.keys())ag(n,r,o(e,t,i));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,og(l)&&i(e,t,l))},Eg=(e,t,n)=>rg((0,e[14])(e,t,n)),Ig=(e,t,n,...r)=>{const o=e[3],i=e[12],a=e[13],s=e[16],l=o.size;try{return s(e,t,n,r)}finally{o.size!==l&&(a(e,t),i(e,t))}},Ag=(e,t,n,r)=>{const o=e[12],i=e[13],a=e[18],s=e[19],l=a(e,t,n).l;return l.add(r),i(e,t),o(e,t),()=>{l.delete(r),s(e,t,n),i(e,t),o(e,t)}},Rg=(e,t,n,r)=>{const o=e[25];let i=o.get(n);if(!i){i=new Set,o.set(n,i);const e=()=>o.delete(n);n.then(e,e)}i.add(r)},Dg=(e,t,n)=>{const r=e[25].get(n);null==r||r.forEach(e=>e())},Mg=new WeakMap;function kg(e){const n=Mg.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Store must be created by buildStore to read its building blocks");const r=n[24];return r?r(n,e):n}function Tg(...e){const t={get:e=>r(n,t,e),set:(e,...r)=>o(n,t,e,...r),sub:(e,r)=>i(n,t,e,r)},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},cg,ug,dg,pg,fg,hg,mg,bg,vg,yg,xg,Sg,wg,Cg,Eg,Ig,Ag,void 0,new WeakMap,Rg,Dg,[0]].map((t,n)=>e[n]||t);Mg.set(t,Object.freeze(n));const r=n[21],o=n[22],i=n[23];return t}var qg=Object.freeze({__proto__:null,INTERNAL_addPendingPromiseToDependency:ag,INTERNAL_buildStoreRev3:Tg,INTERNAL_getBuildingBlocksRev3:kg,INTERNAL_getMountedOrPendingDependents:sg,INTERNAL_hasInitialValue:eg,INTERNAL_initializeStoreHooksRev3:function(e){return e.i||(e.i=lg()),e.r||(e.r=lg()),e.c||(e.c=lg()),e.m||(e.m=lg()),e.u||(e.u=lg()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e},INTERNAL_isActuallyWritableAtom:tg,INTERNAL_isAtomStateInitialized:ng,INTERNAL_isPromiseLike:og,INTERNAL_returnAtomValue:rg,INTERNAL_shouldThrowSynchronously:ig});let Pg,Lg=0;function Og(e,n){const r="atom"+ ++Lg,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?o.read=e:(o.init=e,o.read=Ng,o.write=jg),n&&(o.write=n),o}function Ng(e){return e(this)}function jg(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function _g(){return Tg()}const zg=T(void 0);function Fg(e){const n=N(zg);return(null==e?void 0:e.store)||n||(Pg||(Pg=_g(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Pg),globalThis.__JOTAI_DEFAULT_STORE__!==Pg&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Pg)}function $g({children:e,store:t}){const n=k(null);return t?C(zg.Provider,{value:t},e):(null===n.current&&(n.current=_g()),C(zg.Provider,{value:n.current},e))}const Bg=e=>"function"==typeof(null==e?void 0:e.then),Hg=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Vg=w.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Hg(e),e)}),Wg=new WeakMap,Ug=(e,t,n)=>{const r=kg(e),o=r[26];let i=Wg.get(t);return i||(i=new Promise((a,s)=>{let l=t;const c=e=>t=>{l===e&&a(t)},u=e=>t=>{l===e&&s(t)},d=()=>{try{const t=n();Bg(t)?(Wg.set(t,i),l=t,t.then(c(t),u(t)),o(r,e,t,d)):a(t)}catch(e){s(e)}};t.then(c(t),u(t)),o(r,e,t,d)}),Wg.set(t,i)),i};function Gg(e,t){const{delay:n,unstable_promiseStatus:r=!w.use}={},o=Fg(t),[[i,a,s],l]=q(t=>{const n=o.get(e);return Object.is(t[0],n)&&t[1]===o&&t[2]===e?t:[n,o,e]},void 0,()=>[o.get(e),o,e]);let c=i;if(a===o&&s===e||(l(),c=o.get(e)),P(()=>{const t=o.sub(e,()=>{if(r)try{const t=o.get(e);Bg(t)&&Hg(Ug(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof n)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(l,n);l()});return l(),t},[o,e,n,r]),L(c),Bg(c)){const t=Ug(o,c,()=>o.get(e));return r&&Hg(t),Vg(t)}return c}function Kg(e,n){const r=Fg(n);return O((...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...n)},[r,e])}function Yg(e,t){return[Gg(e,t),Kg(e,t)]}const Xg=Og(void 0),Jg=Og({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>{}}),Zg=Og({}),Qg=e=>"string"==typeof e,eb=e=>"number"==typeof e,tb=e=>"boolean"==typeof e,nb=e=>e instanceof Error,rb=e=>e instanceof Set,ob=e=>e instanceof Map,ib=e=>{if(e instanceof Error)return e.message;if(null===e)return"null";if(void 0===e)return"undefined";if(Qg(e))return e;if(rb(e))try{return JSON.stringify([...e])}catch{return"Failed to serialize Set"}if(ob(e))try{return JSON.stringify(Object.fromEntries(e))}catch{return"Failed to serialize Map"}try{return JSON.stringify(e)}catch{return"Failed to serialize value"}},ab=e=>{if(null!=e){if(Qg(e))return e;if(nb(e))return ib(e);if(eb(e)||tb(e))return String(e);if(Array.isArray(e)||rb(e)||ob(e))return ib(e);if("object"==typeof(t=e)&&null!==t&&!Array.isArray(t)){const t={};return Object.entries(e).forEach(([e,n])=>{Qg(n)||eb(n)||tb(n)?t[e]=n:t[e]=ib(n)}),t}var t;return ib(e)}},sb=(e,t={})=>{const{tag:n}=t,r=({msg:t,payload:r})=>{const o=((e,t)=>{const n=[];return Qg(t)&&t.length>0?n.push(t):Array.isArray(t)&&n.push(...t.filter(e=>"string"==typeof e&&e.length>0)),n.length>0?`${n.map(e=>`[${e}]`).join("")} ${e}`:e})(t,n);return(e=>{if(!nb(e))return!1;switch(e.message){case"Session suspended":case"Socket closed":return!0;default:return!1}})(r)||e.anything?.logInfo?.(o,ab(r)),o};return{warn:({msg:e,payload:t})=>{r({msg:e,payload:t})},error:({msg:e,payload:t})=>{r({msg:e,payload:t})}}},lb=e=>sb(e,{tag:"sn-table"}),cb=Og({}),ub=Og(e=>{const t=e(cb);return e=>t.flags.isEnabled(e)}),db=Og(e=>{const t=e(cb);return lb(t)}),pb=Og(!1),fb=Og({qHyperCube:{qDimensionInfo:[],qMeasureInfo:[],qSize:{qcx:0,qcy:0}}}),hb=Og(e=>e(fb).qHyperCube.qSize.qcy),mb=Og(e=>!!e(fb).snapshotData),gb=Og(e=>e(fb).qHyperCube.qDimensionInfo.length),bb=Og(e=>e(fb).qHyperCube.qMeasureInfo.length),vb=Og(e=>e(fb).qStateName),yb=Og(e=>e(fb).snapshotData),xb=Og(e=>!1!==e(fb).usePagination),Sb=Og(e=>!1!==e(fb).accessibleHeader),wb=Og(),Cb=Og(!1),Eb=Og(e=>e(wb),(e,t,n)=>{t(wb,n),t(Cb,n.isModal())}),Ib=Og(),Ab=Og(e=>{const t=e(Ib),n=e(mb);return{...t,select:!!t?.active&&!!t.select&&!n,active:!!t?.active&&!n,scroll:!!t?.active}},(e,t,n)=>{t(Ib,n)}),Rb=Og(e=>!!e(Ab).active),Db=Og(e=>!!e(Ab).passive),Mb=Og(e=>!!e(Ab).select),kb=Og(e=>!!e(Ab).scroll),Tb=Og(e=>{const t=e(Rb),n=e(Cb);return t&&!n}),qb=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),Pb=Og(),Lb=Og(e=>e(Pb)?.direction),Ob=Og(e=>e(Pb)?.footerContainer),Nb=Og(e=>e(Pb)?.viewState),jb=Og(e=>e(Pb)?.freeResize),_b=Og(e=>{const t=e(fb),n=e(Nb),r=e(xb);return void 0!==n?.usePagination?n.usePagination:r||qb(t,n)}),zb=Og({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),Fb=Og(e=>e(zb),(e,t,n)=>{const r=e(_b),o=e(ub)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE");(r||o)&&t(zb,n)}),$b=Og(),Bb=Og(e=>{const t=e($b);if(t&&"getEffectiveProperties"in t)return t}),Hb={width:0,height:0,top:0,left:0},Vb=Og(Hb),Wb=Og(Hb),Ub=Og(e=>e(Vb),(e,t,n)=>{const r=e(fb),o=e(jb),i=e(Vb),a=r.snapshotData?.content&&!o;(i.width!==n.width||i.height!==n.height||i.top!==n.top||i.left!==n.left||a)&&(t(Wb,n),t(Vb,a?{...n,...r.snapshotData?.content?.size}:n))}),Gb=Og({}),Kb=new WeakMap,Yb=Og(e=>{const t=e(Gb),n=Kb.get(t);if(n)return n;const r=qm.createRoot(t);return Kb.set(t,r),r}),Xb=Og({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),Jb=Og({get:e=>e,add:()=>{},language:()=>"en"});var Zb,Qb={exports:{}};var ev=(Zb||(Zb=1,function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=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},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,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(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=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},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,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(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Te});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var s=a[i];return a[i]=n,{updated:n,previous:s}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],o),h(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],o),p=u(r[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=c(f(t));if(!n.showExcludedValues)return a;var s=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),l=i?"":", 0";if(r&&1===r.length){var u=h(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])})},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var s=S({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var I=t().bind(null,!0),A={},R=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach(function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?i:e[t],e=e[n||t]}}),e}function q(e,t){var n=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){q(e[r],t[r])||(n=!1)}),n);if(R(e)&&R(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!q(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?I({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);q(i,a)||k(t,o)||(M(a)?r.push({op:"add",path:s,value:i}):D(i)&&D(a)?r=r.concat(A.generate(a,i,s)):R(i)&&R(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(q(t,o))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(A.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){M(t[o])&&!k(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})}),r},A.apply=function(e,t){t.forEach(function(t){var n,r,o=T(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(R(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(R(a)&&R(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!k(n,e)&&delete n[e]}),I(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var u=T(e,t.from);R(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(R(o)?o.splice(+i,1):delete o[i])})},A.clone=function(e){return I({},e)},A.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):I(e,t)};const P=A,L=function(e,n,r){if(!e)return Promise.resolve();var o=P.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function j(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),p=w.getAboveComp(n,l,u,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:n,properties:r,layout:o})){var h=w.getDimComp(c,1),m=w.getDimComp(c,0),g=w.getAggrComp(f,h,m);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var F="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===F)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===F)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=w.getNumDimensions({properties:o,layout:a}));var u=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(r,c),h=w.getAboveComp(r,c,p,f);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:r,properties:o,layout:a})){var v=w.getDimComp(u,1),y=w.getDimComp(u,0),x=w.getAggrComp(b,v,y);b=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const Y={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,u),p="".concat(u," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:o})){var f=w.getDimComp(c,1),h=w.getDimComp(c,0),m=w.getAggrComp(p,f,h);p=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(o,i),d=ce(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(p,"))")}(u,d,n.field,n.value,p,l,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Ie="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Re={initBase:function(e,t){(t||Re.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,Ee,i(e,we)))},restoreBase:function(e){Re.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,we,i(e,Ee)),i(e,Ie)&&i(e,Ae)&&n(e,Ie,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const De=Re;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var ke={accumulation:z,movingAverage:V,difference:ee,normalization:ue,timeSeriesDecomposition:Y};const Te={modifiers:ke,apply:Pe,applyModifiers:Le,cleanUpMeasure:Oe,destroy:function(e){e&&qe[e.id]&&qe[e.id].masterItemSubscriber&&(qe[e.id].masterItemSubscriber&&qe[e.id].masterItemSubscriber.unsubscribe(),delete qe[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:n,layout:r})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=Fe(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))}),o&&!i},ifEnableTotalsFunction:_e};var qe={};function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;qe[n.id]=qe[n.id]||{isFirstTime:!0};var c=qe[n.id].isFirstTime;if(qe[n.id].isFirstTime=!1,r&&"object"===Me(r))return Le({model:n,properties:r});var u=n?n.layout:void 0,d=i(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(u,"qHyperCube.qMeasureInfo"),f=qe[n.id].lastReloadTime;if(qe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:u})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({measure:e,properties:n,layout:r})})}({measures:t,layout:n})}({measures:p,layout:u,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some(function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:Fe(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then(function(e){var r=t()(!0,{},e);Be(r);var o=Qe(r);return Ke({model:n}).then(function(t){return Ye({libraryIds:o,model:n}).then(function(o){return h&&function(e){var t=e.properties;ze(t).forEach(function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:r}),Le({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Me(e.base)})}(p)?n.getEffectiveProperties().then(function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then(function(){var e=t()(!0,{},r);return ze(r).forEach(function(e){return Oe(e)}),Je({oldProperties:e,newProperties:r,model:n})})}({model:n,properties:e})}):Promise.resolve(l)}function Le(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:c}).then(function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach(function(e){return Oe(e)}),Promise.resolve();var l=a?void 0:Qe(r);return Ke({model:o,dimensionAndFieldList:s}).then(function(e){return Ye({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){n.forEach(function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(n)||De.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(s++,"object"!==Me(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:ke[r.type].generateExpression({expression:s,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof ke[r.type].updateModifier&&ke[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:ke[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}})}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)})})})}({measures:a,properties:o,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)})})}function Oe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&!ke[e.type]})}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({modifiers:Fe(e),properties:n,layout:r})})}function je(e){var t=Fe(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(ke[r.type]&&!r.disabled)return r}}function _e(e){var t=je(e);return!t||ke[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach(function(e){return function(e){var n=je(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)})}function He(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Me(t)&&(t.disabled||!ke[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ge({modifiers:Fe(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Me(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:n,layout:r})),o[e.type])})}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});r.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return r.push(a),Promise.all(r).then(function(){return o})}function Ye(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=n.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):L(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:n,layout:r})})}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach(function(t){var r=Fe(t);if(Ge({modifiers:r,properties:e})){var i=We(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(qe[t.id].masterItemSubscriber=qe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=i(e,"qInfo.qType");return n&&s[n]&&s[n].forEach(function(n){t[n]=i(e,n)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var o=l(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then(function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach(function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!r[e]&&s.push(u(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose()}),r={}}}}({model:t,callback:function(e){return Pe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),qe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var p=n(8),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var s,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,l(r.qMeasures));var a,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach(function(e){t.properties[e]=n[e]})},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])}),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,n){var r,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(r=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=s}var S=n(909),w=n.n(S);function C(e,t){var n=w()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function E(e,t){return w()(!0,{},t,e)}function I(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var A=Math.pow(2,53)-1;function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},k=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},T=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},q=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},P=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(c):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(c):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},s=I(a.max,o.dimensions.length,A),l=I(a.min,o.dimensions.length,0);return{maxDimensions:I(i.max,s,A),minDimensions:I(i.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},_=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return R(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),r.dimensions.added(e,n)})}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),r.measures.added(e,n)})}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach(function(t){i.setValue(e,t,n[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=_({exportFormat:t,initialProperties:r,hypercubePath:c}),b=i.getValue(r,c||"").qHyperCubeDef,v=i.getValue(g,c||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,I=void 0===E?q():E,A=l.defaultMeasure,R=void 0===A?P():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:I}),O({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:R}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),B({newProperties:g,dataDefinition:a,hypercubePath:c}),j({exportFormat:t,newHyperCubeDef:v}),k("qMaxStackedCells",b,v),k("qNoOfLeftDims",b,v),T("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),T("qMode",b,v,"S"),T("qReductionMode",b,v,"N"),T("qSortbyYValue",b,v),T("qIndentMode",b,v),T("qShowTotalsAbove",b,v),M(g,t,r),m.qProperty=g;var D=i.getValue(u||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:D}),p&&V(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,n,r){t=t||[];var o=u(e,r,n),i=u(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const Y={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach(function(e){n[e]=t[e]}),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],s=t.length;if(G(a,t,r,o),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=Y.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}),t.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(r,o);var l=r[r.length-1];if(l){var c=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),u=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(c){var f=Y.create(Y.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(s.expression=i)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(ne(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],o=Y.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=Y.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=Y.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return Y.moveByIdFromGroup(a,[],"qAttributeDimensions",c),Y.moveByIdFromGroup(a,[],"qAttributeExpressions",c),Y.moveByIdFromGroup(s,[],"qAttributeExpressions",u),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ce(d,p),b=ue({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),u}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},we={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var c=Ce(n,r,l);i.setValue(t,c,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})})}function Ie(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(n,r,s),c=i.getValue(t,l);void 0!==c&&(i.setValue(o,a,c),i.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Re="conditionalColoring",De="measures",Me="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Re,arrayName:De,itemPath:Me})},unquarantine:function(e){Ie({properties:e,arrayPath:Ae,itemPath:Me,arrayName:De,quarantineName:Re})}};var Te="qHyperCubeDef.qMeasures",qe="measures",Pe="qHyperCubeDef.qDimensions",Le="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:Te,quarantineName:Fe,arrayName:qe,itemPath:ze}),Ee({properties:e,arrayPath:Pe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Ie({properties:e,arrayPath:Te,quarantineName:Fe,arrayName:qe,itemPath:ze}),Ie({properties:e,arrayPath:Pe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ie({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},Be={hypercube:W,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Ie,conditionalColoring:ke,conditionalShow:$e}})(),r.default})()}(Qb)),Qb.exports),tv=Ht(ev);const nv="qHyperCubeDef.qMeasures",rv="measures",ov="qHyperCubeDef.qDimensions",iv="dimensions",av="qDef.representation",sv="tableRepresentation",lv="qDef.conditionalColoring",cv="conditionalColoring",uv="qMiniChartDef",dv="miniChartDef",pv=({propertyTree:e,hyperCubePath:t})=>{const n=tv.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:r,qDimensions:o,qMeasures:i}}=n.properties,a=((e,t,n)=>{const r=e.length+t.length,o=(n?.length===r?n:Array.from(Array(r).keys())).map(n=>((e,t,n)=>{const r=t.length,o=e<r?t[e]:n[e-r],{columnWidth:i}=o.qDef;return i||-1})(n,e,t));return o})(o,i,r);return bt(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:a}),tv.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),tv.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),tv.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{tv.quarantineArrayProp({properties:e,arrayPath:ov,itemPath:av,arrayName:iv,quarantineName:sv}),tv.quarantineArrayProp({properties:e,arrayPath:nv,itemPath:av,arrayName:rv,quarantineName:sv}),tv.quarantineArrayProp({properties:e,arrayPath:nv,itemPath:lv,arrayName:rv,quarantineName:cv}),tv.quarantineArrayProp({properties:e,arrayPath:nv,itemPath:uv,arrayName:rv,quarantineName:dv})})(n.properties),n};const fv=/^q[A-Z]/,hv=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],mv=e=>"object"==typeof e&&null!==e,gv=(e,t)=>(Object.entries(e).forEach(([n,r])=>{const o=void 0===t?n:`${t}.${n}`;((e,t)=>!fv.test(e)&&!hv.some(e=>e.test(t)))(n,o)?delete e[n]:Array.isArray(r)?e[n]=r.map((e,t)=>mv(e)?gv(e,`${o}.${t}`):e):mv(r)&&(e[n]=gv(r,o))}),e),bv=(e,t,n,r)=>{let o=t;r&&(o=t-r);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){const e=n[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:Gm.Pixels,pixels:e}:{type:Gm.FitToContent}:i.qDef.columnWidth=e}return i},vv=({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o,viewDataMode:i,env:a})=>{const s=lb(a);if(i){try{e=structuredClone(e)}catch(e){s.error({msg:"Failed to copy source properties",payload:e})}gv(e.properties)}const l=tv.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:r,extension:n});if(tv.conditionalShow.unquarantine(l.qProperty),i)bt(l,"qProperty.totals.show",!1),bt(l,"qProperty.usePagination",!0),bt(l,"qProperty.accessibleHeader",!0);else{tv.unquarantineProperty(l.qProperty,"straightTableColumnOrder"),(e=>{tv.unquarantineArrayProp({properties:e,arrayPath:ov,itemPath:av,arrayName:iv,quarantineName:sv}),tv.unquarantineArrayProp({properties:e,arrayPath:nv,itemPath:av,arrayName:rv,quarantineName:sv}),tv.unquarantineArrayProp({properties:e,arrayPath:nv,itemPath:lv,arrayName:rv,quarantineName:cv}),tv.unquarantineArrayProp({properties:e,arrayPath:nv,itemPath:uv,arrayName:rv,quarantineName:dv})})(l.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:n,columnWidths:r}}=l.qProperty,{dimensions:o,measures:i}=((e,t,n,r)=>{const o=e.length,i=o+t.length,a=n?.length===i?n:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>bv(e,t,r)),measures:a.filter(e=>e>=o).map(e=>bv(t,e,r,o))}})(e,t,n,r);Array.isArray(r)&&r.length>0&&(bt(l,"qProperty.qHyperCubeDef.qDimensions",o),bt(l,"qProperty.qHyperCubeDef.qMeasures",i))}return l};t.meta.env&&t.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},n){var r;let o,i;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}o=e}return i},c=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(c)?c.then(l):l(c)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,e=>{let o;try{o=JSON.parse(e||"",null==n?void 0:n.reviver)}catch(e){o=r}t(o)})))}();const yv=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),xv=new WeakMap,Sv=()=>{};function wv(e,n=Sv){return((e,t,n)=>{const r=yv(()=>new WeakMap,xv,t);return yv(e,r,n)})(()=>{const r=new WeakMap,o=new WeakMap,i=Og(0),a=Og([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(i,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(i.debugPrivate=!0,a.debugPrivate=!0);const s=Og(t=>{let l;t(i);try{l=t(s)}catch(e){}const c=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(c))return{v:c};if(c!==(null==l?void 0:l.p)&&c.then(e=>{o.set(c,e);const[n]=t(a);n()},e=>{r.set(c,e);const[n]=t(a);n()}),r.has(c)){if(l&&"e"in l&&l.p===c)return l;const e=r.get(c);return l&&"v"in l?{p:c,e:e,v:l.v}:{p:c,e:e}}return o.has(c)?{p:c,v:o.get(c)}:l&&"v"in l?{p:c,f:n(l.v),v:l.v}:{p:c,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),Og(e=>{const t=e(s);if("e"in t)throw t.e;return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}const Cv=new WeakMap;function Ev(e,t){const n=Fg(t),r=Iv(n);for(const[o,...i]of e)r.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(o),n.set(o,...i))}const Iv=e=>{let t=Cv.get(e);return t||(t=new WeakSet,Cv.set(e,t)),t};function Av(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}const Rv="INTERNAL_getBuildingBlocksRev",Dv=Number(Object.keys(qg).find(e=>e.startsWith(Rv))?.slice(29));if(Number.isNaN(Dv))throw new Error("jotai-compat: unsupported jotai internals revision");const Mv=qg,kv=`INTERNAL_getBuildingBlocksRev${Dv}`,Tv=Mv[`INTERNAL_initializeStoreHooksRev${Dv}`],qv=[["atomStateMap","a"],["mountedMap","m"],["invalidatedAtoms","i"],["changedAtoms","c"],["mountCallbacks","q"],["unmountCallbacks","Q"],["storeHooks","h"],["atomRead","R"],["atomWrite","W"],["atomOnInit","I"],["atomOnMount","M"],["ensureAtomState","e"],["flushCallbacks","f"],["recomputeInvalidatedAtoms","C"],["readAtomState","r"],["invalidateDependents","d"],["writeAtomState","w"],["mountDependencies","D"],["mountAtom","t"],["unmountAtom","T"],["setAtomStateValueOrPromise","v"],["storeGet","g"],["storeSet","s"],["storeSub","b"],["enhanceBuildingBlocks","B"],["abortHandlersMap","p"],["registerAbortHandler","H"],["abortPromise","A"],["storeEpochHolder","E"]];if(Dv>=4)for(const[e,t]of qv)if(Mv[`INTERNAL_KEY_${e}`]!==t)throw new Error(`jotai-compat: KEY drift for ${e}`);const Pv={};qv.forEach(([e,t],n)=>{Pv[`INTERNAL_KEY_${e}`]=Dv>=4?t:n});const{INTERNAL_KEY_mountedMap:Lv,INTERNAL_KEY_changedAtoms:Ov,INTERNAL_KEY_storeHooks:Nv,INTERNAL_KEY_ensureAtomState:jv,INTERNAL_KEY_flushCallbacks:_v,INTERNAL_KEY_recomputeInvalidatedAtoms:zv,INTERNAL_KEY_readAtomState:Fv,INTERNAL_KEY_invalidateDependents:$v,INTERNAL_KEY_writeAtomState:Bv,INTERNAL_KEY_mountDependencies:Hv,INTERNAL_KEY_setAtomStateValueOrPromise:Vv}=Pv,Wv=Mv[kv],Uv=new WeakMap;function Gv(e){const t=Og(()=>[]),n=Og(function(e){const[r,o,i]=e(t);i.has(n)&&(r.forEach(e),++o.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=(e=>{const t=Wv(e);let n=Uv.get(t);return n||(n=Array.isArray(t)?[]:{},qv.forEach(([e,r],o)=>{const i={value:Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[o],enumerable:!0};Object.defineProperty(n,o,i),Object.defineProperty(n,r,i)}),Uv.set(t,n)),n})(e),o=r[Lv],i=r[Ov],a=Tv(r[Nv]),s=r[jv],l=r[_v],c=r[zv],u=r[Fv],d=r[$v],p=r[Bv],f=r[Hv],h=r[Vv],m=new Set;let g,b=0,v=!1,y=!1,x=!1;function S(){if(b)return;m.clear();let t=!0;const w=i=>{if(x)return e.get(i);if(i===n){const t=s(r,e,i);if(!ng(t)){if(!eg(i))throw new Error("no atom init");h(r,e,i,i.init)}return rg(t)}const a=u(r,e,i);try{return rg(a)}finally{C.d.set(i,a.n),o.get(i)?.t.add(n),t?m.add(i):o.has(i)&&(f(r,e,n),c(r,e),l(r,e))}};w.peek=e.get;const E=(o,...u)=>{const m=s(r,e,o);try{if(++b,o===n){if(!eg(o))throw new Error("atom not writable");const t=m.n,n=u[0];return h(r,e,o,n),f(r,e,o),void(t!==m.n&&(i.add(o),a.c?.(o),d(r,e,o)))}return p(r,e,o,u)}finally{t||(c(r,e),l(r,e)),--b}};E.recurse=(t,...o)=>{if(x){if(Av())throw new Error("set.recurse is not allowed in cleanup")}else try{return v=!0,f(r,e,n),E(t,...o)}finally{c(r,e),v=!1,y&&(y=!1,S())}};try{g?.();const e=n.effect(w,E);if("function"!=typeof e)return;g=()=>{if(!b)try{return t=!0,x=!0,e()}finally{t=!1,x=!1,g=void 0}}}finally{t=!1,m.forEach(t=>{C.d.set(t,s(r,e,t).n)}),f(r,e,n),c(r,e)}}const w=function(e,t){let n=Kv.get(e);n||(n=new Set,Kv.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,a),C=s(r,e,n);C.v=void 0,Object.assign(e.get(t),[m,C,o]),a.c.add(n,function(){i.delete(n)}),a.m.add(n,function(){w.add(S),g&&w.delete(g)}),a.u.add(n,function(){w.delete(S),g&&w.add(g)}),a.c.add(n,function(){v?y=!0:w.add(S)})},Av()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const Kv=new WeakMap;const Yv=async(e,t,n)=>{if("dimension"===e.type)if(e.isAlternative)try{await t.moveDimensionFromAlternative(e.id)}catch(t){n.error({msg:`Failed to move dimension ${e.id} from alternative`,payload:t})}else try{await t.moveDimensionToAlternative(e.id)}catch(t){n.error({msg:`Failed to move dimension ${e.id} to alternative`,payload:t})}if("measure"===e.type)if(e.isAlternative)try{await t.moveMeasureFromAlternative(e.id)}catch(t){n.error({msg:`Failed to move measure ${e.id} from alternative`,payload:t})}else try{await t.moveMeasureToAlternative(e.id)}catch(t){n.error({msg:`Failed to move measure ${e.id} to alternative`,payload:t})}},Xv=e=>{const{items:t,handler:n,model:r,handlerQueue:o,logToSentry:i}=e;void 0!==n&&void 0!==r&&o&&o.add(async()=>{for(const e of t)await Yv(e,n,i)})},Jv=Og(),Zv=Og(),Qv=Og(),ey=Og(e=>e(Qv)?.translate??(e=>e)),ty=Og(e=>t=>e(Qv)?.getBooleanFlag(t,!1)??!1),ny=Og(""),ry=Og(e=>{const t=e(ny).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)});class oy{#e=[];#t=!1;#n=!1;#r;#o;#i;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#o=void 0,this.#i=void 0,this.#a=void 0}pause(){this.#o&&(clearTimeout(this.#a),this.#i?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#o=e,this.#i=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#i;var n;await(n=e,new Promise(e=>{setTimeout(e,n)})),t===this.#i&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#i?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#o)await this.#o;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const iy=Og(null),ay=Gv((e,t)=>{const n=e(Jv),r=e(Zv),o=new oy({onQueueCompleted:async()=>{if(!n||!r)return;const e=r.properties.qHyperCubeDef,t=Date.now();e.qDimensions.length&&Object.assign(e.qDimensions[0],{patchTimeStamp:t}),e.qMeasures.length&&Object.assign(e.qMeasures[0],{patchTimeStamp:t}),await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(iy,o);const i=()=>{o.pause()},a=()=>{o.continue(500)},s=()=>{o.abort()};return n?.Invalidated?.bind(i),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{o.abort(),n?.Invalidated?.unbind(i),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),sy=e=>e.qDef?.cId,ly=(e=[])=>new Set(e.map(sy).filter(e=>void 0!==e)),cy=({effectiveActive:e,effectiveExcluded:t,currentKnown:n})=>{const r=ly(n),o=ly([...e,...t]),i=new Set,a=n.filter(e=>{const t=sy(e);return!(!t||o.has(t)||i.has(t))&&(i.add(t),!0)}),s=t.flatMap((e,t)=>{const n=sy(e);return void 0===n||r.has(n)?[]:[t]});return{kept:t.filter((e,t)=>!s.includes(t)),missing:a,removedIndexes:s}},uy=(e,t)=>{if(!("qHyperCubeDef"in t))return e;const n=e.qHyperCubeDef,r=t.qHyperCubeDef,o=n.qLayoutExclude?.qHyperCubeDef,i=r.qLayoutExclude?.qHyperCubeDef,a=cy({effectiveActive:n.qDimensions??[],effectiveExcluded:o?.qDimensions??[],currentKnown:[...r.qDimensions??[],...i?.qDimensions??[]]}),s=cy({effectiveActive:n.qMeasures??[],effectiveExcluded:o?.qMeasures??[],currentKnown:[...r.qMeasures??[],...i?.qMeasures??[]]});if(![a,s].some(({missing:e,removedIndexes:t})=>e.length>0||t.length>0))return e;const l=[...a.kept,...a.missing],c=[...s.kept,...s.missing],u=((e,t)=>{if(!e)return;const n=new Set(t),r=Object.entries(e).filter(([e])=>n.has(e)).sort((e,t)=>e[1]-t[1]).map(([e])=>e),o=new Set(r),i=[...n].filter(e=>!o.has(e));return Object.fromEntries([...r,...i].map((e,t)=>[e,t]))})(n.qLayoutExclude?.allColumnOrder,[...ly(n.qDimensions??[]),...ly(n.qMeasures??[]),...ly(l),...ly(c)]);return{...e,qHyperCubeDef:{...n,qLayoutExclude:{...n.qLayoutExclude,...u&&{allColumnOrder:u},qHyperCubeDef:{...n.qLayoutExclude?.qHyperCubeDef,qDimensions:l,qMeasures:c}}}}},dy=e=>7005!==e.qError?.qErrorCode,py=new WeakMap,fy={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},hy=wv(Og(async e=>{const t=e(Jv),n=e(db);if(t){if(py.has(t))return py.get(t);try{const e=await t.app.createSessionObject(fy);return py.set(t,e),e}catch(e){return void n.error({msg:"Error creating alternative layout model",payload:e})}}})),my=Og(null),gy=Og(),by=Gv((e,t)=>{const n=e(Jv),r=e(hy),o=e(db),i=e(ty),a=e(Zv);let s=0,l=!1;if(!n||!r)return;const c=async()=>{s++;try{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=structuredClone(await n.getEffectiveProperties()),s=i("VNA-760-show-added-columns-exploration")?uy(o,await n.getProperties()):o;await r.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(s.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qDimensions??[])},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(s.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qMeasures??[])}]);const l=await r.getLayout();s!==o&&a?.setProperties(structuredClone(s)),t(gy,{layout:structuredClone(e),properties:s,altLayout:structuredClone(l)}),t(my,null)}catch(e){o.error({msg:"Failed to synchronize table layout",payload:e})}finally{s--,0===s&&l&&(l=!1,u())}},u=async()=>{if(s>0)return void(l=!0);const e=await r.getLayout();t(gy,t=>({...t,altLayout:structuredClone(e)}))};return c(),n.Invalidated.bind(c),r.Invalidated.bind(u),()=>{n.Invalidated.unbind(c),r.Invalidated.unbind(u)}}),vy=Og(e=>e(gy)?.layout),yy=Og(e=>e(gy)?.altLayout),xy=Og(e=>e(gy)?.properties),Sy=Og(e=>void 0===e(vy)||void 0===e(xy)),wy=Og(e=>{const t=e(gy)?.layout;return t?.qHyperCube.qDimensionInfo.filter(dy)??[]}),Cy=Og(e=>{const t=e(gy)?.layout;return t?.qHyperCube.qMeasureInfo.filter(dy)??[]}),Ey=Og(e=>{const t=[...e(wy),...e(Cy)].map(e=>e.cId);return new Set(t)}),Iy=Og(new Set),Ay=Og(new Set),Ry=Og(e=>{const t=e(Iy),n=e(Ay);return e(Ey).difference(n).union(t)}),Dy=Gv((e,t)=>{e(Ey),t(Iy,new Set),t(Ay,new Set)}),My=Og(e=>e(Ry),(e,t,n)=>{if("string"!=typeof n.id)return;const r=e(Ry).has(n.id),o=new Set(e(Ay)),i=new Set(e(Iy));r?(o.add(n.id),i.delete(n.id)):(i.add(n.id),o.delete(n.id)),t(Ay,o),t(Iy,i),Xv({items:[n],handler:e(Zv),model:e(Jv),handlerQueue:e(iy),logToSentry:e(db)})}),ky=({props:e,children:t})=>(Ev([[Jv,e.args.model],[Qv,e.args.apis],[Zv,e.args.handler]]),Gg(by),Gg(ay),Gg(Dy),t);function Ty(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function qy(e){return"write"in e}const Py="INTERNAL_getBuildingBlocksRev";var Ly;const Oy=Number(null==(Ly=Object.keys(qg).find(e=>e.startsWith(Py)))?void 0:Ly.slice(29));if(Number.isNaN(Oy))throw new Error("jotai-compat: unsupported jotai internals revision");const Ny=qg,jy=`INTERNAL_getBuildingBlocksRev${Oy}`,_y=Ny[`INTERNAL_buildStoreRev${Oy}`];const zy=[["atomStateMap","a"],["mountedMap","m"],["invalidatedAtoms","i"],["changedAtoms","c"],["mountCallbacks","q"],["unmountCallbacks","Q"],["storeHooks","h"],["atomRead","R"],["atomWrite","W"],["atomOnInit","I"],["atomOnMount","M"],["ensureAtomState","e"],["flushCallbacks","f"],["recomputeInvalidatedAtoms","C"],["readAtomState","r"],["invalidateDependents","d"],["writeAtomState","w"],["mountDependencies","D"],["mountAtom","t"],["unmountAtom","T"],["setAtomStateValueOrPromise","v"],["storeGet","g"],["storeSet","s"],["storeSub","b"],["enhanceBuildingBlocks","B"],["abortHandlersMap","p"],["registerAbortHandler","H"],["abortPromise","A"],["storeEpochHolder","E"]];if(Oy>=4)for(const[e,t]of zy)if(Ny[`INTERNAL_KEY_${e}`]!==t)throw new Error(`jotai-compat: KEY drift for ${e}`);const Fy={};zy.forEach(([e,t],n)=>{Fy[e]=Oy>=4?t:n});const{atomStateMap:$y,mountedMap:By,invalidatedAtoms:Hy,changedAtoms:Vy,mountCallbacks:Wy,unmountCallbacks:Uy,storeHooks:Gy,atomRead:Ky,atomWrite:Yy,atomOnInit:Xy,atomOnMount:Jy,ensureAtomState:Zy,flushCallbacks:Qy,recomputeInvalidatedAtoms:ex,readAtomState:tx,invalidateDependents:nx,writeAtomState:rx,mountDependencies:ox,mountAtom:ix,unmountAtom:ax,setAtomStateValueOrPromise:sx,storeGet:lx,storeSet:cx,storeSub:ux,enhanceBuildingBlocks:dx,abortHandlersMap:px,registerAbortHandler:fx,abortPromise:hx,storeEpochHolder:mx}=Fy,gx=Ny[jy],bx=new WeakMap,vx=new WeakMap,yx={},{read:xx,write:Sx}=Og(null);function wx(e,t,n){const[r,o,i,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=o.get(t);return r||(r=[Ax(e,t,n),n],o.set(t,r)),r}const l=n??yx;let c=i.get(l);c||(c=new WeakMap,i.set(l,c));let u=c.get(t);if(!u){const[r,o]=a?wx(a,t,n):[t];u=[t.read===xx?r:Ax(e,t,o),o],c.set(t,u)}return u}function Cx(e){for(const t of e[5])t()}function Ex(e,t,n,r,o){if(n.read===xx&&qy(n)&&qy(t)&&n.write!==Sx&&e!==r){const{write:i}=n;return t.write=Ix(e,n.write.bind(n),r,o),()=>{t.write=i}}}function Ix(e,t,n,r=n){return function(o,i,...a){return t(function(t){const[r]=wx(e,t,n);return o(r)},function(t,...o){const[a]=wx(e,t,n),s=Ex(e,a,t,n,r);try{return i(a,...o)}finally{null==s||s()}},...a)}}function Ax(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const o=Object.getPrototypeOf(t),i=Object.create(o,r);return i.read!==xx&&(i.read=function(e,t,n){return function(r,o){return t(function(t){const[o]=wx(e,t,n);return r(o)},o)}}(e,t.read.bind(t),n)),qy(i)&&qy(t)&&i.write!==Sx&&(i.write=Ix(e,t.write.bind(t),n)),i}function Rx({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const o=new WeakSet(e),i=vx.get(n),a=(null==i?void 0:i[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],c=s[5],u=function(e){const t=e[3],n=Dx((e=>{const t=gx(e);let n=bx.get(t);return n||(n=Array.isArray(t)?[]:{},zy.forEach(([e,r],o)=>{const i={value:Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[o],enumerable:!0};Object.defineProperty(n,o,i),Object.defineProperty(n,r,i)}),bx.set(t,n)),n})(t)),r=n,o=r[Fy.storeGet],i=r[Fy.storeSet],a=r[Fy.storeSub],s={};let l,c;return r[Fy.storeGet]=m(o),r[Fy.storeSet]=f,r[Fy.storeSub]=m(a),n[Fy.enhanceBuildingBlocks]=function(e){return l??(l=g(e[Fy.atomStateMap],u)),c??(c=Object.assign(Dx(e),{...e,[Fy.atomStateMap]:l,[Fy.mountedMap]:g(e[Fy.mountedMap],d),[Fy.invalidatedAtoms]:g(e[Fy.invalidatedAtoms]),[Fy.changedAtoms]:b(e[Fy.changedAtoms]),[Fy.mountCallbacks]:e[Fy.mountCallbacks],[Fy.unmountCallbacks]:e[Fy.unmountCallbacks],[Fy.storeHooks]:y(e[Fy.storeHooks]),[Fy.atomRead]:m(e[Fy.atomRead]),[Fy.atomWrite]:m(e[Fy.atomWrite]),[Fy.atomOnInit]:m(e[Fy.atomOnInit]),[Fy.atomOnMount]:m(e[Fy.atomOnMount]),[Fy.ensureAtomState]:p(l,e[Fy.ensureAtomState]),[Fy.flushCallbacks]:(t,...r)=>e[Fy.flushCallbacks](n,...r),[Fy.recomputeInvalidatedAtoms]:(t,...r)=>e[Fy.recomputeInvalidatedAtoms](n,...r),[Fy.readAtomState]:m(e[Fy.readAtomState]),[Fy.invalidateDependents]:m(e[Fy.invalidateDependents]),[Fy.writeAtomState]:m(e[Fy.writeAtomState]),[Fy.mountDependencies]:m(e[Fy.mountDependencies]),[Fy.mountAtom]:m(e[Fy.mountAtom]),[Fy.unmountAtom]:m(e[Fy.unmountAtom]),[sx]:m(e[sx]),[Fy.storeGet]:m(e[Fy.storeGet]),[Fy.storeSet]:m(e[Fy.storeSet]),[Fy.storeSub]:m(e[Fy.storeSub]),[Fy.enhanceBuildingBlocks]:()=>e})),c},function(e){if(Oy<4){const t=e?Object.values(e):[];return _y(...t)}const t=Array.isArray(e)?Object.fromEntries(zy.map(([t,n],r)=>[n,e[r]])):e;return _y(t)}(n);function u(t){const n=new WeakMap;return function(r){let o=n.get(r);if(o)return o;const i=t(r);if(!i)return;let a,s;return o=new Proxy(i,{get:(t,n)=>"d"===n?a??(a=g(i.d,function(t){return n=>t(wx(e,n)[0])})):"p"===n?s??(s=b(i.p)):Reflect.get(i,n)}),n.set(r,o),o}}function d(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const o=e(n);return o?(r={...o,d:b(o.d),t:b(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(n,r),r):void 0}}function p(e,t){const n=m(t);return function(t,r,o){const i=e.get(o);if(i)return i;const a=n(t,r,o);return e.set(o,a),e.get(o)}}function f(t,n,r,...o){const[a,s]=wx(e,r),l=Ex(e,a,r,s,e);try{return i(t,n,a,...o)}finally{null==l||l()}}function h(t,n){return function(r,...o){const[i]=wx(e,r);return(n?n(t):t)(i,...o)}}function m(t){return function(r,o,i,...a){const[s]=wx(e,i);return t(n,o,s,...a)}}function g(e,t){const n={get:h(e.get.bind(e),t),set:h(e.set.bind(e)),has:h(e.has.bind(e)),delete:h(e.delete.bind(e))};if("function"==typeof e.keys){const t=e,r=n;r.keys=t.keys.bind(t),r[Symbol.iterator]=t[Symbol.iterator].bind(t),Object.defineProperty(n,"size",{enumerable:!1,configurable:!0,get:()=>t.size})}return n}function b(t){return{get size(){return t.size},add:h(t.add.bind(t)),has:h(t.has.bind(t)),delete:h(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(h(e)),*[Symbol.iterator](){for(const n of t)yield wx(e,n)[0]}}}function v(t){if(!t)return;const n=h(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[o]=wx(e,n);return t.add(o,r)},n}function y(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>s[t]??(s[t]=v(e[t])),set(n){delete s[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=u,Object.assign(u,{name:r}),vx.set(u,s);for(const t of new Set(e))l.set(t,[Ax(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[Ax(s,n,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!o.has(t)&&l.delete(t):l.set(t,[Ax(s,t,s),s])});c.add(t)}return u}function Dx(e){return Array.isArray(e)?[...e]:{...e}}const Mx=function(e,t){return function(n){const{atoms:r=[],atomFamilies:o=[],children:i,scope:a,name:s}=n,l=t(),c=Array.from(r,e=>Array.isArray(e)?e[0]:e);function u(){return[a??Rx({atoms:c,atomFamilies:o,parentStore:l,name:s}),function(e){return l!==e.parentStore||!Ty(c,e.atoms)||!Ty(o,e.atomFamilies)||a!==e.providedScope}]}const[[d,p],f]=M(u);if(p({atoms:c,atomFamilies:o,parentStore:l,providedScope:a})){const e=vx.get(d);e&&Cx(e),f(u)}return Ev(Array.from(r).filter(Array.isArray),{store:d}),P(()=>{const e=vx.get(d);return()=>{e&&Cx(e)}},[d]),C(e,{store:d,children:i})}}($g,Fg);var kx=Object.defineProperty,Tx=Object.defineProperties,qx=Object.getOwnPropertyDescriptors,Px=Object.getOwnPropertySymbols,Lx=Object.prototype.hasOwnProperty,Ox=Object.prototype.propertyIsEnumerable,Nx=(e,t,n)=>t in e?kx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jx=(e,t)=>{for(var n in t||(t={}))Lx.call(t,n)&&Nx(e,n,t[n]);if(Px)for(var n of Px(t))Ox.call(t,n)&&Nx(e,n,t[n]);return e},_x=(e,t)=>Tx(e,qx(t));function zx(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function Fx(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function $x(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function Bx(e,t){return function(e,t,n){var r,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,i.id)),o=e.findIndex(e=>l(e,a.id));if(-1===r||-1===o){if($x(i)){const r=i.initialIndex,o=i.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!s&&"index"in i&&"number"==typeof i.index){const t=i.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const c=Object.entries(e);let u,d,p=-1,f=-1;for(const[e,t]of c)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(u=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(-1===p&&$x(i)){const r=null==i.initialGroup?void 0:Fx(e,i.initialGroup),o=i.initialIndex,a=null==i.group?void 0:Fx(e,i.group),s=i.index;if(null==r||null==a)return"preventDefault"in t&&t.preventDefault(),e;if(r===a&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===a)return _x(jx({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return _x(jx({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[a]:[...e[a].slice(0,s),l,...e[a].slice(s)]})}if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(r=h.shape)?void 0:r.current.center)?o:h.position.current;if(null==d){const t=Fx(e,a.id);null!=t&&(d=t,f=a.shape&&m.y>a.shape.center.y?e[t].length:0)}if(null==u||null==d||u===d&&p===f){if(null!=u&&u===d&&p===f&&$x(i)){const t=null==i.group?void 0:Fx(e,i.group),r=null!=i.group&&t!==u,o=i.index!==p;if(r||o){const r=null==i.group?u:t;if(null!=r){if(u===r)return _x(jx({},e),{[u]:n(e[u],p,i.index)});const t=e[u][p];return _x(jx({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[r]:[...e[r].slice(0,i.index),t,...e[r].slice(i.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(u===d)return _x(jx({},e),{[u]:n(e[u],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[u][p];return _x(jx({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,zx)}function Hx(e,t){let n=null;const r=new Map,o=new Set;function i(o){let s;if(void 0===t)s=r.get(o);else for(const[e,n]of r)if(t(e,o)){s=n;break}if(void 0!==s){if(!n?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return r.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,n){for(const r of o)r({type:e,param:t,atom:n})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>r.keys(),i.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[o]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,o);break}},i.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,o]]of r)n(o,e)&&(r.delete(e),a("REMOVE",e,t))},i}const Vx=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,Wx=Og(),Ux=Og(e=>e(Wx)?.numberOfSections??0),Gx=Og(e=>e(Wx)?.numberOfItemsInSection??[]),Kx=Og(e=>e(Wx)?.keyExtractor??Vx),Yx=Og(e=>e(Wx)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),Xx=Og(e=>e(Wx)?.onDragEnd),Jx=Og(e=>e(Wx)?.onDragOver),Zx=Og(e=>e(Wx)?.itemRenderer),Qx=Og(e=>e(Wx)?.headerRenderer),eS=Og(e=>e(Wx)?.dragOverlayRenderer),tS=Og(e=>e(Wx)?.onClick),nS=Og(e=>{const t=e(Ux),n=e(Gx),r=e(Kx),o={};for(let e=0;e<t;e++)o[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return o}),rS=Og(null),oS=Og(e=>e(rS),(e,t,n)=>{if(null===n)return void t(rS,null);const r=e(rS);t(rS,{...r,...n})}),iS=Hx(e=>Og(null,(t,n,r)=>{let o;"over"===e?o=t(Jx):"end"===e&&(o=t(Xx),n(oS,null));const{source:i,target:a}=r.operation;if("start"===e)return void n(oS,{id:i.id,startSection:i.data.sectionKey,startIndex:i.data.itemIndex,startSectionIndex:i.data.sectionIndex});if(null===a)return void n(oS,{toIndex:void 0,toSectionIndex:void 0});const s=i.data.sectionIndex!==a.data.sectionIndex;let l;if(s){const e=Bx(t(nS),r)[a.data.sectionIndex].indexOf(i.id);l=-1!==e?e:a.sortable?.index??0}else l=a.sortable?.index??0;if("over"===e){const e=t(oS)?.startIndex;n(oS,{toIndex:!s&&void 0!==e&&l>e?l+1:l,toSectionIndex:a.data.sectionIndex})}o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t(oS)?.startSection??i.data.sectionKey,event:r})})),aS=[Wx,Ux,Gx,Kx,Yx,Xx,Zx,Qx,tS,oS],sS=[iS],lS=({props:e,children:t})=>{const n=Kg(Wx);return j(()=>{n(e)},[e,n]),t};var cS=Symbol.for("preact-signals");function uS(){if(gS>1)gS--;else{var e,t=!1;for(!function(){var e=xS;for(xS=void 0;void 0!==e;){var t=e.S;if(t.v===e.v)for(var n=t.t;void 0!==n;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}}();void 0!==mS;){var n=mS;for(mS=void 0,bS++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&IS(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(bS=0,gS--,t)throw e}}function dS(e){if(gS>0)return e();yS=++vS,gS++;try{return e()}finally{uS()}}var pS,fS=void 0;function hS(e){var t=fS,n=pS;fS=void 0,pS=void 0;try{return e()}finally{fS=t,pS=n}}var mS=void 0,gS=0,bS=0,vS=0,yS=0,xS=void 0,SS=0;function wS(e){if(void 0!==fS){var t=e.n;if(void 0===t||t.t!==fS)return t={i:0,S:e,p:fS.s,n:void 0,t:fS,e:void 0,x:void 0,r:t},void 0!==fS.s&&(fS.s.n=t),fS.s=t,e.n=t,32&fS.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=fS.s,t.n=void 0,fS.s.n=t,fS.s=t),t}}function CS(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function ES(e,t){return new CS(e,t)}function IS(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function AS(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function RS(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function DS(e,t){CS.call(this,void 0,t),this.x=e,this.s=void 0,this.g=SS-1,this.f=4}function MS(e,t){return new DS(e,t)}function kS(e){var t=e.m;if(e.m=void 0,"function"==typeof t){gS++;var n=fS;fS=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,TS(e),t}finally{fS=n,uS()}}}function TS(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,kS(e)}function qS(e){if(fS!==this)throw new Error("Out-of-order effect");RS(this),fS=e,this.f&=-2,8&this.f&&TS(this),uS()}function PS(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,pS&&pS.push(this)}function LS(e,t){var n=new PS(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}CS.prototype.brand=cS,CS.prototype.h=function(){return!0},CS.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:hS(function(){var e;null==(e=t.W)||e.call(t)}))},CS.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&hS(function(){var e;null==(e=t.Z)||e.call(t)}))}},CS.prototype.subscribe=function(e){var t=this;return LS(function(){var n=t.value;hS(function(){return e(n)})},{name:"sub"})},CS.prototype.valueOf=function(){return this.value},CS.prototype.toString=function(){return this.value+""},CS.prototype.toJSON=function(){return this.value},CS.prototype.peek=function(){var e=this;return hS(function(){return e.value})},Object.defineProperty(CS.prototype,"value",{get:function(){var e=wS(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(bS>100)throw new Error("Cycle detected");!function(e){0!==gS&&0===bS&&e.l!==yS&&(e.l=yS,xS={S:e,v:e.v,i:e.i,o:xS})}(this),this.v=e,this.i++,SS++,gS++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{uS()}}}}),DS.prototype=new CS,DS.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===SS)return!0;if(this.g=SS,this.f|=1,this.i>0&&!IS(this))return this.f&=-2,!0;var e=fS;try{AS(this),fS=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return fS=e,RS(this),this.f&=-2,!0},DS.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}CS.prototype.S.call(this,e)},DS.prototype.U=function(e){if(void 0!==this.t&&(CS.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},DS.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(DS.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=wS(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),PS.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},PS.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,kS(this),AS(this),gS++;var e=fS;return fS=this,qS.bind(this,e)},PS.prototype.N=function(){2&this.f||(this.f|=2,this.u=mS,mS=this)},PS.prototype.d=function(){this.f|=8,1&this.f||TS(this)},PS.prototype.dispose=function(){this.d()};var OS,NS,jS,_S,zS,FS,$S,BS,HS,VS,WS,US,GS,KS,YS,XS,JS,ZS,QS,ew,tw=Object.create,nw=Object.defineProperty,rw=Object.defineProperties,ow=Object.getOwnPropertyDescriptor,iw=Object.getOwnPropertyDescriptors,aw=Object.getOwnPropertySymbols,sw=Object.prototype.hasOwnProperty,lw=Object.prototype.propertyIsEnumerable,cw=e=>{throw TypeError(e)},uw=(e,t,n)=>t in e?nw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dw=(e,t)=>nw(e,"name",{value:t,configurable:!0}),pw=["class","method","getter","setter","accessor","field","value","get","set"],fw=e=>void 0!==e&&"function"!=typeof e?cw("Function expected"):e,hw=(e,t,n,r,o)=>({kind:pw[e],name:t,metadata:r,addInitializer:e=>n._?cw("Already initialized"):o.push(fw(e||null))}),mw=(e,t)=>{return uw(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},gw=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},bw=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=pw[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&ow(d<4?o:{get[n](){return xw(this,i)},set[n](e){return ww(this,i,e)}},n));d?f&&d<4&&dw(i,(d>2?"set ":d>1?"get ":"")+n):dw(o,n);for(var y=r.length-1;y>=0;y--)c=hw(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>yw(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?xw:Cw)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>ww(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?fw(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?cw("Object expected"):(fw(a=s.get)&&(v.get=a),fw(a=s.set)&&(v.set=a),fw(a=s.init)&&g.unshift(a));return d||mw(e,o),v&&nw(o,n,v),f?4^d?i:v:o},vw=(e,t,n)=>t.has(e)||cw("Cannot "+n),yw=(e,t)=>Object(t)!==t?cw('Cannot use the "in" operator on this value'):e.has(t),xw=(e,t,n)=>(vw(e,t,"read from private field"),n?n.call(e):t.get(e)),Sw=(e,t,n)=>t.has(e)?cw("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ww=(e,t,n,r)=>(vw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Cw=(e,t,n)=>(vw(e,t,"access private method"),n);function Ew(e,t){if(t){let n;return MS(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return MS(e)}function Iw(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!Iw(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return!n.some(n=>!Iw(e[n],t[n]))}return!1}function Aw({get:e},t){return{init:e=>ES(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function Rw(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=Ew(e.bind(this)),n.set(this,t)),t.value}}function Dw(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>rw(e,iw(t)))(((e,t)=>{for(var n in t||(t={}))sw.call(t,n)&&uw(e,n,t[n]);if(aw)for(var n of aw(t))lw.call(t,n)&&uw(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function Mw(...e){const t=e.map(e=>LS(e));return()=>t.forEach(e=>e())}FS=[Aw],zS=[Aw],_S=[Aw],jS=[Dw()],NS=[Dw()],OS=[Dw()];var kw,Tw=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,gw($S,5,this),Sw(this,US),Sw(this,BS,gw($S,8,this)),gw($S,11,this),Sw(this,GS,gw($S,12,this)),gw($S,15,this),Sw(this,JS,gw($S,16,this)),gw($S,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return xw(this,US,QS)}get initial(){return xw(this,US,VS)}get previous(){return xw(this,US,YS)}set current(e){const t=hS(()=>xw(this,US,QS));e&&t&&this.equals(t,e)||dS(()=>{xw(this,US,VS)||ww(this,US,e,WS),ww(this,US,t,XS),ww(this,US,e,ew)})}reset(e=this.defaultValue){dS(()=>{ww(this,US,void 0,XS),ww(this,US,e,WS),ww(this,US,e,ew)})}};function qw(e){return hS(()=>{const t={};for(const n in e)t[n]=e[n];return t})}$S=[,,,tw(null)],BS=new WeakMap,US=new WeakSet,GS=new WeakMap,JS=new WeakMap,HS=bw($S,20,"#initial",FS,US,BS),VS=HS.get,WS=HS.set,KS=bw($S,20,"#previous",zS,US,GS),YS=KS.get,XS=KS.set,ZS=bw($S,20,"#current",_S,US,JS),QS=ZS.get,ew=ZS.set,bw($S,2,"current",jS,Tw),bw($S,2,"initial",NS,Tw),bw($S,2,"previous",OS,Tw),mw($S,Tw);kw=new WeakMap;var Pw,Lw,Ow,Nw,jw,_w=Object.create,zw=Object.defineProperty,Fw=Object.getOwnPropertyDescriptor,$w=Object.getOwnPropertySymbols,Bw=Object.prototype.hasOwnProperty,Hw=Object.prototype.propertyIsEnumerable,Vw=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ww=e=>{throw TypeError(e)},Uw=Math.pow,Gw=(e,t,n)=>t in e?zw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kw=["class","method","getter","setter","accessor","field","value","get","set"],Yw=e=>void 0!==e&&"function"!=typeof e?Ww("Function expected"):e,Xw=(e,t,n,r,o)=>({kind:Kw[e],name:t,metadata:r,addInitializer:e=>n._?Ww("Already initialized"):o.push(Yw(e||null))}),Jw=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=Kw[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Fw(o,n)),h=r.length-1;h>=0;h--)(l=Xw(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,Yw(a)&&(f[d]=a);return f&&zw(o,n,f),o},Zw=(e,t,n)=>t.has(e)||Ww("Cannot "+n),Qw=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},eC=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,r+n,i,a);return l.scale=((e,t)=>{for(var n in t||(t={}))Bw.call(t,n)&&Gw(e,n,t[n]);if($w)for(var n of $w(t))Hw.call(t,n)&&Gw(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:o,bottom:i}=this;return{width:e,height:t,left:n,top:r,right:o,bottom:i}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new Qw((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:o,height:i}=this;return n===t.left&&r===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:o}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:o}){return new e(n,t,r,o)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==r?o:"end"==r?o+i:o+i/2};return Qw.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var tC,nC=class extends(Ow=Tw,Lw=[Rw],Pw=[Rw],Ow){constructor(e){var t,n,r;super(Qw.from(e),(e,t)=>Qw.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(jw,5,this),t=this,r=0,(n=Nw).has(t)?Ww("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return Qw.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=Qw.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(Zw(a=this,s=Nw,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);dS(()=>{((e,t,n)=>{Zw(e,t,"write to private field"),t.set(e,n)})(this,Nw,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(Qw.from(e)),this.velocity={x:0,y:0}}};function rC({x:e,y:t},n){const r=Math.abs(e),o=Math.abs(t);return"number"==typeof n?Math.sqrt(Uw(r,2)+Uw(o,2))>n:"x"in n&&"y"in n?r>n.x&&o>n.y:"x"in n?r>n.x:"y"in n&&o>n.y}jw=(e=>{var t;return[,,,_w(null!=(t=null==e?void 0:e[Vw("metadata")])?t:null)]})(Ow),Nw=new WeakMap,Jw(jw,2,"delta",Lw,nC),Jw(jw,2,"direction",Pw,nC),tC=jw,Gw(nC,Vw("metadata"),tC[3]);var oC,iC,aC,sC,lC=(e=>(e.Horizontal="x",e.Vertical="y",e))(lC||{}),cC=Object.values(lC),uC=Object.create,dC=Object.defineProperty,pC=Object.defineProperties,fC=Object.getOwnPropertyDescriptor,hC=Object.getOwnPropertyDescriptors,mC=Object.getOwnPropertySymbols,gC=Object.prototype.hasOwnProperty,bC=Object.prototype.propertyIsEnumerable,vC=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),yC=e=>{throw TypeError(e)},xC=(e,t,n)=>t in e?dC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SC=(e,t)=>{for(var n in t||(t={}))gC.call(t,n)&&xC(e,n,t[n]);if(mC)for(var n of mC(t))bC.call(t,n)&&xC(e,n,t[n]);return e},wC=(e,t)=>pC(e,hC(t)),CC=(e,t)=>dC(e,"name",{value:t,configurable:!0}),EC=(e,t)=>{var n={};for(var r in e)gC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&mC)for(var r of mC(e))t.indexOf(r)<0&&bC.call(e,r)&&(n[r]=e[r]);return n},IC=e=>{var t;return[,,,uC(null!=(t=null==e?void 0:e[vC("metadata")])?t:null)]},AC=["class","method","getter","setter","accessor","field","value","get","set"],RC=e=>void 0!==e&&"function"!=typeof e?yC("Function expected"):e,DC=(e,t,n,r,o)=>({kind:AC[e],name:t,metadata:r,addInitializer:e=>n._?yC("Already initialized"):o.push(RC(e||null))}),MC=(e,t)=>xC(t,vC("metadata"),e[3]),kC=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},TC=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=AC[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&fC(d<4?o:{get[n](){return LC(this,i)},set[n](e){return NC(this,i,e)}},n));d?f&&d<4&&CC(i,(d>2?"set ":d>1?"get ":"")+n):CC(o,n);for(var y=r.length-1;y>=0;y--)c=DC(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>PC(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?LC:jC)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>NC(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?RC(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?yC("Object expected"):(RC(a=s.get)&&(v.get=a),RC(a=s.set)&&(v.set=a),RC(a=s.init)&&g.unshift(a));return d||MC(e,o),v&&dC(o,n,v),f?4^d?i:v:o},qC=(e,t,n)=>t.has(e)||yC("Cannot "+n),PC=(e,t)=>Object(t)!==t?yC('Cannot use the "in" operator on this value'):e.has(t),LC=(e,t,n)=>(qC(e,t,"read from private field"),n?n.call(e):t.get(e)),OC=(e,t,n)=>t.has(e)?yC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),NC=(e,t,n,r)=>(qC(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),jC=(e,t,n)=>(qC(e,t,"access private method"),n);function _C(e,t){return{plugin:e,options:t}}function zC(e){return t=>_C(e,t)}function FC(e){return"function"==typeof e?{plugin:e,options:void 0}:e}oC=[Aw];var $C=class{constructor(e,t){this.manager=e,this.options=t,OC(this,aC,kC(iC,8,this,!1)),kC(iC,11,this),OC(this,sC,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return hS(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=LS(e.bind(this));return LC(this,sC).add(t),t}destroy(){LC(this,sC).forEach(e=>e())}static configure(e){return _C(this,e)}};iC=IC(null),aC=new WeakMap,sC=new WeakMap,TC(iC,4,"disabled",oC,$C,aC),MC(iC,$C);var BC,HC=class extends $C{},VC=class{constructor(e){this.manager=e,this.instances=new Map,OC(this,BC,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(FC).reduce((e,t)=>{const n=e.find(({plugin:e})=>e===t.plugin);return n?(n.options=t.options,e):[...e,t]},[]),n=t.map(({plugin:e})=>e);for(const e of LC(this,BC))if(!n.includes(e)){if(e.prototype instanceof HC)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);NC(this,BC,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function WC(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}BC=new WeakMap;var UC,GC,KC,YC,XC,JC,ZC,QC,eE,tE,nE,rE,oE=[],iE=class extends $C{constructor(e){super(e),OC(this,UC),OC(this,GC),this.computeCollisions=this.computeCollisions.bind(this),NC(this,GC,ES(oE)),this.destroy=Mw(()=>{const e=this.computeCollisions(),t=hS(()=>this.manager.dragOperation.position.current);if(e!==oE){const e=LC(this,UC);if(NC(this,UC,t),e&&t.x==e.x&&t.y==e.y)return}else NC(this,UC,void 0);LC(this,GC).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){hS(()=>{e?LC(this,GC).value=this.computeCollisions():NC(this,UC,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:o,shape:i,status:a}=r;if(!a.initialized||!i)return oE;const s=[],l=[];for(const i of null!=e?e:n.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const n=hS(()=>e({droppable:i,dragOperation:r}));n&&(null!=i.collisionPriority&&(n.priority=i.collisionPriority),s.push(n))}return 0===l.length?oE:(s.sort(WC),s)}get collisions(){return LC(this,GC).value}};UC=new WeakMap,GC=new WeakMap,XC=[Aw],YC=[Aw],KC=[Aw];var aE=class e{constructor(e,t){OC(this,eE,kC(QC,8,this)),kC(QC,11,this),OC(this,tE),OC(this,nE,kC(QC,12,this)),kC(QC,15,this),OC(this,rE,kC(QC,16,this)),kC(QC,19,this);const{effects:n,id:r,data:o={},disabled:i=!1,register:a=!0}=e;let s=r;NC(this,tE,ES(r)),this.manager=t,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return s=e,null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==n?void 0:n())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=LC(this,tE).value;return null!=(n=null==(t=e.pendingIdChanges)?void 0:t.get(this))?n:r}set id(t){var n,r;t!==(null!=(r=null==(n=e.pendingIdChanges)?void 0:n.get(this))?r:LC(this,tE).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return jC(t=e,JC,ZC).call(t)})),e.pendingIdChanges.set(this,t))}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};QC=IC(null),JC=new WeakSet,ZC=function(){const e=aE.pendingIdChanges;aE.pendingIdChanges=null,e&&dS(()=>{for(const[t,n]of e)LC(t,tE).value=n})},eE=new WeakMap,tE=new WeakMap,nE=new WeakMap,rE=new WeakMap,TC(QC,4,"manager",XC,aE,eE),TC(QC,4,"data",YC,aE,nE),TC(QC,4,"disabled",KC,aE,rE),OC(aE,JC),MC(QC,aE),aE.pendingIdChanges=null;var sE,lE,cE,uE,dE,pE,fE,hE,mE,gE,bE,vE,yE,xE,SE,wE,CE,EE,IE,AE,RE,DE,ME,kE,TE=aE,qE=class{constructor(){this.map=ES(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),o=()=>this.unregister(e,t);if(r===t)return o;if(r&&r.id===e){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const i=new Map(n);for(const[r,o]of n)if(o===t&&r!==e){i.delete(r);break}i.set(e,t),this.map.value=i;const a=Mw(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const o=new Map(n);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},PE=class extends(fE=TE,pE=[Aw],dE=[Aw],uE=[Aw],cE=[Rw],lE=[Rw],sE=[Rw],fE){constructor(e,t){var n=e,{modifiers:r,type:o,sensors:i,plugins:a,effects:s}=n,l=EC(n,["modifiers","type","sensors","plugins","effects"]);super(wC(SC({},l),{effects:()=>{var e;return[...null!=(e=null==s?void 0:s())?e:[],()=>{const{manager:e,plugins:t}=this;if(e&&t)for(const n of t){const{plugin:t}=FC(n);e.registry.plugins.register(t)}}]}}),t),kC(hE,5,this),OC(this,mE,kC(hE,8,this)),kC(hE,11,this),OC(this,gE,kC(hE,12,this)),kC(hE,15,this),OC(this,bE,kC(hE,16,this,this.isDragSource?"dragging":"idle")),kC(hE,19,this),this.type=o,this.sensors=i,this.modifiers=r,this.alignment=l.alignment,this.plugins=a}pluginConfig(e){if(this.plugins)for(const t of this.plugins){const n=FC(t);if(n.plugin===e)return n.options}}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};hE=IC(fE),mE=new WeakMap,gE=new WeakMap,bE=new WeakMap,TC(hE,4,"type",pE,PE,mE),TC(hE,4,"modifiers",dE,PE,gE),TC(hE,4,"status",uE,PE,bE),TC(hE,2,"isDropping",cE,PE),TC(hE,2,"isDragging",lE,PE),TC(hE,2,"isDragSource",sE,PE),MC(hE,PE);var LE=class extends(EE=TE,CE=[Aw],wE=[Aw],SE=[Aw],xE=[Aw],yE=[Aw],vE=[Rw],EE){constructor(e,t){var n=e,{accept:r,collisionDetector:o,collisionPriority:i,type:a}=n;super(EC(n,["accept","collisionDetector","collisionPriority","type"]),t),kC(IE,5,this),OC(this,AE,kC(IE,8,this)),kC(IE,11,this),OC(this,RE,kC(IE,12,this)),kC(IE,15,this),OC(this,DE,kC(IE,16,this)),kC(IE,19,this),OC(this,ME,kC(IE,20,this)),kC(IE,23,this),OC(this,kE,kC(IE,24,this)),kC(IE,27,this),this.accept=r,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};IE=IC(EE),AE=new WeakMap,RE=new WeakMap,DE=new WeakMap,ME=new WeakMap,kE=new WeakMap,TC(IE,4,"accept",CE,LE,AE),TC(IE,4,"type",wE,LE,RE),TC(IE,4,"collisionDetector",SE,LE,DE),TC(IE,4,"collisionPriority",xE,LE,ME),TC(IE,4,"shape",yE,LE,kE),TC(IE,2,"isDropTarget",vE,LE),MC(IE,LE);var OE=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},NE=class extends OE{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function jE(e,t=!0){let n=!1;return wC(SC({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var _E,zE,FE,$E,BE,HE,VE,WE,UE,GE,KE=class extends HC{constructor(e){super(e);let t=[];this.destroy=Mw(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:o}=n;if(n.isDisabled())return;if(TE.pendingIdChanges)return;const i=jE({collisions:o});if(r.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;hS(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},YE=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(YE||{}),XE=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(XE||{});WE=[Aw],VE=[Rw],HE=[Rw],BE=[Rw],$E=[Rw],FE=[Rw],zE=[Rw],_E=[Rw];var JE=class{constructor(){kC(UE,5,this),OC(this,GE,kC(UE,8,this,"idle")),kC(UE,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializationPending(){return"initialization-pending"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};UE=IC(null),GE=new WeakMap,TC(UE,4,"value",WE,JE,GE),TC(UE,2,"current",VE,JE),TC(UE,2,"idle",HE,JE),TC(UE,2,"initializationPending",BE,JE),TC(UE,2,"initializing",$E,JE),TC(UE,2,"initialized",FE,JE),TC(UE,2,"dragging",zE,JE),TC(UE,2,"dropped",_E,JE),MC(UE,JE);var ZE,QE=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return hS(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=jE({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return hS(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const n=new AbortController,{event:r,coordinates:o}=e;dS(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(o)});const i=jE({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&dS(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1})})}),n)})}move(e){return hS(()=>{var t,n;const{dragOperation:r}=this.manager,{status:o,controller:i}=r;if(!o.dragging||!i||i.signal.aborted)return;const a=jE({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};r.position.current=l})})}stop(e={}){return hS(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:o}=r;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=hS(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===o&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=LS(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),i?i.then(a).catch(()=>r.reset()):a()})}},eI=class extends $C{constructor(e,t){super(e,t),this.manager=e,this.options=t}},tI=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},nI=class{constructor(e){this.options=e,OC(this,ZE)}set controller(e){NC(this,ZE,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=LC(this,ZE))||t.activate(e)}};ZE=new WeakMap;var rI,oI,iI,aI,sI,lI,cI,uI,dI,pI,fI,hI,mI,gI,bI,vI,yI,xI,SI,wI=class extends $C{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},CI=class{constructor(e){this.draggables=new qE,this.droppables=new qE,this.plugins=new VC(e),this.sensors=new VC(e),this.modifiers=new VC(e)}register(e,t){if(e instanceof PE)return this.draggables.register(e.id,e);if(e instanceof LE)return this.droppables.register(e.id,e);if(e.prototype instanceof wI)return this.modifiers.register(e,t);if(e.prototype instanceof eI)return this.sensors.register(e,t);if(e.prototype instanceof $C)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof TE)return e instanceof PE?this.draggables.unregister(e.id,e):e instanceof LE?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof wI)return this.modifiers.unregister(e);if(e.prototype instanceof eI)return this.sensors.unregister(e);if(e.prototype instanceof $C)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};dI=[Rw],uI=[Aw],cI=[Aw],lI=[Aw],sI=[Aw],aI=[Aw],iI=[Rw],oI=[Rw],rI=[Rw];var EI=class{constructor(e){kC(mI,5,this),OC(this,pI),OC(this,fI),OC(this,hI,new Tw(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new JE,OC(this,gI,kC(mI,8,this,!1)),kC(mI,11,this),OC(this,bI,kC(mI,12,this,null)),kC(mI,15,this),OC(this,vI,kC(mI,16,this,null)),kC(mI,19,this),OC(this,yI,kC(mI,20,this,null)),kC(mI,23,this),OC(this,xI,kC(mI,24,this,[])),kC(mI,27,this),this.position=new nC({x:0,y:0}),OC(this,SI,{x:0,y:0}),NC(this,pI,e)}get shape(){const{current:e,initial:t,previous:n}=LC(this,hI);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?LC(this,hI).current=e:LC(this,hI).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=LC(this,pI).registry.draggables.get(t);return n&&NC(this,fI,n),null!=(e=null!=n?n:LC(this,fI))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=LC(this,pI).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(wC(SC({},this.snapshot()),{transform:n}));return NC(this,SI,n),n}snapshot(){return hS(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:LC(this,SI),shape:this.shape?qw(this.shape):null,position:qw(this.position),status:qw(this.status),canceled:this.canceled}))}reset(){dS(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,LC(this,hI).reset(),this.position.reset({x:0,y:0}),NC(this,SI,{x:0,y:0}),this.modifiers=[]})}};mI=IC(null),pI=new WeakMap,fI=new WeakMap,hI=new WeakMap,gI=new WeakMap,bI=new WeakMap,vI=new WeakMap,yI=new WeakMap,xI=new WeakMap,SI=new WeakMap,TC(mI,2,"shape",dI,EI),TC(mI,4,"canceled",uI,EI,gI),TC(mI,4,"activatorEvent",cI,EI,bI),TC(mI,4,"sourceIdentifier",lI,EI,vI),TC(mI,4,"targetIdentifier",sI,EI,yI),TC(mI,4,"modifiers",aI,EI,xI),TC(mI,2,"source",iI,EI),TC(mI,2,"target",oI,EI),TC(mI,2,"transform",rI,EI),MC(mI,EI);var II={get rendering(){return Promise.resolve()}};function AI(e,t){return"function"==typeof e?e(t):null!=e?e:t}var RI=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const n=null!=e?e:{},r=AI(n.plugins,[]),o=AI(n.sensors,[]),i=AI(n.modifiers,[]),a=null!=(t=n.renderer)?t:II,s=new NE(this),l=new CI(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new QE(this),this.dragOperation=new EI(this),this.collisionObserver=new iE(this),this.plugins=[KE,...r],this.modifiers=i,this.sensors=o;const{destroy:c}=this,u=Mw(()=>{var e,t,n;const r=hS(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of r)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=FC(e);return new t(this,n)}))?n:o});this.destroy=()=>{u(),c()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},DI=e=>{throw TypeError(e)},MI=(e,t,n)=>t.has(e)||DI("Cannot "+n),kI=(e,t,n)=>(MI(e,t,"read from private field"),t.get(e)),TI=(e,t,n)=>t.has(e)?DI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qI=(e,t,n,r)=>(MI(e,t,"write to private field"),t.set(e,n),n),PI=(e,t,n)=>(MI(e,t,"access private method"),n);function LI(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function OI(e,t){const n=e.getAnimations();let r=null;for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,o=(LI(n)?n.getKeyframes():[]).filter(t);o.length>0&&(r=[o[o.length-1],e])}return r}function NI(e){const{width:t,height:n,top:r,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:o,bottom:i,right:a}}function jI(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function _I(e){return"nodeType"in e}function zI(e){var t,n,r;return e?jI(e)?e:_I(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function FI(e){const{Document:t}=zI(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function $I(e){return!(!e||jI(e))&&(e instanceof zI(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function BI(e){return e instanceof zI(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function HI(e){return e?jI(e)?e.document:_I(e)?FI(e)?e:$I(e)||BI(e)?e.ownerDocument:document:document:document}function VI(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===o}function WI(e,t=e.getBoundingClientRect(),n=0){var r,o,i,a,s;let l=t;const{ownerDocument:c}=e,u=null!=(r=c.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==c.documentElement;){if(!VI(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),o=n*(e.bottom-e.top),i=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=u.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:u.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:u.innerHeight,b=n*g,v=n*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function UI(e){return{x:e.clientX,y:e.clientY}}var GI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function KI(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...KI(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const o=r.parent;o&&o.document&&o.document!==e&&n.push(...KI(o.document,t))}}catch(e){}return n}function YI(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function XI(){var e,t;const n=YI()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function JI(e){return!(!e||!_I(e))&&e instanceof zI(e).ShadowRoot}function ZI(e){if(e&&_I(e)){let t=e.getRootNode();if(JI(t))return t;if(t instanceof Document)return t}return HI(e)}function QI(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function eA(e){return"value"in e}function tA(e){return"CANVAS"===e.tagName}function nA(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:o,top:i}=r.getBoundingClientRect();return nA(e,{x:t-o,y:n-i})}}return r}var rA=new WeakMap;var oA=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],o=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:i}=t,a=[e,t];e.addEventListener(n,r,i),this.entries.add(a),o.push(a)}const i=this.entries;return function(){for(const e of o){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o),i.delete(e)}}}};function iA(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function aA(e,t){const n=()=>performance.now();let r,o;return function(...i){const a=this;o?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,i),o=n()},t-(n()-o))):(e.apply(a,i),o=n())}}var sA,lA="undefined"!=typeof ResizeObserver?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},cA=class extends lA{constructor(e){super(t=>{kI(this,sA)?e(t,this):qI(this,sA,!0)}),TI(this,sA,!1)}};sA=new WeakMap;var uA,dA,pA,fA,hA,mA,gA,bA,vA,yA,xA,SA=Array.from({length:100},(e,t)=>t/100),wA=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,TI(this,vA),this.disconnect=()=>{var e,t,n;qI(this,gA,!0),null==(e=kI(this,pA))||e.disconnect(),null==(t=kI(this,fA))||t.disconnect(),kI(this,hA).disconnect(),null==(n=kI(this,mA))||n.remove()},TI(this,uA,!0),TI(this,dA),TI(this,pA),TI(this,fA),TI(this,hA),TI(this,mA),TI(this,gA,!1),TI(this,bA,aA(()=>{var e,t,n;const{element:r}=this;if(null==(e=kI(this,fA))||e.disconnect(),kI(this,gA)||!kI(this,uA)||!r.isConnected)return;const o=null!=(t=r.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(n=o.defaultView)?n:window,s=r.getBoundingClientRect(),l=WI(r,s),{top:c,left:u,bottom:d,right:p}=l,f=-Math.floor(c),h=-Math.floor(u),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,qI(this,fA,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:eC.intersectionRatio(n,WI(r)))&&kI(this,bA).call(this)},{threshold:SA,rootMargin:m,root:o})),kI(this,fA).observe(r),PI(this,vA,yA).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),qI(this,uA,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=WI(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const o=e.ownerDocument;(null==n?void 0:n.debug)&&(qI(this,mA,document.createElement("div")),kI(this,mA).style.background="rgba(0,0,0,0.15)",kI(this,mA).style.position="fixed",kI(this,mA).style.pointerEvents="none",o.body.appendChild(kI(this,mA))),qI(this,hA,new IntersectionObserver(t=>{var n,r;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,c=kI(this,uA);qI(this,uA,a),(s||l)&&(c&&!a?(null==(n=kI(this,fA))||n.disconnect(),this.callback(null),null==(r=kI(this,pA))||r.disconnect(),qI(this,pA,void 0),kI(this,mA)&&(kI(this,mA).style.visibility="hidden")):kI(this,bA).call(this),a&&!kI(this,pA)&&(qI(this,pA,new cA(kI(this,bA))),kI(this,pA).observe(e)))},{threshold:SA,root:o})),kI(this,uA)&&!n.skipInitial&&this.callback(this.boundingClientRect),kI(this,hA).observe(e)}};uA=new WeakMap,dA=new WeakMap,pA=new WeakMap,fA=new WeakMap,hA=new WeakMap,mA=new WeakMap,gA=new WeakMap,bA=new WeakMap,vA=new WeakSet,yA=function(){kI(this,gA)||(PI(this,vA,xA).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,kI(this,dA))||(this.callback(this.boundingClientRect),qI(this,dA,this.boundingClientRect)))},xA=function(){if(kI(this,mA)){const{top:e,left:t,width:n,height:r}=WI(this.element);kI(this,mA).style.overflow="hidden",kI(this,mA).style.visibility="visible",kI(this,mA).style.top=`${Math.floor(e)}px`,kI(this,mA).style.left=`${Math.floor(t)}px`,kI(this,mA).style.width=`${Math.floor(n)}px`,kI(this,mA).style.height=`${Math.floor(r)}px`}};var CA,EA,IA,AA,RA=new WeakMap,DA=new WeakMap;function MA(e,t){let n=RA.get(e);if(!n){const t=new wA(e,t=>{const n=RA.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),RA.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(RA.delete(e),n.disconnect())}}var kA=class{constructor(e,t,n){this.callback=t,TI(this,CA),TI(this,EA,!1),TI(this,IA),TI(this,AA,aA(e=>{if(!kI(this,EA)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of kI(this,IA))if(e.target.contains(t)){this.callback(kI(this,CA).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=iA(e);for(;n;)t.add(n),n=iA(n);return t}(e),o=function(e,t){const n=new Set;for(const r of e){const e=MA(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),i=function(e,t){var n;const r=e.ownerDocument;if(!DA.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),DA.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(n=DA.get(r))?n:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),DA.delete(r))}):()=>{}}(e,kI(this,AA));qI(this,IA,r),qI(this,CA,new wA(e,t,n)),this.disconnect=()=>{kI(this,EA)||(qI(this,EA,!0),o(),i(),kI(this,CA).disconnect())}}};function TA(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function qA(e){try{TA(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function PA(e){return!(!GI||!e)&&e===HI(e).scrollingElement}function LA(e){var t,n;const r=zI(e),o=PA(e)?function(e){var t,n,r,o;const{documentElement:i}=HI(e),a=zI(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:i.clientHeight,c=null!=(r=null==a?void 0:a.offsetTop)?r:0,u=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:c,left:u,right:u+s,bottom:c+l,width:s,height:l}}(e):NI(e),i=r.visualViewport,a=PA(e)?{height:null!=(t=null==i?void 0:i.height)?t:r.innerHeight,width:null!=(n=null==i?void 0:i.width)?n:r.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function OA(e,t,n=LA(e)){const{isTop:r,isBottom:o,isLeft:i,isRight:a,position:s}=n,{x:l,y:c}=null!=t?t:{x:0,y:0},u=!r&&s.current.y+c>0,d=!o&&s.current.y+c<s.max.y,p=!i&&s.current.x+l>0,f=!a&&s.current.x+l<s.max.x;return{top:u,bottom:d,left:p,right:f,x:p||f,y:u||d}}CA=new WeakMap,EA=new WeakMap,IA=new WeakMap,AA=new WeakMap;var NA=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},jA=new NA(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),_A=new NA(e=>setTimeout(e,50)),zA=new Map,FA=zA.clear.bind(zA);function $A(e,t=!1){if(!t)return BA(e);let n=zA.get(e);return n||(n=BA(e),zA.set(e,n),_A.schedule(FA),n)}function BA(e){return zI(e).getComputedStyle(e)}var HA={excludeElement:!0,escapeShadowDOM:!0};function VA(e,t=HA){const{limit:n,excludeElement:r,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=n&&i.size>=n)return i;if(!a)return i;if(FI(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&JI(a))return t(a.host);if(!$I(a))return BI(a)?t(a.parentElement):i;if(i.has(a))return i;const s=$A(a,!0);if(r&&a===e||function(e,t=$A(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&i.add(a),function(e,t=$A(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function WA(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=iA(e);for(;r;){if(r===t)return n;const e=NI(r),{x:o,y:i}=UA(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*o,n.scaleY=n.scaleY*i,r=iA(r)}return n}function UA(e,t=NI(e)){const n=Math.round(t.width),r=Math.round(t.height);if($I(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const o=$A(e,!0);return{x:(parseFloat(o.width)||n)/n,y:(parseFloat(o.height)||r)/r}}function GA(e){if(!e||"none"===e)return null;const[t,n,r="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function KA(e){var t,n,r,o,i,a,s,l,c;const{scale:u,transform:d,translate:p}=e,f=function(e){if(!e||"none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(u),h=GA(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(n=null==f?void 0:f.y)?n:1,v=null!=(r=null==h?void 0:h.x)?r:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(c=null==h?void 0:h.z)?c:0,scaleX:g*w,scaleY:b*C}}var YA=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(YA||{}),XA={x:.2,y:.2},JA={x:10,y:10};function ZA(e,t,n,r=25,o=XA,i=JA,a=LA(e)){const{x:s,y:l}=t,{rect:c,isTop:u,isBottom:d,isLeft:p,isRight:f}=a,h=WA(e),m=KA($A(e,!0)),g=null!==m&&(null==m?void 0:m.scaleX)<0,b=null!==m&&(null==m?void 0:m.scaleY)<0,v=new eC(c.left*h.scaleX+h.x,c.top*h.scaleY+h.y,c.width*h.scaleX,c.height*h.scaleY),y={x:0,y:0},x={x:0,y:0},S=v.height*o.y,w=v.width*o.x;return S>0&&(!u||b&&!d)&&l<=v.top+S&&1!==(null==n?void 0:n.y)&&s>=v.left-i.x&&s<=v.right+i.x?(y.y=b?1:-1,x.y=r*Math.abs((v.top+S-l)/S)):S>0&&(!d||b&&!u)&&l>=v.bottom-S&&-1!==(null==n?void 0:n.y)&&s>=v.left-i.x&&s<=v.right+i.x&&(y.y=b?-1:1,x.y=r*Math.abs((v.bottom-S-l)/S)),w>0&&(!f||g&&!p)&&s>=v.right-w&&-1!==(null==n?void 0:n.x)&&l>=v.top-i.y&&l<=v.bottom+i.y?(y.x=g?-1:1,x.x=r*Math.abs((v.right-w-s)/w)):w>0&&(!p||g&&!f)&&s<=v.left+w&&1!==(null==n?void 0:n.x)&&l>=v.top-i.y&&l<=v.bottom+i.y&&(y.x=g?1:-1,x.x=r*Math.abs((v.left+w-s)/w)),{direction:y,speed:x}}function QA(e,{block:t="nearest",inline:n="nearest"}={}){if(!$I(e))return;const r=VA(e),o=[];for(const i of r){if(!$I(i))continue;const{top:r,left:a}=tR(e,i);let s=r,l=a;for(const e of o)s-=e.scrollTop,l-=e.scrollLeft;if("none"!==t){const n=s<i.scrollTop;n!==s+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop="center"===t?s-i.clientHeight/2+e.offsetHeight/2:n?s:s+e.offsetHeight-i.clientHeight)}if("none"!==n){const t=l<i.scrollLeft;t!==l+e.offsetWidth>i.scrollLeft+i.clientWidth&&(i.scrollLeft="center"===n?l-i.clientWidth/2+e.offsetWidth/2:t?l:l+e.offsetWidth-i.clientWidth)}o.push(i)}}function eR(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;const e=r.offsetParent;if(!$I(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function tR(e,t){const n=eR(e),r=eR(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function nR({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function rR(e,t=$A(e).translate,n=!0){if(n){const t=OI(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=GA(e);if(t)return t}}}if(t){const e=GA(t);if(e)return e}return{x:0,y:0,z:0}}var oR=new NA(e=>setTimeout(e,0)),iR=new Map,aR=iR.clear.bind(iR);function sR(e,t){const n=function(e){const t=e.ownerDocument;let n=iR.get(t);if(n)return n;n=t.getAnimations(),iR.set(t,n),oR.schedule(aR);const r=n.filter(t=>LI(t.effect)&&t.effect.target===e);return iR.set(e,r),n}(e).filter(e=>{var n,r;if(LI(e.effect)){const{target:o}=e.effect;if(null==(r=o&&(null==(n=t.isValidTarget)?void 0:n.call(t,o)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var lR=class extends eC{constructor(e,t={}){var n,r,o,i;const{frameTransform:a=WA(e),ignoreTransforms:s,getBoundingClientRect:l=NI}=t,c=sR(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||YI())&&t.contains(e)}),u=l(e);let d,{top:p,left:f,width:h,height:m}=u;const g=$A(e),b=KA(g),v={x:null!=(n=null==b?void 0:b.scaleX)?n:1,y:null!=(r=null==b?void 0:b.scaleY)?r:1},y=function(e,t){const n=e.getAnimations();if(!n.length)return null;let r,o,i,a=!1;for(const e of n){if("running"!==e.playState)continue;const t=LI(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;const{transform:s,translate:l,scale:c}=n;"string"==typeof s&&s&&(r=s,a=!0),"string"==typeof l&&l&&(o=l,a=!0),"string"==typeof c&&c&&(i=c,a=!0)}return a?KA({transform:null!=r?r:t.transform,translate:null!=o?o:t.translate,scale:null!=i?i:t.scale}):null}(e,g);null==c||c(),b&&(d=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-r)*parseFloat(n),l=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width/r:e.width,u=o?e.height/o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(u,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-r)*parseFloat(n),l=e.top+a+(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width*r:e.width,u=o?e.height*o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function cR(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var uR=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(cR(n))for(const[r,o]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:n}=this;if(cR(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(cR(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function dR(e){return!!e&&(e instanceof zI(e).Element||_I(e)&&e.nodeType===Node.ELEMENT_NODE)}function pR(e){if(!e)return!1;const{KeyboardEvent:t}=zI(e.target);return e instanceof t}var fR={};function hR(e){const t=null==fR[e]?0:fR[e]+1;return fR[e]=t,`${e}-${t}`}var mR=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/Qw.distance(t.shape.center,n),type:XE.PointerIntersection,priority:YE.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=Qw.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:XE.ShapeIntersection,priority:YE.Normal}}return null})(e)},gR=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:o}=t;if(!n.shape)return null;const i=r?eC.from(r.current.boundingRectangle).corners:void 0,a=eC.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+Qw.distance(Qw.from(t),null!=(r=null==i?void 0:i[n])?r:o.current)},0),s=a/4;return{id:n.id,value:1/s,type:XE.Collision,priority:YE.Normal}},bR=Object.create,vR=Object.defineProperty,yR=Object.defineProperties,xR=Object.getOwnPropertyDescriptor,SR=Object.getOwnPropertyDescriptors,wR=Object.getOwnPropertySymbols,CR=Object.prototype.hasOwnProperty,ER=Object.prototype.propertyIsEnumerable,IR=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),AR=e=>{throw TypeError(e)},RR=(e,t,n)=>t in e?vR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DR=(e,t)=>{for(var n in t||(t={}))CR.call(t,n)&&RR(e,n,t[n]);if(wR)for(var n of wR(t))ER.call(t,n)&&RR(e,n,t[n]);return e},MR=(e,t)=>yR(e,SR(t)),kR=(e,t)=>vR(e,"name",{value:t,configurable:!0}),TR=(e,t)=>{var n={};for(var r in e)CR.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&wR)for(var r of wR(e))t.indexOf(r)<0&&ER.call(e,r)&&(n[r]=e[r]);return n},qR=e=>{var t;return[,,,bR(null!=(t=null==e?void 0:e[IR("metadata")])?t:null)]},PR=["class","method","getter","setter","accessor","field","value","get","set"],LR=e=>void 0!==e&&"function"!=typeof e?AR("Function expected"):e,OR=(e,t,n,r,o)=>({kind:PR[e],name:t,metadata:r,addInitializer:e=>n._?AR("Already initialized"):o.push(LR(e||null))}),NR=(e,t)=>RR(t,IR("metadata"),e[3]),jR=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},_R=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=PR[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&xR(d<4?o:{get[n](){return $R(this,i)},set[n](e){return HR(this,i,e)}},n));d?f&&d<4&&kR(i,(d>2?"set ":d>1?"get ":"")+n):kR(o,n);for(var y=r.length-1;y>=0;y--)c=OR(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>FR(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?$R:VR)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>HR(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?LR(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?AR("Object expected"):(LR(a=s.get)&&(v.get=a),LR(a=s.set)&&(v.set=a),LR(a=s.init)&&g.unshift(a));return d||NR(e,o),v&&vR(o,n,v),f?4^d?i:v:o},zR=(e,t,n)=>t.has(e)||AR("Cannot "+n),FR=(e,t)=>Object(t)!==t?AR('Cannot use the "in" operator on this value'):e.has(t),$R=(e,t,n)=>(zR(e,t,"read from private field"),n?n.call(e):t.get(e)),BR=(e,t,n)=>t.has(e)?AR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),HR=(e,t,n,r)=>(zR(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),VR=(e,t,n)=>(zR(e,t,"access private method"),n),WR="button",UR="draggable",GR="dnd-kit-description",KR="dnd-kit-announcement",YR={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},XR={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function JR(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}function ZR(e){var t;return"button"===(null!=(t=e.getAttribute("role"))?t:"button")}var QR=["dragover","dragmove"],eD=class extends $C{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=GR,announcement:o=KR}={},announcements:i=XR,screenReaderInstructions:a=YR,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:hR(r),c=n?`${o}-${n}`:hR(o);let u,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>jA.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const o=p;if(!o)return;const i=null==t?void 0:t(n,r);i&&o.nodeValue!==i&&(f=i,QR.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==u?void 0:u.isConnected)||(u=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(l,a.draggable),e.push(u)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(c),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const n=null!=(e=t.handle)?e:t.element;if(n){u&&d||y.add(v),JR(n)&&!YI()||n.hasAttribute("tabindex")||y.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||y.add(()=>n.setAttribute("role",WR)),n.hasAttribute("aria-roledescription")||y.add(()=>n.setAttribute("aria-roledescription",UR)),n.hasAttribute("aria-describedby")||y.add(()=>n.setAttribute("aria-describedby",l));const e=ZR(n)?["aria-pressed","aria-grabbed"]:["aria-grabbed"];for(const r of e){const e=String(t.isDragging);n.getAttribute(r)!==e&&y.add(()=>n.setAttribute(r,e))}const r=String(t.disabled);n.getAttribute("aria-disabled")!==r&&y.add(()=>n.setAttribute("aria-disabled",r))}}y.size>0&&jA.schedule(x)}),this.destroy=()=>{super.destroy(),null==u||u.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var tD,nD,rD,oD,iD,aD,sD,lD,cD,uD,dD,pD,fD,hD,mD,gD,bD=new Map;function vD(e){return JI(e)?e.host.isConnected:null!=e.defaultView}var yD=class extends(aD=HC,iD=[Aw],oD=[Aw],rD=[Rw],nD=[Rw],tD=[Rw],aD){constructor(e,t){super(e,t),jR(sD,5,this),BR(this,pD),BR(this,lD,jR(sD,8,this,new Map)),jR(sD,11,this),BR(this,cD,jR(sD,12,this,new Set)),jR(sD,15,this),BR(this,uD,new Set),BR(this,dD,new Map),this.registerEffect(VR(this,pD,fD))}register(e,t){return hS(()=>{var n;const r=new Map(this.registeredRules);r.set(e,null!=(n=null==t?void 0:t.retain)&&n),this.registeredRules=r}),()=>{hS(()=>{const t=new Map(this.registeredRules);t.delete(e),this.registeredRules=t})}}addRoot(e){return hS(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{hS(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return ZI(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return ZI(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}destroy(){for(const e of $R(this,dD).values())for(const t of e.values())t();$R(this,dD).clear(),$R(this,uD).clear(),super.destroy()}};sD=qR(aD),lD=new WeakMap,cD=new WeakMap,uD=new WeakMap,dD=new WeakMap,pD=new WeakSet,fD=function(){const{roots:e,registeredRules:t}=this;for(const t of e)$R(this,uD).add(t);const n=new Map;for(const r of $R(this,uD)){const o=e.has(r);if(o||vD(r))for(const[e,i]of t){if(!o&&!i)continue;let t=n.get(r);t||(t=new Set,n.set(r,t)),t.add(e)}else $R(this,uD).delete(r)}for(const[e,t]of $R(this,dD)){const r=n.get(e);for(const[e,n]of t)(null==r?void 0:r.has(e))||(n(),t.delete(e));0===t.size&&$R(this,dD).delete(e)}for(const[e,t]of n){let n=$R(this,dD).get(e);n||(n=new Map,$R(this,dD).set(e,n));for(const r of t)n.has(r)||n.set(r,VR(this,pD,hD).call(this,e,r))}},hD=function(e,t){let n=bD.get(e);n||(n=new Map,bD.set(e,n));let r=n.get(t);if(!r){const o=FI(e)?VR(this,pD,mD).call(this,e,n,t):VR(this,pD,gD).call(this,e,n,t);if(!o)return()=>{};r=o,n.set(t,r)}r.refCount++;let o=!1;return()=>{o||(o=!0,r.refCount--,0===r.refCount&&r.cleanup())}},mD=function(e,t,n){var r;const o=e.createElement("style"),{nonce:i}=null!=(r=this.options)?r:{};i&&o.setAttribute("nonce",i),o.textContent=n,e.head.prepend(o);const a=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===o)return void e.head.prepend(o)});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),o.remove(),t.delete(n),0===t.size&&bD.delete(e)}}},gD=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=r?r:{};if(!o)return null;const i=new o;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var r;if(JI(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&bD.delete(e)}}},_R(sD,4,"registeredRules",iD,yD,lD),_R(sD,4,"additionalRoots",oD,yD,cD),_R(sD,2,"sourceRoot",rD,yD),_R(sD,2,"targetRoot",nD,yD),_R(sD,2,"roots",tD,yD),NR(sD,yD),yD.configure=zC(yD);var xD=yD,SD="data-dnd-",wD=`${SD}dropping`,CD="--dnd-",ED=`${SD}dragging`,ID=`${SD}placeholder`,AD=[ED,ID,"popover","aria-pressed","aria-grabbing"],RD=["view-transition-name"],DD=`\n :is(:root,:host) [${ED}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${CD}top, 0px) !important;\n left: var(${CD}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${CD}width, auto);\n max-width: var(${CD}width, auto);\n height: var(${CD}height, auto);\n max-height: var(${CD}height, auto);\n transform: var(${CD}transform, none) !important;\n transition: var(${CD}transition) !important;\n }\n\n :is(:root,:host) [${ID}] {\n transition: none;\n }\n\n :is(:root,:host) [${ID}='hidden'] {\n visibility: hidden;\n }\n\n [${ED}] * {\n pointer-events: none !important;\n }\n\n [${ED}]:not([${wD}]) {\n translate: var(${CD}translate) !important;\n }\n\n [${ED}][style*='${CD}scale'] {\n scale: var(${CD}scale) !important;\n transform-origin: var(${CD}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${ED}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${ED}]::backdrop, [${SD}overlay]:not([${ED}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function MD(e,t="hidden"){return hS(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const o=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${SD}${hR("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(eA(e)&&eA(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),tA(e)&&tA(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,o]of e){if(!r.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(o),!i)continue;const a=r.element;r.proxy=i,i.removeAttribute(o),rA.set(a,i),n.push(()=>{rA.delete(a),r.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(ID,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function kD(e,t){return e===t||iA(e)===iA(t)}function TD(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&dR(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>qA(t))}function qD(e){return"TR"===e.tagName}var PD,LD,OD,ND,jD,_D,zD,FD=250,$D="ease";var BD=class extends(LD=$C,PD=[Aw],LD){constructor(e,t){super(e,t),BR(this,jD),BR(this,ND,jR(OD,8,this)),jR(OD,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(xD),r=null==n?void 0:n.register(DD,{retain:!0});if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(VR(this,jD,_D).bind(this,n)),this.registerEffect(VR(this,jD,zD))}};OD=qR(LD),ND=new WeakMap,jD=new WeakSet,_D=function(e){const{overlay:t}=this;if(!t||!e)return;const n=ZI(t);return n?e.addRoot(n):void 0},zD=function(){var e,t,n,r,o,i,a;const{state:s,manager:l,options:c}=this,{dragOperation:u}=l,{position:d,source:p,status:f}=u;if(f.idle)return s.current={},void(s.initial={});if(!p)return;const{element:h}=p,m=p.pluginConfig(BD),g=null!=(t=null!=(e=null==m?void 0:m.feedback)?e:null==c?void 0:c.feedback)?t:"default",b="function"==typeof g?g(p,l):g;if(!h||"none"===b||!f.initialized||f.initializing)return;const{initial:v}=s,y=null!=(n=this.overlay)?n:h,x=WA(y),S=WA(h),w=!kD(h,y),C=new lR(h,{frameTransform:w?S:null,ignoreTransforms:!w}),E=S.scaleX/x.scaleX,I=S.scaleY/x.scaleY;let{width:A,height:R,top:D,left:M}=C;w&&(A/=E,R/=I);const k=new uR(y),T=$A(h),{transition:q,translate:P,boxSizing:L,paddingBlockStart:O,paddingBlockEnd:N,paddingInlineStart:j,paddingInlineEnd:_,borderInlineStartWidth:z,borderInlineEndWidth:F,borderBlockStartWidth:$,borderBlockEndWidth:B}=T,H=q.split(",").filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(","),V=KA(T),W=T.transform,U="clone"===b,G="content-box"===L,K=G?parseInt(j)+parseInt(_)+parseInt(z)+parseInt(F):0,Y=G?parseInt(O)+parseInt(N)+parseInt($)+parseInt(B):0,X="move"===b||this.overlay?null:MD(p,U?"clone":"hidden"),J=hS(()=>pR(l.dragOperation.activatorEvent));if(!v.translate)if(this.overlay&&V)v.translate={x:V.x,y:V.y};else if("none"!==P){const e=GA(P);e&&(v.translate=e)}if(!v.transformOrigin){const e=hS(()=>d.current),t=M+(null!=(r=null==V?void 0:V.x)?r:0),n=D+(null!=(o=null==V?void 0:V.y)?o:0);v.transformOrigin={x:(e.x-t*x.scaleX-x.x)/(A*x.scaleX),y:(e.y-n*x.scaleY-x.y)/(R*x.scaleY)}}const{transformOrigin:Z}=v,Q=D*x.scaleY+x.y,ee=M*x.scaleX+x.x;if(!v.coordinates&&(v.coordinates={x:ee,y:Q},1!==E||1!==I)){const{scaleX:e,scaleY:t}=S,{x:n,y:r}=Z;v.coordinates.x+=(A*e-A)*n,v.coordinates.y+=(R*t-R)*r}v.dimensions||(v.dimensions={width:A,height:R}),v.frameTransform||(v.frameTransform=x);const te=v.coordinates.x-ee,ne=v.coordinates.y-Q,re=(v.dimensions.width*v.frameTransform.scaleX-A*x.scaleX)*Z.x,oe=(v.dimensions.height*v.frameTransform.scaleY-R*x.scaleY)*Z.y,ie={x:te/x.scaleX+re,y:ne/x.scaleY+oe},ae=M+ie.x,se=D+ie.y;y.setAttribute(ED,"true");const le=hS(()=>u.transform),ce=null!=(i=v.translate)?i:{x:0,y:0},ue=le.x*x.scaleX+ce.x,de=le.y*x.scaleY+ce.y,pe=XI();if(k.set({width:A-K,height:R-Y,top:se+pe.y,left:ae+pe.x,translate:`${ue}px ${de}px 0`,transform:this.overlay?"none":W,transition:H?`${H}, translate 0ms linear`:"translate 0ms linear",scale:w?`${E} ${I}`:"","transform-origin":`${100*Z.x}% ${100*Z.y}%`},CD),X&&(h.insertAdjacentElement("afterend",X),null==c?void 0:c.rootElement)){("function"==typeof c.rootElement?c.rootElement(p):c.rootElement).appendChild(h)}let fe,he,me;TA(y)&&(y.hasAttribute("popover")||y.setAttribute("popover","manual"),qA(y),y.addEventListener("beforetoggle",TD));const ge=(be={placeholder:X,element:h,feedbackElement:y,frameTransform:x,transformOrigin:Z,width:A,height:R,top:D,left:M,widthOffset:K,heightOffset:Y,delta:ie,styles:k,dragOperation:u,getTranslate:()=>s.current.translate,getElementMutationObserver:()=>fe,getSavedCellWidths:()=>me,setSavedCellWidths:e=>{me=e}},new ResizeObserver(()=>{var e,t,n;const r=new lR(be.placeholder,{frameTransform:be.frameTransform,ignoreTransforms:!0}),o=null!=(e=be.transformOrigin)?e:{x:1,y:1},i=(be.width-r.width)*o.x+be.delta.x,a=(be.height-r.height)*o.y+be.delta.y,s=XI();if(be.styles.set({width:r.width-be.widthOffset,height:r.height-be.heightOffset,top:be.top+a+s.y,left:be.left+i+s.x},CD),null==(t=be.getElementMutationObserver())||t.takeRecords(),qD(be.element)&&qD(be.placeholder)){const e=Array.from(be.element.cells),t=Array.from(be.placeholder.cells);be.getSavedCellWidths()||be.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}const l=null!=(n=be.getTranslate())?n:{x:0,y:0},c=be.left+i+s.x+l.x,u=be.top+a+s.y+l.y,d=r.width-be.widthOffset,p=r.height-be.heightOffset,f=be.frameTransform;be.dragOperation.shape=new eC(c*f.scaleX+f.x,u*f.scaleY+f.y,d*f.scaleX,p*f.scaleY)}));var be;const ve=new lR(y);hS(()=>u.shape=ve);const ye=zI(y),xe=e=>{this.manager.actions.stop({event:e})},Se=QI(ye);J&&ye.addEventListener("resize",xe),"idle"===hS(()=>p.status)&&requestAnimationFrame(()=>p.status="dragging"),X&&(ge.observe(X),fe=function(e,t,n){const r=new MutationObserver(r=>{let o=!1;for(const n of r){if(n.target!==e){o=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||AD.includes(r))continue;const i=e.getAttribute(r);if("style"===r){if(cR(e)&&cR(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(RD.includes(e)||e.startsWith(CD))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==i?t.setAttribute(r,i):t.removeAttribute(r)}o&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(h,X,U),he=function(e,t,n){const r=new MutationObserver(r=>{for(const o of r)if(0!==o.addedNodes.length)for(const r of Array.from(o.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void qA(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void qA(n)}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement("afterend",t),qA(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(h,X,y));const we=null==(a=l.dragOperation.source)?void 0:a.id,Ce=()=>{var e;if(!J||null==we)return;const t=l.registry.draggables.get(we),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;$I(n)&&n.focus()},Ee=()=>{null==fe||fe.disconnect(),null==he||he.disconnect(),ge.disconnect(),ye.removeEventListener("resize",xe),TA(y)&&(y.removeEventListener("beforetoggle",TD),y.removeAttribute("popover")),y.removeAttribute(ED),k.reset();const e=()=>{var e;if(me&&qD(h)){const t=Array.from(h.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=me[n])?e:""}p.status="idle";const t=null!=s.current.translate,n=u.status.dragging;X&&(!n&&t||X.parentElement!==y.parentElement)&&y.isConnected&&X.replaceWith(y),null==X||X.remove()};y===this.overlay?setTimeout(e,0):e()},Ie=null==c?void 0:c.dropAnimation,Ae=this,Re=Mw(()=>{var e,t,n;const{transform:r,status:o}=u;if((r.x||r.y||s.current.translate)&&o.dragging){const o=null!=(e=v.translate)?e:{x:0,y:0},i={x:r.x/x.scaleX+o.x,y:r.y/x.scaleY+o.y},a=s.current.translate,l=hS(()=>u.modifiers),d=hS(()=>{var e;return null==(e=u.shape)?void 0:e.current}),p=null==c?void 0:c.keyboardTransition,f=J&&!Se&&null!==p?`${null!=(t=null==p?void 0:p.duration)?t:250}ms ${null!=(n=null==p?void 0:p.easing)?n:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(k.set({transition:H?`${H}, translate ${f}`:`translate ${f}`,translate:`${i.x}px ${i.y}px 0`},CD),null==fe||fe.takeRecords(),d&&d!==ve&&a&&!l.length){const e=Qw.delta(i,a);u.shape=eC.from(d.boundingRectangle).translate(e.x*x.scaleX,e.y*x.scaleY)}else u.shape=new lR(y);s.current.translate=i}},function(){if(u.status.dropped){this.dispose(),p.status="dropping";const e=void 0!==(null==m?void 0:m.dropAnimation)?m.dropAnimation:void 0!==Ae.dropAnimation?Ae.dropAnimation:Ie;let t=s.current.translate;const n=null!=t;if(t||h===y||(t={x:0,y:0}),!t||null===e)return void Ee();l.renderer.rendering.then(()=>{!function(e){var t,n,r,o;const{animation:i}=e;if("function"==typeof i){const t=i({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=FD,easing:s=$D}=null!=i?i:{};qA(e.feedbackElement);const[,l]=null!=(t=OI(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const c=null!=(n=e.placeholder)?n:e.element,u={frameTransform:kD(e.feedbackElement,c)?null:void 0},d=new lR(e.feedbackElement,u),p=null!=(r=GA($A(e.feedbackElement).translate))?r:e.translate,f=new lR(c,u),h=eC.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},CD),e.feedbackElement.setAttribute(wD,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),nR({element:e.feedbackElement,keyframes:MR(DR(DR({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:QI(zI(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(wD),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({source:p,element:h,feedbackElement:y,placeholder:X,translate:t,moved:n,transition:q,alignment:p.alignment,styles:k,animation:null!=e?e:void 0,getElementMutationObserver:()=>fe,cleanup:Ee,restoreFocus:Ce})})}});return()=>{Ee(),Re()}},_R(OD,4,"overlay",PD,BD,ND),NR(OD,BD),BD.configure=zC(BD);var HD,VD,WD,UD,GD,KD,YD,XD=BD,JD=!0;WD=[Aw],UD=YA.Forward,HD=[Aw],VD=YA.Reverse;var ZD=class{constructor(){BR(this,KD,jR(GD,8,this,JD)),jR(GD,11,this),BR(this,YD,jR(GD,12,this,JD)),jR(GD,15,this)}isLocked(e){return e!==YA.Idle&&(null==e?this[YA.Forward]===JD&&this[YA.Reverse]===JD:this[e]===JD)}unlock(e){e!==YA.Idle&&(this[e]=false)}};GD=qR(null),KD=new WeakMap,YD=new WeakMap,_R(GD,4,UD,WD,ZD,KD),_R(GD,4,VD,HD,ZD,YD),NR(GD,ZD);var QD,eM,tM,nM,rM,oM,iM=[YA.Forward,YA.Reverse],aM=class{constructor(){this.x=new ZD,this.y=new ZD}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},sM=class extends $C{constructor(e){super(e);const t=ES(new aM);let n=null;this.signal=t,LS(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new aM);const{delta:o}=e.dragOperation.position;if(n){const e={x:lM(o.x,n.x),y:lM(o.y,n.y)},r=t.peek();dS(()=>{for(const t of cC)for(const n of iM)e[t]===n&&r[t].unlock(n);t.value=r})}n=o})}get current(){return this.signal.peek()}};function lM(e,t){return Math.sign(e-t)}var cM=class extends(eM=HC,QD=[Aw],eM){constructor(e){super(e),BR(this,nM,jR(tM,8,this,!1)),jR(tM,11,this),BR(this,rM),BR(this,oM,()=>{if(!$R(this,rM))return;const{element:e,by:t}=$R(this,rM);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{var n;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return HR(this,rM,void 0),!1;const{position:o}=this.manager.dragOperation,i=null==o?void 0:o.current;if(i){const{by:o}=null!=e?e:{},a=o?{x:uM(o.x),y:uM(o.y)}:void 0,s=a?void 0:this.scrollIntentTracker.current;if(null==s?void 0:s.isLocked())return!1;for(const e of r){const r=LA(e),l=OA(e,o,r);if(l.x||l.y){const{speed:l,direction:c}=ZA(e,i,a,null==t?void 0:t.acceleration,null==t?void 0:t.threshold,void 0,r);if(s)for(const e of cC)s[e].isLocked(c[e])&&(l[e]=0,c[e]=0);if(c.x||c.y){const{x:t,y:r}=null!=o?o:c,i=t*l.x,a=r*l.y;if(i||a){const t=null==(n=$R(this,rM))?void 0:n.by;if(this.autoScrolling&&t){if(t.x&&!i||t.y&&!a)continue}return HR(this,rM,{element:e,by:{x:i,y:a}}),jA.schedule($R(this,oM)),!0}}}}}return HR(this,rM,void 0),!1};let t=null,n=null;const r=Ew(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const o=nA(ZI(null==r?void 0:r.element),n.current);return o&&(t=o),null!=o?o:t}),o=Ew(()=>{const t=r.value,{documentElement:o}=HI(t);if(!t||t===o){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=VA(r,{excludeElement:!1});return n=e,e}}if(t){const e=VA(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},Iw);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new sM(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&pR(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function uM(e){return e>0?YA.Forward:e<0?YA.Reverse:YA.Idle}tM=qR(eM),nM=new WeakMap,rM=new WeakMap,oM=new WeakMap,_R(tM,4,"autoScrolling",QD,cM,nM),NR(tM,cM);var dM=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),pM=class extends $C{constructor(e,t){super(e,t);const n=e.registry.plugins.get(cM);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=LS(()=>{var t,r,o;if(this.disabled)return;const{position:i,status:a}=e.dragOperation;if(a.dragging){const e={acceleration:null==(t=this.options)?void 0:t.acceleration,threshold:"number"==typeof(null==(r=this.options)?void 0:r.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(o=this.options)?void 0:o.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;const t=setInterval(()=>dM.schedule(()=>n.scroll(void 0,e)),10);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};pM.configure=zC(pM);var fM,hM=pM,mM={capture:!0,passive:!0},gM=class extends HC{constructor(e){super(e),BR(this,fM),this.handleScroll=()=>{null==$R(this,fM)&&HR(this,fM,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),HR(this,fM,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=LS(()=>{var e,n,r;if(t.status.dragging){const o=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return o.addEventListener("scroll",this.handleScroll,mM),()=>{o.removeEventListener("scroll",this.handleScroll,mM)}}})}};fM=new WeakMap;function bM(){var e;null==(e=document.getSelection())||e.removeAllRanges()}function vM(e,t){const n=xM(e.key);return t.some(e=>xM(e)===n)}var yM=new Set(["alt","altgraph","backspace","capslock","control","delete","end","enter","escape","home","insert","meta","pagedown","pageup","pause","printscreen","shift","space","tab","arrowdown","arrowleft","arrowright","arrowup","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"]);function xM(e){if(" "===e||"Spacebar"===e)return"space";if(/^Key[A-Z]$/.test(e))return e.slice(3).toLowerCase();if(/^Digit[0-9]$/.test(e))return e.slice(5);if(1===e.length)return e.toLowerCase();const t=e.toLowerCase();return yM.has(t)?t:e}var SM,wM=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),CM=class extends eI{constructor(e,t){super(e),this.manager=e,this.options=t,BR(this,SM,[]),this.listeners=new oA,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!dR(e.target))return;if(t.disabled)return;const{keyboardCodes:r=wM.keyboardCodes,preventActivation:o=wM.preventActivation}=null!=n?n:{};vM(e,r.start)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=LS(()=>{var n;const r=null!=(n=e.handle)?n:e.element,o=n=>{pR(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),QA(r);const{center:o}=new lR(r);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=HI(r),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];$R(this,SM).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=wM.keyboardCodes}=null!=n?n:{};if(vM(e,[...r.end,...r.cancel])){e.preventDefault();const t=vM(e,r.cancel);return void this.handleEnd(e,t)}vM(e,r.up)?this.handleMove("up",e):vM(e,r.down)&&this.handleMove("down",e),vM(e,r.left)?this.handleMove("left",e):vM(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:wM.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(hM);!1===(null==e?void 0:e.disabled)&&(e.disable(),$R(this,SM).push(()=>{e.enable()}))}cleanup(){$R(this,SM).forEach(e=>e()),HR(this,SM,[])}destroy(){this.cleanup(),this.listeners.clear()}};SM=new WeakMap,CM.configure=zC(CM),CM.defaults=wM;var EM,IM,AM,RM=CM;EM=new WeakMap;IM=new WeakMap,AM=new WeakMap;var DM=class{};DM.Delay=class extends nI{constructor(){super(...arguments),BR(this,IM),BR(this,AM)}onEvent(e){switch(e.type){case"pointerdown":HR(this,AM,UI(e)),HR(this,IM,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!$R(this,AM))return;const{x:t,y:n}=UI(e);rC({x:t-$R(this,AM).x,y:n-$R(this,AM).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){$R(this,IM)&&(clearTimeout($R(this,IM)),HR(this,AM,void 0),HR(this,IM,void 0))}},DM.Distance=class extends nI{constructor(){super(...arguments),BR(this,EM)}onEvent(e){switch(e.type){case"pointerdown":HR(this,EM,UI(e));break;case"pointermove":if(!$R(this,EM))return;const{x:t,y:n}=UI(e),r={x:t-$R(this,EM).x,y:n-$R(this,EM).y},{tolerance:o}=this.options;if(o&&rC(r,o))return void this.abort();rC(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){HR(this,EM,void 0)}};var MM,kM=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:o}=e;if("mouse"!==r||!dR(o)||t.handle!==o&&!(null==(n=t.handle)?void 0:n.contains(o)))return"touch"===r?[new DM.Delay({value:250,tolerance:5})]:function(e){if(!dR(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(o)&&!e.defaultPrevented?[new DM.Delay({value:200,tolerance:0})]:[new DM.Delay({value:200,tolerance:10}),new DM.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;if(r===t.element)return!1;if(r===t.handle)return!1;if(!dR(r))return!1;if(null==(n=t.handle)?void 0:n.contains(r))return!1;const o=r.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ');return o!==t.element&&Boolean(o)}}),TM=class extends eI{constructor(e,t){super(e),this.manager=e,this.options=t,BR(this,MM,new Set),this.listeners=new oA,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){const{activationConstraints:r=kM.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=LS(()=>{var n;const r=new AbortController,{signal:o}=r,i=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=zI(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(NM(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!dR(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=kM.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:o}=e,i=$I(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=WA(t.element),{x:s,y:l}=UI(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const c=this.activationConstraints(e,t,n);e.sensor=this;const u=new tI(c,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;const d=KI(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:PM,options:{capture:!0}}]);$R(this,MM).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;!1===(null==(n=this.controller)?void 0:n.activated)&&(null==(r=this.controller)||r.onEvent(e));const{status:o}=this.manager.dragOperation;if(o.initializing||o.dragging){const n=UI(e),r=WA(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,o.dragging&&jA.schedule(this.handleMove)}}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized,r=HI(e.target),o=r.defaultView;if(!n&&o){const e=e=>{e.target===r.body&&e.detail>0&&(e.preventDefault(),e.stopImmediatePropagation())};o.addEventListener("click",e,!0),o.setTimeout(()=>{o.removeEventListener("click",e,!0)},0)}this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;const o=n.actions.start({coordinates:r,event:t,source:e});if(o.signal.aborted)return this.cleanup();t.preventDefault();const i=HI(t.target).body;try{i.setPointerCapture(t.pointerId)}catch(e){return void this.handleCancel(t)}const a=dR(t.target)?[t.target,i]:i,s=this.listeners.bind(a,[{type:"touchmove",listener:PM,options:{passive:!1}},{type:"click",listener:PM},{type:"contextmenu",listener:PM},{type:"keydown",listener:this.handleKeyDown}]);$R(this,MM).add(s),n.renderer.rendering.then(()=>{!o.signal.aborted&&n.dragOperation.status.dragging&&jA.schedule(this.handleMove)})}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){const{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},$R(this,MM).forEach(e=>e()),$R(this,MM).clear()}destroy(){this.cleanup(),this.listeners.clear()}};MM=new WeakMap,TM.configure=zC(TM),TM.defaults=kM;var qM=TM;function PM(e){e.preventDefault()}function LM(){}var OM=new WeakSet;function NM(e){e&&!OM.has(e)&&(e.addEventListener("touchmove",LM,{capture:!1,passive:!1}),OM.add(e))}var jM,_M,zM,FM,$M,BM,HM,VM,WM,UM,GM,KM,YM,XM,JM,ZM,QM={modifiers:[],plugins:[eD,hM,class extends $C{constructor(e,t){super(e,t),this.manager=e;const{cursor:n="grabbing"}=null!=t?t:{},r=e.registry.plugins.get(xD),o=null==r?void 0:r.register(`* { cursor: ${n} !important; }`);if(o){const e=this.destroy.bind(this);this.destroy=()=>{o(),e()}}}},XD,class extends $C{constructor(e){super(e),this.manager=e;const t=e.registry.plugins.get(xD),n=null==t?void 0:t.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=LS(()=>{const{dragOperation:e}=this.manager;if(e.status.initialized)return bM(),document.addEventListener("selectionchange",bM,{capture:!0}),()=>{document.removeEventListener("selectionchange",bM,{capture:!0})}}),n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}}}],sensors:[qM,RM]},ek=class extends RI{constructor(e={}){const t=AI(e.plugins,QM.plugins),n=AI(e.sensors,QM.sensors),r=AI(e.modifiers,QM.modifiers);super(MR(DR({},e),{plugins:[gM,cM,xD,...t],sensors:n,modifiers:r}))}},tk=class extends(zM=PE,_M=[Aw],jM=[Aw],zM){constructor(e,t){var n=e,{element:r,effects:o=()=>[],handle:i}=n,a=TR(n,["element","effects","handle"]);super(DR({effects:()=>[...o(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(FC))?t:[...n.sensors]).map(e=>{const t=e instanceof eI?e:n.registry.register(e.plugin),r=e instanceof eI?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},a),t),BR(this,$M,jR(FM,8,this)),jR(FM,11,this),BR(this,BM,jR(FM,12,this)),jR(FM,15,this),this.element=r,this.handle=i}};FM=qR(zM),$M=new WeakMap,BM=new WeakMap,_R(FM,4,"handle",_M,tk,$M),_R(FM,4,"element",jM,tk,BM),NR(FM,tk);var nk=class extends(WM=LE,VM=[Aw],HM=[Aw],WM){constructor(e,t){var n=e,{element:r,effects:o=()=>[]}=n,i=TR(n,["element","effects"]);const{collisionDetector:a=mR}=i,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new lR(n),o=hS(()=>this.shape);return r&&(null==o?void 0:o.equals(r))?o:(this.shape=r,r)},l=ES(!1);super(MR(DR({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new kA(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),BR(this,JM),BR(this,GM,jR(UM,8,this)),jR(UM,11,this),BR(this,ZM,jR(UM,12,this)),jR(UM,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){HR(this,JM,e,XM)}get element(){var e;return null!=(e=this.proxy)?e:$R(this,JM,YM)}};function rk(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}UM=qR(WM),GM=new WeakMap,JM=new WeakSet,ZM=new WeakMap,KM=_R(UM,20,"#element",VM,JM,GM),YM=KM.get,XM=KM.set,_R(UM,4,"proxy",HM,nk,ZM),NR(UM,nk);var ok="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?j:P;function ik(){const e=M(0)[1];return O(()=>{e(e=>e+1)},[e])}function ak(e,t=[],n=!1){const r=k(e);return r.current=e,function(e,t=!1){const n=k(e.peek()),r=k(!1),o=ik();return ok(()=>LS(()=>{const i=n.current,a=e.value;if(i!==a){if(n.current=a,!r.current)return;t?U(o):o()}}),[e,t,o]),{get value(){return r.current=!0,e.peek()}}}(D(()=>Ew(()=>r.current()),t),n)}function sk(e){const t=k(e);return ok(()=>{t.current=e},[e]),t}function lk(e,t){const n=ik(),r=sk(t),o=D(()=>{const t=new Map;return{tracked:t,propertyCount:ES(0),active:!1,proxy:e?new Proxy(e,{get(e,n){const r=e[n];return t.has(n)||t.set(n,r),r}}):e}},[e]);return ok(()=>{o.propertyCount.value=o.tracked.size}),ok(()=>{if(!e)return;const{tracked:t,propertyCount:i}=o;o.active=!0;const a=LS(()=>{i.value;let a=!1,s=!1;for(const[n,o]of t){const i=e[n];Object.is(o,i)||(a=!0,t.set(n,i),s=!0===hS(()=>{var e;return null==(e=r.current)?void 0:e.call(r,n,o,i)})||s)}a&&(s?queueMicrotask(()=>{o.active&&U(n)}):n())});return()=>{o.active=!1,a()}},[e,o,n,r]),o.proxy}function ck(e,t){e()}function uk(e,t,n=P,r=Object.is){const o=k(e);n(()=>{const n=o.current;r(e,n)||(o.current=e,t(e,n))},[t,e])}function dk(e,t){const n=k(rk(e));ok(()=>{const r=rk(e);r!==n.current&&(n.current=r,t(r))})}var pk=Object.defineProperty,fk=Object.defineProperties,hk=Object.getOwnPropertyDescriptors,mk=Object.getOwnPropertySymbols,gk=Object.prototype.hasOwnProperty,bk=Object.prototype.propertyIsEnumerable,vk=(e,t,n)=>t in e?pk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yk=new ek,xk=T(yk),Sk=z(F(({children:e},t)=>{const[n,r]=M(0),o=k(null),i=k(null),a=D(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),$(()=>{e(),r(e=>e+1)})}}),[]);return ok(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,n]),B(t,()=>a),null})),wk=[void 0,Iw];function Ck(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,c=((e,t)=>{var n={};for(var r in e)gk.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&mk)for(var r of mk(e))t.indexOf(r)<0&&bk.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const u=k(null),{plugins:d,modifiers:p,sensors:f}=c,h=AI(d,QM.plugins),m=AI(f,QM.sensors),g=AI(p,QM.modifiers),b=sk(o),v=sk(i),y=sk(s),x=sk(a),S=sk(l),w=sk(r),C=function(e){const t=k(null);t.current||(t.current=e());return _(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new ek(c)});return P(()=>{if(!u.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=u.current,{monitor:n}=C;C.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=b.current;n&&t(()=>n(e,C))}),n.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),n.addEventListener("dragover",e=>{const n=y.current;n&&t(()=>n(e,C))}),n.addEventListener("dragmove",e=>{const n=x.current;n&&t(()=>n(e,C))}),n.addEventListener("dragend",e=>{const n=S.current;n&&t(()=>n(e,C))}),n.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>r.forEach(e=>e())},[C]),uk(h,()=>C&&(C.plugins=h),...wk),uk(m,()=>C&&(C.sensors=m),...wk),uk(g,()=>C&&(C.modifiers=g),...wk),Yt.jsxs(xk.Provider,{value:C,children:[Yt.jsx(Sk,{ref:u,children:n}),n]})}function Ek(){return N(xk)}function Ik(e){var t;const n=null!=(t=Ek())?t:void 0,[r]=M(()=>e(n));return r.manager!==n&&(r.manager=n),ok(r.register,[n,r]),r}function Ak({children:e,className:t,dropAnimation:n,style:r,tag:o,disabled:i}){var a;const s=k(null),l=Ek(),c=null!=(a=ak(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,u="function"==typeof i?i(c):i;P(()=>{if(!s.current||!l||u)return;const e=l.plugins.find(e=>e instanceof XD);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,u]),P(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof XD);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[l,n]);const d=D(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?Rk:e[t]});return new Proxy(l,{get:(t,n)=>"registry"===n?e:t[n]})},[l]);return Yt.jsx(xk.Provider,{value:d,children:C(o||"div",{ref:s,className:t,style:r,"data-dnd-overlay":!0},function(){if(!c||u)return null;if("function"==typeof e)return Yt.jsx(Dk,{source:c,children:e});return e}())})}function Rk(){return()=>{}}function Dk({children:e,source:t}){return e(lk(t))}var Mk,kk,Tk,qk,Pk,Lk=Object.create,Ok=Object.defineProperty,Nk=Object.getOwnPropertyDescriptor,jk=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),_k=e=>{throw TypeError(e)},zk=["class","method","getter","setter","accessor","field","value","get","set"],Fk=e=>void 0!==e&&"function"!=typeof e?_k("Function expected"):e,$k=(e,t,n,r,o)=>({kind:zk[e],name:t,metadata:r,addInitializer:e=>n._?_k("Already initialized"):o.push(Fk(e||null))}),Bk=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=zk[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Nk(o,n)),h=r.length-1;h>=0;h--)(l=$k(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,Fk(a)&&(f[d]=a);return f&&Ok(o,n,f),o},Hk=(e,t,n)=>t.has(e)||_k("Cannot "+n),Vk=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},Wk=class extends(Tk=Tw,kk=[Rw],Mk=[Rw],Tk){constructor(e){var t,n,r;super(Vk.from(e),(e,t)=>Vk.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(Pk,5,this),t=this,r=0,(n=qk).has(t)?_k("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return Vk.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=Vk.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(Hk(a=this,s=qk,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);dS(()=>{((e,t,n)=>{Hk(e,t,"write to private field"),t.set(e,n)})(this,qk,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(Vk.from(e)),this.velocity={x:0,y:0}}};Pk=(e=>{var t;return[,,,Lk(null!=(t=null==e?void 0:e[jk("metadata")])?t:null)]})(Tk),qk=new WeakMap,Bk(Pk,2,"delta",kk,Wk),Bk(Pk,2,"direction",Mk,Wk),((e,t)=>{return n=t,r=jk("metadata"),o=e[3],r in n?Ok(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o;var n,r,o})(Pk,Wk);var Uk=(e=>(e.Horizontal="x",e.Vertical="y",e))(Uk||{});Object.values(Uk);var Gk=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/Vk.distance(t.shape.center,n),type:XE.PointerIntersection,priority:YE.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=Vk.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:XE.ShapeIntersection,priority:YE.Normal}}return null})(e)};function Kk(e){const{collisionDetector:t,data:n,disabled:r,element:o,id:i,accept:a,type:s}=e,l=Ik(t=>new nk(((e,t)=>fk(e,hk(t)))(((e,t)=>{for(var n in t||(t={}))gk.call(t,n)&&vk(e,n,t[n]);if(mk)for(var n of mk(t))bk.call(t,n)&&vk(e,n,t[n]);return e})({},e),{register:!1,element:rk(o)}),t)),c=lk(l);return uk(i,()=>l.id=i),dk(o,e=>l.element=e),uk(a,()=>l.accept=a,void 0,Iw),uk(t,()=>l.collisionDetector=null!=t?t:Gk),uk(n,()=>n&&(l.data=n)),uk(r,()=>l.disabled=!0===r),uk(s,()=>l.type=s),{droppable:c,get isDropTarget(){return c.isDropTarget},ref:O(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}function Yk(e){const t=Ek();P(()=>{if(!t)return;const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const o=n.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,r);e.push(i)}return e},[]);return()=>n.forEach(e=>null==e?void 0:e())},[t,e])}const Xk=e=>Array.from({length:e},(e,t)=>t),Jk=({id:e,sectionIndex:t,itemIndex:n})=>Yt.jsx("span",{children:`${e}-${t}-${n}`}),Zk=z(()=>{const e=Gg(eS)??Jk,{startSectionIndex:t,startIndex:n,id:r}=Gg(oS)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:Yt.jsx(Ak,{dropAnimation:null,children:Yt.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:Yt.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),Qk=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=Gg(oS),o=r?.toSectionIndex===e&&r.toIndex===t;return Yt.jsx("div",{"data-key":"drop-target-indicator","data-testid":"drop-target-indicator",style:{visibility:o&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},eT=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,tT=z(({sectionIndex:e})=>{const t=Gg(Gx)[e],n=Gg(Kx),r=Gg(Yx),o=null!==Gg(oS),i=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=Kk({id:a,type:"section",accept:"item",collisionPriority:YE.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:Yt.jsxs(md,{ref:s,sx:{margin:"4px",outline:eT(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[Yt.jsx(md,{sx:{position:"relative",top:"4px"},children:Yt.jsx(Qk,{sectionIndex:e,itemIndex:0,isDragging:!1})}),Yt.jsxs(md,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[Yt.jsx(Tu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:i.title}),Yt.jsx(Tu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:i.message})]})]})}),nT=z(({id:e,sectionIndex:t})=>{const n=Gg(Qx);return void 0===n?null:C(n,{id:e,sectionIndex:t})});var rT=Object.defineProperty,oT=Object.defineProperties,iT=Object.getOwnPropertyDescriptors,aT=Object.getOwnPropertySymbols,sT=Object.prototype.hasOwnProperty,lT=Object.prototype.propertyIsEnumerable,cT=(e,t,n)=>t in e?rT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uT=(e,t)=>{for(var n in t||(t={}))sT.call(t,n)&&cT(e,n,t[n]);if(aT)for(var n of aT(t))lT.call(t,n)&&cT(e,n,t[n]);return e},dT=(e,t)=>oT(e,iT(t)),pT=class extends wI{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return dT(uT({},e),{[t]:n})}};pT.configure=zC(pT);var fT=pT,hT=fT.configure({axis:"x",value:0});fT.configure({axis:"y",value:0});var mT=class extends wI{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,o="number"==typeof n?n:n.y;return dT(uT({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/o)*o})}};mT.configure=zC(mT);var gT=Object.create,bT=Object.defineProperty,vT=Object.defineProperties,yT=Object.getOwnPropertyDescriptor,xT=Object.getOwnPropertyDescriptors,ST=Object.getOwnPropertySymbols,wT=Object.prototype.hasOwnProperty,CT=Object.prototype.propertyIsEnumerable,ET=e=>{throw TypeError(e)},IT=(e,t,n)=>t in e?bT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,AT=(e,t)=>{for(var n in t||(t={}))wT.call(t,n)&&IT(e,n,t[n]);if(ST)for(var n of ST(t))CT.call(t,n)&&IT(e,n,t[n]);return e},RT=(e,t)=>vT(e,xT(t)),DT=["class","method","getter","setter","accessor","field","value","get","set"],MT=e=>void 0!==e&&"function"!=typeof e?ET("Function expected"):e,kT=(e,t,n,r,o)=>({kind:DT[e],name:t,metadata:r,addInitializer:e=>n._?ET("Already initialized"):o.push(MT(e||null))}),TT=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},qT=(e,t,n,r,o,i)=>{for(var a,s,l,c,u,d=7&t,p=e.length+1,f=DT[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,yT({get[n](){return LT(this,i)},set[n](e){return NT(this,i,e)}},n)),b=r.length-1;b>=0;b--)(c=kT(d,n,l={},e[3],m)).static=false,c.private=false,u=c.access={has:e=>n in e},u.get=e=>e[n],u.set=(e,t)=>e[n]=t,s=(0,r[b])({get:g.get,set:g.set},c),l._=1,void 0===s?MT(s)&&(g[f]=s):"object"!=typeof s||null===s?ET("Object expected"):(MT(a=s.get)&&(g.get=a),MT(a=s.set)&&(g.set=a),MT(a=s.init)&&h.unshift(a));return g&&bT(o,n,g),o},PT=(e,t,n)=>t.has(e)||ET("Cannot "+n),LT=(e,t,n)=>(PT(e,t,"read from private field"),t.get(e)),OT=(e,t,n)=>t.has(e)?ET("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),NT=(e,t,n,r)=>(PT(e,t,"write to private field"),t.set(e,n),n);function jT(e){return e instanceof yq||e instanceof vq}var _T=class extends $C{constructor(e){super(e);const t=LS(()=>{const{dragOperation:t}=e;if(pR(t.activatorEvent)&&jT(t.source)&&t.status.initialized){const t=e.registry.plugins.get(cM);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!pR(e.nativeEvent))return;if(!jT(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:c}=n,{center:u}=n.shape.current,d=[],p=[];dS(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==c?void 0:c.id)&&jT(e)||!e.element)continue;let n=e.shape;const r=new lR(e.element,{getBoundingClientRect:e=>WI(e,void 0,.2)});r.height&&r.width&&(("down"==s&&u.y+10<r.center.y||"up"==s&&u.y-10>r.center.y||"left"==s&&u.x-10>r.center.x||"right"==s&&u.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,gR);dS(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=n;if(!e||!jT(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,c=g!==a||b!==s,u=c?l:null==t?void 0:t.element;if(!u)return;QA(u);const d=new lR(u);if(!d)return;const p=eC.delta(d,eC.from(i.current.boundingRectangle),e.alignment);r.move({by:p}),c?r.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{n(),t()}}};var zT=Object.defineProperty,FT=Object.defineProperties,$T=Object.getOwnPropertyDescriptors,BT=Object.getOwnPropertySymbols,HT=Object.prototype.hasOwnProperty,VT=Object.prototype.propertyIsEnumerable,WT=(e,t,n)=>t in e?zT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,UT=(e,t)=>{for(var n in t||(t={}))HT.call(t,n)&&WT(e,n,t[n]);if(BT)for(var n of BT(t))VT.call(t,n)&&WT(e,n,t[n]);return e},GT=(e,t)=>FT(e,$T(t));function KT(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function YT(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function XT(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function JT(e,t){return function(e,t,n){var r,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,i.id)),o=e.findIndex(e=>l(e,a.id));if(-1===r||-1===o){if(XT(i)){const r=i.initialIndex,o=i.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!s&&"index"in i&&"number"==typeof i.index){const t=i.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const c=Object.entries(e);let u,d,p=-1,f=-1;for(const[e,t]of c)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(u=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(-1===p&&XT(i)){const r=null==i.initialGroup?void 0:YT(e,i.initialGroup),o=i.initialIndex,a=null==i.group?void 0:YT(e,i.group),s=i.index;if(null==r||null==a)return"preventDefault"in t&&t.preventDefault(),e;if(r===a&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===a)return GT(UT({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return GT(UT({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[a]:[...e[a].slice(0,s),l,...e[a].slice(s)]})}if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(r=h.shape)?void 0:r.current.center)?o:h.position.current;if(null==d){const t=YT(e,a.id);null!=t&&(d=t,f=a.shape&&m.y>a.shape.center.y?e[t].length:0)}if(null==u||null==d||u===d&&p===f){if(null!=u&&u===d&&p===f&&XT(i)){const t=null==i.group?void 0:YT(e,i.group),r=null!=i.group&&t!==u,o=i.index!==p;if(r||o){const r=null==i.group?u:t;if(null!=r){if(u===r)return GT(UT({},e),{[u]:n(e[u],p,i.index)});const t=e[u][p];return GT(UT({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[r]:[...e[r].slice(0,i.index),t,...e[r].slice(i.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(u===d)return GT(UT({},e),{[u]:n(e[u],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[u][p];return GT(UT({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,KT)}function ZT(e){const t=new Map;for(const[,n]of e)for(const e of n)t.set(e.id,e.index);return t}function QT(e,t,n){var r;for(const[o,i]of t)for(const t of i){const i=e.get(t.id);if(t.index!==i||t.group!==o||!(null==(r=n.get(o))?void 0:r.has(t)))return!0}return!1}var eq="__default__";function tq(e,t,n,r){const o=r<t?"afterend":"beforebegin";n.insertAdjacentElement(o,e)}function nq(e,t){return e.index-t.index}function rq(e,t){return e.initialIndex-t.initialIndex}function oq(e,t=nq){return Array.from(e).sort(t)}var iq=[_T,class extends $C{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof yq){const{sortable:e}=n,{group:r}=e;let o=t.get(r);o||(o=new Set,t.set(r,o)),o.add(e)}return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:o,target:i}=r;if(!jT(o)||!jT(i))return;if(o.sortable===i.sortable)return;const a=t(),s=ZT(a),l=o.sortable.group===i.sortable.group,c=a.get(o.sortable.group),u=l?c:a.get(i.sortable.group);c&&u&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,d;const p=t();if(QT(s,a,p))return;const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!l&&i.id===o.sortable.group)return;const m=oq(c),g=l?m:oq(u),b=null!=(r=o.sortable.group)?r:eq,v=null!=(d=i.sortable.group)?d:eq,y={[b]:m,[v]:g},x=JT(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);n.collisionObserver.disable(),tq(f,S,h,w),dS(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!l)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),n.actions.setDropTarget(o.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:o}=r;jT(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),r=ZT(e),i=e.get(o.sortable.initialGroup);i&&n.renderer.rendering.then(()=>{const n=t();if(QT(r,e,n))return;const a=oq(i),s=oq(i,rq),l=o.sortable.element,c=a[s.indexOf(o.sortable)],u=null==c?void 0:c.element;c&&u&&l&&(tq(l,c.index,u,o.index),dS(()=>{for(const t of e.values()){const e=Array.from(t).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],aq={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1};function sq(e){var t,n;return"boolean"==typeof e?{draggable:e,droppable:e}:{draggable:null!=(t=null==e?void 0:e.draggable)&&t,droppable:null!=(n=null==e?void 0:e.droppable)&&n}}var lq,cq,uq,dq,pq,fq,hq,mq,gq=new class{constructor(){Sw(this,kw,new WeakMap)}get(e,t){var n;return e?null==(n=xw(this,kw).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return xw(this,kw).has(e)||xw(this,kw).set(e,new Map),null==(r=xw(this,kw).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=xw(this,kw).get(e))?void 0:t.clear():void 0}};cq=[Aw],lq=[Aw];var bq=class{constructor(e,t){OT(this,dq,TT(uq,8,this)),TT(uq,11,this),OT(this,pq),OT(this,fq),OT(this,hq,TT(uq,12,this)),TT(uq,15,this),OT(this,mq),this.register=()=>(dS(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{dS(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{dS(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],disabled:o,group:i,index:a,sensors:s,type:l,transition:c=aq,plugins:u}=n,d=((e,t)=>{var n={};for(var r in e)wT.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ST)for(var r of ST(e))t.indexOf(r)<0&&CT.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","disabled","group","index","sensors","type","transition","plugins"]);const p=AI(u,iq),f=sq(o);this.droppable=new yq(RT(AT({},d),{disabled:f.droppable}),t,this),this.draggable=new vq(RT(AT({},d),{disabled:f.draggable,plugins:p,effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializationPending)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&gq.clear(this.manager),(null==r?void 0:r.dragging)&&gq.set(this.manager,this.id,hS(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=LT(this,fq),o=LT(this,pq);e===r&&t===o||(NT(this,fq,e),NT(this,pq,t),this.animate())},()=>{var e,t;const{target:n}=this,{isDragSource:r}=this.draggable;"move"===(null!=(t=null==(e=this.draggable.pluginConfig(XD))?void 0:e.feedback)?t:"default")&&r&&(this.droppable.disabled=!n)},...r()],type:l,sensors:s}),t,this),NT(this,mq,d.element),this.manager=t,this.index=a,NT(this,fq,a),this.group=i,NT(this,pq,i),this.type=l,this.transition=c}get initialIndex(){var e,t;return null!=(t=null==(e=gq.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=gq.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){hS(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;for(const e of r.getAnimations())!("transitionProperty"in e)||"transform"!==e.transitionProperty&&"translate"!==e.transitionProperty&&"scale"!==e.transitionProperty||e.cancel();const o=this.refreshShape();if(!o)return;const i=n.boundingRectangle.left-o.boundingRectangle.left,a=n.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=$A(r),l=rR(r,s,!1),c=rR(r,s);if(i||a){const n=QI(zI(r))?RT(AT({},t),{duration:0}):t;nR({element:r,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${c.x}px ${c.y}px ${c.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){dS(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){dS(()=>{const t=LT(this,mq),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),NT(this,mq,e)})}get element(){var e,t;const n=LT(this,mq);if(n)return null!=(t=null!=(e=rA.get(n))?e:n)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){const{disabled:e}=this.draggable,{disabled:t}=this.droppable;return e===t?e:{draggable:e,droppable:t}}set plugins(e){this.draggable.plugins=AI(e,iq)}set disabled(e){const t=sq(e);dS(()=>{this.droppable.disabled=t.droppable,this.draggable.disabled=t.draggable})}set data(e){dS(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:mR}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){dS(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};uq=[,,,gT(null)],dq=new WeakMap,pq=new WeakMap,fq=new WeakMap,hq=new WeakMap,mq=new WeakMap,qT(uq,4,"index",cq,bq,dq),qT(uq,4,"group",lq,bq,hq),((e,t)=>{return IT(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(uq,bq);var vq=class extends tk{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},yq=class extends nk{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},xq=Object.defineProperty,Sq=Object.defineProperties,wq=Object.getOwnPropertyDescriptors,Cq=Object.getOwnPropertySymbols,Eq=Object.prototype.hasOwnProperty,Iq=Object.prototype.propertyIsEnumerable,Aq=(e,t,n)=>t in e?xq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Rq(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:o,data:i,element:a,handle:s,index:l,group:c,disabled:u,modifiers:d,sensors:p,target:f,type:h,plugins:m}=e,g=function(e){return null===e?null:AT(AT({},aq),e)}(e.transition),b=Ik(t=>new bq(((e,t)=>Sq(e,wq(t)))(((e,t)=>{for(var n in t||(t={}))Eq.call(t,n)&&Aq(e,n,t[n]);if(Cq)for(var n of Cq(t))Iq.call(t,n)&&Aq(e,n,t[n]);return e})({},e),{transition:g,register:!1,handle:rk(s),element:rk(a),target:rk(f)}),t)),v=lk(b,Dq);return uk(o,()=>b.id=o),ok(()=>{dS(()=>{b.group=c,b.index=l})},[b,c,l]),uk(h,()=>b.type=h),uk(t,()=>b.accept=t,void 0,Iw),uk(i,()=>i&&(b.data=i)),uk(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},ck),dk(s,e=>b.handle=e),dk(a,e=>b.element=e),dk(f,e=>b.target=e),uk(u,()=>b.disabled=null!=u&&u,void 0,Iw),uk(p,()=>b.sensors=p,void 0,Iw),uk(n,()=>b.collisionDetector=n),uk(r,()=>b.collisionPriority=r),uk(m,()=>b.plugins=m,void 0,Iw),uk(g,()=>b.transition=g,void 0,Iw),uk(d,()=>b.modifiers=d,void 0,Iw),uk(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:O(e=>{b.handle=null!=e?e:void 0},[b]),ref:O(e=>{var t,n;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:O(e=>{var t,n;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:O(e=>{var t,n;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function Dq(e,t,n){return!("isDragSource"!==e||n||!t)}const Mq=({id:e,itemIndex:t,sectionIndex:n})=>Yt.jsx("div",{children:`${n}:${t} - ${e}`}),kq=z(({id:e,itemIndex:t,sectionIndex:n})=>{const r=Gg(tS),o=Gg(Zx),i=Gg(Gx).at(n)??0,a=Gg(Kx)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:c}=Rq({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[hT],plugins:[_T],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),u=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=o??Mq;return Yt.jsx(Zp,{className:"section-item-container","data-testid":"section-item",onClick:u,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:Yt.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[Yt.jsx(Qk,{isDragging:l,itemIndex:t,sectionIndex:n}),Yt.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:c}),t===i-1&&Yt.jsx(Qk,{isDragging:!1,itemIndex:t+1,sectionIndex:n})]})})}),Tq=z(({sectionIndex:e})=>{const t=Gg(Kx),n=Gg(Gx).at(e)??0,r=t({sectionIndex:e});return Yt.jsxs(md,{className:"exploration-list",style:{overflow:"auto"},children:[Yt.jsx(cp,{}),Yt.jsx(nT,{id:r,sectionIndex:e}),Yt.jsx(cp,{}),Yt.jsx(tT,{sectionIndex:e}),Yt.jsx(Fp,{sx:{padding:"2px 8px"},children:Xk(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return Yt.jsx(kq,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),qq=[qM.configure({activationConstraints:[new DM.Distance({value:5})]}),RM],Pq=z(()=>{const e=Gg(Ux),t=Gg(Kx),n=Kg(iS("start")),r=Kg(iS("over")),o=Kg(iS("end"));return Yt.jsxs(Ck,{sensors:qq,onDragEnd:e=>{o(e)},onDragOver:e=>{r(e)},onDragStart:e=>{n(e)},children:[Yt.jsx(md,{style:{display:"flex",flexDirection:"column"},children:Xk(e).map(e=>Yt.jsx(Tq,{sectionIndex:e},t({sectionIndex:e})))}),Yt.jsx(Zk,{})]})}),Lq=z(e=>Yt.jsx(Mx,{atoms:aS,atomFamilies:sS,children:Yt.jsx(lS,{props:e,children:Yt.jsx(Pq,{})})})),Oq=(e,t)=>{if(!e)return;const n=e.qHyperCube.qDimensionInfo.filter(e=>void 0!==e.cId).filter(dy).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"dimension"})),r=e.qHyperCube.qMeasureInfo.filter(e=>void 0!==e.cId).filter(dy).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"measure"}));return[...n,...r]},Nq=(e,t)=>{const n=[],r={};return e.forEach(e=>{r[e.id]=e}),Object.keys(t).forEach(e=>{const o=t[e],i=r[e];i&&(n[o]=i)}),n},jq=(e,t,n)=>{if(!n||((e,t)=>{const n=e.map(e=>e.id).sort(),r=Object.keys(t).sort();return n.join(",")!==r.join(",")})(e,n)){const t=(e=>{const t={};return e.forEach((e,n)=>{t[e.id]=n}),t})(e);return Nq(e,t)}const r=t.map(e=>e.id),o=Object.keys(n).sort((e,t)=>n[e]-n[t]).filter(e=>r.includes(e)),i={...n};for(let e=0;e<r.length;e++){const t=o[e],a=r[e];t!==a&&(i[a]=n[t])}let a=0;const s=Object.entries(i).sort((e,t)=>e[1]-t[1]).map(([e])=>[e,a++]);return s.forEach(([e,t])=>{i[e]=t}),Nq(e,i)},_q=Og(e=>{const t=e(yy);return Oq(t,!0)}),zq=Og(e=>{const t=e(vy);return Oq(t,!1)}),Fq=Og(e=>{const t=e(xy),n=e(vy);if(!t||!n)return[];const r=e(zq),o=e(_q),i=n.qHyperCube.qColumnOrder??[],a=e(my);if(void 0===o||void 0===r)return[];if(a){return[...[...r,...o]].sort((e,t)=>(a[e.id]??1/0)-(a[t.id]??1/0))}const s=t.qHyperCubeDef.qLayoutExclude?.allColumnOrder??{},l=((e,t)=>e.length===t?e:Array.from(Array(t).keys()))(i,r.length),c=((e,t)=>e.length>0?e.map(e=>t[e]):t)(l,r),u=[...c,...o];return jq(u,c,s)}),$q=Og(e=>{const t=e(Fq),n=e(ry);return t.filter(n)}),Bq=Og(e=>e($q).length),Hq=Og(e=>({sectionIndex:t,itemIndex:n})=>{const r=e($q);if(void 0===n)return`columns-section-${t}`;const o=r?.[n];return o?.id??`missing-item-${t}-${n}`}),Vq=Hx(e=>Og(t=>t($q)[e]),(e,t)=>e===t),Wq=Og(e=>e(Fq).map(e=>e.id)),Uq=Og(e=>e($q).map(e=>e.id)),Gq=Og(e=>{const t=e(Fq),n={};return t.forEach(e=>{n[e.id]=e.type}),n}),Kq=Og(null,(e,t,{event:n,id:r,toIndex:o})=>{const i=e(Zv),a=e(iy),s=e(Wq),l=e(Uq);if(void 0===i||null===a||void 0===s||void 0===l)return;if(n.operation.canceled)return;const c=l[o];if(!c)return;const u=((e,t,n)=>{const r=n.findIndex(t=>t===e),o=n.findIndex(e=>e===t);if(-1===r||-1===o||r===o)return n;const i=[...n],[a]=i.splice(r,1);return i.splice(o,0,a),i})(r,c,s);t(my,Object.fromEntries(u.map((e,t)=>[e,t]))),a.add(async()=>{i.updateColumnOrders(u)})}),Yq="ChartExploration.Table.ColumnSectionEmpty.Title",Xq="ChartExploration.Table.NoColumnsFound.Title",Jq="#177fe6",Zq=Og(e=>{const t=e(ey),n=e(ny).length>0,r=(e=>e?Xq:Yq)(n),o=(e=>e?"":"ChartExploration.Table.ColumnSectionEmpty.Message")(n);return()=>({title:t(r),message:""===o?"":t(o)})}),Qq=({itemIndex:e})=>{const t=Gg(Vq(e));if(!t)return null;const n=t.title;return Yt.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})},eP=Og(e=>{const t=e(Uq),n=e(My),r=t.filter(e=>n.has(e)).length;return 0===t.length?"disabled":0===r?"none":r===t.length?"all":"some"}),tP=Og(null,(e,t)=>{const n=e(Uq),r=e(My),o="all"!==e(eP)&&"disabled"!==e(eP),i=[],a=new Set(e(Iy)),s=new Set(e(Ay));if(o){const t=new Set(n.filter(e=>!r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!0,type:e(Gq)[t]}))),i.forEach(e=>a.add(e.id)),i.forEach(e=>s.delete(e.id))}else{const t=new Set(n.filter(e=>r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!1,type:e(Gq)[t]}))),i.forEach(e=>a.delete(e.id)),i.forEach(e=>s.add(e.id))}t(Iy,a),t(Ay,s),Xv({items:i,handler:e(Zv),model:e(Jv),handlerQueue:e(iy),logToSentry:e(db)})}),nP=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},rP=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,oP=e=>{const{currentTarget:t}=e,n=rP(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),o=e?.querySelector(".exploration-section-header");if(o)return o;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const o=r.getElementsByClassName(t);return o.length>0?o[o.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},iP=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===Vm.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},aP=(e,t)=>{const{key:n}=e;switch(n){case Vm.Tab:e.shiftKey||(vm(e),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),o=r?.getElementsByClassName("exploration-item-focus")[0];o&&nP(o)})(e,t));break;case Vm.Down:(e=>{e.preventDefault();const t=e.currentTarget.closest(".exploration-list"),n=t?.getElementsByClassName("exploration-item-focus")[0];n&&nP(n)})(e);break;case Vm.Enter:case Vm.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},sP=({children:e})=>Yt.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),lP=({children:e})=>{const t=k(null),n=Gg(eP),[,r]=Yg(tP),o=Gg(ey),i={ref:t,toggleAllCheckboxes:r,checkState:n};return Yt.jsxs(md,{ref:t,"aria-label":o("Common.Columns"),className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{aP(e,i)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${Jq} inset`}},children:[Yt.jsx($d,{inputProps:{"aria-label":o("ChartExploration.Header.ToggleAll"),..."some"===n&&{"aria-checked":"mixed"}},disabled:"disabled"===n,checked:"all"===n,indeterminate:"some"===n,onChange:r,size:"small",style:{flexShrink:0,padding:9}}),Yt.jsx(sP,{children:e})]})},cP=()=>{const e=Gg(ey);return Yt.jsx(lP,{children:e("Common.Columns")})},uP=F((e,t)=>Yt.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:Yt.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),dP=F((e,t)=>Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[Yt.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),Yt.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]})),pP=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),fP=Ec("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),hP=Ec(pP)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${Jq} inset`}})),mP=e=>{const t=e.key===Vm.Down?(e=>{const{currentTarget:t,key:n}=e,r=rP(t),o=t.closest("li");let i=o?.nextElementSibling?.getElementsByClassName(r)[0];return i||(i=iP(t,n),i)?i:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):oP(e);t&&nP(t)},gP=(e,t)=>{const{key:n}=e;switch(n){case Vm.Tab:if(e.shiftKey)vm(e),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&nP(e))}const n=oP(e);n&&nP(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void nP(t);const r=oP(e);r&&nP(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return nP(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&nP(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&nP(n),!0}const o=iP(n,r);if(!o)return!1;nP(o)}return!0})(e,t);n?vm(e):e.stopPropagation()}break;case Vm.Enter:case Vm.Space:vm(e),((e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&nP(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void nP(e)}n===t.items.explorationItemFocusRef.current&&t.toggleItem()})(e,t);break;case Vm.Down:case Vm.Up:vm(e),mP(e)}},bP=({children:e})=>Yt.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),vP={dimension:uP,measure:dP},yP=({id:e,dragHandleRef:t,title:n,type:r,itemIndex:o})=>{const[i,a]=Yg(My),s=Gg(ey),l=k(null),c=k(null),u=k(null);P(()=>{t&&l.current&&t(l.current)},[t]);const d=vP[r],p=!i.has(e),f={id:e,itemIndex:o,toggleItem:()=>{a({id:e,isAlternative:p,type:r})},items:{explorationItemRef:l,explorationItemFocusRef:c,draggableIconRef:u}};return Yt.jsxs(md,{ref:l,className:"exploration-item",onClick:t=>{t.stopPropagation(),-1!==e&&a({id:e,isAlternative:p,type:r})},onKeyDown:e=>{gP(e,f)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:n,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${Jq} inset`}},children:[Yt.jsxs(md,{ref:c,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{gP(e,f)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${Jq} inset`}},children:[Yt.jsx($d,{checked:i.has(e),"aria-label":s("ChartExploration.ListItem.Label",n),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0}}),Yt.jsx(md,{children:Yt.jsx(d,{height:12,style:{opacity:1,marginRight:"8px"}})}),Yt.jsx(bP,{children:n})]}),Yt.jsx(hP,{ref:u,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{gP(e,f)}})]})},xP=({id:e,itemIndex:t,dragHandleRef:n})=>{const r=Gg(Vq(t));return r?Yt.jsx(yP,{id:e,dragHandleRef:n,title:r.title,type:r.type,itemIndex:t}):null},SP=()=>{const e=Gg(Bq),t=Gg(Zq),n=Gg(Sy),r=Gg(Hq),o=Kg(Kq);return!n&&Yt.jsx(Lq,{numberOfSections:1,numberOfItemsInSection:[e],keyExtractor:r,emptyTexts:t,onDragEnd:o,dragOverlayRenderer:Qq,headerRenderer:cP,itemRenderer:xP})},wP=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})})),CP=()=>{const[e,t]=Yg(ny),n=Gg(ey),r=w.useRef(null),o=Gg(Bq),i=O(e=>{t(e.target.value)},[t]),a=0===e.length||0===o?n("Common.Search.NoResultsAvailable"):n("ChartExploration.Table.Search.ResultsFound",o.toString());return Yt.jsxs(md,{ref:r,style:{position:"sticky",top:0,zIndex:1,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:2,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[Yt.jsx(fP,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:a}),Yt.jsx(Qf,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":n("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:n("Common.Search"),onChange:i,startAdornment:Yt.jsx(Dp,{position:"start",children:Yt.jsx(wP,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},EP=e=>{const t=lm();return Yt.jsx(Ac,{theme:t,children:Yt.jsx($g,{children:Yt.jsx(ky,{props:e,children:Yt.jsxs(md,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[Yt.jsx(CP,{}),Yt.jsx(SP,{})]})})})})},IP=e=>e.flags.isEnabled("VNA-655-STRAIGHT_TABLE_NEW_EXPLORATION")?{component:EP,classification:{tags:["exploration"],exclusive:!0}}:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};var AP=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(AP||{}),RP=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(RP||{}),DP=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(DP||{}),MP=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(MP||{});const kP=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,TP=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t,r=`[${e.field}]${e.exclude?"-":""}={`,o="}";switch(e.type){case DP.SEARCH:t=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case AP.BEGINNING_OF_WORD:t="*^",n="*";break;case AP.ENDS_WITH:t="*";break;case AP.STARTS_WITH:n="*";break;case AP.MATCHES_EXACTLY:break;case AP.CONTAINS:default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case DP.CONDITION:t=(e=>{const{options:t}=e,n=t?.mode===RP.GENERAL,r=t?.modifier?.type===MP.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";n&&r?(i=`${t.conditionField?.aggregator}(${kP(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(i="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(i=`${t.conditionField?.aggregator}(${kP(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${kP(t.firstValue?.field)})`):(i=`${kP(e.field)}`,a=`${t.firstValue?.aggregator}(total ${kP(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let c="";if(o.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${kP(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${kP(t.secondValue?.field)})`,a=` and ${i}`),c=`${a}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case DP.CLEAR_SELECTION:t=`[${e.field}]=`,r="",o="";break;case DP.VALUES:default:t=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==t&&n.push(`${r}${t}${o}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},qP=[];for(let e=0;e<256;++e)qP.push((e+256).toString(16).slice(1));const PP=new Uint8Array(16);function LP(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const t=e.random??e.rng?.()??crypto.getRandomValues(PP);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(qP[e[t+0]]+qP[e[t+1]]+qP[e[t+2]]+qP[e[t+3]]+"-"+qP[e[t+4]]+qP[e[t+5]]+"-"+qP[e[t+6]]+qP[e[t+7]]+"-"+qP[e[t+8]]+qP[e[t+9]]+"-"+qP[e[t+10]]+qP[e[t+11]]+qP[e[t+12]]+qP[e[t+13]]+qP[e[t+14]]+qP[e[t+15]]).toLowerCase()}(t)}(e)}const OP=()=>crypto?.randomUUID?.()??LP(),NP=({qDimensions:e,qMeasures:t})=>[...e.map(e=>({id:e.qDef.cId,isDimension:!0,def:e})),...t.map(e=>({id:e.qDef.cId,isDimension:!1,def:e}))],jP=({previousColumns:e,nextColumns:t,qInterColumnSortOrder:n})=>{const r=new Map(e.map((e,t)=>[t,e.qDef.cId])),o=new Map(t.map((e,t)=>[e.qDef.cId,t]));return n.map(e=>{const t=r.get(e);return(void 0===t?void 0:o.get(t))??e})};class _P extends c{#c;constructor(e,t){super(e),this.#c=t}#u(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.keys(t).length;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:{...t,...Object.fromEntries(e.map((e,t)=>[e,n+t]))}}}#d(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:Object.fromEntries(n.map(([e],t)=>[e,t]))}}#p(e,t){const n=this.hcProperties.qLayoutExclude?.allColumnOrder??{},r={};for(const[o,i]of Object.entries(n))r[o===e?t:o]=i;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:r}}async addDimension(e,t=!1){const n=await this.addDimensions([e],t);return 0===n.length?void 0:n[0]}async addDimensions(e,t=!1){const n=await super.addDimensions(e,t);return this.#u(n.map(e=>e.qDef.cId)),n}async removeDimension(e,t=!1){const n=await this.removeDimensions([e],t);return 0===n.length?void 0:n[0]}async removeDimensions(e,t=!1){const n=await super.removeDimensions(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceDimension(e,t){const n=this.getDimensions()[e].qDef.cId,r=await super.replaceDimension(e,t),o=r.qDef.cId;return this.#p(n,o),r}async addMeasure(e,t=!1){const n=await this.addMeasures([e],t);return 0===n.length?void 0:n[0]}async addMeasures(e,t=!1){const n=await super.addMeasures(e,t);return this.#u(n.map(e=>e.qDef.cId)),n}async removeMeasure(e,t=!1){const n=await this.removeMeasures([e],t);return 0===n.length?void 0:n[0]}async removeMeasures(e,t=!1){const n=await super.removeMeasures(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceMeasure(e,t){const n=this.getMeasures()[e].qDef.cId,r=await super.replaceMeasure(e,t),o=r.qDef.cId;return this.#p(n,o),r}async#f(e){const t=this.getMeasure(e);if(t){const n=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#h(e){const t=this.getMeasure(e);if(t){const n=this.getMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#m(e){const t=this.getDimension(e);if(t){const n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#g(e){const t=this.getDimension(e);if(t){const n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!1),await super.addDimension(t,!0,this.getAlternativeDimensions().length)}}#b(){const e=this.hcProperties.qLayoutExclude?.allColumnOrder??{};return Object.entries(e).sort((e,t)=>e[1]-t[1]).map(([e])=>e)}async moveDimensionFromAlternative(e){await this.#m(e);const t=this.#b();this.updateColumnOrders(t)}async moveDimensionToAlternative(e){await this.#g(e);const t=this.#b();this.updateColumnOrders(t)}async moveMeasureFromAlternative(e){await this.#f(e);const t=this.#b();this.updateColumnOrders(t)}async moveMeasureToAlternative(e){await this.#h(e);const t=this.#b();this.updateColumnOrders(t)}async toggleAlternatives(e,t){for(const t of e)"dimension"===t.type?await(t.isAlternative?this.#m(t.id):this.#g(t.id)):await(t.isAlternative?this.#f(t.id):this.#h(t.id));this.updateColumnOrders(t)}updateColumnOrders(e){const t=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,nextAllColumnOrderById:r})=>{const o=NP({qDimensions:e,qMeasures:t}),i=[...e,...t],a=new Map(r.map((e,t)=>[e,t])),s=o.toSorted((e,t)=>{const n=a.get(e.id),r=a.get(t.id);return void 0===n||void 0===r?0:n-r}),l=s.filter(e=>e.isDimension).map(e=>e.def),c=s.filter(e=>!e.isDimension).map(e=>e.def),u=[...l,...c],d=new Map(u.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:l,qMeasures:c,qInterColumnSortOrder:jP({previousColumns:i,nextColumns:u,qInterColumnSortOrder:n}),qColumnOrder:s.map(e=>d.get(e.id)).filter(e=>void 0!==e)}})({qDimensions:this.hcProperties.qDimensions,qMeasures:this.hcProperties.qMeasures,qInterColumnSortOrder:this.hcProperties.qInterColumnSortOrder,nextAllColumnOrderById:e});this.hcProperties.qDimensions=t.qDimensions,this.hcProperties.qMeasures=t.qMeasures,this.hcProperties.qColumnOrder=t.qColumnOrder,this.hcProperties.qInterColumnSortOrder=t.qInterColumnSortOrder,this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:e.reduce((e,t,n)=>(e[t]=n,e),{})}}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:OP(),qTags:Array.isArray(t)?t:[],isNumeric:n};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=TP(o),i}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#v(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=TP(t),t}removeFilters(e){if(0===e.length)return[];const t=[...e].sort((e,t)=>t-e),n=this.getFilters().filter((t,n)=>e.includes(n));for(const e of t)this.#v(e);return n}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#c.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const zP=(e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;return e.splice(n,1),n};function FP(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function $P(e){return e>0?0:1}function BP(e){return e.translator.get("Visualizations.Descriptions.Column")}function HP(e){return{measures:{min:$P,max:1e3,description:()=>BP(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;FP(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties,i=(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r;zP(o,i)}},dimensions:{min:$P,max:1e3,description:()=>BP(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return FP(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(e?.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;zP(o,r)}}}}const VP=e=>{const t=new _P({},e.translator),n=lb(e);return{properties(r){if(!(e=>"qHyperCubeDef"in e&&"sn-table"===(({visualization:e,qInfo:t})=>e??t?.qType)(e))(r))return r;const{qHyperCubeDef:o}=r,i=o.qLayoutExclude?.qHyperCubeDef,a=e.flags.isEnabled("qcb-35151-fix-duplicate-columns"),s=new Set,l=[];let c=0,u=0,d=0;[...o.qDimensions,...o.qMeasures,...i?.qDimensions??[],...i?.qMeasures??[]].forEach(e=>{c++;const t=e.qDef?.cId;if((e=>"string"==typeof e&&e.length>0)(t))if(s.has(t)){if(u++,a){const t=OP();e.qDef={...e.qDef,cId:t},l.push(t)}}else s.add(t),l.push(t);else if(d++,a){const t=OP();e.qDef={...e.qDef,cId:t},l.push(t)}});const p=r.components?.find(e=>"theme"===e.key);p?.nullValues&&!p.dimensionNullValues&&(p.dimensionNullValues={...p.nullValues});const f=u+d;return 0===f?r:(n.warn({msg:"migrate: column cId issues detected",payload:{issueCount:f,totalColumnCount:c,duplicateCount:u,missingCount:d}}),a?(t.setProperties(r),t.updateColumnOrders(l),n.warn({msg:"migrate: column cId cleanup completed",payload:{replacementCount:f}}),r):r)}}};let WP=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.Bar="bar",e.EditableText="editableText",e.EditableSelector="editableSelector",e.EditableDate="editableDate",e}({}),UP=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const GP=e=>{switch(e?.type){case"url":return WP.Link;case"image":return WP.Image;case"indicator":return WP.Indicator;case"miniChart":return WP.MiniChart;case"bar":return WP.Bar;default:return WP.Text}},KP=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:o}=r.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),YP=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>GP(e.qDef.representation)===WP.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;const l=i?.indexOf(e)??1/0;return(r?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},XP=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:KP({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>GP(e.qDef.representation)===WP.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>GP(e.qDef.representation)===WP.Link&&e.qDef.representation?.urlPosition===UP.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>GP(e.qDef.representation)===WP.Link&&e.qDef.representation?.urlPosition===UP.Attribute},...YP(n)}},JP=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,o=!r?.("tableImages")&&t[WP.Image],i=!r?.("qMiniChartDef")&&t[WP.MiniChart],a=!r?.("tableIndicators")&&t[WP.Indicator],s=!!t[WP.Bar],l=o&&t[WP.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&l)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&n.push({value:"miniChart",translation:"Common.MiniChart"}),s&&n.push({value:"bar",translation:"SNTable.Bar.Representation"}),n})(n)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>GP(e.qDef.representation)===WP.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}},ZP=(e,t,n)=>({type:"string",component:"expression",expressionType:"measure",ref:"qAttributeExpressions",schemaIgnore:!0,translation:t,defaultValue:"",tid:`${e}ByExpression`,show:n,convertFunctions:{get:(t,n,r,o)=>o.qAttributeExpressions?.find(t=>t.id===e)?.qExpression??"",set:(t,n,r,o,i)=>{const a=i.qAttributeExpressions??[],s=a.findIndex(t=>t.id===e);s>=0?t?a[s].qExpression=t:a.splice(s,1):t&&a.push({id:e,qExpression:t,qAttribute:!0}),i.qAttributeExpressions=a}}}),QP=(e,t)=>e?.qDef?.representation?.[t],eL=e=>GP(e?.qDef?.representation)===WP.Bar,tL=[{value:"solid",translation:"SNTable.Bar.SingleColor"},{value:"expression",translation:"SNTable.Bar.ByExpression"}],nL=(e,t,n)=>({component:"expression",ref:"qExpression",expressionType:"measure",translation:t,defaultValue:"",id:e,tid:n,show:!1}),rL=e=>{if(!e[WP.Bar])return{};const t=e=>eL(e)&&"manual"===QP(e,"barRangeMode");return{barColorMode:{type:"string",component:"dropdown",ref:"qDef.representation.barColorMode",translation:"SNTable.Bar.BarColor",defaultValue:"solid",show:eL,tid:"barColorMode",options:tL},barColor:{ref:"qDef.representation.barColor",type:"object",component:"color-picker",translation:"SNTable.Bar.BarColor",defaultValue:{index:6,color:null},show:e=>eL(e)&&"expression"!==QP(e,"barColorMode"),tid:"barColor",dualOutput:!0},barColorExpression:ZP("barColor","SNTable.Bar.ColorExpression",e=>eL(e)&&"expression"===QP(e,"barColorMode")),barLabelColorMode:{type:"string",component:"dropdown",ref:"qDef.representation.barLabelColorMode",translation:"SNTable.Bar.LabelColor",defaultValue:"solid",show:eL,tid:"barLabelColorMode",options:tL},barLabelColor:{ref:"qDef.representation.barLabelColor",type:"object",component:"color-picker",translation:"SNTable.Bar.LabelColor",show:e=>eL(e)&&"expression"!==QP(e,"barLabelColorMode"),tid:"barLabelColor",dualOutput:!0},barLabelColorExpression:ZP("barLabelColor","SNTable.Bar.LabelColorExpression",e=>eL(e)&&"expression"===QP(e,"barLabelColorMode")),barWidthExpression:ZP("barWidth","SNTable.Bar.WidthExpression",eL),barOffsetExpression:ZP("barOffset","SNTable.Bar.OffsetExpression",eL),barLabelExpression:ZP("barLabel","SNTable.Bar.LabelExpression",eL),barRangeMode:{type:"string",component:"dropdown",ref:"qDef.representation.barRangeMode",translation:"SNTable.Bar.Range",defaultValue:"auto",show:eL,tid:"barRangeMode",options:[{value:"auto",translation:"Common.Auto"},{value:"manual",translation:"Common.Custom"}]},barRangeMin:{type:"number",ref:"qDef.representation.barRangeMin",translation:"SNTable.Bar.RangeMin",expressionType:"ValueExpression",expression:"optional",defaultValue:0,show:t,tid:"barRangeMin"},barRangeMax:{type:"number",ref:"qDef.representation.barRangeMax",translation:"SNTable.Bar.RangeMax",expressionType:"ValueExpression",expression:"optional",defaultValue:100,show:t,tid:"barRangeMax"},barEnd:{type:"string",component:"dropdown",ref:"qDef.representation.barEnd",translation:"SNTable.Bar.End",defaultValue:"none",show:eL,tid:"barEnd",options:[{value:"none",translation:"SNTable.Bar.End.None"},{value:"circle",translation:"SNTable.Bar.End.Circle"},{value:"box",translation:"SNTable.Bar.End.Square"}]}}};var oL,iL={};var aL=(oL||(oL=1,function(e){(()=>{var t={828(e,t,n){n.r(t),n.d(t,{default:()=>Ie});var r=n.cjs(function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},l=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,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(n in t)r=c(d,n),d!==(o=c(t,n))&&(h&&o&&(s(o)||(i=a(o)))?(i?(i=!1,u=r&&a(r)?r:[]):u=r&&s(r)?r:{},l(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}),o=n.n(r);const i=(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},a=(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i},s={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]},l=" ( ",c=" ) ";function u(e){return l+e+c}function d(e,t={}){if(e.qLibraryId){const n=function(e,t){if(!t)return null;let n,r;for(n=0;n<t.length;n++)if(r=t[n],r.qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}const n=function(e,t){if(!t)return null;let n,r;const o=function(e){let t=e.trim();"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t}(e);for(n=0;n<t.length;n++){if(r=t[n],r.qName===o)return r;if(r.qDerivedFieldData)for(let e=0;e<r.qDerivedFieldData.qDerivedFieldLists.length;++e){const t=r.qDerivedFieldData.qDerivedFieldLists[e];for(let e=0;e<t.qFieldDefs.length;++e){const n=t.qFieldDefs[e];if(n.qName===o)return n}}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function p(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){const{crossAllDimensions:n}=e;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){const t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(e=0){return`[$(=Replace(GetObjectField(${e}),']',']]'))]`}function g(e,t){const{crossAllDimensions:n}=e;return 2===t&&n?"Above(Total ":"Above("}function b(e){return void 0===e?")":`, 0, ${e})`}function v(e){return`Replace(Replace(${e},'''',''''''),'$','$''&''')`}function y(e,t){return e?`${t}={">=$(=Min(${t}))<=$(=Max(${t}))"}`:`${t}={"=Only({1}${t})>='$(=${v(`MinString(${t})`)})' and Only({1}${t})<='$(=${v(`MaxString(${t})`)})'"}`}function x({modifier:e={},dimensions:t,dimensionAndFieldList:n,funcComp:r="Sum",valueComp:o="0"}){const{showExcludedValues:i}=e;if(!i)return"";if(t&&1===t.length)return`${r}({1<${y(d(t[0],n),m(0))}>}${o})`;if(t&&2===t.length){const e=d(t[0],n),i=d(t[1],n),a=m(0),s=m(1);return`${r}({1<${y(e,a)},${y(i,s)}>}${o})`}return`${r}({1}${o})`}function S(e){return`${e}(`}function w({properties:e,layout:t}){return a(e,"qHyperCubeDef.qDimensions",a(t,"qHyperCube.qDimensionInfo",[])).length}const C={isFullRange:p,getNumDimensions:w,getExpressionWithExcludedComp:function({expression:e,modifier:t,dimensions:n,dimensionAndFieldList:r,treatMissingAsNull:o}){const i=u(h(e)),{showExcludedValues:a}=t;if(!a)return i;const s=x({modifier:t,dimensions:n,dimensionAndFieldList:r}),l=o?"":", 0";return n&&1===n.length?`If(Count(${m(0)}) > 0, ${i} + ${s}${l})`:n&&2===n.length?`If(Count(${m(0)}) * Count(${m(1)}) > 0, ${i} + ${s}${l})`:i},getRowNoComp:f,getNumStepComp:function(e,t){if(!p(e)){const{steps:t}=e;return"number"!=typeof t||Number.isNaN(t)?6:t}return f(e,t)},getAboveCompPrefix:g,getAboveCompSuffix:b,getAboveComp:function(e,t,n,r){return g(e,t)+n+b(r)},getFunctionPrefix:S,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return S(e)+t+")"},getAggrComp:function(e,t,n){return`Aggr(${e}, ${t}, ${n})`},getExcludedComp:x,needDimension:function({modifier:e,properties:t,layout:n}){return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(e)&&2===w({properties:t,layout:n})},getDimComp:function(e,t){const n=function(e,t=0){return e[t].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;const o=["Descending","Ascending"],i=n.qSortByNumeric?`(Numeric, ${o[(n.qSortByNumeric+1)/2]})`:"",a=n.qSortByAscii?`(Text, ${o[(n.qSortByAscii+1)/2]})`:"";return n.qSortByNumeric&&n.qSortByAscii?`(${r}, ${i}, ${a})`:n.qSortByNumeric?`(${r}, ${i})`:n.qSortByAscii?`(${r}, ${a})`:r},simplifyExpression:h,extractInputExpression:function({outputExpression:e,modifier:t}){if(!t)return;const n=e.indexOf(l);if(-1===n)return;const r=e.indexOf(c);return-1!==r?e.substring(n+3,r):void 0},initModifier:function(e,t){Object.keys(t).forEach(n=>{void 0===e[n]&&(e[n]=t[n])})},isNumeric:d,isApplicable:function({properties:e,layout:t,minDimensions:n=1,maxDimensions:r=2}){if(!e&&!t)return!0;const o=w({properties:e,layout:t});return o>=n&&o<=r},getExpressionWithMarkers:u,canExtract:function(e){const t=e.indexOf(l),n=e.indexOf(c);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){return`[${e?e.replace(/]/g,"]]"):e}]`},generateTSDExpression:function(e,t,n){let r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){const o=n.qHyperCubeDef.qMeasures.find(t=>t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null);o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?`[${o.qDef.qLabel}]`:o.qDef.base.qDef);const i=function(e){const t=s.OPTIONS.find(t=>t.value===e.decomposition);return t?s.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r=`${i}(${r}, ${e.steps})`}return r},getDecomposition:function(e){let t="observed";return Object.values(s.EXPRESSIONS).find(n=>{const r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return s.EXPRESSIONS[n]&&r.includes(s.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}},E=o().bind(null,!0),I={},{isArray:A}=Array;function R(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function D(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function k(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach((t,o)=>{if(o===n.length)return;r=+t;const i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}),e}function T(e,t){let n=!0;if(R(e)&&R(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(r=>{T(e[r],t[r])||(n=!1)}),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}I.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach(o=>{const i=function(e){return e?E({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;T(i,a)||M(t,o)||(D(a)?r.push({op:"add",path:s,value:i}):R(i)&&R(a)?r=r.concat(I.generate(a,i,s)):A(i)&&A(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&D(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return r;if(!D(t[0])&&D(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(I.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))}),Object.keys(e).forEach(o=>{D(t[o])&&!M(e,o)&&r.push({op:"remove",path:`${n}/${o}`})}),r},I.apply=function(e,t){t.forEach(t=>{let n=k(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&Number.isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(A(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(A(o)&&A(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(R(o)&&R(t.value))a=o,Object.keys(a).forEach(e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!M(a,e)&&delete a[e]}),E(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=k(e,t.from);A(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(A(n)?n.splice(+r,1):delete n[r]);var a})},I.clone=function(e){return E({},e)},I.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):E(e,t)};const q=I,P={saveSoftProperties(e,t,n){if(!e)return Promise.resolve();let r=q.generate(t,n);return o()(!0,t,n),r&&r.length?(r=r.map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})),e.applyPatches(r,!0)):Promise.resolve()}},L="accumulation";function O(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===L)return n[e]}function N(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===L)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}const j={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""},_={translationKey:"properties.modifier.accumulation",needDimension:C.needDimension,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),generateExpression({expression:e,modifier:t,properties:n,layout:r,numDimensions:o,dimensionAndFieldList:i}){if(!t)return e;let s=o;void 0===s&&(s=C.getNumDimensions({properties:n,layout:r}));const l=a(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:e,modifier:t,dimensions:l,dimensionAndFieldList:i}),u=C.getNumStepComp(t,s),d=C.getAboveComp(t,s,c,u);let p=C.getRangeComp("RangeSum",d);if(C.needDimension({modifier:t,properties:n,layout:r})){const e=C.getDimComp(l,1),n=C.getDimComp(l,0),r=C.getAggrComp(p,e,n);p=t.showExcludedValues?C.getExcludedComp({modifier:t,dimensions:l,dimensionAndFieldList:i,valueComp:r}):r}return p},extractInputExpression:C.extractInputExpression,initModifier(e){C.initModifier(e,j)},enableTotalsFunction:()=>!1,propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{primaryDimension:{refFn:t=>`${N(t,e)}.accumulationDimension`,type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options(e,t){const{qDimensionInfo:n}=t.layout.qHyperCube;return n.map((e,t)=>({value:t,label:e.qGroupFallbackTitles[0]}))},show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},crossAllDimensions:{refFn:t=>`${N(t,e)}.crossAllDimensions`,type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},fullRange:{refFn:t=>`${N(t,e)}.fullAccumulation`,type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:t=>`${N(t,e)}.steps`,type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change(t){const n=O(t,e);if(n){const{steps:e}=n;n.steps="number"!=typeof e||Number.isNaN(e)?6:Math.abs(e)}},show(t){const n=O(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:t=>`${N(t,e)}.showExcludedValues`,type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(L))return!1;const i=O(t,e);return i&&!i.disabled}}}},z="movingAverage";function F(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===z)return n[e]}function $(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===z)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}const B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1},H={translationKey:"properties.modifier.movingAverage",needDimension:C.needDimension,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),generateExpression({expression:e,modifier:t,properties:n,layout:r,numDimensions:o,dimensionAndFieldList:i}){if(!t)return e;let s,l=o;void 0===l&&(l=C.getNumDimensions({properties:n,layout:r}));const c=a(n,"qHyperCubeDef.qDimensions",[]),u=t.showExcludedValues&&t.nullSuppression,d=C.getExpressionWithExcludedComp({expression:e,modifier:t,dimensions:c,dimensionAndFieldList:i,treatMissingAsNull:u}),p=C.getNumStepComp(t,l),f=C.getAboveComp(t,l,d,p);if(t.nullSuppression)s=C.getRangeComp("RangeAvg",f);else{const e=C.getRangeComp("RangeSum",f),n=function(e,t){const n=C.getRowNoComp(e,t);if(!C.isFullRange(e)){const{steps:t}=e;return`RangeMin(${"number"!=typeof t||Number.isNaN(t)?6:t}, ${n})`}return n}(t,l);s=`${e} / ${n}`}let h=s;if(C.needDimension({modifier:t,properties:n,layout:r})){const e=C.getDimComp(c,1),n=C.getDimComp(c,0),r=C.getAggrComp(h,e,n);h=t.showExcludedValues?C.getExcludedComp({modifier:t,dimensions:c,dimensionAndFieldList:i,funcComp:"Only",valueComp:r}):r}return h},extractInputExpression:C.extractInputExpression,initModifier(e){C.initModifier(e,B)},enableTotalsFunction:()=>!1,propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{primaryDimension:{refFn:t=>`${$(t,e)}.primaryDimension`,type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options(e,t){const{qDimensionInfo:n}=t.layout.qHyperCube;return n.map((e,t)=>({value:t,label:e.qGroupFallbackTitles[0]}))},show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},crossAllDimensions:{refFn:t=>`${$(t,e)}.crossAllDimensions`,type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},fullRange:{refFn:t=>`${$(t,e)}.fullRange`,type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:t=>`${$(t,e)}.steps`,type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change(t){const n=F(t,e);if(n){const{steps:e}=n;n.steps="number"!=typeof e||Number.isNaN(e)?6:Math.abs(e)}},show(t){const n=F(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:t=>`${$(t,e)}.showExcludedValues`,type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:t=>`${$(t,e)}.nullSuppression`,type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;const i=F(t,e);return i&&!i.disabled}}}},V="timeSeriesDecomposition";function W(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===V)return n[e]}function U(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===V)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}const G={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""},K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:C.needDimension,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),generateExpression:({expression:e,modifier:t,properties:n})=>t?C.generateTSDExpression(t,e,n):e,extractInputExpression:C.extractInputExpression,initModifier(e,t){C.initModifier(e,G),""===e.decomposition&&t&&(e.decomposition=C.getDecomposition(t))},propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{decomposition:{refFn:t=>`${U(t,e)}.decomposition`,type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:s.OPTIONS},steps:{refFn:t=>`${U(t,e)}.steps`,type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change(t,n){const r=W(t,e);if(r){const{steps:e}=r;r.steps="number"!=typeof e||Number.isNaN(e)?2:Math.abs(e),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(t=>(t.qDef.modifiers.map(t=>("timeSeriesDecomposition"===t.type?t.steps=e:t.steps=t.steps,t)),t))}},show(t){const n=W(t,e);return n&&!n.fullRange}}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;const i=W(t,e);return i&&!i.disabled}}}},Y="difference";function X(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===Y)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}const J={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""},Z={translationKey:"properties.modifier.difference",needDimension:C.needDimension,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),extractInputExpression:C.extractInputExpression,generateExpression({expression:e,modifier:t,properties:n,layout:r,numDimensions:o,dimensionAndFieldList:i}){if(!t)return e;let s=o;void 0===s&&(s=C.getNumDimensions({properties:n,layout:r}));const l=a(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:e,modifier:t,dimensions:l,dimensionAndFieldList:i});let u=`${c} - ${C.getAboveComp(t,s,c)}`;if(C.needDimension({modifier:t,properties:n,layout:r})){const e=C.getDimComp(l,1),n=C.getDimComp(l,0),r=C.getAggrComp(u,e,n);u=t.showExcludedValues?C.getExcludedComp({modifier:t,dimensions:l,dimensionAndFieldList:i,funcComp:"Only",valueComp:r}):r}return u},initModifier(e){Object.keys(J).forEach(t=>{void 0===e[t]&&(e[t]=J[t])})},enableTotalsFunction:()=>!1,propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{primaryDimension:{refFn:t=>`${X(t,e)}.primaryDimension`,type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options(e,t){const{qDimensionInfo:n}=t.layout.qHyperCube;return n.map((e,t)=>({value:t,label:e.qGroupFallbackTitles[0]}))},show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},crossAllDimensions:{refFn:t=>`${X(t,e)}.crossAllDimensions`,type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},showExcludedValues:{refFn:t=>`${X(t,e)}.showExcludedValues`,type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Y))return!1;const i=function(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===Y)return n[e]}(t,e);return i&&!i.disabled}}}},Q="normalization";function ee(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===Q)return n[e]}function te(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===Q)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}function ne(e,t){for(let n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}const re={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function oe(e){return 2===e?"{1}":""}function ie(e,t,n){return 1===e?`{$<${C.getFieldWithWrapper(t)}={'${n}'}>}`:""}function ae(e,t){return 0===e&&t>1||2===e?"Total":""}function se(e,t,n){return 0===e&&t>1?`<${C.getDimDefWithWrapper(n)}>`:""}const le={translationKey:"properties.modifier.normalization",needDimension:()=>!0,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),extractInputExpression:C.extractInputExpression,generateExpression({expression:e,modifier:t,properties:n,layout:r,numDimensions:o,dimensionAndFieldList:i}){if(!t)return e;let s=o;void 0===s&&(s=C.getNumDimensions({properties:n,layout:r}));const l=a(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:e,modifier:t,dimensions:l,dimensionAndFieldList:i});let u=c;const{selectionScope:d,dimensionalScope:p,field:f,value:h,primaryDimension:m,ignoreNegative:g}=t;return u=function(e,t,n,r,o,i,a,s){const l=oe(t),c=ie(t,n,r),u=""===l&&""===c?"":l||c,d=ae(o,i),p=se(o,i,a),f=function(e){const t=[];for(let n=0;n<e;n++)t[n]=C.getDimDefWithWrapper(n);return t.join(", ")}(i);return s?`(If(${e} < 0, null(), ${e}))/ Sum(${u} ${d}${p} Aggr(${u} RangeMax( 0, ${e}), ${f}))`:`${e}/ Sum(${u} ${d}${p} Aggr(${u} ${e}, ${f}))`}(c,d,f,h,p,s,m,g),u},initModifier(e){Object.keys(re).forEach(t=>{void 0===e[t]&&(e[t]=re[t])})},updateModifier(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:()=>!0,propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{selectionScope:{refFn:t=>`${te(t,e)}.selectionScope`,type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:n=>function(e,t,n){let r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];const{dimensionalScope:o}=ee(e,n);return r=function(e,t){if(1===e){const e=ne(t,0);t.splice(e,1)}return t}(o,r),r}(n,t,e)},field:{refFn:t=>`${te(t,e)}.field`,type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:(e,t,n)=>n.app.getFieldList().then(e=>e.map(e=>({label:e.qName,value:e.qName}))),show:t=>1===ee(t,e).selectionScope},value:{refFn:t=>`${te(t,e)}.value`,type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:t=>1===ee(t,e).selectionScope},dimensionalScope:{refFn:t=>`${te(t,e)}.dimensionalScope`,type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:(n,r)=>function(e,t,n,r){const o=t.layout.qHyperCube.qDimensionInfo.length;let i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope."+(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||`properties.modifier.dimensionalScope.${2===o?"respectAllDimensions":"respectDimension"}.tooltip`},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope."+(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||`properties.modifier.dimensionalScope.${2===o?"disregardAllDimensions":"disregardDimension"}.tooltip`}];i=function(e,t){if(e<2){const e=ne(t,0);t.splice(e,1)}return t}(o,i);const{selectionScope:a}=ee(e,r);return i=function(e,t){if(0===e){const e=ne(t,1);t.splice(e,1)}return t}(a,i),i}(n,r,t,e)},primaryDimension:{refFn:t=>`${te(t,e)}.primaryDimension`,type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options(e,t){const{qDimensionInfo:n}=t.layout.qHyperCube;return n.map((e,t)=>({value:t,label:e.qGroupFallbackTitles[0]}))},show:(t,n)=>0===(ee(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Q))return!1;const i=ee(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:oe,getFieldSelectionComp:ie,getTotalComp:ae,getSelectedDimComp:se},ce="library id deleted",ue="qDef.qDef",de="qDef.base.qDef",pe="qLibraryId",fe="qDef.base.qLibraryId",he="qDef.qLabel",me="qDef.qLabelExpression",ge="qDef.base.qLabel",be="qDef.base.qLabelExpression",ve="qDef.qAggrFunc",ye="qDef.base.qAggrFunc",xe="qDef.base",Se={getExpression(e){const t=a(e,de);return void 0!==t?t:a(e,ue)},getExpressionRef:e=>void 0!==a(e,de)?de:ue,getLibraryIdRef:e=>a(e,fe)?fe:pe,getLibraryId:e=>a(e,fe)||a(e,pe),getLabelRef:e=>a(e,xe)?ge:he,getLabelExpressionRef:e=>a(e,xe)?be:me},we={initBase(e,t){(t||we.isValid(e))&&(i(e,de,a(e,ue)),i(e,fe,a(e,pe)),i(e,ge,a(e,he)),i(e,be,a(e,me)))},restoreBase(e){we.isValid(e)&&(i(e,ue,a(e,de)),i(e,pe,a(e,fe)),i(e,he,a(e,ge)),i(e,me,a(e,be)),a(e,ve)&&a(e,ye)&&i(e,ve,a(e,ye)),delete e.qDef.base)},isValid(e){const t=a(e,de),n=a(e,fe);return void 0!==t||void 0!==n}},Ce=we,Ee={accumulation:_,movingAverage:H,difference:Z,normalization:le,timeSeriesDecomposition:K},Ie={modifiers:Ee,apply:Re,applyModifiers:De,cleanUpMeasure:Me,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:ke,getActiveModifier:Te,initBase:Ce.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(e=>Ee[e])},isApplicableSupportedModifiers:function({modifierTypes:e,properties:t,layout:n}){return Array.isArray(e)&&e.some(e=>Ee[e]&&Ee[e].isApplicable({properties:t,layout:n}))},measureBase:Se,limitedSorting:function({measures:e,properties:t,layout:n}){let r=!1,o=!1;return e.forEach(e=>{const i=Le(e);$e({modifiers:i,properties:t,layout:n})&&(r=!0,o=o||Ue({modifiers:i,properties:t,layout:n}))}),r&&!o},ifEnableTotalsFunction:qe},Ae={};function Re({model:e,properties:t,isSnapshot:n=!1,masterItem:r}={}){const i=!1;Ae[e.id]=Ae[e.id]||{isFirstTime:!0};const{isFirstTime:s}=Ae[e.id];if(Ae[e.id].isFirstTime=!1,t&&"object"==typeof t)return De({model:e,properties:t});const l=e?e.layout:void 0,c=a(l,"qSelectionInfo.qInSelections");if(n||c)return Promise.resolve(i);const u=a(l,"qHyperCube.qMeasureInfo"),{lastReloadTime:d}=Ae[e.id];if(Ae[e.id].lastReloadTime=a(e,"app.layout.qLastReloadTime"),ke({measures:u,layout:l})){const t=function({measures:e,layout:t,model:n,lastReloadTime:r}){return a(n,"app.layout.qLastReloadTime")!==r&&function({measures:e,properties:t,layout:n}){return!!Array.isArray(e)&&e.some(e=>Fe({measure:e,properties:t,layout:n}))}({measures:e,layout:t})}({measures:u,layout:l,model:e,lastReloadTime:d});return t||function({measures:e,layout:t,masterItem:n,isFirstTime:r}){return!!Array.isArray(e)&&(r||n||e.some(e=>function({measure:e,layout:t}){return $e({modifiers:Le(e),layout:t})?!e.base:!!e.base}({measure:e,layout:t})))}({measures:u,layout:l,masterItem:r,isFirstTime:s})?e.getEffectiveProperties().then(n=>{const a=o()(!0,{},n);Ne(a);const s=Ge(a);return Be({model:e}).then(o=>He({libraryIds:s,model:e}).then(i=>(t&&function({properties:e}){Pe(e).forEach(t=>function({measure:e,properties:t}){if(Fe({measure:e,properties:t})){let t=0;const{modifiers:n}=e.qDef;Array.isArray(n)&&n.forEach(n=>{if("object"==typeof n&&!n.disabled){if(t++,"object"!=typeof Ee[n.type])throw new Error(`Modifier "${n.type}" is not available`);if(t>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");const r=Ee[n.type].extractInputExpression({outputExpression:e.qDef.qDef,modifier:n});void 0!==r&&_e(e)&&C.simplifyExpression(e.qDef.base.qDef)!==C.simplifyExpression(r)&&(e.qDef.base.qDef=r)}})}}({measure:t,properties:e}))}({properties:a}),De({model:e,oldProperties:n,properties:a,runUpdateIfChange:!0,masterItem:r,libraryItemsProps:i,dimensionAndFieldList:o})))).catch(()=>Promise.resolve(i))}):Promise.resolve(i)}return function(e){return!!Array.isArray(e)&&e.some(e=>"object"==typeof e.base)}(u)?e.getEffectiveProperties().then(t=>function({model:e,properties:t}){const n=Ge(t);return Ke({model:e,libraryIds:n}).then(()=>{const n=o()(!0,{},t);return Pe(t).forEach(e=>Me(e)),We({oldProperties:n,newProperties:t,model:e})})}({model:e,properties:t})):Promise.resolve(i)}function De({model:e,oldProperties:t,properties:n,measures:r,runUpdateIfChange:i=!1,masterItem:s,libraryItemsProps:l,dimensionAndFieldList:c}){void 0===t&&(t=i?o()(!0,{},n):n),Ne(n);const u=Ge(n);return Ke({model:e,libraryIds:u,masterItem:s}).then(()=>function({measures:e,properties:t,model:n,libraryItemsProps:r,dimensionAndFieldList:i}){if(e||(e=Pe(t)),!e.length)return Promise.resolve();if(!r&&!ke({measures:e,properties:t}))return e.forEach(e=>Me(e)),Promise.resolve();const s=r?void 0:Ge(t);return Be({model:n,dimensionAndFieldList:i}).then(i=>He({libraryIds:s,model:n,libraryItemsProps:r}).then(n=>{e.forEach(e=>{const{modifiers:r}=e.qDef;n&&$e({modifiers:r,properties:t})?(function({measure:e,properties:t,libraryItemsProps:n,dimensionAndFieldList:r}){let i=0;Ce.isValid(e)||Ce.initBase(e,!0);const{modifiers:s,base:l}=e.qDef;Array.isArray(s)&&s.forEach(s=>{if("object"==typeof s&&!s.disabled){if(i++,"object"!=typeof Ee[s.type])throw new Error(`Modifier "${s.type}" is not available`);if(i>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ee[s.type].initModifier(s,e);const c=e.qLibraryId||l&&l.qLibraryId;c?function({measure:e,modifier:t,libraryId:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}){const s=i[n],l=s.qMeasure.qDef,c=""===l?l:Ee[t.type].generateExpression({expression:l,modifier:t,properties:r,dimensionAndFieldList:a});t.outputExpression=c,e.qDef.qDef=t.outputExpression,(e.qDef.qLabel||s.qMeasure.qLabel)&&(e.qDef.qLabel=e.qDef.base.qLabel||s.qMeasure.qLabel),(e.qDef.qLabelExpression||s.qMeasure.qLabelExpression)&&(e.qDef.qLabelExpression=s.qMeasure.qLabelExpression),e.qDef.quarantine&&e.qDef.quarantine.qNumFormat&&s.qMeasure.qNumFormat&&(e.qDef.qNumFormat=e.qDef.base.qNumFormat||s.qMeasure.qNumFormat,e.qDef.isCustomFormatted=s.qMeasure.isCustomFormatted),delete e.qLibraryId,e.qDef.coloring=s.qMeasure.coloring,t.base=o()(!0,{},e.qDef.base)}({measure:e,modifier:s,libraryId:c,properties:t,libraryItemsProps:n,dimensionAndFieldList:r}):function({measure:e,modifier:t,properties:n,dimensionAndFieldList:r}){"function"==typeof Ee[t.type].updateModifier&&Ee[t.type].updateModifier(t,n.qHyperCubeDef);const i=Se.getExpression(e),a=""===i?i:Ee[t.type].generateExpression({expression:i,modifier:t,properties:n,dimensionAndFieldList:r});t.outputExpression=a,e.qDef.qDef=t.outputExpression,e.qDef.base.qLabelExpression?e.qDef.qLabelExpression=e.qDef.base.qLabelExpression:e.qDef.qLabel=e.qDef.base.qLabel||i,t.base=o()(!0,{},e.qDef.base)}({measure:e,modifier:s,properties:t,dimensionAndFieldList:r}),function(e){const t=a(e,"qDef.qAggrFunc");"Expr"!==t||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(e)}})}({measure:e,properties:t,libraryItemsProps:n,dimensionAndFieldList:i}),je(e)):Me(e)})}))}({measures:r,properties:n,model:e,libraryItemsProps:l,dimensionAndFieldList:c}).then(()=>i?We({oldProperties:t,newProperties:n,model:e}):Promise.resolve(!1))).catch(()=>Promise.resolve(!1))}function Me(e){!function(e){const t=Le(e);return Array.isArray(t)&&t.some(e=>"object"==typeof e&&!e.disabled&&!Ee[e.type])}(e)?Ce.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,je(e)}function ke({measures:e,properties:t,layout:n}){return!!Array.isArray(e)&&e.some(e=>$e({modifiers:Le(e),properties:t,layout:n}))}function Te(e){const t=Le(e);if(Array.isArray(t))for(let e=0;e<t.length;e++){const n=t[e];if(Ee[n.type]&&!n.disabled)return n}}function qe(e){const t=Te(e);return!t||Ee[t.type].enableTotalsFunction(e)}function Pe(e){return a(e,"qHyperCubeDef.qMeasures",[]).concat(a(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Le(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Oe(e){return a(e,"outputExpression.qValueExpression.qExpr")||a(e,"outputExpression")}function Ne(e){Pe(e).forEach(e=>function(e){const t=Te(e);t&&(void 0!==t.outputExpression&&Oe(t)!==e.qDef.qDef?delete e.qDef.base:!Ce.isValid(e)&&t.base&&(e.qDef.base=o()(!0,{},t.base)))}(e))}function je(e){const t=Le(e);Array.isArray(t)&&t.forEach(t=>{"object"==typeof t&&(t.disabled||!Ee[t.type]&&Oe(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function _e(e){return e.base||e.qDef&&e.qDef.base}function ze(e){const t=_e(e);return e.qLibraryId||t&&t.qLibraryId}function Fe({measure:e,properties:t,layout:n}){return!ze(e)&&$e({modifiers:Le(e),properties:t,layout:n})}function $e({modifiers:e,properties:t,layout:n}){const r={};return Array.isArray(e)&&e.some(e=>!("object"!=typeof e||e.disabled||!Ee[e.type])&&(void 0===r[e.type]&&(r[e.type]=Ee[e.type].isApplicable({properties:t,layout:n})),r[e.type]))}function Be({model:e,dimensionAndFieldList:t}){if(t)return Promise.resolve(t);const n=[],r={},o=e.app.getDimensionList().then(e=>{r.dimensionList=e});n.push(o);const i=e.app.getFieldList().then(e=>{r.fieldList=e});return n.push(i),Promise.all(n).then(()=>r)}function He({libraryIds:e,model:t,libraryItemsProps:n}){if(n)return Promise.resolve(n);const{measureLibraryIds:r,dimensionLibraryIds:o}=e,i={},a=[];return r.forEach(e=>{const n=t.app.getMeasure(e).then(t=>t.getProperties().then(t=>{i[e]=t}));a.push(n)}),o.forEach(e=>{const n=t.app.getDimension(e).then(t=>t.getProperties().then(t=>{i[e]=t}));a.push(n)}),Promise.all(a).then(()=>i).catch(()=>null)}function Ve(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function We({oldProperties:e,newProperties:t,model:n}){const r=JSON.stringify(a(e,"qHyperCubeDef.qMeasures"),Ve)!==JSON.stringify(a(t,"qHyperCubeDef.qMeasures"),Ve)||JSON.stringify(a(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ve)!==JSON.stringify(a(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ve);return r?function({model:e,oldProperties:t,newProperties:n}){const{layout:r}=e;return r&&!r.qHasSoftPatches&&!r.qExtendsId&&a(r,"qMeta.privileges",[]).indexOf("update")>-1?e.setProperties(n):P.saveSoftProperties(e,t,n)}({model:n,oldProperties:e,newProperties:t}).then(()=>r):Promise.resolve(r)}function Ue({modifiers:e,properties:t,layout:n}){return Array.isArray(e)&&e.some(e=>"object"==typeof e&&!e.disabled&&Ee[e.type]&&Ee[e.type].needDimension({modifier:e,properties:t,layout:n}))}function Ge(e){const t=Pe(e),n=[],r=[];let o=!1;return t.forEach(t=>{const r=Le(t);if($e({modifiers:r,properties:e})){const i=ze(t);i&&n.push(i),o=o||Ue({modifiers:r,properties:e})}}),a(e,"qHyperCubeDef.qDimensions",[]).forEach(e=>{const t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function Ke({model:e,libraryIds:t,masterItem:n}){return!n&&n!==ce&&Ae[e.id]&&t&&(t.measureLibraryIds.length||t.dimensionLibraryIds.length)?(Ae[e.id].masterItemSubscriber=Ae[e.id].masterItemSubscriber||function({model:e,callback:t}){let n={},r={},o={};const i={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){const t={},n=a(e,"qInfo.qType");return n&&i[n]&&i[n].forEach(n=>{t[n]=a(e,n)}),JSON.stringify(t)}function l(e){const{qId:r}=e.qInfo;if(n[r]){const o=s(e);n[r].properties!==o&&(n[r].properties=o,"function"==typeof t&&n[r].enabled&&t(e)),n[r].enabled=!0}}function c(){Object.keys(n).forEach(e=>{r[e]||o[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])})}const u=(e,t)=>(e.once("closed",t),()=>e.removeListener("closed",t));function d(r,o){return e.app[o](r).then(e=>{n[r]={listener:e.layoutSubscribe(l),unbindCloseListnener:u(e,()=>{return r=e.id,t(ce),delete n[r],void c();var r}),enabled:!1,properties:s(e.layout)}}).catch(()=>{})}return{subscribe({measureLibraryIds:t,dimensionLibraryIds:i}){const a=[];return function({measureLibraryIds:e,dimensionLibraryIds:t}){r={},e.forEach(e=>{r[e]=!0}),o={},t.forEach(e=>{o[e]=!0})}({measureLibraryIds:t,dimensionLibraryIds:i}),c(),e.app&&(Object.keys(r).forEach(e=>{r[e]&&!n[e]&&a.push(d(e,"getMeasure"))}),Object.keys(o).forEach(e=>{o[e]&&!n[e]&&a.push(d(e,"getDimension"))})),Promise.all(a)},unsubscribe(){Object.keys(n).forEach(e=>{n[e].listener.dispose(),n[e].unbindCloseListnener()}),n={}}}}({model:e,callback:t=>Re({model:e,masterItem:t}).then(()=>e.app.clearUndoBuffer())}),Ae[e.id].masterItemSubscriber.subscribe(t)):Promise.resolve()}}};const n={};function r(e){const o=n[e];if(void 0!==o)return o.exports;const i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],i=t[n++];r.o(e,o)?0===i&&n++:0===i?Object.defineProperty(e,o,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,o,{enumerable:!0,get:i})}else for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports};let o=r(828);for(var i in e.default=o.default,o)-1===["default"].indexOf(i)&&(e[i]=o[i]);Object.defineProperty(e,"__esModule",{value:!0})})()}(iL)),iL),sL=Ht(aL);const lL="TOTAL_OFF",cL={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},uL=(e,t)=>t&&e.flags.isEnabled("VNA-977-TABLE-BARS"),dL=(e,t)=>uL(e,t)?[nL("barColor","SNTable.Bar.ColorExpression","barColorByExpression"),nL("barLabelColor","SNTable.Bar.LabelColorExpression","barLabelColorByExpression"),nL("barWidth","SNTable.Bar.WidthExpression","barWidthByExpression"),nL("barOffset","SNTable.Bar.OffsetExpression","barOffsetByExpression"),nL("barLabel","SNTable.Bar.LabelExpression","barLabelByExpression")]:[],pL=(e,t)=>({columnExpression:{type:"items",grouped:!0,items:[{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1},...dL(e,t)]}]}]}}),fL={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},hL=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!sL.hasActiveModifiers({measures:[e],properties:t.properties})||sL.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),mL={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Gm.Auto,translation:"Common.Auto"},{value:Gm.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Gm.Pixels,translation:"Object.Table.Column.Pixels"},{value:Gm.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Gm.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===Gm.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===Gm.Percentage}},gL=(e,t)=>({...cL,...pL(e,t),...fL,...mL}),bL=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},subTotalGroup:{type:"items",show:e.flags.isEnabled("TLV-2303-SUB-TOTALS")&&!e.anything.sense?.isUnsupportedFeature?.("totals"),items:[{uses:"divider"},{type:"string",component:"switch",translation:"properties.showSubTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:lL,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:lL,translation:"properties.off"}},{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"Common.Label",defaultValue:()=>e.translator.get("properties.subTotals"),show:e=>e.qOtherTotalSpec?.qTotalMode!==lL},{uses:"divider"}]},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}}),vL=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:hL(e)}},yL=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:bL(e)},presentation:{type:"items",translation:"properties.presentation",items:{...gL(e,!1),...XP(e)}}}}}),xL=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:vL(e)},presentation:{type:"items",translation:"properties.presentation",items:{...gL(e,!0),...JP(e,{[WP.Image]:!0,[WP.Indicator]:!0,[WP.MiniChart]:!0,[WP.Bar]:uL(e,!0)}),...rL({[WP.Bar]:uL(e,!0)})}}}}}),SL=e=>({...yL(e),...xL(e)}),wL=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...SL(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),CL={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},EL=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),IL=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,o){const i=r?.(e,t,o)??!1,a=o.theme.current(),s=n(a,i);return{color:"transparent"===s?"none":s}}}),AL=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},RL=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontFamily??"Source Sans Pro, sans-serif",o=t.fontFamilies??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort().map(e=>AL(e,!0))],s=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...de().filter(e=>!i.includes(e)).map(e=>AL(e,!0))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),DL=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],ML=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>AL(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...DL.filter(e=>!i.includes(e)).map(e=>AL(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),kL=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:RL({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:ML({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:IL(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:IL(`${e}.background`,"properties.background",(t,n)=>{const r=n?dm.WHITE:dm.TRANSPARENT;return o(t,e,"backgroundColor")??r},a)}}}}),TL=e=>({type:"items",items:[{ref:e,type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]}),qL=e=>TL("dimensionNullValues"===e?"nullValueRepresentation.dimensionText":"nullValueRepresentation.text"),PL=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r,isNullValueText:o,translation:i})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{nullValueText:o?qL(e):void 0,content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:IL(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:IL(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),LL=(e,t,n)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[n];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[n];case"subTotalValues":return e.object?.straightTableV2?.subTotal?.label?.value?.[n];case"nullValues":case"dimensionNullValues":return e.object?.straightTableV2?.null?.label?.value?.[n];default:return}},OL=e=>e.grid?.zebraStripes?.show,NL={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){void 0!==e&&(null!==e.content?.rowHeight&&void 0!==e.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e.content&&(e.content.rowHeight=void 0))}},jL=e=>e?.content?.hoverEffect,_L={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:jL,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:jL,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},zL=(e,t,{properties:n})=>"sn-table"===n.visualization&&!0===n.usePagination,FL=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:kL({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:LL,disableNoneCallback:zL}),dimensionValueSection:kL({section:"dimensionValues",translator:t,flags:e,getThemeValue:LL}),measureValueSection:kL({section:"measureValues",translator:t,flags:e,getThemeValue:LL}),totalRowSection:kL({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:LL,disableNoneCallback:zL}),subTotalRowSection:e.isEnabled("TLV-2303-SUB-TOTALS")?kL({section:"subTotalValues",defaultFontStyle:["bold"],translation:"properties.subTotals",translator:t,flags:e,getThemeValue:LL,disableNoneCallback:zL}):void 0,dimensionNullSection:PL({section:"dimensionNullValues",translation:"properties.table.dimensionNullValues",fallbackBackground:dm.NULL_VALUE_BACKGROUND,getThemeValue:LL,isNullValueText:!0}),nullValues:PL({section:"nullValues",translation:"properties.table.measureNullValues",fallbackBackground:dm.NULL_VALUE_BACKGROUND,getThemeValue:LL,isNullValueText:!0}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...NL},border:IL("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??dm.BORDER_MEDIUM),divider:IL("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??dm.BORDER_HEAVY)}}}},hoverEffectSection:_L,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:OL,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:OL,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:OL,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:OL,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),$L=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[FL(e),EL(e),{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1}]},...CL}}),BL={uses:"sorting"},HL={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},VL=e=>({type:"items",component:"accordion",items:{data:wL(e),sorting:BL,addOns:HL,settings:$L(e)}});function WL(e){return{definition:VL(e),exploration:IP(e),data:HP(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(t,n,r,o,i){const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return vv({exportFormat:t,initialProperties:n,extension:r,hypercubePath:o,defaultPropertyValues:a,viewDataMode:i,env:e})},exportProperties:(e,t)=>pv({propertyTree:e,hyperCubePath:t}),propertyHandler:t=>new _P(t,e.translator),usePropertyHandler:"sn-table-data",migrate:VP(e)}}const UL=e=>{const t=e.get(Yb);return a(()=>()=>{t.unmount()},[t]),t};var GL,KL={exports:{}};
90
+ `),ru.rippleVisible,uu,550,({theme:e})=>e.transitions.easing.easeInOut,ru.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ru.child,ru.childLeaving,du,550,({theme:e})=>e.transitions.easing.easeInOut,ru.childPulsate,pu,({theme:e})=>e.transitions.easing.easeInOut),mu=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=On(n,ou),[s,l]=E.useState([]),c=E.useRef(0),u=E.useRef(null);E.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const d=E.useRef(!1),p=tl(),f=E.useRef(null),h=E.useRef(null),m=E.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,Yt.jsx(hu,{classes:{ripple:vs(o.ripple,ru.ripple),rippleVisible:vs(o.rippleVisible,ru.rippleVisible),ripplePulsate:vs(o.ripplePulsate,ru.ripplePulsate),child:vs(o.child,ru.child),childLeaving:vs(o.childLeaving,ru.childLeaving),childPulsate:vs(o.childPulsate,ru.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,u.current=a},[o]),g=E.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},[r,m,p]),b=E.useCallback(()=>{g({},{pulsate:!0})},[g]),v=E.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,()=>{v(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),u.current=t},[p]);return E.useImperativeHandle(t,()=>({pulsate:b,start:g,stop:v}),[b,g,v]),Yt.jsx(fu,Ln({className:vs(ru.root,o.root,i),ref:h},a,{children:Yt.jsx(Xc,{component:null,exit:!0,children:s})}))});function gu(e){return Ss("MuiButtonBase",e)}const bu=ws("MuiButtonBase",["root","disabled","focusVisible"]),vu=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],yu=Ec("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xu=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:C,onTouchEnd:I,onTouchMove:R,onTouchStart:A,tabIndex:D=0,TouchRippleProps:M,touchRippleRef:k,type:T}=n,q=On(n,vu),P=E.useRef(null),L=E.useRef(null),O=Js(L,k),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=ul(),[F,$]=E.useState(!1);l&&F&&$(!1),E.useImperativeHandle(r,()=>({focusVisible:()=>{$(!0),P.current.focus()}}),[]);const[B,H]=E.useState(!1);E.useEffect(()=>{H(!0)},[]);const V=B&&!c&&!l;function W(e,t,n=u){return Xs(r=>{t&&t(r);return!n&&L.current&&L.current[e](r),!0})}E.useEffect(()=>{F&&d&&!c&&B&&L.current.pulsate()},[c,d,F,B]);const U=W("start",S),G=W("stop",m),K=W("stop",g),Y=W("stop",C),X=W("stop",e=>{F&&e.preventDefault(),w&&w(e)}),J=W("start",A),Z=W("stop",I),Q=W("stop",R),ee=W("stop",e=>{_(),!1===N.current&&$(!1),f&&f(e)},!1),te=Xs(e=>{P.current||(P.current=e.currentTarget),j(e),!0===N.current&&($(!0),v&&v(e)),b&&b(e)}),ne=()=>{const e=P.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=E.useRef(!1),oe=Xs(e=>{d&&!re.current&&F&&L.current&&" "===e.key&&(re.current=!0,L.current.stop(e,()=>{L.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=Xs(e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(re.current=!1,L.current.stop(e,()=>{L.current.pulsate(e)})),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(q.href||q.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===T?"button":T,se.disabled=l):(q.href||q.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Js(t,z,P),ce=Ln({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:D,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=pl({root:["root",t&&"disabled",n&&"focusVisible"]},gu,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Yt.jsxs(yu,Ln({as:ae,className:vs(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:D,type:T},se,q,{children:[i,V?Yt.jsx(mu,Ln({ref:O,center:o},M)):null]}))});function Su(e){return Ss("MuiIconButton",e)}const wu=ws("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Cu=["edge","children","className","color","disabled","disableFocusRipple","size"],Eu=Ec(xu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${ca(n.color)}`],n.edge&&t[`edge${ca(n.edge)}`],t[`size${ca(n.size)}`]]}})(({theme:e,ownerState:t})=>Ln({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return Ln({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Ln({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Ln({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${wu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Iu=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=On(n,Cu),d=Ln({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return pl({root:["root",n&&"disabled","default"!==r&&`color${ca(r)}`,o&&`edge${ca(o)}`,`size${ca(i)}`]},Su,t)})(d);return Yt.jsx(Eu,Ln({className:vs(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))});function Ru(e){return Ss("MuiTypography",e)}ws("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Au=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Du=Ec("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${ca(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Ln({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Mu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ku={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Tu=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTypography"}),r=(e=>ku[e]||e)(n.color),o=fs(Ln({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Mu}=o,f=On(o,Au),h=Ln({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||Mu[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return pl({root:["root",i,"inherit"!==e.align&&`align${ca(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Ru,a)})(h);return Yt.jsx(Du,Ln({as:m,ref:t,ownerState:h,className:vs(g.root,a)},f))});const qu=E.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=E.useState(null),s=Js(E.isValidElement(n)?vl(n):null,t);if(Ns(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),Ns(()=>{if(i&&!o)return Ws(t,i),()=>{Ws(t,null)}},[t,i,o]),o){if(E.isValidElement(n)){const e={ref:s};return E.cloneElement(n,e)}return Yt.jsx(E.Fragment,{children:n})}return Yt.jsx(E.Fragment,{children:i?W.createPortal(n,i):i})}),Pu=["onChange","maxRows","minRows","style","value"];function Lu(e){return parseInt(e,10)||0}const Ou={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Nu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const ju=E.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=On(e,Pu),{current:l}=E.useRef(null!=a),c=E.useRef(null),u=Js(t,c),d=E.useRef(null),p=E.useRef(null),f=E.useCallback(()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=Vs(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Lu(i.paddingBottom)+Lu(i.paddingTop),l=Lu(i.borderBottomWidth)+Lu(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-u)<=1}},[r,o,e.placeholder]),h=Xs(()=>{const e=c.current,t=f();if(!e||!t||Nu(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),m=E.useCallback(()=>{const e=c.current,t=f();if(!e||!t||Nu(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=E.useRef(-1);Ns(()=>{const e=Bs(m),t=null==c?void 0:c.current;if(!t)return;const n=Vs(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[f,m,h]),Ns(()=>{m()});return Yt.jsxs(E.Fragment,{children:[Yt.jsx("textarea",Ln({value:a,onChange:e=>{l||m(),n&&n(e)},ref:u,rows:o,style:i},s)),Yt.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Ln({},Ou,i,{paddingTop:0,paddingBottom:0})})]})});function _u({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const zu=E.createContext(void 0);function Fu(){return E.useContext(zu)}function $u(e){return Yt.jsx(ds,Ln({},e,{defaultTheme:sc,themeId:Pn}))}function Bu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Hu(e,t=!1){return e&&(Bu(e.value)&&""!==e.value||t&&Bu(e.defaultValue)&&""!==e.defaultValue)}function Vu(e){return Ss("MuiInputBase",e)}const Wu=ws("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Uu=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Gu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ca(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ku=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Yu=Ec("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Gu})(({theme:e,ownerState:t})=>Ln({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Wu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ln({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Xu=Ec("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ku})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Ln({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Ln({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Wu.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Wu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),Ju=Yt.jsx($u,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Zu=E.forwardRef(function(e,t){var n;const r=Dc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:C,onChange:I,onClick:R,onFocus:A,onKeyDown:D,onKeyUp:M,placeholder:k,readOnly:T,renderSuffix:q,rows:P,slotProps:L={},slots:O={},startAdornment:N,type:j="text",value:_}=r,z=On(r,Uu),F=null!=b.value?b.value:_,{current:$}=E.useRef(null!=F),B=E.useRef(),H=E.useCallback(e=>{},[]),V=Js(B,v,b.ref,H),[W,U]=E.useState(!1),G=Fu(),K=_u({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:W,E.useEffect(()=>{!G&&d&&W&&(U(!1),C&&C())},[G,d,W,C]);const Y=G&&G.onFilled,X=G&&G.onEmpty,J=E.useCallback(e=>{Hu(e)?Y&&Y():X&&X()},[Y,X]);Ns(()=>{$&&J({value:F})},[F,J,$]);E.useEffect(()=>{J(B.current)},[]);let Z=g,Q=b;S&&"input"===Z&&(Q=Ln(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:y,minRows:x},Q),Z=ju);E.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=Ln({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:N,type:j}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return pl({root:["root",`color${ca(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ca(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Vu,t)})(ee),ne=O.root||l.Root||Yu,re=L.root||c.root||{},oe=O.input||l.Input||Xu;return Q=Ln({},Q,null!=(n=L.input)?n:c.input),Yt.jsxs(E.Fragment,{children:[!p&&Ju,Yt.jsxs(ne,Ln({},re,!fl(ne)&&{ownerState:Ln({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),R&&R(e)}},z,{className:vs(te.root,re.className,s,T&&"MuiInputBase-readOnly"),children:[N,Yt.jsx(zu.Provider,{value:null,children:Yt.jsx(oe,Ln({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:k,readOnly:T,required:K.required,rows:P,value:F,onKeyDown:D,onKeyUp:M,type:j},Q,!fl(oe)&&{as:Z,ownerState:Ln({},ee,Q.ownerState)},{ref:V,className:vs(te.input,Q.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(Tn(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),I&&I(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,q?q(Ln({},K,{startAdornment:N})):null]}))]})});function Qu(e){return Ss("MuiInput",e)}const ed=Ln({},Wu,ws("MuiInput",["root","underline","input"]));function td(e){return Ss("MuiOutlinedInput",e)}const nd=Ln({},Wu,ws("MuiOutlinedInput",["root","notchedOutline","input"]));function rd(e){return Ss("MuiFilledInput",e)}const od=Ln({},Wu,ws("MuiFilledInput",["root","underline","input"]));var id=Pc(Yt.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ad=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sd={entering:{opacity:1},entered:{opacity:1}},ld=E.forwardRef(function(e,t){const n=lc(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=Hc}=e,v=On(e,ad),y=E.useRef(null),x=Js(y,vl(a),t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),C=S((e,t)=>{Jc(e);const r=Zc({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),I=S(u),R=S(h),A=S(e=>{const t=Zc({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),D=S(f);return Yt.jsx(b,Ln({appear:i,in:l,nodeRef:y,onEnter:C,onEntered:I,onEntering:w,onExit:A,onExited:D,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>E.cloneElement(a,Ln({style:Ln({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},sd[e],m,a.props.style),ref:x},t))}))});function cd(e){return Ss("MuiBackdrop",e)}ws("MuiBackdrop",["root","invisible"]);const ud=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],dd=Ec("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Ln({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),pd=E.forwardRef(function(e,t){var n,r,o;const i=Dc({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=ld,transitionDuration:g}=i,b=On(i,ud),v=Ln({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return pl({root:["root",n&&"invisible"]},cd,t)})(v),x=null!=(n=f.root)?n:u.root;return Yt.jsx(m,Ln({in:p,timeout:g},b,{children:Yt.jsx(dd,Ln({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:l,className:vs(y.root,s,null==x?void 0:x.className),ownerState:Ln({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),fd=ws("MuiBox",["root"]),hd=ac(),md=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Gi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ns);return E.forwardRef(function(e,a){const s=cs(n),l=fs(e),{className:c,component:u="div"}=l,d=On(l,ys);return Yt.jsx(i,Ln({as:u,ref:a,className:vs(c,o?o(r):r),theme:t&&s[t]||s},d))})}({themeId:Pn,defaultTheme:hd,defaultClassName:fd.root,generateClassName:gs.generate});function gd(e){return Ss("MuiButton",e)}const bd=ws("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),vd=E.createContext({}),yd=E.createContext(void 0),xd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Sd=e=>Ln({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),wd=Ec(xu,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ca(n.color)}`],t[`size${ca(n.size)}`],t[`${n.variant}Size${ca(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Ln({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ln({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ln({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${bd.focusVisible}`]:Ln({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${bd.disabled}`]:Ln({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Fl.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${bd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bd.disabled}`]:{boxShadow:"none"}}),Cd=Ec("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ca(n.size)}`]]}})(({ownerState:e})=>Ln({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Sd(e))),Ed=Ec("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ca(n.size)}`]]}})(({ownerState:e})=>Ln({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Sd(e))),Id=E.forwardRef(function(e,t){const n=E.useContext(vd),r=E.useContext(yd),o=Dc({props:Os(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=On(o,xd),x=Ln({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Ln({},a,pl({root:["root",i,`${i}${ca(t)}`,`size${ca(o)}`,`${i}Size${ca(o)}`,`color${ca(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ca(o)}`],endIcon:["icon","endIcon",`iconSize${ca(o)}`]},gd,a))})(x),w=g&&Yt.jsx(Cd,{className:S.startIcon,ownerState:x,children:g}),C=p&&Yt.jsx(Ed,{className:S.endIcon,ownerState:x,children:p}),I=r||"";return Yt.jsxs(wd,Ln({ownerState:x,className:vs(n.className,S.root,l,I),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:vs(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[w,i,C]}))});function Rd(e){return Ss("PrivateSwitchBase",e)}ws("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Ad=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Dd=Ec(xu,{name:"MuiSwitchBase"})(({ownerState:e})=>Ln({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),Md=Ec("input",{name:"MuiSwitchBase",shouldForwardProp:Cc})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),kd=E.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,C=On(e,Ad),[E,I]=Ys({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),R=Fu();let A=s;R&&void 0===A&&(A=R.disabled);const D="checkbox"===S||"radio"===S,M=Ln({},e,{checked:E,disabled:A,disableFocusRipple:l,edge:c}),k=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return pl({root:["root",n&&"checked",r&&"disabled",o&&`edge${ca(o)}`],input:["input"]},Rd,t)})(M);return Yt.jsxs(Dd,Ln({component:"span",className:vs(k.root,i),centerRipple:!0,focusRipple:!l,disabled:A,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:M,ref:t},C,{children:[Yt.jsx(Md,Ln({autoFocus:n,checked:r,defaultChecked:a,className:k.input,disabled:A,id:D?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;I(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:M,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:u]}))});var Td=Pc(Yt.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),qd=Pc(Yt.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Pd=Pc(Yt.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Ld(e){return Ss("MuiCheckbox",e)}const Od=ws("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Nd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],jd=Ec(kd,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ca(n.size)}`],"default"!==n.color&&t[`color${ca(n.color)}`]]}})(({theme:e,ownerState:t})=>Ln({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Od.checked}, &.${Od.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Od.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),_d=Yt.jsx(qd,{}),zd=Yt.jsx(Td,{}),Fd=Yt.jsx(Pd,{}),$d=E.forwardRef(function(e,t){var n,r;const o=Dc({props:e,name:"MuiCheckbox"}),{checkedIcon:i=_d,color:a="primary",icon:s=zd,indeterminate:l=!1,indeterminateIcon:c=Fd,inputProps:u,size:d="medium",className:p}=o,f=On(o,Nd),h=l?c:s,m=l?c:i,g=Ln({},o,{color:a,indeterminate:l,size:d}),b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return Ln({},t,pl({root:["root",n&&"indeterminate",`color${ca(r)}`,`size${ca(o)}`]},Ld,t))})(g);return Yt.jsx(jd,Ln({type:"checkbox",inputProps:Ln({"data-indeterminate":l},u),icon:E.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:E.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:vs(b.root,p)},f,{classes:b}))});function Bd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Hd(e){return parseInt(Vs(e).getComputedStyle(e).paddingRight,10)||0}function Vd(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Bd(e,o)})}function Wd(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Ud(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Hs(e);return t.body===e?Vs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=dl(Hs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Hd(r)+e}px`;const t=Hs(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Hd(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Hs(r).body;else{const t=r.parentElement,n=Vs(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const Gd=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Kd(e){const t=[],n=[];return Array.from(e.querySelectorAll(Gd)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Yd(){return!0}function Xd(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Kd,isEnabled:a=Yd,open:s}=e,l=E.useRef(!1),c=E.useRef(null),u=E.useRef(null),d=E.useRef(null),p=E.useRef(null),f=E.useRef(!1),h=E.useRef(null),m=Js(vl(t),h),g=E.useRef(null);E.useEffect(()=>{s&&h.current&&(f.current=!n)},[n,s]),E.useEffect(()=>{if(!s||!h.current)return;const e=Hs(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),E.useEffect(()=>{if(!s||!h.current)return;const e=Hs(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(h.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Yt.jsxs(E.Fragment,{children:[Yt.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Yt.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const Jd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Bd(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Vd(t,e.mount,e.modalRef,r,!0);const o=Wd(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Wd(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=Ud(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Wd(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Bd(e.modalRef,t),Vd(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Bd(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Zd(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Jd,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=E.useRef({}),f=E.useRef(null),h=E.useRef(null),m=Js(h,d),[g,b]=E.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=Xs(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Hs(f.current).body;o.add(x(),e),h.current&&S()}),C=E.useCallback(()=>o.isTopModal(x()),[o]),I=Xs(e=>{f.current=e,e&&(u&&C()?S():h.current&&Bd(h.current,y))}),R=E.useCallback(()=>{o.remove(x(),y)},[y,o]);E.useEffect(()=>()=>{R()},[R]),E.useEffect(()=>{u?w():v&&i||R()},[u,R,v,i,w]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},D=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=hl(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ln({},n,t);return Ln({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>Ln({"aria-hidden":!0},e,{onClick:D(e),open:u}),getTransitionProps:()=>({onEnter:$s(()=>{b(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:$s(()=>{b(!0),s&&s(),i&&R()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:I,isTopModal:C,exited:g,hasTransition:v}}function Qd(e){return Ss("MuiModal",e)}ws("MuiModal",["root","hidden","backdrop"]);const ep=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],tp=Ec("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Ln({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),np=Ec(pd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),rp=E.forwardRef(function(e,t){var n,r,o,i,a,s;const l=Dc({name:"MuiModal",props:e}),{BackdropComponent:c=np,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:I=!1,keepMounted:R=!1,onBackdropClick:A,open:D,slotProps:M,slots:k}=l,T=On(l,ep),q=Ln({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:I,keepMounted:R}),{getRootProps:P,getBackdropProps:L,getTransitionProps:O,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=Zd(Ln({},q,{rootRef:t})),F=Ln({},q,{exited:_}),$=(e=>{const{open:t,exited:n,classes:r}=e;return pl({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Qd,r)})(F),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=O();B.onEnter=e,B.onExited=t}const H=null!=(n=null!=(r=null==k?void 0:k.root)?r:g.Root)?n:tp,V=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:c,W=null!=(a=null==M?void 0:M.root)?a:b.root,U=null!=(s=null==M?void 0:M.backdrop)?s:b.backdrop,G=bl({elementType:H,externalSlotProps:W,externalForwardedProps:T,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:F,className:vs(d,null==W?void 0:W.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=bl({elementType:V,externalSlotProps:U,additionalProps:u,getSlotProps:e=>L(Ln({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:vs(null==U?void 0:U.className,null==u?void 0:u.className,null==$?void 0:$.backdrop),ownerState:F});return R||D||z&&!_?Yt.jsx(qu,{ref:N,container:h,disablePortal:S,children:Yt.jsxs(H,Ln({},G,{children:[!I&&c?Yt.jsx(V,Ln({},K)):null,Yt.jsx(Xd,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:j,open:D,children:E.cloneElement(f,B)})]}))}):null});function op(e){return Ss("MuiDivider",e)}const ip=ws("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ap=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],sp=Ec("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Ln({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Fl.alpha(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Ln({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Ln({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Ln({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Ln({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),lp=Ec("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Ln({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),cp=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=On(n,ap),h=Ln({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return pl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},op,r)})(h);return Yt.jsx(sp,Ln({as:a,className:vs(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?Yt.jsx(lp,{className:m.wrapper,ownerState:h,children:o}):null}))});cp.muiSkipListHighlight=!0;const up=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],dp=Ec(Yu,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Gu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ln({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${od.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${od.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${od.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${od.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${od.disabled}, .${od.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${od.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Ln({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))}),pp=Ec(Xu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ku})(({theme:e,ownerState:t})=>Ln({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),fp=E.forwardRef(function(e,t){var n,r,o,i;const a=Dc({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=On(a,up),g=Ln({},a,{fullWidth:c,inputComponent:u,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Ln({},t,pl({root:["root",!n&&"underline"],input:["input"]},rd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Qi(v,null!=p?p:l):v,x=null!=(n=null!=(r=f.root)?r:s.Root)?n:dp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:pp;return Yt.jsx(Zu,Ln({slots:{root:x,input:S},componentsProps:y,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:h},m,{classes:b}))});fp.muiName="Input";const hp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function mp(e){return`scale(${e}, ${e**2})`}const gp={entering:{opacity:1,transform:mp(1)},entered:{opacity:1,transform:"none"}},bp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vp=E.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Hc}=e,g=On(e,hp),b=tl(),v=E.useRef(),y=lc(),x=E.useRef(null),S=Js(x,vl(o),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=w(c),I=w((e,t)=>{Jc(e);const{duration:n,delay:r,easing:o}=Zc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:bp?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),R=w(l),A=w(p),D=w(e=>{const{duration:t,delay:n,easing:r}=Zc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:bp?o:.666*o,delay:bp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=mp(.75),u&&u(e)}),M=w(d);return Yt.jsx(m,Ln({appear:r,in:a,nodeRef:x,onEnter:I,onEntered:R,onEntering:C,onExit:D,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>E.cloneElement(o,Ln({style:Ln({opacity:0,transform:mp(.75),visibility:"exited"!==e||a?void 0:"hidden"},gp[e],f,o.props.style),ref:S},t))}))});vp.muiSupportAuto=!0;const yp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],xp=Ec(Yu,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Gu(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Ln({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ed.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ed.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ed.disabled}, .${ed.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ed.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Sp=Ec(Xu,{name:"MuiInput",slot:"Input",overridesResolver:Ku})({}),wp=E.forwardRef(function(e,t){var n,r,o,i;const a=Dc({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=On(a,yp),b=(e=>{const{classes:t,disableUnderline:n}=e;return Ln({},t,pl({root:["root",!n&&"underline"],input:["input"]},Qu,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:c)?Qi(null!=f?f:c,v):v,x=null!=(n=null!=(r=h.root)?r:l.Root)?n:xp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Sp;return Yt.jsx(Zu,Ln({slots:{root:x,input:S},slotProps:y,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))});function Cp(e){return Ss("MuiInputAdornment",e)}wp.muiName="Input";const Ep=ws("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ip;const Rp=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Ap=Ec("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ca(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>Ln({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Ep.positionStart}&:not(.${Ep.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),Dp=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=n,u=On(n,Rp),d=Fu()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=Ln({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return pl({root:["root",n&&"disablePointerEvents",o&&`position${ca(o)}`,a,r&&"hiddenLabel",i&&`size${ca(i)}`]},Cp,t)})(f);return Yt.jsx(zu.Provider,{value:null,children:Yt.jsx(Ap,Ln({as:i,ownerState:f,className:vs(h.root,o),ref:t},u,{children:"string"!=typeof r||s?Yt.jsxs(E.Fragment,{children:["start"===l?Ip||(Ip=Yt.jsx("span",{className:"notranslate",children:"​"})):null,r]}):Yt.jsx(Tu,{color:"text.secondary",children:r})}))})});function Mp(e){return Ss("MuiLink",e)}const kp=ws("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Tp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qp=({theme:e,ownerState:t})=>{const n=(e=>Tp[e]||e)(t.color),r=da(e,`palette.${n}`,!1)||t.color,o=da(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Fl.alpha(r,.4)},Pp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Lp=Ec(Tu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ca(n.underline)}`],"button"===n.component&&t.button]}})(({theme:e,ownerState:t})=>Ln({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Ln({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:qp({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kp.focusVisible}`]:{outline:"auto"}})),Op=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:c="always",variant:u="inherit",sx:d}=n,p=On(n,Pp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=ul(),[b,v]=E.useState(!1),y=Js(t,g),x=Ln({},n,{color:o,component:i,focusVisible:b,underline:c,variant:u}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return pl({root:["root",`underline${ca(o)}`,"button"===n&&"button",r&&"focusVisible"]},Mp,t)})(x);return Yt.jsx(Lp,Ln({color:o,className:vs(S.root,r),classes:l,component:i,onBlur:e=>{h(),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:u,sx:[...Object.keys(Tp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),Np=E.createContext({});function jp(e){return Ss("MuiList",e)}ws("MuiList",["root","padding","dense","subheader"]);const _p=["children","className","component","dense","disablePadding","subheader"],zp=Ec("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>Ln({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fp=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=On(n,_p),u=E.useMemo(()=>({dense:a}),[a]),d=Ln({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return pl({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},jp,t)})(d);return Yt.jsx(Np.Provider,{value:u,children:Yt.jsxs(zp,Ln({as:i,className:vs(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})});function $p(e){return Ss("MuiListItem",e)}const Bp=ws("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Hp=ws("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Vp(e){return Ss("MuiListItemSecondaryAction",e)}ws("MuiListItemSecondaryAction",["root","disableGutters"]);const Wp=["className"],Up=Ec("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Ln({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Gp=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=On(n,Wp),i=Ln({},n,{disableGutters:E.useContext(Np).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return pl({root:["root",t&&"disableGutters"]},Vp,n)})(i);return Yt.jsx(Up,Ln({className:vs(a.root,r),ownerState:i,ref:t},o))});Gp.muiName="ListItemSecondaryAction";const Kp=["className"],Yp=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Xp=Ec("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>Ln({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Ln({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Hp.root}`]:{paddingRight:48}},{[`&.${Bp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Bp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Bp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Bp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Bp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Jp=Ec("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Zp=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:b=!1,focusVisibleClassName:v,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,C=On(n.ContainerProps,Kp),I=On(n,Yp),R=E.useContext(Np),A=E.useMemo(()=>({dense:f||R.dense||!1,alignItems:r,disableGutters:m}),[r,R.dense,f,m]),D=E.useRef(null);Ns(()=>{o&&D.current&&D.current.focus()},[o]);const M=E.Children.toArray(a),k=M.length&&(T=M[M.length-1],q=["ListItemSecondaryAction"],E.isValidElement(T)&&-1!==q.indexOf(null!=(P=T.type.muiName)?P:null==(L=T.type)||null==(L=L._payload)||null==(L=L.value)?void 0:L.muiName));var T,q,P,L;const O=Ln({},n,{alignItems:r,autoFocus:o,button:i,dense:A.dense,disabled:h,disableGutters:m,disablePadding:g,divider:b,hasSecondaryAction:k,selected:x}),N=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return pl({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},$p,r)})(O),j=Js(D,t),_=w.root||c.Root||Xp,z=S.root||u.root||{},F=Ln({className:vs(N.root,z.className,s),disabled:h},I);let $=l||"li";return i&&(F.component=l||"div",F.focusVisibleClassName=vs(Bp.focusVisible,v),$=xu),k?($=F.component||l?$:"div","li"===d&&("li"===$?$="div":"li"===F.component&&(F.component="div")),Yt.jsx(Np.Provider,{value:A,children:Yt.jsxs(Jp,Ln({as:d,className:vs(N.container,p),ref:j,ownerState:O},C,{children:[Yt.jsx(_,Ln({},z,!fl(_)&&{as:$,ownerState:Ln({},O,z.ownerState)},F,{children:M})),M.pop()]}))})):Yt.jsx(Np.Provider,{value:A,children:Yt.jsxs(_,Ln({},z,{as:$,ref:j},!fl(_)&&{ownerState:Ln({},O,z.ownerState)},F,{children:[M,y&&Yt.jsx(Gp,{children:y})]}))})});function Qp(e){return Ss("MuiListItemIcon",e)}const ef=ws("MuiListItemIcon",["root","alignItemsFlexStart"]),tf=["className"],nf=Ec("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Ln({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),rf=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=On(n,tf),i=Ln({},n,{alignItems:E.useContext(Np).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return pl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Qp,n)})(i);return Yt.jsx(nf,Ln({className:vs(a.root,r),ownerState:i,ref:t},o))}),of=ws("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),af=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function sf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function lf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function cf(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function uf(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&cf(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const df=E.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=On(e,af),p=E.useRef(null),f=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ns(()=>{r&&p.current.focus()},[r]),E.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${dl(Hs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const h=Js(p,t);let m=-1;E.Children.forEach(i,(e,t)=>{E.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=E.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),E.cloneElement(e,t)}return e});return Yt.jsx(Fp,Ln({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Hs(t).activeElement;if("ArrowDown"===n)e.preventDefault(),uf(t,r,l,s,sf);else if("ArrowUp"===n)e.preventDefault(),uf(t,r,l,s,lf);else if("Home"===n)e.preventDefault(),uf(t,null,l,s,sf);else if("End"===n)e.preventDefault(),uf(t,null,l,s,lf);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=r&&!o.repeating&&cf(r,o);o.previousKeyMatched&&(l||uf(t,r,!1,s,sf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))});function pf(e){return Ss("MuiPopover",e)}ws("MuiPopover",["root","paper"]);const ff=["onEntering"],hf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],mf=["slotProps"];function gf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function bf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function vf(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function yf(e){return"function"==typeof e?e():e}const xf=Ec(rp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sf=Ec(nu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),wf=E.forwardRef(function(e,t){var n,r,o;const i=Dc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=vp,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:I=!1}=i,R=On(i.TransitionProps,ff),A=On(i,hf),D=null!=(n=null==y?void 0:y.paper)?n:b,M=E.useRef(),k=Js(M,D.ref),T=Ln({},i,{anchorOrigin:l,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:D,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:R}),q=(e=>{const{classes:t}=e;return pl({root:["root"],paper:["paper"]},pf,t)})(T),P=E.useCallback(()=>{if("anchorPosition"===u)return c;const e=yf(s),t=(e&&1===e.nodeType?e:Hs(M.current).body).getBoundingClientRect();return{top:t.top+gf(t,l.vertical),left:t.left+bf(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,u]),L=E.useCallback(e=>({vertical:gf(e,x.vertical),horizontal:bf(e,x.horizontal)}),[x.horizontal,x.vertical]),O=E.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=L(t);if("none"===u)return{top:null,left:null,transformOrigin:vf(n)};const r=P();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=Vs(yf(s)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:vf(n)}},[s,u,P,L,m]),[N,j]=E.useState(g),_=E.useCallback(()=>{const e=M.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)},[O]);E.useEffect(()=>(I&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,I,_]);E.useEffect(()=>{g&&_()}),E.useImperativeHandle(a,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),E.useEffect(()=>{if(!g)return;const e=Bs(()=>{_()}),t=Vs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,_]);let z=w;"auto"!==w||S.muiSupportAuto||(z=void 0);const F=f||(s?Hs(yf(s)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:xf,B=null!=(o=null==v?void 0:v.paper)?o:Sf,H=bl({elementType:B,externalSlotProps:Ln({},D,{style:N?D.style:Ln({},D.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:T,className:vs(q.paper,null==D?void 0:D.className)}),V=bl({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:T,className:vs(q.root,p)}),{slotProps:W}=V,U=On(V,mf);return Yt.jsx($,Ln({},U,!fl($)&&{slotProps:W,disableScrollLock:I},{children:Yt.jsx(S,Ln({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),_()},onExited:()=>{j(!1)},timeout:z},R,{children:Yt.jsx(B,Ln({},H,{children:d}))}))}))});function Cf(e){return Ss("MuiMenu",e)}ws("MuiMenu",["root","paper","list"]);const Ef=["onEntering"],If=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Rf={vertical:"top",horizontal:"right"},Af={vertical:"top",horizontal:"left"},Df=Ec(wf,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mf=Ec(Sf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),kf=Ec(df,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Tf=E.forwardRef(function(e,t){var n,r;const o=Dc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=On(o.TransitionProps,Ef),x=On(o,If),S=(()=>{const e=E.useContext(El);return null!=e&&e})(),w=Ln({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return pl({root:["root"],paper:["paper"],list:["list"]},Cf,t)})(w),I=i&&!l&&d,R=E.useRef(null);let A=-1;E.Children.map(a,(e,t)=>{E.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))});const D=null!=(n=b.paper)?n:Mf,M=null!=(r=v.paper)?r:p,k=bl({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[C.root,s]}),T=bl({elementType:D,externalSlotProps:M,ownerState:w,className:C.paper});return Yt.jsx(Df,Ln({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Rf:Af,slots:{paper:D,root:b.root},slotProps:{root:k,paper:T},open:d,ref:t,transitionDuration:h,TransitionProps:Ln({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:Yt.jsx(kf,Ln({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===A||l),autoFocusItem:I,variant:g},c,{className:vs(C.list,c.className),children:a}))}))});function qf(e){return Ss("MuiMenuItem",e)}const Pf=ws("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Lf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Of=Ec(xu,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>Ln({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Pf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Pf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Pf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Pf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ip.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ip.inset}`]:{marginLeft:52},[`& .${of.root}`]:{marginTop:0,marginBottom:0},[`& .${of.inset}`]:{paddingLeft:36},[`& .${ef.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ln({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ef.root} svg`]:{fontSize:"1.25rem"}}))),Nf=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:u,className:d}=n,p=On(n,Lf),f=E.useContext(Np),h=E.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=E.useRef(null);Ns(()=>{r&&m.current&&m.current.focus()},[r]);const g=Ln({},n,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Ln({},a,pl({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},qf,a))})(n),v=Js(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),Yt.jsx(Np.Provider,{value:h,children:Yt.jsx(Of,Ln({ref:v,role:c,tabIndex:y,component:o,focusVisibleClassName:vs(b.focusVisible,l),className:vs(b.root,d)},p,{ownerState:g,classes:b}))})});function jf(e){return Ss("MuiNativeSelect",e)}const _f=ws("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),zf=["className","disabled","error","IconComponent","inputRef","variant"],Ff=({ownerState:e,theme:t})=>Ln({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ln({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${_f.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),$f=Ec("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Cc,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${_f.multiple}`]:t.multiple}]}})(Ff),Bf=({ownerState:e,theme:t})=>Ln({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${_f.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Hf=Ec("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ca(n.variant)}`],n.open&&t.iconOpen]}})(Bf),Vf=E.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=On(e,zf),c=Ln({},e,{disabled:r,variant:s,error:o}),u=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return pl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ca(n)}`,i&&"iconOpen",r&&"disabled"]},jf,t)})(c);return Yt.jsxs(E.Fragment,{children:[Yt.jsx($f,Ln({ownerState:c,className:vs(u.select,n),disabled:r,ref:a||t},l)),e.multiple?null:Yt.jsx(Hf,{as:i,ownerState:c,className:u.icon})]})});var Wf;const Uf=["children","classes","className","label","notched"],Gf=Ec("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Cc})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Kf=Ec("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Cc})(({ownerState:e,theme:t})=>Ln({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Ln({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));const Yf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Xf=Ec(Yu,{shouldForwardProp:e=>Cc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Gu})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ln({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${nd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${nd.focused} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${nd.error} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${nd.disabled} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Ln({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),Jf=Ec(function(e){const{className:t,label:n,notched:r}=e,o=On(e,Uf),i=null!=n&&""!==n,a=Ln({},e,{notched:r,withLabel:i});return Yt.jsx(Gf,Ln({"aria-hidden":!0,className:t,ownerState:a},o,{children:Yt.jsx(Kf,{ownerState:a,children:i?Yt.jsx("span",{children:n}):Wf||(Wf=Yt.jsx("span",{className:"notranslate",children:"​"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Zf=Ec(Xu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ku})(({theme:e,ownerState:t})=>Ln({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Qf=E.forwardRef(function(e,t){var n,r,o,i,a;const s=Dc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=On(s,Yf),b=(e=>{const{classes:t}=e;return Ln({},t,pl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},td,t))})(s),v=Fu(),y=_u({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Ln({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:l.Root)?n:Xf,w=null!=(o=null!=(i=h.input)?i:l.Input)?o:Zf;return Yt.jsx(Zu,Ln({slots:{root:S,input:w},renderSuffix:e=>Yt.jsx(Jf,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Yt.jsxs(E.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:Ln({},b,{notchedOutline:null})}))});function eh(e){return Ss("MuiSelect",e)}Qf.muiName="Input";const th=ws("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var nh;const rh=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],oh=Ec("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${th.select}`]:t.select},{[`&.${th.select}`]:t[n.variant]},{[`&.${th.error}`]:t.error},{[`&.${th.multiple}`]:t.multiple}]}})(Ff,{[`&.${th.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ih=Ec("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ca(n.variant)}`],n.open&&t.iconOpen]}})(Bf),ah=Ec("input",{shouldForwardProp:e=>wc(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function sh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function lh(e){return null==e||"string"==typeof e&&!e.trim()}const ch=E.forwardRef(function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:w,onFocus:C,onOpen:I,open:R,readOnly:A,renderValue:D,SelectDisplayProps:M={},tabIndex:k,value:T,variant:q="standard"}=e,P=On(e,rh),[L,O]=Ys({controlled:T,default:u,name:"Select"}),[N,j]=Ys({controlled:R,default:c,name:"Select"}),_=E.useRef(null),z=E.useRef(null),[F,$]=E.useState(null),{current:B}=E.useRef(null!=R),[H,V]=E.useState(),W=Js(t,m),U=E.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;E.useImperativeHandle(W,()=>({focus:()=>{z.current.focus()},node:_.current,value:L}),[L]),E.useEffect(()=>{c&&N&&F&&!B&&(V(a?null:G.clientWidth),z.current.focus())},[F,a]),E.useEffect(()=>{i&&z.current.focus()},[i]),E.useEffect(()=>{if(!g)return;const e=Hs(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const K=(e,t)=>{e?I&&I(t):w&&w(t),B||(V(a?null:G.clientWidth),j(e))},Y=E.Children.toArray(s),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==n&&(O(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}v||K(!1,t)}},J=null!==F&&N;let Z,Q;delete P["aria-invalid"];const ee=[];let te=!1;(Hu({value:L})||p)&&(D?Z=D(L):te=!0);const ne=Y.map(e=>{if(!E.isValidElement(e))return null;let t;if(v){if(!Array.isArray(L))throw new Error(Tn(2));t=L.some(t=>sh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=sh(L,e.props.value),t&&te&&(Q=e.props.children);return E.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=v?0===ee.length?null:ee.reduce((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e),[]):Q);let re,oe=H;!a&&B&&F&&(oe=G.clientWidth),re=void 0!==k?k:d?null:0;const ie=M.id||(y?`mui-component-select-${y}`:void 0),ae=Ln({},e,{variant:q,value:L,open:J,error:f}),se=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return pl({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ca(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},eh,t)})(ae),le=Ln({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ce=Ks();return Yt.jsxs(E.Fragment,{children:[Yt.jsx(oh,Ln({ref:U,tabIndex:re,role:"combobox","aria-controls":ce,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),K(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:y}}),x(e))},onFocus:C},M,{ownerState:ae,className:vs(M.className,se.select,l),id:ie,children:lh(Z)?nh||(nh=Yt.jsx("span",{className:"notranslate",children:"​"})):Z})),Yt.jsx(ah,Ln({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=Y.find(t=>t.props.value===e.target.value);void 0!==t&&(O(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},P)),Yt.jsx(ih,{as:h,className:se.icon,ownerState:ae}),Yt.jsx(Tf,Ln({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Ln({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ce},b.MenuListProps),slotProps:Ln({},b.slotProps,{paper:Ln({},le,{style:Ln({minWidth:oe},null!=le?le.style:null)})}),children:ne}))]})}),uh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],dh=["root"],ph={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Cc(e)&&"variant"!==e,slot:"Root"},fh=Ec(wp,ph)(""),hh=Ec(Qf,ph)(""),mh=Ec(fp,ph)(""),gh=E.forwardRef(function(e,t){const n=Dc({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=id,id:u,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:w,variant:C="outlined"}=n,I=On(n,uh),R=b?Vf:ch,A=_u({props:n,muiFormControl:Fu(),states:["variant","error"]}),D=A.variant||C,M=Ln({},n,{variant:D,classes:i}),k=(e=>{const{classes:t}=e;return t})(M),T=On(k,dh),q=d||{standard:Yt.jsx(fh,{ownerState:M}),outlined:Yt.jsx(hh,{label:f,ownerState:M}),filled:Yt.jsx(mh,{ownerState:M})}[D],P=Js(t,vl(q));return Yt.jsx(E.Fragment,{children:E.cloneElement(q,Ln({inputComponent:R,inputProps:Ln({children:o,error:A.error,IconComponent:c,variant:D,type:void 0,multiple:g},b?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Ln({id:u},w)},p,{classes:p?Qi(T,p.classes):T},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===D?{notched:!0}:{},{ref:P,className:vs(q.props.className,a,k.root)},!d&&{variant:D},I))})});gh.muiName="Select";const bh=E.createContext();function vh(e){return Ss("MuiTable",e)}ws("MuiTable",["root","stickyHeader"]);const yh=["className","component","padding","size","stickyHeader"],xh=Ec("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Ln({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ln({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Sh="table",wh=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTable"}),{className:r,component:o=Sh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=n,l=On(n,yh),c=Ln({},n,{component:o,padding:i,size:a,stickyHeader:s}),u=(e=>{const{classes:t,stickyHeader:n}=e;return pl({root:["root",n&&"stickyHeader"]},vh,t)})(c),d=E.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return Yt.jsx(bh.Provider,{value:d,children:Yt.jsx(xh,Ln({as:o,role:o===Sh?null:"table",ref:t,className:vs(u.root,r),ownerState:c},l))})}),Ch=E.createContext();function Eh(e){return Ss("MuiTableBody",e)}ws("MuiTableBody",["root"]);const Ih=["className","component"],Rh=Ec("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ah={variant:"body"},Dh="tbody",Mh=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTableBody"}),{className:r,component:o=Dh}=n,i=On(n,Ih),a=Ln({},n,{component:o}),s=(e=>{const{classes:t}=e;return pl({root:["root"]},Eh,t)})(a);return Yt.jsx(Ch.Provider,{value:Ah,children:Yt.jsx(Rh,Ln({className:vs(s.root,r),as:o,ref:t,role:o===Dh?null:"rowgroup",ownerState:a},i))})});function kh(e){return Ss("MuiTableCell",e)}const Th=ws("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),qh=["align","className","component","padding","scope","size","sortDirection","variant"],Ph=Ec("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ca(n.size)}`],"normal"!==n.padding&&t[`padding${ca(n.padding)}`],"inherit"!==n.align&&t[`align${ca(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Ln({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Fl.lighten(Fl.alpha(e.palette.divider,1),.88):Fl.darken(Fl.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Th.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Lh=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:c,variant:u}=n,d=On(n,qh),p=E.useContext(bh),f=E.useContext(Ch),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=u||f&&f.variant,v=Ln({},n,{align:r,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return pl({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${ca(r)}`,"normal"!==o&&`padding${ca(o)}`,`size${ca(i)}`]},kh,t)})(v);let x=null;return c&&(x="asc"===c?"ascending":"descending"),Yt.jsx(Ph,Ln({as:m,ref:t,className:vs(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))});function Oh(e){return Ss("MuiTableContainer",e)}ws("MuiTableContainer",["root"]);const Nh=["className","component"],jh=Ec("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),_h=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=On(n,Nh),a=Ln({},n,{component:o}),s=(e=>{const{classes:t}=e;return pl({root:["root"]},Oh,t)})(a);return Yt.jsx(jh,Ln({ref:t,as:o,className:vs(s.root,r),ownerState:a},i))});function zh(e){return Ss("MuiTableHead",e)}ws("MuiTableHead",["root"]);const Fh=["className","component"],$h=Ec("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Bh={variant:"head"},Hh="thead",Vh=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTableHead"}),{className:r,component:o=Hh}=n,i=On(n,Fh),a=Ln({},n,{component:o}),s=(e=>{const{classes:t}=e;return pl({root:["root"]},zh,t)})(a);return Yt.jsx(Ch.Provider,{value:Bh,children:Yt.jsx($h,Ln({as:o,className:vs(s.root,r),ref:t,role:o===Hh?null:"rowgroup",ownerState:a},i))})});function Wh(e){return Ss("MuiTableRow",e)}const Uh=ws("MuiTableRow",["root","selected","hover","head","footer"]),Gh=["className","component","hover","selected"],Kh=Ec("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Uh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Uh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Yh="tr",Xh=E.forwardRef(function(e,t){const n=Dc({props:e,name:"MuiTableRow"}),{className:r,component:o=Yh,hover:i=!1,selected:a=!1}=n,s=On(n,Gh),l=E.useContext(Ch),c=Ln({},n,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),u=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return pl({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},Wh,t)})(c);return Yt.jsx(Kh,Ln({as:o,ref:t,className:vs(u.root,r),role:o===Yh?null:"row",ownerState:c},s))});function Jh(e){return Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Yt.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function Zh({fontSize:e="medium",children:t=null,className:n=""}={}){return Yt.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function Qh(e={}){return Yt.jsx(Zh,{...e,children:Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yt.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yt.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function em(e={}){return Yt.jsx(Zh,{fontSize:"medium",...e,children:Yt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yt.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yt.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function tm(e){return Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Yt.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function nm(e={}){return Yt.jsx(Zh,{...e,children:Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yt.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yt.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yt.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function rm(e={}){return Yt.jsx(Zh,{fontSize:"medium",...e,children:Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yt.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yt.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function om({className:e}){return Yt.jsx(Zh,{fontSize:"small",className:e,children:Yt.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yt.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yt.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yt.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yt.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Yt.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function im(e={}){return Yt.jsx(Zh,{...e,children:Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yt.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yt.jsx("rect",{stroke:qt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var am=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:qt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yt.jsx(Jh,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${qt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,borderRadius:jt,backgroundColor:qt.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${qt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:qt.WHITE,color:qt.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:jt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:qt.GREYSCALE_0_15,backgroundColor:qt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Fs(qt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Fs(qt.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:jt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:qt.GREYSCALE_0_42,backgroundColor:qt.GREYSCALE_100_60,"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:qt.PURPLE,"&.Mui-focusVisible":{borderColor:qt.PURPLE,boxShadow:`0 0 0 3px ${Fs(qt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:qt.GREEN,"&.Mui-focusVisible":{borderColor:qt.GREEN,boxShadow:`0 0 0 3px ${Fs(qt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:qt.BLUE,"&.Mui-focusVisible":{borderColor:qt.BLUE,boxShadow:`0 0 0 3px ${Fs(qt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:qt.ORANGE,"&.Mui-focusVisible":{borderColor:qt.ORANGE,boxShadow:`0 0 0 3px ${Fs(qt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:qt.RED,"&.Mui-focusVisible":{borderColor:qt.RED,boxShadow:`0 0 0 3px ${Fs(qt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:qt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:qt.PURPLE_PALE},"&:active":{backgroundColor:qt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:qt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Fs(qt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Fs(qt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Fs(qt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:qt.ORANGE_PALE},"&:active":{backgroundColor:qt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:qt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Fs(qt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:qt.RED_PALE},"&:active":{backgroundColor:qt.RED_DARK},"&.Mui-focusVisible":{borderColor:qt.RED_PALE,boxShadow:`0 0 0 3px ${Fs(qt.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:qt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:qt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:jt,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yt.jsx(tm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Pt,borderRadius:jt,color:qt.TEXT_PRIMARY,backgroundColor:qt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:qt.GREYSCALE_0_05,color:qt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:qt.GREEN,borderColor:qt.GREEN},"&.MuiChip-outlinedInfo":{color:qt.BLUE,borderColor:qt.BLUE},"&.MuiChip-outlinedWarning":{color:qt.ORANGE,borderColor:qt.ORANGE},"&.MuiChip-outlinedError":{color:qt.RED,borderColor:qt.RED}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:jt,boxShadow:"none",backgroundColor:qt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:qt.GREEN,borderColor:qt.GREEN},outlinedSecondary:{color:qt.BLUE,borderColor:qt.BLUE},label:{fontFamily:Bt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yt.jsx(tm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yt.jsx(Jh,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:jt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:jt,fontSize:Lt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:qt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${qt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:qt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:qt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:jt,border:`solid 1px ${qt.GREYSCALE_0_15}`,color:qt.GREYSCALE_0_60,marginRight:0,width:Nt,height:Nt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${qt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:jt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:qt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Lt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Pt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:qt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:qt.GREYSCALE_25,fontSize:Pt,fontFamily:Bt.FONT_FAMILY,fontWeight:Ft,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:qt.TEXT_PRIMARY},"&.Mui-error":{color:qt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:qt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:zt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:qt.TEXT_SECONDARY,content:"'(required)'",fontWeight:zt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Lt,lineHeight:"16px",backgroundColor:qt.WHITE,borderRadius:jt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_05}`,borderColor:qt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.RED}`,boxShadow:`0px 0px 0px 1px ${qt.RED}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_10}`,borderColor:qt.GREYSCALE_0_10,backgroundColor:qt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:qt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:qt.GREYSCALE_0_15,borderRadius:jt,boxShadow:`inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yt.jsx(Jh,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:qt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:qt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&:focus":{backgroundColor:qt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:qt.GREYSCALE_0_30,"&:hover":{backgroundColor:qt.GREYSCALE_0_0,borderColor:qt.GREYSCALE_0_15},"& ~svg":{color:qt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:jt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:qt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Lt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Pt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Pt,fontWeight:Ft,color:qt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ft}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yt.jsx(rm,{}),checkedIcon:Yt.jsx(em,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:qt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Fs(qt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Fs(qt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:qt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:qt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yt.jsx(im,{}),checkedIcon:Yt.jsx(Qh,{}),indeterminateIcon:Yt.jsx(nm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:jt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:qt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:qt.GREYSCALE_0_55,color:qt.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:qt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:qt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:qt.GREYSCALE_0_55,"&:hover":{color:qt.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:qt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:qt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Lt,color:qt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ft},secondary:{fontSize:Pt,color:qt.GREYSCALE_45,fontWeight:zt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Lt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Lt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:qt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Pt,borderBottom:`solid 1px ${qt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Lt,color:qt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:qt.RED}}},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:qt.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:qt.GREEN,height:"24px","&.Mui-disabled":{color:qt.GREYSCALE_0_15}},rail:{backgroundColor:qt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:jt,boxShadow:`inset 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:jt},thumb:{height:"16px",width:"16px",borderRadius:jt,backgroundColor:qt.WHITE,boxShadow:`0px 1px 2px 0px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`,"&:hover":{borderRadius:jt,boxShadow:`0 2px 4px 0 ${qt.GREYSCALE_0_30}, 0 0 0 1px ${qt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:qt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:qt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:qt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:qt.GREYSCALE_0_15},markLabel:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:qt.WHITE,color:qt.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:qt.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Fs(qt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Fs(qt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:qt.GREYSCALE_0_15,borderRadius:jt},thumb:{height:"16px",width:"16px",borderRadius:jt,backgroundColor:qt.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Lt,fontWeight:Ft,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${qt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,backgroundColor:qt.GREYSCALE_0_03,borderRadius:jt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:qt.GREYSCALE_25,"&.Mui-selected":{color:qt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Lt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:jt,"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${qt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${qt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:jt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderRight:`1px solid ${qt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ft,backgroundColor:qt.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:qt.GREYSCALE_98,borderBottom:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderTop:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05,"&:hover":{backgroundColor:qt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:qt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yt.jsx(om,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${qt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Lt,borderRadius:jt,padding:"7px 16px",border:`1px solid ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_60,color:qt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,border:`1px solid ${qt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:qt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`,border:`1px solid ${qt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:qt.GREYSCALE_25,backgroundColor:qt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Pt,height:24,width:24,padding:7},sizeLarge:{fontSize:Ot,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Lt,borderRadius:jt}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:qt.GREYSCALE_20},tooltip:{backgroundColor:qt.GREYSCALE_20,fontSize:Pt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const sm=e=>({mode:"light",primary:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},secondary:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},error:{ultraLight:qt.RED_ULTRA_LIGHT,light:qt.RED_PALE,main:qt.RED,dark:qt.RED_DARK,extraDark:qt.RED_EXTRA_DARK,contrastText:qt.WHITE},warning:{ultraLight:qt.ORANGE_ULTRA_LIGHT,light:qt.ORANGE_PALE,main:qt.ORANGE,dark:qt.ORANGE_DARK,extraDark:qt.ORANGE_EXTRA_DARK,contrastText:qt.WHITE},success:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},info:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},text:{primary:qt.TEXT_PRIMARY,secondary:qt.TEXT_SECONDARY,disabled:qt.GREYSCALE_0_30},action:{hover:qt.GREYSCALE_0_03,hoverOpacity:.03,selected:qt.GREYSCALE_0_05,selectedOpacity:.05,focus:qt.MISC_FOCUS_BORDER},amethyst:{ultraLight:qt.WHITE,main:qt.PURPLE,light:qt.PURPLE_PALE,dark:qt.PURPLE_DARK,extraDark:qt.GREYSCALE_0_0,contrastText:qt.WHITE},background:{paper:qt.WHITE,default:qt.GREYSCALE_95},divider:qt.GREYSCALE_0_15}),lm=(e="light")=>ac({components:am(),palette:sm(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Lt,fontWeightLight:_t,fontWeightRegular:zt,fontWeightMedium:Ft,fontWeightBold:$t,htmlFontSize:Lt,fontFamily:Bt.FONT_FAMILY,button:{fontWeight:Ft,fontSize:Lt,textTransform:"none"},body1:{fontSize:Ot,lineHeight:"24px"},body2:{fontSize:Lt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Nt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ot,fontWeight:Ft,lineHeight:"16px"},h6:{fontSize:Lt,fontWeight:Ft,lineHeight:"16px"},caption:{color:qt.TEXT_SECONDARY},subtitle1:{fontSize:Lt,color:qt.TEXT_SECONDARY},subtitle2:{fontSize:Pt,color:qt.TEXT_SECONDARY}},shape:{borderRadius:jt}}),cm={...Tt},um=lm().palette,dm={TEXT:um.text.primary,DISABLED:um.text.disabled,HOVER:um.action.hover,WHITE:cm.GREYSCALE_100,BORDER_LIGHT:cm.GREYSCALE_90,BORDER_MEDIUM:cm.GREYSCALE_85,BORDER_HEAVY:cm.GREYSCALE_50,DARK_MODE_TEXT:cm.GREYSCALE_95,DARK_MODE_BORDER:cm.GREYSCALE_95,DARK_MODE_DISABLED:cm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:cm.GREYSCALE_95,SELECTED:um.primary.main,LINK:um.info.main,ERROR:um.error.main},pm=(e,t=dm.TEXT,n=dm.WHITE)=>{const r=se(e??""),o=se(t),i=se(n);return r.isInvalid()?t:function(e,t,n){const r=le(e,t),o=le(e,n);if(void 0!==r&&void 0!==o)return r>o?t:n}(r,i,o).getRGB()},fm=e=>{const t=e.getStyle("","","dataColors.selected")||dm.SELECTED,n=function(e,t){const n=se(ce),r=se(e),o=se(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=le(n,r),a=le(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?ce:"#000000"}(t,dm.TEXT);return{background:t,color:n}},hm=(e,t)=>{const n=se(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},mm=(e,t,n)=>{const r=t?e.getColorPickerColor(t):"none";return"none"===r?n:r},gm=e=>{const t=se(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},bm=(e,t,n)=>{const r=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;r?r.focus():t.focusSelection?.(n)},vm=e=>{e.stopPropagation(),e.preventDefault()},ym=e=>!!e&&0===se(e).a,xm="#grid",Sm=(e,t,n,r=dm.WHITE)=>e&&!ym(e)?e:ym(t)?n&&!ym(n)?n:r:t,wm=(e,t)=>{const n=t?.closest(e);return n&&window.getComputedStyle(n).backgroundColor},Cm=(e,t,n,r,o)=>{const i=wm(".qv-object .qv-inner-object",n),a=wm(".qv-panel-sheet",n),s=wm(xm,n)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),n=t?.bgColor?.colorExpression,r=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&n)return gm(n);if("none"===r)return"transparent";if(void 0===r)return;const i=se(r);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),c=r?.(t),u=o?.(t),d=l||c||i||u,p=ym(d),f=!ym(h=p?s:d)&&pm(h,dm.TEXT,dm.DARK_MODE_TEXT)===ne(dm.DARK_MODE_TEXT);var h;return{color:d,headerColor:Sm(l,d,s),isDark:f}},Em=(e,t,r,o)=>{const l=s(),c=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=i([]);return a(()=>{let n;return e&&(n=new MutationObserver(e=>{r(e)}),n.observe(e,t)),()=>{n?.disconnect()}},[e,t]),n})(t.closest(xm),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return n(()=>({...l,background:Cm(e,l,t,r,o)}),[l.name(),t,r,o,e,c])};const Im=3,Rm=/\n/g;function Am(e,t,n){let r=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=n(a),c=n(s);if(l>t&&c<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?r=i+1:o=i}return null}const Dm=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o)=>{const{maxNbrLinesOfText:i=Im,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const s=o.measureText.bind(o),l=vt(e=>{if(void 0===e)return 0;if(a){const t=e.split(Rm).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(Rm," ");return s(t).width}),c=e=>+l(e).toFixed(2),u=vt(({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;const r=a?e.split(Rm):[e];let o=0;for(const e of r){let n=e;do{o+=1,n=Am(n,t,c)}while(null!==n&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:u}}};function Mm({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Im,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:c}=D(()=>Dm({fontStyle:n,fontWeight:r,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[n,r,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:c}}var km,Tm={};var qm=function(){if(km)return Tm;km=1;var e=V;return Tm.createRoot=e.createRoot,Tm.hydrateRoot=e.hydrateRoot,Tm}();const Pm="Source Sans Pro, sans-serif",Lm=(e,t,r)=>{const[,i,a]=function(e,t){const r=n(()=>({isLoading:!0}),t),[i,a]=o(async()=>{try{return await e()}finally{r.isLoading=!1}},t);return[i,r.isLoading,a]}(async()=>{const t=de(),n=e.getStyle("","","fontFamily"),r=e.getStyle("object","label.name","fontFamily"),o=e.getStyle("object","label.value","fontFamily"),i=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...i,n,r,o,Pm].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,r]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function Om(e,t){const[n,r]=M(t);n.some((e,n)=>e!==t[n])&&(r(t),e())}var Nm={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const jm=({translator:e})=>(D(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Nm).forEach(t=>{e.add(Nm[t])})}}(e)},[e]),e),_m="12px",zm="nebula-table-utils-head-menu-button",Fm="nebula-table-utils-head-menu-wrapper",$m="nebula-table-utils-head-menu",Bm="nebula-table-utils-head-menu-list-id",Hm="sn-copy-cell";let Vm=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const Wm="nebula-table-utils-column-adjuster";let Um=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),Gm=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Km={darker:.15,brighter:.3,opacity:.03},Ym={darker:.3,brighter:.5,opacity:.05};let Xm=function(e){return e.Cyclic="C",e}({});const Jm=document.createElement("textarea");function Zm(e){Jm.value=e,document.body.appendChild(Jm),Jm.select(),Jm.setSelectionRange(0,Jm.value.length),document.execCommand("copy"),document.body.removeChild(Jm)}Jm.style.position="absolute",Jm.style.left="-9999px",Jm.setAttribute("readonly","");const Qm=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{Zm(t)}):Zm(t))};function eg(e){return"init"in e}function tg(e){return"function"==typeof e.write}function ng(e){return"v"in e||"e"in e}function rg(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function og(e){return"function"==typeof(null==e?void 0:e.then)}function ig(e){if(!(e instanceof Error))return!1;const t=e.name,n=e.message.toLowerCase();return("RangeError"===t||"InternalError"===t)&&(n.includes("call stack")||n.includes("too much recursion")||n.includes("stack overflow"))}function ag(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function sg(e,t,n){const r=n.get(e),o=null==r?void 0:r.t,i=t.p;if(!(null==o?void 0:o.size))return i;if(!i.size)return o;const a=new Set(o);for(const e of i)a.add(e);return a}const lg=()=>{const e={},t=new WeakMap,n=n=>{var r,o;null==(r=t.get(e))||r.forEach(e=>e(n)),null==(o=t.get(n))||o.forEach(e=>e())};return n.add=(n,r)=>{const o=n||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(r),()=>{i.delete(r),i.size||t.delete(o)}},n};const cg=(e,t,n,...r)=>n.read(...r),ug=(e,t,n,...r)=>n.write(...r),dg=(e,t,n)=>n.INTERNAL_onInit(t),pg=(e,t,n,r)=>{var o;return null==(o=n.onMount)?void 0:o.call(n,r)},fg=(e,t,n)=>{var r;const o=e[0];let i=o.get(n);if(!i){const a=e[6],s=e[9];i={d:new Map,p:new Set,n:0},o.set(n,i),null==(r=a.i)||r.call(a,n),function(e){return!!e.INTERNAL_onInit}(n)&&s(e,t,n)}return i},hg=(e,t)=>{var n;const r=e[1],o=e[3],i=e[4],a=e[5],s=e[6],l=e[13];if(!(s.f||o.size||i.size||a.size))return;const c=[],u=e=>{try{e()}catch(e){c.push(e)}};do{s.f&&u(s.f);const c=new Set;for(const e of o){const t=null==(n=r.get(e))?void 0:n.l;if(t)for(const e of t)c.add(e)}o.clear();for(const e of a)c.add(e);a.clear();for(const e of i)c.add(e);i.clear();for(const e of c)u(e);o.size&&l(e,t)}while(o.size||a.size||i.size);if(c.length)throw new AggregateError(c)},mg=(e,n)=>{const r=e[1],o=e[2],i=e[3],a=e[11],s=e[14],l=e[17];if(!i.size)return;const c=[],u=[],d=new WeakSet,p=new WeakSet,f=[],h=[];for(const t of i)f.push(t),h.push(a(e,n,t));for(;f.length;){const i=f.length-1,s=f[i],l=h[i];if(p.has(s))f.pop(),h.pop();else if(d.has(s)){if(o.get(s)===l.n)c.push(s),u.push(l);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(s))throw new Error("[Bug] invalidated atom exists");p.add(s),f.pop(),h.pop()}else{d.add(s);for(const t of sg(s,l,r))d.has(t)||(f.push(t),h.push(a(e,n,t)))}}for(let t=c.length-1;t>=0;--t){const r=c[t],a=u[t];let d=!1;for(const e of a.d.keys())if(e!==r&&i.has(e)){d=!0;break}d&&(o.set(r,a.n),s(e,n,r),l(e,n,r)),o.delete(r)}},gg=new WeakSet,bg=(e,n,r)=>{var o,i;const a=e[1],s=e[2],l=e[3],c=e[6],u=e[7],d=e[11],p=e[12],f=e[13],h=e[14],m=e[16],g=e[17],b=e[20],v=e[26],y=e[28],x=d(e,n,r),S=y[0];if(ng(x)){if(a.has(r)&&s.get(r)!==x.n||x.m===S)return x.m=S,x;let t=!1;for(const[r,o]of x.d)if(h(e,n,r).n!==o){t=!0;break}if(!t)return x.m=S,x}let w=!0;const C=new Set(x.d.keys()),E=()=>{for(const e of C)x.d.delete(e)},I=()=>{if(a.has(r)){const t=!l.size;g(e,n,r),t&&(f(e,n),p(e,n))}},R=t=>{var o;if(t===r){const r=d(e,n,t);if(!ng(r)){if(!eg(t))throw new Error("no atom init");b(e,n,t,t.init)}return rg(r)}const i=h(e,n,t);try{return rg(i)}finally{C.delete(t),x.d.set(t,i.n),og(x.v)&&ag(r,x.v,i),a.has(r)&&(null==(o=a.get(t))||o.t.add(r)),w||I()}};let A,D;const M={get signal(){return A||(A=new AbortController),A.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||tg(r)||console.warn("setSelf function cannot be used with read-only atom"),!D&&tg(r)&&(D=(...o)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,n,r,o)}finally{f(e,n),p(e,n)}}),D}},k=x.n,T=s.get(r)===k;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&gg.delete(n);const i=u(e,n,r,R,M);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&gg.has(n)&&console.warn("Detected store mutation during atom read. This is not supported."),b(e,n,r,i),og(i)){v(e,n,i,()=>null==A?void 0:A.abort());const t=()=>{E(),I()};i.then(t,t)}else E();return null==(o=c.r)||o.call(c,r),x.m=S,x}catch(e){if(ig(e))throw e;return delete x.v,x.e=e,++x.n,x.m=S,x}finally{w=!1,x.n!==k&&T&&(s.set(r,x.n),l.add(r),null==(i=c.c)||i.call(c,r))}},vg=(e,t,n)=>{const r=e[1],o=e[2],i=e[11],a=[n];for(;a.length;){const n=a.pop(),s=i(e,t,n);for(const l of sg(n,s,r)){const n=i(e,t,l);o.get(l)!==n.n&&(o.set(l,n.n),a.push(l))}}},yg=(e,n,r,o)=>{const i=e[3],a=e[6],s=e[8],l=e[11],c=e[12],u=e[13],d=e[14],p=e[15],f=e[16],h=e[17],m=e[20],g=e[28];let b=!0;const v=t=>rg(d(e,n,t)),y=(o,...s)=>{var d;const v=l(e,n,o);try{if(o===r){if(!eg(o))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&gg.add(n);const r=v.n,l=s[0];return m(e,n,o,l),h(e,n,o),void(r!==v.n&&(++g[0],i.add(o),p(e,n,o),null==(d=a.c)||d.call(a,o)))}return f(e,n,o,s)}finally{b||(u(e,n),c(e,n))}};try{return s(e,n,r,v,y,...o)}finally{b=!1}},xg=(e,t,n)=>{var r;const o=e[1],i=e[3],a=e[6],s=e[11],l=e[15],c=e[18],u=e[19],d=s(e,t,n),p=o.get(n);if(p&&d.d.size>0){for(const[o,u]of d.d)if(!p.d.has(o)){const d=s(e,t,o);c(e,t,o).t.add(n),p.d.add(o),u!==d.n&&(i.add(o),l(e,t,o),null==(r=a.c)||r.call(a,o))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const o=u(e,t,r);null==o||o.t.delete(n)}}},Sg=(e,t,n)=>{var r;const o=e[1],i=e[4],a=e[6],s=e[10],l=e[11],c=e[12],u=e[13],d=e[14],p=e[16],f=e[18],h=l(e,t,n);let m=o.get(n);if(!m){d(e,t,n);for(const r of h.d.keys()){f(e,t,r).t.add(n)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(n,m),tg(n)&&function(e){return!!e.onMount}(n)){const r=()=>{let r=!0;const o=(...o)=>{try{return p(e,t,n,o)}finally{r||(u(e,t),c(e,t))}};try{const i=s(e,t,n,o);i&&(m.u=()=>{r=!0;try{i()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,n)}return m},wg=(e,t,n)=>{var r,o;const i=e[1],a=e[5],s=e[6],l=e[11],c=e[19],u=l(e,t,n);let d=i.get(n);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(n)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(n);for(const r of u.d.keys()){const o=c(e,t,r);null==o||o.t.delete(n)}null==(o=s.u)||o.call(s,n)},Cg=(e,t,n,r)=>{const o=e[11],i=e[27],a=o(e,t,n),s="v"in a,l=a.v;if(og(r))for(const i of a.d.keys())ag(n,r,o(e,t,i));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,og(l)&&i(e,t,l))},Eg=(e,t,n)=>rg((0,e[14])(e,t,n)),Ig=(e,t,n,...r)=>{const o=e[3],i=e[12],a=e[13],s=e[16],l=o.size;try{return s(e,t,n,r)}finally{o.size!==l&&(a(e,t),i(e,t))}},Rg=(e,t,n,r)=>{const o=e[12],i=e[13],a=e[18],s=e[19],l=a(e,t,n).l;return l.add(r),i(e,t),o(e,t),()=>{l.delete(r),s(e,t,n),i(e,t),o(e,t)}},Ag=(e,t,n,r)=>{const o=e[25];let i=o.get(n);if(!i){i=new Set,o.set(n,i);const e=()=>o.delete(n);n.then(e,e)}i.add(r)},Dg=(e,t,n)=>{const r=e[25].get(n);null==r||r.forEach(e=>e())},Mg=new WeakMap;function kg(e){const n=Mg.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Store must be created by buildStore to read its building blocks");const r=n[24];return r?r(n,e):n}function Tg(...e){const t={get:e=>r(n,t,e),set:(e,...r)=>o(n,t,e,...r),sub:(e,r)=>i(n,t,e,r)},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},cg,ug,dg,pg,fg,hg,mg,bg,vg,yg,xg,Sg,wg,Cg,Eg,Ig,Rg,void 0,new WeakMap,Ag,Dg,[0]].map((t,n)=>e[n]||t);Mg.set(t,Object.freeze(n));const r=n[21],o=n[22],i=n[23];return t}var qg=Object.freeze({__proto__:null,INTERNAL_addPendingPromiseToDependency:ag,INTERNAL_buildStoreRev3:Tg,INTERNAL_getBuildingBlocksRev3:kg,INTERNAL_getMountedOrPendingDependents:sg,INTERNAL_hasInitialValue:eg,INTERNAL_initializeStoreHooksRev3:function(e){return e.i||(e.i=lg()),e.r||(e.r=lg()),e.c||(e.c=lg()),e.m||(e.m=lg()),e.u||(e.u=lg()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e},INTERNAL_isActuallyWritableAtom:tg,INTERNAL_isAtomStateInitialized:ng,INTERNAL_isPromiseLike:og,INTERNAL_returnAtomValue:rg,INTERNAL_shouldThrowSynchronously:ig});let Pg,Lg=0;function Og(e,n){const r="atom"+ ++Lg,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?o.read=e:(o.init=e,o.read=Ng,o.write=jg),n&&(o.write=n),o}function Ng(e){return e(this)}function jg(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function _g(){return Tg()}const zg=T(void 0);function Fg(e){const n=N(zg);return(null==e?void 0:e.store)||n||(Pg||(Pg=_g(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Pg),globalThis.__JOTAI_DEFAULT_STORE__!==Pg&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Pg)}function $g({children:e,store:t}){const n=k(null);return t?C(zg.Provider,{value:t},e):(null===n.current&&(n.current=_g()),C(zg.Provider,{value:n.current},e))}const Bg=e=>"function"==typeof(null==e?void 0:e.then),Hg=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Vg=w.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Hg(e),e)}),Wg=new WeakMap,Ug=(e,t,n)=>{const r=kg(e),o=r[26];let i=Wg.get(t);return i||(i=new Promise((a,s)=>{let l=t;const c=e=>t=>{l===e&&a(t)},u=e=>t=>{l===e&&s(t)},d=()=>{try{const t=n();Bg(t)?(Wg.set(t,i),l=t,t.then(c(t),u(t)),o(r,e,t,d)):a(t)}catch(e){s(e)}};t.then(c(t),u(t)),o(r,e,t,d)}),Wg.set(t,i)),i};function Gg(e,t){const{delay:n,unstable_promiseStatus:r=!w.use}={},o=Fg(t),[[i,a,s],l]=q(t=>{const n=o.get(e);return Object.is(t[0],n)&&t[1]===o&&t[2]===e?t:[n,o,e]},void 0,()=>[o.get(e),o,e]);let c=i;if(a===o&&s===e||(l(),c=o.get(e)),P(()=>{const t=o.sub(e,()=>{if(r)try{const t=o.get(e);Bg(t)&&Hg(Ug(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof n)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(l,n);l()});return l(),t},[o,e,n,r]),L(c),Bg(c)){const t=Ug(o,c,()=>o.get(e));return r&&Hg(t),Vg(t)}return c}function Kg(e,n){const r=Fg(n);return O((...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...n)},[r,e])}function Yg(e,t){return[Gg(e,t),Kg(e,t)]}const Xg=Og(void 0),Jg=Og({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>{}}),Zg=Og({}),Qg=e=>"string"==typeof e,eb=e=>"number"==typeof e,tb=e=>"boolean"==typeof e,nb=e=>e instanceof Error,rb=e=>e instanceof Set,ob=e=>e instanceof Map,ib=e=>{if(e instanceof Error)return e.message;if(null===e)return"null";if(void 0===e)return"undefined";if(Qg(e))return e;if(rb(e))try{return JSON.stringify([...e])}catch{return"Failed to serialize Set"}if(ob(e))try{return JSON.stringify(Object.fromEntries(e))}catch{return"Failed to serialize Map"}try{return JSON.stringify(e)}catch{return"Failed to serialize value"}},ab=e=>{if(null!=e){if(Qg(e))return e;if(nb(e))return ib(e);if(eb(e)||tb(e))return String(e);if(Array.isArray(e)||rb(e)||ob(e))return ib(e);if("object"==typeof(t=e)&&null!==t&&!Array.isArray(t)){const t={};return Object.entries(e).forEach(([e,n])=>{Qg(n)||eb(n)||tb(n)?t[e]=n:t[e]=ib(n)}),t}var t;return ib(e)}},sb=(e,t={})=>{const{tag:n}=t,r=({msg:t,payload:r})=>{const o=((e,t)=>{const n=[];return Qg(t)&&t.length>0?n.push(t):Array.isArray(t)&&n.push(...t.filter(e=>"string"==typeof e&&e.length>0)),n.length>0?`${n.map(e=>`[${e}]`).join("")} ${e}`:e})(t,n);return(e=>{if(!nb(e))return!1;switch(e.message){case"Session suspended":case"Socket closed":return!0;default:return!1}})(r)||e.anything?.logInfo?.(o,ab(r)),o};return{warn:({msg:e,payload:t})=>{r({msg:e,payload:t})},error:({msg:e,payload:t})=>{r({msg:e,payload:t})}}},lb=e=>sb(e,{tag:"sn-table"}),cb=Og({}),ub=Og(e=>{const t=e(cb);return e=>t.flags.isEnabled(e)}),db=Og(e=>{const t=e(cb);return lb(t)}),pb=Og(!1),fb=Og({qHyperCube:{qDimensionInfo:[],qMeasureInfo:[],qSize:{qcx:0,qcy:0}}}),hb=Og(e=>e(fb).qHyperCube.qSize.qcy),mb=Og(e=>!!e(fb).snapshotData),gb=Og(e=>e(fb).qHyperCube.qDimensionInfo.length),bb=Og(e=>e(fb).qHyperCube.qMeasureInfo.length),vb=Og(e=>e(fb).qStateName),yb=Og(e=>e(fb).snapshotData),xb=Og(e=>!1!==e(fb).usePagination),Sb=Og(e=>!1!==e(fb).accessibleHeader),wb=Og(),Cb=Og(!1),Eb=Og(e=>e(wb),(e,t,n)=>{t(wb,n),t(Cb,n.isModal())}),Ib=Og(),Rb=Og(e=>{const t=e(Ib),n=e(mb);return{...t,select:!!t?.active&&!!t.select&&!n,active:!!t?.active&&!n,scroll:!!t?.active}},(e,t,n)=>{t(Ib,n)}),Ab=Og(e=>!!e(Rb).active),Db=Og(e=>!!e(Rb).passive),Mb=Og(e=>!!e(Rb).select),kb=Og(e=>!!e(Rb).scroll),Tb=Og(e=>{const t=e(Ab),n=e(Cb);return t&&!n}),qb=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),Pb=Og(),Lb=Og(e=>e(Pb)?.direction),Ob=Og(e=>e(Pb)?.footerContainer),Nb=Og(e=>e(Pb)?.viewState),jb=Og(e=>e(Pb)?.freeResize),_b=Og(e=>{const t=e(fb),n=e(Nb),r=e(xb);return void 0!==n?.usePagination?n.usePagination:r||qb(t,n)}),zb=Og({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),Fb=Og(e=>e(zb),(e,t,n)=>{const r=e(_b),o=e(ub)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE");(r||o)&&t(zb,n)}),$b=Og(),Bb=Og(e=>{const t=e($b);if(t&&"getEffectiveProperties"in t)return t}),Hb={width:0,height:0,top:0,left:0},Vb=Og(Hb),Wb=Og(Hb),Ub=Og(e=>e(Vb),(e,t,n)=>{const r=e(fb),o=e(jb),i=e(Vb),a=r.snapshotData?.content&&!o;(i.width!==n.width||i.height!==n.height||i.top!==n.top||i.left!==n.left||a)&&(t(Wb,n),t(Vb,a?{...n,...r.snapshotData?.content?.size}:n))}),Gb=Og({}),Kb=new WeakMap,Yb=Og(e=>{const t=e(Gb),n=Kb.get(t);if(n)return n;const r=qm.createRoot(t);return Kb.set(t,r),r}),Xb=Og({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),Jb=Og({get:e=>e,add:()=>{},language:()=>"en"});var Zb,Qb={exports:{}};var ev=(Zb||(Zb=1,function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=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},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,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(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=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},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,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(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Te});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var s=a[i];return a[i]=n,{updated:n,previous:s}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],o),h(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],o),p=u(r[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=c(f(t));if(!n.showExcludedValues)return a;var s=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),l=i?"":", 0";if(r&&1===r.length){var u=h(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])})},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var s=S({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var I=t().bind(null,!0),R={},A=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach(function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?i:e[t],e=e[n||t]}}),e}function q(e,t){var n=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){q(e[r],t[r])||(n=!1)}),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!q(e[r],t[r]))return!1;return!0}return e===t}R.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?I({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);q(i,a)||k(t,o)||(M(a)?r.push({op:"add",path:s,value:i}):D(i)&&D(a)?r=r.concat(R.generate(a,i,s)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(q(t,o))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(R.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){M(t[o])&&!k(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})}),r},R.apply=function(e,t){t.forEach(function(t){var n,r,o=T(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!k(n,e)&&delete n[e]}),I(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var u=T(e,t.from);A(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])})},R.clone=function(e){return I({},e)},R.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},R.updateObject=function(e,t){Object.keys(e).length?R.apply(e,R.generate(e,t)):I(e,t)};const P=R,L=function(e,n,r){if(!e)return Promise.resolve();var o=P.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function j(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),p=w.getAboveComp(n,l,u,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:n,properties:r,layout:o})){var h=w.getDimComp(c,1),m=w.getDimComp(c,0),g=w.getAggrComp(f,h,m);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var F="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===F)return n[r]}function B(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===F)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=w.getNumDimensions({properties:o,layout:a}));var u=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(r,c),h=w.getAboveComp(r,c,p,f);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:r,properties:o,layout:a})){var v=w.getDimComp(u,1),y=w.getDimComp(u,0),x=w.getAggrComp(b,v,y);b=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var W="timeSeriesDecomposition";function U(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===W)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===W)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const Y={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=U(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var n=U(t,e);return n&&!n.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=U(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,u),p="".concat(u," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:o})){var f=w.getDimComp(c,1),h=w.getDimComp(c,0),m=w.getAggrComp(p,f,h);p=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(o,i),d=ce(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(p,"))")}(u,d,n.field,n.value,p,l,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Ie="qDef.qAggrFunc",Re="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,Ee,i(e,we)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,we,i(e,Ee)),i(e,Ie)&&i(e,Re)&&n(e,Ie,i(e,Re)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const De=Ae;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var ke={accumulation:z,movingAverage:V,difference:ee,normalization:ue,timeSeriesDecomposition:Y};const Te={modifiers:ke,apply:Pe,applyModifiers:Le,cleanUpMeasure:Oe,destroy:function(e){e&&qe[e.id]&&qe[e.id].masterItemSubscriber&&(qe[e.id].masterItemSubscriber&&qe[e.id].masterItemSubscriber.unsubscribe(),delete qe[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:n,layout:r})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=Fe(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))}),o&&!i},ifEnableTotalsFunction:_e};var qe={};function Pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;qe[n.id]=qe[n.id]||{isFirstTime:!0};var c=qe[n.id].isFirstTime;if(qe[n.id].isFirstTime=!1,r&&"object"===Me(r))return Le({model:n,properties:r});var u=n?n.layout:void 0,d=i(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(u,"qHyperCube.qMeasureInfo"),f=qe[n.id].lastReloadTime;if(qe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:u})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({measure:e,properties:n,layout:r})})}({measures:t,layout:n})}({measures:p,layout:u,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some(function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:Fe(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then(function(e){var r=t()(!0,{},e);Be(r);var o=Qe(r);return Ke({model:n}).then(function(t){return Ye({libraryIds:o,model:n}).then(function(o){return h&&function(e){var t=e.properties;ze(t).forEach(function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:r}),Le({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Me(e.base)})}(p)?n.getEffectiveProperties().then(function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then(function(){var e=t()(!0,{},r);return ze(r).forEach(function(e){return Oe(e)}),Je({oldProperties:e,newProperties:r,model:n})})}({model:n,properties:e})}):Promise.resolve(l)}function Le(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:c}).then(function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach(function(e){return Oe(e)}),Promise.resolve();var l=a?void 0:Qe(r);return Ke({model:o,dimensionAndFieldList:s}).then(function(e){return Ye({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){n.forEach(function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(n)||De.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(s++,"object"!==Me(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:ke[r.type].generateExpression({expression:s,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof ke[r.type].updateModifier&&ke[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:ke[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}})}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)})})})}({measures:a,properties:o,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)})})}function Oe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&!ke[e.type]})}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({modifiers:Fe(e),properties:n,layout:r})})}function je(e){var t=Fe(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(ke[r.type]&&!r.disabled)return r}}function _e(e){var t=je(e);return!t||ke[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach(function(e){return function(e){var n=je(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)})}function He(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Me(t)&&(t.disabled||!ke[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,n=e.properties,r=e.layout;return!We(t)&&Ge({modifiers:Fe(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Me(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:n,layout:r})),o[e.type])})}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});r.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return r.push(a),Promise.all(r).then(function(){return o})}function Ye(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=n.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):L(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:n,layout:r})})}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach(function(t){var r=Fe(t);if(Ge({modifiers:r,properties:e})){var i=We(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(qe[t.id].masterItemSubscriber=qe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=i(e,"qInfo.qType");return n&&s[n]&&s[n].forEach(function(n){t[n]=i(e,n)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var o=l(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then(function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach(function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!r[e]&&s.push(u(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose()}),r={}}}}({model:t,callback:function(e){return Pe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),qe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(r,{default:()=>Be});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var p=n(8),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var s,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,l(r.qMeasures));var a,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach(function(e){t.properties[e]=n[e]})},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])}),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,n){var r,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(r=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=s}var S=n(909),w=n.n(S);function C(e,t){var n=w()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function E(e,t){return w()(!0,{},t,e)}function I(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var R=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},k=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},T=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},q=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},P=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(c):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(c):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},s=I(a.max,o.dimensions.length,R),l=I(a.min,o.dimensions.length,0);return{maxDimensions:I(i.max,s,R),minDimensions:I(i.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},_=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return A(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),r.dimensions.added(e,n)})}},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),r.measures.added(e,n)})}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach(function(t){i.setValue(e,t,n[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=_({exportFormat:t,initialProperties:r,hypercubePath:c}),b=i.getValue(r,c||"").qHyperCubeDef,v=i.getValue(g,c||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,I=void 0===E?q():E,R=l.defaultMeasure,A=void 0===R?P():R;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:I}),O({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),B({newProperties:g,dataDefinition:a,hypercubePath:c}),j({exportFormat:t,newHyperCubeDef:v}),k("qMaxStackedCells",b,v),k("qNoOfLeftDims",b,v),T("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),T("qMode",b,v,"S"),T("qReductionMode",b,v,"N"),T("qSortbyYValue",b,v),T("qIndentMode",b,v),T("qShowTotalsAbove",b,v),M(g,t,r),m.qProperty=g;var D=i.getValue(u||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:D}),p&&V(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,n,r){t=t||[];var o=u(e,r,n),i=u(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const Y={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach(function(e){n[e]=t[e]}),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],s=t.length;if(G(a,t,r,o),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=Y.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}),t.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(r,o);var l=r[r.length-1];if(l){var c=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),u=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(c){var f=Y.create(Y.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(s.expression=i)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(ne(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],o=Y.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=Y.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=Y.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return Y.moveByIdFromGroup(a,[],"qAttributeDimensions",c),Y.moveByIdFromGroup(a,[],"qAttributeExpressions",c),Y.moveByIdFromGroup(s,[],"qAttributeExpressions",u),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ce(d,p),b=ue({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),u}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},we={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var c=Ce(n,r,l);i.setValue(t,c,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})})}function Ie(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(n,r,s),c=i.getValue(t,l);void 0!==c&&(i.setValue(o,a,c),i.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})})}var Re="qHyperCubeDef.qMeasures",Ae="conditionalColoring",De="measures",Me="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Re,quarantineName:Ae,arrayName:De,itemPath:Me})},unquarantine:function(e){Ie({properties:e,arrayPath:Re,itemPath:Me,arrayName:De,quarantineName:Ae})}};var Te="qHyperCubeDef.qMeasures",qe="measures",Pe="qHyperCubeDef.qDimensions",Le="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:Te,quarantineName:Fe,arrayName:qe,itemPath:ze}),Ee({properties:e,arrayPath:Pe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Ie({properties:e,arrayPath:Te,quarantineName:Fe,arrayName:qe,itemPath:ze}),Ie({properties:e,arrayPath:Pe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ie({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},Be={hypercube:W,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Ie,conditionalColoring:ke,conditionalShow:$e}})(),r.default})()}(Qb)),Qb.exports),tv=Ht(ev);const nv="qHyperCubeDef.qMeasures",rv="measures",ov="qHyperCubeDef.qDimensions",iv="dimensions",av="qDef.representation",sv="tableRepresentation",lv="qDef.conditionalColoring",cv="conditionalColoring",uv="qMiniChartDef",dv="miniChartDef",pv=({propertyTree:e,hyperCubePath:t})=>{const n=tv.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:r,qDimensions:o,qMeasures:i}}=n.properties,a=((e,t,n)=>{const r=e.length+t.length,o=(n?.length===r?n:Array.from(Array(r).keys())).map(n=>((e,t,n)=>{const r=t.length,o=e<r?t[e]:n[e-r],{columnWidth:i}=o.qDef;return i||-1})(n,e,t));return o})(o,i,r);return bt(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:a}),tv.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),tv.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),tv.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{tv.quarantineArrayProp({properties:e,arrayPath:ov,itemPath:av,arrayName:iv,quarantineName:sv}),tv.quarantineArrayProp({properties:e,arrayPath:nv,itemPath:av,arrayName:rv,quarantineName:sv}),tv.quarantineArrayProp({properties:e,arrayPath:nv,itemPath:lv,arrayName:rv,quarantineName:cv}),tv.quarantineArrayProp({properties:e,arrayPath:nv,itemPath:uv,arrayName:rv,quarantineName:dv})})(n.properties),n};const fv=/^q[A-Z]/,hv=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],mv=e=>"object"==typeof e&&null!==e,gv=(e,t)=>(Object.entries(e).forEach(([n,r])=>{const o=void 0===t?n:`${t}.${n}`;((e,t)=>!fv.test(e)&&!hv.some(e=>e.test(t)))(n,o)?delete e[n]:Array.isArray(r)?e[n]=r.map((e,t)=>mv(e)?gv(e,`${o}.${t}`):e):mv(r)&&(e[n]=gv(r,o))}),e),bv=(e,t,n,r)=>{let o=t;r&&(o=t-r);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){const e=n[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:Gm.Pixels,pixels:e}:{type:Gm.FitToContent}:i.qDef.columnWidth=e}return i},vv=({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o,viewDataMode:i,env:a})=>{const s=lb(a);if(i){try{e=structuredClone(e)}catch(e){s.error({msg:"Failed to copy source properties",payload:e})}gv(e.properties)}const l=tv.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:r,extension:n});if(tv.conditionalShow.unquarantine(l.qProperty),i)bt(l,"qProperty.totals.show",!1),bt(l,"qProperty.usePagination",!0),bt(l,"qProperty.accessibleHeader",!0);else{tv.unquarantineProperty(l.qProperty,"straightTableColumnOrder"),(e=>{tv.unquarantineArrayProp({properties:e,arrayPath:ov,itemPath:av,arrayName:iv,quarantineName:sv}),tv.unquarantineArrayProp({properties:e,arrayPath:nv,itemPath:av,arrayName:rv,quarantineName:sv}),tv.unquarantineArrayProp({properties:e,arrayPath:nv,itemPath:lv,arrayName:rv,quarantineName:cv}),tv.unquarantineArrayProp({properties:e,arrayPath:nv,itemPath:uv,arrayName:rv,quarantineName:dv})})(l.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:n,columnWidths:r}}=l.qProperty,{dimensions:o,measures:i}=((e,t,n,r)=>{const o=e.length,i=o+t.length,a=n?.length===i?n:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>bv(e,t,r)),measures:a.filter(e=>e>=o).map(e=>bv(t,e,r,o))}})(e,t,n,r);Array.isArray(r)&&r.length>0&&(bt(l,"qProperty.qHyperCubeDef.qDimensions",o),bt(l,"qProperty.qHyperCubeDef.qMeasures",i))}return l};t.meta.env&&t.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},n){var r;let o,i;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}o=e}return i},c=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(c)?c.then(l):l(c)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,e=>{let o;try{o=JSON.parse(e||"",null==n?void 0:n.reviver)}catch(e){o=r}t(o)})))}();const yv=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),xv=new WeakMap,Sv=()=>{};function wv(e,n=Sv){return((e,t,n)=>{const r=yv(()=>new WeakMap,xv,t);return yv(e,r,n)})(()=>{const r=new WeakMap,o=new WeakMap,i=Og(0),a=Og([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(i,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(i.debugPrivate=!0,a.debugPrivate=!0);const s=Og(t=>{let l;t(i);try{l=t(s)}catch(e){}const c=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(c))return{v:c};if(c!==(null==l?void 0:l.p)&&c.then(e=>{o.set(c,e);const[n]=t(a);n()},e=>{r.set(c,e);const[n]=t(a);n()}),r.has(c)){if(l&&"e"in l&&l.p===c)return l;const e=r.get(c);return l&&"v"in l?{p:c,e:e,v:l.v}:{p:c,e:e}}return o.has(c)?{p:c,v:o.get(c)}:l&&"v"in l?{p:c,f:n(l.v),v:l.v}:{p:c,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),Og(e=>{const t=e(s);if("e"in t)throw t.e;return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}const Cv=new WeakMap;function Ev(e,t){const n=Fg(t),r=Iv(n);for(const[o,...i]of e)r.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(o),n.set(o,...i))}const Iv=e=>{let t=Cv.get(e);return t||(t=new WeakSet,Cv.set(e,t)),t};function Rv(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}const Av="INTERNAL_getBuildingBlocksRev",Dv=Number(Object.keys(qg).find(e=>e.startsWith(Av))?.slice(29));if(Number.isNaN(Dv))throw new Error("jotai-compat: unsupported jotai internals revision");const Mv=qg,kv=`INTERNAL_getBuildingBlocksRev${Dv}`,Tv=Mv[`INTERNAL_initializeStoreHooksRev${Dv}`],qv=[["atomStateMap","a"],["mountedMap","m"],["invalidatedAtoms","i"],["changedAtoms","c"],["mountCallbacks","q"],["unmountCallbacks","Q"],["storeHooks","h"],["atomRead","R"],["atomWrite","W"],["atomOnInit","I"],["atomOnMount","M"],["ensureAtomState","e"],["flushCallbacks","f"],["recomputeInvalidatedAtoms","C"],["readAtomState","r"],["invalidateDependents","d"],["writeAtomState","w"],["mountDependencies","D"],["mountAtom","t"],["unmountAtom","T"],["setAtomStateValueOrPromise","v"],["storeGet","g"],["storeSet","s"],["storeSub","b"],["enhanceBuildingBlocks","B"],["abortHandlersMap","p"],["registerAbortHandler","H"],["abortPromise","A"],["storeEpochHolder","E"]];if(Dv>=4)for(const[e,t]of qv)if(Mv[`INTERNAL_KEY_${e}`]!==t)throw new Error(`jotai-compat: KEY drift for ${e}`);const Pv={};qv.forEach(([e,t],n)=>{Pv[`INTERNAL_KEY_${e}`]=Dv>=4?t:n});const{INTERNAL_KEY_mountedMap:Lv,INTERNAL_KEY_changedAtoms:Ov,INTERNAL_KEY_storeHooks:Nv,INTERNAL_KEY_ensureAtomState:jv,INTERNAL_KEY_flushCallbacks:_v,INTERNAL_KEY_recomputeInvalidatedAtoms:zv,INTERNAL_KEY_readAtomState:Fv,INTERNAL_KEY_invalidateDependents:$v,INTERNAL_KEY_writeAtomState:Bv,INTERNAL_KEY_mountDependencies:Hv,INTERNAL_KEY_setAtomStateValueOrPromise:Vv}=Pv,Wv=Mv[kv],Uv=new WeakMap;function Gv(e){const t=Og(()=>[]),n=Og(function(e){const[r,o,i]=e(t);i.has(n)&&(r.forEach(e),++o.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=(e=>{const t=Wv(e);let n=Uv.get(t);return n||(n=Array.isArray(t)?[]:{},qv.forEach(([e,r],o)=>{const i={value:Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[o],enumerable:!0};Object.defineProperty(n,o,i),Object.defineProperty(n,r,i)}),Uv.set(t,n)),n})(e),o=r[Lv],i=r[Ov],a=Tv(r[Nv]),s=r[jv],l=r[_v],c=r[zv],u=r[Fv],d=r[$v],p=r[Bv],f=r[Hv],h=r[Vv],m=new Set;let g,b=0,v=!1,y=!1,x=!1;function S(){if(b)return;m.clear();let t=!0;const w=i=>{if(x)return e.get(i);if(i===n){const t=s(r,e,i);if(!ng(t)){if(!eg(i))throw new Error("no atom init");h(r,e,i,i.init)}return rg(t)}const a=u(r,e,i);try{return rg(a)}finally{C.d.set(i,a.n),o.get(i)?.t.add(n),t?m.add(i):o.has(i)&&(f(r,e,n),c(r,e),l(r,e))}};w.peek=e.get;const E=(o,...u)=>{const m=s(r,e,o);try{if(++b,o===n){if(!eg(o))throw new Error("atom not writable");const t=m.n,n=u[0];return h(r,e,o,n),f(r,e,o),void(t!==m.n&&(i.add(o),a.c?.(o),d(r,e,o)))}return p(r,e,o,u)}finally{t||(c(r,e),l(r,e)),--b}};E.recurse=(t,...o)=>{if(x){if(Rv())throw new Error("set.recurse is not allowed in cleanup")}else try{return v=!0,f(r,e,n),E(t,...o)}finally{c(r,e),v=!1,y&&(y=!1,S())}};try{g?.();const e=n.effect(w,E);if("function"!=typeof e)return;g=()=>{if(!b)try{return t=!0,x=!0,e()}finally{t=!1,x=!1,g=void 0}}}finally{t=!1,m.forEach(t=>{C.d.set(t,s(r,e,t).n)}),f(r,e,n),c(r,e)}}const w=function(e,t){let n=Kv.get(e);n||(n=new Set,Kv.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,a),C=s(r,e,n);C.v=void 0,Object.assign(e.get(t),[m,C,o]),a.c.add(n,function(){i.delete(n)}),a.m.add(n,function(){w.add(S),g&&w.delete(g)}),a.u.add(n,function(){w.delete(S),g&&w.add(g)}),a.c.add(n,function(){v?y=!0:w.add(S)})},Rv()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const Kv=new WeakMap;const Yv=async(e,t,n)=>{if("dimension"===e.type)if(e.isAlternative)try{await t.moveDimensionFromAlternative(e.id)}catch(t){n.error({msg:`Failed to move dimension ${e.id} from alternative`,payload:t})}else try{await t.moveDimensionToAlternative(e.id)}catch(t){n.error({msg:`Failed to move dimension ${e.id} to alternative`,payload:t})}if("measure"===e.type)if(e.isAlternative)try{await t.moveMeasureFromAlternative(e.id)}catch(t){n.error({msg:`Failed to move measure ${e.id} from alternative`,payload:t})}else try{await t.moveMeasureToAlternative(e.id)}catch(t){n.error({msg:`Failed to move measure ${e.id} to alternative`,payload:t})}},Xv=e=>{const{items:t,handler:n,model:r,handlerQueue:o,logToSentry:i}=e;void 0!==n&&void 0!==r&&o&&o.add(async()=>{for(const e of t)await Yv(e,n,i)})},Jv=Og(),Zv=Og(),Qv=Og(),ey=Og(e=>e(Qv)?.translate??(e=>e)),ty=Og(e=>t=>e(Qv)?.getBooleanFlag(t,!1)??!1),ny=Og(""),ry=Og(e=>{const t=e(ny).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)});class oy{#e=[];#t=!1;#n=!1;#r;#o;#i;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#o=void 0,this.#i=void 0,this.#a=void 0}pause(){this.#o&&(clearTimeout(this.#a),this.#i?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#o=e,this.#i=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#i;var n;await(n=e,new Promise(e=>{setTimeout(e,n)})),t===this.#i&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#i?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#o)await this.#o;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const iy=Og(null),ay=Gv((e,t)=>{const n=e(Jv),r=e(Zv),o=new oy({onQueueCompleted:async()=>{if(!n||!r)return;const e=r.properties.qHyperCubeDef,t=Date.now();e.qDimensions.length&&Object.assign(e.qDimensions[0],{patchTimeStamp:t}),e.qMeasures.length&&Object.assign(e.qMeasures[0],{patchTimeStamp:t}),await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(iy,o);const i=()=>{o.pause()},a=()=>{o.continue(500)},s=()=>{o.abort()};return n?.Invalidated?.bind(i),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{o.abort(),n?.Invalidated?.unbind(i),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),sy=e=>e.qDef?.cId,ly=(e=[])=>new Set(e.map(sy).filter(e=>void 0!==e)),cy=({effectiveActive:e,effectiveExcluded:t,currentKnown:n})=>{const r=ly(n),o=ly([...e,...t]),i=new Set,a=n.filter(e=>{const t=sy(e);return!(!t||o.has(t)||i.has(t))&&(i.add(t),!0)}),s=t.flatMap((e,t)=>{const n=sy(e);return void 0===n||r.has(n)?[]:[t]});return{kept:t.filter((e,t)=>!s.includes(t)),missing:a,removedIndexes:s}},uy=(e,t)=>{if(!("qHyperCubeDef"in t))return e;const n=e.qHyperCubeDef,r=t.qHyperCubeDef,o=n.qLayoutExclude?.qHyperCubeDef,i=r.qLayoutExclude?.qHyperCubeDef,a=cy({effectiveActive:n.qDimensions??[],effectiveExcluded:o?.qDimensions??[],currentKnown:[...r.qDimensions??[],...i?.qDimensions??[]]}),s=cy({effectiveActive:n.qMeasures??[],effectiveExcluded:o?.qMeasures??[],currentKnown:[...r.qMeasures??[],...i?.qMeasures??[]]});if(![a,s].some(({missing:e,removedIndexes:t})=>e.length>0||t.length>0))return e;const l=[...a.kept,...a.missing],c=[...s.kept,...s.missing],u=((e,t)=>{if(!e)return;const n=new Set(t),r=Object.entries(e).filter(([e])=>n.has(e)).sort((e,t)=>e[1]-t[1]).map(([e])=>e),o=new Set(r),i=[...n].filter(e=>!o.has(e));return Object.fromEntries([...r,...i].map((e,t)=>[e,t]))})(n.qLayoutExclude?.allColumnOrder,[...ly(n.qDimensions??[]),...ly(n.qMeasures??[]),...ly(l),...ly(c)]);return{...e,qHyperCubeDef:{...n,qLayoutExclude:{...n.qLayoutExclude,...u&&{allColumnOrder:u},qHyperCubeDef:{...n.qLayoutExclude?.qHyperCubeDef,qDimensions:l,qMeasures:c}}}}},dy=e=>7005!==e.qError?.qErrorCode,py=new WeakMap,fy={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},hy=wv(Og(async e=>{const t=e(Jv),n=e(db);if(t){if(py.has(t))return py.get(t);try{const e=await t.app.createSessionObject(fy);return py.set(t,e),e}catch(e){return void n.error({msg:"Error creating alternative layout model",payload:e})}}})),my=Og(null),gy=Og(),by=Gv((e,t)=>{const n=e(Jv),r=e(hy),o=e(db),i=e(ty),a=e(Zv);let s=0,l=!1;if(!n||!r)return;const c=async()=>{s++;try{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=structuredClone(await n.getEffectiveProperties()),s=i("VNA-760-show-added-columns-exploration")?uy(o,await n.getProperties()):o;await r.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(s.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qDimensions??[])},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(s.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qMeasures??[])}]);const l=await r.getLayout();s!==o&&a?.setProperties(structuredClone(s)),t(gy,{layout:structuredClone(e),properties:s,altLayout:structuredClone(l)}),t(my,null)}catch(e){o.error({msg:"Failed to synchronize table layout",payload:e})}finally{s--,0===s&&l&&(l=!1,u())}},u=async()=>{if(s>0)return void(l=!0);const e=await r.getLayout();t(gy,t=>({...t,altLayout:structuredClone(e)}))};return c(),n.Invalidated.bind(c),r.Invalidated.bind(u),()=>{n.Invalidated.unbind(c),r.Invalidated.unbind(u)}}),vy=Og(e=>e(gy)?.layout),yy=Og(e=>e(gy)?.altLayout),xy=Og(e=>e(gy)?.properties),Sy=Og(e=>void 0===e(vy)||void 0===e(xy)),wy=Og(e=>{const t=e(gy)?.layout;return t?.qHyperCube.qDimensionInfo.filter(dy)??[]}),Cy=Og(e=>{const t=e(gy)?.layout;return t?.qHyperCube.qMeasureInfo.filter(dy)??[]}),Ey=Og(e=>{const t=[...e(wy),...e(Cy)].map(e=>e.cId);return new Set(t)}),Iy=Og(new Set),Ry=Og(new Set),Ay=Og(e=>{const t=e(Iy),n=e(Ry);return e(Ey).difference(n).union(t)}),Dy=Gv((e,t)=>{e(Ey),t(Iy,new Set),t(Ry,new Set)}),My=Og(e=>e(Ay),(e,t,n)=>{if("string"!=typeof n.id)return;const r=e(Ay).has(n.id),o=new Set(e(Ry)),i=new Set(e(Iy));r?(o.add(n.id),i.delete(n.id)):(i.add(n.id),o.delete(n.id)),t(Ry,o),t(Iy,i),Xv({items:[n],handler:e(Zv),model:e(Jv),handlerQueue:e(iy),logToSentry:e(db)})}),ky=({props:e,children:t})=>(Ev([[Jv,e.args.model],[Qv,e.args.apis],[Zv,e.args.handler]]),Gg(by),Gg(ay),Gg(Dy),t);function Ty(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function qy(e){return"write"in e}const Py="INTERNAL_getBuildingBlocksRev";var Ly;const Oy=Number(null==(Ly=Object.keys(qg).find(e=>e.startsWith(Py)))?void 0:Ly.slice(29));if(Number.isNaN(Oy))throw new Error("jotai-compat: unsupported jotai internals revision");const Ny=qg,jy=`INTERNAL_getBuildingBlocksRev${Oy}`,_y=Ny[`INTERNAL_buildStoreRev${Oy}`];const zy=[["atomStateMap","a"],["mountedMap","m"],["invalidatedAtoms","i"],["changedAtoms","c"],["mountCallbacks","q"],["unmountCallbacks","Q"],["storeHooks","h"],["atomRead","R"],["atomWrite","W"],["atomOnInit","I"],["atomOnMount","M"],["ensureAtomState","e"],["flushCallbacks","f"],["recomputeInvalidatedAtoms","C"],["readAtomState","r"],["invalidateDependents","d"],["writeAtomState","w"],["mountDependencies","D"],["mountAtom","t"],["unmountAtom","T"],["setAtomStateValueOrPromise","v"],["storeGet","g"],["storeSet","s"],["storeSub","b"],["enhanceBuildingBlocks","B"],["abortHandlersMap","p"],["registerAbortHandler","H"],["abortPromise","A"],["storeEpochHolder","E"]];if(Oy>=4)for(const[e,t]of zy)if(Ny[`INTERNAL_KEY_${e}`]!==t)throw new Error(`jotai-compat: KEY drift for ${e}`);const Fy={};zy.forEach(([e,t],n)=>{Fy[e]=Oy>=4?t:n});const{atomStateMap:$y,mountedMap:By,invalidatedAtoms:Hy,changedAtoms:Vy,mountCallbacks:Wy,unmountCallbacks:Uy,storeHooks:Gy,atomRead:Ky,atomWrite:Yy,atomOnInit:Xy,atomOnMount:Jy,ensureAtomState:Zy,flushCallbacks:Qy,recomputeInvalidatedAtoms:ex,readAtomState:tx,invalidateDependents:nx,writeAtomState:rx,mountDependencies:ox,mountAtom:ix,unmountAtom:ax,setAtomStateValueOrPromise:sx,storeGet:lx,storeSet:cx,storeSub:ux,enhanceBuildingBlocks:dx,abortHandlersMap:px,registerAbortHandler:fx,abortPromise:hx,storeEpochHolder:mx}=Fy,gx=Ny[jy],bx=new WeakMap,vx=new WeakMap,yx={},{read:xx,write:Sx}=Og(null);function wx(e,t,n){const[r,o,i,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=o.get(t);return r||(r=[Rx(e,t,n),n],o.set(t,r)),r}const l=n??yx;let c=i.get(l);c||(c=new WeakMap,i.set(l,c));let u=c.get(t);if(!u){const[r,o]=a?wx(a,t,n):[t];u=[t.read===xx?r:Rx(e,t,o),o],c.set(t,u)}return u}function Cx(e){for(const t of e[5])t()}function Ex(e,t,n,r,o){if(n.read===xx&&qy(n)&&qy(t)&&n.write!==Sx&&e!==r){const{write:i}=n;return t.write=Ix(e,n.write.bind(n),r,o),()=>{t.write=i}}}function Ix(e,t,n,r=n){return function(o,i,...a){return t(function(t){const[r]=wx(e,t,n);return o(r)},function(t,...o){const[a]=wx(e,t,n),s=Ex(e,a,t,n,r);try{return i(a,...o)}finally{null==s||s()}},...a)}}function Rx(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const o=Object.getPrototypeOf(t),i=Object.create(o,r);return i.read!==xx&&(i.read=function(e,t,n){return function(r,o){return t(function(t){const[o]=wx(e,t,n);return r(o)},o)}}(e,t.read.bind(t),n)),qy(i)&&qy(t)&&i.write!==Sx&&(i.write=Ix(e,t.write.bind(t),n)),i}function Ax({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const o=new WeakSet(e),i=vx.get(n),a=(null==i?void 0:i[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],c=s[5],u=function(e){const t=e[3],n=Dx((e=>{const t=gx(e);let n=bx.get(t);return n||(n=Array.isArray(t)?[]:{},zy.forEach(([e,r],o)=>{const i={value:Object.prototype.hasOwnProperty.call(t,r)?t[r]:t[o],enumerable:!0};Object.defineProperty(n,o,i),Object.defineProperty(n,r,i)}),bx.set(t,n)),n})(t)),r=n,o=r[Fy.storeGet],i=r[Fy.storeSet],a=r[Fy.storeSub],s={};let l,c;return r[Fy.storeGet]=m(o),r[Fy.storeSet]=f,r[Fy.storeSub]=m(a),n[Fy.enhanceBuildingBlocks]=function(e){return l??(l=g(e[Fy.atomStateMap],u)),c??(c=Object.assign(Dx(e),{...e,[Fy.atomStateMap]:l,[Fy.mountedMap]:g(e[Fy.mountedMap],d),[Fy.invalidatedAtoms]:g(e[Fy.invalidatedAtoms]),[Fy.changedAtoms]:b(e[Fy.changedAtoms]),[Fy.mountCallbacks]:e[Fy.mountCallbacks],[Fy.unmountCallbacks]:e[Fy.unmountCallbacks],[Fy.storeHooks]:y(e[Fy.storeHooks]),[Fy.atomRead]:m(e[Fy.atomRead]),[Fy.atomWrite]:m(e[Fy.atomWrite]),[Fy.atomOnInit]:m(e[Fy.atomOnInit]),[Fy.atomOnMount]:m(e[Fy.atomOnMount]),[Fy.ensureAtomState]:p(l,e[Fy.ensureAtomState]),[Fy.flushCallbacks]:(t,...r)=>e[Fy.flushCallbacks](n,...r),[Fy.recomputeInvalidatedAtoms]:(t,...r)=>e[Fy.recomputeInvalidatedAtoms](n,...r),[Fy.readAtomState]:m(e[Fy.readAtomState]),[Fy.invalidateDependents]:m(e[Fy.invalidateDependents]),[Fy.writeAtomState]:m(e[Fy.writeAtomState]),[Fy.mountDependencies]:m(e[Fy.mountDependencies]),[Fy.mountAtom]:m(e[Fy.mountAtom]),[Fy.unmountAtom]:m(e[Fy.unmountAtom]),[sx]:m(e[sx]),[Fy.storeGet]:m(e[Fy.storeGet]),[Fy.storeSet]:m(e[Fy.storeSet]),[Fy.storeSub]:m(e[Fy.storeSub]),[Fy.enhanceBuildingBlocks]:()=>e})),c},function(e){if(Oy<4){const t=e?Object.values(e):[];return _y(...t)}const t=Array.isArray(e)?Object.fromEntries(zy.map(([t,n],r)=>[n,e[r]])):e;return _y(t)}(n);function u(t){const n=new WeakMap;return function(r){let o=n.get(r);if(o)return o;const i=t(r);if(!i)return;let a,s;return o=new Proxy(i,{get:(t,n)=>"d"===n?a??(a=g(i.d,function(t){return n=>t(wx(e,n)[0])})):"p"===n?s??(s=b(i.p)):Reflect.get(i,n)}),n.set(r,o),o}}function d(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const o=e(n);return o?(r={...o,d:b(o.d),t:b(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(n,r),r):void 0}}function p(e,t){const n=m(t);return function(t,r,o){const i=e.get(o);if(i)return i;const a=n(t,r,o);return e.set(o,a),e.get(o)}}function f(t,n,r,...o){const[a,s]=wx(e,r),l=Ex(e,a,r,s,e);try{return i(t,n,a,...o)}finally{null==l||l()}}function h(t,n){return function(r,...o){const[i]=wx(e,r);return(n?n(t):t)(i,...o)}}function m(t){return function(r,o,i,...a){const[s]=wx(e,i);return t(n,o,s,...a)}}function g(e,t){const n={get:h(e.get.bind(e),t),set:h(e.set.bind(e)),has:h(e.has.bind(e)),delete:h(e.delete.bind(e))};if("function"==typeof e.keys){const t=e,r=n;r.keys=t.keys.bind(t),r[Symbol.iterator]=t[Symbol.iterator].bind(t),Object.defineProperty(n,"size",{enumerable:!1,configurable:!0,get:()=>t.size})}return n}function b(t){return{get size(){return t.size},add:h(t.add.bind(t)),has:h(t.has.bind(t)),delete:h(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(h(e)),*[Symbol.iterator](){for(const n of t)yield wx(e,n)[0]}}}function v(t){if(!t)return;const n=h(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[o]=wx(e,n);return t.add(o,r)},n}function y(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>s[t]??(s[t]=v(e[t])),set(n){delete s[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=u,Object.assign(u,{name:r}),vx.set(u,s);for(const t of new Set(e))l.set(t,[Rx(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[Rx(s,n,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!o.has(t)&&l.delete(t):l.set(t,[Rx(s,t,s),s])});c.add(t)}return u}function Dx(e){return Array.isArray(e)?[...e]:{...e}}const Mx=function(e,t){return function(n){const{atoms:r=[],atomFamilies:o=[],children:i,scope:a,name:s}=n,l=t(),c=Array.from(r,e=>Array.isArray(e)?e[0]:e);function u(){return[a??Ax({atoms:c,atomFamilies:o,parentStore:l,name:s}),function(e){return l!==e.parentStore||!Ty(c,e.atoms)||!Ty(o,e.atomFamilies)||a!==e.providedScope}]}const[[d,p],f]=M(u);if(p({atoms:c,atomFamilies:o,parentStore:l,providedScope:a})){const e=vx.get(d);e&&Cx(e),f(u)}return Ev(Array.from(r).filter(Array.isArray),{store:d}),P(()=>{const e=vx.get(d);return()=>{e&&Cx(e)}},[d]),C(e,{store:d,children:i})}}($g,Fg);var kx=Object.defineProperty,Tx=Object.defineProperties,qx=Object.getOwnPropertyDescriptors,Px=Object.getOwnPropertySymbols,Lx=Object.prototype.hasOwnProperty,Ox=Object.prototype.propertyIsEnumerable,Nx=(e,t,n)=>t in e?kx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jx=(e,t)=>{for(var n in t||(t={}))Lx.call(t,n)&&Nx(e,n,t[n]);if(Px)for(var n of Px(t))Ox.call(t,n)&&Nx(e,n,t[n]);return e},_x=(e,t)=>Tx(e,qx(t));function zx(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function Fx(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function $x(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function Bx(e,t){return function(e,t,n){var r,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,i.id)),o=e.findIndex(e=>l(e,a.id));if(-1===r||-1===o){if($x(i)){const r=i.initialIndex,o=i.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!s&&"index"in i&&"number"==typeof i.index){const t=i.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const c=Object.entries(e);let u,d,p=-1,f=-1;for(const[e,t]of c)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(u=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(-1===p&&$x(i)){const r=null==i.initialGroup?void 0:Fx(e,i.initialGroup),o=i.initialIndex,a=null==i.group?void 0:Fx(e,i.group),s=i.index;if(null==r||null==a)return"preventDefault"in t&&t.preventDefault(),e;if(r===a&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===a)return _x(jx({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return _x(jx({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[a]:[...e[a].slice(0,s),l,...e[a].slice(s)]})}if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(r=h.shape)?void 0:r.current.center)?o:h.position.current;if(null==d){const t=Fx(e,a.id);null!=t&&(d=t,f=a.shape&&m.y>a.shape.center.y?e[t].length:0)}if(null==u||null==d||u===d&&p===f){if(null!=u&&u===d&&p===f&&$x(i)){const t=null==i.group?void 0:Fx(e,i.group),r=null!=i.group&&t!==u,o=i.index!==p;if(r||o){const r=null==i.group?u:t;if(null!=r){if(u===r)return _x(jx({},e),{[u]:n(e[u],p,i.index)});const t=e[u][p];return _x(jx({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[r]:[...e[r].slice(0,i.index),t,...e[r].slice(i.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(u===d)return _x(jx({},e),{[u]:n(e[u],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[u][p];return _x(jx({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,zx)}function Hx(e,t){let n=null;const r=new Map,o=new Set;function i(o){let s;if(void 0===t)s=r.get(o);else for(const[e,n]of r)if(t(e,o)){s=n;break}if(void 0!==s){if(!n?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return r.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,n){for(const r of o)r({type:e,param:t,atom:n})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>r.keys(),i.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[o]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,o);break}},i.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,o]]of r)n(o,e)&&(r.delete(e),a("REMOVE",e,t))},i}const Vx=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,Wx=Og(),Ux=Og(e=>e(Wx)?.numberOfSections??0),Gx=Og(e=>e(Wx)?.numberOfItemsInSection??[]),Kx=Og(e=>e(Wx)?.keyExtractor??Vx),Yx=Og(e=>e(Wx)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),Xx=Og(e=>e(Wx)?.onDragEnd),Jx=Og(e=>e(Wx)?.onDragOver),Zx=Og(e=>e(Wx)?.itemRenderer),Qx=Og(e=>e(Wx)?.headerRenderer),eS=Og(e=>e(Wx)?.dragOverlayRenderer),tS=Og(e=>e(Wx)?.onClick),nS=Og(e=>{const t=e(Ux),n=e(Gx),r=e(Kx),o={};for(let e=0;e<t;e++)o[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return o}),rS=Og(null),oS=Og(e=>e(rS),(e,t,n)=>{if(null===n)return void t(rS,null);const r=e(rS);t(rS,{...r,...n})}),iS=Hx(e=>Og(null,(t,n,r)=>{let o;"over"===e?o=t(Jx):"end"===e&&(o=t(Xx),n(oS,null));const{source:i,target:a}=r.operation;if("start"===e)return void n(oS,{id:i.id,startSection:i.data.sectionKey,startIndex:i.data.itemIndex,startSectionIndex:i.data.sectionIndex});if(null===a)return void n(oS,{toIndex:void 0,toSectionIndex:void 0});const s=i.data.sectionIndex!==a.data.sectionIndex;let l;if(s){const e=Bx(t(nS),r)[a.data.sectionIndex].indexOf(i.id);l=-1!==e?e:a.sortable?.index??0}else l=a.sortable?.index??0;if("over"===e){const e=t(oS)?.startIndex;n(oS,{toIndex:!s&&void 0!==e&&l>e?l+1:l,toSectionIndex:a.data.sectionIndex})}o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t(oS)?.startSection??i.data.sectionKey,event:r})})),aS=[Wx,Ux,Gx,Kx,Yx,Xx,Zx,Qx,tS,oS],sS=[iS],lS=({props:e,children:t})=>{const n=Kg(Wx);return j(()=>{n(e)},[e,n]),t};var cS=Symbol.for("preact-signals");function uS(){if(gS>1)gS--;else{var e,t=!1;for(!function(){var e=xS;for(xS=void 0;void 0!==e;){var t=e.S;if(t.v===e.v)for(var n=t.t;void 0!==n;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}}();void 0!==mS;){var n=mS;for(mS=void 0,bS++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&IS(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(bS=0,gS--,t)throw e}}function dS(e){if(gS>0)return e();yS=++vS,gS++;try{return e()}finally{uS()}}var pS,fS=void 0;function hS(e){var t=fS,n=pS;fS=void 0,pS=void 0;try{return e()}finally{fS=t,pS=n}}var mS=void 0,gS=0,bS=0,vS=0,yS=0,xS=void 0,SS=0;function wS(e){if(void 0!==fS){var t=e.n;if(void 0===t||t.t!==fS)return t={i:0,S:e,p:fS.s,n:void 0,t:fS,e:void 0,x:void 0,r:t},void 0!==fS.s&&(fS.s.n=t),fS.s=t,e.n=t,32&fS.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=fS.s,t.n=void 0,fS.s.n=t,fS.s=t),t}}function CS(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function ES(e,t){return new CS(e,t)}function IS(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function RS(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function AS(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function DS(e,t){CS.call(this,void 0,t),this.x=e,this.s=void 0,this.g=SS-1,this.f=4}function MS(e,t){return new DS(e,t)}function kS(e){var t=e.j;if(e.j=void 0,"function"==typeof t){gS++;var n=fS;fS=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,TS(e),t}finally{fS=n,uS()}}}function TS(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,kS(e)}function qS(e){if(fS!==this)throw new Error("Out-of-order effect");AS(this),fS=e,this.f&=-2;try{8&this.f&&TS(this)}finally{uS()}}function PS(e,t){this.x=e,this.j=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,pS&&pS.push(this)}function LS(e,t){var n=new PS(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}CS.prototype.brand=cS,CS.prototype.h=function(){return!0},CS.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:hS(function(){var e;null==(e=t.W)||e.call(t)}))},CS.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&hS(function(){var e;null==(e=t.Z)||e.call(t)}))}},CS.prototype.subscribe=function(e){var t=this;return LS(function(){var n=t.value;hS(function(){return e(n)})},{name:"sub"})},CS.prototype.valueOf=function(){return this.value},CS.prototype.toString=function(){return this.value+""},CS.prototype.toJSON=function(){return this.value},CS.prototype.peek=function(){var e=this;return hS(function(){return e.value})},Object.defineProperty(CS.prototype,"value",{get:function(){var e=wS(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(bS>100)throw new Error("Cycle detected");!function(e){0!==gS&&0===bS&&e.l!==yS&&(e.l=yS,xS={S:e,v:e.v,i:e.i,o:xS})}(this),this.v=e,this.i++,SS++,gS++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{uS()}}}}),DS.prototype=new CS,DS.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===SS)return!0;if(this.g=SS,this.f|=1,this.i>0&&!IS(this))return this.f&=-2,!0;var e=fS;try{RS(this),fS=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return fS=e,AS(this),this.f&=-2,!0},DS.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}CS.prototype.S.call(this,e)},DS.prototype.U=function(e){if(void 0!==this.t&&(CS.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},DS.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(DS.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=wS(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),PS.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.j=t)}finally{e()}},PS.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,kS(this),RS(this),gS++;var e=fS;return fS=this,qS.bind(this,e)},PS.prototype.N=function(){2&this.f||(this.f|=2,this.u=mS,mS=this)},PS.prototype.d=function(){this.f|=8,1&this.f||TS(this)},PS.prototype.dispose=function(){this.d()};var OS,NS,jS,_S,zS,FS,$S,BS,HS,VS,WS,US,GS,KS,YS,XS,JS,ZS,QS,ew,tw=Object.create,nw=Object.defineProperty,rw=Object.defineProperties,ow=Object.getOwnPropertyDescriptor,iw=Object.getOwnPropertyDescriptors,aw=Object.getOwnPropertySymbols,sw=Object.prototype.hasOwnProperty,lw=Object.prototype.propertyIsEnumerable,cw=e=>{throw TypeError(e)},uw=(e,t,n)=>t in e?nw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dw=(e,t)=>nw(e,"name",{value:t,configurable:!0}),pw=["class","method","getter","setter","accessor","field","value","get","set"],fw=e=>void 0!==e&&"function"!=typeof e?cw("Function expected"):e,hw=(e,t,n,r,o)=>({kind:pw[e],name:t,metadata:r,addInitializer:e=>n._?cw("Already initialized"):o.push(fw(e||null))}),mw=(e,t)=>{return uw(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},gw=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},bw=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=pw[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&ow(d<4?o:{get[n](){return xw(this,i)},set[n](e){return ww(this,i,e)}},n));d?f&&d<4&&dw(i,(d>2?"set ":d>1?"get ":"")+n):dw(o,n);for(var y=r.length-1;y>=0;y--)c=hw(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>yw(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?xw:Cw)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>ww(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?fw(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?cw("Object expected"):(fw(a=s.get)&&(v.get=a),fw(a=s.set)&&(v.set=a),fw(a=s.init)&&g.unshift(a));return d||mw(e,o),v&&nw(o,n,v),f?4^d?i:v:o},vw=(e,t,n)=>t.has(e)||cw("Cannot "+n),yw=(e,t)=>Object(t)!==t?cw('Cannot use the "in" operator on this value'):e.has(t),xw=(e,t,n)=>(vw(e,t,"read from private field"),n?n.call(e):t.get(e)),Sw=(e,t,n)=>t.has(e)?cw("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ww=(e,t,n,r)=>(vw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Cw=(e,t,n)=>(vw(e,t,"access private method"),n);function Ew(e,t){if(t){let n;return MS(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return MS(e)}function Iw(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!Iw(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return!n.some(n=>!Iw(e[n],t[n]))}return!1}function Rw({get:e},t){return{init:e=>ES(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function Aw(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=Ew(e.bind(this)),n.set(this,t)),t.value}}function Dw(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>rw(e,iw(t)))(((e,t)=>{for(var n in t||(t={}))sw.call(t,n)&&uw(e,n,t[n]);if(aw)for(var n of aw(t))lw.call(t,n)&&uw(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function Mw(...e){const t=e.map(e=>LS(e));return()=>t.forEach(e=>e())}FS=[Rw],zS=[Rw],_S=[Rw],jS=[Dw()],NS=[Dw()],OS=[Dw()];var kw,Tw=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,gw($S,5,this),Sw(this,US),Sw(this,BS,gw($S,8,this)),gw($S,11,this),Sw(this,GS,gw($S,12,this)),gw($S,15,this),Sw(this,JS,gw($S,16,this)),gw($S,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return xw(this,US,QS)}get initial(){return xw(this,US,VS)}get previous(){return xw(this,US,YS)}set current(e){const t=hS(()=>xw(this,US,QS));e&&t&&this.equals(t,e)||dS(()=>{xw(this,US,VS)||ww(this,US,e,WS),ww(this,US,t,XS),ww(this,US,e,ew)})}reset(e=this.defaultValue){dS(()=>{ww(this,US,void 0,XS),ww(this,US,e,WS),ww(this,US,e,ew)})}};function qw(e){return hS(()=>{const t={};for(const n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!0,configurable:!0,writable:!0});return t})}$S=[,,,tw(null)],BS=new WeakMap,US=new WeakSet,GS=new WeakMap,JS=new WeakMap,HS=bw($S,20,"#initial",FS,US,BS),VS=HS.get,WS=HS.set,KS=bw($S,20,"#previous",zS,US,GS),YS=KS.get,XS=KS.set,ZS=bw($S,20,"#current",_S,US,JS),QS=ZS.get,ew=ZS.set,bw($S,2,"current",jS,Tw),bw($S,2,"initial",NS,Tw),bw($S,2,"previous",OS,Tw),mw($S,Tw);kw=new WeakMap;var Pw,Lw,Ow,Nw,jw,_w=Object.create,zw=Object.defineProperty,Fw=Object.getOwnPropertyDescriptor,$w=Object.getOwnPropertySymbols,Bw=Object.prototype.hasOwnProperty,Hw=Object.prototype.propertyIsEnumerable,Vw=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ww=e=>{throw TypeError(e)},Uw=Math.pow,Gw=(e,t,n)=>t in e?zw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kw=["class","method","getter","setter","accessor","field","value","get","set"],Yw=e=>void 0!==e&&"function"!=typeof e?Ww("Function expected"):e,Xw=(e,t,n,r,o)=>({kind:Kw[e],name:t,metadata:r,addInitializer:e=>n._?Ww("Already initialized"):o.push(Yw(e||null))}),Jw=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=Kw[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Fw(o,n)),h=r.length-1;h>=0;h--)(l=Xw(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,Yw(a)&&(f[d]=a);return f&&zw(o,n,f),o},Zw=(e,t,n)=>t.has(e)||Ww("Cannot "+n),Qw=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},eC=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,r+n,i,a);return l.scale=((e,t)=>{for(var n in t||(t={}))Bw.call(t,n)&&Gw(e,n,t[n]);if($w)for(var n of $w(t))Hw.call(t,n)&&Gw(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:o,bottom:i}=this;return{width:e,height:t,left:n,top:r,right:o,bottom:i}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new Qw((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:o,height:i}=this;return n===t.left&&r===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:o}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:o}){return new e(n,t,r,o)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==r?o:"end"==r?o+i:o+i/2};return Qw.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var tC,nC=class extends(Ow=Tw,Lw=[Aw],Pw=[Aw],Ow){constructor(e){var t,n,r;super(Qw.from(e),(e,t)=>Qw.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(jw,5,this),t=this,r=0,(n=Nw).has(t)?Ww("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return Qw.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=Qw.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(Zw(a=this,s=Nw,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);dS(()=>{((e,t,n)=>{Zw(e,t,"write to private field"),t.set(e,n)})(this,Nw,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(Qw.from(e)),this.velocity={x:0,y:0}}};function rC({x:e,y:t},n){const r=Math.abs(e),o=Math.abs(t);return"number"==typeof n?Math.sqrt(Uw(r,2)+Uw(o,2))>n:"x"in n&&"y"in n?r>n.x&&o>n.y:"x"in n?r>n.x:"y"in n&&o>n.y}jw=(e=>{var t;return[,,,_w(null!=(t=null==e?void 0:e[Vw("metadata")])?t:null)]})(Ow),Nw=new WeakMap,Jw(jw,2,"delta",Lw,nC),Jw(jw,2,"direction",Pw,nC),tC=jw,Gw(nC,Vw("metadata"),tC[3]);var oC,iC,aC,sC,lC=(e=>(e.Horizontal="x",e.Vertical="y",e))(lC||{}),cC=Object.values(lC),uC=Object.create,dC=Object.defineProperty,pC=Object.defineProperties,fC=Object.getOwnPropertyDescriptor,hC=Object.getOwnPropertyDescriptors,mC=Object.getOwnPropertySymbols,gC=Object.prototype.hasOwnProperty,bC=Object.prototype.propertyIsEnumerable,vC=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),yC=e=>{throw TypeError(e)},xC=(e,t,n)=>t in e?dC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SC=(e,t)=>{for(var n in t||(t={}))gC.call(t,n)&&xC(e,n,t[n]);if(mC)for(var n of mC(t))bC.call(t,n)&&xC(e,n,t[n]);return e},wC=(e,t)=>pC(e,hC(t)),CC=(e,t)=>dC(e,"name",{value:t,configurable:!0}),EC=(e,t)=>{var n={};for(var r in e)gC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&mC)for(var r of mC(e))t.indexOf(r)<0&&bC.call(e,r)&&(n[r]=e[r]);return n},IC=e=>{var t;return[,,,uC(null!=(t=null==e?void 0:e[vC("metadata")])?t:null)]},RC=["class","method","getter","setter","accessor","field","value","get","set"],AC=e=>void 0!==e&&"function"!=typeof e?yC("Function expected"):e,DC=(e,t,n,r,o)=>({kind:RC[e],name:t,metadata:r,addInitializer:e=>n._?yC("Already initialized"):o.push(AC(e||null))}),MC=(e,t)=>xC(t,vC("metadata"),e[3]),kC=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},TC=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=RC[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&fC(d<4?o:{get[n](){return LC(this,i)},set[n](e){return NC(this,i,e)}},n));d?f&&d<4&&CC(i,(d>2?"set ":d>1?"get ":"")+n):CC(o,n);for(var y=r.length-1;y>=0;y--)c=DC(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>PC(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?LC:jC)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>NC(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?AC(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?yC("Object expected"):(AC(a=s.get)&&(v.get=a),AC(a=s.set)&&(v.set=a),AC(a=s.init)&&g.unshift(a));return d||MC(e,o),v&&dC(o,n,v),f?4^d?i:v:o},qC=(e,t,n)=>t.has(e)||yC("Cannot "+n),PC=(e,t)=>Object(t)!==t?yC('Cannot use the "in" operator on this value'):e.has(t),LC=(e,t,n)=>(qC(e,t,"read from private field"),n?n.call(e):t.get(e)),OC=(e,t,n)=>t.has(e)?yC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),NC=(e,t,n,r)=>(qC(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),jC=(e,t,n)=>(qC(e,t,"access private method"),n);function _C(e,t){return{plugin:e,options:t}}function zC(e){return t=>_C(e,t)}function FC(e){return"function"==typeof e?{plugin:e,options:void 0}:e}oC=[Rw];var $C=class{constructor(e,t){this.manager=e,this.options=t,OC(this,aC,kC(iC,8,this,!1)),kC(iC,11,this),OC(this,sC,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return hS(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=LS(e.bind(this));return LC(this,sC).add(t),t}destroy(){LC(this,sC).forEach(e=>e())}static configure(e){return _C(this,e)}};iC=IC(null),aC=new WeakMap,sC=new WeakMap,TC(iC,4,"disabled",oC,$C,aC),MC(iC,$C);var BC,HC=class extends $C{},VC=class{constructor(e){this.manager=e,this.instances=new Map,OC(this,BC,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(FC).reduce((e,t)=>{const n=e.find(({plugin:e})=>e===t.plugin);return n?(n.options=t.options,e):[...e,t]},[]),n=t.map(({plugin:e})=>e);for(const e of LC(this,BC))if(!n.includes(e)){if(e.prototype instanceof HC)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);NC(this,BC,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function WC(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}BC=new WeakMap;var UC,GC,KC,YC,XC,JC,ZC,QC,eE,tE,nE,rE,oE=[],iE=class extends $C{constructor(e){super(e),OC(this,UC),OC(this,GC),this.computeCollisions=this.computeCollisions.bind(this),NC(this,GC,ES(oE)),this.destroy=Mw(()=>{const e=this.computeCollisions(),t=hS(()=>this.manager.dragOperation.position.current);if(e!==oE){const e=LC(this,UC);if(NC(this,UC,t),e&&t.x==e.x&&t.y==e.y)return}else NC(this,UC,void 0);LC(this,GC).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){hS(()=>{e?LC(this,GC).value=this.computeCollisions():NC(this,UC,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:o,shape:i,status:a}=r;if(!a.initialized||!i)return oE;const s=[],l=[];for(const i of null!=e?e:n.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const n=hS(()=>e({droppable:i,dragOperation:r}));n&&(null!=i.collisionPriority&&(n.priority=i.collisionPriority),s.push(n))}return 0===l.length?oE:(s.sort(WC),s)}get collisions(){return LC(this,GC).value}};UC=new WeakMap,GC=new WeakMap,XC=[Rw],YC=[Rw],KC=[Rw];var aE=class e{constructor(e,t){OC(this,eE,kC(QC,8,this)),kC(QC,11,this),OC(this,tE),OC(this,nE,kC(QC,12,this)),kC(QC,15,this),OC(this,rE,kC(QC,16,this)),kC(QC,19,this);const{effects:n,id:r,data:o={},disabled:i=!1,register:a=!0}=e;let s=r;NC(this,tE,ES(r)),this.manager=t,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return s=e,null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==n?void 0:n())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=LC(this,tE).value;return null!=(n=null==(t=e.pendingIdChanges)?void 0:t.get(this))?n:r}set id(t){var n,r;t!==(null!=(r=null==(n=e.pendingIdChanges)?void 0:n.get(this))?r:LC(this,tE).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return jC(t=e,JC,ZC).call(t)})),e.pendingIdChanges.set(this,t))}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};QC=IC(null),JC=new WeakSet,ZC=function(){const e=aE.pendingIdChanges;aE.pendingIdChanges=null,e&&dS(()=>{for(const[t,n]of e)LC(t,tE).value=n})},eE=new WeakMap,tE=new WeakMap,nE=new WeakMap,rE=new WeakMap,TC(QC,4,"manager",XC,aE,eE),TC(QC,4,"data",YC,aE,nE),TC(QC,4,"disabled",KC,aE,rE),OC(aE,JC),MC(QC,aE),aE.pendingIdChanges=null;var sE,lE,cE,uE,dE,pE,fE,hE,mE,gE,bE,vE,yE,xE,SE,wE,CE,EE,IE,RE,AE,DE,ME,kE,TE=aE,qE=class{constructor(){this.map=ES(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),o=()=>this.unregister(e,t);if(r===t)return o;if(r&&r.id===e){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const i=new Map(n);for(const[r,o]of n)if(o===t&&r!==e){i.delete(r);break}i.set(e,t),this.map.value=i;const a=Mw(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const o=new Map(n);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},PE=class extends(fE=TE,pE=[Rw],dE=[Rw],uE=[Rw],cE=[Aw],lE=[Aw],sE=[Aw],fE){constructor(e,t){var n=e,{modifiers:r,type:o,sensors:i,plugins:a,effects:s}=n,l=EC(n,["modifiers","type","sensors","plugins","effects"]);super(wC(SC({},l),{effects:()=>{var e;return[...null!=(e=null==s?void 0:s())?e:[],()=>{const{manager:e,plugins:t}=this;if(e&&t)for(const n of t){const{plugin:t}=FC(n);e.registry.plugins.register(t)}}]}}),t),kC(hE,5,this),OC(this,mE,kC(hE,8,this)),kC(hE,11,this),OC(this,gE,kC(hE,12,this)),kC(hE,15,this),OC(this,bE,kC(hE,16,this,this.isDragSource?"dragging":"idle")),kC(hE,19,this),this.type=o,this.sensors=i,this.modifiers=r,this.alignment=l.alignment,this.plugins=a}pluginConfig(e){if(this.plugins)for(const t of this.plugins){const n=FC(t);if(n.plugin===e)return n.options}}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};hE=IC(fE),mE=new WeakMap,gE=new WeakMap,bE=new WeakMap,TC(hE,4,"type",pE,PE,mE),TC(hE,4,"modifiers",dE,PE,gE),TC(hE,4,"status",uE,PE,bE),TC(hE,2,"isDropping",cE,PE),TC(hE,2,"isDragging",lE,PE),TC(hE,2,"isDragSource",sE,PE),MC(hE,PE);var LE=class extends(EE=TE,CE=[Rw],wE=[Rw],SE=[Rw],xE=[Rw],yE=[Rw],vE=[Aw],EE){constructor(e,t){var n=e,{accept:r,collisionDetector:o,collisionPriority:i,type:a}=n;super(EC(n,["accept","collisionDetector","collisionPriority","type"]),t),kC(IE,5,this),OC(this,RE,kC(IE,8,this)),kC(IE,11,this),OC(this,AE,kC(IE,12,this)),kC(IE,15,this),OC(this,DE,kC(IE,16,this)),kC(IE,19,this),OC(this,ME,kC(IE,20,this)),kC(IE,23,this),OC(this,kE,kC(IE,24,this)),kC(IE,27,this),this.accept=r,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};IE=IC(EE),RE=new WeakMap,AE=new WeakMap,DE=new WeakMap,ME=new WeakMap,kE=new WeakMap,TC(IE,4,"accept",CE,LE,RE),TC(IE,4,"type",wE,LE,AE),TC(IE,4,"collisionDetector",SE,LE,DE),TC(IE,4,"collisionPriority",xE,LE,ME),TC(IE,4,"shape",yE,LE,kE),TC(IE,2,"isDropTarget",vE,LE),MC(IE,LE);var OE=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},NE=class extends OE{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function jE(e,t=!0){let n=!1;return wC(SC({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var _E,zE,FE,$E,BE,HE,VE,WE,UE,GE,KE=class extends HC{constructor(e){super(e);let t=[];this.destroy=Mw(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:o}=n;if(n.isDisabled())return;if(TE.pendingIdChanges)return;const i=jE({collisions:o});if(r.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;hS(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},YE=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(YE||{}),XE=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(XE||{});WE=[Rw],VE=[Aw],HE=[Aw],BE=[Aw],$E=[Aw],FE=[Aw],zE=[Aw],_E=[Aw];var JE=class{constructor(){kC(UE,5,this),OC(this,GE,kC(UE,8,this,"idle")),kC(UE,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializationPending(){return"initialization-pending"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};UE=IC(null),GE=new WeakMap,TC(UE,4,"value",WE,JE,GE),TC(UE,2,"current",VE,JE),TC(UE,2,"idle",HE,JE),TC(UE,2,"initializationPending",BE,JE),TC(UE,2,"initializing",$E,JE),TC(UE,2,"initialized",FE,JE),TC(UE,2,"dragging",zE,JE),TC(UE,2,"dropped",_E,JE),MC(UE,JE);var ZE,QE=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return hS(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=jE({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return hS(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const n=new AbortController,{event:r,coordinates:o}=e;dS(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(o)});const i=jE({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&dS(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1})})}),n)})}move(e){return hS(()=>{var t,n;const{dragOperation:r}=this.manager,{status:o,controller:i}=r;if(!o.dragging||!i||i.signal.aborted)return;const a=jE({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};r.position.current=l})})}stop(e={}){return hS(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:o}=r;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=hS(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===o&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=LS(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),i?i.then(a).catch(()=>r.reset()):a()})}},eI=class extends $C{constructor(e,t){super(e,t),this.manager=e,this.options=t}},tI=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},nI=class{constructor(e){this.options=e,OC(this,ZE)}set controller(e){NC(this,ZE,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=LC(this,ZE))||t.activate(e)}};ZE=new WeakMap;var rI,oI,iI,aI,sI,lI,cI,uI,dI,pI,fI,hI,mI,gI,bI,vI,yI,xI,SI,wI=class extends $C{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},CI=class{constructor(e){this.draggables=new qE,this.droppables=new qE,this.plugins=new VC(e),this.sensors=new VC(e),this.modifiers=new VC(e)}register(e,t){if(e instanceof PE)return this.draggables.register(e.id,e);if(e instanceof LE)return this.droppables.register(e.id,e);if(e.prototype instanceof wI)return this.modifiers.register(e,t);if(e.prototype instanceof eI)return this.sensors.register(e,t);if(e.prototype instanceof $C)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof TE)return e instanceof PE?this.draggables.unregister(e.id,e):e instanceof LE?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof wI)return this.modifiers.unregister(e);if(e.prototype instanceof eI)return this.sensors.unregister(e);if(e.prototype instanceof $C)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};dI=[Aw],uI=[Rw],cI=[Rw],lI=[Rw],sI=[Rw],aI=[Rw],iI=[Aw],oI=[Aw],rI=[Aw];var EI=class{constructor(e){kC(mI,5,this),OC(this,pI),OC(this,fI),OC(this,hI,new Tw(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new JE,OC(this,gI,kC(mI,8,this,!1)),kC(mI,11,this),OC(this,bI,kC(mI,12,this,null)),kC(mI,15,this),OC(this,vI,kC(mI,16,this,null)),kC(mI,19,this),OC(this,yI,kC(mI,20,this,null)),kC(mI,23,this),OC(this,xI,kC(mI,24,this,[])),kC(mI,27,this),this.position=new nC({x:0,y:0}),OC(this,SI,{x:0,y:0}),NC(this,pI,e)}get shape(){const{current:e,initial:t,previous:n}=LC(this,hI);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?LC(this,hI).current=e:LC(this,hI).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=LC(this,pI).registry.draggables.get(t);return n&&NC(this,fI,n),null!=(e=null!=n?n:LC(this,fI))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=LC(this,pI).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(wC(SC({},this.snapshot()),{transform:n}));return NC(this,SI,n),n}snapshot(){return hS(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:LC(this,SI),shape:this.shape?qw(this.shape):null,position:qw(this.position),status:qw(this.status),canceled:this.canceled}))}reset(){dS(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,LC(this,hI).reset(),this.position.reset({x:0,y:0}),NC(this,SI,{x:0,y:0}),this.modifiers=[]})}};mI=IC(null),pI=new WeakMap,fI=new WeakMap,hI=new WeakMap,gI=new WeakMap,bI=new WeakMap,vI=new WeakMap,yI=new WeakMap,xI=new WeakMap,SI=new WeakMap,TC(mI,2,"shape",dI,EI),TC(mI,4,"canceled",uI,EI,gI),TC(mI,4,"activatorEvent",cI,EI,bI),TC(mI,4,"sourceIdentifier",lI,EI,vI),TC(mI,4,"targetIdentifier",sI,EI,yI),TC(mI,4,"modifiers",aI,EI,xI),TC(mI,2,"source",iI,EI),TC(mI,2,"target",oI,EI),TC(mI,2,"transform",rI,EI),MC(mI,EI);var II={get rendering(){return Promise.resolve()}};function RI(e,t){return"function"==typeof e?e(t):null!=e?e:t}var AI=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const n=null!=e?e:{},r=RI(n.plugins,[]),o=RI(n.sensors,[]),i=RI(n.modifiers,[]),a=null!=(t=n.renderer)?t:II,s=new NE(this),l=new CI(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new QE(this),this.dragOperation=new EI(this),this.collisionObserver=new iE(this),this.plugins=[KE,...r],this.modifiers=i,this.sensors=o;const{destroy:c}=this,u=Mw(()=>{var e,t,n;const r=hS(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of r)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=FC(e);return new t(this,n)}))?n:o});this.destroy=()=>{u(),c()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},DI=e=>{throw TypeError(e)},MI=(e,t,n)=>t.has(e)||DI("Cannot "+n),kI=(e,t,n)=>(MI(e,t,"read from private field"),t.get(e)),TI=(e,t,n)=>t.has(e)?DI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qI=(e,t,n,r)=>(MI(e,t,"write to private field"),t.set(e,n),n),PI=(e,t,n)=>(MI(e,t,"access private method"),n);function LI(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function OI(e,t){const n=e.getAnimations();let r=null;for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,o=(LI(n)?n.getKeyframes():[]).filter(t);o.length>0&&(r=[o[o.length-1],e])}return r}function NI(e){const{width:t,height:n,top:r,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:o,bottom:i,right:a}}function jI(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function _I(e){return"nodeType"in e}function zI(e){var t,n,r;return e?jI(e)?e:_I(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function FI(e){const{Document:t}=zI(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function $I(e){return!(!e||jI(e))&&(e instanceof zI(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function BI(e){return e instanceof zI(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function HI(e){return e?jI(e)?e.document:_I(e)?FI(e)?e:$I(e)||BI(e)?e.ownerDocument:document:document:document}function VI(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===o}function WI(e,t=e.getBoundingClientRect(),n=0){var r,o,i,a,s;let l=t;const{ownerDocument:c}=e,u=null!=(r=c.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==c.documentElement;){if(!VI(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),o=n*(e.bottom-e.top),i=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=u.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:u.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:u.innerHeight,b=n*g,v=n*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function UI(e){return{x:e.clientX,y:e.clientY}}var GI="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function KI(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...KI(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const o=r.parent;o&&o.document&&o.document!==e&&n.push(...KI(o.document,t))}}catch(e){}return n}function YI(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function XI(){var e,t;const n=YI()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function JI(e){return!(!e||!_I(e))&&e instanceof zI(e).ShadowRoot}function ZI(e){if(e&&_I(e)){let t=e.getRootNode();if(JI(t))return t;if(t instanceof Document)return t}return HI(e)}function QI(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function eR(e){return"value"in e}function tR(e){return"CANVAS"===e.tagName}function nR(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:o,top:i}=r.getBoundingClientRect();return nR(e,{x:t-o,y:n-i})}}return r}var rR=new WeakMap;var oR=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],o=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:i}=t,a=[e,t];e.addEventListener(n,r,i),this.entries.add(a),o.push(a)}const i=this.entries;return function(){for(const e of o){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o),i.delete(e)}}}};function iR(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function aR(e,t){const n=()=>performance.now();let r,o;return function(...i){const a=this;o?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,i),o=n()},t-(n()-o))):(e.apply(a,i),o=n())}}var sR,lR="undefined"!=typeof ResizeObserver?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},cR=class extends lR{constructor(e){super(t=>{kI(this,sR)?e(t,this):qI(this,sR,!0)}),TI(this,sR,!1)}};sR=new WeakMap;var uR,dR,pR,fR,hR,mR,gR,bR,vR,yR,xR,SR=Array.from({length:100},(e,t)=>t/100),wR=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,TI(this,vR),this.disconnect=()=>{var e,t,n;qI(this,gR,!0),null==(e=kI(this,pR))||e.disconnect(),null==(t=kI(this,fR))||t.disconnect(),kI(this,hR).disconnect(),null==(n=kI(this,mR))||n.remove()},TI(this,uR,!0),TI(this,dR),TI(this,pR),TI(this,fR),TI(this,hR),TI(this,mR),TI(this,gR,!1),TI(this,bR,aR(()=>{var e,t,n;const{element:r}=this;if(null==(e=kI(this,fR))||e.disconnect(),kI(this,gR)||!kI(this,uR)||!r.isConnected)return;const o=null!=(t=r.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(n=o.defaultView)?n:window,s=r.getBoundingClientRect(),l=WI(r,s),{top:c,left:u,bottom:d,right:p}=l,f=-Math.floor(c),h=-Math.floor(u),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,qI(this,fR,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:eC.intersectionRatio(n,WI(r)))&&kI(this,bR).call(this)},{threshold:SR,rootMargin:m,root:o})),kI(this,fR).observe(r),PI(this,vR,yR).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),qI(this,uR,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=WI(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const o=e.ownerDocument;(null==n?void 0:n.debug)&&(qI(this,mR,document.createElement("div")),kI(this,mR).style.background="rgba(0,0,0,0.15)",kI(this,mR).style.position="fixed",kI(this,mR).style.pointerEvents="none",o.body.appendChild(kI(this,mR))),qI(this,hR,new IntersectionObserver(t=>{var n,r;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,c=kI(this,uR);qI(this,uR,a),(s||l)&&(c&&!a?(null==(n=kI(this,fR))||n.disconnect(),this.callback(null),null==(r=kI(this,pR))||r.disconnect(),qI(this,pR,void 0),kI(this,mR)&&(kI(this,mR).style.visibility="hidden")):kI(this,bR).call(this),a&&!kI(this,pR)&&(qI(this,pR,new cR(kI(this,bR))),kI(this,pR).observe(e)))},{threshold:SR,root:o})),kI(this,uR)&&!n.skipInitial&&this.callback(this.boundingClientRect),kI(this,hR).observe(e)}};uR=new WeakMap,dR=new WeakMap,pR=new WeakMap,fR=new WeakMap,hR=new WeakMap,mR=new WeakMap,gR=new WeakMap,bR=new WeakMap,vR=new WeakSet,yR=function(){kI(this,gR)||(PI(this,vR,xR).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,kI(this,dR))||(this.callback(this.boundingClientRect),qI(this,dR,this.boundingClientRect)))},xR=function(){if(kI(this,mR)){const{top:e,left:t,width:n,height:r}=WI(this.element);kI(this,mR).style.overflow="hidden",kI(this,mR).style.visibility="visible",kI(this,mR).style.top=`${Math.floor(e)}px`,kI(this,mR).style.left=`${Math.floor(t)}px`,kI(this,mR).style.width=`${Math.floor(n)}px`,kI(this,mR).style.height=`${Math.floor(r)}px`}};var CR,ER,IR,RR,AR=new WeakMap,DR=new WeakMap;function MR(e,t){let n=AR.get(e);if(!n){const t=new wR(e,t=>{const n=AR.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),AR.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(AR.delete(e),n.disconnect())}}var kR=class{constructor(e,t,n){this.callback=t,TI(this,CR),TI(this,ER,!1),TI(this,IR),TI(this,RR,aR(e=>{if(!kI(this,ER)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of kI(this,IR))if(e.target.contains(t)){this.callback(kI(this,CR).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=iR(e);for(;n;)t.add(n),n=iR(n);return t}(e),o=function(e,t){const n=new Set;for(const r of e){const e=MR(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),i=function(e,t){var n;const r=e.ownerDocument;if(!DR.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),DR.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(n=DR.get(r))?n:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),DR.delete(r))}):()=>{}}(e,kI(this,RR));qI(this,IR,r),qI(this,CR,new wR(e,t,n)),this.disconnect=()=>{kI(this,ER)||(qI(this,ER,!0),o(),i(),kI(this,CR).disconnect())}}};function TR(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function qR(e){try{TR(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}CR=new WeakMap,ER=new WeakMap,IR=new WeakMap,RR=new WeakMap;var PR=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},LR=new PR(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),OR=new PR(e=>setTimeout(e,50)),NR=new Map,jR=NR.clear.bind(NR);function _R(e,t=!1){if(!t)return zR(e);let n=NR.get(e);return n||(n=zR(e),NR.set(e,n),OR.schedule(jR),n)}function zR(e){return zI(e).getComputedStyle(e)}function FR(e){var t,n;const r=zI(e),o=(i=e,!(!GI||!i)&&i===HI(i).scrollingElement);var i;const a=o?function(e){var t,n,r,o;const{documentElement:i}=HI(e),a=zI(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:i.clientHeight,c=null!=(r=null==a?void 0:a.offsetTop)?r:0,u=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:c,left:u,right:u+s,bottom:c+l,width:s,height:l}}(e):NI(e),s=r.visualViewport,l=o?{height:null!=(t=null==s?void 0:s.height)?t:r.innerHeight,width:null!=(n=null==s?void 0:s.width)?n:r.innerWidth}:{height:e.clientHeight,width:e.clientWidth},c=e.scrollWidth-l.width,u=_R(e,!0),d=o?"rtl"===u.direction:function(e){const{direction:t,display:n,writingMode:r}=e,o="vertical-lr"===r||"vertical-rl"===r||"sideways-lr"===r||"sideways-rl"===r,i=o?"vertical-rl"===r||"sideways-rl"===r:"rtl"===t;if("flex"!==n&&"inline-flex"!==n)return i;const{flexDirection:a,flexWrap:s}=e,l="row"===a||"row-reverse"===a;return i!==((o?!l:l)?"row-reverse"===a||"column-reverse"===a:"wrap-reverse"===s)}(u),p={current:{x:e.scrollLeft,y:e.scrollTop},min:{x:d?-c:0,y:0},max:{x:d?0:c,y:e.scrollHeight-l.height}};return{rect:a,position:p,isTop:p.current.y<=p.min.y,isLeft:p.current.x<=p.min.x,isBottom:p.current.y>=p.max.y,isRight:p.current.x>=p.max.x}}function $R(e,t,n=FR(e)){const{isTop:r,isBottom:o,isLeft:i,isRight:a,position:s}=n,{x:l,y:c}=null!=t?t:{x:0,y:0},u=!r&&s.current.y+c>s.min.y,d=!o&&s.current.y+c<s.max.y,p=!i&&s.current.x+l>s.min.x,f=!a&&s.current.x+l<s.max.x;return{top:u,bottom:d,left:p,right:f,x:p||f,y:u||d}}var BR={excludeElement:!0,escapeShadowDOM:!0};function HR(e,t=BR){const{limit:n,excludeElement:r,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=n&&i.size>=n)return i;if(!a)return i;if(FI(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&JI(a))return t(a.host);if(!$I(a))return BI(a)?t(a.parentElement):i;if(i.has(a))return i;const s=_R(a,!0);if(r&&a===e||function(e,t=_R(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&i.add(a),function(e,t=_R(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function VR(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=iR(e);for(;r;){if(r===t)return n;const e=NI(r),{x:o,y:i}=WR(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*o,n.scaleY=n.scaleY*i,r=iR(r)}return n}function WR(e,t=NI(e)){const n=Math.round(t.width),r=Math.round(t.height);if($I(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const o=_R(e,!0);return{x:(parseFloat(o.width)||n)/n,y:(parseFloat(o.height)||r)/r}}function UR(e){if(!e||"none"===e)return null;const[t,n,r="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function GR(e){var t,n,r,o,i,a,s,l,c;const{scale:u,transform:d,translate:p}=e,f=function(e){if(!e||"none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(u),h=UR(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(n=null==f?void 0:f.y)?n:1,v=null!=(r=null==h?void 0:h.x)?r:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(c=null==h?void 0:h.z)?c:0,scaleX:g*w,scaleY:b*C}}var KR=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(KR||{}),YR={x:.2,y:.2},XR={x:10,y:10};function JR(e,t,n,r=25,o=YR,i=XR,a=FR(e)){const{x:s,y:l}=t,{rect:c,isTop:u,isBottom:d,isLeft:p,isRight:f}=a,h=VR(e),m=GR(_R(e,!0)),g=null!==m&&(null==m?void 0:m.scaleX)<0,b=null!==m&&(null==m?void 0:m.scaleY)<0,v=new eC(c.left*h.scaleX+h.x,c.top*h.scaleY+h.y,c.width*h.scaleX,c.height*h.scaleY),y={x:0,y:0},x={x:0,y:0},S=v.height*o.y,w=v.width*o.x;return S>0&&(!u||b&&!d)&&l<=v.top+S&&1!==(null==n?void 0:n.y)&&s>=v.left-i.x&&s<=v.right+i.x?(y.y=b?1:-1,x.y=r*Math.abs((v.top+S-l)/S)):S>0&&(!d||b&&!u)&&l>=v.bottom-S&&-1!==(null==n?void 0:n.y)&&s>=v.left-i.x&&s<=v.right+i.x&&(y.y=b?-1:1,x.y=r*Math.abs((v.bottom-S-l)/S)),w>0&&(!f||g&&!p)&&s>=v.right-w&&-1!==(null==n?void 0:n.x)&&l>=v.top-i.y&&l<=v.bottom+i.y?(y.x=g?-1:1,x.x=r*Math.abs((v.right-w-s)/w)):w>0&&(!p||g&&!f)&&s<=v.left+w&&1!==(null==n?void 0:n.x)&&l>=v.top-i.y&&l<=v.bottom+i.y&&(y.x=g?1:-1,x.x=r*Math.abs((v.left+w-s)/w)),{direction:y,speed:x}}function ZR(e,{block:t="nearest",inline:n="nearest"}={}){if(!$I(e))return;const r=HR(e),o=[];for(const i of r){if(!$I(i))continue;const{top:r,left:a}=eA(e,i);let s=r,l=a;for(const e of o)s-=e.scrollTop,l-=e.scrollLeft;if("none"!==t){const n=s<i.scrollTop;n!==s+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop="center"===t?s-i.clientHeight/2+e.offsetHeight/2:n?s:s+e.offsetHeight-i.clientHeight)}if("none"!==n){const t=l<i.scrollLeft;t!==l+e.offsetWidth>i.scrollLeft+i.clientWidth&&(i.scrollLeft="center"===n?l-i.clientWidth/2+e.offsetWidth/2:t?l:l+e.offsetWidth-i.clientWidth)}o.push(i)}}function QR(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;const e=r.offsetParent;if(!$I(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function eA(e,t){const n=QR(e),r=QR(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function tA({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function nA(e,t=_R(e).translate,n=!0){if(n){const t=OI(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=UR(e);if(t)return t}}}if(t){const e=UR(t);if(e)return e}return{x:0,y:0,z:0}}var rA=new PR(e=>setTimeout(e,0)),oA=new Map,iA=oA.clear.bind(oA);function aA(e,t){const n=function(e){const t=e.ownerDocument;let n=oA.get(t);if(n)return n;n=t.getAnimations(),oA.set(t,n),rA.schedule(iA);const r=n.filter(t=>LI(t.effect)&&t.effect.target===e);return oA.set(e,r),n}(e).filter(e=>{var n,r;if(LI(e.effect)){const{target:o}=e.effect;if(null==(r=o&&(null==(n=t.isValidTarget)?void 0:n.call(t,o)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var sA=class extends eC{constructor(e,t={}){var n,r,o,i;const{frameTransform:a=VR(e),ignoreTransforms:s,getBoundingClientRect:l=NI}=t,c=aA(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||YI())&&t.contains(e)}),u=l(e);let d,{top:p,left:f,width:h,height:m}=u;const g=_R(e),b=GR(g),v={x:null!=(n=null==b?void 0:b.scaleX)?n:1,y:null!=(r=null==b?void 0:b.scaleY)?r:1},y=function(e,t){const n=e.getAnimations();if(!n.length)return null;let r,o,i,a=!1;for(const e of n){if("running"!==e.playState)continue;const t=LI(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;const{transform:s,translate:l,scale:c}=n;"string"==typeof s&&s&&(r=s,a=!0),"string"==typeof l&&l&&(o=l,a=!0),"string"==typeof c&&c&&(i=c,a=!0)}return a?GR({transform:null!=r?r:t.transform,translate:null!=o?o:t.translate,scale:null!=i?i:t.scale}):null}(e,g);null==c||c(),b&&(d=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-r)*parseFloat(n),l=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width/r:e.width,u=o?e.height/o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(u,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-r)*parseFloat(n),l=e.top+a+(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width*r:e.width,u=o?e.height*o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function lA(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var cA=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(lA(n))for(const[r,o]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:n}=this;if(lA(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(lA(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function uA(e){return!!e&&(e instanceof zI(e).Element||_I(e)&&e.nodeType===Node.ELEMENT_NODE)}function dA(e){if(!e)return!1;const{KeyboardEvent:t}=zI(e.target);return e instanceof t}var pA={};function fA(e){const t=null==pA[e]?0:pA[e]+1;return pA[e]=t,`${e}-${t}`}var hA=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/Qw.distance(t.shape.center,n),type:XE.PointerIntersection,priority:YE.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=Qw.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:XE.ShapeIntersection,priority:YE.Normal}}return null})(e)},mA=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:o}=t;if(!n.shape)return null;const i=r?eC.from(r.current.boundingRectangle).corners:void 0,a=eC.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+Qw.distance(Qw.from(t),null!=(r=null==i?void 0:i[n])?r:o.current)},0),s=a/4;return{id:n.id,value:1/s,type:XE.Collision,priority:YE.Normal}},gA=Object.create,bA=Object.defineProperty,vA=Object.defineProperties,yA=Object.getOwnPropertyDescriptor,xA=Object.getOwnPropertyDescriptors,SA=Object.getOwnPropertySymbols,wA=Object.prototype.hasOwnProperty,CA=Object.prototype.propertyIsEnumerable,EA=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),IA=e=>{throw TypeError(e)},RA=(e,t,n)=>t in e?bA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,AA=(e,t)=>{for(var n in t||(t={}))wA.call(t,n)&&RA(e,n,t[n]);if(SA)for(var n of SA(t))CA.call(t,n)&&RA(e,n,t[n]);return e},DA=(e,t)=>vA(e,xA(t)),MA=(e,t)=>bA(e,"name",{value:t,configurable:!0}),kA=(e,t)=>{var n={};for(var r in e)wA.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&SA)for(var r of SA(e))t.indexOf(r)<0&&CA.call(e,r)&&(n[r]=e[r]);return n},TA=e=>{var t;return[,,,gA(null!=(t=null==e?void 0:e[EA("metadata")])?t:null)]},qA=["class","method","getter","setter","accessor","field","value","get","set"],PA=e=>void 0!==e&&"function"!=typeof e?IA("Function expected"):e,LA=(e,t,n,r,o)=>({kind:qA[e],name:t,metadata:r,addInitializer:e=>n._?IA("Already initialized"):o.push(PA(e||null))}),OA=(e,t)=>RA(t,EA("metadata"),e[3]),NA=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},jA=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=qA[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&yA(d<4?o:{get[n](){return FA(this,i)},set[n](e){return BA(this,i,e)}},n));d?f&&d<4&&MA(i,(d>2?"set ":d>1?"get ":"")+n):MA(o,n);for(var y=r.length-1;y>=0;y--)c=LA(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>zA(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?FA:HA)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>BA(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?PA(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?IA("Object expected"):(PA(a=s.get)&&(v.get=a),PA(a=s.set)&&(v.set=a),PA(a=s.init)&&g.unshift(a));return d||OA(e,o),v&&bA(o,n,v),f?4^d?i:v:o},_A=(e,t,n)=>t.has(e)||IA("Cannot "+n),zA=(e,t)=>Object(t)!==t?IA('Cannot use the "in" operator on this value'):e.has(t),FA=(e,t,n)=>(_A(e,t,"read from private field"),n?n.call(e):t.get(e)),$A=(e,t,n)=>t.has(e)?IA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),BA=(e,t,n,r)=>(_A(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),HA=(e,t,n)=>(_A(e,t,"access private method"),n),VA="button",WA="draggable",UA="dnd-kit-description",GA="dnd-kit-announcement",KA={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},YA={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function XA(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}function JA(e){var t;return"button"===(null!=(t=e.getAttribute("role"))?t:"button")}var ZA=["dragover","dragmove"],QA=class extends $C{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=UA,announcement:o=GA}={},announcements:i=YA,screenReaderInstructions:a=KA,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:fA(r),c=n?`${o}-${n}`:fA(o);let u,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>LR.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const o=p;if(!o)return;const i=null==t?void 0:t(n,r);i&&o.nodeValue!==i&&(f=i,ZA.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==u?void 0:u.isConnected)||(u=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(l,a.draggable),e.push(u)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(c),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const n=null!=(e=t.handle)?e:t.element;if(n){u&&d||y.add(v),XA(n)&&!YI()||n.hasAttribute("tabindex")||y.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||y.add(()=>n.setAttribute("role",VA)),n.hasAttribute("aria-roledescription")||y.add(()=>n.setAttribute("aria-roledescription",WA)),n.hasAttribute("aria-describedby")||y.add(()=>n.setAttribute("aria-describedby",l));const e=JA(n)?["aria-pressed","aria-grabbed"]:["aria-grabbed"];for(const r of e){const e=String(t.isDragging);n.getAttribute(r)!==e&&y.add(()=>n.setAttribute(r,e))}const r=String(t.disabled);n.getAttribute("aria-disabled")!==r&&y.add(()=>n.setAttribute("aria-disabled",r))}}y.size>0&&LR.schedule(x)}),this.destroy=()=>{super.destroy(),null==u||u.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var eD,tD,nD,rD,oD,iD,aD,sD,lD,cD,uD,dD,pD,fD,hD,mD,gD=new Map;function bD(e){return JI(e)?e.host.isConnected:null!=e.defaultView}var vD=class extends(iD=HC,oD=[Rw],rD=[Rw],nD=[Aw],tD=[Aw],eD=[Aw],iD){constructor(e,t){super(e,t),NA(aD,5,this),$A(this,dD),$A(this,sD,NA(aD,8,this,new Map)),NA(aD,11,this),$A(this,lD,NA(aD,12,this,new Set)),NA(aD,15,this),$A(this,cD,new Set),$A(this,uD,new Map),this.registerEffect(HA(this,dD,pD))}register(e,t){return hS(()=>{var n;const r=new Map(this.registeredRules);r.set(e,null!=(n=null==t?void 0:t.retain)&&n),this.registeredRules=r}),()=>{hS(()=>{const t=new Map(this.registeredRules);t.delete(e),this.registeredRules=t})}}addRoot(e){return hS(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{hS(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return ZI(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return ZI(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}destroy(){for(const e of FA(this,uD).values())for(const t of e.values())t();FA(this,uD).clear(),FA(this,cD).clear(),super.destroy()}};aD=TA(iD),sD=new WeakMap,lD=new WeakMap,cD=new WeakMap,uD=new WeakMap,dD=new WeakSet,pD=function(){const{roots:e,registeredRules:t}=this;for(const t of e)FA(this,cD).add(t);const n=new Map;for(const r of FA(this,cD)){const o=e.has(r);if(o||bD(r))for(const[e,i]of t){if(!o&&!i)continue;let t=n.get(r);t||(t=new Set,n.set(r,t)),t.add(e)}else FA(this,cD).delete(r)}for(const[e,t]of FA(this,uD)){const r=n.get(e);for(const[e,n]of t)(null==r?void 0:r.has(e))||(n(),t.delete(e));0===t.size&&FA(this,uD).delete(e)}for(const[e,t]of n){let n=FA(this,uD).get(e);n||(n=new Map,FA(this,uD).set(e,n));for(const r of t)n.has(r)||n.set(r,HA(this,dD,fD).call(this,e,r))}},fD=function(e,t){let n=gD.get(e);n||(n=new Map,gD.set(e,n));let r=n.get(t);if(!r){const o=FI(e)?HA(this,dD,hD).call(this,e,n,t):HA(this,dD,mD).call(this,e,n,t);if(!o)return()=>{};r=o,n.set(t,r)}r.refCount++;let o=!1;return()=>{o||(o=!0,r.refCount--,0===r.refCount&&r.cleanup())}},hD=function(e,t,n){var r;const o=e.createElement("style"),{nonce:i}=null!=(r=this.options)?r:{};i&&o.setAttribute("nonce",i),o.textContent=n,e.head.prepend(o);const a=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===o)return void e.head.prepend(o)});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),o.remove(),t.delete(n),0===t.size&&gD.delete(e)}}},mD=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=r?r:{};if(!o)return null;const i=new o;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var r;if(JI(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&gD.delete(e)}}},jA(aD,4,"registeredRules",oD,vD,sD),jA(aD,4,"additionalRoots",rD,vD,lD),jA(aD,2,"sourceRoot",nD,vD),jA(aD,2,"targetRoot",tD,vD),jA(aD,2,"roots",eD,vD),OA(aD,vD),vD.configure=zC(vD);var yD=vD,xD="data-dnd-",SD=`${xD}dropping`,wD="--dnd-",CD=`${xD}dragging`,ED=`${xD}placeholder`,ID=[CD,ED,"popover","aria-pressed","aria-grabbing"],RD=["view-transition-name"],AD=`\n :is(:root,:host) [${CD}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${wD}top, 0px) !important;\n left: var(${wD}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${wD}width, auto);\n max-width: var(${wD}width, auto);\n height: var(${wD}height, auto);\n max-height: var(${wD}height, auto);\n transform: var(${wD}transform, none) !important;\n transition: var(${wD}transition) !important;\n }\n\n :is(:root,:host) [${ED}] {\n transition: none;\n }\n\n :is(:root,:host) [${ED}='hidden'] {\n visibility: hidden;\n }\n\n [${CD}] * {\n pointer-events: none !important;\n }\n\n [${CD}]:not([${SD}]) {\n translate: var(${wD}translate) !important;\n }\n\n [${CD}][style*='${wD}scale'] {\n scale: var(${wD}scale) !important;\n transform-origin: var(${wD}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${CD}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${CD}]::backdrop, [${xD}overlay]:not([${CD}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function DD(e,t="hidden"){return hS(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const o=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${xD}${fA("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(eR(e)&&eR(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),tR(e)&&tR(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,o]of e){if(!r.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(o),!i)continue;const a=r.element;r.proxy=i,i.removeAttribute(o),rR.set(a,i),n.push(()=>{rR.delete(a),r.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(ED,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function MD(e,t){return e===t||iR(e)===iR(t)}function kD(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&uA(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>qR(t))}function TD(e){return"TR"===e.tagName}var qD,PD,LD,OD,ND,jD,_D,zD=250,FD="ease";var $D=class extends(PD=$C,qD=[Rw],PD){constructor(e,t){super(e,t),$A(this,ND),$A(this,OD,NA(LD,8,this)),NA(LD,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(yD),r=null==n?void 0:n.register(AD,{retain:!0});if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(HA(this,ND,jD).bind(this,n)),this.registerEffect(HA(this,ND,_D))}};LD=TA(PD),OD=new WeakMap,ND=new WeakSet,jD=function(e){const{overlay:t}=this;if(!t||!e)return;const n=ZI(t);return n?e.addRoot(n):void 0},_D=function(){var e,t,n,r,o,i,a;const{state:s,manager:l,options:c}=this,{dragOperation:u}=l,{position:d,source:p,status:f}=u;if(f.idle)return s.current={},void(s.initial={});if(!p)return;const{element:h}=p,m=p.pluginConfig($D),g=null!=(t=null!=(e=null==m?void 0:m.feedback)?e:null==c?void 0:c.feedback)?t:"default",b="function"==typeof g?g(p,l):g;if(!h||"none"===b||!f.initialized||f.initializing)return;const{initial:v}=s,y=null!=(n=this.overlay)?n:h,x=VR(y),S=VR(h),w=!MD(h,y),C=new sA(h,{frameTransform:w?S:null,ignoreTransforms:!w}),E=S.scaleX/x.scaleX,I=S.scaleY/x.scaleY;let{width:R,height:A,top:D,left:M}=C;w&&(R/=E,A/=I);const k=new cA(y),T=_R(h),{transition:q,translate:P,boxSizing:L,paddingBlockStart:O,paddingBlockEnd:N,paddingInlineStart:j,paddingInlineEnd:_,borderInlineStartWidth:z,borderInlineEndWidth:F,borderBlockStartWidth:$,borderBlockEndWidth:B}=T,H=q.split(",").filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(","),V=GR(T),W=T.transform,U="clone"===b,G="content-box"===L,K=G?parseInt(j)+parseInt(_)+parseInt(z)+parseInt(F):0,Y=G?parseInt(O)+parseInt(N)+parseInt($)+parseInt(B):0,X="move"===b||this.overlay?null:DD(p,U?"clone":"hidden"),J=hS(()=>dA(l.dragOperation.activatorEvent));if(!v.translate)if(this.overlay&&V)v.translate={x:V.x,y:V.y};else if("none"!==P){const e=UR(P);e&&(v.translate=e)}if(!v.transformOrigin){const e=hS(()=>d.current),t=M+(null!=(r=null==V?void 0:V.x)?r:0),n=D+(null!=(o=null==V?void 0:V.y)?o:0);v.transformOrigin={x:(e.x-t*x.scaleX-x.x)/(R*x.scaleX),y:(e.y-n*x.scaleY-x.y)/(A*x.scaleY)}}const{transformOrigin:Z}=v,Q=D*x.scaleY+x.y,ee=M*x.scaleX+x.x;if(!v.coordinates&&(v.coordinates={x:ee,y:Q},1!==E||1!==I)){const{scaleX:e,scaleY:t}=S,{x:n,y:r}=Z;v.coordinates.x+=(R*e-R)*n,v.coordinates.y+=(A*t-A)*r}v.dimensions||(v.dimensions={width:R,height:A}),v.frameTransform||(v.frameTransform=x);const te=v.coordinates.x-ee,ne=v.coordinates.y-Q,re=(v.dimensions.width*v.frameTransform.scaleX-R*x.scaleX)*Z.x,oe=(v.dimensions.height*v.frameTransform.scaleY-A*x.scaleY)*Z.y,ie={x:te/x.scaleX+re,y:ne/x.scaleY+oe},ae=M+ie.x,se=D+ie.y;y.setAttribute(CD,"true");const le=hS(()=>u.transform),ce=null!=(i=v.translate)?i:{x:0,y:0},ue=le.x*x.scaleX+ce.x,de=le.y*x.scaleY+ce.y,pe=XI();if(k.set({width:R-K,height:A-Y,top:se+pe.y,left:ae+pe.x,translate:`${ue}px ${de}px 0`,transform:this.overlay?"none":W,transition:H?`${H}, translate 0ms linear`:"translate 0ms linear",scale:w?`${E} ${I}`:"","transform-origin":`${100*Z.x}% ${100*Z.y}%`},wD),X&&(h.insertAdjacentElement("afterend",X),null==c?void 0:c.rootElement)){("function"==typeof c.rootElement?c.rootElement(p):c.rootElement).appendChild(h)}let fe,he,me;TR(y)&&(y.hasAttribute("popover")||y.setAttribute("popover","manual"),qR(y),y.addEventListener("beforetoggle",kD));const ge=(be={placeholder:X,element:h,feedbackElement:y,frameTransform:x,transformOrigin:Z,width:R,height:A,top:D,left:M,widthOffset:K,heightOffset:Y,delta:ie,styles:k,dragOperation:u,getTranslate:()=>s.current.translate,getElementMutationObserver:()=>fe,getSavedCellWidths:()=>me,setSavedCellWidths:e=>{me=e}},new ResizeObserver(()=>{var e,t,n;const r=new sA(be.placeholder,{frameTransform:be.frameTransform,ignoreTransforms:!0}),o=null!=(e=be.transformOrigin)?e:{x:1,y:1},i=(be.width-r.width)*o.x+be.delta.x,a=(be.height-r.height)*o.y+be.delta.y,s=XI();if(be.styles.set({width:r.width-be.widthOffset,height:r.height-be.heightOffset,top:be.top+a+s.y,left:be.left+i+s.x},wD),null==(t=be.getElementMutationObserver())||t.takeRecords(),TD(be.element)&&TD(be.placeholder)){const e=Array.from(be.element.cells),t=Array.from(be.placeholder.cells);be.getSavedCellWidths()||be.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}const l=null!=(n=be.getTranslate())?n:{x:0,y:0},c=be.left+i+s.x+l.x,u=be.top+a+s.y+l.y,d=r.width-be.widthOffset,p=r.height-be.heightOffset,f=be.frameTransform;be.dragOperation.shape=new eC(c*f.scaleX+f.x,u*f.scaleY+f.y,d*f.scaleX,p*f.scaleY)}));var be;const ve=new sA(y);hS(()=>u.shape=ve);const ye=zI(y),xe=e=>{this.manager.actions.stop({event:e})},Se=QI(ye);J&&ye.addEventListener("resize",xe),"idle"===hS(()=>p.status)&&requestAnimationFrame(()=>p.status="dragging"),X&&(ge.observe(X),fe=function(e,t,n){const r=new MutationObserver(r=>{let o=!1;for(const n of r){if(n.target!==e){o=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||ID.includes(r))continue;const i=e.getAttribute(r);if("style"===r){if(lA(e)&&lA(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(RD.includes(e)||e.startsWith(wD))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==i?t.setAttribute(r,i):t.removeAttribute(r)}o&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(h,X,U),he=function(e,t,n){const r=new MutationObserver(r=>{for(const o of r)if(0!==o.addedNodes.length)for(const r of Array.from(o.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void qR(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void qR(n)}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement("afterend",t),qR(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(h,X,y));const we=null==(a=l.dragOperation.source)?void 0:a.id,Ce=()=>{var e;if(!J||null==we)return;const t=l.registry.draggables.get(we),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;$I(n)&&n.focus()},Ee=()=>{null==fe||fe.disconnect(),null==he||he.disconnect(),ge.disconnect(),ye.removeEventListener("resize",xe),TR(y)&&(y.removeEventListener("beforetoggle",kD),y.removeAttribute("popover")),y.removeAttribute(CD),k.reset();const e=()=>{var e;if(me&&TD(h)){const t=Array.from(h.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=me[n])?e:""}p.status="idle";const t=null!=s.current.translate,n=u.status.dragging;X&&(!n&&t||X.parentElement!==y.parentElement)&&y.isConnected&&X.replaceWith(y),null==X||X.remove()};y===this.overlay?setTimeout(e,0):e()},Ie=null==c?void 0:c.dropAnimation,Re=this,Ae=Mw(()=>{var e,t,n;const{transform:r,status:o}=u;if((r.x||r.y||s.current.translate)&&o.dragging){const o=null!=(e=v.translate)?e:{x:0,y:0},i={x:r.x/x.scaleX+o.x,y:r.y/x.scaleY+o.y},a=s.current.translate,l=hS(()=>u.modifiers),d=hS(()=>{var e;return null==(e=u.shape)?void 0:e.current}),p=null==c?void 0:c.keyboardTransition,f=J&&!Se&&null!==p?`${null!=(t=null==p?void 0:p.duration)?t:250}ms ${null!=(n=null==p?void 0:p.easing)?n:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(k.set({transition:H?`${H}, translate ${f}`:`translate ${f}`,translate:`${i.x}px ${i.y}px 0`},wD),null==fe||fe.takeRecords(),d&&d!==ve&&a&&!l.length){const e=Qw.delta(i,a);u.shape=eC.from(d.boundingRectangle).translate(e.x*x.scaleX,e.y*x.scaleY)}else u.shape=new sA(y);s.current.translate=i}},function(){if(u.status.dropped){this.dispose(),p.status="dropping";const e=void 0!==(null==m?void 0:m.dropAnimation)?m.dropAnimation:void 0!==Re.dropAnimation?Re.dropAnimation:Ie;let t=s.current.translate;const n=null!=t;if(t||h===y||(t={x:0,y:0}),!t||null===e)return void Ee();l.renderer.rendering.then(()=>{!function(e){var t,n,r,o;const{animation:i}=e;if("function"==typeof i){const t=i({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=zD,easing:s=FD}=null!=i?i:{};qR(e.feedbackElement);const[,l]=null!=(t=OI(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const c=null!=(n=e.placeholder)?n:e.element,u={frameTransform:MD(e.feedbackElement,c)?null:void 0},d=new sA(e.feedbackElement,u),p=null!=(r=UR(_R(e.feedbackElement).translate))?r:e.translate,f=new sA(c,u),h=eC.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},wD),e.feedbackElement.setAttribute(SD,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),tA({element:e.feedbackElement,keyframes:DA(AA(AA({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:QI(zI(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(SD),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({source:p,element:h,feedbackElement:y,placeholder:X,translate:t,moved:n,transition:q,alignment:p.alignment,styles:k,animation:null!=e?e:void 0,getElementMutationObserver:()=>fe,cleanup:Ee,restoreFocus:Ce})})}});return()=>{Ee(),Ae()}},jA(LD,4,"overlay",qD,$D,OD),OA(LD,$D),$D.configure=zC($D);var BD,HD,VD,WD,UD,GD,KD,YD=$D,XD=!0;VD=[Rw],WD=KR.Forward,BD=[Rw],HD=KR.Reverse;var JD=class{constructor(){$A(this,GD,NA(UD,8,this,XD)),NA(UD,11,this),$A(this,KD,NA(UD,12,this,XD)),NA(UD,15,this)}isLocked(e){return e!==KR.Idle&&(null==e?this[KR.Forward]===XD&&this[KR.Reverse]===XD:this[e]===XD)}unlock(e){e!==KR.Idle&&(this[e]=false)}};UD=TA(null),GD=new WeakMap,KD=new WeakMap,jA(UD,4,WD,VD,JD,GD),jA(UD,4,HD,BD,JD,KD),OA(UD,JD);var ZD,QD,eM,tM,nM,rM,oM=[KR.Forward,KR.Reverse],iM=class{constructor(){this.x=new JD,this.y=new JD}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},aM=class extends $C{constructor(e){super(e);const t=ES(new iM);let n=null;this.signal=t,LS(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new iM);const{delta:o}=e.dragOperation.position;if(n){const e={x:sM(o.x,n.x),y:sM(o.y,n.y)},r=t.peek();dS(()=>{for(const t of cC)for(const n of oM)e[t]===n&&r[t].unlock(n);t.value=r})}n=o})}get current(){return this.signal.peek()}};function sM(e,t){return Math.sign(e-t)}var lM=class extends(QD=HC,ZD=[Rw],QD){constructor(e){super(e),$A(this,tM,NA(eM,8,this,!1)),NA(eM,11,this),$A(this,nM),$A(this,rM,()=>{if(!FA(this,nM))return;const{element:e,by:t}=FA(this,nM);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{var n;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return BA(this,nM,void 0),!1;const{position:o}=this.manager.dragOperation,i=null==o?void 0:o.current;if(i){const{by:o}=null!=e?e:{},a=o?{x:cM(o.x),y:cM(o.y)}:void 0,s=a?void 0:this.scrollIntentTracker.current;if(null==s?void 0:s.isLocked())return!1;for(const e of r){const r=FR(e),l=$R(e,o,r);if(l.x||l.y){const{speed:l,direction:c}=JR(e,i,a,null==t?void 0:t.acceleration,null==t?void 0:t.threshold,void 0,r);if(s)for(const e of cC)s[e].isLocked(c[e])&&(l[e]=0,c[e]=0);if(c.x||c.y){const{x:t,y:r}=null!=o?o:c,i=t*l.x,a=r*l.y;if(i||a){const t=null==(n=FA(this,nM))?void 0:n.by;if(this.autoScrolling&&t){if(t.x&&!i||t.y&&!a)continue}return BA(this,nM,{element:e,by:{x:i,y:a}}),LR.schedule(FA(this,rM)),!0}}}}}return BA(this,nM,void 0),!1};let t=null,n=null;const r=Ew(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const o=nR(ZI(null==r?void 0:r.element),n.current);return o&&(t=o),null!=o?o:t}),o=Ew(()=>{const t=r.value,{documentElement:o}=HI(t);if(!t||t===o){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=HR(r,{excludeElement:!1});return n=e,e}}if(t){const e=HR(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},Iw);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new aM(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&dA(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function cM(e){return e>0?KR.Forward:e<0?KR.Reverse:KR.Idle}eM=TA(QD),tM=new WeakMap,nM=new WeakMap,rM=new WeakMap,jA(eM,4,"autoScrolling",ZD,lM,tM),OA(eM,lM);var uM=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),dM=class extends $C{constructor(e,t){super(e,t);const n=e.registry.plugins.get(lM);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=LS(()=>{var t,r,o;if(this.disabled)return;const{position:i,status:a}=e.dragOperation;if(a.dragging){const e={acceleration:null==(t=this.options)?void 0:t.acceleration,threshold:"number"==typeof(null==(r=this.options)?void 0:r.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(o=this.options)?void 0:o.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;const t=setInterval(()=>uM.schedule(()=>n.scroll(void 0,e)),10);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};dM.configure=zC(dM);var pM,fM=dM,hM={capture:!0,passive:!0},mM=class extends HC{constructor(e){super(e),$A(this,pM),this.handleScroll=()=>{null==FA(this,pM)&&BA(this,pM,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),BA(this,pM,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=LS(()=>{var e,n,r;if(t.status.dragging){const o=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return o.addEventListener("scroll",this.handleScroll,hM),()=>{o.removeEventListener("scroll",this.handleScroll,hM)}}})}};pM=new WeakMap;function gM(){var e;null==(e=document.getSelection())||e.removeAllRanges()}function bM(e,t){const n=yM(e.key);return t.some(e=>yM(e)===n)}var vM=new Set(["alt","altgraph","backspace","capslock","control","delete","end","enter","escape","home","insert","meta","pagedown","pageup","pause","printscreen","shift","space","tab","arrowdown","arrowleft","arrowright","arrowup","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"]);function yM(e){if(" "===e||"Spacebar"===e)return"space";if(/^Key[A-Z]$/.test(e))return e.slice(3).toLowerCase();if(/^Digit[0-9]$/.test(e))return e.slice(5);if(1===e.length)return e.toLowerCase();const t=e.toLowerCase();return vM.has(t)?t:e}var xM,SM=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),wM=class extends eI{constructor(e,t){super(e),this.manager=e,this.options=t,$A(this,xM,[]),this.listeners=new oR,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!uA(e.target))return;if(t.disabled)return;const{keyboardCodes:r=SM.keyboardCodes,preventActivation:o=SM.preventActivation}=null!=n?n:{};bM(e,r.start)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=LS(()=>{var n;const r=null!=(n=e.handle)?n:e.element,o=n=>{dA(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),ZR(r);const{center:o}=new sA(r);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=HI(r),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];FA(this,xM).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=SM.keyboardCodes}=null!=n?n:{};if(bM(e,[...r.end,...r.cancel])){e.preventDefault();const t=bM(e,r.cancel);return void this.handleEnd(e,t)}bM(e,r.up)?this.handleMove("up",e):bM(e,r.down)&&this.handleMove("down",e),bM(e,r.left)?this.handleMove("left",e):bM(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:SM.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(fM);!1===(null==e?void 0:e.disabled)&&(e.disable(),FA(this,xM).push(()=>{e.enable()}))}cleanup(){FA(this,xM).forEach(e=>e()),BA(this,xM,[])}destroy(){this.cleanup(),this.listeners.clear()}};xM=new WeakMap,wM.configure=zC(wM),wM.defaults=SM;var CM,EM,IM,RM=wM;CM=new WeakMap;EM=new WeakMap,IM=new WeakMap;var AM=class{};AM.Delay=class extends nI{constructor(){super(...arguments),$A(this,EM),$A(this,IM)}onEvent(e){switch(e.type){case"pointerdown":BA(this,IM,UI(e)),BA(this,EM,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!FA(this,IM))return;const{x:t,y:n}=UI(e);rC({x:t-FA(this,IM).x,y:n-FA(this,IM).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){FA(this,EM)&&(clearTimeout(FA(this,EM)),BA(this,IM,void 0),BA(this,EM,void 0))}},AM.Distance=class extends nI{constructor(){super(...arguments),$A(this,CM)}onEvent(e){switch(e.type){case"pointerdown":BA(this,CM,UI(e));break;case"pointermove":if(!FA(this,CM))return;const{x:t,y:n}=UI(e),r={x:t-FA(this,CM).x,y:n-FA(this,CM).y},{tolerance:o}=this.options;if(o&&rC(r,o))return void this.abort();rC(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){BA(this,CM,void 0)}};var DM,MM=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:o}=e;if("mouse"!==r||!uA(o)||t.handle!==o&&!(null==(n=t.handle)?void 0:n.contains(o)))return"touch"===r?[new AM.Delay({value:250,tolerance:5})]:function(e){if(!uA(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(o)&&!e.defaultPrevented?[new AM.Delay({value:200,tolerance:0})]:[new AM.Delay({value:200,tolerance:10}),new AM.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;if(r===t.element)return!1;if(r===t.handle)return!1;if(!uA(r))return!1;if(null==(n=t.handle)?void 0:n.contains(r))return!1;const o=r.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ');return o!==t.element&&Boolean(o)}}),kM=class extends eI{constructor(e,t){super(e),this.manager=e,this.options=t,$A(this,DM,new Set),this.listeners=new oR,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){const{activationConstraints:r=MM.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=LS(()=>{var n;const r=new AbortController,{signal:o}=r,i=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=zI(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(OM(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!uA(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=MM.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:o}=e,i=$I(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=VR(t.element),{x:s,y:l}=UI(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const c=this.activationConstraints(e,t,n);e.sensor=this;const u=new tI(c,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;const{pointerId:d}=e,p=e=>t=>{t.pointerId===d&&e(t)},f=KI(),h=this.listeners.bind(f,[{type:"pointermove",listener:p(e=>this.handlePointerMove(e,t))},{type:"pointerup",listener:p(this.handlePointerUp),options:{capture:!0}},{type:"pointercancel",listener:p(this.handleCancel)},{type:"dragstart",listener:i?this.handleCancel:qM,options:{capture:!0}}]);FA(this,DM).add(()=>{h(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;!1===(null==(n=this.controller)?void 0:n.activated)&&(null==(r=this.controller)||r.onEvent(e));const{status:o}=this.manager.dragOperation;if(o.initializing||o.dragging){const n=UI(e),r=VR(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,o.dragging&&LR.schedule(this.handleMove)}}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized,r=HI(e.target),o=r.defaultView;if(!n&&o){const e=e=>{e.target===r.body&&e.detail>0&&(e.preventDefault(),e.stopImmediatePropagation())};o.addEventListener("click",e,!0),o.setTimeout(()=>{o.removeEventListener("click",e,!0)},0)}this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;const o=n.actions.start({coordinates:r,event:t,source:e});if(o.signal.aborted)return this.cleanup();t.preventDefault();const i=HI(t.target).body;try{i.setPointerCapture(t.pointerId)}catch(e){return void this.handleCancel(t)}const a=uA(t.target)?[t.target,i]:i,s=this.listeners.bind(a,[{type:"touchmove",listener:qM,options:{passive:!1}},{type:"click",listener:qM},{type:"contextmenu",listener:qM},{type:"keydown",listener:this.handleKeyDown}]);FA(this,DM).add(s),n.renderer.rendering.then(()=>{!o.signal.aborted&&n.dragOperation.status.dragging&&LR.schedule(this.handleMove)})}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){const{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},FA(this,DM).forEach(e=>e()),FA(this,DM).clear()}destroy(){this.cleanup(),this.listeners.clear()}};DM=new WeakMap,kM.configure=zC(kM),kM.defaults=MM;var TM=kM;function qM(e){e.preventDefault()}function PM(){}var LM=new WeakSet;function OM(e){e&&!LM.has(e)&&(e.addEventListener("touchmove",PM,{capture:!1,passive:!1}),LM.add(e))}var NM,jM,_M,zM,FM,$M,BM,HM,VM,WM,UM,GM,KM,YM,XM,JM,ZM={modifiers:[],plugins:[QA,fM,class extends $C{constructor(e,t){super(e,t),this.manager=e;const{cursor:n="grabbing"}=null!=t?t:{},r=e.registry.plugins.get(yD),o=null==r?void 0:r.register(`* { cursor: ${n} !important; }`);if(o){const e=this.destroy.bind(this);this.destroy=()=>{o(),e()}}}},YD,class extends $C{constructor(e){super(e),this.manager=e;const t=e.registry.plugins.get(yD),n=null==t?void 0:t.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=LS(()=>{const{dragOperation:e}=this.manager;if(e.status.initialized)return gM(),document.addEventListener("selectionchange",gM,{capture:!0}),()=>{document.removeEventListener("selectionchange",gM,{capture:!0})}}),n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}}}],sensors:[TM,RM]},QM=class extends AI{constructor(e={}){const t=RI(e.plugins,ZM.plugins),n=RI(e.sensors,ZM.sensors),r=RI(e.modifiers,ZM.modifiers);super(DA(AA({},e),{plugins:[mM,lM,yD,...t],sensors:n,modifiers:r}))}},ek=class extends(_M=PE,jM=[Rw],NM=[Rw],_M){constructor(e,t){var n=e,{element:r,effects:o=()=>[],handle:i}=n,a=kA(n,["element","effects","handle"]);super(AA({effects:()=>[...o(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(FC))?t:[...n.sensors]).map(e=>{const t=e instanceof eI?e:n.registry.register(e.plugin),r=e instanceof eI?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},a),t),$A(this,FM,NA(zM,8,this)),NA(zM,11,this),$A(this,$M,NA(zM,12,this)),NA(zM,15,this),this.element=r,this.handle=i}};zM=TA(_M),FM=new WeakMap,$M=new WeakMap,jA(zM,4,"handle",jM,ek,FM),jA(zM,4,"element",NM,ek,$M),OA(zM,ek);var tk=class extends(VM=LE,HM=[Rw],BM=[Rw],VM){constructor(e,t){var n=e,{element:r,effects:o=()=>[]}=n,i=kA(n,["element","effects"]);const{collisionDetector:a=hA}=i,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new sA(n),o=hS(()=>this.shape);return r&&(null==o?void 0:o.equals(r))?o:(this.shape=r,r)},l=ES(!1);super(DA(AA({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new kR(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),$A(this,XM),$A(this,UM,NA(WM,8,this)),NA(WM,11,this),$A(this,JM,NA(WM,12,this)),NA(WM,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){BA(this,XM,e,YM)}get element(){var e;return null!=(e=this.proxy)?e:FA(this,XM,KM)}};function nk(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}WM=TA(VM),UM=new WeakMap,XM=new WeakSet,JM=new WeakMap,GM=jA(WM,20,"#element",HM,XM,UM),KM=GM.get,YM=GM.set,jA(WM,4,"proxy",BM,tk,JM),OA(WM,tk);var rk="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?j:P;function ok(){const e=M(0)[1];return O(()=>{e(e=>e+1)},[e])}function ik(e,t=[],n=!1){const r=k(e);return r.current=e,function(e,t=!1){const n=k(e.peek()),r=k(!1),o=ok();return rk(()=>LS(()=>{const i=n.current,a=e.value;if(i!==a){if(n.current=a,!r.current)return;t?U(o):o()}}),[e,t,o]),{get value(){return r.current=!0,e.peek()}}}(D(()=>Ew(()=>r.current()),t),n)}function ak(e){const t=k(e);return rk(()=>{t.current=e},[e]),t}function sk(e,t){const n=ok(),r=ak(t),o=D(()=>{const t=new Map;return{tracked:t,propertyCount:ES(0),active:!1,proxy:e?new Proxy(e,{get(e,n){const r=e[n];return t.has(n)||t.set(n,r),r}}):e}},[e]);return rk(()=>{o.propertyCount.value=o.tracked.size}),rk(()=>{if(!e)return;const{tracked:t,propertyCount:i}=o;o.active=!0;const a=LS(()=>{i.value;let a=!1,s=!1;for(const[n,o]of t){const i=e[n];Object.is(o,i)||(a=!0,t.set(n,i),s=!0===hS(()=>{var e;return null==(e=r.current)?void 0:e.call(r,n,o,i)})||s)}a&&(s?queueMicrotask(()=>{o.active&&U(n)}):n())});return()=>{o.active=!1,a()}},[e,o,n,r]),o.proxy}function lk(e,t){e()}function ck(e,t,n=P,r=Object.is){const o=k(e);n(()=>{const n=o.current;r(e,n)||(o.current=e,t(e,n))},[t,e])}function uk(e,t){const n=k(nk(e));rk(()=>{const r=nk(e);r!==n.current&&(n.current=r,t(r))})}var dk=Object.defineProperty,pk=Object.defineProperties,fk=Object.getOwnPropertyDescriptors,hk=Object.getOwnPropertySymbols,mk=Object.prototype.hasOwnProperty,gk=Object.prototype.propertyIsEnumerable,bk=(e,t,n)=>t in e?dk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vk=new QM,yk=T(vk),xk=z(F(({children:e},t)=>{const[n,r]=M(0),o=k(null),i=k(null),a=D(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),$(()=>{e(),r(e=>e+1)})}}),[]);return rk(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,n]),B(t,()=>a),null})),Sk=[void 0,Iw];function wk(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,c=((e,t)=>{var n={};for(var r in e)mk.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&hk)for(var r of hk(e))t.indexOf(r)<0&&gk.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const u=k(null),{plugins:d,modifiers:p,sensors:f}=c,h=RI(d,ZM.plugins),m=RI(f,ZM.sensors),g=RI(p,ZM.modifiers),b=ak(o),v=ak(i),y=ak(s),x=ak(a),S=ak(l),w=ak(r),C=function(e){const t=k(null);t.current||(t.current=e());return _(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new QM(c)});return P(()=>{if(!u.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=u.current,{monitor:n}=C;C.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=b.current;n&&t(()=>n(e,C))}),n.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),n.addEventListener("dragover",e=>{const n=y.current;n&&t(()=>n(e,C))}),n.addEventListener("dragmove",e=>{const n=x.current;n&&t(()=>n(e,C))}),n.addEventListener("dragend",e=>{const n=S.current;n&&t(()=>n(e,C))}),n.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>r.forEach(e=>e())},[C]),ck(h,()=>C&&(C.plugins=h),...Sk),ck(m,()=>C&&(C.sensors=m),...Sk),ck(g,()=>C&&(C.modifiers=g),...Sk),Yt.jsxs(yk.Provider,{value:C,children:[Yt.jsx(xk,{ref:u,children:n}),n]})}function Ck(){return N(yk)}function Ek(e){var t;const n=null!=(t=Ck())?t:void 0,[r]=M(()=>e(n));return r.manager!==n&&(r.manager=n),rk(r.register,[n,r]),r}function Ik({children:e,className:t,dropAnimation:n,style:r,tag:o,disabled:i}){var a;const s=k(null),l=Ck(),c=null!=(a=ik(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,u="function"==typeof i?i(c):i;P(()=>{if(!s.current||!l||u)return;const e=l.plugins.find(e=>e instanceof YD);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,u]),P(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof YD);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[l,n]);const d=D(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?Rk:e[t]});return new Proxy(l,{get:(t,n)=>"registry"===n?e:t[n]})},[l]);return Yt.jsx(yk.Provider,{value:d,children:C(o||"div",{ref:s,className:t,style:r,"data-dnd-overlay":!0},function(){if(!c||u)return null;if("function"==typeof e)return Yt.jsx(Ak,{source:c,children:e});return e}())})}function Rk(){return()=>{}}function Ak({children:e,source:t}){return e(sk(t))}var Dk,Mk,kk,Tk,qk,Pk=Object.create,Lk=Object.defineProperty,Ok=Object.getOwnPropertyDescriptor,Nk=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),jk=e=>{throw TypeError(e)},_k=["class","method","getter","setter","accessor","field","value","get","set"],zk=e=>void 0!==e&&"function"!=typeof e?jk("Function expected"):e,Fk=(e,t,n,r,o)=>({kind:_k[e],name:t,metadata:r,addInitializer:e=>n._?jk("Already initialized"):o.push(zk(e||null))}),$k=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=_k[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Ok(o,n)),h=r.length-1;h>=0;h--)(l=Fk(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,zk(a)&&(f[d]=a);return f&&Lk(o,n,f),o},Bk=(e,t,n)=>t.has(e)||jk("Cannot "+n),Hk=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},Vk=class extends(kk=Tw,Mk=[Aw],Dk=[Aw],kk){constructor(e){var t,n,r;super(Hk.from(e),(e,t)=>Hk.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(qk,5,this),t=this,r=0,(n=Tk).has(t)?jk("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return Hk.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=Hk.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(Bk(a=this,s=Tk,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);dS(()=>{((e,t,n)=>{Bk(e,t,"write to private field"),t.set(e,n)})(this,Tk,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(Hk.from(e)),this.velocity={x:0,y:0}}};qk=(e=>{var t;return[,,,Pk(null!=(t=null==e?void 0:e[Nk("metadata")])?t:null)]})(kk),Tk=new WeakMap,$k(qk,2,"delta",Mk,Vk),$k(qk,2,"direction",Dk,Vk),((e,t)=>{return n=t,r=Nk("metadata"),o=e[3],r in n?Lk(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o;var n,r,o})(qk,Vk);var Wk=(e=>(e.Horizontal="x",e.Vertical="y",e))(Wk||{});Object.values(Wk);var Uk=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/Hk.distance(t.shape.center,n),type:XE.PointerIntersection,priority:YE.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=Hk.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:XE.ShapeIntersection,priority:YE.Normal}}return null})(e)};function Gk(e){const{collisionDetector:t,data:n,disabled:r,element:o,id:i,accept:a,type:s}=e,l=Ek(t=>new tk(((e,t)=>pk(e,fk(t)))(((e,t)=>{for(var n in t||(t={}))mk.call(t,n)&&bk(e,n,t[n]);if(hk)for(var n of hk(t))gk.call(t,n)&&bk(e,n,t[n]);return e})({},e),{register:!1,element:nk(o)}),t)),c=sk(l);return ck(i,()=>l.id=i),uk(o,e=>l.element=e),ck(a,()=>l.accept=a,void 0,Iw),ck(t,()=>l.collisionDetector=null!=t?t:Uk),ck(n,()=>n&&(l.data=n)),ck(r,()=>l.disabled=!0===r),ck(s,()=>l.type=s),{droppable:c,get isDropTarget(){return c.isDropTarget},ref:O(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}function Kk(e){const t=Ck();P(()=>{if(!t)return;const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const o=n.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,r);e.push(i)}return e},[]);return()=>n.forEach(e=>null==e?void 0:e())},[t,e])}const Yk=e=>Array.from({length:e},(e,t)=>t),Xk=({id:e,sectionIndex:t,itemIndex:n})=>Yt.jsx("span",{children:`${e}-${t}-${n}`}),Jk=z(()=>{const e=Gg(eS)??Xk,{startSectionIndex:t,startIndex:n,id:r}=Gg(oS)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:Yt.jsx(Ik,{dropAnimation:null,children:Yt.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:Yt.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),Zk=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=Gg(oS),o=r?.toSectionIndex===e&&r.toIndex===t;return Yt.jsx("div",{"data-key":"drop-target-indicator","data-testid":"drop-target-indicator",style:{visibility:o&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},Qk=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,eT=z(({sectionIndex:e})=>{const t=Gg(Gx)[e],n=Gg(Kx),r=Gg(Yx),o=null!==Gg(oS),i=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=Gk({id:a,type:"section",accept:"item",collisionPriority:YE.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:Yt.jsxs(md,{ref:s,sx:{margin:"4px",outline:Qk(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[Yt.jsx(md,{sx:{position:"relative",top:"4px"},children:Yt.jsx(Zk,{sectionIndex:e,itemIndex:0,isDragging:!1})}),Yt.jsxs(md,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[Yt.jsx(Tu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:i.title}),Yt.jsx(Tu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:i.message})]})]})}),tT=z(({id:e,sectionIndex:t})=>{const n=Gg(Qx);return void 0===n?null:C(n,{id:e,sectionIndex:t})});var nT=Object.defineProperty,rT=Object.defineProperties,oT=Object.getOwnPropertyDescriptors,iT=Object.getOwnPropertySymbols,aT=Object.prototype.hasOwnProperty,sT=Object.prototype.propertyIsEnumerable,lT=(e,t,n)=>t in e?nT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cT=(e,t)=>{for(var n in t||(t={}))aT.call(t,n)&&lT(e,n,t[n]);if(iT)for(var n of iT(t))sT.call(t,n)&&lT(e,n,t[n]);return e},uT=(e,t)=>rT(e,oT(t)),dT=class extends wI{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return uT(cT({},e),{[t]:n})}};dT.configure=zC(dT);var pT=dT,fT=pT.configure({axis:"x",value:0});pT.configure({axis:"y",value:0});var hT=class extends wI{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,o="number"==typeof n?n:n.y;return uT(cT({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/o)*o})}};hT.configure=zC(hT);var mT=Object.create,gT=Object.defineProperty,bT=Object.defineProperties,vT=Object.getOwnPropertyDescriptor,yT=Object.getOwnPropertyDescriptors,xT=Object.getOwnPropertySymbols,ST=Object.prototype.hasOwnProperty,wT=Object.prototype.propertyIsEnumerable,CT=e=>{throw TypeError(e)},ET=(e,t,n)=>t in e?gT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IT=(e,t)=>{for(var n in t||(t={}))ST.call(t,n)&&ET(e,n,t[n]);if(xT)for(var n of xT(t))wT.call(t,n)&&ET(e,n,t[n]);return e},RT=(e,t)=>bT(e,yT(t)),AT=["class","method","getter","setter","accessor","field","value","get","set"],DT=e=>void 0!==e&&"function"!=typeof e?CT("Function expected"):e,MT=(e,t,n,r,o)=>({kind:AT[e],name:t,metadata:r,addInitializer:e=>n._?CT("Already initialized"):o.push(DT(e||null))}),kT=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},TT=(e,t,n,r,o,i)=>{for(var a,s,l,c,u,d=7&t,p=e.length+1,f=AT[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,vT({get[n](){return PT(this,i)},set[n](e){return OT(this,i,e)}},n)),b=r.length-1;b>=0;b--)(c=MT(d,n,l={},e[3],m)).static=false,c.private=false,u=c.access={has:e=>n in e},u.get=e=>e[n],u.set=(e,t)=>e[n]=t,s=(0,r[b])({get:g.get,set:g.set},c),l._=1,void 0===s?DT(s)&&(g[f]=s):"object"!=typeof s||null===s?CT("Object expected"):(DT(a=s.get)&&(g.get=a),DT(a=s.set)&&(g.set=a),DT(a=s.init)&&h.unshift(a));return g&&gT(o,n,g),o},qT=(e,t,n)=>t.has(e)||CT("Cannot "+n),PT=(e,t,n)=>(qT(e,t,"read from private field"),t.get(e)),LT=(e,t,n)=>t.has(e)?CT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),OT=(e,t,n,r)=>(qT(e,t,"write to private field"),t.set(e,n),n);function NT(e){return e instanceof vq||e instanceof bq}var jT=class extends $C{constructor(e){super(e);const t=LS(()=>{const{dragOperation:t}=e;if(dA(t.activatorEvent)&&NT(t.source)&&t.status.initialized){const t=e.registry.plugins.get(lM);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!dA(e.nativeEvent))return;if(!NT(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:c}=n,{center:u}=n.shape.current,d=[],p=[];dS(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==c?void 0:c.id)&&NT(e)||!e.element)continue;let n=e.shape;const r=new sA(e.element,{getBoundingClientRect:e=>WI(e,void 0,.2)});r.height&&r.width&&(("down"==s&&u.y+10<r.center.y||"up"==s&&u.y-10>r.center.y||"left"==s&&u.x-10>r.center.x||"right"==s&&u.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,mA);dS(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=n;if(!e||!NT(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,c=g!==a||b!==s,u=c?l:null==t?void 0:t.element;if(!u)return;ZR(u);const d=new sA(u);if(!d)return;const p=eC.delta(d,eC.from(i.current.boundingRectangle),e.alignment);r.move({by:p}),c?r.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{n(),t()}}};var _T=Object.defineProperty,zT=Object.defineProperties,FT=Object.getOwnPropertyDescriptors,$T=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,HT=Object.prototype.propertyIsEnumerable,VT=(e,t,n)=>t in e?_T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,WT=(e,t)=>{for(var n in t||(t={}))BT.call(t,n)&&VT(e,n,t[n]);if($T)for(var n of $T(t))HT.call(t,n)&&VT(e,n,t[n]);return e},UT=(e,t)=>zT(e,FT(t));function GT(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function KT(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function YT(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function XT(e,t){return function(e,t,n){var r,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,i.id)),o=e.findIndex(e=>l(e,a.id));if(-1===r||-1===o){if(YT(i)){const r=i.initialIndex,o=i.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!s&&"index"in i&&"number"==typeof i.index){const t=i.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const c=Object.entries(e);let u,d,p=-1,f=-1;for(const[e,t]of c)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(u=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(-1===p&&YT(i)){const r=null==i.initialGroup?void 0:KT(e,i.initialGroup),o=i.initialIndex,a=null==i.group?void 0:KT(e,i.group),s=i.index;if(null==r||null==a)return"preventDefault"in t&&t.preventDefault(),e;if(r===a&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===a)return UT(WT({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return UT(WT({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[a]:[...e[a].slice(0,s),l,...e[a].slice(s)]})}if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(r=h.shape)?void 0:r.current.center)?o:h.position.current;if(null==d){const t=KT(e,a.id);null!=t&&(d=t,f=a.shape&&m.y>a.shape.center.y?e[t].length:0)}if(null==u||null==d||u===d&&p===f){if(null!=u&&u===d&&p===f&&YT(i)){const t=null==i.group?void 0:KT(e,i.group),r=null!=i.group&&t!==u,o=i.index!==p;if(r||o){const r=null==i.group?u:t;if(null!=r){if(u===r)return UT(WT({},e),{[u]:n(e[u],p,i.index)});const t=e[u][p];return UT(WT({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[r]:[...e[r].slice(0,i.index),t,...e[r].slice(i.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(u===d)return UT(WT({},e),{[u]:n(e[u],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[u][p];return UT(WT({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,GT)}function JT(e){const t=new Map;for(const[,n]of e)for(const e of n)t.set(e.id,e.index);return t}function ZT(e,t,n){var r;for(const[o,i]of t)for(const t of i){const i=e.get(t.id);if(t.index!==i||t.group!==o||!(null==(r=n.get(o))?void 0:r.has(t)))return!0}return!1}var QT="__default__";function eq(e,t,n,r){const o=r<t?"afterend":"beforebegin";n.insertAdjacentElement(o,e)}function tq(e,t){return e.index-t.index}function nq(e,t){return e.initialIndex-t.initialIndex}function rq(e,t=tq){return Array.from(e).sort(t)}var oq=[jT,class extends $C{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof vq){const{sortable:e}=n,{group:r}=e;let o=t.get(r);o||(o=new Set,t.set(r,o)),o.add(e)}return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:o,target:i}=r;if(!NT(o)||!NT(i))return;if(o.sortable===i.sortable)return;const a=t(),s=JT(a),l=o.sortable.group===i.sortable.group,c=a.get(o.sortable.group),u=l?c:a.get(i.sortable.group);c&&u&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,d;const p=t();if(ZT(s,a,p))return;const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!l&&i.id===o.sortable.group)return;const m=rq(c),g=l?m:rq(u),b=null!=(r=o.sortable.group)?r:QT,v=null!=(d=i.sortable.group)?d:QT,y={[b]:m,[v]:g},x=XT(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);n.collisionObserver.disable(),eq(f,S,h,w),dS(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!l)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),n.actions.setDropTarget(o.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:o}=r;NT(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),r=JT(e),i=e.get(o.sortable.initialGroup);i&&n.renderer.rendering.then(()=>{const n=t();if(ZT(r,e,n))return;const a=rq(i),s=rq(i,nq),l=o.sortable.element,c=a[s.indexOf(o.sortable)],u=null==c?void 0:c.element;c&&u&&l&&(eq(l,c.index,u,o.index),dS(()=>{for(const t of e.values()){const e=Array.from(t).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],iq={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1};function aq(e){var t,n;return"boolean"==typeof e?{draggable:e,droppable:e}:{draggable:null!=(t=null==e?void 0:e.draggable)&&t,droppable:null!=(n=null==e?void 0:e.droppable)&&n}}var sq,lq,cq,uq,dq,pq,fq,hq,mq=new class{constructor(){Sw(this,kw,new WeakMap)}get(e,t){var n;return e?null==(n=xw(this,kw).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return xw(this,kw).has(e)||xw(this,kw).set(e,new Map),null==(r=xw(this,kw).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=xw(this,kw).get(e))?void 0:t.clear():void 0}};lq=[Rw],sq=[Rw];var gq=class{constructor(e,t){LT(this,uq,kT(cq,8,this)),kT(cq,11,this),LT(this,dq),LT(this,pq),LT(this,fq,kT(cq,12,this)),kT(cq,15,this),LT(this,hq),this.register=()=>(dS(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{dS(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{dS(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],disabled:o,group:i,index:a,sensors:s,type:l,transition:c=iq,plugins:u}=n,d=((e,t)=>{var n={};for(var r in e)ST.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&xT)for(var r of xT(e))t.indexOf(r)<0&&wT.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","disabled","group","index","sensors","type","transition","plugins"]);const p=RI(u,oq),f=aq(o);this.droppable=new vq(RT(IT({},d),{disabled:f.droppable}),t,this),this.draggable=new bq(RT(IT({},d),{disabled:f.draggable,plugins:p,effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializationPending)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&mq.clear(this.manager),(null==r?void 0:r.dragging)&&mq.set(this.manager,this.id,hS(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=PT(this,pq),o=PT(this,dq);e===r&&t===o||(OT(this,pq,e),OT(this,dq,t),this.animate())},()=>{var e,t;const{target:n}=this,{isDragSource:r}=this.draggable;"move"===(null!=(t=null==(e=this.draggable.pluginConfig(YD))?void 0:e.feedback)?t:"default")&&r&&(this.droppable.disabled=!n)},...r()],type:l,sensors:s}),t,this),OT(this,hq,d.element),this.manager=t,this.index=a,OT(this,pq,a),this.group=i,OT(this,dq,i),this.type=l,this.transition=c}get initialIndex(){var e,t;return null!=(t=null==(e=mq.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=mq.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){hS(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;for(const e of r.getAnimations())!("transitionProperty"in e)||"transform"!==e.transitionProperty&&"translate"!==e.transitionProperty&&"scale"!==e.transitionProperty||e.cancel();const o=this.refreshShape();if(!o)return;const i=n.boundingRectangle.left-o.boundingRectangle.left,a=n.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=_R(r),l=nA(r,s,!1),c=nA(r,s);if(i||a){const n=QI(zI(r))?RT(IT({},t),{duration:0}):t;tA({element:r,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${c.x}px ${c.y}px ${c.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){dS(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){dS(()=>{const t=PT(this,hq),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),OT(this,hq,e)})}get element(){var e,t;const n=PT(this,hq);if(n)return null!=(t=null!=(e=rR.get(n))?e:n)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){const{disabled:e}=this.draggable,{disabled:t}=this.droppable;return e===t?e:{draggable:e,droppable:t}}set plugins(e){this.draggable.plugins=RI(e,oq)}set disabled(e){const t=aq(e);dS(()=>{this.droppable.disabled=t.droppable,this.draggable.disabled=t.draggable})}set data(e){dS(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:hA}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){dS(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};cq=[,,,mT(null)],uq=new WeakMap,dq=new WeakMap,pq=new WeakMap,fq=new WeakMap,hq=new WeakMap,TT(cq,4,"index",lq,gq,uq),TT(cq,4,"group",sq,gq,fq),((e,t)=>{return ET(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(cq,gq);var bq=class extends ek{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},vq=class extends tk{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},yq=Object.defineProperty,xq=Object.defineProperties,Sq=Object.getOwnPropertyDescriptors,wq=Object.getOwnPropertySymbols,Cq=Object.prototype.hasOwnProperty,Eq=Object.prototype.propertyIsEnumerable,Iq=(e,t,n)=>t in e?yq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Rq(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:o,data:i,element:a,handle:s,index:l,group:c,disabled:u,modifiers:d,sensors:p,target:f,type:h,plugins:m}=e,g=function(e){return null===e?null:IT(IT({},iq),e)}(e.transition),b=Ek(t=>new gq(((e,t)=>xq(e,Sq(t)))(((e,t)=>{for(var n in t||(t={}))Cq.call(t,n)&&Iq(e,n,t[n]);if(wq)for(var n of wq(t))Eq.call(t,n)&&Iq(e,n,t[n]);return e})({},e),{transition:g,register:!1,handle:nk(s),element:nk(a),target:nk(f)}),t)),v=sk(b,Aq);return ck(o,()=>b.id=o),rk(()=>{dS(()=>{b.group=c,b.index=l})},[b,c,l]),ck(h,()=>b.type=h),ck(t,()=>b.accept=t,void 0,Iw),ck(i,()=>i&&(b.data=i)),ck(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},lk),uk(s,e=>b.handle=e),uk(a,e=>b.element=e),uk(f,e=>b.target=e),ck(u,()=>b.disabled=null!=u&&u,void 0,Iw),ck(p,()=>b.sensors=p,void 0,Iw),ck(n,()=>b.collisionDetector=n),ck(r,()=>b.collisionPriority=r),ck(m,()=>b.plugins=m,void 0,Iw),ck(g,()=>b.transition=g,void 0,Iw),ck(d,()=>b.modifiers=d,void 0,Iw),ck(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:O(e=>{b.handle=null!=e?e:void 0},[b]),ref:O(e=>{var t,n;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:O(e=>{var t,n;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:O(e=>{var t,n;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function Aq(e,t,n){return!("isDragSource"!==e||n||!t)}const Dq=({id:e,itemIndex:t,sectionIndex:n})=>Yt.jsx("div",{children:`${n}:${t} - ${e}`}),Mq=z(({id:e,itemIndex:t,sectionIndex:n})=>{const r=Gg(tS),o=Gg(Zx),i=Gg(Gx).at(n)??0,a=Gg(Kx)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:c}=Rq({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[fT],plugins:[jT],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),u=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=o??Dq;return Yt.jsx(Zp,{className:"section-item-container","data-testid":"section-item",onClick:u,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:Yt.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[Yt.jsx(Zk,{isDragging:l,itemIndex:t,sectionIndex:n}),Yt.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:c}),t===i-1&&Yt.jsx(Zk,{isDragging:!1,itemIndex:t+1,sectionIndex:n})]})})}),kq=z(({sectionIndex:e})=>{const t=Gg(Kx),n=Gg(Gx).at(e)??0,r=t({sectionIndex:e});return Yt.jsxs(md,{className:"exploration-list",style:{overflow:"auto"},children:[Yt.jsx(cp,{}),Yt.jsx(tT,{id:r,sectionIndex:e}),Yt.jsx(cp,{}),Yt.jsx(eT,{sectionIndex:e}),Yt.jsx(Fp,{sx:{padding:"2px 8px"},children:Yk(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return Yt.jsx(Mq,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),Tq=[TM.configure({activationConstraints:[new AM.Distance({value:5})]}),RM],qq=z(()=>{const e=Gg(Ux),t=Gg(Kx),n=Kg(iS("start")),r=Kg(iS("over")),o=Kg(iS("end"));return Yt.jsxs(wk,{sensors:Tq,onDragEnd:e=>{o(e)},onDragOver:e=>{r(e)},onDragStart:e=>{n(e)},children:[Yt.jsx(md,{style:{display:"flex",flexDirection:"column"},children:Yk(e).map(e=>Yt.jsx(kq,{sectionIndex:e},t({sectionIndex:e})))}),Yt.jsx(Jk,{})]})}),Pq=z(e=>Yt.jsx(Mx,{atoms:aS,atomFamilies:sS,children:Yt.jsx(lS,{props:e,children:Yt.jsx(qq,{})})})),Lq=(e,t)=>{if(!e)return;const n=e.qHyperCube.qDimensionInfo.filter(e=>void 0!==e.cId).filter(dy).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"dimension"})),r=e.qHyperCube.qMeasureInfo.filter(e=>void 0!==e.cId).filter(dy).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"measure"}));return[...n,...r]},Oq=(e,t)=>{const n=[],r={};return e.forEach(e=>{r[e.id]=e}),Object.keys(t).forEach(e=>{const o=t[e],i=r[e];i&&(n[o]=i)}),n},Nq=(e,t,n)=>{if(!n||((e,t)=>{const n=e.map(e=>e.id).sort(),r=Object.keys(t).sort();return n.join(",")!==r.join(",")})(e,n)){const t=(e=>{const t={};return e.forEach((e,n)=>{t[e.id]=n}),t})(e);return Oq(e,t)}const r=t.map(e=>e.id),o=Object.keys(n).sort((e,t)=>n[e]-n[t]).filter(e=>r.includes(e)),i={...n};for(let e=0;e<r.length;e++){const t=o[e],a=r[e];t!==a&&(i[a]=n[t])}let a=0;const s=Object.entries(i).sort((e,t)=>e[1]-t[1]).map(([e])=>[e,a++]);return s.forEach(([e,t])=>{i[e]=t}),Oq(e,i)},jq=Og(e=>{const t=e(yy);return Lq(t,!0)}),_q=Og(e=>{const t=e(vy);return Lq(t,!1)}),zq=Og(e=>{const t=e(xy),n=e(vy);if(!t||!n)return[];const r=e(_q),o=e(jq),i=n.qHyperCube.qColumnOrder??[],a=e(my);if(void 0===o||void 0===r)return[];if(a){return[...[...r,...o]].sort((e,t)=>(a[e.id]??1/0)-(a[t.id]??1/0))}const s=t.qHyperCubeDef.qLayoutExclude?.allColumnOrder??{},l=((e,t)=>e.length===t?e:Array.from(Array(t).keys()))(i,r.length),c=((e,t)=>e.length>0?e.map(e=>t[e]):t)(l,r),u=[...c,...o];return Nq(u,c,s)}),Fq=Og(e=>{const t=e(zq),n=e(ry);return t.filter(n)}),$q=Og(e=>e(Fq).length),Bq=Og(e=>({sectionIndex:t,itemIndex:n})=>{const r=e(Fq);if(void 0===n)return`columns-section-${t}`;const o=r?.[n];return o?.id??`missing-item-${t}-${n}`}),Hq=Hx(e=>Og(t=>t(Fq)[e]),(e,t)=>e===t),Vq=Og(e=>e(zq).map(e=>e.id)),Wq=Og(e=>e(Fq).map(e=>e.id)),Uq=Og(e=>{const t=e(zq),n={};return t.forEach(e=>{n[e.id]=e.type}),n}),Gq=Og(null,(e,t,{event:n,id:r,toIndex:o})=>{const i=e(Zv),a=e(iy),s=e(Vq),l=e(Wq);if(void 0===i||null===a||void 0===s||void 0===l)return;if(n.operation.canceled)return;const c=l[o];if(!c)return;const u=((e,t,n)=>{const r=n.findIndex(t=>t===e),o=n.findIndex(e=>e===t);if(-1===r||-1===o||r===o)return n;const i=[...n],[a]=i.splice(r,1);return i.splice(o,0,a),i})(r,c,s);t(my,Object.fromEntries(u.map((e,t)=>[e,t]))),a.add(async()=>{i.updateColumnOrders(u)})}),Kq="ChartExploration.Table.ColumnSectionEmpty.Title",Yq="ChartExploration.Table.NoColumnsFound.Title",Xq="#177fe6",Jq=Og(e=>{const t=e(ey),n=e(ny).length>0,r=(e=>e?Yq:Kq)(n),o=(e=>e?"":"ChartExploration.Table.ColumnSectionEmpty.Message")(n);return()=>({title:t(r),message:""===o?"":t(o)})}),Zq=({itemIndex:e})=>{const t=Gg(Hq(e));if(!t)return null;const n=t.title;return Yt.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})},Qq=Og(e=>{const t=e(Wq),n=e(My),r=t.filter(e=>n.has(e)).length;return 0===t.length?"disabled":0===r?"none":r===t.length?"all":"some"}),eP=Og(null,(e,t)=>{const n=e(Wq),r=e(My),o="all"!==e(Qq)&&"disabled"!==e(Qq),i=[],a=new Set(e(Iy)),s=new Set(e(Ry));if(o){const t=new Set(n.filter(e=>!r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!0,type:e(Uq)[t]}))),i.forEach(e=>a.add(e.id)),i.forEach(e=>s.delete(e.id))}else{const t=new Set(n.filter(e=>r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!1,type:e(Uq)[t]}))),i.forEach(e=>a.delete(e.id)),i.forEach(e=>s.add(e.id))}t(Iy,a),t(Ry,s),Xv({items:i,handler:e(Zv),model:e(Jv),handlerQueue:e(iy),logToSentry:e(db)})}),tP=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},nP=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,rP=e=>{const{currentTarget:t}=e,n=nP(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),o=e?.querySelector(".exploration-section-header");if(o)return o;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const o=r.getElementsByClassName(t);return o.length>0?o[o.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},oP=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===Vm.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},iP=(e,t)=>{const{key:n}=e;switch(n){case Vm.Tab:e.shiftKey||(vm(e),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),o=r?.getElementsByClassName("exploration-item-focus")[0];o&&tP(o)})(e,t));break;case Vm.Down:(e=>{e.preventDefault();const t=e.currentTarget.closest(".exploration-list"),n=t?.getElementsByClassName("exploration-item-focus")[0];n&&tP(n)})(e);break;case Vm.Enter:case Vm.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},aP=({children:e})=>Yt.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),sP=({children:e})=>{const t=k(null),n=Gg(Qq),[,r]=Yg(eP),o=Gg(ey),i={ref:t,toggleAllCheckboxes:r,checkState:n};return Yt.jsxs(md,{ref:t,"aria-label":o("Common.Columns"),className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{iP(e,i)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${Xq} inset`}},children:[Yt.jsx($d,{inputProps:{"aria-label":o("ChartExploration.Header.ToggleAll"),..."some"===n&&{"aria-checked":"mixed"}},disabled:"disabled"===n,checked:"all"===n,indeterminate:"some"===n,onChange:r,size:"small",style:{flexShrink:0,padding:9}}),Yt.jsx(aP,{children:e})]})},lP=()=>{const e=Gg(ey);return Yt.jsx(sP,{children:e("Common.Columns")})},cP=F((e,t)=>Yt.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:Yt.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),uP=F((e,t)=>Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[Yt.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),Yt.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]})),dP=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),pP=Ec("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),fP=Ec(dP)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${Xq} inset`}})),hP=e=>{const t=e.key===Vm.Down?(e=>{const{currentTarget:t,key:n}=e,r=nP(t),o=t.closest("li");let i=o?.nextElementSibling?.getElementsByClassName(r)[0];return i||(i=oP(t,n),i)?i:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):rP(e);t&&tP(t)},mP=(e,t)=>{const{key:n}=e;switch(n){case Vm.Tab:if(e.shiftKey)vm(e),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&tP(e))}const n=rP(e);n&&tP(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void tP(t);const r=rP(e);r&&tP(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return tP(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&tP(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&tP(n),!0}const o=oP(n,r);if(!o)return!1;tP(o)}return!0})(e,t);n?vm(e):e.stopPropagation()}break;case Vm.Enter:case Vm.Space:vm(e),((e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&tP(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void tP(e)}n===t.items.explorationItemFocusRef.current&&t.toggleItem()})(e,t);break;case Vm.Down:case Vm.Up:vm(e),hP(e)}},gP=({children:e})=>Yt.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),bP={dimension:cP,measure:uP},vP=({id:e,dragHandleRef:t,title:n,type:r,itemIndex:o})=>{const[i,a]=Yg(My),s=Gg(ey),l=k(null),c=k(null),u=k(null);P(()=>{t&&l.current&&t(l.current)},[t]);const d=bP[r],p=!i.has(e),f={id:e,itemIndex:o,toggleItem:()=>{a({id:e,isAlternative:p,type:r})},items:{explorationItemRef:l,explorationItemFocusRef:c,draggableIconRef:u}};return Yt.jsxs(md,{ref:l,className:"exploration-item",onClick:t=>{t.stopPropagation(),-1!==e&&a({id:e,isAlternative:p,type:r})},onKeyDown:e=>{mP(e,f)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:n,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${Xq} inset`}},children:[Yt.jsxs(md,{ref:c,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{mP(e,f)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${Xq} inset`}},children:[Yt.jsx($d,{checked:i.has(e),"aria-label":s("ChartExploration.ListItem.Label",n),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0}}),Yt.jsx(md,{children:Yt.jsx(d,{height:12,style:{opacity:1,marginRight:"8px"}})}),Yt.jsx(gP,{children:n})]}),Yt.jsx(fP,{ref:u,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{mP(e,f)}})]})},yP=({id:e,itemIndex:t,dragHandleRef:n})=>{const r=Gg(Hq(t));return r?Yt.jsx(vP,{id:e,dragHandleRef:n,title:r.title,type:r.type,itemIndex:t}):null},xP=()=>{const e=Gg($q),t=Gg(Jq),n=Gg(Sy),r=Gg(Bq),o=Kg(Gq);return!n&&Yt.jsx(Pq,{numberOfSections:1,numberOfItemsInSection:[e],keyExtractor:r,emptyTexts:t,onDragEnd:o,dragOverlayRenderer:Zq,headerRenderer:lP,itemRenderer:yP})},SP=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})})),wP=()=>{const[e,t]=Yg(ny),n=Gg(ey),r=w.useRef(null),o=Gg($q),i=O(e=>{t(e.target.value)},[t]),a=0===e.length||0===o?n("Common.Search.NoResultsAvailable"):n("ChartExploration.Table.Search.ResultsFound",o.toString());return Yt.jsxs(md,{ref:r,style:{position:"sticky",top:0,zIndex:1,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:2,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[Yt.jsx(pP,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:a}),Yt.jsx(Qf,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":n("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:n("Common.Search"),onChange:i,startAdornment:Yt.jsx(Dp,{position:"start",children:Yt.jsx(SP,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},CP=e=>{const t=lm();return Yt.jsx(Rc,{theme:t,children:Yt.jsx($g,{children:Yt.jsx(ky,{props:e,children:Yt.jsxs(md,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[Yt.jsx(wP,{}),Yt.jsx(xP,{})]})})})})},EP=e=>e.flags.isEnabled("VNA-655-STRAIGHT_TABLE_NEW_EXPLORATION")?{component:CP,classification:{tags:["exploration"],exclusive:!0}}:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};var IP=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(IP||{}),RP=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(RP||{}),AP=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(AP||{}),DP=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(DP||{});const MP=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,kP=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t,r=`[${e.field}]${e.exclude?"-":""}={`,o="}";switch(e.type){case AP.SEARCH:t=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case IP.BEGINNING_OF_WORD:t="*^",n="*";break;case IP.ENDS_WITH:t="*";break;case IP.STARTS_WITH:n="*";break;case IP.MATCHES_EXACTLY:break;case IP.CONTAINS:default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case AP.CONDITION:t=(e=>{const{options:t}=e,n=t?.mode===RP.GENERAL,r=t?.modifier?.type===DP.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";n&&r?(i=`${t.conditionField?.aggregator}(${MP(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(i="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(i=`${t.conditionField?.aggregator}(${MP(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${MP(t.firstValue?.field)})`):(i=`${MP(e.field)}`,a=`${t.firstValue?.aggregator}(total ${MP(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let c="";if(o.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${MP(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${MP(t.secondValue?.field)})`,a=` and ${i}`),c=`${a}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case AP.CLEAR_SELECTION:t=`[${e.field}]=`,r="",o="";break;case AP.VALUES:default:t=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==t&&n.push(`${r}${t}${o}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},TP=[];for(let e=0;e<256;++e)TP.push((e+256).toString(16).slice(1));const qP=new Uint8Array(16);function PP(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const t=e.random??e.rng?.()??crypto.getRandomValues(qP);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(TP[e[t+0]]+TP[e[t+1]]+TP[e[t+2]]+TP[e[t+3]]+"-"+TP[e[t+4]]+TP[e[t+5]]+"-"+TP[e[t+6]]+TP[e[t+7]]+"-"+TP[e[t+8]]+TP[e[t+9]]+"-"+TP[e[t+10]]+TP[e[t+11]]+TP[e[t+12]]+TP[e[t+13]]+TP[e[t+14]]+TP[e[t+15]]).toLowerCase()}(t)}(e)}const LP=()=>crypto?.randomUUID?.()??PP(),OP=({qDimensions:e,qMeasures:t})=>[...e.map(e=>({id:e.qDef.cId,isDimension:!0,def:e})),...t.map(e=>({id:e.qDef.cId,isDimension:!1,def:e}))],NP=({previousColumns:e,nextColumns:t,qInterColumnSortOrder:n})=>{const r=new Map(e.map((e,t)=>[t,e.qDef.cId])),o=new Map(t.map((e,t)=>[e.qDef.cId,t]));return n.map(e=>{const t=r.get(e);return(void 0===t?void 0:o.get(t))??e})};class jP extends c{#c;constructor(e,t){super(e),this.#c=t}#u(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.keys(t).length;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:{...t,...Object.fromEntries(e.map((e,t)=>[e,n+t]))}}}#d(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:Object.fromEntries(n.map(([e],t)=>[e,t]))}}#p(e,t){const n=this.hcProperties.qLayoutExclude?.allColumnOrder??{},r={};for(const[o,i]of Object.entries(n))r[o===e?t:o]=i;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:r}}async addDimension(e,t=!1){const n=await this.addDimensions([e],t);return 0===n.length?void 0:n[0]}async addDimensions(e,t=!1){const n=await super.addDimensions(e,t);return this.#u(n.map(e=>e.qDef.cId)),n}async removeDimension(e,t=!1){const n=await this.removeDimensions([e],t);return 0===n.length?void 0:n[0]}async removeDimensions(e,t=!1){const n=await super.removeDimensions(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceDimension(e,t){const n=this.getDimensions()[e].qDef.cId,r=await super.replaceDimension(e,t),o=r.qDef.cId;return this.#p(n,o),r}async addMeasure(e,t=!1){const n=await this.addMeasures([e],t);return 0===n.length?void 0:n[0]}async addMeasures(e,t=!1){const n=await super.addMeasures(e,t);return this.#u(n.map(e=>e.qDef.cId)),n}async removeMeasure(e,t=!1){const n=await this.removeMeasures([e],t);return 0===n.length?void 0:n[0]}async removeMeasures(e,t=!1){const n=await super.removeMeasures(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceMeasure(e,t){const n=this.getMeasures()[e].qDef.cId,r=await super.replaceMeasure(e,t),o=r.qDef.cId;return this.#p(n,o),r}async#f(e){const t=this.getMeasure(e);if(t){const n=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#h(e){const t=this.getMeasure(e);if(t){const n=this.getMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#m(e){const t=this.getDimension(e);if(t){const n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#g(e){const t=this.getDimension(e);if(t){const n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!1),await super.addDimension(t,!0,this.getAlternativeDimensions().length)}}#b(){const e=this.hcProperties.qLayoutExclude?.allColumnOrder??{};return Object.entries(e).sort((e,t)=>e[1]-t[1]).map(([e])=>e)}async moveDimensionFromAlternative(e){await this.#m(e);const t=this.#b();this.updateColumnOrders(t)}async moveDimensionToAlternative(e){await this.#g(e);const t=this.#b();this.updateColumnOrders(t)}async moveMeasureFromAlternative(e){await this.#f(e);const t=this.#b();this.updateColumnOrders(t)}async moveMeasureToAlternative(e){await this.#h(e);const t=this.#b();this.updateColumnOrders(t)}async toggleAlternatives(e,t){for(const t of e)"dimension"===t.type?await(t.isAlternative?this.#m(t.id):this.#g(t.id)):await(t.isAlternative?this.#f(t.id):this.#h(t.id));this.updateColumnOrders(t)}updateColumnOrders(e){const t=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,nextAllColumnOrderById:r})=>{const o=OP({qDimensions:e,qMeasures:t}),i=[...e,...t],a=new Map(r.map((e,t)=>[e,t])),s=o.toSorted((e,t)=>{const n=a.get(e.id),r=a.get(t.id);return void 0===n||void 0===r?0:n-r}),l=s.filter(e=>e.isDimension).map(e=>e.def),c=s.filter(e=>!e.isDimension).map(e=>e.def),u=[...l,...c],d=new Map(u.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:l,qMeasures:c,qInterColumnSortOrder:NP({previousColumns:i,nextColumns:u,qInterColumnSortOrder:n}),qColumnOrder:s.map(e=>d.get(e.id)).filter(e=>void 0!==e)}})({qDimensions:this.hcProperties.qDimensions,qMeasures:this.hcProperties.qMeasures,qInterColumnSortOrder:this.hcProperties.qInterColumnSortOrder,nextAllColumnOrderById:e});this.hcProperties.qDimensions=t.qDimensions,this.hcProperties.qMeasures=t.qMeasures,this.hcProperties.qColumnOrder=t.qColumnOrder,this.hcProperties.qInterColumnSortOrder=t.qInterColumnSortOrder,this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:e.reduce((e,t,n)=>(e[t]=n,e),{})}}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:LP(),qTags:Array.isArray(t)?t:[],isNumeric:n};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=kP(o),i}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#v(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=kP(t),t}removeFilters(e){if(0===e.length)return[];const t=[...e].sort((e,t)=>t-e),n=this.getFilters().filter((t,n)=>e.includes(n));for(const e of t)this.#v(e);return n}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#c.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const _P=(e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;return e.splice(n,1),n};function zP(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function FP(e){return e>0?0:1}function $P(e){return e.translator.get("Visualizations.Descriptions.Column")}function BP(e){return{measures:{min:FP,max:1e3,description:()=>$P(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;zP(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties,i=(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r;_P(o,i)}},dimensions:{min:FP,max:1e3,description:()=>$P(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return zP(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(e?.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;_P(o,r)}}}}const HP=e=>{const t=new jP({},e.translator),n=lb(e);return{properties(r){if(!(e=>"qHyperCubeDef"in e&&"sn-table"===(({visualization:e,qInfo:t})=>e??t?.qType)(e))(r))return r;const{qHyperCubeDef:o}=r,i=o.qLayoutExclude?.qHyperCubeDef,a=e.flags.isEnabled("qcb-35151-fix-duplicate-columns"),s=new Set,l=[];let c=0,u=0,d=0;[...o.qDimensions,...o.qMeasures,...i?.qDimensions??[],...i?.qMeasures??[]].forEach(e=>{c++;const t=e.qDef?.cId;if((e=>"string"==typeof e&&e.length>0)(t))if(s.has(t)){if(u++,a){const t=LP();e.qDef={...e.qDef,cId:t},l.push(t)}}else s.add(t),l.push(t);else if(d++,a){const t=LP();e.qDef={...e.qDef,cId:t},l.push(t)}});const p=r.components?.find(e=>"theme"===e.key);p?.nullValues&&!p.dimensionNullValues&&(p.dimensionNullValues={...p.nullValues});const f=u+d;return 0===f?r:(n.warn({msg:"migrate: column cId issues detected",payload:{issueCount:f,totalColumnCount:c,duplicateCount:u,missingCount:d}}),a?(t.setProperties(r),t.updateColumnOrders(l),n.warn({msg:"migrate: column cId cleanup completed",payload:{replacementCount:f}}),r):r)}}};let VP=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.Bar="bar",e.EditableText="editableText",e.EditableSelector="editableSelector",e.EditableDate="editableDate",e}({}),WP=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const UP=e=>{switch(e?.type){case"url":return VP.Link;case"image":return VP.Image;case"indicator":return VP.Indicator;case"miniChart":return VP.MiniChart;case"bar":return VP.Bar;default:return VP.Text}},GP=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:o}=r.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),KP=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>UP(e.qDef.representation)===VP.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;const l=i?.indexOf(e)??1/0;return(r?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},YP=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:GP({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>UP(e.qDef.representation)===VP.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>UP(e.qDef.representation)===VP.Link&&e.qDef.representation?.urlPosition===WP.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>UP(e.qDef.representation)===VP.Link&&e.qDef.representation?.urlPosition===WP.Attribute},...KP(n)}},XP=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,o=!r?.("tableImages")&&t[VP.Image],i=!r?.("qMiniChartDef")&&t[VP.MiniChart],a=!r?.("tableIndicators")&&t[VP.Indicator],s=!!t[VP.Bar],l=o&&t[VP.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&l)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&n.push({value:"miniChart",translation:"Common.MiniChart"}),s&&n.push({value:"bar",translation:"SNTable.Bar.Representation"}),n})(n)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>UP(e.qDef.representation)===VP.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}},JP=(e,t,n)=>({type:"string",component:"expression",expressionType:"measure",ref:"qAttributeExpressions",schemaIgnore:!0,translation:t,defaultValue:"",tid:`${e}ByExpression`,show:n,convertFunctions:{get:(t,n,r,o)=>o.qAttributeExpressions?.find(t=>t.id===e)?.qExpression??"",set:(t,n,r,o,i)=>{const a=i.qAttributeExpressions??[],s=a.findIndex(t=>t.id===e);s>=0?t?a[s].qExpression=t:a.splice(s,1):t&&a.push({id:e,qExpression:t,qAttribute:!0}),i.qAttributeExpressions=a}}}),ZP=(e,t)=>e?.qDef?.representation?.[t],QP=e=>UP(e?.qDef?.representation)===VP.Bar,eL=[{value:"solid",translation:"SNTable.Bar.SingleColor"},{value:"expression",translation:"SNTable.Bar.ByExpression"}],tL=(e,t,n)=>({component:"expression",ref:"qExpression",expressionType:"measure",translation:t,defaultValue:"",id:e,tid:n,show:!1}),nL=e=>{if(!e[VP.Bar])return{};const t=e=>QP(e)&&"manual"===ZP(e,"barRangeMode");return{barColorMode:{type:"string",component:"dropdown",ref:"qDef.representation.barColorMode",translation:"SNTable.Bar.BarColor",defaultValue:"solid",show:QP,tid:"barColorMode",options:eL},barColor:{ref:"qDef.representation.barColor",type:"object",component:"color-picker",translation:"SNTable.Bar.BarColor",defaultValue:{index:6,color:null},show:e=>QP(e)&&"expression"!==ZP(e,"barColorMode"),tid:"barColor",dualOutput:!0},barColorExpression:JP("barColor","SNTable.Bar.ColorExpression",e=>QP(e)&&"expression"===ZP(e,"barColorMode")),barLabelColorMode:{type:"string",component:"dropdown",ref:"qDef.representation.barLabelColorMode",translation:"SNTable.Bar.LabelColor",defaultValue:"solid",show:QP,tid:"barLabelColorMode",options:eL},barLabelColor:{ref:"qDef.representation.barLabelColor",type:"object",component:"color-picker",translation:"SNTable.Bar.LabelColor",show:e=>QP(e)&&"expression"!==ZP(e,"barLabelColorMode"),tid:"barLabelColor",dualOutput:!0},barLabelColorExpression:JP("barLabelColor","SNTable.Bar.LabelColorExpression",e=>QP(e)&&"expression"===ZP(e,"barLabelColorMode")),barWidthExpression:JP("barWidth","SNTable.Bar.WidthExpression",QP),barOffsetExpression:JP("barOffset","SNTable.Bar.OffsetExpression",QP),barLabelExpression:JP("barLabel","SNTable.Bar.LabelExpression",QP),barRangeMode:{type:"string",component:"dropdown",ref:"qDef.representation.barRangeMode",translation:"SNTable.Bar.Range",defaultValue:"auto",show:QP,tid:"barRangeMode",options:[{value:"auto",translation:"Common.Auto"},{value:"manual",translation:"Common.Custom"}]},barRangeMin:{type:"number",ref:"qDef.representation.barRangeMin",translation:"SNTable.Bar.RangeMin",expressionType:"ValueExpression",expression:"optional",defaultValue:0,show:t,tid:"barRangeMin"},barRangeMax:{type:"number",ref:"qDef.representation.barRangeMax",translation:"SNTable.Bar.RangeMax",expressionType:"ValueExpression",expression:"optional",defaultValue:100,show:t,tid:"barRangeMax"},barEnd:{type:"string",component:"dropdown",ref:"qDef.representation.barEnd",translation:"SNTable.Bar.End",defaultValue:"none",show:QP,tid:"barEnd",options:[{value:"none",translation:"SNTable.Bar.End.None"},{value:"circle",translation:"SNTable.Bar.End.Circle"},{value:"box",translation:"SNTable.Bar.End.Square"}]}}};var rL,oL={};var iL=(rL||(rL=1,function(e){(()=>{var t={828(e,t,n){n.r(t),n.d(t,{default:()=>Ie});var r=n.cjs(function(e,t){var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,o=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},l=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,r,o,i,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(n in t)r=c(d,n),d!==(o=c(t,n))&&(h&&o&&(s(o)||(i=a(o)))?(i?(i=!1,u=r&&a(r)?r:[]):u=r&&s(r)?r:{},l(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}),o=n.n(r);const i=(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},a=(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i},s={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]},l=" ( ",c=" ) ";function u(e){return l+e+c}function d(e,t={}){if(e.qLibraryId){const n=function(e,t){if(!t)return null;let n,r;for(n=0;n<t.length;n++)if(r=t[n],r.qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}const n=function(e,t){if(!t)return null;let n,r;const o=function(e){let t=e.trim();"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t}(e);for(n=0;n<t.length;n++){if(r=t[n],r.qName===o)return r;if(r.qDerivedFieldData)for(let e=0;e<r.qDerivedFieldData.qDerivedFieldLists.length;++e){const t=r.qDerivedFieldData.qDerivedFieldLists[e];for(let e=0;e<t.qFieldDefs.length;++e){const n=t.qFieldDefs[e];if(n.qName===o)return n}}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function p(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){const{crossAllDimensions:n}=e;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){const t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(e=0){return`[$(=Replace(GetObjectField(${e}),']',']]'))]`}function g(e,t){const{crossAllDimensions:n}=e;return 2===t&&n?"Above(Total ":"Above("}function b(e){return void 0===e?")":`, 0, ${e})`}function v(e){return`Replace(Replace(${e},'''',''''''),'$','$''&''')`}function y(e,t){return e?`${t}={">=$(=Min(${t}))<=$(=Max(${t}))"}`:`${t}={"=Only({1}${t})>='$(=${v(`MinString(${t})`)})' and Only({1}${t})<='$(=${v(`MaxString(${t})`)})'"}`}function x({modifier:e={},dimensions:t,dimensionAndFieldList:n,funcComp:r="Sum",valueComp:o="0"}){const{showExcludedValues:i}=e;if(!i)return"";if(t&&1===t.length)return`${r}({1<${y(d(t[0],n),m(0))}>}${o})`;if(t&&2===t.length){const e=d(t[0],n),i=d(t[1],n),a=m(0),s=m(1);return`${r}({1<${y(e,a)},${y(i,s)}>}${o})`}return`${r}({1}${o})`}function S(e){return`${e}(`}function w({properties:e,layout:t}){return a(e,"qHyperCubeDef.qDimensions",a(t,"qHyperCube.qDimensionInfo",[])).length}const C={isFullRange:p,getNumDimensions:w,getExpressionWithExcludedComp:function({expression:e,modifier:t,dimensions:n,dimensionAndFieldList:r,treatMissingAsNull:o}){const i=u(h(e)),{showExcludedValues:a}=t;if(!a)return i;const s=x({modifier:t,dimensions:n,dimensionAndFieldList:r}),l=o?"":", 0";return n&&1===n.length?`If(Count(${m(0)}) > 0, ${i} + ${s}${l})`:n&&2===n.length?`If(Count(${m(0)}) * Count(${m(1)}) > 0, ${i} + ${s}${l})`:i},getRowNoComp:f,getNumStepComp:function(e,t){if(!p(e)){const{steps:t}=e;return"number"!=typeof t||Number.isNaN(t)?6:t}return f(e,t)},getAboveCompPrefix:g,getAboveCompSuffix:b,getAboveComp:function(e,t,n,r){return g(e,t)+n+b(r)},getFunctionPrefix:S,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return S(e)+t+")"},getAggrComp:function(e,t,n){return`Aggr(${e}, ${t}, ${n})`},getExcludedComp:x,needDimension:function({modifier:e,properties:t,layout:n}){return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(e)&&2===w({properties:t,layout:n})},getDimComp:function(e,t){const n=function(e,t=0){return e[t].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;const o=["Descending","Ascending"],i=n.qSortByNumeric?`(Numeric, ${o[(n.qSortByNumeric+1)/2]})`:"",a=n.qSortByAscii?`(Text, ${o[(n.qSortByAscii+1)/2]})`:"";return n.qSortByNumeric&&n.qSortByAscii?`(${r}, ${i}, ${a})`:n.qSortByNumeric?`(${r}, ${i})`:n.qSortByAscii?`(${r}, ${a})`:r},simplifyExpression:h,extractInputExpression:function({outputExpression:e,modifier:t}){if(!t)return;const n=e.indexOf(l);if(-1===n)return;const r=e.indexOf(c);return-1!==r?e.substring(n+3,r):void 0},initModifier:function(e,t){Object.keys(t).forEach(n=>{void 0===e[n]&&(e[n]=t[n])})},isNumeric:d,isApplicable:function({properties:e,layout:t,minDimensions:n=1,maxDimensions:r=2}){if(!e&&!t)return!0;const o=w({properties:e,layout:t});return o>=n&&o<=r},getExpressionWithMarkers:u,canExtract:function(e){const t=e.indexOf(l),n=e.indexOf(c);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){return`[${e?e.replace(/]/g,"]]"):e}]`},generateTSDExpression:function(e,t,n){let r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){const o=n.qHyperCubeDef.qMeasures.find(t=>t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null);o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?`[${o.qDef.qLabel}]`:o.qDef.base.qDef);const i=function(e){const t=s.OPTIONS.find(t=>t.value===e.decomposition);return t?s.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r=`${i}(${r}, ${e.steps})`}return r},getDecomposition:function(e){let t="observed";return Object.values(s.EXPRESSIONS).find(n=>{const r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return s.EXPRESSIONS[n]&&r.includes(s.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}},E=o().bind(null,!0),I={},{isArray:R}=Array;function A(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function D(e){return void 0===e}function M(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function k(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach((t,o)=>{if(o===n.length)return;r=+t;const i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}),e}function T(e,t){let n=!0;if(A(e)&&A(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(r=>{T(e[r],t[r])||(n=!1)}),n);if(R(e)&&R(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}I.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach(o=>{const i=function(e){return e?E({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;T(i,a)||M(t,o)||(D(a)?r.push({op:"add",path:s,value:i}):A(i)&&A(a)?r=r.concat(I.generate(a,i,s)):R(i)&&R(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&D(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return r;if(!D(t[0])&&D(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(I.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))}),Object.keys(e).forEach(o=>{D(t[o])&&!M(e,o)&&r.push({op:"remove",path:`${n}/${o}`})}),r},I.apply=function(e,t){t.forEach(t=>{let n=k(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&Number.isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(R(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(R(o)&&R(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(A(o)&&A(t.value))a=o,Object.keys(a).forEach(e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!M(a,e)&&delete a[e]}),E(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=k(e,t.from);R(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(R(n)?n.splice(+r,1):delete n[r]);var a})},I.clone=function(e){return E({},e)},I.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):E(e,t)};const q=I,P={saveSoftProperties(e,t,n){if(!e)return Promise.resolve();let r=q.generate(t,n);return o()(!0,t,n),r&&r.length?(r=r.map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})),e.applyPatches(r,!0)):Promise.resolve()}},L="accumulation";function O(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===L)return n[e]}function N(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===L)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}const j={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""},_={translationKey:"properties.modifier.accumulation",needDimension:C.needDimension,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),generateExpression({expression:e,modifier:t,properties:n,layout:r,numDimensions:o,dimensionAndFieldList:i}){if(!t)return e;let s=o;void 0===s&&(s=C.getNumDimensions({properties:n,layout:r}));const l=a(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:e,modifier:t,dimensions:l,dimensionAndFieldList:i}),u=C.getNumStepComp(t,s),d=C.getAboveComp(t,s,c,u);let p=C.getRangeComp("RangeSum",d);if(C.needDimension({modifier:t,properties:n,layout:r})){const e=C.getDimComp(l,1),n=C.getDimComp(l,0),r=C.getAggrComp(p,e,n);p=t.showExcludedValues?C.getExcludedComp({modifier:t,dimensions:l,dimensionAndFieldList:i,valueComp:r}):r}return p},extractInputExpression:C.extractInputExpression,initModifier(e){C.initModifier(e,j)},enableTotalsFunction:()=>!1,propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{primaryDimension:{refFn:t=>`${N(t,e)}.accumulationDimension`,type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options(e,t){const{qDimensionInfo:n}=t.layout.qHyperCube;return n.map((e,t)=>({value:t,label:e.qGroupFallbackTitles[0]}))},show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},crossAllDimensions:{refFn:t=>`${N(t,e)}.crossAllDimensions`,type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},fullRange:{refFn:t=>`${N(t,e)}.fullAccumulation`,type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:t=>`${N(t,e)}.steps`,type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change(t){const n=O(t,e);if(n){const{steps:e}=n;n.steps="number"!=typeof e||Number.isNaN(e)?6:Math.abs(e)}},show(t){const n=O(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:t=>`${N(t,e)}.showExcludedValues`,type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(L))return!1;const i=O(t,e);return i&&!i.disabled}}}},z="movingAverage";function F(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===z)return n[e]}function $(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===z)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}const B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1},H={translationKey:"properties.modifier.movingAverage",needDimension:C.needDimension,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),generateExpression({expression:e,modifier:t,properties:n,layout:r,numDimensions:o,dimensionAndFieldList:i}){if(!t)return e;let s,l=o;void 0===l&&(l=C.getNumDimensions({properties:n,layout:r}));const c=a(n,"qHyperCubeDef.qDimensions",[]),u=t.showExcludedValues&&t.nullSuppression,d=C.getExpressionWithExcludedComp({expression:e,modifier:t,dimensions:c,dimensionAndFieldList:i,treatMissingAsNull:u}),p=C.getNumStepComp(t,l),f=C.getAboveComp(t,l,d,p);if(t.nullSuppression)s=C.getRangeComp("RangeAvg",f);else{const e=C.getRangeComp("RangeSum",f),n=function(e,t){const n=C.getRowNoComp(e,t);if(!C.isFullRange(e)){const{steps:t}=e;return`RangeMin(${"number"!=typeof t||Number.isNaN(t)?6:t}, ${n})`}return n}(t,l);s=`${e} / ${n}`}let h=s;if(C.needDimension({modifier:t,properties:n,layout:r})){const e=C.getDimComp(c,1),n=C.getDimComp(c,0),r=C.getAggrComp(h,e,n);h=t.showExcludedValues?C.getExcludedComp({modifier:t,dimensions:c,dimensionAndFieldList:i,funcComp:"Only",valueComp:r}):r}return h},extractInputExpression:C.extractInputExpression,initModifier(e){C.initModifier(e,B)},enableTotalsFunction:()=>!1,propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{primaryDimension:{refFn:t=>`${$(t,e)}.primaryDimension`,type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options(e,t){const{qDimensionInfo:n}=t.layout.qHyperCube;return n.map((e,t)=>({value:t,label:e.qGroupFallbackTitles[0]}))},show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},crossAllDimensions:{refFn:t=>`${$(t,e)}.crossAllDimensions`,type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},fullRange:{refFn:t=>`${$(t,e)}.fullRange`,type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:t=>`${$(t,e)}.steps`,type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change(t){const n=F(t,e);if(n){const{steps:e}=n;n.steps="number"!=typeof e||Number.isNaN(e)?6:Math.abs(e)}},show(t){const n=F(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:t=>`${$(t,e)}.showExcludedValues`,type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:t=>`${$(t,e)}.nullSuppression`,type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;const i=F(t,e);return i&&!i.disabled}}}},V="timeSeriesDecomposition";function W(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===V)return n[e]}function U(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===V)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}const G={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""},K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:C.needDimension,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),generateExpression:({expression:e,modifier:t,properties:n})=>t?C.generateTSDExpression(t,e,n):e,extractInputExpression:C.extractInputExpression,initModifier(e,t){C.initModifier(e,G),""===e.decomposition&&t&&(e.decomposition=C.getDecomposition(t))},propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{decomposition:{refFn:t=>`${U(t,e)}.decomposition`,type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:s.OPTIONS},steps:{refFn:t=>`${U(t,e)}.steps`,type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change(t,n){const r=W(t,e);if(r){const{steps:e}=r;r.steps="number"!=typeof e||Number.isNaN(e)?2:Math.abs(e),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(t=>(t.qDef.modifiers.map(t=>("timeSeriesDecomposition"===t.type?t.steps=e:t.steps=t.steps,t)),t))}},show(t){const n=W(t,e);return n&&!n.fullRange}}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;const i=W(t,e);return i&&!i.disabled}}}},Y="difference";function X(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===Y)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}const J={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""},Z={translationKey:"properties.modifier.difference",needDimension:C.needDimension,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),extractInputExpression:C.extractInputExpression,generateExpression({expression:e,modifier:t,properties:n,layout:r,numDimensions:o,dimensionAndFieldList:i}){if(!t)return e;let s=o;void 0===s&&(s=C.getNumDimensions({properties:n,layout:r}));const l=a(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:e,modifier:t,dimensions:l,dimensionAndFieldList:i});let u=`${c} - ${C.getAboveComp(t,s,c)}`;if(C.needDimension({modifier:t,properties:n,layout:r})){const e=C.getDimComp(l,1),n=C.getDimComp(l,0),r=C.getAggrComp(u,e,n);u=t.showExcludedValues?C.getExcludedComp({modifier:t,dimensions:l,dimensionAndFieldList:i,funcComp:"Only",valueComp:r}):r}return u},initModifier(e){Object.keys(J).forEach(t=>{void 0===e[t]&&(e[t]=J[t])})},enableTotalsFunction:()=>!1,propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{primaryDimension:{refFn:t=>`${X(t,e)}.primaryDimension`,type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options(e,t){const{qDimensionInfo:n}=t.layout.qHyperCube;return n.map((e,t)=>({value:t,label:e.qGroupFallbackTitles[0]}))},show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},crossAllDimensions:{refFn:t=>`${X(t,e)}.crossAllDimensions`,type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:(e,t)=>t.layout.qHyperCube.qDimensionInfo.length>1},showExcludedValues:{refFn:t=>`${X(t,e)}.showExcludedValues`,type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Y))return!1;const i=function(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===Y)return n[e]}(t,e);return i&&!i.disabled}}}},Q="normalization";function ee(e,t){const n=a(e,t);if(n)for(let e=0;e<n.length;e++)if(n[e].type===Q)return n[e]}function te(e,t){const n=function(e,t){const n=a(e,t);if(!n)return-1;for(let e=0;e<n.length;e++)if(n[e].type===Q)return e;return-1}(e,t);return n>-1?`${t}.${n}`:t}function ne(e,t){for(let n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}const re={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function oe(e){return 2===e?"{1}":""}function ie(e,t,n){return 1===e?`{$<${C.getFieldWithWrapper(t)}={'${n}'}>}`:""}function ae(e,t){return 0===e&&t>1||2===e?"Total":""}function se(e,t,n){return 0===e&&t>1?`<${C.getDimDefWithWrapper(n)}>`:""}const le={translationKey:"properties.modifier.normalization",needDimension:()=>!0,isApplicable:({properties:e,layout:t})=>C.isApplicable({properties:e,layout:t,minDimensions:1,maxDimensions:2}),extractInputExpression:C.extractInputExpression,generateExpression({expression:e,modifier:t,properties:n,layout:r,numDimensions:o,dimensionAndFieldList:i}){if(!t)return e;let s=o;void 0===s&&(s=C.getNumDimensions({properties:n,layout:r}));const l=a(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:e,modifier:t,dimensions:l,dimensionAndFieldList:i});let u=c;const{selectionScope:d,dimensionalScope:p,field:f,value:h,primaryDimension:m,ignoreNegative:g}=t;return u=function(e,t,n,r,o,i,a,s){const l=oe(t),c=ie(t,n,r),u=""===l&&""===c?"":l||c,d=ae(o,i),p=se(o,i,a),f=function(e){const t=[];for(let n=0;n<e;n++)t[n]=C.getDimDefWithWrapper(n);return t.join(", ")}(i);return s?`(If(${e} < 0, null(), ${e}))/ Sum(${u} ${d}${p} Aggr(${u} RangeMax( 0, ${e}), ${f}))`:`${e}/ Sum(${u} ${d}${p} Aggr(${u} ${e}, ${f}))`}(c,d,f,h,p,s,m,g),u},initModifier(e){Object.keys(re).forEach(t=>{void 0===e[t]&&(e[t]=re[t])})},updateModifier(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:()=>!0,propertyPanelDef:function(e,t={}){return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:(e,t)=>!C.isApplicable({properties:t.properties})},settings:{type:"items",items:{selectionScope:{refFn:t=>`${te(t,e)}.selectionScope`,type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:n=>function(e,t,n){let r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];const{dimensionalScope:o}=ee(e,n);return r=function(e,t){if(1===e){const e=ne(t,0);t.splice(e,1)}return t}(o,r),r}(n,t,e)},field:{refFn:t=>`${te(t,e)}.field`,type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:(e,t,n)=>n.app.getFieldList().then(e=>e.map(e=>({label:e.qName,value:e.qName}))),show:t=>1===ee(t,e).selectionScope},value:{refFn:t=>`${te(t,e)}.value`,type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:t=>1===ee(t,e).selectionScope},dimensionalScope:{refFn:t=>`${te(t,e)}.dimensionalScope`,type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:(n,r)=>function(e,t,n,r){const o=t.layout.qHyperCube.qDimensionInfo.length;let i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope."+(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||`properties.modifier.dimensionalScope.${2===o?"respectAllDimensions":"respectDimension"}.tooltip`},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope."+(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||`properties.modifier.dimensionalScope.${2===o?"disregardAllDimensions":"disregardDimension"}.tooltip`}];i=function(e,t){if(e<2){const e=ne(t,0);t.splice(e,1)}return t}(o,i);const{selectionScope:a}=ee(e,r);return i=function(e,t){if(0===e){const e=ne(t,1);t.splice(e,1)}return t}(a,i),i}(n,r,t,e)},primaryDimension:{refFn:t=>`${te(t,e)}.primaryDimension`,type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options(e,t){const{qDimensionInfo:n}=t.layout.qHyperCube;return n.map((e,t)=>({value:t,label:e.qGroupFallbackTitles[0]}))},show:(t,n)=>0===(ee(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}},show:(e,t)=>C.isApplicable({properties:t.properties})}},show(t,n,r){const o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Q))return!1;const i=ee(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:oe,getFieldSelectionComp:ie,getTotalComp:ae,getSelectedDimComp:se},ce="library id deleted",ue="qDef.qDef",de="qDef.base.qDef",pe="qLibraryId",fe="qDef.base.qLibraryId",he="qDef.qLabel",me="qDef.qLabelExpression",ge="qDef.base.qLabel",be="qDef.base.qLabelExpression",ve="qDef.qAggrFunc",ye="qDef.base.qAggrFunc",xe="qDef.base",Se={getExpression(e){const t=a(e,de);return void 0!==t?t:a(e,ue)},getExpressionRef:e=>void 0!==a(e,de)?de:ue,getLibraryIdRef:e=>a(e,fe)?fe:pe,getLibraryId:e=>a(e,fe)||a(e,pe),getLabelRef:e=>a(e,xe)?ge:he,getLabelExpressionRef:e=>a(e,xe)?be:me},we={initBase(e,t){(t||we.isValid(e))&&(i(e,de,a(e,ue)),i(e,fe,a(e,pe)),i(e,ge,a(e,he)),i(e,be,a(e,me)))},restoreBase(e){we.isValid(e)&&(i(e,ue,a(e,de)),i(e,pe,a(e,fe)),i(e,he,a(e,ge)),i(e,me,a(e,be)),a(e,ve)&&a(e,ye)&&i(e,ve,a(e,ye)),delete e.qDef.base)},isValid(e){const t=a(e,de),n=a(e,fe);return void 0!==t||void 0!==n}},Ce=we,Ee={accumulation:_,movingAverage:H,difference:Z,normalization:le,timeSeriesDecomposition:K},Ie={modifiers:Ee,apply:Ae,applyModifiers:De,cleanUpMeasure:Me,destroy:function(e){e&&Re[e.id]&&Re[e.id].masterItemSubscriber&&(Re[e.id].masterItemSubscriber&&Re[e.id].masterItemSubscriber.unsubscribe(),delete Re[e.id])},hasActiveModifiers:ke,getActiveModifier:Te,initBase:Ce.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(e=>Ee[e])},isApplicableSupportedModifiers:function({modifierTypes:e,properties:t,layout:n}){return Array.isArray(e)&&e.some(e=>Ee[e]&&Ee[e].isApplicable({properties:t,layout:n}))},measureBase:Se,limitedSorting:function({measures:e,properties:t,layout:n}){let r=!1,o=!1;return e.forEach(e=>{const i=Le(e);$e({modifiers:i,properties:t,layout:n})&&(r=!0,o=o||Ue({modifiers:i,properties:t,layout:n}))}),r&&!o},ifEnableTotalsFunction:qe},Re={};function Ae({model:e,properties:t,isSnapshot:n=!1,masterItem:r}={}){const i=!1;Re[e.id]=Re[e.id]||{isFirstTime:!0};const{isFirstTime:s}=Re[e.id];if(Re[e.id].isFirstTime=!1,t&&"object"==typeof t)return De({model:e,properties:t});const l=e?e.layout:void 0,c=a(l,"qSelectionInfo.qInSelections");if(n||c)return Promise.resolve(i);const u=a(l,"qHyperCube.qMeasureInfo"),{lastReloadTime:d}=Re[e.id];if(Re[e.id].lastReloadTime=a(e,"app.layout.qLastReloadTime"),ke({measures:u,layout:l})){const t=function({measures:e,layout:t,model:n,lastReloadTime:r}){return a(n,"app.layout.qLastReloadTime")!==r&&function({measures:e,properties:t,layout:n}){return!!Array.isArray(e)&&e.some(e=>Fe({measure:e,properties:t,layout:n}))}({measures:e,layout:t})}({measures:u,layout:l,model:e,lastReloadTime:d});return t||function({measures:e,layout:t,masterItem:n,isFirstTime:r}){return!!Array.isArray(e)&&(r||n||e.some(e=>function({measure:e,layout:t}){return $e({modifiers:Le(e),layout:t})?!e.base:!!e.base}({measure:e,layout:t})))}({measures:u,layout:l,masterItem:r,isFirstTime:s})?e.getEffectiveProperties().then(n=>{const a=o()(!0,{},n);Ne(a);const s=Ge(a);return Be({model:e}).then(o=>He({libraryIds:s,model:e}).then(i=>(t&&function({properties:e}){Pe(e).forEach(t=>function({measure:e,properties:t}){if(Fe({measure:e,properties:t})){let t=0;const{modifiers:n}=e.qDef;Array.isArray(n)&&n.forEach(n=>{if("object"==typeof n&&!n.disabled){if(t++,"object"!=typeof Ee[n.type])throw new Error(`Modifier "${n.type}" is not available`);if(t>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");const r=Ee[n.type].extractInputExpression({outputExpression:e.qDef.qDef,modifier:n});void 0!==r&&_e(e)&&C.simplifyExpression(e.qDef.base.qDef)!==C.simplifyExpression(r)&&(e.qDef.base.qDef=r)}})}}({measure:t,properties:e}))}({properties:a}),De({model:e,oldProperties:n,properties:a,runUpdateIfChange:!0,masterItem:r,libraryItemsProps:i,dimensionAndFieldList:o})))).catch(()=>Promise.resolve(i))}):Promise.resolve(i)}return function(e){return!!Array.isArray(e)&&e.some(e=>"object"==typeof e.base)}(u)?e.getEffectiveProperties().then(t=>function({model:e,properties:t}){const n=Ge(t);return Ke({model:e,libraryIds:n}).then(()=>{const n=o()(!0,{},t);return Pe(t).forEach(e=>Me(e)),We({oldProperties:n,newProperties:t,model:e})})}({model:e,properties:t})):Promise.resolve(i)}function De({model:e,oldProperties:t,properties:n,measures:r,runUpdateIfChange:i=!1,masterItem:s,libraryItemsProps:l,dimensionAndFieldList:c}){void 0===t&&(t=i?o()(!0,{},n):n),Ne(n);const u=Ge(n);return Ke({model:e,libraryIds:u,masterItem:s}).then(()=>function({measures:e,properties:t,model:n,libraryItemsProps:r,dimensionAndFieldList:i}){if(e||(e=Pe(t)),!e.length)return Promise.resolve();if(!r&&!ke({measures:e,properties:t}))return e.forEach(e=>Me(e)),Promise.resolve();const s=r?void 0:Ge(t);return Be({model:n,dimensionAndFieldList:i}).then(i=>He({libraryIds:s,model:n,libraryItemsProps:r}).then(n=>{e.forEach(e=>{const{modifiers:r}=e.qDef;n&&$e({modifiers:r,properties:t})?(function({measure:e,properties:t,libraryItemsProps:n,dimensionAndFieldList:r}){let i=0;Ce.isValid(e)||Ce.initBase(e,!0);const{modifiers:s,base:l}=e.qDef;Array.isArray(s)&&s.forEach(s=>{if("object"==typeof s&&!s.disabled){if(i++,"object"!=typeof Ee[s.type])throw new Error(`Modifier "${s.type}" is not available`);if(i>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ee[s.type].initModifier(s,e);const c=e.qLibraryId||l&&l.qLibraryId;c?function({measure:e,modifier:t,libraryId:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}){const s=i[n],l=s.qMeasure.qDef,c=""===l?l:Ee[t.type].generateExpression({expression:l,modifier:t,properties:r,dimensionAndFieldList:a});t.outputExpression=c,e.qDef.qDef=t.outputExpression,(e.qDef.qLabel||s.qMeasure.qLabel)&&(e.qDef.qLabel=e.qDef.base.qLabel||s.qMeasure.qLabel),(e.qDef.qLabelExpression||s.qMeasure.qLabelExpression)&&(e.qDef.qLabelExpression=s.qMeasure.qLabelExpression),e.qDef.quarantine&&e.qDef.quarantine.qNumFormat&&s.qMeasure.qNumFormat&&(e.qDef.qNumFormat=e.qDef.base.qNumFormat||s.qMeasure.qNumFormat,e.qDef.isCustomFormatted=s.qMeasure.isCustomFormatted),delete e.qLibraryId,e.qDef.coloring=s.qMeasure.coloring,t.base=o()(!0,{},e.qDef.base)}({measure:e,modifier:s,libraryId:c,properties:t,libraryItemsProps:n,dimensionAndFieldList:r}):function({measure:e,modifier:t,properties:n,dimensionAndFieldList:r}){"function"==typeof Ee[t.type].updateModifier&&Ee[t.type].updateModifier(t,n.qHyperCubeDef);const i=Se.getExpression(e),a=""===i?i:Ee[t.type].generateExpression({expression:i,modifier:t,properties:n,dimensionAndFieldList:r});t.outputExpression=a,e.qDef.qDef=t.outputExpression,e.qDef.base.qLabelExpression?e.qDef.qLabelExpression=e.qDef.base.qLabelExpression:e.qDef.qLabel=e.qDef.base.qLabel||i,t.base=o()(!0,{},e.qDef.base)}({measure:e,modifier:s,properties:t,dimensionAndFieldList:r}),function(e){const t=a(e,"qDef.qAggrFunc");"Expr"!==t||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(e)}})}({measure:e,properties:t,libraryItemsProps:n,dimensionAndFieldList:i}),je(e)):Me(e)})}))}({measures:r,properties:n,model:e,libraryItemsProps:l,dimensionAndFieldList:c}).then(()=>i?We({oldProperties:t,newProperties:n,model:e}):Promise.resolve(!1))).catch(()=>Promise.resolve(!1))}function Me(e){!function(e){const t=Le(e);return Array.isArray(t)&&t.some(e=>"object"==typeof e&&!e.disabled&&!Ee[e.type])}(e)?Ce.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,je(e)}function ke({measures:e,properties:t,layout:n}){return!!Array.isArray(e)&&e.some(e=>$e({modifiers:Le(e),properties:t,layout:n}))}function Te(e){const t=Le(e);if(Array.isArray(t))for(let e=0;e<t.length;e++){const n=t[e];if(Ee[n.type]&&!n.disabled)return n}}function qe(e){const t=Te(e);return!t||Ee[t.type].enableTotalsFunction(e)}function Pe(e){return a(e,"qHyperCubeDef.qMeasures",[]).concat(a(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Le(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Oe(e){return a(e,"outputExpression.qValueExpression.qExpr")||a(e,"outputExpression")}function Ne(e){Pe(e).forEach(e=>function(e){const t=Te(e);t&&(void 0!==t.outputExpression&&Oe(t)!==e.qDef.qDef?delete e.qDef.base:!Ce.isValid(e)&&t.base&&(e.qDef.base=o()(!0,{},t.base)))}(e))}function je(e){const t=Le(e);Array.isArray(t)&&t.forEach(t=>{"object"==typeof t&&(t.disabled||!Ee[t.type]&&Oe(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function _e(e){return e.base||e.qDef&&e.qDef.base}function ze(e){const t=_e(e);return e.qLibraryId||t&&t.qLibraryId}function Fe({measure:e,properties:t,layout:n}){return!ze(e)&&$e({modifiers:Le(e),properties:t,layout:n})}function $e({modifiers:e,properties:t,layout:n}){const r={};return Array.isArray(e)&&e.some(e=>!("object"!=typeof e||e.disabled||!Ee[e.type])&&(void 0===r[e.type]&&(r[e.type]=Ee[e.type].isApplicable({properties:t,layout:n})),r[e.type]))}function Be({model:e,dimensionAndFieldList:t}){if(t)return Promise.resolve(t);const n=[],r={},o=e.app.getDimensionList().then(e=>{r.dimensionList=e});n.push(o);const i=e.app.getFieldList().then(e=>{r.fieldList=e});return n.push(i),Promise.all(n).then(()=>r)}function He({libraryIds:e,model:t,libraryItemsProps:n}){if(n)return Promise.resolve(n);const{measureLibraryIds:r,dimensionLibraryIds:o}=e,i={},a=[];return r.forEach(e=>{const n=t.app.getMeasure(e).then(t=>t.getProperties().then(t=>{i[e]=t}));a.push(n)}),o.forEach(e=>{const n=t.app.getDimension(e).then(t=>t.getProperties().then(t=>{i[e]=t}));a.push(n)}),Promise.all(a).then(()=>i).catch(()=>null)}function Ve(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function We({oldProperties:e,newProperties:t,model:n}){const r=JSON.stringify(a(e,"qHyperCubeDef.qMeasures"),Ve)!==JSON.stringify(a(t,"qHyperCubeDef.qMeasures"),Ve)||JSON.stringify(a(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ve)!==JSON.stringify(a(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ve);return r?function({model:e,oldProperties:t,newProperties:n}){const{layout:r}=e;return r&&!r.qHasSoftPatches&&!r.qExtendsId&&a(r,"qMeta.privileges",[]).indexOf("update")>-1?e.setProperties(n):P.saveSoftProperties(e,t,n)}({model:n,oldProperties:e,newProperties:t}).then(()=>r):Promise.resolve(r)}function Ue({modifiers:e,properties:t,layout:n}){return Array.isArray(e)&&e.some(e=>"object"==typeof e&&!e.disabled&&Ee[e.type]&&Ee[e.type].needDimension({modifier:e,properties:t,layout:n}))}function Ge(e){const t=Pe(e),n=[],r=[];let o=!1;return t.forEach(t=>{const r=Le(t);if($e({modifiers:r,properties:e})){const i=ze(t);i&&n.push(i),o=o||Ue({modifiers:r,properties:e})}}),a(e,"qHyperCubeDef.qDimensions",[]).forEach(e=>{const t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function Ke({model:e,libraryIds:t,masterItem:n}){return!n&&n!==ce&&Re[e.id]&&t&&(t.measureLibraryIds.length||t.dimensionLibraryIds.length)?(Re[e.id].masterItemSubscriber=Re[e.id].masterItemSubscriber||function({model:e,callback:t}){let n={},r={},o={};const i={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){const t={},n=a(e,"qInfo.qType");return n&&i[n]&&i[n].forEach(n=>{t[n]=a(e,n)}),JSON.stringify(t)}function l(e){const{qId:r}=e.qInfo;if(n[r]){const o=s(e);n[r].properties!==o&&(n[r].properties=o,"function"==typeof t&&n[r].enabled&&t(e)),n[r].enabled=!0}}function c(){Object.keys(n).forEach(e=>{r[e]||o[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])})}const u=(e,t)=>(e.once("closed",t),()=>e.removeListener("closed",t));function d(r,o){return e.app[o](r).then(e=>{n[r]={listener:e.layoutSubscribe(l),unbindCloseListnener:u(e,()=>{return r=e.id,t(ce),delete n[r],void c();var r}),enabled:!1,properties:s(e.layout)}}).catch(()=>{})}return{subscribe({measureLibraryIds:t,dimensionLibraryIds:i}){const a=[];return function({measureLibraryIds:e,dimensionLibraryIds:t}){r={},e.forEach(e=>{r[e]=!0}),o={},t.forEach(e=>{o[e]=!0})}({measureLibraryIds:t,dimensionLibraryIds:i}),c(),e.app&&(Object.keys(r).forEach(e=>{r[e]&&!n[e]&&a.push(d(e,"getMeasure"))}),Object.keys(o).forEach(e=>{o[e]&&!n[e]&&a.push(d(e,"getDimension"))})),Promise.all(a)},unsubscribe(){Object.keys(n).forEach(e=>{n[e].listener.dispose(),n[e].unbindCloseListnener()}),n={}}}}({model:e,callback:t=>Ae({model:e,masterItem:t}).then(()=>e.app.clearUndoBuffer())}),Re[e.id].masterItemSubscriber.subscribe(t)):Promise.resolve()}}};const n={};function r(e){const o=n[e];if(void 0!==o)return o.exports;const i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],i=t[n++];r.o(e,o)?0===i&&n++:0===i?Object.defineProperty(e,o,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,o,{enumerable:!0,get:i})}else for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports};let o=r(828);for(var i in e.default=o.default,o)-1===["default"].indexOf(i)&&(e[i]=o[i]);Object.defineProperty(e,"__esModule",{value:!0})})()}(oL)),oL),aL=Ht(iL);const sL="TOTAL_OFF",lL={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},cL=(e,t)=>t&&e.flags.isEnabled("VNA-977-TABLE-BARS"),uL=(e,t)=>cL(e,t)?[tL("barColor","SNTable.Bar.ColorExpression","barColorByExpression"),tL("barLabelColor","SNTable.Bar.LabelColorExpression","barLabelColorByExpression"),tL("barWidth","SNTable.Bar.WidthExpression","barWidthByExpression"),tL("barOffset","SNTable.Bar.OffsetExpression","barOffsetByExpression"),tL("barLabel","SNTable.Bar.LabelExpression","barLabelByExpression")]:[],dL=(e,t)=>({columnExpression:{type:"items",grouped:!0,items:[{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1},...uL(e,t)]}]}]}}),pL={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},fL=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!aL.hasActiveModifiers({measures:[e],properties:t.properties})||aL.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),hL={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Gm.Auto,translation:"Common.Auto"},{value:Gm.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Gm.Pixels,translation:"Object.Table.Column.Pixels"},{value:Gm.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Gm.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===Gm.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===Gm.Percentage}},mL=(e,t)=>({...lL,...dL(e,t),...pL,...hL}),gL=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},subTotalGroup:{type:"items",show:e.flags.isEnabled("TLV-2303-SUB-TOTALS")&&!e.anything.sense?.isUnsupportedFeature?.("totals"),items:[{uses:"divider"},{type:"string",component:"switch",translation:"properties.showSubTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:sL,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:sL,translation:"properties.off"}},{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"Common.Label",defaultValue:()=>e.translator.get("properties.subTotals"),show:e=>e.qOtherTotalSpec?.qTotalMode!==sL},{uses:"divider"}]},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}}),bL=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:fL(e)}},vL=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:gL(e)},presentation:{type:"items",translation:"properties.presentation",items:{...mL(e,!1),...YP(e)}}}}}),yL=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:bL(e)},presentation:{type:"items",translation:"properties.presentation",items:{...mL(e,!0),...XP(e,{[VP.Image]:!0,[VP.Indicator]:!0,[VP.MiniChart]:!0,[VP.Bar]:cL(e,!0)}),...nL({[VP.Bar]:cL(e,!0)})}}}}}),xL=e=>({...vL(e),...yL(e)}),SL=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...xL(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),wL={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},CL=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),EL=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,o){const i=r?.(e,t,o)??!1,a=o.theme.current(),s=n(a,i);return{color:"transparent"===s?"none":s}}}),IL=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},RL=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontFamily??"Source Sans Pro, sans-serif",o=t.fontFamilies??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort().map(e=>IL(e,!0))],s=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...de().filter(e=>!i.includes(e)).map(e=>IL(e,!0))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),AL=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],DL=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>IL(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...AL.filter(e=>!i.includes(e)).map(e=>IL(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),ML=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:RL({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:DL({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:EL(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:EL(`${e}.background`,"properties.background",(t,n)=>{const r=n?dm.WHITE:dm.TRANSPARENT;return o(t,e,"backgroundColor")??r},a)}}}}),kL=e=>({type:"items",items:[{ref:e,type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]}),TL=e=>kL("dimensionNullValues"===e?"nullValueRepresentation.dimensionText":"nullValueRepresentation.text"),qL=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r,isNullValueText:o,translation:i})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{nullValueText:o?TL(e):void 0,content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:EL(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:EL(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),PL=(e,t,n)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[n];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[n];case"subTotalValues":return e.object?.straightTableV2?.subTotal?.label?.value?.[n];case"nullValues":case"dimensionNullValues":return e.object?.straightTableV2?.null?.label?.value?.[n];default:return}},LL=e=>e.grid?.zebraStripes?.show,OL={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){void 0!==e&&(null!==e.content?.rowHeight&&void 0!==e.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e.content&&(e.content.rowHeight=void 0))}},NL=e=>e?.content?.hoverEffect,jL={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:NL,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:NL,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},_L=(e,t,{properties:n})=>"sn-table"===n.visualization&&!0===n.usePagination,zL=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:ML({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:PL,disableNoneCallback:_L}),dimensionValueSection:ML({section:"dimensionValues",translator:t,flags:e,getThemeValue:PL}),measureValueSection:ML({section:"measureValues",translator:t,flags:e,getThemeValue:PL}),totalRowSection:ML({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:PL,disableNoneCallback:_L}),subTotalRowSection:e.isEnabled("TLV-2303-SUB-TOTALS")?ML({section:"subTotalValues",defaultFontStyle:["bold"],translation:"properties.subTotals",translator:t,flags:e,getThemeValue:PL,disableNoneCallback:_L}):void 0,dimensionNullSection:qL({section:"dimensionNullValues",translation:"properties.table.dimensionNullValues",fallbackBackground:dm.NULL_VALUE_BACKGROUND,getThemeValue:PL,isNullValueText:!0}),nullValues:qL({section:"nullValues",translation:"properties.table.measureNullValues",fallbackBackground:dm.NULL_VALUE_BACKGROUND,getThemeValue:PL,isNullValueText:!0}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...OL},border:EL("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??dm.BORDER_MEDIUM),divider:EL("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??dm.BORDER_HEAVY)}}}},hoverEffectSection:jL,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:LL,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:LL,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:LL,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:LL,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),FL=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[zL(e),CL(e),{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1}]},...wL}}),$L={uses:"sorting"},BL={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},HL=e=>({type:"items",component:"accordion",items:{data:SL(e),sorting:$L,addOns:BL,settings:FL(e)}});function VL(e){return{definition:HL(e),exploration:EP(e),data:BP(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(t,n,r,o,i){const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return vv({exportFormat:t,initialProperties:n,extension:r,hypercubePath:o,defaultPropertyValues:a,viewDataMode:i,env:e})},exportProperties:(e,t)=>pv({propertyTree:e,hyperCubePath:t}),propertyHandler:t=>new jP(t,e.translator),usePropertyHandler:"sn-table-data",migrate:HP(e)}}const WL=e=>{const t=e.get(Yb);return a(()=>()=>{t.unmount()},[t]),t};var UL,GL={exports:{}};
91
91
  /*!
92
92
  * CSSJanus. https://www.mediawiki.org/wiki/CSSJanus
93
93
  *
@@ -106,4 +106,4 @@ function Gi(e,t){let n;return n=t?ki(e).withConfig({displayName:t.label,shouldFo
106
106
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
107
107
  * See the License for the specific language governing permissions and
108
108
  * limitations under the License.
109
- */var YL=(GL||(GL=1,function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\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-]|"+n+"|"+u+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+n+"|"+u+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+n+"|"+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,I=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+c+v+"[^;}]+;?)","gi"),R=new RegExp("("+c+"[^\\}]*?})","gi"),D=new RegExp("("+a+")ltr","gi"),M=new RegExp("("+a+")rtl","gi"),k=new RegExp(l+"(left)"+b+y+v,"gi"),T=new RegExp(l+"(right)"+b+y+v,"gi"),q=new RegExp(l+"(left)"+x,"gi"),P=new RegExp(l+"(right)"+x,"gi"),L=/(:dir\( *)ltr( *\))/g,O=/(: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"),B=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),H=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,n){var r,o;return t.split("(").length>t.split(")").length?e:("%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n)}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 n=[].slice.call(arguments),r=n.slice(2,6).filter(function(e){return e}),o=n.slice(6,10).filter(function(e){return e}),i=n[10]||"";return t+(o.length?Z(r)+" / "+Z(o):Z(r))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,n){return t+ee(n)}function ne(e,t,n,r,o){return t+n+ee(r)+o}function re(e,t,n,r,o){return t+n+r+ee(o)}return{transform:function(n,o){var i=new r(A,"`NOFLIP_SINGLE`"),a=new r(R,"`NOFLIP_CLASS`"),s=new r(I,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(L,"$1`TMPLTR`$2").replace(O,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(n=n.replace(q,"$1"+e).replace(P,"$1left").replace(w,"right")),n=n.replace(D,"$1"+e).replace(M,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(T,"$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,re).replace(G,re).replace(K,te).replace(Y,ne).replace(X,ne).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(B,J).replace(H,J),n=i.detokenize(a.detokenize(s.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(KL,KL.exports)),KL.exports),XL=Ht(YL),JL="comm",ZL="rule",QL="decl",eO=Math.abs,tO=String.fromCharCode;function nO(e){return e.trim()}function rO(e,t,n){return e.replace(t,n)}function oO(e,t){return 0|e.charCodeAt(t)}function iO(e,t,n){return e.slice(t,n)}function aO(e){return e.length}function sO(e,t){return t.push(e),e}var lO=1,cO=1,uO=0,dO=0,pO=0,fO="";function hO(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:lO,column:cO,length:a,return:"",siblings:s}}function mO(){return pO=dO>0?oO(fO,--dO):0,cO--,10===pO&&(cO=1,lO--),pO}function gO(){return pO=dO<uO?oO(fO,dO++):0,cO++,10===pO&&(cO=1,lO++),pO}function bO(){return oO(fO,dO)}function vO(){return dO}function yO(e,t){return iO(fO,e,t)}function xO(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 SO(e){return nO(yO(dO-1,EO(91===e?e+2:40===e?e+1:e)))}function wO(e){for(;(pO=bO())&&pO<33;)gO();return xO(e)>2||xO(pO)>3?"":" "}function CO(e,t){for(;--t&&gO()&&!(pO<48||pO>102||pO>57&&pO<65||pO>70&&pO<97););return yO(e,vO()+(t<6&&32==bO()&&32==gO()))}function EO(e){for(;gO();)switch(pO){case e:return dO;case 34:case 39:34!==e&&39!==e&&EO(pO);break;case 40:41===e&&EO(e);break;case 92:gO()}return dO}function IO(e,t){for(;gO()&&e+pO!==57&&(e+pO!==84||47!==bO()););return"/*"+yO(t,dO-1)+"*"+tO(47===e?e:gO())}function AO(e){for(;!xO(bO());)gO();return yO(e,dO)}function RO(e){return function(e){return fO="",e}(DO("",null,null,null,[""],e=function(e){return lO=cO=1,uO=aO(fO=e),dO=0,[]}(e),0,[0],e))}function DO(e,t,n,r,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=r,E=x;g;)switch(h=y,y=gO()){case 40:108!=h&&58==oO(E,d-1)?(v++,E+="("):E+=SO(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=SO(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=tO(y);break}E+=wO(h);break;case 92:E+=CO(vO()-1,7);continue;case 47:switch(bO()){case 42:case 47:sO(kO(IO(gO(),vO()),t,n,l),l),5!=xO(h||1)&&5!=xO(bO()||1)||!aO(E)||" "===iO(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=aO(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=tO(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=rO(E,/\f/g,"")),f>0&&(aO(E)-d||0===m)&&sO(f>32?TO(E+";",r,n,d-1,l):TO(rO(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(sO(C=MO(E,t,n,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)DO(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===oO(E,3))break;case 108:if(97===oO(E,2))break;default:u=0;case 100:case 109:case 115:}u?DO(e,C,C,r&&sO(MO(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,r?S:w):DO(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+aO(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==mO())continue;switch(E+=tO(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(aO(E)-1)*b,b=1;break;case 64:45===bO()&&(E+=SO(gO())),p=bO(),u=d=aO(x=E+=AO(vO())),y++;break;case 45:45===h&&2==aO(E)&&(m=0)}}return i}function MO(e,t,n,r,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<r;++m)for(var v=0,y=iO(e,p+1,p=eO(g=a[m])),x=e;v<h;++v)(x=nO(g>0?f[v]+" "+y:rO(y,/&\f/g,f[v])))&&(l[b++]=x);return hO(e,t,n,0===o?ZL:s,l,c,u,d)}function kO(e,t,n,r){return hO(e,t,n,JL,tO(pO),iO(e,2,-2),0,r)}function TO(e,t,n,r,o){return hO(e,t,n,QL,iO(e,0,r),iO(e,r+1,-1),r,o)}function qO(e,t,n){switch(e.type){case"@import":case QL:case JL:return e.return=e.return||e.value;case ZL:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===JL&&(e.children=e.value)})}var r=function(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}(Array.prototype.concat(e.children),qO);return aO(r)?e.return=e.value+"{"+r+"}":""}function PO(e,t,n,r){if("@keyframes"===e.type||"@supports"===e.type||e.type===ZL&&(!e.parent||"@media"===e.parent.type||e.parent.type===ZL)){var o=XL.transform(qO(e));e.children=o?RO(o)[0].children:[],e.return=""}}Object.defineProperty(PO,"name",{value:"stylisRTLPlugin"});const LO=Hx(({options:e,...t})=>Og(Dm(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 OO{#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,n){const r=this.#y[e].get(t)??new Set;r.add(n),this.#y[e].set(t,r),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 NO=Og(()=>new OO);let jO=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),_O=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}({}),zO=function(e){return e.A="ascending",e.D="descending",e}({}),FO=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const $O=[0,0],BO=e=>"number"==typeof e&&!Number.isNaN(+e),HO=e=>BO(e.qNum),VO=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),WO=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,UO=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),GO=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},KO=(e,t,n)=>{const r={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,c=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{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[n].color,t:r}})(a,r,t,n,e);return se(e.localPaletteColors[t].color??"").blend(se(s.color??""),s.t)},YO=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort((e,t)=>e.value-t.value),e.limits=n.map(e=>({...e,value:UO(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:GO(r,t,n)}))),r},XO=(e,t,n,r)=>{const o=YO(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=r&&t<i){n=KO(e,a,t);break}r=i}return n})(o,t);return a},JO=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!BO(e));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!BO(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},ZO=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=JO(e,t),o=Math.abs(t);return{min:n??t-o,max:r??t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!BO(t))return 0;let a=n&&BO(n)?Math.min(n,t):0;const s=r.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,r.min);return{limitRange:r,limitPaletteColorIndex:o}},QO=F((e,t)=>Yt.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:Yt.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),eN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),tN=F((e,t)=>Yt.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:[Yt.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"}),Yt.jsx("use",{fillRule:"evenodd"})]})),nN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),rN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),oN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),iN=F((e,t)=>Yt.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:Yt.jsx("path",{d:"M2 7.5h12v1H2z"})})),aN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),sN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),lN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),cN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),uN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),dN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),pN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),fN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),hN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),mN={m:uN,"ï":lN,R:hN,S:dN,T:pN,U:fN,P:sN,Q:oN,"è":F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),"¢":nN,"©":tN,"23F4":rN,2013:cN,"&":aN,add:QO,"minus-2":iN,dot:eN},gN=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=ZO(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,n.limitPaletteColorIndex))return GO(o,n.limitPaletteColorIndex,r);const a=UO(n.limitRange,t);return XO(o,a,n.limitRange,r)})(o,t,i,r),{paletteColors:s}=o.segments,l=i?.limitPaletteColorIndex||0,c=s[l]?.icon??"dot",{indicator:u}=e;let d=u?.position||"right";return"rtl"===n&&(d="right"===d?"left":"right"),{color:a,iconKey:c,position:d}},bN=(lm().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)"),vN=4/3,yN="12px",xN="600",SN="Source Sans Pro, sans-serif",wN={height:"auto",fontSize:yN,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"}},CN=(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,EN=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",IN=(e,t,n)=>{if(!t&&"rtl"===n){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},AN=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,RN=(e,t,n)=>"rtl"===e||t&&!n?"0px":"1px",DN=(e,t,n)=>"rtl"===e?t&&!n?"0px":"1px":"0px",MN=24,kN=Ec("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),TN=Ec(md,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:n,isPagination:r})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===n?EN(e,r):void 0})),qN=Ec(md,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:n})=>{const r=e?"24px":"";let o;switch(n){case"left":o={gridTemplateColumns:t?`20px 2fr ${r}`:`1fr ${r}`};break;case"center":{const n=e||t;o={gridTemplateColumns:n?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:n?2:1},[`& .${Fm}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${r} 2fr 20px`:`${r} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${Fm}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),PN=Ec(md,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),LN=Ec(md,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),ON=Ec(Iu,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:n,order:r})=>({padding:"4px !important",width:"fit-content",height:"auto",background:n?t:void 0,"&:hover":{background:e},color:"inherit",order:r})),NN=Og(),jN=Og(0),_N=Og(0),zN=e=>parseInt(e??wN.fontSize,10)*vN,FN=/<[biust]>/g,$N=/<blank>/i,BN=(e,{boldFontWeight:t,combineDecorations:n=!1,allowIndentation:r=!1})=>{const o=e?.toLowerCase().match(FN),i={},a=new Set;let s=0;return o?.forEach(e=>{switch(e){case"<t>":r&&(s++,i.textIndent=`${s}em`);break;case"<b>":i.fontWeight=t;break;case"<i>":i.fontStyle="italic";break;case"<u>":a.add("underline"),i.textDecoration="underline";break;case"<s>":a.add("line-through"),i.textDecoration="line-through"}}),n&&a.size>0&&(i.textDecoration=["underline","line-through"].filter(e=>a.has(e)).join(" ")),Object.keys(i).length>0?i:void 0};const HN=4/3,VN=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function WN(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const UN=(e,t)=>e?{borderBottomColor:dm.DARK_MODE_BORDER,borderRightColor:dm.DARK_MODE_BORDER,borderLeftColor:dm.DARK_MODE_BORDER,borderTopColor:dm.DARK_MODE_BORDER}:{borderLeftColor:dm.BORDER_MEDIUM,borderRightColor:dm.BORDER_MEDIUM,borderTopColor:dm.BORDER_HEAVY,borderBottomColor:t?dm.BORDER_HEAVY:dm.BORDER_LIGHT},GN=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*HN+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},KN=e=>e.components?.find(e=>"theme"===e.key),YN=(e,t,n,r=!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:VN(n?.fontColor)?WN(dm.TEXT,t,n?.fontColor):i||dm.TEXT,fontSize:n?.fontSize&&`${n.fontSize}px`||a,padding:n&&"padding"in n?n.padding:void 0,...UN(t.background.isDark,r)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function XN(e,t,n){const r=KN(e)?.header,o=YN("header",t,r,n);return o.background=(e=>{if(void 0===e)return;const t=se(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=hm(o.background??dm.WHITE,Km),o.activeBackground=hm(o.background??dm.WHITE,Ym),o}const JN=(e,t,n)=>{if(!n)return!1;const r=t.indexOf("textStyleExpression");return-1!==r&&(o=e?.qValues?.[r]?.qText,!!o&&$N.test(o));var o},ZN=(e,t,n)=>{const r={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&gm(i);a&&(r[n[t]]=a);const s=BN(i,{boldFontWeight:xN,combineDecorations:!0});var l,c;o={...o,...s,textDecoration:(l=o.textDecoration,c=s?.textDecoration,c?l?[...new Set(`${l} ${c}`.split(/\s+/).filter(e=>e&&"none"!==e))].join(" "):c:l)}}),r.cellBackgroundColor&&!r.cellForegroundColor&&(r.cellForegroundColor=pm(r.cellBackgroundColor)),{...e,...r,color:r.cellForegroundColor||e.color,background:r.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}};function QN(e,t,n){if(!n("TLV_254_TABLE_INDENT_TAG"))return;const r=e.isTotalRow&&n("TLV-2303-SUB-TOTALS");if(e.isNull||r&&t.isDim)return;const o=t.qAttrExprInfoIDs.indexOf("textStyleExpression");return-1!==o?BN(e.qAttrExps?.qValues?.[o]?.qText,{boldFontWeight:xN,allowIndentation:!0})?.textIndent:void 0}const ej=25e4,tj=(e,t)=>t.qAttrExps?.qValues?.[e],nj=e=>{const t=Number(e?.qNum);return void 0!==e?.qNum&&Number.isFinite(t)?t:void 0},rj=e=>{const t=e?.qText?.trim();return t&&"ARGB(0,0,0,0)"!==t.toUpperCase()?gm(t)??void 0:void 0},oj=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,ij=5e6,aj=5e5;const sj={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,n){return{key:lj(e),value:lj(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function lj(e){try{return decodeURIComponent(e)}catch{return e}}function cj(e){if(!(this instanceof cj))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 n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>sj.fromSearchString(t.search)}})}function uj(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")}cj.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},cj.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=uj(t.key),t.value?n+=`=${uj(t.value)}`:n+=t.useEqualSign?"=":"";return n};var dj=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}},pj=class{decode(e){let t="";const n=new dj(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const fj=e=>e>=0&&e<=1114111,hj=e=>e.match(/[\s]/);var mj=class extends pj{decodeCharacter(e){e.mark();const t=e.next();let n,r,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(n=i,r=0;r<5&&(o=e.next(),null!=o&&!hj(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return fj(a)?String.fromCharCode(a):"�"}},gj=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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},bj=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let o,i;if(t.length===n)return i=this._value,this.setValue(r),i;const a=t.charAt(n);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,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return gj.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return gj.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||gj.newInstanceIfNeeded(e,t,this._value)}},vj=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 bj);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const yj=(()=>{const e=[],t=[],n=new vj;let r,o,i;for(r 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[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),n.put(i,String.fromCharCode(o)));return n})();var xj=class extends pj{decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,o="";for(t=Math.min(e.remainder().length,yj.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=yj.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}_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,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&fj(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&fj(r)?String.fromCharCode(r):null}},Sj=class extends pj{decodeCharacter(e){e.mark();const t=e.next();let n,r,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)o=e.nextHex(),null!=o&&(n+=o);return 2===n.length&&(i=parseInt(n,16),fj(i))?String.fromCharCode(i):(e.reset(),null)}};let wj;"undefined"!=typeof document&&(wj=document.createElement("div"));const Cj=Array.prototype.indexOf,Ej=[",",".","_"," "],Ij=[",",".","-","_"," "],Aj={width:["%"],height:["%"]},Rj={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Dj={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Rj.image,"background-color":Rj.color,"border-color":Rj.color,"border-image":Rj.image,color:Rj.color,icon:Rj.image,"list-style-image":Rj.image,"outline-color":Rj.color},Mj={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function kj(e,t,n){let r;if(t){if(Cj)return Cj.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function Tj(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return wj.appendChild(n),t=wj.innerHTML,wj.removeChild(n),t}function qj(e,t,n){let r,o,i,a,s,l,c,u,d;for(e=Lj(e).toLowerCase(),t=Lj(t),i=0;i<Mj.attr_name.length;i++)if(e.match(Mj.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<Mj.attr_val.length;i++)if(t.toLowerCase().match(Mj.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=Aj[e],r||(r=Ij),o="",!n){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]/)&&kj(c,r)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return n||(o+='"'),o}function Pj(e,t,n){let r,o,i,a,s,l,c,u,d,p;if(e=Lj(e).toLowerCase(),t=Lj(t),kj(e,Mj.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<Mj.css_val.length;r++)if(t.toLowerCase().indexOf(Mj.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=Dj[e],o||(o=Rj.default),i="",!n){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]/)&&kj(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function Lj(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new xj,new Sj,new mj];for(;!a;){r=n;for(let e=0;e<s.length;e++)i=s[e].decode(n),i!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}const Oj=[];for(let e=0;e<255;e++)Oj[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const Nj={html:e=>Tj(e.unsafe),css(e){let t,n=[];const r=[],o={};let i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=Pj(t,n[t],!0),i+=Pj(t,n[t],!0),o[t]=r[t]);return e.map?o:i},attr(e){let t=[];const n=[],r={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=qj(e,t[e],!0),o+=qj(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function jj(e,t){throw new Error(t)}var _j={canonicalize:Lj,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,n;const r=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(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Nj.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&jj(this,"Invalid parameter type"),Nj.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&jj(this,"Invalid parameter type"),Nj.attr(e)):void jj(this,"Invalid parameter type")},encodeForAttr:qj,encodeForAttr2:function(e){return qj("nonsens",e,!0)},encodeForCSS:Pj,encodeForHref:function(e){Lj(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new cj(e),n=cj.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+cj.encodeSearchParams(r)+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 n,r,o,i,a,s;for(t||(t=Ej),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),kj(o,t)>=0||null==Oj[i]?s+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:Tj,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=Lj(t).toLowerCase():jj(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:n=aj,maxByteSizeImage:r=ij}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=oj.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(o,i,a);return"image/svg+xml"===o?s<=n:s<=r},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 n=function(e){let t=e,n="";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=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const zj=(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"}}},Fj=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!_j.isSafeDataURL(t))?{type:WP.Text,url:void 0,text:e,labelStructure:o}:{type:WP.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:zj(r,a),labelStructure:o,imageBox:i},$j=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:WP.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{const r="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=r?n.qYMin:e.qMiniChart.qMin,a=r?n.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,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:WP.MiniChart,text:r,miniChart:a}},Bj=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=r?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return n?.urlPosition===UP.Attribute?void 0:n?.urlLabel},Hj=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:WP.Link,url:_j.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:WP.Text,url:void 0,text:t,labelStructure:e}}},Vj=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,measureMinMax:a,labelStructure:s,getText:l=e=>e.qText,direction:c,enabledFeatures:u})=>{const d=GP(t),p=l(e);return d===WP.Image&&u[WP.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=tj(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),Fj({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:r;if(-1===n.imageLabel)return Fj({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=tj(n.imageLabel??-1,e)?.qText??r;return Fj({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:WP.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,p,c,s):d===WP.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===UP.Attribute){const i=Bj(n.url??-1,e,t);return Hj({labelStructure:r,text:o||i||"",url:i})}if(i===UP.Dimension){const i=Bj(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),Hj({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:WP.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,s,p):d===WP.Indicator&&u[WP.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:WP.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,p):d===WP.MiniChart&&u[WP.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?$j(e,t,i,p):d===WP.Bar&&u[WP.Bar]?((e,t,n,r,o)=>{const i={type:WP.Text,text:o},a=nj(e);if(!t||void 0===a)return i;const s=t=>{const r=n[t];return void 0===r||r<0?void 0:tj(r,e)},{barRangeMode:l,barColorMode:c,barLabelColorMode:u}=t,d="manual"===l,p=e=>d&&"number"==typeof e&&Number.isFinite(e)?e:void 0,f={value:a,columnMin:p(t.barRangeMin)??r?.qMin??0,columnMax:p(t.barRangeMax)??r?.qMax??0,isManualRange:d,hasNegativeValues:r?.hasNegativeValues,hasPositiveValues:r?.hasPositiveValues,offsetValue:nj(s("barOffset"))??0,thicknessPx:nj(s("barWidth")),label:s("barLabel")?.qText??o,fallbackLabel:o,color:"expression"===c?rj(s("barColor")):void 0,colorPalette:t.barColor,labelColor:"expression"===u?rj(s("barLabelColor")):void 0,labelColorPalette:t.barLabelColor,barEnd:t.barEnd??"none"};return{type:WP.Bar,text:o,bar:f}})(e,t,n,a,p):{type:WP.Text,url:void 0,text:p,labelStructure:s}},Wj=Og(e=>{const t=e(Nb),n=e(yb);return e(xb),{qTop:0,qHeight:0,rowPartialHeight:n?.content?.rowPartialHeight??0,visibleTop:n?.content?.visibleTop??t?.visibleTop,visibleHeight:n?.content?.visibleHeight??t?.visibleHeight,scrollLeft:n?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:n?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:n?.content?.rowsPerPage??t?.rowsPerPage,page:n?.content?.page??t?.page,estimatedRowHeight:n?.content?.estimatedRowHeight??0}}),Uj=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),Gj=({cId:e})=>e??OP(),Kj=["D","T","TS","IV"],Yj=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Xj=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Jj=["January","February","March","April","May","June","July","August","September","October","November","December"],Zj=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Qj={D:"YYYY-MM-DD",T:"hh:mm:ss",TS:"YYYY-MM-DD hh:mm:ss"},e_=864e5,t_=2**32,n_=e=>{let t=Math.floor(e),n=Math.round((e-t)*e_);n>=e_&&(t+=1,n=0);const r=t-25569,o=r+719468,i=Math.floor(o/146097),a=o-146097*i,s=Math.floor((a-Math.floor(a/1460)+Math.floor(a/36524)-Math.floor(a/146096))/365),l=a-(365*s+Math.floor(s/4)-Math.floor(s/100)),c=Math.floor((5*l+2)/153),u=c<10?c+2:c-10;return{year:s+400*i+(u<=1?1:0),month:u,date:l-Math.floor((153*c+2)/5)+1,day:(r%7+7+3)%7,h:Math.floor(n/36e5),m:Math.floor(n%36e5/6e4),s:Math.floor(n%6e4/1e3),f:n%1e3}},r_=(e,t)=>String(e).padStart(t,"0"),o_=e=>{const[,t]=e.toString().split(".");return t?Number(`0.${t}`):0},i_=/Y+|y+|M+|W+|w+|D+|d+|h+|H+|m+|s+|S+|f+|F+|t{1,2}|T{1,2}/g,a_=(e,t,n)=>{if(Number.isNaN(e)||!Number.isFinite(e))return String(e);let r,o=(n||("IV"===t?Qj.T:Qj[t])).replace(/\[.+]|\[|]/g,"");"IV"===t?(e<0&&(e=-e,o=`-${o}`),r=((e,t)=>{const n=Math.floor(e);let r=24*o_(e),o=60*o_(r),i=60*o_(o);const a=Math.round(1e3*o_(i));r=Math.floor(r),o=Math.floor(o),i=Math.floor(i),/D+/i.test(t)||(r+=24*n),/h+/i.test(t)||(o+=60*r),/m+/i.test(t)||(i+=60*o);let s=0,l="";if(/w+|t+/i.test(t)){const t=n_(e);s=t.day,l=t.h>=12?"pm":"am"}return{year:0,month:0,day:s,date:n%t_,h:r%t_,m:o%t_,s:i%t_,f:a,t:l}})(e,o)):r=((e,t)=>{const n=n_(e);let r=n.h;return t&&(r%=12,r=r||12),{year:n.year,month:n.month,day:n.day,date:n.date,h:r,m:n.m,s:n.s,f:n.f,t:n.h>=12?"pm":"am"}})(e,/t+/i.test(o));const i=(e=>[[/^(Y+|y+)$/,{Y:`${Number(`${e.year}`.slice(-2))}`,YY:r_(`${e.year}`.slice(-2),2),YYY:r_(`${e.year}`.slice(-3),3),def:t=>r_(`${e.year}`,t.length)}],[/^M+$/,{M:e.month+1,MM:r_(e.month+1,2),MMM:Zj[e.month],def:Jj[e.month]}],[/^(W+|w+)$/,{W:e.day,WW:r_(e.day,2),WWW:Xj[e.day],def:Yj[e.day]}],[/^(D+|d+)$/,{def:t=>r_(e.date,t.length)}],[/^(h+|H+)$/,{h:e.h,def:t=>r_(e.h,t.length)}],[/^m+$/,{m:e.m,def:t=>r_(e.m,t.length)}],[/^(s+|S+)$/,{s:e.s,def:t=>r_(e.s,t.length)}],[/^(f+|F+)$/,{def:t=>{const n=`${e.f}`;return n.length>t.length?n.slice(0,t.length):n.padEnd(t.length,"0")}}],[/^(t{1,2}|T{1,2})$/,{def:t=>(t[0].toUpperCase()===t[0]?e.t.toUpperCase():e.t).slice(0,t.length)}]])(r);return o.replace(i_,e=>((e,t)=>{const n=t.find(([t])=>t.test(e))?.[1];if(!n)return"";const r=Object.keys(n).find(t=>"def"!==t&&(t===e||t.toLowerCase()===e)),o=void 0===r?n.def:n[r];return String("function"==typeof o?o(e):o)})(e,i))},s_=/[#0]/,l_={prefix:"",suffix:""},c_=e=>{const t=e.search(s_);if(-1===t)return l_;let n=t;for(let t=e.length-1;t>n;t--)if(s_.test(e[t])){n=t;break}return{prefix:e.slice(0,t),suffix:e.slice(n+1)}},u_=/\B(?=(\d{3})+(?!\d))/g,d_={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y",[-3]:"m",[-6]:"μ",[-9]:"n",[-12]:"p",[-15]:"f",[-18]:"a",[-21]:"z",[-24]:"y"},p_=e=>Number(e.toPrecision(15)),f_=(e,t,n=!1)=>{if(Number.isNaN(e))return String(e);const{qFmt:r,qType:o,qDec:i=".",qThou:a=","}=t??{};if((e=>Kj.includes(e))(o))return a_(e,o,r);if(!r)return String(e);const[s,l]=r.split(";"),{suffix:c}=c_(s),u=c.startsWith("A"),d=(u?c.slice(1):c).endsWith("%"),{value:p,siPrefix:f}=((e,t,n)=>{let r=t?p_(100*e):e,o="";if(n&&0!==r&&Number.isFinite(r)){let e=Number(r.toExponential().split("e")[1]);e-=e%3,e in d_&&(o=d_[e],r=p_(r/10**e))}return{value:r,siPrefix:o}})(e,d,u),h=p<0,m=h&&l?l:s,{prefix:g,suffix:b}=c_(m),v=u&&b.startsWith("A")?b.slice(1):b,{decimals:y,useThousands:x}=((e,t,n)=>{const r=e.indexOf(".");let o=0;return-1!==r?o=(e.slice(r+1).match(/[#0]/g)??[]).length:n&&(o=String(Math.abs(t)).split(".")[1]?.length??0),{decimals:Math.min(o,100),useThousands:e.includes(",")}})(m,p,n||"U"===o),[S,w]=Math.abs(p).toFixed(y).split("."),C=x?S.replace(u_,a):S;return`${h&&!l?"-":""}${g}${w?`${C}${i}${w}`:C}${f}${v}`},h_=1e4;function m_(e,t){return[...t].reverse().find(t=>t*e<=h_)||Math.floor(h_/e)}function g_(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const n=e.qHyperCube.qDimensionInfo.length>0,r=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(n&&r||!i&&!n)){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,n,r){return t?0===n?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(r)?.qText??""}function v_(e,t){const n=e.qHyperCube.qGrandTotalRow.at(t);return BO(n?.qNum)}function y_(e,t,n,r,o){return e&&!e.auto?r&&"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}:r||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:n?"right":"left",bodyTextAlign:"auto"}}const x_=(e,t,n,r)=>"auto"!==t?t:r||"rtl"!==n?e?"right":"left":e?"left":"right",S_=(e,t)=>{if(!e)return;const{background:n,foreground:r}=e,o=se(n??""),i=se(r??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?hm(s,Km):void 0,c=s?hm(s,Ym):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:pm(s),headerMenuHoverBackground:l,headerMenuActiveBackground:c}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:c}};function w_(e,t,n,r){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,{colIdx:s,pageColIdx:l,visibleDimInfoIdx:c,visibleMeasureInfoIdx:u}=t,d=o.length,p=s<d,f=p?o[s]:i[s-d],h=p&&o[s].qGrouping===Xm.Cyclic,m=s===a[0];let g,b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:I}=f;if(p&&void 0!==c){const e=f;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:g}=e)}else({qMiniChart:b}=f),"bar"===E?.type&&(v=(({qMin:e,qMax:t,qAttrExprInfo:n})=>{if("number"!=typeof e||"number"!=typeof t||!Number.isFinite(e)||!Number.isFinite(t))return;const r=n.find(({id:e})=>"barOffset"===e),o=Number.isFinite(r?.qMin)?r?.qMin:0,i=Number.isFinite(r?.qMax)?r?.qMax:0;return{qMin:Math.min(o,o+e),qMax:Math.max(i,i+t),hasNegativeValues:e<0,hasPositiveValues:t>=0}})(f));const{qFallbackTitle:A,textAlign:R,qAttrExprInfo:D,qSortIndicator:M,qReverseSort:k,qApprMaxGlyphCount:T,columnWidth:q,qLibraryId:P,headerColor:L}=f,O=e.nullValueRepresentation?.text,N=!p&&void 0!==O&&VO(O)?f_(WO(O),f.qNumFormat,f.qIsAutoFormat):void 0;return{isDim:p,isCyclic:h,isLocked:x,fieldId:y,colIdx:s,qLibraryId:P,pageColIdx:l,qApprMaxGlyphCount:T,qReverseSort:k,columnWidth:q??{type:Gm.Auto},selectionColIdx:S,isActivelySorted:m,id:Gj(f),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:D.map(e=>e.id),qAttrExprInfoIndex:Uj(f),sortDirection:M&&"N"!==M?M:"A",totalInfo:b_(e,p,l,u??-1),...!p&&{isTotalNumeric:v_(e,u??-1)},...y_(R,g,p,n,r),representation:E,conditionalColoring:p?void 0:I,qNumFormat:p?void 0:f.qNumFormat,qIsAutoFormat:p?void 0:f.qIsAutoFormat,formattedNullValueText:N,qMiniChart:b,measureMinMax:v,headerColor:S_(L,n)}}const C_=(e,t,n)=>{const{qHyperCube:{qColumnOrder:r,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=((e,t,n)=>{const r=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<r,{qError:a}=i?t[o]:n[o-r];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 n=e<r,o=(n?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:n?s:void 0,visibleMeasureInfoIdx:n?void 0:s-r}})})(r.length===a?r:Array.from(Array(a).keys()),o,i);return s.map(r=>w_(e,r,t,n))},E_=(e,t,n)=>e?n.nullValueRepresentation?.dimensionText??t.qText??"-":n.nullValueRepresentation?.text??t.qText??"-",I_=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,A_={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},R_=Og(e=>{const t=e(D_),n=e(fb),r=e(Wj),o=n.qHyperCube.qSize.qcy,i=r.visibleHeight??t.rowsPerPage,a=r.visibleTop??t.page*i,s=r.visibleHeight??Math.min(i,o-a),l=n.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>h_?{...t,rowsPerPage:m_(l,t.rowsPerPageOptions),page:0}:t}),D_=Og(A_),M_=Og(e=>{const t=e(fb),n=e(Nb),r=e(Wj);return qb(t,n)?{page:r.page||A_.page,rowsPerPage:r.rowsPerPage||A_.rowsPerPage,rowsPerPageOptions:A_.rowsPerPageOptions}:e(R_)},(e,t,n)=>{t(D_,e=>({...e,...n}))}),k_=!0,T_=e=>-1===e.qElemNumber||!!e.qIsTotalCell,q_=Og(async e=>{const t=e(fb),n=e(Nb),r=e(Lb),{page:o,rowsPerPage:i}=e(M_),a=e(Wj),s=e($b),l=e(cb),c=e(mb),u=e(ub),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=g_(t,n),v=C_(t,k_,r),y=u("VNA-977-TABLE-BARS"),x=await(async(e,t,n)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const r=t.qHyperCube.qDataPages.at(0),o=r?.qArea;return r&&o?.qLeft===n.qLeft&&o.qTop===n.qTop&&o.qWidth===n.qWidth&&o.qHeight>=n.qHeight?[{...r,qMatrix:r.qMatrix.slice(0,n.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[n]):[]})(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,n)=>{const o=[],i=e.some(T_);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&I_(c,a.isDim),p=u||d?E_(a.isDim,c,t):c.qText,f=u?VO(p):HO(c),g=HO(c)&&!VO(c.qText??"");o[s]={id:OP(),...c,align:x_(f,a.bodyTextAlign,r,k_),rowIdx:n+h,colIdx:a.colIdx,pageRowIdx:n,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i&&!d,isTotalRow:i,isLastRow:n===m-1,isNumeric:f,isDual:g,isNull:(!u||!f)&&I_(c,a.isDim),qNumFormat:a.qNumFormat,qIsAutoFormat:a.qIsAutoFormat,formattedNullValueText:a.formattedNullValueText,representation:Vj({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,measureMinMax:a.measureMinMax,getText:()=>p,direction:r,enabledFeatures:{[WP.Image]:!0,[WP.Indicator]:!0,[WP.MiniChart]:!0,[WP.Bar]:!a.isDim&&y}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),P_=wv(q_,e=>e),L_=Og(e=>{const t=e(fb),n=e(Nb),r=e(Ab),o=e(Lb),i=C_(t,false,o),a=g_(t,n),s=t.qHyperCube.qSize.qcy,l=Math.min(ej,s),c=s>ej&&!!r.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:c}}),O_={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},N_=Og(),j_=Og(e=>{const t=e(_b),n=e(N_);return n||(t?e(P_)??O_:e(L_))}),__=Og(e=>e(j_).totalsPosition),z_=Og(e=>e(j_).columns),F_=Og(e=>e(z_).length),$_=Og(e=>e(j_).rows),B_=Og(e=>e(j_).totalRowCount),H_=Og(e=>e(j_).totalColumnCount),V_=Og(e=>e(j_).paginationNeeded),W_=Og(e=>{const t=e(Gb),n=e(Xb),r=e(fb),o=e(__),i=e($_),a=o.atTop,s=function(e,t,n,r){const o=KN(e)?.content,i=YN("content",t,o);i.background=t.background.color;const a=GN(i.fontSize,n,r),s=o?.hoverColor,l=o?.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),u=t.getStyle("object","","straightTableV2.content.hover.color"),d=VN(l)||!!u,p=VN(s)||!!c,f=d||p;let h;h=VN(s)?WN(dm.HOVER,t,s):c||(d?"":dm.HOVER);const m=f?WN(pm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(r,n,i.length,t),l=XN(r,n,!a),c=function(e,t,n){const r=KN(e)?.content,o=YN("content",t,r),{borderBottomColor:i,borderTopColor:a,background:s}=XN(e,t,n);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(r,n,a);return{body:s,head:l,totals:c}}),U_=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},G_=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=U_(e,t?.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},K_=(e,t,n,r=dm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=G_(e,t,n);return Sm(i,o,a,r)??r},Y_=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return yN}},X_=e=>e?.some(e=>"italic"===e)?"italic":"normal",J_=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?xN:"normal",Z_=e=>!1===e?1:3,Q_=e=>e?.some(e=>"underline"===e)?"underline":"none",ez=Og(e=>{const t=e(Nb),n=e(_b),r=e(Xb),o=e(fb),i=e(W_),{header:a,dimensionValues:s,measureValues:l,totalValues:c,subTotalValues:u,nullValues:d,dimensionNullValues:p,grid:f,content:h}=KN(o)??{},m=n?dm.WHITE:dm.TRANSPARENT,g=K_(r,a,"object.straightTableV2.dimension.label.name.backgroundColor",m),b=t?.maxLineCount??h?.rowHeight??r.getStyle("object.straightTableV2","grid","lineClamp"),v=p??d;return{header:{fontFamily:a?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??SN,fontSize:Y_(a?.fontSize??r.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:X_(a?.fontStyle),fontWeight:J_(a?.fontStyle,xN),textDecoration:Q_(a?.fontStyle),color:U_(r,a?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??dm.TEXT,background:g},headerMenuHoverBackground:hm(g,Km),headerMenuActiveBackground:hm(g,Ym),dimension:{values:{fontFamily:s?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??SN,fontSize:Y_(s?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:X_(s?.fontStyle),fontWeight:J_(s?.fontStyle,"normal"),textDecoration:Q_(s?.fontStyle),color:U_(r,s?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??dm.TEXT,background:G_(r,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??dm.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??r.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??SN,fontSize:Y_(l?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:X_(l?.fontStyle),fontWeight:J_(l?.fontStyle,"normal"),textDecoration:Q_(l?.fontStyle),color:U_(r,l?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??dm.TEXT,background:G_(r,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??dm.TRANSPARENT}},totalRow:{fontFamily:c?.fontFamily??r.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??SN,fontSize:Y_(c?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:X_(c?.fontStyle),fontWeight:J_(c?.fontStyle,xN),textDecoration:Q_(c?.fontStyle),color:U_(r,c?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??dm.TEXT,background:K_(r,c,"object.straightTableV2.total.label.value.backgroundColor",m)},subTotalRow:{fontFamily:u?.fontFamily??r.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??SN,fontSize:Y_(u?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:X_(u?.fontStyle),fontWeight:J_(u?.fontStyle,xN),textDecoration:Q_(u?.fontStyle),color:U_(r,u?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??dm.TEXT,background:K_(r,u,"object.straightTableV2.subTotal.label.value.backgroundColor",m)},dimensionNull:{fontStyle:X_(v?.fontStyle),fontWeight:J_(v?.fontStyle,"normal"),textDecoration:Q_(v?.fontStyle),color:U_(r,v?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??dm.TEXT,background:U_(r,v?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??dm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:X_(d?.fontStyle),fontWeight:J_(d?.fontStyle,"normal"),textDecoration:Q_(d?.fontStyle),color:U_(r,d?.fontColor)??U_(r,h?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??dm.TEXT,background:U_(r,d?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??dm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:b??Z_(o.multiline?.wrapTextInCells),headerLineClamp:Z_(o.multiline?.wrapTextInHeaders),border:U_(r,f?.border)??r.getStyle("object.straightTableV2","grid","borderColor")??(r.background.isDark?dm.DARK_MODE_BORDER:dm.BORDER_MEDIUM),divider:U_(r,f?.divider)??r.getStyle("object.straightTableV2.grid","","divider.borderColor")??dm.BORDER_HEAVY,hoverColors:{color:U_(r,h?.hoverFontColor)??r.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:U_(r,h?.hoverColor)??r.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!f?.zebraStripes?.show,odd:{color:U_(r,f?.zebraStripes?.color?.odd),background:U_(r,f?.zebraStripes?.background?.odd)},even:{color:U_(r,f?.zebraStripes?.color?.even),background:U_(r,f?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===U_(r,v?.background),overrideDimNullValueColor:void 0===U_(r,v?.fontColor),overrideMeasNullValueBackground:void 0===U_(r,d?.background),overrideMeasNullValueColor:void 0===U_(r,d?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:fm(r),contentStaticLineCount:b}}),tz=Og(e=>{const t=e(ez);return Math.max(zN(t.header.fontSize)+8,32)}),nz=Og(e=>{const t=e(ez),n=zN(t.totalRow.fontSize);return Math.max(n+9,24)}),rz=Og(e=>{const t=e(ez),n=e(gb),r=e(bb);return Math.max(n>0?zN(t.dimension.values.fontSize):0,r>0?zN(t.measure.values.fontSize):0)}),oz=Og(e=>{const t=e(ez),n=e(rz),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),iz=Og(e=>{const t=e(ez),n=zN(t.subTotalRow.fontSize),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),az=(e,t,n)=>{if(!e.length)return[];const r=[],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=()=>{r[a]=Math.min(Um.PixelsMax,Math.max(Um.PixelsMin,f)),i-=r[a]};switch(s){case Gm.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?Um.PixelsDefault:+e)(l),h();break;case Gm.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?Um.PercentageDefault:+e)(c)/100*t,h();break;case Gm.FitToContent:e.representation?.type===WP.Image?o.push(a):(f=n(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case Gm.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=>{r[t]=Math.max(Um.AutoMinTable,e)})}return r},sz=Og(e=>{const t=e(ez),n=e(j_).totalsPosition,r=e(Sb),{measureText:o}=e(LO({...t.header,fontWeight:xN})),{measureText:i}=e(LO({...t.totalRow,fontWeight:xN})),{estimateWidth:a}=e(LO(t.dimension.values)),{estimateWidth:s}=e(LO(t.measure.values)),l=n.atBottom||n.atTop;return(e,t,n,c,u,d,p)=>{let f;if(r){const t=4;let n=25;n+=t+24,c&&(n+=20+t),u&&(n+=20),f=o(e)+n}else{let t=9;t+=16,p&&(t+=MN),t+=MN,t+=MN,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(n))}}),lz=Og(null),cz=Og(e=>{const t=e(j_),n=e(Ub).width,r=e(_N),o=e(sz);return az(t.columns,n-r,o)}),uz=Og(e=>e(lz)??e(cz),(e,t,n)=>{t(lz,n)}),dz=Gv(e=>{const t=e(NO);!1===e(NN)&&t.emit("done-adjusting-column-width")}),pz=Gv((e,t)=>{e(fb),t(lz,null)}),fz=Og(e=>e(uz).reduce((e,t)=>e+t,0)),hz=({children:e})=>(Gg(pz),Gg(dz),e);function mz(e){const t=lm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),ac({...t,direction:e})}const gz={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},bz={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},vz=Ec("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...gz},"&::-moz-range-track":{...gz},"&::-ms-track":{...gz},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...bz},"&::-moz-range-thumb":{...bz},"&::-ms-thumb":{...bz},"&: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"}})),yz=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,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=n?0:1,m=r&&!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}};Om(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,Um.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:Gm.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=>{vm(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=>{vm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},I=!r&&s?e=>{if(e.key===Vm.Left||e.key===Vm.Right){vm(e);const t=5,n=e.key===Vm.Left?t:-t,r="rtl"===d?n:-n;l?.(!0),y(f.current.columnWidth+r)}else e.key===Vm.Space||e.key===Vm.Enter?(vm(e),s(e),l?.(!1),x()):e.key===Vm.Esc&&(vm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return Yt.jsx(vz,{style:b,hoverColor:o,isLastColumn:n,className:Wm,"data-testid":Wm,onMouseDown:e=>{vm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:Gm.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(vm(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:I,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":Um.PixelsMin,"aria-valuemax":Um.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},xz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),Sz=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null},wz=Ec(md,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),Cz=Ec(xz,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Ez=Ec(Tf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Iz=Ec(cp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),Az=Ec(Nf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),Rz=Ec(Nf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:n?"rgba(0, 0, 0, 0.05)":"transparent"})),Dz=Ec("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),Mz=Ec("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),kz=Ec(Tu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),Tz=Ec(rf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),qz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),Pz=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?Pz(t):t:e.parentElement?.children?.[0]},Lz=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?Lz(t):t},Oz=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===Vm.Down||t===Vm.Up){const n=e=>t===Vm.Down?Pz(e):Lz(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},Nz=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let jz={};const _z=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:u})=>{const[d,p]=M(!1),f=w.useRef(null),h=O(e=>{e.stopPropagation(),p(!1)},[p]);return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(Rz,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),jz={}),a?.length&&(p(!0),jz[r]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:Oz,children:[l?Yt.jsx(Dz,{direction:c,isPagination:u}):null,Yt.jsxs(Mz,{children:[Yt.jsx(Tz,{direction:c,isPagination:u,children:Yt.jsx(o,{})}),Yt.jsx(kz,{variant:"body2",children:r})]}),a?.length?Yt.jsx(qz,{}):null]},t),a?.length?Yt.jsx(Bz,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:Nz(a,jz),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},zz=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&Yt.jsx(Az,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>Yt.jsx(_z,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),Fz=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[zz({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?Yt.jsx(Iz,{"data-testid":"group-divider",variant:"middle"}):void 0]),$z={appear:0,enter:0,exit:0},Bz=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?Yt.jsx(Ez,{className:$m,open:t,anchorEl:e,onClose:n,transitionDuration:$z,MenuListProps:{id:Bm},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:Fz({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,Hz=({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:o,onPopoverClose:i})=>O(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:o,onPopoverClose:i})}},[e,t,n,r?.qStateName,o,i]),Vz=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),Wz=(e,t)=>e.some(e=>t[e]>0),Uz={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Gz=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=M(null),[a,s]=M(Uz);return Om(()=>{e||(s(Uz),i(null))},[e]),P(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=Vz(t,n),c=await r.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:Wz(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Wz(["qSelected"],e),canSelectPossible:Wz(["qOption"],e),canSelectAlternative:Wz(["qAlternative"],e),canSelectExcluded:Wz(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Kz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),Yz=F((e,t)=>Yt.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:Yt.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"})})),Xz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),Jz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),Zz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),Qz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),eF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),tF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),nF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),rF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),oF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),iF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),aF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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 sF=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const lF="/qListObjectDef",cF=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[sF.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),r(!1)},icon:Kz,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),r(!1)},icon:Jz,enabled:s,isActive:!!n&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:eF,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:uP,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[sF.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:tF,enabled:!0}]}]),!e.isLocked&&n[sF.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:aF,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(lF))},icon:nF,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(lF))},icon:iF,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(lF))},icon:rF,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(lF))},icon:oF,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(lF))},icon:Yz,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:Qz,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:Zz,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[sF.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),u?.(c)},icon:Xz,enabled:!0}]}]),f},uF=({open:e,setOpen:t,anchorRef:n,headerData:r,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=_m})=>{const v=k(null),y=jm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=r,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:I}=Gz({open:e,headerData:r,app:C,qStateName:u?.qStateName}),A=Sz({model:f,headerData:r}),R=Hz({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),D=O(e=>{e.stopPropagation(),t(!1)},[t]),M=O(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?Yt.jsxs(wz,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:Fm,onClick:!1===g?M:void 0,ref:v,isAccessibleHeader:g,children:[s?Yt.jsx(Cz,{height:b,className:zm,"data-testid":zm,isInteractionsActive:i.active??!1,children:Yt.jsx(xz,{})}):null,Yt.jsx(Bz,{open:e,anchorEl:!1===g?v.current:n.current,onClose:D,menuGroups:cF({headerData:r,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:R,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:I,anchorRef:n,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},dF=e=>e.isDark?{background:e.color,borderColor:dm.DARK_MODE_BORDER,color:dm.DARK_MODE_TEXT,disabledColor:dm.DARK_MODE_DISABLED,iconColor:dm.DARK_MODE_TEXT}:{background:e.color,borderColor:dm.BORDER_MEDIUM,color:dm.TEXT,disabledColor:dm.DISABLED},pF=Ec(md,{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}`})),fF=Ec(gh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),hF=Ec(Id,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)})),mF=Ec(Tu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),gF=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=D(()=>dF(r.background),[r]);if(!n.active)return null;const a=o?Yt.jsx(pF,{footerStyle:i,children:e}):null;return t?V.createPortal(e,t):a},bF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),vF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),yF=T({}),xF=()=>N(yF),SF=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,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=D(()=>dF(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=jm({translator:d}),S=D(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,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,n,r,o,i,a,s,l,c,u,x,p,f,h,m,v,b,y,g]);return Yt.jsx(yF.Provider,{value:S,children:e})},wF=({disabledCondition:e,pageNumber:t,type:n,footerStyle:r,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:r,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${n}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let CF=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),EF=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 IF=()=>{const{direction:e,pageInfo:t,width:n,interactions:r,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=xF(),c=0===t.page,u=wF({type:CF.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:r,tabIndex:l});return n<=(o?.firstPage||EF.FirstPage)?null:Yt.jsx(hF,{...u,disabled:!r.active,children:"rtl"===e?Yt.jsx(vF,{height:_m}):Yt.jsx(bF,{height:_m})})},AF=(e,t,n=!1)=>{n&&e.key===Vm.Tab&&!e.shiftKey&&(vm(e),bm(e.target,t,!1))},RF=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:c,translator:u,tabIndex:d}=xF(),p=t.page>=r-1,f=wF({type:CF.LastPage,disabledCondition:p,pageNumber:r-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=n.enabled?e=>{AF(e,n,o)}:void 0;return i<=(s?.lastPage||EF.LastPage)?null:Yt.jsx(hF,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?Yt.jsx(bF,{height:_m}):Yt.jsx(vF,{height:_m})})},DF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),MF=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=xF(),d=t.page>=r-1,p=wF({type:CF.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>EF.FirstPage&&i>EF.LastPage)&&n.enabled?e=>{AF(e,n,o)}:void 0;return Yt.jsx(hF,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?Yt.jsx(DF,{height:_m}):Yt.jsx(qz,{height:_m})})},kF=()=>{const{direction:e,pageInfo:t,interactions:n,footerStyle:r,handleChangePage:o,translator:i,tabIndex:a}=xF(),s=0===t.page,l=wF({type:CF.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:r,handleChangePage:o,translator:i,interactions:n,tabIndex:a});return Yt.jsx(hF,{...l,disabled:!n.active,children:"rtl"===e?Yt.jsx(qz,{height:_m}):Yt.jsx(DF,{height:_m})})},TF=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=xF(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||EF.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return Yt.jsx(mF,{variant:"caption",dir:"ltr",children:s})},qF=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=xF(),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 Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(mF,{variant:"caption",id:p,children:[u,":"]}),Yt.jsx(fF,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},PF=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=xF();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||EF.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=Yt.jsx(Yt.Fragment,{children:e.rowsPerPageOptions.map(e=>Yt.jsx("option",{value:e,children:e},e))});return Yt.jsx(qF,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},LF=1e3,OF="…",NF=({totalPages:e,page:t})=>{const n=Math.min(e,LF),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-LF):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return Yt.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(Yt.jsx("option",{value:OF,disabled:!0,children:OF},"startMoreOptions")),o<e-1&&a.push(Yt.jsx("option",{value:OF,disabled:!0,children:OF},"endMoreOptions")),Yt.jsx(Yt.Fragment,{children:a})},jF=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=xF(),{page:i}=e;if(t<=(o?.selectPage||EF.SelectPage))return null;const a=Yt.jsx(NF,{totalPages:n,page:i});return Yt.jsx(qF,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var _F=z(e=>Yt.jsxs(SF,{...e,children:[Yt.jsx(PF,{}),Yt.jsx(jF,{}),Yt.jsx(TF,{}),Yt.jsx(IF,{}),Yt.jsx(kF,{}),Yt.jsx(MF,{}),Yt.jsx(RF,{})]}));const zF=e=>Yt.jsx(gF,{...e,children:Yt.jsx(_F,{...e})}),FF=(e,t,n)=>{const r=n.size,o=r>=t.size;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},$F=(e,t,n)=>{n&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},BF=e=>e.ctrlKey||e.metaKey,HF=e=>e.shiftKey&&BF(e),VF=e=>[Vm.Left,Vm.Right,Vm.Up,Vm.Down].includes(e),WF=e=>e.shiftKey&&VF(e.key),UF=e=>{return t=e.key,(VF(t)||[Vm.Home,Vm.End,Vm.PageUp,Vm.PageDown].includes(t))&&!HF(e);var t},GF=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)n?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(r)}return l=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?(new Map).set(r,o):(e.has(r)?e.delete(r):e.set(r,o),new Map(e))})(l,i,s),FF(a,r,l),l.size?(n?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(n?.cancel(),{...e,rows:l,colIdx:-1})},KF=(e,t)=>{const{api:n,rows:r,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:c}=t;if(!(a||"key"in c&&WF(c)))return e;-1===o&&n?.begin(["/qHyperCubeDef"]);const u=((e,t,n,r,o)=>{if(!n.isSelectable)return t;const i=new Map(t);if("key"in r&&WF(r)){i.set(n.qElemNumber,n.rowIdx);const t=r.key===Vm.Down?1:-1,o=e[n.pageRowIdx+t][n.pageColIdx];return o.isSelectable&&i.set(o.qElemNumber,n.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),s=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=s;t++){const n=e[t][o.pageColIdx];n.isSelectable&&i.set(n.qElemNumber,n.rowIdx)}return i})(i,r,s,c,a);return FF(l,r,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},YF=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(n.values()),[r]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},XF=(e,t)=>{switch(t.type){case _O.Select:return GF(e,t.payload);case _O.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case _O.SelectMouseUp:return((e,t)=>YF(e.isSelectMultiValues||e.firstCell!==t.cell?e:GF(e,t)))(e,t.payload);case _O.SelectMultiAdd:return KF(e,t.payload);case _O.SelectMultiEnd:return YF(e);case _O.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case _O.Clear:return e.rows.size?{...e,rows:new Map}:e;case _O.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},JF=Og(e=>{const t=e(Eb);return function(e,t){return Og(e,function(e,n,r){n(this,t(e(this),r))})}({pageRows:e(j_).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},XF)}),ZF=Og(e=>e(e(JF)),(e,t,n)=>{t(e(JF),n)}),QF=Hx(e=>Og(t=>{const{colIdx:n,rows:r,api:o}=t(ZF);return"object"==typeof e&&o?.isModal()?n!==e.selectionColIdx?jO.Disabled:r.has(e.qElemNumber)?jO.Selected:jO.Possible:jO.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),e$=Og(e=>{const t=e(fz),n=e(Ub).width,r=e(_N);return t>0&&t+r<n}),t$=()=>{const[e,t]=M(!1);return Yk({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?Yt.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},n$=(e,{atTop:t,atBottom:n},r)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!r&&n?e.grid.divider:e.grid.border,borderBottomColor:r&&!t||!r&&t?e.grid.divider:e.grid.border}),r$=Og(e=>{const t=e(gb),n=e(Bb);if(void 0!==n)return async(e,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,c=o?i:i-t,u=await n.getEffectiveProperties(),{qInterColumnSortOrder:d}=u.qHyperCubeDef,p=[],f=r!==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})})}if(!l){const e=[i,...d.filter(e=>e!==i)];p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${e.join(",")}]`})}f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),n.applyPatches(p,!0)}}),o$=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},i$=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r})=>(e>n?e--:t>n&&(t--,e=r),[t,e]),a$=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r,lastRowIdx:o})=>(e<r?e++:t<o&&(t++,e=n),[t,e]),s$=e=>e.atTop?2:1,l$=(e,t)=>({top:e?s$(t):0,bottom:e&&t.atBottom?1:0}),c$=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],u$=e=>e?.setAttribute("tabIndex","0"),d$=e=>e?.setAttribute("tabIndex","-1"),p$=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(d$)},f$=e=>{e?.focus(),u$(e)},h$=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${Wm}`);f$(t)},0)},m$=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o,direction:i})=>{p$(t);const a=((e,t,n,r,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]=n;switch(e.key){case Vm.Down:c<s&&c++;break;case Vm.Up:c>a&&c--;break;case Vm.Right:if(i)break;[c,u]="rtl"===r?i$({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):a$({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case Vm.Left:if(i)break;[c,u]="rtl"===r?a$({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):i$({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case Vm.Home:(BF(e)||i)&&(c=a),i||(u=0);break;case Vm.End:(BF(e)||i)&&(c=s),i||(u=l);break;case Vm.PageDown:c=Math.min(s,c+10);break;case Vm.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,n,i,o),s=c$(t,a);return f$(s),((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(!n?.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[r].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-i.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),r(a),{nextCell:s,nextCellCoord:a}},g$=(e,t,n,r)=>{p$(t),n(e),r.enabled&&!r.active?r.focus?.():f$(c$(t,e))},b$=(e,t,n)=>{const r=e.currentTarget;if(!r)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${$m}`))return;const i=!!o&&r.contains(o);!n.enabled||t.current||i||(e=>{const t=e.querySelector(`.${FO.First}`),n=e.querySelector(`.${FO.Second}`);t&&n&&(t.textContent="",n.textContent="")})(r),((e,t,n)=>{const r=e.currentTarget;if(!n.enabled||t.current||!r)return;const o=e.relatedTarget??document.activeElement;o&&r.contains(o)||n.blur?.(!1)})(e,t,n)},v$=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),y$=Ec(Lh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:n,background:r,color:o})=>({...wN,...e,cursor:t.active?"pointer":"default",background:r,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?n:r}})),x$=Ec("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:yN,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),S$=parseInt(yN,10)/2,w$=Ec("div")({position:"absolute",bottom:-S$,left:`calc(50% - ${S$}px)`}),C$=Ec(Xh)({position:"sticky",top:0,zIndex:1}),E$={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},I$=Ec(md)({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"}}),A$=Ec("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isDual"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:n=!1,isNumeric:r=!1,isDual:o=!1})=>r&&!o||1===e&&!t?{...E$,whiteSpace:"nowrap",display:n?"block":void 0}:{...E$,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),R$=Ec("div",{shouldForwardProp:e=>"indentation"!==e&&"isFlex"!==e&&"justifyContent"!==e})(({indentation:e,isFlex:t,justifyContent:n})=>({width:"100%",height:"100%",boxSizing:"border-box",minWidth:0,paddingInlineStart:`min(${e}, 50%)`,...t&&{display:"flex",justifyContent:n,alignItems:"inherit"}})),D$=Ec("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),M$="cell-text",k$=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=Gg(ez);return o?Yt.jsx(A$,{"data-testid":M$,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:r,isHeadCell:!0,style:{direction:n?"ltr":void 0},children:e}):Yt.jsx(A$,{"data-testid":M$,ref:t,className:"sn-table-cell-text",isDual:i,isNumeric:n,lineClamp:a??s.grid.contentLineClamp,isPagination:r,style:{direction:n?"ltr":void 0},children:e})},T$=e=>{const{column:t,isInteractionEnabled:n,open:r,setOpen:o,isPagination:i,forwardRef:a}=e,s=Gg(vb),l=Gg(r$),c=Gg(Lb),u=Gg(Ab),d=Gg(Zg),p=Gg(Jb),f=Gg(Xg),h=Gg(uz)[t.pageColIdx],m=Gg($b),g=k(null),b=k(null),v=(({column:e,columnWidth:t})=>{const n=Gg(ez),{measureText:r}=Mm({fontSize:n.header.fontSize,fontFamily:n.header.fontFamily,fontWeight:xN});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=r(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:n,shouldShowLockIcon:r},o)=>{const i="A"===e?Yt.jsx(Kz,{height:yN,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(Jz,{height:yN,"data-testid":"head-cell-sort-descending-icon"}),a=n?Yt.jsx(x$,{align:t,dir:o,children:i}):void 0,s=r?Yt.jsx(PN,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Yt.jsx(v$,{height:yN,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return Yt.jsxs(qN,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:IN(t,i,c),children:[S,Yt.jsxs(TN,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,Yt.jsx(k$,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),n?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(uF,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[sF.Sorting]:!0,[sF.Searching]:!0,[sF.Selections]:!0,[sF.AdjusterHeaderSize]:!0},open:r,setOpen:o,interactions:u,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),l?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:h$},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),Yt.jsx(kN,{ref:b,direction:c,isPagination:i}),Yt.jsx(kN,{ref:g,direction:c})]}):null]})},q$=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),P$=(e,t)=>e.isCyclic&&t,L$=({column:e})=>{const t=Gg(ez),n=Gg(Lb),r=Gg($b),o=w.useRef(null),[i,a]=w.useState(!1),s=Sz({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(ON,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:Yt.jsx(q$,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),Yt.jsx(Bz,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(n)},enabled:!0,icon:uP,isActive:e.groupDimensionPos===n}))}]],anchorEl:o.current,direction:n,isPagination:!1})]})},O$=e=>e.isLocked,N$=({column:e})=>{const t=Gg(Xg),n=Gg(vb),r=Gg(db),o=Gg(ez);return Yt.jsx(ON,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,onClick:o=>{o.stopPropagation(),(async(e,t,n,r={warn:()=>{},error:()=>{}})=>{const o=Vz(t??"$",n);let i;try{const t=await(e?.createSessionObject(o));i=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){r.error({msg:"Failed to unlock field from table header",payload:e})}finally{i&&(await(e?.destroySessionObject(i))||r.error({msg:"Failed to destroy session object when unlocking field from table header"}))}})(t,n,e,r)},children:Yt.jsx(v$,{height:16,"data-testid":"head-cell-lock-icon"})})},j$=({column:e,menuIconRef:t,open:n,setOpen:r})=>{const o=Gg(ez);return Yt.jsx(ON,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:n,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),r(e=>!e)},ref:t,children:Yt.jsx(xz,{height:16})})},_$=({anchorRef:e,column:t,isPagination:n,listboxRef:r,open:o,setOpen:i})=>{const a=Gg(Xg),s=Gg(Lb),l=Gg(Zg),c=Gg(Ab),u=Gg($b),d=Gg(vb),p=Gg(Jb),f=Gg(r$);return Yt.jsx(uF,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[sF.Sorting]:!0,[sF.Searching]:!0,[sF.Selections]:!0,[sF.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),f?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:r},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:h$},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:n})},z$=Og();z$.onMount=e=>{const t=new Map,n=new ResizeObserver(e=>{for(const n of e){const e=t.get(n.target);e&&e.current(n)}});return e({callbacks:t,observer:n}),()=>{t.clear(),n.disconnect()}};const F$=({ref:e,callback:t})=>{const n=Gg(z$),r=k(t);r.current=t,j(()=>{const t=e.current;return void 0===n?()=>{}:(t&&(n.callbacks.set(t,r),n.observer.observe(t)),()=>{t&&(n.callbacks.delete(t),n.observer.unobserve(t))})},[e,r,n])},$$=Ec(md)({display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",boxSizing:"border-box"}),B$=({children:e})=>{const t=w.useRef(null),[n,r]=M(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=D(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=O(e=>{const t=new Set,n=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const r=e.props.minWidth+1;void 0===e.props.prio||i+r<=n?i+=r:t.add(e.key)}),r(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return F$({ref:t,callback:i}),Yt.jsx($$,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!n.has(e.key))})},H$=({children:e})=>e,V$=(e,t)=>!e.isLocked&&e.isDim&&t,W$=({column:e,open:t,setOpen:n})=>{const r=Gg(ez),o=Gg(vb),i=Gg(Lb),a=Gg(Zg);Gg(Xg);const s=w.useRef(null),l=O(()=>{n(!1)},[n]),c=Hz({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return Yt.jsx(ON,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),n(!0)},children:Yt.jsx(tF,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},U$=({column:e})=>{const{sortDirection:t,isActivelySorted:n}=e,r="A"===t?Yt.jsx(hN,{height:yN,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(dN,{height:yN,"data-testid":"head-cell-sort-descending-icon"});return n?Yt.jsx(w$,{children:r}):void 0},G$=0,K$=1,Y$=2,X$=3,J$=e=>{const{column:t,open:n,setOpen:r,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=Gg(ez),c=Gg(Lb),{measureText:u}=Mm(l.header),[d,p]=M(!1),f=k(null),h=k(null),m=k(null),g="number"==typeof a&&a>Um.PixelsMin+18;return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(B$,{children:[Yt.jsx(H$,{prio:Y$,minWidth:MN,children:O$(t)?Yt.jsx(N$,{column:t}):null},"Lock"),Yt.jsx(H$,{prio:K$,minWidth:MN,children:P$(t,s)?Yt.jsx(L$,{column:t}):null},"Cyclic"),Yt.jsx(H$,{ignore:!0,children:Yt.jsx(U$,{column:t})},"Sort"),Yt.jsx(H$,{minWidth:u(t.label)+8,children:Yt.jsx(LN,{justifyContent:t.headTextAlign,children:Yt.jsx(k$,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),Yt.jsx(H$,{prio:g?void 0:G$,minWidth:MN,children:d||V$(t,s)?Yt.jsx(W$,{open:d,setOpen:p,column:t}):null},"Search"),Yt.jsx(H$,{prio:X$,minWidth:MN,children:s?Yt.jsx(j$,{menuIconRef:m,column:t,open:n,setOpen:r}):null},"Menu")]}),s?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(kN,{ref:h,direction:c,isPagination:o}),Yt.jsx(kN,{ref:f,direction:c}),Yt.jsx(_$,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:n,setOpen:r})]}):null]})},Z$=Ec("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:n})=>({...t,background:e,color:n})),Q$=()=>{},eB=({column:e,isPagination:t})=>{const n=Gg(ez),r=Gg(Lb),o=Gg(e$),i=Gg(__),a=!1,s=Gg(Sb)?T$:J$;return Yt.jsx(Z$,{className:"sn-table-cell",applicableStyle:{...n.header,...n$(n,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:RN(r,a,o),borderLeftWidth:DN(r,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??n.header.background,color:e.headerColor?.color??n.header.color,children:Yt.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:Q$})})},tB=({isPagination:e})=>{const t=Gg(z_),[n,r]=M();Yk({onDragStart:e=>{const t=e.operation.source?.id;r(t)},onDragEnd:()=>{}});const o=n?t.find(e=>e.id===n):void 0;return o?Yt.jsx(Ak,{children:Yt.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:Yt.jsx(eB,{column:o,isPagination:e})})}):null},nB=Og(async e=>{e(fb);const t=e(Bb),n=await(t?.getEffectiveProperties());return n&&structuredClone(n)}),rB=wv(nB,e=>e),oB=Og(e=>e(rB)?.qHyperCubeDef),iB=[qM.configure({activationConstraints:[new DM.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],aB=QM.plugins.filter(e=>e!==eD),sB=(e,t,n)=>{const r=JSON.stringify(t),o=JSON.stringify(n);if(r!==o)return{qPath:e,qOp:"Replace",qValue:o}},lB=(e,t,n,r,o)=>{if(!e||!t||r===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,visibleColumnIds:r,sourceId:o,targetId:i})=>{const a=NP({qDimensions:e,qMeasures:t}),s=[...e,...t],l=r.findIndex(e=>e===o),c=r.findIndex(e=>e===i);if(l<0||c<0||l===c)return;const u=((e,t,n)=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r})(r,l,c),d=new Map(u.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const n=d.get(e.id),r=d.get(t.id);return void 0===n||void 0===r?0:n-r}),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:jP({previousColumns:s,nextColumns:m,qInterColumnSortOrder:n}),qColumnOrder:u.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:n.map(e=>e.id),sourceId:r,targetId:o});if(!i)return;const a=[sB("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),sB("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),sB("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),sB("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},cB=({children:e})=>{const t=Gg(Bb),n=Gg(oB),r=Gg(z_);return Yt.jsx(Ck,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&lB(t,n,r,o,i)},sensors:iB,plugins:aB,children:e})};function uB(e,t){const n=k(!1);P(()=>{n.current?e():n.current=!0},t)}const dB=(e,t)=>{const n=Gg(Fb);P(()=>{const r=e.current;if(!r)return;const o=e=>{b$(e,t,n)};return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}},[e,t,n])},pB=Og($O),fB=Hx(e=>Og(t=>{const[n,r]=t(pB);return 0===n&&r===e})),hB=()=>{const e=Gg(Jg);P(()=>{e.notifyIsDoneRendering()})};var mB={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 gB=Og(e=>{const t=e(Jb),n=e(Gb),r=e(db);let o;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(mB).forEach(t=>{e.add(mB[t])})}(t),({keys:e,politeness:i="polite"})=>{const a=e.map(e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)}).join(" "),s=n.querySelector(`.${FO.First}`),l=n.querySelector(`.${FO.Second}`);if(!s||!l)return void r.error({msg:"could not find aria-live elements, which means accessibility is not working properly"});let c;o===FO.First?(c=l,o=FO.Second):(c=s,o=FO.First),c.textContent=c.textContent?.endsWith(" ­")?a:`${a} ­`,c.setAttribute("aria-live",i)}}),bB=(e,t)=>{const n=Gg(gB),r=Gg(Gb),o=Gg(H_),i=Gg(B_),a=Gg($_),s=Gg(__),[l,c]=Yg(pB),u=Gg(Cb),d=Gg(Fb);uB(()=>{const t=((e,t,n=!1)=>{const r=[s$(t),e[1]];return n?r:$O})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(p$(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=c$(t,e);n.current?(f$(s),n.current=!1):u$(s),r&&(a({keys:[s?.textContent??""]}),$F(a,s,r))})({resetCellCoord:t,rootElement:r,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:n})},[a.length,i,o,t])},vB=e=>{vm(e),BF(e)&&Qm(e.currentTarget)},yB=e=>{UF(e.evt)&&(vm(e.evt),m$(e))},xB=e=>{const{evt:t,totalsPosition:n,cell:r,isSelectionMode:o}=e;if(!UF(t))return;vm(t);const i=((e,t)=>[e.pageRowIdx+s$(t),e.pageColIdx])(r,n),a=l$(o,n),{nextCell:s,nextCellCoord:l}=m$({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:n,selectionDispatch:r,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&n.isSelectable?r({type:_O.SelectMultiAdd,payload:{cell:n,evt:e,announce:o}}):$F(o,a,i)})({...e,nextCell:s})},SB=e=>{const{evt:t}=e;HF(t)?(({evt:e,totalRowCount:t,rowsPerPage:n,page:r,updateShouldRefocus:o,handleChangePage:i})=>{vm(e);const a=Math.ceil(t/n)-1;e.key===Vm.Right&&r<a?(o(),i(r+1)):e.key===Vm.Left&&r>0&&(o(),i(r-1))})(e):t.key===Vm.Esc?(({evt:e,keyboard:t,isSelectionMode:n})=>{t.enabled&&!n&&(vm(e),t.blur?.(!0))})(e):VF(t.key)&&vm(t)},wB=e=>{const{evt:t,selectionsAPI:n}=e;if(t.currentTarget.classList.contains(jO.Disabled))return void vm(t);const r={...e,isSelectionMode:!!n?.isModal()};switch(t.key){case Vm.Space:(({evt:e,cell:t,isSelectionsEnabled:n,selectionDispatch:r,announce:o})=>{vm(e),t.isSelectable&&n&&r({type:_O.Select,payload:{cell:t,evt:e,announce:o}})})(r);break;case Vm.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{vm(n),e&&(t?.confirm(),r({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(r);break;case Vm.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{e&&(vm(n),t?.cancel(),r({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(r);break;case Vm.C:vB(t);break;case Vm.Tab:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{const o=e.shiftKey||!r;t.enabled&&n&&o&&(vm(e),bm(e.currentTarget,t,e.shiftKey))})(r);break;default:xB(r)}},CB=e=>{const t=Gg(NN),n=Kg(jN),r=Kg(_N),o=Gg(NO),i=k();F$({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);r(e-o),n(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),P(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},EB=Ec("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),IB=Ec(_h,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),AB=Ec(wh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),RB=()=>Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(EB,{className:FO.First,"data-testid":FO.First,"aria-live":"polite","aria-atomic":"true"}),Yt.jsx(EB,{className:FO.Second,"data-testid":FO.Second,"aria-live":"polite","aria-atomic":"true"})]}),DB=e=>{const t=k(new Map),n=k(null);P(()=>{n.current=e(t.current),t.current.forEach((e,t)=>{n.current?.observe(t)});const r=t.current,o=n.current;return()=>{o.disconnect(),r.clear()}},[e,n,t]);const r=O((e,r)=>{t.current.set(e,r),n.current?.observe(e)},[t,n]),o=O(e=>{t.current.delete(e),n.current?.unobserve(e)},[n,t]);return D(()=>({addTask:r,removeTask:o}),[r,o])},MB=e=>new ResizeObserver(t=>{t.forEach(t=>{const n=e.get(t.target);n?.(t)})}),kB=()=>DB(MB),TB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Gg(Eb),r=Gg(Fb),o=Kg(ZF);P(()=>{const i=()=>{o({type:_O.Reset})},a=()=>{o({type:_O.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():r.enabled&&r.blur?.(!0),i()};return n?.on("deactivated",i),n?.on("canceled",i),n?.on("confirmed",s),n?.on("cleared",a),()=>{n?.removeListener("deactivated",i),n?.removeListener("canceled",i),n?.removeListener("confirmed",s),n?.removeListener("cleared",a)}},[n,r,o,e,t])},qB="min(50px, 20%)",PB=({bar:e,height:t})=>{const{value:n,offsetValue:r,columnMin:o,columnMax:i,isManualRange:a,thicknessPx:s,barEnd:l}=e,c=a?o:Math.min(o,0);let u=a?i:Math.max(i,0);u>c||(u=c+1);const d=r,p=r+n,f=n>=0,h=Math.min(d,p),m=Math.max(d,p),g=Math.round(((e,t,n)=>Math.max(t,Math.min(n,e)))(s??("none"===l?1*t:4),2,Math.max(2,t-2))),b=Math.min(((e,t)=>"circle"===e?2*t:"box"===e?t+4:0)(l,g),t),v=Math.min(d,p)<c,y=Math.max(d,p)>u,x="none"===l?25:10+("none"===l?0:b/2+2);return{rangeMin:c,rangeMax:u,hasRoomAtMin:e.hasNegativeValues??(a||c<0||!f),hasRoomAtMax:e.hasPositiveValues??(a||i>=0||f),low:h,high:m,valueEnd:f?m:h,growsTowardsHigh:f,overflowMin:v,overflowMax:y,hasBar:m>h&&m>c&&h<u,thicknessPx:g,capSize:b,hasZeroAxis:c<=0&&u>=0,oobSizePx:x}},LB=Ec("div")({position:"relative",width:"100%",overflow:"hidden"}),OB=Ec("div")({position:"absolute"}),NB=Ec("span")({position:"absolute",top:0,height:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),jB=Ec("svg")({position:"absolute",display:"block"}),_B=({shape:e,pointsRight:t,width:n,height:r})=>{if("slice"===e)return`M0 0L${n-8} ${r}L0 ${r}ZM8 0L${n} ${r}L${n} 0Z`;const o=n/2,i=o*Math.sin(Math.PI/3),a=t?o/2:1.5*o;return`M${a} ${o-i}L${t?n:0} ${o}L${a} ${o+i}Z`},zB=({height:e,theme:t,bar:n,direction:r,fontFamily:o,fontSize:i,textDecoration:a})=>{const s=(({bar:e,height:t,isRtl:n})=>{const r=PB({bar:e,height:t}),{rangeMin:o,rangeMax:i,low:a,high:s,overflowMin:l,overflowMax:c,thicknessPx:u,capSize:d,oobSizePx:p}=r,f=r.hasRoomAtMin?qB:"0px",h=r.hasRoomAtMax?qB:"0px",m=f,g=`calc(100% - ${h})`,b=e=>{const t=(Math.min(Math.max(e,o),i)-o)/(i-o);return`calc(${f} + ${t} * (100% - ${f} - ${h}))`},v="none"===e.barEnd,y=v?25:10,x=c?`max(${g} - ${p}px, ${l?m:b(a)})`:b(s),S=l?`min(${m} + ${p}px, ${c?g:b(s)})`:b(a),w=r.growsTowardsHigh?x:S,C=e=>Math.floor((t-e)/2),E=C(u),I=d>0?d/2+4:4,A=e=>{const t=v?u:10;return{key:e,shape:v?"slice":"triangle",pointsRight:"max"===e!==n,width:y,height:t,style:{..."min"===e?{insetInlineStart:f}:{insetInlineEnd:h},top:C(t),width:y,height:t}}};return{zeroAxis:r.hasZeroAxis?{insetInlineStart:`calc(${b(0)} - 0.5px)`,top:0,width:1,height:"100%"}:void 0,bar:r.hasBar?{insetInlineStart:S,width:`max(1px, ${x} - ${S})`,top:E,height:u}:void 0,cap:r.hasBar&&d>0?{insetInlineStart:`calc(${w} - ${d/2}px)`,top:C(d),width:d,height:d,borderRadius:"circle"===e.barEnd?"50%":void 0}:void 0,label:e.label?r.growsTowardsHigh?{insetInlineStart:c?`calc(${g} + 4px)`:l?`max(${x} + ${I}px, ${m} + ${y+4}px)`:`calc(${x} + ${I}px)`,insetInlineEnd:"4px",textAlign:"start"}:{insetInlineStart:"4px",insetInlineEnd:`calc(100% - ${l?`calc(${m} - 4px)`:c?`min(${S} - ${I}px, ${g} - ${y+4}px)`:`calc(${S} - ${I}px)`})`,textAlign:"end"}:void 0,markers:[l?A("min"):void 0,c?A("max"):void 0].filter(e=>void 0!==e)}})({bar:n,height:e,isRtl:"rtl"===r}),l=n.color??mm(t,n.colorPalette,t.getDataColorSpecials().primary),c=n.labelColor??mm(t,n.labelColorPalette,"inherit");return Yt.jsxs(LB,{"data-testid":"bar-container",role:"img","aria-label":n.label||n.fallbackLabel,title:n.label||n.fallbackLabel,dir:r,style:{height:e},children:[s.zeroAxis?Yt.jsx(OB,{"data-testid":"bar-zero-axis",style:{...s.zeroAxis,backgroundColor:"#d0d0d0"}}):null,s.bar?Yt.jsx(OB,{"data-testid":"bar",style:{...s.bar,backgroundColor:l}}):null,s.cap?Yt.jsx(OB,{"data-testid":"bar-end-cap",style:{...s.cap,backgroundColor:l}}):null,s.label?Yt.jsx(NB,{"data-testid":"bar-label",style:{...s.label,fontFamily:o,fontSize:i??"14px",textDecoration:a,lineHeight:`${e}px`,color:c},children:n.label}):null,s.markers.map(e=>Yt.jsx(jB,{"data-testid":`bar-oob-${e.key}`,width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:e.style,children:Yt.jsx("path",{d:_B(e),fill:l})},e.key))]})},FB=e=>{e.stopPropagation()},$B=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:FB,color:dm.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),BB=({href:e,text:t,interactions:n,color:r})=>Yt.jsx(Op,{...$B({href:e,text:t,interactions:n,color:r}),children:t}),HB=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),VB=window.cancelIdleCallback??(e=>{clearTimeout(e)});let WB=0,UB=0,GB=0;const KB="qDimensionInfo/0",YB="qMeasureInfo/0",XB="x",JB="y",ZB=e=>({key:"bars",type:"box",data:{extract:{field:KB,props:{start:0,end:{field:YB}}}},settings:{major:{scale:XB},minor:{scale:JB},box:{maxWidthPx:8,fill:{fn:e}}}}),QB=e=>({key:"p",type:"point",data:{extract:{field:KB,props:{y:{field:YB}}}},settings:{x:{scale:XB},y:{scale:JB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),eH=({qNum:e})=>void 0===e?0:Math.sign(e),tH=(e,t)=>{const{primary:n,nil:r,others:o}=e.getDataColorSpecials(),i=mm(e,t?.negative,n),a=mm(e,t?.positive,n);return{key:"pos-neg",type:"box",data:{extract:{field:KB,props:{start:0,end:{field:YB,value:eH}}}},settings:{major:{scale:XB},minor:{scale:JB},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?r:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},nH=(e,{type:t,showDots:n,colors:r,colorMin:o,colorMax:i})=>{const a=((e,t,n,r)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=mm(e,t?.main,o),l=mm(e,t?.max,s),c=mm(e,t?.min,s),u=mm(e,t?.first,s),d=mm(e,t?.last,s);return e=>{const t=JB in e.datum?JB:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=r?l:e.datum[t].value<=n?c:e.data.items.at(0)===e.datum?u:e.data.items.at(-1)===e.datum?d:s}})(e,r,o,i);switch(t){case"bars":return[ZB(a)];case"dots":return[QB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:KB,props:{v:{field:YB}}}},settings:{coordinates:{major:{scale:XB},minor:{scale:JB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(mm(e,r?.main,e.getDataColorSpecials().primary));return n?[t,QB(a)]:[t]}case"posNeg":return[tH(e,r)];default:return[]}},rH=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"}),oH=(e,t,n,r)=>({y:{data:{field:YB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:n},x:{data:{extract:{field:KB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===r,align:"rtl"===r?1:0,maxPxStep:12}}),iH=K();iH.use(G),iH.renderer.prio(["canvas"]);const aH={resolve:()=>{},promise:{}},sH=({chart:e,element:t,theme:n,isSnapshot:r,direction:o,miniChartData:i,downloadService:a})=>{const{resolveChartPromise:s,addChartPromiseToQueue:l}=(e=>{const t=k(e.isDownloadedAsPDForImage?Rt():aH);return{addChartPromiseToQueue:O(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(a),c=k(null),u=O(()=>{null!==t.current&&null===e.current&&(l(),c.current=(e=>{const t=performance.now();if(t-WB>50&&(WB=t,UB=0),UB+=1,0===GB&&UB<=20)return e(),()=>{};GB+=1;let n=!1;const r=()=>{n||(n=!0,GB-=1)},o=HB(()=>{r(),e()},{timeout:2e3});return()=>{VB(o),r()}})(()=>{c.current=null,t.current&&(e.current=(({element:e,theme:t,isSnapshot:n,miniChartData:r,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:c}=r;return iH.chart({element:e,data:{type:"q",key:"qHyperCube",data:rH(s)},settings:{scales:oH(a,l,c,i),components:nH(t,r),strategy:n?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:r,miniChartData:i,direction:o,onChartRendered:s}))}))},[t,e,l,n,r,i,o,s]);return{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:O(()=>{c.current?.(),c.current=null,s()},[s])}},lH=e=>{const t=k(null),n=k(!1);return O(r=>{const o=r.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(VB(e.current),e.current=null)})(t),n.current?0!==o?null!==e.current&&(t.current=HB(()=>{e.current?.update()},{timeout:2e3})):n.current=!1:n.current=!0},[e])},cH=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:n,isSnapshot:r,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:u}=sH({element:s,chart:l,theme:n,isSnapshot:r,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:r,chart:o})=>{const i=O(e=>{e.isIntersecting?r():n()},[r,n]);P(()=>{if(!e.current||!t)return()=>{};const r=e.current;return t.addTask(r,i),()=>{t.removeTask(r),n(),o.current?.destroy(),o.current=null}},[o,e,t,n,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:u,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionObserverTaskScheduler:r})=>{P(()=>r?()=>{}:(e(),()=>{t(),n.current?.destroy(),n.current=null}),[r,t,e,n])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:u,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:n})=>{const r=lH(t);P(()=>{const t=e.current;return t?(n.addTask(t,r),()=>{n.removeTask(t)}):()=>{}},[e,r,n])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},uH=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=cH({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return Yt.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},dH=e=>{let t="center",n="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?n="left":"flex-end"===e?.horizontal&&(n="right"),`${n} ${t}`},pH=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},fH=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const o=Gg(Lb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=Yt.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:n,objectFit:pH(s),objectPosition:dH(l),overflow:"hidden"}});return r?Yt.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?n:"100%",overflow:"hidden",display:"flex",justifyContent:c?CN(o,e):void 0},children:u}):u},hH=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&mN[t];return o&&Yt.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:Yt.jsx(o,{style:{height:e}})})},mH=({representation:e,cellValue:t,paginationCellAlign:n})=>{const r=Gg(ez),o=Gg(Lb),i=Gg(Xb),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=gN(e,t,o,i),d=(p=r.measure.values.fontSize,parseInt(p||yN,10));var p;const{color:f,iconKey:h,position:m}=u||{};return l?Yt.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?f:void 0},children:["left"===m&&hH({size:d,iconKey:h,color:f}),Yt.jsx(k$,{isNumeric:!0,children:a}),"right"===m&&hH({size:d,iconKey:h,color:f})]}):hH({size:d,iconKey:h,color:f})},gH=(e,t,n)=>e.contentStaticLineCount?t*(n??e.grid.contentLineClamp):t,bH=({forwardRef:e,cell:t,style:n,isBlank:r,virtualizedCell:o,lineClamp:i,intersectionObserverTaskScheduler:a,resizeObserverTaskScheduler:s,paginationCellAlign:l})=>{const c=Gg(ez),u=Gg(rz),d=Gg(Jg),p=Gg(fb),f=Gg(Xb),h=Gg(Lb),m=Gg(Ab),g=Gg(Cb);if(r)return null;if(t.representation.type===WP.Image&&!t.representation.url?.trim())return null;if(t.representation.type===WP.Image)return Yt.jsx(fH,{representation:t.representation,textStyle:n,maxImageHeight:gH(c,u,i),wrapInContainer:!o});const b=WO(t.qIsNull?t.representation.text:t.qNum);let v=t.representation;if(t.qIsNull&&t.isNumeric&&!Number.isNaN(b)){const e=t.formattedNullValueText??f_(b,t.qNumFormat,t.qIsAutoFormat);v={...t.representation,text:e}}let y=v.text;return t.representation.type!==WP.Link||g||t.isNull||(y=Yt.jsx(BB,{href:t.representation.url,text:t.representation.text,interactions:m,color:n.cellForegroundColor})),t.representation.type!==WP.Indicator||Number.isNaN(b)?t.representation.type===WP.MiniChart&&t.representation.miniChart&&!t.isNull?Yt.jsx(uH,{height:gH(c,u,i),intersectionObserverTaskScheduler:a,resizeObserverTaskScheduler:s,miniChartData:t.representation.miniChart,theme:f,isSnapshot:!!p.snapshotData,direction:h,downloadService:d}):t.representation.type===WP.Bar&&t.representation.bar&&!t.isNull?Yt.jsx(zB,{height:gH(c,u,i),bar:t.representation.bar,theme:f,direction:h,fontFamily:c.measure.values.fontFamily,fontSize:n.fontSize??c.measure.values.fontSize,textDecoration:n.textDecoration}):Yt.jsx(k$,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:i,isPagination:!o,children:y}):Yt.jsx(mH,{representation:v,cellValue:b,paginationCellAlign:o?void 0:l})},vH=e=>{const t=Yt.jsx(bH,{...e});return e.indentation?Yt.jsx(R$,{indentation:e.indentation,isFlex:!!e.virtualizedCell,justifyContent:e.justifyContent,children:t}):t},yH=()=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:Yt.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),xH=Ec("div")({"& path":{stroke:"none !important"}}),SH=({children:e,cellSelectionState:t,hideTickIcon:n})=>t!==jO.Selected||n?e:Yt.jsxs(D$,{children:[e,Yt.jsx(xH,{children:Yt.jsx(yH,{})})]}),wH=e=>{const t=function(){const e=Ek(),t=ak(()=>null==e?void 0:e.dragOperation.source,[e]),n=ak(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return n.value}}}();return t.source&&t.source.id!==e?.5:1},CH=(e,t,n,r)=>({handleMouseDown:r=>{e?.(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{n({type:_O.SelectMultiEnd})};n({type:_O.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:_O.SelectMultiAdd,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:_O.SelectMouseUp,payload:{cell:t,evt:e,announce:r}})}}),EH=e=>{const t=Gg(V_),n=Gg(__),r=Gg(gB),o=Gg(Gb),i=Gg(Lb),a=Kg(pB),s=Kg(ZF),l=Gg(Fb),c=Gg(Mb),u=Gg(Eb),d=d=>{wB({evt:d,rootElement:o,selectionsAPI:u,cell:e,selectionDispatch:s,isSelectionsEnabled:c,setFocusedCellCoord:a,announce:r,keyboard:l,paginationNeeded:t,totalsPosition:n,direction:i})},p=e=>{((e,t)=>{e.key===Vm.Shift&&t({type:_O.SelectMultiEnd})})(e,s)},f=()=>{((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;g$([s,a],t,n,r)})(e,o,a,l,n)};if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=CH(f,e,s,r);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},IH=e=>{P(()=>()=>{QF.remove(e)},[e])},AH=(e,t,n,r)=>{if(!n.isNull)return e;const o=r?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=r?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=r?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},RH=(e,t,n)=>{const{color:r,background:o}=e.grid.zebraStripes[n];return{...t,...r?{color:r}:void 0,...o?{background:o}:void 0}},DH=(e,t,n)=>{if(t.grid.zebraStripes.show){const r=(n.rowIdx+1)%2==0;return RH(t,e,r?"even":"odd")}return e},MH=(e,t)=>{const n=Gg(ez),r=Gg(QF(e)),o=Gg(ub),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS"),a=o("TLV_2710_TABLE_BLANK_TAG"),s=(e.isNull||!(i&&t.isDim))&&JN(e.qAttrExps,t.qAttrExprInfoIDs,a);IH(e);let l=t.isDim?n.dimension.values:n.measure.values;l=DH(l,n,e),l=i?n.subTotalRow:l,l=AH(l,n,e,t.isDim);const c=e.isNull||i&&t.isDim?l:ZN(l,e.qAttrExps,t.qAttrExprInfoIDs),u=i?c:function(e,t,n){return t===jO.Selected?{...e,...n}:t===jO.Disabled?{...e,background:`${bN}, ${e.background}`}:e}(c,r,n.selectedColors);return{cellStyle:{...u,borderColor:n.grid.border},representationStyle:c,isBlank:s,indentation:QN(e,t,o),cellSelectionState:r}},kH=Ec(Mh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),TH=Ec(Xh,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:n})=>({height:n,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),qH=Ec(Lh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...wN,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),PH=Ec(Lh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...wN,...e,fontWeight:xN,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?n:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),LH=({cell:e,column:t,columnIndex:n,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o})=>{const i=Gg(Lb),a=Gg(Ab),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=EH(e),{cellStyle:p,representationStyle:f,isBlank:h,indentation:m,cellSelectionState:g}=MH(e,t),b=wH(t.id);return Yt.jsx(qH,{cellStyle:{...p,opacity:b},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${g} ${Hm}`,title:a.passive&&!h?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:Yt.jsx(SH,{cellSelectionState:g,hideTickIcon:!!e.isTotalRow,children:Yt.jsx(vH,{cell:e,style:f,isBlank:h,indentation:m,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o,paginationCellAlign:AN(i,e.align)})})})},OH=Og(0),NH=({column:e,totalsPosition:t,onKeyDown:n,onMouseDown:r})=>{const o=Gg(ez),i=Gg(Db),a=Gg(OH),s=wH(e.id);return Yt.jsx(PH,{totalsStyle:{...o.totalRow,...n$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Hm}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:n,onMouseDown:r,children:Yt.jsx(k$,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},jH=()=>{const e=Gg(__),t=Gg(z_),n=Gg($_),r=Gg(Gb),o=Gg(Rb),i=Gg(Lb),a=Kg(pB),s=Gg(Cb),l=Gg(Fb);return Yt.jsx(Xh,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:n.length+1,c];return Yt.jsx(NH,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:n,isInteractionEnabled:r}=e;if(!t&&r)switch(n.key){case Vm.C:vB(n);break;case Vm.Space:n.preventDefault();break;default:yB(e)}else vm(n)})({evt:e,rootElement:r,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{g$(u,r,a,l)}},t.id)})})};var _H=z(jH);const zH=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Gg($_),r=Gg(__),o=Gg(z_),i=Gg(ez),a=Gg(oz),s=Gg(iz),l=Gg(fb),c=!!KN(l)?.content?.hoverEffect;TB({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=O(t=>new IntersectionObserver(e=>{e.forEach(e=>{const n=t.get(e.target);n?.(e)})},{root:e.current}),[e]);return DB(t)})(t),d=kB();return Yt.jsxs(kH,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[r.atTop?Yt.jsx(_H,{}):void 0,n.map((e,t)=>{const n=e.at(0)?.isTotalRow??!1;return Yt.jsx(TH,{hoverColors:i.grid.hoverColors,hover:c,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:n?s:a,children:o.map((t,n)=>{const{id:r}=t,o=e[n];return Yt.jsx(LH,{columnIndex:n,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},r)})},`row-${t}`)}),r.atBottom?Yt.jsx(_H,{}):void 0]})};var FH=z(zH);const $H=(e,t)=>!!e?.skipHeader||!!t.hideHeader,BH=Og(e=>{const t=e(fb),n=e($b);if(n)return(e,{isDim:r,colIdx:o})=>{const i=r?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[r?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};n.applyPatches([l],!0)}}),HH=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,a=Gg(BH),s=Gg(Lb),l=Gg(Rb),c=Gg(Jb),[u,d]=Yg(uz);if(!l)return null;return Yt.jsx(yz,{columnWidth:u.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{n?.();const t=[...u];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{d$(e);const t=e.closest(".sn-table-cell");f$(t)})(e.currentTarget)},setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},VH=e=>e.target?.getAttribute("class")?.includes(Wm),WH=({isInteractionEnabled:e,column:t})=>{const[n,r]=M(!1),o=Gg(r$),i=Gg(NN);return{open:n,setOpen:r,handleOpenMenu:t=>{!e||VH(t)||i||r(!0)},toggleSortOrder:n=>{e&&!VH(n)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(n)&&(n.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var UH=class extends wI{constructor(e,t){super(e,t),this.boundingRectangle=ES(null),this.destroy=LS(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:n}=t;if(n.initialized){const{element:e}=this.options,n="function"==typeof e?e(t):e;if(!n)return;let r;const o=()=>{this.boundingRectangle.value=NI(n)},i=()=>{r||(r=setTimeout(()=>{o(),r=void 0},25))},a=new ResizeObserver(o);return a.observe(n),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:n}=e;if(!t)return n;const r=this.boundingRectangle.value;if(!r)return n;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,n){const r=uT({},t);return e.boundingRectangle.top+t.y<=n.top?r.y=n.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=n.top+n.height&&(r.y=n.top+n.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=n.left?r.x=n.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=n.left+n.width&&(r.x=n.left+n.width-e.boundingRectangle.right),r}(new eC(l,c,s,a),n,r);return u}};UH.configure=zC(UH);const GH=({invert:e})=>({dragOperation:t,droppable:n})=>{if(!n.shape)return null;const{shape:r}=t;if(!r)return null;const o=function(e){return e.sortable?.index}(n);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}=r.current;return"left"===a&&l.left+.3*l.width<=n.shape.center.x||"right"===a&&l.right-.3*l.width>=n.shape.center.x?{id:n.id,value:1/Qw.distance(n.shape.center,s),type:XE.Collision,priority:YE.Normal}:null},KH=[UH.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],YH=(e,t)=>{const n=Gg(Lb),r=!Gg(Tb);return Rq({id:e.id,disabled:r,index:t,type:"item",accept:"item",group:"column",modifiers:KH,data:e,plugins:e=>[...e,XD.configure({feedback:"clone"})],collisionDetector:GH({invert:"rtl"===n})})},XH=({column:e,columnIndex:t,columnsLength:n})=>{const r=Gg(ez),o=Gg(Gb),i=Gg(Lb),a=Gg(Ab),s=Gg(z_),l=Gg(__),c=Gg(uz)[t],u=Kg(pB),d=Gg(fB(t)),p=Gg(Tb),f=Gg(Fb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=WH({isInteractionEnabled:p,column:e}),v=Kg(NN),{ref:y,isDragging:x}=YH(e,t),S=wH(e.id),w=Gg(Sb),C=w?T$:J$,E=e.isActivelySorted?zO[e.sortDirection]:void 0,I=h?Bm:void 0,A=h?"true":void 0,R=t===n-1,D=[0,e.pageColIdx],M={width:c,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return Yt.jsxs(y$,{"data-dragging":x,ref:y,headerStyle:{...r.header,...n$(r,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground:e.headerColor?.background??r.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,color:e.headerColor?.color??r.header.color,interactions:a,style:M,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Hm}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:n,handleOpenMenu:r}=e;if(t)switch(n.key){case Vm.C:vB(n);break;case Vm.Enter:case Vm.Space:r?.(n);break;default:yB(e)}else vm(n)})({evt:e,rootElement:o,cellCoord:D,setFocusedCellCoord:u,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&g$(n,t,r,o)})({evt:e,rootElement:o,cellCoord:D,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":I,"aria-expanded":A,"aria-haspopup":"true",children:[Yt.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),Yt.jsx(HH,{column:e,isLastColumn:R,setIsAdjustingWidth:v})]},e.id)},JH=()=>{const e=Gg(z_),t=Gg(ez),n=Gg(fb),r=Gg(Nb),o=Kg(OH),i=Gg(uz),a=k(null),s=$H(r,n);return P(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),Yt.jsx(Vh,{style:{visibility:s?"collapse":void 0},children:Yt.jsx(C$,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,n)=>Yt.jsx(XH,{column:t,columnIndex:n,columnsLength:e.length},t.id))})})};var ZH=z(JH);var QH=z(()=>{const e=Gg(gB),[t,n]=Yg(M_),{page:r,rowsPerPage:o}=t,i=Gg(Ob),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=Gg(j_),p=Gg(ez),f=Gg(Wj),h=Gg(fb),m=Gg(Xb),g=Gg(Ub),b=Gg(Gb),v=Gg(Nb),y=Gg(Lb),x=Gg(Ab),S=Gg(Jb),w=Gg(e$),C=Kg(ZF),E=Gg(Cb),I=Gg(Fb),A=k(!1),R=k(null),D=k(null),M=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=qb(h,v),q=T?f.scrollLeft??0:0,L=T?f.rowPartialHeight??0:0,N=O(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=O(r=>{n({...t,page:r}),e({keys:[["SNTable.Pagination.PageStatusReport",(r+1).toString(),l.toString()]],politeness:"assertive"})},[t,n,l,e]),_=O(r=>{n({...t,page:0,rowsPerPage:r}),e({keys:[["SNTable.Pagination.RowsPerPageChange",r.toString()]],politeness:"assertive"})},[e,t,n]);return(e=>{const t=Gg(Lb),n=Gg(Wj);P(()=>{const r=e.current;if(!r)return;const o=e=>{((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth,{scrollLeft:o}=n;let i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&e.preventDefault()})(e,"rtl"===t,r)},i=e=>{n.scrollLeft=e.currentTarget?.scrollLeft||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}},[e,t,n])})(R),dB(D,A),(()=>{const e=Gg(Gb),t=Gg(Fb),n=Gg(pB);Om(()=>{const r=c$(e,n);t.active?f$(r):(r?.blur(),p$(e))},[t.active,e])})(),bB(A,r),P(()=>{const e=R.current;e&&(e.scrollLeft=q,e.scrollTop=L)},[t,s,q,L]),uB(()=>{C({type:_O.UpdatePageRows,payload:{pageRows:u}})},[u]),hB(),CB(R),Yt.jsxs(cB,{children:[Yt.jsxs(I$,{ref:D,dir:y,onKeyDown:e=>{SB({evt:e,totalRowCount:s,page:r,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:I,isSelectionMode:E})},"data-testid":"sn-table",children:[Yt.jsx(RB,{}),Yt.jsxs(IB,{ref:R,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[Yt.jsxs(AB,{stickyHeader:!0,"aria-label":M,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[Yt.jsx(ZH,{}),Yt.jsx(FH,{updateShouldRefocus:N,tableWrapperRef:D})]}),Yt.jsx(t$,{})]}),Yt.jsx(zF,{footerContainer:i,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:I,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),Yt.jsx(tB,{isPagination:!0})]})});const eV=Og(0),tV=Og(e=>{const t=e(hb);return Math.min(ej,t)}),nV=Og(e=>{const t=e(hb);return t===ej?0:Math.floor(t/ej)}),rV=Og(e=>{const t=e(eV),n=e(nV);return Math.min(t,n)}),oV=Og(e=>({page:e(rV),rowsPerPage:e(tV),rowsPerPageOptions:[]}),(e,t,n)=>{const r=e(nV);t(eV,Math.max(0,Math.min(n,r)))}),iV=Og(null),aV=Og(null),sV=Og(e=>{const t=e(oV),n=e(hb);return Math.min(t.rowsPerPage,n-t.page*t.rowsPerPage)}),lV=Og(null),cV=Og(null),uV=Og(e=>e(__).atTop?2:1),dV=Og(e=>e(__).atTop?1:e(uV)+e(sV)),pV=Og(e=>l$(Boolean(e(Cb)),e(__))),fV=Og(e=>({firstBodyRowIdx:e(uV),totalsRowIdx:e(dV),allowedRows:e(pV)})),hV=Og(e=>({rootElement:e(Gb),totalsPosition:e(__),rowCount:e(sV),colCount:e(F_),columnWidths:e(uz)})),mV=Og(e=>({scrollToCell:e(lV),scrollableContainerElement:e(cV)})),gV=Og(e=>({keyboard:e(Fb),isInSelectionMode:e(Cb),selectionsAPI:e(Eb),isSelectionsEnabled:e(Mb)})),bV=Og(e=>({direction:e(Lb),isInteractionEnabled:e(Tb),paginationNeeded:e(V_),announce:e(gB),shouldRefocusRef:e(iV)})),vV=10,yV=e=>e.atTop?2:1,xV=(e,[t,n],r,o)=>{const i=yV(r);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${n}"]`);if(r.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${n}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${n}"]`):e.querySelector(`.sn-table-totals-row [data-col="${n}"]`)},SV=(e,t,n,r,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=n,d=c-yV(r),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 n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom&&n.left>=r.left&&n.right<=r.right})(xV(t,n,r,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},wV=(e,t,n,r,o,i)=>e<i?[t,e+1]:t<r?[t+1,o]:[t,e],CV=(e,t,n,r,o,i)=>e>o?[t,e-1]:t>n?[t-1,i]:[t,e],EV=(e,[t,n],r,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,c=a.top,u=r-1-a.bottom,d=o-1;switch(e.key){case Vm.Down:case Vm.Up:t=((e,t,n,r)=>e===Vm.Down&&t<r?t+1:e===Vm.Up&&t>n?t-1:t)(e.key,t,c,u);break;case Vm.Right:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?CV(e,t,n,0,o,i):wV(e,t,0,r,o,i))(n,t,c,u,0,d,i));break;case Vm.Left:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?wV(e,t,0,r,o,i):CV(e,t,n,0,o,i))(n,t,c,u,0,d,i));break;case Vm.Home:l?t=Math.max(c,t-vV):(BF(e)&&(t=c),n=0);break;case Vm.End:l?t=Math.min(u,t+vV):(BF(e)&&(t=u),n=d);break;case Vm.PageDown:t=Math.min(u,t+vV);break;case Vm.PageUp:if(l)t=Math.max(c,t-vV);else{const e=s?yV(s):1,n=t-e;t=n>0&&n<=vV?e:Math.max(c,t-vV)}}return[t,n]},IV=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},AV=[Vm.Home,Vm.End,Vm.PageUp,Vm.PageDown],RV=()=>{const e=k(!1),t=k(0),n=k(0),r=k(null),o=k(null),i=k(null),a=k(0),s=Kg(pB),l=Kg(ZF),c=Gg(ub)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=Gg(hV),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=Gg(fV),{scrollToCell:v,scrollableContainerElement:y}=Gg(mV),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=Gg(gV),{direction:E,announce:I,isInteractionEnabled:A,paginationNeeded:R,shouldRefocusRef:M}=Gg(bV),T=D(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let n=0;n<e.length;n++)t[n+1]=t[n]+(e[n]??0);return t})(h),[h]);P(()=>()=>{t.current+=1,n.current+=1,a.current+=1,r.current?.(),r.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const q=O((e,t,n,r)=>{const o=t=>{if(r&&!r())return void n?.(!1);const i=xV(u,e,d,p);if(i)return document.activeElement!==i&&o$(i),document.activeElement===i?void n?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void n?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):n?.(!1)};requestAnimationFrame(()=>{o(t)})},[u,d,p]),L=O((e,t)=>{const r=a.current+1;a.current=r;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==r)return;if(n.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,M&&(M.current=!0),o.current?.(),o.current=SV(v,u,e,d,p,y,10,()=>a.current===r&&n.current===t,()=>{q(e,300,()=>{M&&(M.current=!1)},()=>a.current===r&&n.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[q,u,p,v,y,M,d]),N=O(()=>(M&&(M.current=!0),t.current+=1,t.current),[M]),j=O(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=O((e,n)=>{const r=o=>{t.current===e&&(i.current?.(),i.current=SV(v,u,n,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=xV(u,n,d,p);i&&document.activeElement!==i&&o$(i),o>0?requestAnimationFrame(()=>{r(o-1)}):t.current===e&&M&&(M.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{r(300)})})},[u,d,p,v,M,y]),z=O((e,t)=>{if(!UF(e))return;vm(e),j(),n.current+=1;const o=n.current;a.current+=1,r.current?.(),r.current=null;const i=((e,t)=>yV(t)+e+(t.atBottom?1:0))(p,d),l=EV(e,t,i,f,E,g,d);IV(u),s(l);const[,c]=l,[,h]=t;return c!==h&&((e,t,n)=>{if(!e)return;const r=t[n]??0,o=t[n+1]??r,{scrollLeft:i,clientWidth:a}=e;r<i?e.scrollLeft=r:o>i+a&&(e.scrollLeft=o-a)})(y,T,c),M&&(M.current=!0),r.current=SV(v,u,l,d,p,y,10,()=>n.current===o,()=>{q(l,300,t=>{var n;M&&(M.current=!1),t&&(n=e.key,AV.includes(n))&&L(l,o)},()=>n.current===o)}),l},[u,d,p,f,E,v,s,g,y,M,q,j,T,L]),F=O(e=>{e.key===Vm.Esc?x.enabled&&!S&&(vm(e),x.blur?.(!0)):VF(e.key)&&vm(e)},[x,S]),$=O((e,t,n)=>{switch(e.key){case Vm.C:vm(e),A&&(e.ctrlKey||e.metaKey)&&Qm(e.currentTarget);break;case Vm.Enter:case Vm.Space:if(!A){vm(e);break}n?.(e);break;default:z(e,[0,t])}},[z,A]),B=O((t,r,o,i)=>{const a=[r+m,o];switch(t.key){case Vm.Space:if(vm(t),i.isSelectable&&C){e.current=!0;const n=N();l({type:_O.Select,payload:{cell:i,evt:t,announce:I}}),_(n,a)}break;case Vm.Enter:if(vm(t),e.current=!1,S){N(),s($O),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),n.current+=1;const t=n.current;q($O,300,()=>{M&&(M.current=!1)},()=>n.current===t)}break;case Vm.Esc:if(e.current=!1,S){vm(t);const e=N();w?.cancel(),_(e,a)}break;case Vm.C:vm(t),A&&(t.ctrlKey||t.metaKey)&&Qm(t.currentTarget);break;case Vm.Tab:{const e=t.shiftKey||!R;x.enabled&&S&&e&&(vm(t),bm(t.currentTarget,x,t.shiftKey));break}default:{const n=t.key===Vm.Left||t.key===Vm.Right,r=S||Boolean(w?.isModal())||e.current;if(n&&r){vm(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:_O.SelectMultiAdd,payload:{cell:i,evt:t,announce:I}});break}}},[m,z,C,l,I,S,w,x,R,A,N,_,s,v,y,q,M]),H=O(t=>{t.key===Vm.Space&&(e.current=!1),t.key===Vm.Shift&&l({type:_O.SelectMultiEnd})},[l]),V=O((e,t)=>{if(S)vm(e);else{if(e.key!==Vm.Space)return e.key===Vm.C?(vm(e),void(A&&(e.ctrlKey||e.metaKey)&&Qm(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,A]),W=O(e=>{j(),n.current+=1;const t=n.current;IV(u),s(e),x.enabled&&x.focus?.(),q(e,2,n=>{n&&L(e,t)},()=>n.current===t)},[u,s,x,q,j,L]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:B,handleBodyKeyUp:H,handleTotalsKeyDown:V,focusHeadCellOnClick:O(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:O((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:O(e=>{c&&W([b,e])},[W,b,c])}};var DV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function MV(e,t){return e===t||!(!DV(e)||!DV(t))}function kV(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!MV(e[n],t[n]))return!1;return!0}function TV(e,t){var n;void 0===t&&(t=kV);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var qV="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function PV(e){cancelAnimationFrame(e.id)}function LV(e,t){var n=qV();var r={id:requestAnimationFrame(function o(){qV()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var OV=-1;function NV(e){if(void 0===e&&(e=!1),-1===OV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),OV=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return OV}var jV=null;function _V(e){if(void 0===e&&(e=!1),null===jV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?jV="positive-descending":(t.scrollLeft=1,jV=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),jV}return jV}var zV=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function FV(e){var t,n=e.getColumnOffset,r=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 r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Wc(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Wc(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=TV(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=TV(function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=TV(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(_V()){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-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&PV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=LV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Oc(t,e),t.getDerivedStateFromProps=function(e,t){return $V(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=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=NV();void 0!==r&&(r=Math.max(0,Math.min(r,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!==r?l(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(_V()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&PV(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=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?zV:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],I=this._getVerticalRangeToRender(),A=I[0],R=I[1],D=[];if(r>0&&g)for(var M=A;M<=R;M++)for(var k=w;k<=E;k++)D.push(C(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,k)}));var T=a(this.props,this._instanceProps),q=s(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Ln({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(c||u||"div",{children:D,ref:l,style:{height:T,pointerEvents:x?"none":void 0,width:q}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],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 r){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,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(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,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||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}(H),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var $V=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},BV=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},HV=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},VV=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var c=a+1;c<=n;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},WV=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?UV(e,t,n,i,0,r):GV(e,t,n,Math.max(0,i),r)},UV=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=VV(e,t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},GV=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&VV(e,t,r,n).offset<o;)r+=a,a*=2;return UV(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},KV=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=VV(e,t,n,i),c="column"===e?HV(t,i):BV(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=u+s?"auto":"center"),r){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}},YV=FV({getColumnOffset:function(e,t,n){return VV("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return WV("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=VV("column",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=VV("column",e,c,r).size;return c},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:BV,getEstimatedTotalWidth:HV,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return KV("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return KV("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return VV("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return WV("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=VV("row",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=VV("row",e,c,r).size;return c},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),XV=function(e,t){return e};function JV(e){var t,n=e.getItemOffset,r=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 r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,Wc(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Wc(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=TV(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=TV(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._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},r._getItemStyleCache=void 0,r._getItemStyleCache=TV(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(_V()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&PV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=LV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Oc(t,e),t.getDerivedStateFromProps=function(e,t){return ZV(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?NV():0:l.scrollHeight>l.clientHeight?NV():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(_V()){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&&PV(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=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?XV:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],I=w[1],A=[];if(c>0)for(var R=E;R<=I;R++)A.push(C(t,{data:u,key:p(R,u),index:R,isScrolling:b?y:void 0,style:this._getItemStyle(R)}));var D=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Ln({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:A,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?D:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.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,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(H),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ZV=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},QV=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.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=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},eW=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=QV(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},tW=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&QV(e,n,t).offset<r;)n+=i,i*=2;return eW(e,t,Math.min(n,o-1),Math.floor(n/2),r)},nW=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},rW=JV({getItemOffset:function(e,t,n){return QV(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:nW,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=QV(e,t,o),p=nW(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===n&&(n=r>=h-u&&r<=f+u?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?eW(e,t,o,0,n):tW(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=QV(e,t,r),d=n+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=QV(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function oW(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var iW=["style"],aW=["style"];function sW(e,t){var n=e.style,r=On(e,iW),o=t.style,i=On(t,aW);return!oW(n,o)&&!oW(r,i)}const lW=Og(0),cW=Og(0),uW=Og(0),dW=Og(e=>e(lW)+e(cW)),pW=Og(e=>{const t=e(Ub),n=e(V_),r=t.height-(n?41:0);return{width:t.width,height:r}}),fW=Og(e=>{const t=e(pW),n=e(jN),r=e(_N);return{width:t.width-r,height:t.height-n}}),hW=Og(e=>{const t=e(fW),n=e(dW),r=e(uW);return Math.min(t.height-n,r)}),mW=Og(-1),gW=Hx(e=>Og(t=>t(mW)===e)),bW=({style:e})=>Yt.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var vW=w.memo(bW,sW);const yW=Og(e=>{const t=e(fW),n=e(oz),r=e(dW),o=e(uW)+r,i=e(sV)*n+r;return o<2*t.height?o:i}),xW=Og(e=>e(yW)<=e(pW).height),SW=(e,t,n,r)=>{const o=n&&(!n.isNumeric||n.isDual),i=n?.isTotalRow??!1;return(e=>{const t=Gg(z$),n=k(e);n.current=e;const r=k(null);return O(e=>{const o=r.current;o!==e&&(o&&t&&(t.callbacks.delete(o),t.observer.unobserve(o)),r.current=e,e&&t&&(t.callbacks.set(e,n),t.observer.observe(e)))},[t])})(O(n=>{const a=n.contentBoxSize.at(0)?.blockSize;a&&o&&r(a,e,t,i)},[i,t,r,e,o]))},wW=()=>{},CW=e=>{e.preventDefault()};const EW=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:c,onKeyDown:u,onKeyUp:d,onCellClick:p}=r,f=Gg(gW(t)),h=Kg(mW),m=Gg(ez),g=Gg(Lb),b=Gg(Db),v=Gg(Tb),y=Gg(e$),x=Gg(ub),S=Gg(xW),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:I,cellSelectionState:A}=function(e){const t="object"==typeof e,n=Gg(Mb),r=Kg(ZF),o=Gg(QF(e));if(IH(e),t&&n){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=CH(CW,e,r,wW);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),R=SW(t,e,w,s),D=i[e]?.isDim?m.dimension.values:m.measure.values,M=wH(i[e].id);if("object"==typeof w){const{style:r,isBlank:o}=((e,t,n,r,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS"),l=a("TLV_2710_TABLE_BLANK_TAG"),c=(e.isNull||!(s&&t.isDim))&&JN(e.qAttrExps,t.qAttrExprInfoIDs,l);let u=DH(o,i,e);u=s?i.subTotalRow:u,u=AH(u,i,e,t.isDim);const d=e.isNull||s&&t.isDim?u:ZN(u,e.qAttrExps,t.qAttrExprInfoIDs);return r!==jO.Selected||s?r!==jO.Disabled||s?n?{style:{...d,...i.grid.hoverColors},isBlank:c}:{style:d,isBlank:c}:{style:{...d,color:n?i.grid.hoverColors?.color:d.color,background:`${bN}, ${n?i.grid.hoverColors?.background:d.background}`},isBlank:c}:{style:{...d,...i.selectedColors},isBlank:c}})(w,i[e],a&&f,A,D,m,x),s={rowindex:t,columnindex:e},k=((e,t)=>e.representation.type===WP.Image&&"fitHeight"===e.representation.imageSize?CN(t,e.representation):e.align)(w,g),T=n=>{v&&p?.(t,e),C?.(n)},q=u?n=>{u(n,t,e,w)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${A} ${Hm}`,tabIndex:-1,style:{...n,...r,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:RN(g,w.isLastColumn,y),borderLeftWidth:DN(g,w.isLastColumn,y),justifyContent:k,borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:M},onMouseDown:T,onMouseUp:I,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:q,onKeyUp:d,title:b&&!o?w.representation.text:void 0,...s,children:Yt.jsx(SH,{cellSelectionState:A,hideTickIcon:!!w.isTotalRow,children:Yt.jsx(vH,{forwardRef:m.contentStaticLineCount||1===l?void 0:R,cell:w,style:r,isBlank:o,indentation:QN(w,i[e],x),justifyContent:k,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return Yt.jsx(vW,{style:{...n,...D,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:M}})};var IW=z(EW,sW);const AW=wv(Og(async e=>{const t=e(fb),n=e($b),r=e(oV).page,{qDataPages:o}=t.qHyperCube;if(0!==r||0===o.length){const e=r*Math.min(ej,t.qHyperCube.qSize.qcy);if(n&&"getHyperCubeData"in n)return n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),RW=Og(e=>{const t=e(sV),n=e(fW),r=e(oz);return Math.min(t,Math.ceil(n.height/r))}),DW=Og(e=>{const t=e(uz),n=e(fW);return t.reduce((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),MW=e=>{const t=k(e);return t.current=e,t},kW=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,TW=e=>-1===e.qElemNumber||!!e.qIsTotalCell,qW=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},PW=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some(e=>!e[t])},LW=(e,t,n,r,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,n,r,o,i,a,s,l,c)=>{const{qSize:u}=a.qHyperCube,d=r.qTop+n,p=o+n,f=e[p]??[],h=t.some(TW);return t.forEach((e,t)=>{const n=t+r.qLeft;if(f.at(n))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w,measureMinMax:C,qNumFormat:E,qIsAutoFormat:I,formattedNullValueText:A}=i[n],R=!m&&e.qIsNull,D=m&&I_(e,m),M=R||D?E_(m,e,a):e.qText,k=R?VO(M):HO(e),T=HO(e)&&!VO(e.qText??"");f[n]={id:OP(),...e,align:x_(k,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h&&!D,isTotalRow:h,pageRowIdx:p,pageColIdx:n,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:n===u.qcx-1,isNumeric:k,isDual:T,isNull:(!R||!k)&&I_(e,m),qNumFormat:E,qIsAutoFormat:I,formattedNullValueText:A,representation:Vj({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,measureMinMax:C,getText:()=>M,direction:c,enabledFeatures:{[WP.Image]:!0,[WP.Indicator]:!0,[WP.MiniChart]:!0,[WP.Bar]:!m&&s.flags.isEnabled("VNA-977-TABLE-BARS")}})},l(f[n],d,n)}),{row:f,pageRowIdx:p}})(n,l,c,e.qArea,u,r,o,i,a,s);n[p]=d})})},OW=({gridState:e,setEstimatedCellHeight:t})=>{const n=Gg(fb),r=Gg(Xb),o=Gg($b),i=Gg(cb),a=Gg(Lb),s=Gg(oV),l=Gg(AW),c=Gg(z_),u=Gg(sV),d=Gg(RW),p=Gg(DW),f=k([]),h=O((e,r)=>{const o=Array.isArray(r)?r.slice(0,u):(e=>Array(e).fill(void 0))(u);return LW(e,s,o,c,n,i,t,a),f.current=o,o},[u,s,c,n,i,t,a]),[m,g]=M(()=>h(l??[]));Om(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const n=Gg(db),r=k(new Set),o=k(new Set),i=k(new Set),a=MW(e),s=MW(t),l=D(()=>({enqueue:e=>{const t=kW(e);i.current.has(t)||(r.current.add(e),i.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),o.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),n=await a.current(t);o.current.has(e)&&s.current(n)}catch(t){e.forEach(e=>{i.current.delete(kW(e))}),n.error({msg:"Failed to fetch pages",payload:t})}finally{o.current.delete(e)}}},75))},clear:()=>{r.current.clear(),o.current.clear(),i.current.clear()}}),[n,a,s]);return l})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=O((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(PW(f.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(e)}},[b]),y=O((e,t,n,r)=>{for(let o=t;o<t+r;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(qW(f.current,e,t,n,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(t)}}},[b,s]);return P(()=>{if(void 0===l)return;const{qcx:t,qcy:r}=n.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,r,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,n,d,p,s,b,y,e,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},NW=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},jW=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,_W=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=Gg(ez),i=Gg(uz),{estimateLineCount:a}=Mm(o.dimension.values),s=zN(o.dimension.values.fontSize),l=e||t||1===n;return O((e,t,o)=>{if(l||e.representation.type===WP.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(n,Math.max(1,u));r(d*s,t,o,e.isTotalRow??!1)},[l,i,a,n,s,r])},zW=({isStaticNbrOfLines:e,minRowHeight:t,state:n,staticRowHeight:r=0})=>{const o=Gg(Wj);j(()=>{const i=e?r:((e,t)=>{const n=0===t?0:e/t;return Math.ceil(n)})(n.sumHeight,n.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,n,r,o])},FW=({isSnapshot:e,gridRef:t})=>{const n=Gg(ez),r=Gg(sV),[o,i]=M(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=Gg(rz),s=Gg(oz),l=Gg(iz),c=!!n.contentStaticLineCount,u=Math.max(8e6/r,s,l)-9,d=u+9,p=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(u/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:n})=>n?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:c});(({gridRef:e,setState:t})=>{const n=Gg(fb),r=Gg(oV),o=Gg(uz),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;Om(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),Om(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:n})=>{const r=Gg(oz),o=Gg(iz);return O((i,a,s,l=!1)=>{$(()=>{e(e=>{const c=l?o:r,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(!jW(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:NW(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,n.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,r,o,n])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>O((o,i,a,s)=>{e||t||1===n||r(o,i,a,s)},[e,t,n,r]))({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),g=_W({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=O(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return zW({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},$W=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const n=O(e=>{const n=e.contentBoxSize.at(0)?.blockSize;void 0!==n&&t(n)},[t]);F$({ref:e,callback:n})};let BW=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const HW=({loadRows:e,loadColumns:t,gridState:n})=>{const r=Gg(Wj),o=Gg(fb),i=Gg(oV),a=Gg(sV);return O(({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},n,r)=>{let o,i;return o=r>t?BW.Down:r<t?BW.Up:BW.None,i=n>e?BW.Right:n<e?BW.Left:BW.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,c);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=c,n.current.overscanRowStopIndex=u,c>a)return;const b=s,v=c+i.page*i.rowsPerPage,y=l-s+1,x=u-c+1;if(r.visibleLeft=d,r.visibleWidth=p-d+1,r.visibleTop=f+i.page*i.rowsPerPage,r.visibleHeight=h-f+1,r.page=i.page,r.rowsPerPage=i.rowsPerPage,m===BW.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===BW.Up){const t=x+25,n=i.page*i.rowsPerPage,r=Math.max(n,v-25);e(b,r,y,t)}if(g===BW.Right){const e=o.qHyperCube.qSize.qcx-b,n=y+5,r=Math.min(e,n);t(b,v,r,x)}else if(g===BW.Left){const e=Math.max(0,b-5),n=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,n,x)}},[n,a,i.page,i.rowsPerPage,r,e,o.qHyperCube.qSize.qcx,t])};const VW=({columnIndex:e,data:t,rowIndex:n})=>{const r=t.rowsInPage[n]?.[e];return r?.id??`${n}-${e}`},WW=(e,t)=>{if(!e||!t)return;const n=e.scrollHeight-e.clientHeight,r=Math.round(n*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==r&&(e.scrollTop=r)},UW={overflow:"hidden",willChange:"auto"},GW=F((e,t)=>{const{handleBodyKeyDown:n,handleBodyKeyUp:r,focusBodyCellOnClick:o}=RV(),i=Gg(z_),a=Gg(fW),s=Kg(uW),l=Gg(hW),c=Gg(Wj),u=Gg(fb),d=Gg(Lb),p=Gg(uz),f=Gg(sV),h=Gg(cV),m=Kg(lV),g=k(null),b=k(null),v=k(null),y=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=k(0),S=!!KN(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:I}=FW({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:A,loadRows:R,loadColumns:M}=OW({gridState:y,setEstimatedCellHeight:C}),T=HW({loadRows:R,loadColumns:M,gridState:y}),q=kB(),L=D(()=>({rowsInPage:A,columns:i,isHoverEnabled:S,lineClamp:I,setMeasuredCellHeight:w,resizeObserverTaskScheduler:q,onKeyDown:n,onKeyUp:r,onCellClick:o}),[A,i,S,I,w,q,n,r,o]);return j(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=Kg(ZF),{shouldRefocusRef:n}=Gg(bV),r=Gg(Gb),o=Gg(aV);P(()=>{t({type:_O.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=O(()=>{n&&(n.current=r.contains(document.activeElement))},[n,r]);TB({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(A),B(t,()=>({interpolatedScrollTo:(e,t)=>{const n=(v.current?.clientHeight??l)-l,r=Math.round(n*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:r,scrollLeft:t})}}),[v,l,f]),P(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),WW(h,b.current)}),()=>{m(null)}),[h,m]),$W(v,s),Yt.jsx(YV,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:UW,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:L,onItemsRendered:T,itemKey:VW,className:"sn-table-body",direction:d,children:IW})});var KW=z(GW);const YW=({children:e})=>{const t=Gg(fz),n=Gg(yW);return Yt.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n},children:e})},XW=(e,t)=>{const n=k(null),r=Gg(uz);j(()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)},[t,n,e,r.length]);const o=O(n=>{const r=n.contentBoxSize.at(0)?.blockSize;r&&t(r+9,e)},[e,t]);return F$({ref:n,callback:o}),n},JW=Ec("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:n,applicableStyle:r,color:o})=>({...r,background:n,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),ZW=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Gg(ez),c=Gg(Lb),u=Gg(Ab),d=Gg(e$),p=Kg(NN),f=Gg(__),h=Gg(Tb),m=Gg(uz)[e],g=Gg(Fb),b=Gg(fB(e)),v=r[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=WH({isInteractionEnabled:h,column:v}),C=Gg(Sb),E=XW(e,i),I=r.length-1===e,A=C?T$:J$,{ref:R,isDragging:D}=YH(v,e),M=wH(v.id),k=b&&!g.enabled&&h?0:-1,T=a?t=>{a(t,e,S)}:void 0;return Yt.jsxs(JW,{"data-dragging":D,ref:R,className:`sn-table-cell ${Hm}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...n$(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:RN(c,I,d),borderLeftWidth:DN(c,I,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:M},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:k,onKeyDown:T,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[Yt.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),Yt.jsx(HH,{column:v,isLastColumn:I,onColumnResize:o,setIsAdjustingWidth:p})]})},QW=e=>{const[t,n]=M(new Map);Om(()=>{n(new Map)},[e.length]);const r=O((e,t)=>{n(n=>jW(n.get(t),e)?new Map(n).set(t,e):n)},[]);return{rowHeight:D(()=>NW(t),[t]),setMeasuredCellHeight:r}},eU=(e,t)=>{B(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},tU=e=>{const t=Gg(Xb),n=Gg(fb),r=Gg(oV),o=Gg(uz);Om(()=>{e.current?.resetAfterIndex(0,!1)},[n,r,e,o,t])},nU={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},rU=F((e,t)=>{const{columResizeHandler:n}=e,r=Gg(z_),o=Gg(fW),i=Kg(lW),a=w.useRef(null),s=k(null),l=Gg(tz),c=Gg(fb),u=Gg(Nb),d=Gg(Lb),p=Gg(uz),{rowHeight:f,setMeasuredCellHeight:h}=QW(r),m=$H(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=RV();return eU(t,a),tU(a),$W(s,i),Yt.jsx(rW,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...nU,...m?{display:"none"}:void 0},itemCount:r.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>r[e].id,itemData:{columns:r,columResizeHandler:n,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:ZW})});var oU=z(rU);const iU=F((e,t)=>{const{children:n,onScroll:r}=e,o=Gg(Lb),i=Gg(kb),{width:a,height:s}=Gg(pW),l=Kg(cV),c=O(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return Yt.jsx("div",{"data-testid":"scrollable-container",ref:c,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:r,dir:o,tabIndex:-1,children:n})}),aU=({children:e})=>{const t=Gg(Lb),n=Gg(fW);return Yt.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:n.width,height:n.height},children:e})},sU=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Gg(ez),c=Gg(fb),u=Gg(Lb),d=Gg(Db),p=Gg(Tb),f=Gg(e$),h=Gg(xW),m=XW(e,i),g=r[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=r[e],y=c.qHyperCube.qSize.qcx-1===e,x=wH(r[e].id),S=a?t=>{a(t,e)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${Hm}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...n$(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:RN(u,y,f),borderLeftWidth:DN(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:Yt.jsx(k$,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},lU=F((e,t)=>{const{totals:n}=e,r=Gg(z_),o=Gg(fW),i=Kg(cW),a=k(null),s=k(null),l=Gg(nz),c=Gg(Lb),u=Gg(fb),d=Gg(uz),{rowHeight:p,setMeasuredCellHeight:f}=QW(r),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=RV();return eU(t,a),tU(a),$W(s,i),Yt.jsx(rW,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:nU,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:r,totals:n,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:c,children:sU})});var cU=z(lU);const uU=(e,t,n)=>{const r=Gg(Lb),o=Gg(Wj);return O(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,c=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,r),u=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=u,o.scrollLeft=c,n.current?.interpolatedScrollTo(Number.isNaN(u)?0:u,c),e.current?.scrollTo(c),t.current?.scrollTo(c)},[o,n,e,t,r])};var dU=z(()=>{const e=Gg(__),t=k(null),n=k(null),r=k(null),o=k(null),i=uU(n,r,o),a=O(()=>{t.current&&(t.current.scrollTop=0)},[t]);hB(),(e=>{const t=Gg(F_),n=Gg(oV),r=Gg(Xb),o=Gg(sV);P(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),P(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[n,o,r,e])})(t),CB(t);const s=Yt.jsx(cU,{ref:r,totals:e},"totals");return Yt.jsxs(cB,{children:[Yt.jsx(iU,{ref:t,onScroll:i,children:Yt.jsxs(YW,{children:[Yt.jsxs(aU,{children:[Yt.jsx(oU,{ref:n,columResizeHandler:a}),e.atTop?s:null,Yt.jsx(KW,{ref:o}),e.atBottom?s:null]}),Yt.jsx(t$,{})]})}),Yt.jsx(tB,{isPagination:!1})]})});const pU=()=>{const e=Gg(fb),t=Gg(Ub),n=Gg(Ab),{paginationNeeded:r,totalRowCount:o,totalColumnCount:i,totalPages:a}=Gg(j_),s=Gg(Xb),l=Gg(Jb),c=Gg(Fb),[u,d]=Yg(oV),p=k(null),f=k(!1),h=Kg(iV),m=Kg(aV);P(()=>{h(f)},[h]);const g=w.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=RV();return(()=>{const e=Gg(Gb),{keyboard:t}=Gg(gV),n=Gg(pB),r=Gg(__),o=Gg(sV),{scrollToCell:i}=Gg(mV),{shouldRefocusRef:a}=Gg(bV),s=k({focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}),l=k(null),c=k(null);j(()=>{s.current={focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}},[n,r,o,i,e]),P(()=>{let e=!1;const{focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:u}=s.current;if("function"==typeof u.querySelector){if(t.active){const[t,a]=n,d=r.atTop?2:1;if(t>=d&&t<d+o){null!==c.current&&(cancelAnimationFrame(c.current),c.current=null),i?.(t-d,a);const n=t=>{if(e)return;const r=xV(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);r&&document.activeElement!==r&&o$(r),r&&document.activeElement===r||t>0&&(l.current=requestAnimationFrame(()=>{n(t-1)}))};l.current=requestAnimationFrame(()=>{e||n(5)})}else{const e=xV(u,n,r,o);e&&o$(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 n=xV(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);n?.blur(),IV(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])})(),dB(p,f),Yt.jsxs(I$,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[Yt.jsx(RB,{}),Yt.jsx(dU,{}),Yt.jsx(zF,{paginationNeeded:r,handleChangePage:e=>{d(e)},pageInfo:u,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:c,translator:l,theme:s,interactions:n,rect:t,layout:e})]})};var fU=z(pU);const hU=e=>{const t=e.get($b),n=e.get(_b),r=e.get(pb),o=e.get(Lb);a(()=>{r&&t&&(n?function(e){const t=e.get(Lb),n=e.get(Yb),r=mz(t);n.render(Yt.jsx(yi,{stylisPlugins:"rtl"===t?[PO]:void 0,children:Yt.jsx(Ac,{theme:r,children:Yt.jsx($g,{store:e,children:Yt.jsx(hz,{children:Yt.jsx(QH,{})})})})}))}(e):function(e){const t=e.get(Lb),n=e.get(Yb),r=mz(t);n.render(Yt.jsx(w.StrictMode,{children:Yt.jsx(Ac,{theme:r,children:Yt.jsx($g,{store:e,children:Yt.jsx(hz,{children:Yt.jsx(fU,{})})})})}))}(e))},[r,n,e,t,o])};function mU(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=n.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:r.y+i.height+(t.atTop?s.height:0),bottom:r.y+r.height-(t.atBottom?s.height:0)},u=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(l,c),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(l,c),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(l,c,u);return{visibleRowStartIndex:u,visibleRowEndIndex:d,rowPartialHeight:p}}const gU=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},bU=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const vU=(e,t,n,r,o)=>{if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||A_.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},yU=(e,t,n,r,o)=>{if(r&&!r.isMultiPage)return r;const i=g_(e,r);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=mU(n,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:vU(a,o,e,t,r),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=n?.getBoundingClientRect(),o=n?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)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=gU(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+u,visibleRowEndIndex:p+u};const g=r.y+r.height,b=(bU(h,m,g)?d:d+1)+u;let v=p+u;const y=gU(p,o),x=y?.getBoundingClientRect();return y&&x&&(bU(x,m,g)||(v=p-1+u)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:vU(s,a,e,t,r),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},xU=({store:e})=>{const t=e.get(fb),n=e.get($b),r=e.get(Gb),o=e.get(Wb),i=e.get(Nb),a=e.get(_b);u(async s=>{const l=s;if(!l.snapshotData||!n||l.snapshotData.content)return l;if("getHyperCubeData"in n){const s=e.get(Wj),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=yU(t,s,r,i,a);l.qHyperCube.qDataPages=await n.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}),d(()=>({getViewState:()=>yU(t,e.get(Wj),r,i,a)}),[t,e,r,a])},SU={version:JSON.stringify("6.71.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:[],accessibleHeader:!1};var wU=e=>({properties:{initial:SU},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>vv({...t,env:e}),exportProperties:pv,exploration:IP(e)});const CU=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),EU=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});
109
+ */var KL=(UL||(UL=1,function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\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-]|"+n+"|"+u+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+n+"|"+u+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+n+"|"+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,I=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),R=new RegExp("("+c+v+"[^;}]+;?)","gi"),A=new RegExp("("+c+"[^\\}]*?})","gi"),D=new RegExp("("+a+")ltr","gi"),M=new RegExp("("+a+")rtl","gi"),k=new RegExp(l+"(left)"+b+y+v,"gi"),T=new RegExp(l+"(right)"+b+y+v,"gi"),q=new RegExp(l+"(left)"+x,"gi"),P=new RegExp(l+"(right)"+x,"gi"),L=/(:dir\( *)ltr( *\))/g,O=/(: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"),B=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),H=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,n){var r,o;return t.split("(").length>t.split(")").length?e:("%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n)}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 n=[].slice.call(arguments),r=n.slice(2,6).filter(function(e){return e}),o=n.slice(6,10).filter(function(e){return e}),i=n[10]||"";return t+(o.length?Z(r)+" / "+Z(o):Z(r))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,n){return t+ee(n)}function ne(e,t,n,r,o){return t+n+ee(r)+o}function re(e,t,n,r,o){return t+n+r+ee(o)}return{transform:function(n,o){var i=new r(R,"`NOFLIP_SINGLE`"),a=new r(A,"`NOFLIP_CLASS`"),s=new r(I,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(L,"$1`TMPLTR`$2").replace(O,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(n=n.replace(q,"$1"+e).replace(P,"$1left").replace(w,"right")),n=n.replace(D,"$1"+e).replace(M,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(T,"$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,re).replace(G,re).replace(K,te).replace(Y,ne).replace(X,ne).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(B,J).replace(H,J),n=i.detokenize(a.detokenize(s.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(GL,GL.exports)),GL.exports),YL=Ht(KL),XL="comm",JL="rule",ZL="decl",QL=Math.abs,eO=String.fromCharCode;function tO(e){return e.trim()}function nO(e,t,n){return e.replace(t,n)}function rO(e,t){return 0|e.charCodeAt(t)}function oO(e,t,n){return e.slice(t,n)}function iO(e){return e.length}function aO(e,t){return t.push(e),e}var sO=1,lO=1,cO=0,uO=0,dO=0,pO="";function fO(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:sO,column:lO,length:a,return:"",siblings:s}}function hO(){return dO=uO>0?rO(pO,--uO):0,lO--,10===dO&&(lO=1,sO--),dO}function mO(){return dO=uO<cO?rO(pO,uO++):0,lO++,10===dO&&(lO=1,sO++),dO}function gO(){return rO(pO,uO)}function bO(){return uO}function vO(e,t){return oO(pO,e,t)}function yO(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 xO(e){return tO(vO(uO-1,CO(91===e?e+2:40===e?e+1:e)))}function SO(e){for(;(dO=gO())&&dO<33;)mO();return yO(e)>2||yO(dO)>3?"":" "}function wO(e,t){for(;--t&&mO()&&!(dO<48||dO>102||dO>57&&dO<65||dO>70&&dO<97););return vO(e,bO()+(t<6&&32==gO()&&32==mO()))}function CO(e){for(;mO();)switch(dO){case e:return uO;case 34:case 39:34!==e&&39!==e&&CO(dO);break;case 40:41===e&&CO(e);break;case 92:mO()}return uO}function EO(e,t){for(;mO()&&e+dO!==57&&(e+dO!==84||47!==gO()););return"/*"+vO(t,uO-1)+"*"+eO(47===e?e:mO())}function IO(e){for(;!yO(gO());)mO();return vO(e,uO)}function RO(e){return function(e){return pO="",e}(AO("",null,null,null,[""],e=function(e){return sO=lO=1,cO=iO(pO=e),uO=0,[]}(e),0,[0],e))}function AO(e,t,n,r,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=r,E=x;g;)switch(h=y,y=mO()){case 40:108!=h&&58==rO(E,d-1)?(v++,E+="("):E+=xO(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=xO(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=eO(y);break}E+=SO(h);break;case 92:E+=wO(bO()-1,7);continue;case 47:switch(gO()){case 42:case 47:aO(MO(EO(mO(),bO()),t,n,l),l),5!=yO(h||1)&&5!=yO(gO()||1)||!iO(E)||" "===oO(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=iO(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=eO(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=nO(E,/\f/g,"")),f>0&&(iO(E)-d||0===m)&&aO(f>32?kO(E+";",r,n,d-1,l):kO(nO(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(aO(C=DO(E,t,n,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)AO(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===rO(E,3))break;case 108:if(97===rO(E,2))break;default:u=0;case 100:case 109:case 115:}u?AO(e,C,C,r&&aO(DO(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,r?S:w):AO(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+iO(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==hO())continue;switch(E+=eO(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(iO(E)-1)*b,b=1;break;case 64:45===gO()&&(E+=xO(mO())),p=gO(),u=d=iO(x=E+=IO(bO())),y++;break;case 45:45===h&&2==iO(E)&&(m=0)}}return i}function DO(e,t,n,r,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<r;++m)for(var v=0,y=oO(e,p+1,p=QL(g=a[m])),x=e;v<h;++v)(x=tO(g>0?f[v]+" "+y:nO(y,/&\f/g,f[v])))&&(l[b++]=x);return fO(e,t,n,0===o?JL:s,l,c,u,d)}function MO(e,t,n,r){return fO(e,t,n,XL,eO(dO),oO(e,2,-2),0,r)}function kO(e,t,n,r,o){return fO(e,t,n,ZL,oO(e,0,r),oO(e,r+1,-1),r,o)}function TO(e,t,n){switch(e.type){case"@import":case ZL:case XL:return e.return=e.return||e.value;case JL:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===XL&&(e.children=e.value)})}var r=function(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}(Array.prototype.concat(e.children),TO);return iO(r)?e.return=e.value+"{"+r+"}":""}function qO(e,t,n,r){if("@keyframes"===e.type||"@supports"===e.type||e.type===JL&&(!e.parent||"@media"===e.parent.type||e.parent.type===JL)){var o=YL.transform(TO(e));e.children=o?RO(o)[0].children:[],e.return=""}}Object.defineProperty(qO,"name",{value:"stylisRTLPlugin"});const PO=Hx(({options:e,...t})=>Og(Dm(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 LO{#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,n){const r=this.#y[e].get(t)??new Set;r.add(n),this.#y[e].set(t,r),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 OO=Og(()=>new LO);let NO=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),jO=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}({}),_O=function(e){return e.A="ascending",e.D="descending",e}({}),zO=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const FO=[0,0],$O=e=>"number"==typeof e&&!Number.isNaN(+e),BO=e=>$O(e.qNum),HO=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),VO=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,WO=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),UO=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},GO=(e,t,n)=>{const r={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,c=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{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[n].color,t:r}})(a,r,t,n,e);return se(e.localPaletteColors[t].color??"").blend(se(s.color??""),s.t)},KO=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort((e,t)=>e.value-t.value),e.limits=n.map(e=>({...e,value:WO(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:UO(r,t,n)}))),r},YO=(e,t,n,r)=>{const o=KO(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=r&&t<i){n=GO(e,a,t);break}r=i}return n})(o,t);return a},XO=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!$O(e));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!$O(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},JO=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=XO(e,t),o=Math.abs(t);return{min:n??t-o,max:r??t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!$O(t))return 0;let a=n&&$O(n)?Math.min(n,t):0;const s=r.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,r.min);return{limitRange:r,limitPaletteColorIndex:o}},ZO=F((e,t)=>Yt.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:Yt.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),QO=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),eN=F((e,t)=>Yt.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:[Yt.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"}),Yt.jsx("use",{fillRule:"evenodd"})]})),tN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),nN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),rN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),oN=F((e,t)=>Yt.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:Yt.jsx("path",{d:"M2 7.5h12v1H2z"})})),iN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),aN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),sN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),lN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),cN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),uN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),dN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),pN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),fN=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),hN={m:cN,"ï":sN,R:fN,S:uN,T:dN,U:pN,P:aN,Q:rN,"è":F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),"¢":tN,"©":eN,"23F4":nN,2013:lN,"&":iN,add:ZO,"minus-2":oN,dot:QO},mN=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=JO(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,n.limitPaletteColorIndex))return UO(o,n.limitPaletteColorIndex,r);const a=WO(n.limitRange,t);return YO(o,a,n.limitRange,r)})(o,t,i,r),{paletteColors:s}=o.segments,l=i?.limitPaletteColorIndex||0,c=s[l]?.icon??"dot",{indicator:u}=e;let d=u?.position||"right";return"rtl"===n&&(d="right"===d?"left":"right"),{color:a,iconKey:c,position:d}},gN=(lm().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)"),bN=4/3,vN="12px",yN="600",xN="Source Sans Pro, sans-serif",SN={height:"auto",fontSize:vN,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"}},wN=(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,CN=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",EN=(e,t,n)=>{if(!t&&"rtl"===n){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},IN=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,RN=(e,t,n)=>"rtl"===e||t&&!n?"0px":"1px",AN=(e,t,n)=>"rtl"===e?t&&!n?"0px":"1px":"0px",DN=24,MN=Ec("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),kN=Ec(md,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:n,isPagination:r})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===n?CN(e,r):void 0})),TN=Ec(md,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:n})=>{const r=e?"24px":"";let o;switch(n){case"left":o={gridTemplateColumns:t?`20px 2fr ${r}`:`1fr ${r}`};break;case"center":{const n=e||t;o={gridTemplateColumns:n?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:n?2:1},[`& .${Fm}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${r} 2fr 20px`:`${r} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${Fm}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),qN=Ec(md,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),PN=Ec(md,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),LN=Ec(Iu,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:n,order:r})=>({padding:"4px !important",width:"fit-content",height:"auto",background:n?t:void 0,"&:hover":{background:e},color:"inherit",order:r})),ON=Og(),NN=Og(0),jN=Og(0),_N=e=>parseInt(e??SN.fontSize,10)*bN,zN=/<[biust]>/g,FN=/<blank>/i,$N=(e,{boldFontWeight:t,combineDecorations:n=!1,allowIndentation:r=!1})=>{const o=e?.toLowerCase().match(zN),i={},a=new Set;let s=0;return o?.forEach(e=>{switch(e){case"<t>":r&&(s++,i.textIndent=`${s}em`);break;case"<b>":i.fontWeight=t;break;case"<i>":i.fontStyle="italic";break;case"<u>":a.add("underline"),i.textDecoration="underline";break;case"<s>":a.add("line-through"),i.textDecoration="line-through"}}),n&&a.size>0&&(i.textDecoration=["underline","line-through"].filter(e=>a.has(e)).join(" ")),Object.keys(i).length>0?i:void 0};const BN=4/3,HN=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function VN(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const WN=(e,t)=>e?{borderBottomColor:dm.DARK_MODE_BORDER,borderRightColor:dm.DARK_MODE_BORDER,borderLeftColor:dm.DARK_MODE_BORDER,borderTopColor:dm.DARK_MODE_BORDER}:{borderLeftColor:dm.BORDER_MEDIUM,borderRightColor:dm.BORDER_MEDIUM,borderTopColor:dm.BORDER_HEAVY,borderBottomColor:t?dm.BORDER_HEAVY:dm.BORDER_LIGHT},UN=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*BN+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},GN=e=>e.components?.find(e=>"theme"===e.key),KN=(e,t,n,r=!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:HN(n?.fontColor)?VN(dm.TEXT,t,n?.fontColor):i||dm.TEXT,fontSize:n?.fontSize&&`${n.fontSize}px`||a,padding:n&&"padding"in n?n.padding:void 0,...WN(t.background.isDark,r)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function YN(e,t,n){const r=GN(e)?.header,o=KN("header",t,r,n);return o.background=(e=>{if(void 0===e)return;const t=se(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=hm(o.background??dm.WHITE,Km),o.activeBackground=hm(o.background??dm.WHITE,Ym),o}const XN=(e,t,n)=>{if(!n)return!1;const r=t.indexOf("textStyleExpression");return-1!==r&&(o=e?.qValues?.[r]?.qText,!!o&&FN.test(o));var o},JN=(e,t,n)=>{const r={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&gm(i);a&&(r[n[t]]=a);const s=$N(i,{boldFontWeight:yN,combineDecorations:!0});var l,c;o={...o,...s,textDecoration:(l=o.textDecoration,c=s?.textDecoration,c?l?[...new Set(`${l} ${c}`.split(/\s+/).filter(e=>e&&"none"!==e))].join(" "):c:l)}}),r.cellBackgroundColor&&!r.cellForegroundColor&&(r.cellForegroundColor=pm(r.cellBackgroundColor)),{...e,...r,color:r.cellForegroundColor||e.color,background:r.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}};function ZN(e,t,n){if(!n("TLV_254_TABLE_INDENT_TAG"))return;const r=e.isTotalRow&&n("TLV-2303-SUB-TOTALS");if(e.isNull||r&&t.isDim)return;const o=t.qAttrExprInfoIDs.indexOf("textStyleExpression");return-1!==o?$N(e.qAttrExps?.qValues?.[o]?.qText,{boldFontWeight:yN,allowIndentation:!0})?.textIndent:void 0}const QN=25e4,ej=(e,t)=>t.qAttrExps?.qValues?.[e],tj=e=>{const t=Number(e?.qNum);return void 0!==e?.qNum&&Number.isFinite(t)?t:void 0},nj=e=>{const t=e?.qText?.trim();return t&&"ARGB(0,0,0,0)"!==t.toUpperCase()?gm(t)??void 0:void 0},rj=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,oj=5e6,ij=5e5;const aj={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,n){return{key:sj(e),value:sj(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function sj(e){try{return decodeURIComponent(e)}catch{return e}}function lj(e){if(!(this instanceof lj))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 n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>aj.fromSearchString(t.search)}})}function cj(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")}lj.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},lj.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=cj(t.key),t.value?n+=`=${cj(t.value)}`:n+=t.useEqualSign?"=":"";return n};var uj=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}},dj=class{decode(e){let t="";const n=new uj(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const pj=e=>e>=0&&e<=1114111,fj=e=>e.match(/[\s]/);var hj=class extends dj{decodeCharacter(e){e.mark();const t=e.next();let n,r,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(n=i,r=0;r<5&&(o=e.next(),null!=o&&!fj(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return pj(a)?String.fromCharCode(a):"�"}},mj=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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},gj=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let o,i;if(t.length===n)return i=this._value,this.setValue(r),i;const a=t.charAt(n);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,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return mj.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return mj.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||mj.newInstanceIfNeeded(e,t,this._value)}},bj=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 gj);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const vj=(()=>{const e=[],t=[],n=new bj;let r,o,i;for(r 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[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),n.put(i,String.fromCharCode(o)));return n})();var yj=class extends dj{decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,o="";for(t=Math.min(e.remainder().length,vj.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=vj.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}_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,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&pj(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&pj(r)?String.fromCharCode(r):null}},xj=class extends dj{decodeCharacter(e){e.mark();const t=e.next();let n,r,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)o=e.nextHex(),null!=o&&(n+=o);return 2===n.length&&(i=parseInt(n,16),pj(i))?String.fromCharCode(i):(e.reset(),null)}};let Sj;"undefined"!=typeof document&&(Sj=document.createElement("div"));const wj=Array.prototype.indexOf,Cj=[",",".","_"," "],Ej=[",",".","-","_"," "],Ij={width:["%"],height:["%"]},Rj={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Aj={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Rj.image,"background-color":Rj.color,"border-color":Rj.color,"border-image":Rj.image,color:Rj.color,icon:Rj.image,"list-style-image":Rj.image,"outline-color":Rj.color},Dj={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Mj(e,t,n){let r;if(t){if(wj)return wj.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function kj(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return Sj.appendChild(n),t=Sj.innerHTML,Sj.removeChild(n),t}function Tj(e,t,n){let r,o,i,a,s,l,c,u,d;for(e=Pj(e).toLowerCase(),t=Pj(t),i=0;i<Dj.attr_name.length;i++)if(e.match(Dj.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<Dj.attr_val.length;i++)if(t.toLowerCase().match(Dj.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=Ij[e],r||(r=Ej),o="",!n){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]/)&&Mj(c,r)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return n||(o+='"'),o}function qj(e,t,n){let r,o,i,a,s,l,c,u,d,p;if(e=Pj(e).toLowerCase(),t=Pj(t),Mj(e,Dj.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<Dj.css_val.length;r++)if(t.toLowerCase().indexOf(Dj.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=Aj[e],o||(o=Rj.default),i="",!n){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]/)&&Mj(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function Pj(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new yj,new xj,new hj];for(;!a;){r=n;for(let e=0;e<s.length;e++)i=s[e].decode(n),i!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}const Lj=[];for(let e=0;e<255;e++)Lj[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const Oj={html:e=>kj(e.unsafe),css(e){let t,n=[];const r=[],o={};let i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=qj(t,n[t],!0),i+=qj(t,n[t],!0),o[t]=r[t]);return e.map?o:i},attr(e){let t=[];const n=[],r={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=Tj(e,t[e],!0),o+=Tj(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function Nj(e,t){throw new Error(t)}var jj={canonicalize:Pj,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,n;const r=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(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Oj.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&Nj(this,"Invalid parameter type"),Oj.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&Nj(this,"Invalid parameter type"),Oj.attr(e)):void Nj(this,"Invalid parameter type")},encodeForAttr:Tj,encodeForAttr2:function(e){return Tj("nonsens",e,!0)},encodeForCSS:qj,encodeForHref:function(e){Pj(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new lj(e),n=lj.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+lj.encodeSearchParams(r)+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 n,r,o,i,a,s;for(t||(t=Cj),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),Mj(o,t)>=0||null==Lj[i]?s+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:kj,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=Pj(t).toLowerCase():Nj(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:n=ij,maxByteSizeImage:r=oj}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=rj.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(o,i,a);return"image/svg+xml"===o?s<=n:s<=r},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 n=function(e){let t=e,n="";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=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const _j=(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"}}},zj=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!jj.isSafeDataURL(t))?{type:VP.Text,url:void 0,text:e,labelStructure:o}:{type:VP.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:_j(r,a),labelStructure:o,imageBox:i},Fj=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:VP.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{const r="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=r?n.qYMin:e.qMiniChart.qMin,a=r?n.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,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:VP.MiniChart,text:r,miniChart:a}},$j=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=r?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return n?.urlPosition===WP.Attribute?void 0:n?.urlLabel},Bj=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:VP.Link,url:jj.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:VP.Text,url:void 0,text:t,labelStructure:e}}},Hj=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,measureMinMax:a,labelStructure:s,getText:l=e=>e.qText,direction:c,enabledFeatures:u})=>{const d=UP(t),p=l(e);return d===VP.Image&&u[VP.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=ej(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),zj({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:r;if(-1===n.imageLabel)return zj({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=ej(n.imageLabel??-1,e)?.qText??r;return zj({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:VP.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,p,c,s):d===VP.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===WP.Attribute){const i=$j(n.url??-1,e,t);return Bj({labelStructure:r,text:o||i||"",url:i})}if(i===WP.Dimension){const i=$j(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),Bj({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:VP.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,s,p):d===VP.Indicator&&u[VP.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:VP.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,p):d===VP.MiniChart&&u[VP.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?Fj(e,t,i,p):d===VP.Bar&&u[VP.Bar]?((e,t,n,r,o)=>{const i={type:VP.Text,text:o},a=tj(e);if(!t||void 0===a)return i;const s=t=>{const r=n[t];return void 0===r||r<0?void 0:ej(r,e)},{barRangeMode:l,barColorMode:c,barLabelColorMode:u}=t,d="manual"===l,p=e=>d&&"number"==typeof e&&Number.isFinite(e)?e:void 0,f={value:a,columnMin:p(t.barRangeMin)??r?.qMin??0,columnMax:p(t.barRangeMax)??r?.qMax??0,isManualRange:d,hasNegativeValues:r?.hasNegativeValues,hasPositiveValues:r?.hasPositiveValues,offsetValue:tj(s("barOffset"))??0,thicknessPx:tj(s("barWidth")),label:s("barLabel")?.qText??o,fallbackLabel:o,color:"expression"===c?nj(s("barColor")):void 0,colorPalette:t.barColor,labelColor:"expression"===u?nj(s("barLabelColor")):void 0,labelColorPalette:t.barLabelColor,barEnd:t.barEnd??"none"};return{type:VP.Bar,text:o,bar:f}})(e,t,n,a,p):{type:VP.Text,url:void 0,text:p,labelStructure:s}},Vj=Og(e=>{const t=e(Nb),n=e(yb);return e(xb),{qTop:0,qHeight:0,rowPartialHeight:n?.content?.rowPartialHeight??0,visibleTop:n?.content?.visibleTop??t?.visibleTop,visibleHeight:n?.content?.visibleHeight??t?.visibleHeight,scrollLeft:n?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:n?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:n?.content?.rowsPerPage??t?.rowsPerPage,page:n?.content?.page??t?.page,estimatedRowHeight:n?.content?.estimatedRowHeight??0}}),Wj=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),Uj=({cId:e})=>e??LP(),Gj=["D","T","TS","IV"],Kj=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Yj=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Xj=["January","February","March","April","May","June","July","August","September","October","November","December"],Jj=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Zj={D:"YYYY-MM-DD",T:"hh:mm:ss",TS:"YYYY-MM-DD hh:mm:ss"},Qj=864e5,e_=2**32,t_=e=>{let t=Math.floor(e),n=Math.round((e-t)*Qj);n>=Qj&&(t+=1,n=0);const r=t-25569,o=r+719468,i=Math.floor(o/146097),a=o-146097*i,s=Math.floor((a-Math.floor(a/1460)+Math.floor(a/36524)-Math.floor(a/146096))/365),l=a-(365*s+Math.floor(s/4)-Math.floor(s/100)),c=Math.floor((5*l+2)/153),u=c<10?c+2:c-10;return{year:s+400*i+(u<=1?1:0),month:u,date:l-Math.floor((153*c+2)/5)+1,day:(r%7+7+3)%7,h:Math.floor(n/36e5),m:Math.floor(n%36e5/6e4),s:Math.floor(n%6e4/1e3),f:n%1e3}},n_=(e,t)=>String(e).padStart(t,"0"),r_=e=>{const[,t]=e.toString().split(".");return t?Number(`0.${t}`):0},o_=/Y+|y+|M+|W+|w+|D+|d+|h+|H+|m+|s+|S+|f+|F+|t{1,2}|T{1,2}/g,i_=(e,t,n)=>{if(Number.isNaN(e)||!Number.isFinite(e))return String(e);let r,o=(n||("IV"===t?Zj.T:Zj[t])).replace(/\[.+]|\[|]/g,"");"IV"===t?(e<0&&(e=-e,o=`-${o}`),r=((e,t)=>{const n=Math.floor(e);let r=24*r_(e),o=60*r_(r),i=60*r_(o);const a=Math.round(1e3*r_(i));r=Math.floor(r),o=Math.floor(o),i=Math.floor(i),/D+/i.test(t)||(r+=24*n),/h+/i.test(t)||(o+=60*r),/m+/i.test(t)||(i+=60*o);let s=0,l="";if(/w+|t+/i.test(t)){const t=t_(e);s=t.day,l=t.h>=12?"pm":"am"}return{year:0,month:0,day:s,date:n%e_,h:r%e_,m:o%e_,s:i%e_,f:a,t:l}})(e,o)):r=((e,t)=>{const n=t_(e);let r=n.h;return t&&(r%=12,r=r||12),{year:n.year,month:n.month,day:n.day,date:n.date,h:r,m:n.m,s:n.s,f:n.f,t:n.h>=12?"pm":"am"}})(e,/t+/i.test(o));const i=(e=>[[/^(Y+|y+)$/,{Y:`${Number(`${e.year}`.slice(-2))}`,YY:n_(`${e.year}`.slice(-2),2),YYY:n_(`${e.year}`.slice(-3),3),def:t=>n_(`${e.year}`,t.length)}],[/^M+$/,{M:e.month+1,MM:n_(e.month+1,2),MMM:Jj[e.month],def:Xj[e.month]}],[/^(W+|w+)$/,{W:e.day,WW:n_(e.day,2),WWW:Yj[e.day],def:Kj[e.day]}],[/^(D+|d+)$/,{def:t=>n_(e.date,t.length)}],[/^(h+|H+)$/,{h:e.h,def:t=>n_(e.h,t.length)}],[/^m+$/,{m:e.m,def:t=>n_(e.m,t.length)}],[/^(s+|S+)$/,{s:e.s,def:t=>n_(e.s,t.length)}],[/^(f+|F+)$/,{def:t=>{const n=`${e.f}`;return n.length>t.length?n.slice(0,t.length):n.padEnd(t.length,"0")}}],[/^(t{1,2}|T{1,2})$/,{def:t=>(t[0].toUpperCase()===t[0]?e.t.toUpperCase():e.t).slice(0,t.length)}]])(r);return o.replace(o_,e=>((e,t)=>{const n=t.find(([t])=>t.test(e))?.[1];if(!n)return"";const r=Object.keys(n).find(t=>"def"!==t&&(t===e||t.toLowerCase()===e)),o=void 0===r?n.def:n[r];return String("function"==typeof o?o(e):o)})(e,i))},a_=/[#0]/,s_={prefix:"",suffix:""},l_=e=>{const t=e.search(a_);if(-1===t)return s_;let n=t;for(let t=e.length-1;t>n;t--)if(a_.test(e[t])){n=t;break}return{prefix:e.slice(0,t),suffix:e.slice(n+1)}},c_=/\B(?=(\d{3})+(?!\d))/g,u_={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y",[-3]:"m",[-6]:"μ",[-9]:"n",[-12]:"p",[-15]:"f",[-18]:"a",[-21]:"z",[-24]:"y"},d_=e=>Number(e.toPrecision(15)),p_=(e,t,n=!1)=>{if(Number.isNaN(e))return String(e);const{qFmt:r,qType:o,qDec:i=".",qThou:a=","}=t??{};if((e=>Gj.includes(e))(o))return i_(e,o,r);if(!r)return String(e);const[s,l]=r.split(";"),{suffix:c}=l_(s),u=c.startsWith("A"),d=(u?c.slice(1):c).endsWith("%"),{value:p,siPrefix:f}=((e,t,n)=>{let r=t?d_(100*e):e,o="";if(n&&0!==r&&Number.isFinite(r)){let e=Number(r.toExponential().split("e")[1]);e-=e%3,e in u_&&(o=u_[e],r=d_(r/10**e))}return{value:r,siPrefix:o}})(e,d,u),h=p<0,m=h&&l?l:s,{prefix:g,suffix:b}=l_(m),v=u&&b.startsWith("A")?b.slice(1):b,y=m.slice(g.length,m.length-b.length),{decimals:x,useThousands:S,decimalMask:w}=((e,t,n,r,o)=>{const i=r?e.indexOf(r):-1,a=-1===i?"":e.slice(i+r.length);let s=0;-1!==i?s=(a.match(/[#0]/g)??[]).length:n&&(s=String(Math.abs(t)).split(".")[1]?.length??0);const l=-1===i?e:e.slice(0,i);return{decimals:Math.min(s,100),useThousands:Boolean(o)&&l.includes(o),decimalMask:a}})(y,p,n||"U"===o,i,a),[C,E=""]=Math.abs(p).toFixed(x).split("."),I=S?C.replace(c_,a):C,R=w?((e,t)=>{let n=0,r="";for(const o of t)a_.test(o)?n<e.length&&(r+=e[n],n+=1):r+=o;return r})(E,w):E;return`${h&&!l?"-":""}${g}${R?`${I}${i}${R}`:I}${f}${v}`},f_=1e4;function h_(e,t){return[...t].reverse().find(t=>t*e<=f_)||Math.floor(f_/e)}function m_(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const n=e.qHyperCube.qDimensionInfo.length>0,r=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(n&&r||!i&&!n)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function g_(e,t,n,r){return t?0===n?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(r)?.qText??""}function b_(e,t){const n=e.qHyperCube.qGrandTotalRow.at(t);return $O(n?.qNum)}function v_(e,t,n,r,o){return e&&!e.auto?r&&"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}:r||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:n?"right":"left",bodyTextAlign:"auto"}}const y_=(e,t,n,r)=>"auto"!==t?t:r||"rtl"!==n?e?"right":"left":e?"left":"right",x_=(e,t)=>{if(!e)return;const{background:n,foreground:r}=e,o=se(n??""),i=se(r??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?hm(s,Km):void 0,c=s?hm(s,Ym):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:pm(s),headerMenuHoverBackground:l,headerMenuActiveBackground:c}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:c}};function S_(e,t,n,r){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,{colIdx:s,pageColIdx:l,visibleDimInfoIdx:c,visibleMeasureInfoIdx:u}=t,d=o.length,p=s<d,f=p?o[s]:i[s-d],h=p&&o[s].qGrouping===Xm.Cyclic,m=s===a[0];let g,b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:I}=f;if(p&&void 0!==c){const e=f;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:g}=e)}else({qMiniChart:b}=f),"bar"===E?.type&&(v=(({qMin:e,qMax:t,qAttrExprInfo:n})=>{if("number"!=typeof e||"number"!=typeof t||!Number.isFinite(e)||!Number.isFinite(t))return;const r=n.find(({id:e})=>"barOffset"===e),o=Number.isFinite(r?.qMin)?r?.qMin:0,i=Number.isFinite(r?.qMax)?r?.qMax:0;return{qMin:Math.min(o,o+e),qMax:Math.max(i,i+t),hasNegativeValues:e<0,hasPositiveValues:t>=0}})(f));const{qFallbackTitle:R,textAlign:A,qAttrExprInfo:D,qSortIndicator:M,qReverseSort:k,qApprMaxGlyphCount:T,columnWidth:q,qLibraryId:P,headerColor:L}=f,O=e.nullValueRepresentation?.text,N=!p&&void 0!==O&&HO(O)?p_(VO(O),f.qNumFormat,f.qIsAutoFormat):void 0;return{isDim:p,isCyclic:h,isLocked:x,fieldId:y,colIdx:s,qLibraryId:P,pageColIdx:l,qApprMaxGlyphCount:T,qReverseSort:k,columnWidth:q??{type:Gm.Auto},selectionColIdx:S,isActivelySorted:m,id:Uj(f),label:R??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:D.map(e=>e.id),qAttrExprInfoIndex:Wj(f),sortDirection:M&&"N"!==M?M:"A",totalInfo:g_(e,p,l,u??-1),...!p&&{isTotalNumeric:b_(e,u??-1)},...v_(A,g,p,n,r),representation:E,conditionalColoring:p?void 0:I,qNumFormat:p?void 0:f.qNumFormat,qIsAutoFormat:p?void 0:f.qIsAutoFormat,formattedNullValueText:N,qMiniChart:b,measureMinMax:v,headerColor:x_(L,n)}}const w_=(e,t,n)=>{const{qHyperCube:{qColumnOrder:r,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=((e,t,n)=>{const r=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<r,{qError:a}=i?t[o]:n[o-r];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 n=e<r,o=(n?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:n?s:void 0,visibleMeasureInfoIdx:n?void 0:s-r}})})(r.length===a?r:Array.from(Array(a).keys()),o,i);return s.map(r=>S_(e,r,t,n))},C_=(e,t,n)=>e?n.nullValueRepresentation?.dimensionText??t.qText??"-":n.nullValueRepresentation?.text??t.qText??"-",E_=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,I_={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},R_=Og(e=>{const t=e(A_),n=e(fb),r=e(Vj),o=n.qHyperCube.qSize.qcy,i=r.visibleHeight??t.rowsPerPage,a=r.visibleTop??t.page*i,s=r.visibleHeight??Math.min(i,o-a),l=n.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>f_?{...t,rowsPerPage:h_(l,t.rowsPerPageOptions),page:0}:t}),A_=Og(I_),D_=Og(e=>{const t=e(fb),n=e(Nb),r=e(Vj);return qb(t,n)?{page:r.page||I_.page,rowsPerPage:r.rowsPerPage||I_.rowsPerPage,rowsPerPageOptions:I_.rowsPerPageOptions}:e(R_)},(e,t,n)=>{t(A_,e=>({...e,...n}))}),M_=!0,k_=e=>-1===e.qElemNumber||!!e.qIsTotalCell,T_=Og(async e=>{const t=e(fb),n=e(Nb),r=e(Lb),{page:o,rowsPerPage:i}=e(D_),a=e(Vj),s=e($b),l=e(cb),c=e(mb),u=e(ub),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=m_(t,n),v=w_(t,M_,r),y=u("VNA-977-TABLE-BARS"),x=await(async(e,t,n)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const r=t.qHyperCube.qDataPages.at(0),o=r?.qArea;return r&&o?.qLeft===n.qLeft&&o.qTop===n.qTop&&o.qWidth===n.qWidth&&o.qHeight>=n.qHeight?[{...r,qMatrix:r.qMatrix.slice(0,n.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[n]):[]})(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,n)=>{const o=[],i=e.some(k_);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&E_(c,a.isDim),p=u||d?C_(a.isDim,c,t):c.qText,f=u?HO(p):BO(c),g=BO(c)&&!HO(c.qText??"");o[s]={id:LP(),...c,align:y_(f,a.bodyTextAlign,r,M_),rowIdx:n+h,colIdx:a.colIdx,pageRowIdx:n,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i&&!d,isTotalRow:i,isLastRow:n===m-1,isNumeric:f,isDual:g,isNull:(!u||!f)&&E_(c,a.isDim),qNumFormat:a.qNumFormat,qIsAutoFormat:a.qIsAutoFormat,formattedNullValueText:a.formattedNullValueText,representation:Hj({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,measureMinMax:a.measureMinMax,getText:()=>p,direction:r,enabledFeatures:{[VP.Image]:!0,[VP.Indicator]:!0,[VP.MiniChart]:!0,[VP.Bar]:!a.isDim&&y}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),q_=wv(T_,e=>e),P_=Og(e=>{const t=e(fb),n=e(Nb),r=e(Rb),o=e(Lb),i=w_(t,false,o),a=m_(t,n),s=t.qHyperCube.qSize.qcy,l=Math.min(QN,s),c=s>QN&&!!r.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:c}}),L_={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},O_=Og(),N_=Og(e=>{const t=e(_b),n=e(O_);return n||(t?e(q_)??L_:e(P_))}),j_=Og(e=>e(N_).totalsPosition),__=Og(e=>e(N_).columns),z_=Og(e=>e(__).length),F_=Og(e=>e(N_).rows),$_=Og(e=>e(N_).totalRowCount),B_=Og(e=>e(N_).totalColumnCount),H_=Og(e=>e(N_).paginationNeeded),V_=Og(e=>{const t=e(Gb),n=e(Xb),r=e(fb),o=e(j_),i=e(F_),a=o.atTop,s=function(e,t,n,r){const o=GN(e)?.content,i=KN("content",t,o);i.background=t.background.color;const a=UN(i.fontSize,n,r),s=o?.hoverColor,l=o?.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),u=t.getStyle("object","","straightTableV2.content.hover.color"),d=HN(l)||!!u,p=HN(s)||!!c,f=d||p;let h;h=HN(s)?VN(dm.HOVER,t,s):c||(d?"":dm.HOVER);const m=f?VN(pm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(r,n,i.length,t),l=YN(r,n,!a),c=function(e,t,n){const r=GN(e)?.content,o=KN("content",t,r),{borderBottomColor:i,borderTopColor:a,background:s}=YN(e,t,n);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(r,n,a);return{body:s,head:l,totals:c}}),W_=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},U_=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=W_(e,t?.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},G_=(e,t,n,r=dm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=U_(e,t,n);return Sm(i,o,a,r)??r},K_=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return vN}},Y_=e=>e?.some(e=>"italic"===e)?"italic":"normal",X_=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?yN:"normal",J_=e=>!1===e?1:3,Z_=e=>e?.some(e=>"underline"===e)?"underline":"none",Q_=Og(e=>{const t=e(Nb),n=e(_b),r=e(Xb),o=e(fb),i=e(V_),{header:a,dimensionValues:s,measureValues:l,totalValues:c,subTotalValues:u,nullValues:d,dimensionNullValues:p,grid:f,content:h}=GN(o)??{},m=n?dm.WHITE:dm.TRANSPARENT,g=G_(r,a,"object.straightTableV2.dimension.label.name.backgroundColor",m),b=t?.maxLineCount??h?.rowHeight??r.getStyle("object.straightTableV2","grid","lineClamp"),v=p??d;return{header:{fontFamily:a?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??xN,fontSize:K_(a?.fontSize??r.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:Y_(a?.fontStyle),fontWeight:X_(a?.fontStyle,yN),textDecoration:Z_(a?.fontStyle),color:W_(r,a?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??dm.TEXT,background:g},headerMenuHoverBackground:hm(g,Km),headerMenuActiveBackground:hm(g,Ym),dimension:{values:{fontFamily:s?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??xN,fontSize:K_(s?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:Y_(s?.fontStyle),fontWeight:X_(s?.fontStyle,"normal"),textDecoration:Z_(s?.fontStyle),color:W_(r,s?.fontColor)??W_(r,h?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??dm.TEXT,background:U_(r,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??dm.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??r.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??xN,fontSize:K_(l?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:Y_(l?.fontStyle),fontWeight:X_(l?.fontStyle,"normal"),textDecoration:Z_(l?.fontStyle),color:W_(r,l?.fontColor)??W_(r,h?.fontColor)??r.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??dm.TEXT,background:U_(r,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??dm.TRANSPARENT}},totalRow:{fontFamily:c?.fontFamily??r.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??xN,fontSize:K_(c?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:Y_(c?.fontStyle),fontWeight:X_(c?.fontStyle,yN),textDecoration:Z_(c?.fontStyle),color:W_(r,c?.fontColor)??W_(r,h?.fontColor)??r.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??dm.TEXT,background:G_(r,c,"object.straightTableV2.total.label.value.backgroundColor",m)},subTotalRow:{fontFamily:u?.fontFamily??r.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??xN,fontSize:K_(u?.fontSize??h?.fontSize??r.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:Y_(u?.fontStyle),fontWeight:X_(u?.fontStyle,yN),textDecoration:Z_(u?.fontStyle),color:W_(r,u?.fontColor)??W_(r,h?.fontColor)??r.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??dm.TEXT,background:G_(r,u,"object.straightTableV2.subTotal.label.value.backgroundColor",m)},dimensionNull:{fontStyle:Y_(v?.fontStyle),fontWeight:X_(v?.fontStyle,"normal"),textDecoration:Z_(v?.fontStyle),color:W_(r,v?.fontColor)??W_(r,h?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??dm.TEXT,background:W_(r,v?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??dm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:Y_(d?.fontStyle),fontWeight:X_(d?.fontStyle,"normal"),textDecoration:Z_(d?.fontStyle),color:W_(r,d?.fontColor)??W_(r,h?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??dm.TEXT,background:W_(r,d?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??dm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:b??J_(o.multiline?.wrapTextInCells),headerLineClamp:J_(o.multiline?.wrapTextInHeaders),border:W_(r,f?.border)??r.getStyle("object.straightTableV2","grid","borderColor")??(r.background.isDark?dm.DARK_MODE_BORDER:dm.BORDER_MEDIUM),divider:W_(r,f?.divider)??r.getStyle("object.straightTableV2.grid","","divider.borderColor")??dm.BORDER_HEAVY,hoverColors:{color:W_(r,h?.hoverFontColor)??r.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:W_(r,h?.hoverColor)??r.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!f?.zebraStripes?.show,odd:{color:W_(r,f?.zebraStripes?.color?.odd),background:W_(r,f?.zebraStripes?.background?.odd)},even:{color:W_(r,f?.zebraStripes?.color?.even),background:W_(r,f?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===W_(r,v?.background),overrideDimNullValueColor:void 0===W_(r,v?.fontColor),overrideMeasNullValueBackground:void 0===W_(r,d?.background),overrideMeasNullValueColor:void 0===W_(r,d?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:fm(r),contentStaticLineCount:b}}),ez=Og(e=>{const t=e(Q_);return Math.max(_N(t.header.fontSize)+8,32)}),tz=Og(e=>{const t=e(Q_),n=_N(t.totalRow.fontSize);return Math.max(n+9,24)}),nz=Og(e=>{const t=e(Q_),n=e(gb),r=e(bb);return Math.max(n>0?_N(t.dimension.values.fontSize):0,r>0?_N(t.measure.values.fontSize):0)}),rz=Og(e=>{const t=e(Q_),n=e(nz),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),oz=Og(e=>{const t=e(Q_),n=_N(t.subTotalRow.fontSize),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),iz=(e,t,n)=>{if(!e.length)return[];const r=[],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=()=>{r[a]=Math.min(Um.PixelsMax,Math.max(Um.PixelsMin,f)),i-=r[a]};switch(s){case Gm.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?Um.PixelsDefault:+e)(l),h();break;case Gm.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?Um.PercentageDefault:+e)(c)/100*t,h();break;case Gm.FitToContent:e.representation?.type===VP.Image?o.push(a):(f=n(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case Gm.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=>{r[t]=Math.max(Um.AutoMinTable,e)})}return r},az=Og(e=>{const t=e(Q_),n=e(N_).totalsPosition,r=e(Sb),{measureText:o}=e(PO({...t.header,fontWeight:yN})),{measureText:i}=e(PO({...t.totalRow,fontWeight:yN})),{estimateWidth:a}=e(PO(t.dimension.values)),{estimateWidth:s}=e(PO(t.measure.values)),l=n.atBottom||n.atTop;return(e,t,n,c,u,d,p)=>{let f;if(r){const t=4;let n=25;n+=t+24,c&&(n+=20+t),u&&(n+=20),f=o(e)+n}else{let t=9;t+=16,p&&(t+=DN),t+=DN,t+=DN,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(n))}}),sz=Og(null),lz=Og(e=>{const t=e(N_),n=e(Ub).width,r=e(jN),o=e(az);return iz(t.columns,n-r,o)}),cz=Og(e=>e(sz)??e(lz),(e,t,n)=>{t(sz,n)}),uz=Gv(e=>{const t=e(OO);!1===e(ON)&&t.emit("done-adjusting-column-width")}),dz=Gv((e,t)=>{e(fb),t(sz,null)}),pz=Og(e=>e(cz).reduce((e,t)=>e+t,0)),fz=({children:e})=>(Gg(dz),Gg(uz),e);function hz(e){const t=lm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),ac({...t,direction:e})}const mz={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},gz={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},bz=Ec("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...mz},"&::-moz-range-track":{...mz},"&::-ms-track":{...mz},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...gz},"&::-moz-range-thumb":{...gz},"&::-ms-thumb":{...gz},"&: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"}})),vz=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,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=n?0:1,m=r&&!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}};Om(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,Um.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:Gm.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=>{vm(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=>{vm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},I=!r&&s?e=>{if(e.key===Vm.Left||e.key===Vm.Right){vm(e);const t=5,n=e.key===Vm.Left?t:-t,r="rtl"===d?n:-n;l?.(!0),y(f.current.columnWidth+r)}else e.key===Vm.Space||e.key===Vm.Enter?(vm(e),s(e),l?.(!1),x()):e.key===Vm.Esc&&(vm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,R=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return Yt.jsx(bz,{style:b,hoverColor:o,isLastColumn:n,className:Wm,"data-testid":Wm,onMouseDown:e=>{vm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:Gm.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(vm(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:I,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":R,"aria-valuemin":Um.PixelsMin,"aria-valuemax":Um.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},yz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),xz=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null},Sz=Ec(md,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),wz=Ec(yz,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Cz=Ec(Tf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Ez=Ec(cp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),Iz=Ec(Nf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),Rz=Ec(Nf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:n?"rgba(0, 0, 0, 0.05)":"transparent"})),Az=Ec("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),Dz=Ec("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),Mz=Ec(Tu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),kz=Ec(rf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),Tz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),qz=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?qz(t):t:e.parentElement?.children?.[0]},Pz=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?Pz(t):t},Lz=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===Vm.Down||t===Vm.Up){const n=e=>t===Vm.Down?qz(e):Pz(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},Oz=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let Nz={};const jz=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:u})=>{const[d,p]=M(!1),f=w.useRef(null),h=O(e=>{e.stopPropagation(),p(!1)},[p]);return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(Rz,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),Nz={}),a?.length&&(p(!0),Nz[r]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:Lz,children:[l?Yt.jsx(Az,{direction:c,isPagination:u}):null,Yt.jsxs(Dz,{children:[Yt.jsx(kz,{direction:c,isPagination:u,children:Yt.jsx(o,{})}),Yt.jsx(Mz,{variant:"body2",children:r})]}),a?.length?Yt.jsx(Tz,{}):null]},t),a?.length?Yt.jsx($z,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:Oz(a,Nz),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},_z=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&Yt.jsx(Iz,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>Yt.jsx(jz,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),zz=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[_z({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?Yt.jsx(Ez,{"data-testid":"group-divider",variant:"middle"}):void 0]),Fz={appear:0,enter:0,exit:0},$z=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?Yt.jsx(Cz,{className:$m,open:t,anchorEl:e,onClose:n,transitionDuration:Fz,MenuListProps:{id:Bm},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:zz({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,Bz=({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:o,onPopoverClose:i})=>O(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:o,onPopoverClose:i})}},[e,t,n,r?.qStateName,o,i]),Hz=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),Vz=(e,t)=>e.some(e=>t[e]>0),Wz={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Uz=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=M(null),[a,s]=M(Wz);return Om(()=>{e||(s(Wz),i(null))},[e]),P(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=Hz(t,n),c=await r.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:Vz(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Vz(["qSelected"],e),canSelectPossible:Vz(["qOption"],e),canSelectAlternative:Vz(["qAlternative"],e),canSelectExcluded:Vz(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Gz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),Kz=F((e,t)=>Yt.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:Yt.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"})})),Yz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),Xz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),Jz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),Zz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),Qz=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),eF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),tF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),nF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),rF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),oF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),iF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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 aF=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const sF="/qListObjectDef",lF=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[aF.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),r(!1)},icon:Gz,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),r(!1)},icon:Xz,enabled:s,isActive:!!n&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:Qz,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:cP,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[aF.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:eF,enabled:!0}]}]),!e.isLocked&&n[aF.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:iF,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(sF))},icon:tF,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(sF))},icon:oF,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(sF))},icon:nF,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(sF))},icon:rF,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(sF))},icon:Kz,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:Zz,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:Jz,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[aF.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),u?.(c)},icon:Yz,enabled:!0}]}]),f},cF=({open:e,setOpen:t,anchorRef:n,headerData:r,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=_m})=>{const v=k(null),y=jm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=r,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:I}=Uz({open:e,headerData:r,app:C,qStateName:u?.qStateName}),R=xz({model:f,headerData:r}),A=Bz({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),D=O(e=>{e.stopPropagation(),t(!1)},[t]),M=O(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?Yt.jsxs(Sz,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:Fm,onClick:!1===g?M:void 0,ref:v,isAccessibleHeader:g,children:[s?Yt.jsx(wz,{height:b,className:zm,"data-testid":zm,isInteractionsActive:i.active??!1,children:Yt.jsx(yz,{})}):null,Yt.jsx($z,{open:e,anchorEl:!1===g?v.current:n.current,onClose:D,menuGroups:lF({headerData:r,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:I,anchorRef:n,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},uF=e=>e.isDark?{background:e.color,borderColor:dm.DARK_MODE_BORDER,color:dm.DARK_MODE_TEXT,disabledColor:dm.DARK_MODE_DISABLED,iconColor:dm.DARK_MODE_TEXT}:{background:e.color,borderColor:dm.BORDER_MEDIUM,color:dm.TEXT,disabledColor:dm.DISABLED},dF=Ec(md,{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}`})),pF=Ec(gh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),fF=Ec(Id,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)})),hF=Ec(Tu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),mF=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=D(()=>uF(r.background),[r]);if(!n.active)return null;const a=o?Yt.jsx(dF,{footerStyle:i,children:e}):null;return t?V.createPortal(e,t):a},gF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),bF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),vF=T({}),yF=()=>N(vF),xF=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,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=D(()=>uF(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=jm({translator:d}),S=D(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,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,n,r,o,i,a,s,l,c,u,x,p,f,h,m,v,b,y,g]);return Yt.jsx(vF.Provider,{value:S,children:e})},SF=({disabledCondition:e,pageNumber:t,type:n,footerStyle:r,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:r,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${n}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let wF=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),CF=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 EF=()=>{const{direction:e,pageInfo:t,width:n,interactions:r,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=yF(),c=0===t.page,u=SF({type:wF.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:r,tabIndex:l});return n<=(o?.firstPage||CF.FirstPage)?null:Yt.jsx(fF,{...u,disabled:!r.active,children:"rtl"===e?Yt.jsx(bF,{height:_m}):Yt.jsx(gF,{height:_m})})},IF=(e,t,n=!1)=>{n&&e.key===Vm.Tab&&!e.shiftKey&&(vm(e),bm(e.target,t,!1))},RF=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:c,translator:u,tabIndex:d}=yF(),p=t.page>=r-1,f=SF({type:wF.LastPage,disabledCondition:p,pageNumber:r-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=n.enabled?e=>{IF(e,n,o)}:void 0;return i<=(s?.lastPage||CF.LastPage)?null:Yt.jsx(fF,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?Yt.jsx(gF,{height:_m}):Yt.jsx(bF,{height:_m})})},AF=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),DF=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=yF(),d=t.page>=r-1,p=SF({type:wF.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>CF.FirstPage&&i>CF.LastPage)&&n.enabled?e=>{IF(e,n,o)}:void 0;return Yt.jsx(fF,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?Yt.jsx(AF,{height:_m}):Yt.jsx(Tz,{height:_m})})},MF=()=>{const{direction:e,pageInfo:t,interactions:n,footerStyle:r,handleChangePage:o,translator:i,tabIndex:a}=yF(),s=0===t.page,l=SF({type:wF.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:r,handleChangePage:o,translator:i,interactions:n,tabIndex:a});return Yt.jsx(fF,{...l,disabled:!n.active,children:"rtl"===e?Yt.jsx(Tz,{height:_m}):Yt.jsx(AF,{height:_m})})},kF=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=yF(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||CF.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return Yt.jsx(hF,{variant:"caption",dir:"ltr",children:s})},TF=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=yF(),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 Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(hF,{variant:"caption",id:p,children:[u,":"]}),Yt.jsx(pF,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},qF=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=yF();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||CF.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=Yt.jsx(Yt.Fragment,{children:e.rowsPerPageOptions.map(e=>Yt.jsx("option",{value:e,children:e},e))});return Yt.jsx(TF,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},PF=1e3,LF="…",OF=({totalPages:e,page:t})=>{const n=Math.min(e,PF),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-PF):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return Yt.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(Yt.jsx("option",{value:LF,disabled:!0,children:LF},"startMoreOptions")),o<e-1&&a.push(Yt.jsx("option",{value:LF,disabled:!0,children:LF},"endMoreOptions")),Yt.jsx(Yt.Fragment,{children:a})},NF=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=yF(),{page:i}=e;if(t<=(o?.selectPage||CF.SelectPage))return null;const a=Yt.jsx(OF,{totalPages:n,page:i});return Yt.jsx(TF,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var jF=z(e=>Yt.jsxs(xF,{...e,children:[Yt.jsx(qF,{}),Yt.jsx(NF,{}),Yt.jsx(kF,{}),Yt.jsx(EF,{}),Yt.jsx(MF,{}),Yt.jsx(DF,{}),Yt.jsx(RF,{})]}));const _F=e=>Yt.jsx(mF,{...e,children:Yt.jsx(jF,{...e})}),zF=(e,t,n)=>{const r=n.size,o=r>=t.size;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},FF=(e,t,n)=>{n&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},$F=e=>e.ctrlKey||e.metaKey,BF=e=>e.shiftKey&&$F(e),HF=e=>[Vm.Left,Vm.Right,Vm.Up,Vm.Down].some(t=>t===e),VF=e=>e.shiftKey&&HF(e.key),WF=e=>{return t=e.key,(HF(t)||[Vm.Home,Vm.End,Vm.PageUp,Vm.PageDown].some(e=>e===t))&&!BF(e);var t},UF=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)n?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(r)}return l=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?(new Map).set(r,o):(e.has(r)?e.delete(r):e.set(r,o),new Map(e))})(l,i,s),zF(a,r,l),l.size?(n?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(n?.cancel(),{...e,rows:l,colIdx:-1})},GF=(e,t)=>{const{api:n,rows:r,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:c}=t;if(!(a||"key"in c&&VF(c)))return e;-1===o&&n?.begin(["/qHyperCubeDef"]);const u=((e,t,n,r,o)=>{if(!n.isSelectable)return t;const i=new Map(t);if("key"in r&&VF(r)){i.set(n.qElemNumber,n.rowIdx);const t=r.key===Vm.Down?1:-1,o=e[n.pageRowIdx+t][n.pageColIdx];return o.isSelectable&&i.set(o.qElemNumber,n.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),s=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=s;t++){const n=e[t][o.pageColIdx];n.isSelectable&&i.set(n.qElemNumber,n.rowIdx)}return i})(i,r,s,c,a);return zF(l,r,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},KF=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(n.values()),[r]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},YF=(e,t)=>{switch(t.type){case jO.Select:return UF(e,t.payload);case jO.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case jO.SelectMouseUp:return((e,t)=>KF(e.isSelectMultiValues||e.firstCell!==t.cell?e:UF(e,t)))(e,t.payload);case jO.SelectMultiAdd:return GF(e,t.payload);case jO.SelectMultiEnd:return KF(e);case jO.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case jO.Clear:return e.rows.size?{...e,rows:new Map}:e;case jO.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},XF=Og(e=>{const t=e(Eb);return function(e,t){return Og(e,function(e,n,r){n(this,t(e(this),r))})}({pageRows:[],rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},YF)}),JF=Og(e=>e(e(XF)),(e,t,n)=>{t(e(XF),n)}),ZF=Hx(e=>Og(t=>{const{colIdx:n,rows:r,api:o}=t(JF);return"object"==typeof e&&o?.isModal()?n!==e.selectionColIdx?NO.Disabled:r.has(e.qElemNumber)?NO.Selected:NO.Possible:NO.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),QF=Og(e=>{const t=e(pz),n=e(Ub).width,r=e(jN);return t>0&&t+r<n}),e$=()=>{const[e,t]=M(!1);return Kk({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?Yt.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},t$=(e,{atTop:t,atBottom:n},r)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!r&&n?e.grid.divider:e.grid.border,borderBottomColor:r&&!t||!r&&t?e.grid.divider:e.grid.border}),n$=Og(e=>{const t=e(gb),n=e(Bb);if(void 0!==n)return async(e,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,c=o?i:i-t,u=await n.getEffectiveProperties(),{qInterColumnSortOrder:d}=u.qHyperCubeDef,p=[],f=r!==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})})}if(!l){const e=[i,...d.filter(e=>e!==i)];p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${e.join(",")}]`})}f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),n.applyPatches(p,!0)}}),r$=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},o$=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r})=>(e>n?e--:t>n&&(t--,e=r),[t,e]),i$=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r,lastRowIdx:o})=>(e<r?e++:t<o&&(t++,e=n),[t,e]),a$=e=>e.atTop?2:1,s$=(e,t)=>({top:e?a$(t):0,bottom:e&&t.atBottom?1:0}),l$=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],c$=e=>e?.setAttribute("tabIndex","0"),u$=e=>e?.setAttribute("tabIndex","-1"),d$=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(u$)},p$=e=>{e?.focus(),c$(e)},f$=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${Wm}`);p$(t)},0)},h$=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o,direction:i})=>{d$(t);const a=((e,t,n,r,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]=n;switch(e.key){case Vm.Down:c<s&&c++;break;case Vm.Up:c>a&&c--;break;case Vm.Right:if(i)break;[c,u]="rtl"===r?o$({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):i$({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case Vm.Left:if(i)break;[c,u]="rtl"===r?i$({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):o$({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case Vm.Home:($F(e)||i)&&(c=a),i||(u=0);break;case Vm.End:($F(e)||i)&&(c=s),i||(u=l);break;case Vm.PageDown:c=Math.min(s,c+10);break;case Vm.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,n,i,o),s=l$(t,a);return p$(s),((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(!n?.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[r].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-i.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),r(a),{nextCell:s,nextCellCoord:a}},m$=(e,t,n,r)=>{d$(t),n(e),r.enabled&&!r.active?r.focus?.():p$(l$(t,e))},g$=(e,t,n)=>{const r=e.currentTarget;if(!r)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${$m}`))return;const i=!!o&&r.contains(o);!n.enabled||t.current||i||(e=>{const t=e.querySelector(`.${zO.First}`),n=e.querySelector(`.${zO.Second}`);t&&n&&(t.textContent="",n.textContent="")})(r),((e,t,n)=>{const r=e.currentTarget;if(!n.enabled||t.current||!r)return;const o=e.relatedTarget??document.activeElement;o&&r.contains(o)||n.blur?.(!1)})(e,t,n)},b$=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),v$=Ec(Lh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:n,background:r,color:o})=>({...SN,...e,cursor:t.active?"pointer":"default",background:r,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?n:r}})),y$=Ec("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:vN,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),x$=parseInt(vN,10)/2,S$=Ec("div")({position:"absolute",bottom:-x$,left:`calc(50% - ${x$}px)`}),w$=Ec(Xh)({position:"sticky",top:0,zIndex:1}),C$={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},E$=Ec(md)({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"}}),I$=Ec("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isDual"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:n=!1,isNumeric:r=!1,isDual:o=!1})=>r&&!o||1===e&&!t?{...C$,whiteSpace:"nowrap",display:n?"block":void 0}:{...C$,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),R$=Ec("div",{shouldForwardProp:e=>"indentation"!==e&&"isFlex"!==e&&"justifyContent"!==e})(({indentation:e,isFlex:t,justifyContent:n})=>({width:"100%",height:"100%",boxSizing:"border-box",minWidth:0,paddingInlineStart:`min(${e}, 50%)`,...t&&{display:"flex",justifyContent:n,alignItems:"inherit"}})),A$=Ec("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),D$="cell-text",M$=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=Gg(Q_);return o?Yt.jsx(I$,{"data-testid":D$,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:r,isHeadCell:!0,style:{direction:n?"ltr":void 0},children:e}):Yt.jsx(I$,{"data-testid":D$,ref:t,className:"sn-table-cell-text",isDual:i,isNumeric:n,lineClamp:a??s.grid.contentLineClamp,isPagination:r,style:{direction:n?"ltr":void 0},children:e})},k$=e=>{const{column:t,isInteractionEnabled:n,open:r,setOpen:o,isPagination:i,forwardRef:a}=e,s=Gg(vb),l=Gg(n$),c=Gg(Lb),u=Gg(Rb),d=Gg(Zg),p=Gg(Jb),f=Gg(Xg),h=Gg(cz)[t.pageColIdx],m=Gg($b),g=k(null),b=k(null),v=(({column:e,columnWidth:t})=>{const n=Gg(Q_),{measureText:r}=Mm({fontSize:n.header.fontSize,fontFamily:n.header.fontFamily,fontWeight:yN});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=r(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:n,shouldShowLockIcon:r},o)=>{const i="A"===e?Yt.jsx(Gz,{height:vN,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(Xz,{height:vN,"data-testid":"head-cell-sort-descending-icon"}),a=n?Yt.jsx(y$,{align:t,dir:o,children:i}):void 0,s=r?Yt.jsx(qN,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Yt.jsx(b$,{height:vN,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return Yt.jsxs(TN,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:EN(t,i,c),children:[S,Yt.jsxs(kN,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,Yt.jsx(M$,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),n?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(cF,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[aF.Sorting]:!0,[aF.Searching]:!0,[aF.Selections]:!0,[aF.AdjusterHeaderSize]:!0},open:r,setOpen:o,interactions:u,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),l?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:f$},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),Yt.jsx(MN,{ref:b,direction:c,isPagination:i}),Yt.jsx(MN,{ref:g,direction:c})]}):null]})},T$=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.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"})})),q$=(e,t)=>e.isCyclic&&t,P$=({column:e})=>{const t=Gg(Q_),n=Gg(Lb),r=Gg($b),o=w.useRef(null),[i,a]=w.useState(!1),s=xz({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(LN,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:Yt.jsx(T$,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),Yt.jsx($z,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(n)},enabled:!0,icon:cP,isActive:e.groupDimensionPos===n}))}]],anchorEl:o.current,direction:n,isPagination:!1})]})},L$=e=>e.isLocked,O$=({column:e})=>{const t=Gg(Xg),n=Gg(vb),r=Gg(db),o=Gg(Q_);return Yt.jsx(LN,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,onClick:o=>{o.stopPropagation(),(async(e,t,n,r={warn:()=>{},error:()=>{}})=>{const o=Hz(t??"$",n);let i;try{const t=await(e?.createSessionObject(o));i=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){r.error({msg:"Failed to unlock field from table header",payload:e})}finally{i&&(await(e?.destroySessionObject(i))||r.error({msg:"Failed to destroy session object when unlocking field from table header"}))}})(t,n,e,r)},children:Yt.jsx(b$,{height:16,"data-testid":"head-cell-lock-icon"})})},N$=({column:e,menuIconRef:t,open:n,setOpen:r})=>{const o=Gg(Q_);return Yt.jsx(LN,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:n,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),r(e=>!e)},ref:t,children:Yt.jsx(yz,{height:16})})},j$=({anchorRef:e,column:t,isPagination:n,listboxRef:r,open:o,setOpen:i})=>{const a=Gg(Xg),s=Gg(Lb),l=Gg(Zg),c=Gg(Rb),u=Gg($b),d=Gg(vb),p=Gg(Jb),f=Gg(n$);return Yt.jsx(cF,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[aF.Sorting]:!0,[aF.Searching]:!0,[aF.Selections]:!0,[aF.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),f?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:r},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:f$},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:n})},_$=Og();_$.onMount=e=>{const t=new Map,n=new ResizeObserver(e=>{for(const n of e){const e=t.get(n.target);e&&e.current(n)}});return e({callbacks:t,observer:n}),()=>{t.clear(),n.disconnect()}};const z$=({ref:e,callback:t})=>{const n=Gg(_$),r=k(t);r.current=t,j(()=>{const t=e.current;return void 0===n?()=>{}:(t&&(n.callbacks.set(t,r),n.observer.observe(t)),()=>{t&&(n.callbacks.delete(t),n.observer.unobserve(t))})},[e,r,n])},F$=Ec(md)({display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",boxSizing:"border-box"}),$$=({children:e})=>{const t=w.useRef(null),[n,r]=M(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=D(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=O(e=>{const t=new Set,n=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const r=e.props.minWidth+1;void 0===e.props.prio||i+r<=n?i+=r:t.add(e.key)}),r(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return z$({ref:t,callback:i}),Yt.jsx(F$,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!n.has(e.key))})},B$=({children:e})=>e,H$=(e,t)=>!e.isLocked&&e.isDim&&t,V$=({column:e,open:t,setOpen:n})=>{const r=Gg(Q_),o=Gg(vb),i=Gg(Lb),a=Gg(Zg);Gg(Xg);const s=w.useRef(null),l=O(()=>{n(!1)},[n]),c=Bz({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return Yt.jsx(LN,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),n(!0)},children:Yt.jsx(eF,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},W$=({column:e})=>{const{sortDirection:t,isActivelySorted:n}=e,r="A"===t?Yt.jsx(fN,{height:vN,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(uN,{height:vN,"data-testid":"head-cell-sort-descending-icon"});return n?Yt.jsx(S$,{children:r}):void 0},U$=0,G$=1,K$=2,Y$=3,X$=e=>{const{column:t,open:n,setOpen:r,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=Gg(Q_),c=Gg(Lb),{measureText:u}=Mm(l.header),[d,p]=M(!1),f=k(null),h=k(null),m=k(null),g="number"==typeof a&&a>Um.PixelsMin+18;return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs($$,{children:[Yt.jsx(B$,{prio:K$,minWidth:DN,children:L$(t)?Yt.jsx(O$,{column:t}):null},"Lock"),Yt.jsx(B$,{prio:G$,minWidth:DN,children:q$(t,s)?Yt.jsx(P$,{column:t}):null},"Cyclic"),Yt.jsx(B$,{ignore:!0,children:Yt.jsx(W$,{column:t})},"Sort"),Yt.jsx(B$,{minWidth:u(t.label)+8,children:Yt.jsx(PN,{justifyContent:t.headTextAlign,children:Yt.jsx(M$,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),Yt.jsx(B$,{prio:g?void 0:U$,minWidth:DN,children:d||H$(t,s)?Yt.jsx(V$,{open:d,setOpen:p,column:t}):null},"Search"),Yt.jsx(B$,{prio:Y$,minWidth:DN,children:s?Yt.jsx(N$,{menuIconRef:m,column:t,open:n,setOpen:r}):null},"Menu")]}),s?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(MN,{ref:h,direction:c,isPagination:o}),Yt.jsx(MN,{ref:f,direction:c}),Yt.jsx(j$,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:n,setOpen:r})]}):null]})},J$=Ec("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:n})=>({...t,background:e,color:n})),Z$=()=>{},Q$=({column:e,isPagination:t})=>{const n=Gg(Q_),r=Gg(Lb),o=Gg(QF),i=Gg(j_),a=!1,s=Gg(Sb)?k$:X$;return Yt.jsx(J$,{className:"sn-table-cell",applicableStyle:{...n.header,...t$(n,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:RN(r,a,o),borderLeftWidth:AN(r,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??n.header.background,color:e.headerColor?.color??n.header.color,children:Yt.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:Z$})})},eB=({isPagination:e})=>{const t=Gg(__),[n,r]=M();Kk({onDragStart:e=>{const t=e.operation.source?.id;r(t)},onDragEnd:()=>{}});const o=n?t.find(e=>e.id===n):void 0;return o?Yt.jsx(Ik,{children:Yt.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:Yt.jsx(Q$,{column:o,isPagination:e})})}):null},tB=Og(async e=>{e(fb);const t=e(Bb),n=await(t?.getEffectiveProperties());return n&&structuredClone(n)}),nB=wv(tB,e=>e),rB=Og(e=>e(nB)?.qHyperCubeDef),oB=[TM.configure({activationConstraints:[new AM.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],iB=ZM.plugins.filter(e=>e!==QA),aB=(e,t,n)=>{const r=JSON.stringify(t),o=JSON.stringify(n);if(r!==o)return{qPath:e,qOp:"Replace",qValue:o}},sB=(e,t,n,r,o)=>{if(!e||!t||r===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,visibleColumnIds:r,sourceId:o,targetId:i})=>{const a=OP({qDimensions:e,qMeasures:t}),s=[...e,...t],l=r.findIndex(e=>e===o),c=r.findIndex(e=>e===i);if(l<0||c<0||l===c)return;const u=((e,t,n)=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r})(r,l,c),d=new Map(u.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const n=d.get(e.id),r=d.get(t.id);return void 0===n||void 0===r?0:n-r}),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:NP({previousColumns:s,nextColumns:m,qInterColumnSortOrder:n}),qColumnOrder:u.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:n.map(e=>e.id),sourceId:r,targetId:o});if(!i)return;const a=[aB("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),aB("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),aB("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),aB("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},lB=({children:e})=>{const t=Gg(Bb),n=Gg(rB),r=Gg(__);return Yt.jsx(wk,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&sB(t,n,r,o,i)},sensors:oB,plugins:iB,children:e})},cB=(e,t)=>{const n=Gg(Fb);P(()=>{const r=e.current;if(!r)return;const o=e=>{g$(e,t,n)};return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}},[e,t,n])},uB=Og(FO),dB=Hx(e=>Og(t=>{const[n,r]=t(uB);return 0===n&&r===e})),pB=()=>{const e=Gg(Jg);P(()=>{e.notifyIsDoneRendering()})};var fB={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 hB=Og(e=>{const t=e(Jb),n=e(Gb),r=e(db);let o;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(fB).forEach(t=>{e.add(fB[t])})}(t),({keys:e,politeness:i="polite"})=>{const a=e.map(e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)}).join(" "),s=n.querySelector(`.${zO.First}`),l=n.querySelector(`.${zO.Second}`);if(!s||!l)return void r.error({msg:"could not find aria-live elements, which means accessibility is not working properly"});let c;o===zO.First?(c=l,o=zO.Second):(c=s,o=zO.First),c.textContent=c.textContent?.endsWith(" ­")?a:`${a} ­`,c.setAttribute("aria-live",i)}});const mB=e=>{const t=Gg(hB),n=Gg(Gb),r=Gg(B_),o=Gg($_),i=Gg(F_),a=Gg(j_),[s,l]=Yg(uB),c=Gg(Cb),u=Gg(Fb),d=i[0]?.[0]?.rowIdx;!function(e,t){const n=k(!1);P(()=>{n.current?e():n.current=!0},t)}(()=>{const r=((e,t,n=!1)=>{const r=[a$(t),e[1]];return n?r:FO})(s,a,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(d$(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=l$(t,e);n.current?(p$(s),n.current=!1):c$(s),r&&(a({keys:[s?.textContent??""]}),FF(a,s,r))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:l,isSelectionMode:c,keyboard:u,announce:t})},[i.length,o,r,d])},gB=e=>{vm(e),$F(e)&&Qm(e.currentTarget)},bB=e=>{WF(e.evt)&&(vm(e.evt),h$(e))},vB=e=>{const{evt:t,totalsPosition:n,cell:r,isSelectionMode:o}=e;if(!WF(t))return;vm(t);const i=((e,t)=>[e.pageRowIdx+a$(t),e.pageColIdx])(r,n),a=s$(o,n),{nextCell:s,nextCellCoord:l}=h$({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:n,selectionDispatch:r,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&n.isSelectable?r({type:jO.SelectMultiAdd,payload:{cell:n,evt:e,announce:o}}):FF(o,a,i)})({...e,nextCell:s})},yB=e=>{const{evt:t}=e;BF(t)?(({evt:e,totalRowCount:t,rowsPerPage:n,page:r,updateShouldRefocus:o,handleChangePage:i})=>{vm(e);const a=Math.ceil(t/n)-1;e.key===Vm.Right&&r<a?(o(),i(r+1)):e.key===Vm.Left&&r>0&&(o(),i(r-1))})(e):t.key===Vm.Esc?(({evt:e,keyboard:t,isSelectionMode:n})=>{t.enabled&&!n&&(vm(e),t.blur?.(!0))})(e):HF(t.key)&&vm(t)},xB=e=>{const{evt:t,selectionsAPI:n}=e;if(t.currentTarget.classList.contains(NO.Disabled))return void vm(t);const r={...e,isSelectionMode:!!n?.isModal()};switch(t.key){case Vm.Space:(({evt:e,cell:t,isSelectionsEnabled:n,selectionDispatch:r,announce:o})=>{vm(e),t.isSelectable&&n&&r({type:jO.Select,payload:{cell:t,evt:e,announce:o}})})(r);break;case Vm.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{vm(n),e&&(t?.confirm(),r({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(r);break;case Vm.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{e&&(vm(n),t?.cancel(),r({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(r);break;case Vm.C:gB(t);break;case Vm.Tab:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{const o=e.shiftKey||!r;t.enabled&&n&&o&&(vm(e),bm(e.currentTarget,t,e.shiftKey))})(r);break;default:vB(r)}},SB=e=>{const t=Gg(ON),n=Kg(NN),r=Kg(jN),o=Gg(OO),i=k();z$({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);r(e-o),n(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),P(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},wB=Ec("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),CB=Ec(_h,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),EB=Ec(wh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),IB=()=>Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(wB,{className:zO.First,"data-testid":zO.First,"aria-live":"polite","aria-atomic":"true"}),Yt.jsx(wB,{className:zO.Second,"data-testid":zO.Second,"aria-live":"polite","aria-atomic":"true"})]}),RB=e=>{const t=k(new Map),n=k(null);P(()=>{n.current=e(t.current),t.current.forEach((e,t)=>{n.current?.observe(t)});const r=t.current,o=n.current;return()=>{o.disconnect(),r.clear()}},[e,n,t]);const r=O((e,r)=>{t.current.set(e,r),n.current?.observe(e)},[t,n]),o=O(e=>{t.current.delete(e),n.current?.unobserve(e)},[n,t]);return D(()=>({addTask:r,removeTask:o}),[r,o])},AB=e=>new ResizeObserver(t=>{t.forEach(t=>{const n=e.get(t.target);n?.(t)})}),DB=()=>RB(AB),MB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Gg(Eb),r=Gg(Fb),o=Kg(JF);P(()=>{const i=()=>{o({type:jO.Reset})},a=()=>{o({type:jO.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():r.enabled&&r.blur?.(!0),i()};return n?.on("deactivated",i),n?.on("canceled",i),n?.on("confirmed",s),n?.on("cleared",a),()=>{n?.removeListener("deactivated",i),n?.removeListener("canceled",i),n?.removeListener("confirmed",s),n?.removeListener("cleared",a)}},[n,r,o,e,t])},kB="min(50px, 20%)",TB="--nebula-table-bar-label-hover-color",qB=({bar:e,height:t})=>{const{value:n,offsetValue:r,columnMin:o,columnMax:i,isManualRange:a,thicknessPx:s,barEnd:l}=e,c=a?o:Math.min(o,0);let u=a?i:Math.max(i,0);u>c||(u=c+1);const d=r,p=r+n,f=n>=0,h=Math.min(d,p),m=Math.max(d,p),g=Math.round(((e,t,n)=>Math.max(t,Math.min(n,e)))(s??("none"===l?1*t:4),2,Math.max(2,t-2))),b=Math.min(((e,t)=>"circle"===e?2*t:"box"===e?t+4:0)(l,g),t),v=Math.min(d,p)<c,y=Math.max(d,p)>u,x="none"===l?25:10+("none"===l?0:b/2+2);return{rangeMin:c,rangeMax:u,hasRoomAtMin:e.hasNegativeValues??(a||c<0||!f),hasRoomAtMax:e.hasPositiveValues??(a||i>=0||f),low:h,high:m,valueEnd:f?m:h,growsTowardsHigh:f,overflowMin:v,overflowMax:y,hasBar:m>h&&m>c&&h<u,thicknessPx:g,capSize:b,hasZeroAxis:c<=0&&u>=0,oobSizePx:x}},PB=Ec("div")({position:"relative",width:"100%",overflow:"hidden"}),LB=Ec("div")({position:"absolute"}),OB=Ec("span")({position:"absolute",top:0,height:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),NB=Ec("svg")({position:"absolute",display:"block"}),jB=({shape:e,pointsRight:t,width:n,height:r})=>{if("slice"===e)return`M0 0L${n-8} ${r}L0 ${r}ZM8 0L${n} ${r}L${n} 0Z`;const o=n/2,i=o*Math.sin(Math.PI/3),a=t?o/2:1.5*o;return`M${a} ${o-i}L${t?n:0} ${o}L${a} ${o+i}Z`},_B=({height:e,theme:t,bar:n,direction:r,fontFamily:o,fontSize:i,textDecoration:a})=>{const s=(({bar:e,height:t,isRtl:n})=>{const r=qB({bar:e,height:t}),{rangeMin:o,rangeMax:i,low:a,high:s,overflowMin:l,overflowMax:c,thicknessPx:u,capSize:d,oobSizePx:p}=r,f=r.hasRoomAtMin?kB:"0px",h=r.hasRoomAtMax?kB:"0px",m=f,g=`calc(100% - ${h})`,b=e=>{const t=(Math.min(Math.max(e,o),i)-o)/(i-o);return`calc(${f} + ${t} * (100% - ${f} - ${h}))`},v="none"===e.barEnd,y=v?25:10,x=c?`max(${g} - ${p}px, ${l?m:b(a)})`:b(s),S=l?`min(${m} + ${p}px, ${c?g:b(s)})`:b(a),w=r.growsTowardsHigh?x:S,C=e=>Math.floor((t-e)/2),E=C(u),I=d>0?d/2+4:4,R=e=>{const t=v?u:10;return{key:e,shape:v?"slice":"triangle",pointsRight:"max"===e!==n,width:y,height:t,style:{..."min"===e?{insetInlineStart:f}:{insetInlineEnd:h},top:C(t),width:y,height:t}}};return{zeroAxis:r.hasZeroAxis?{insetInlineStart:`calc(${b(0)} - 0.5px)`,top:0,width:1,height:"100%"}:void 0,bar:r.hasBar?{insetInlineStart:S,width:`max(1px, ${x} - ${S})`,top:E,height:u}:void 0,cap:r.hasBar&&d>0?{insetInlineStart:`calc(${w} - ${d/2}px)`,top:C(d),width:d,height:d,borderRadius:"circle"===e.barEnd?"50%":void 0}:void 0,label:e.label?r.growsTowardsHigh?{insetInlineStart:c?`calc(${g} + 4px)`:l?`max(${x} + ${I}px, ${m} + ${y+4}px)`:`calc(${x} + ${I}px)`,insetInlineEnd:"4px",textAlign:"start"}:{insetInlineStart:"4px",insetInlineEnd:`calc(100% - ${l?`calc(${m} - 4px)`:c?`min(${S} - ${I}px, ${g} - ${y+4}px)`:`calc(${S} - ${I}px)`})`,textAlign:"end"}:void 0,markers:[l?R("min"):void 0,c?R("max"):void 0].filter(e=>void 0!==e)}})({bar:n,height:e,isRtl:"rtl"===r}),l=n.color??mm(t,n.colorPalette,t.getDataColorSpecials().primary),c=n.labelColor??mm(t,n.labelColorPalette,"inherit"),u="inherit"===c?c:`var(${TB}, ${c})`;return Yt.jsxs(PB,{"data-testid":"bar-container",role:"img","aria-label":n.label||n.fallbackLabel,title:n.label||n.fallbackLabel,dir:r,style:{height:e},children:[s.zeroAxis?Yt.jsx(LB,{"data-testid":"bar-zero-axis",style:{...s.zeroAxis,backgroundColor:"#d0d0d0"}}):null,s.bar?Yt.jsx(LB,{"data-testid":"bar",style:{...s.bar,backgroundColor:l}}):null,s.cap?Yt.jsx(LB,{"data-testid":"bar-end-cap",style:{...s.cap,backgroundColor:l}}):null,s.label?Yt.jsx(OB,{"data-testid":"bar-label",style:{...s.label,fontFamily:o,fontSize:i??"14px",textDecoration:a,lineHeight:`${e}px`,color:u},children:n.label}):null,s.markers.map(e=>Yt.jsx(NB,{"data-testid":`bar-oob-${e.key}`,width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:e.style,children:Yt.jsx("path",{d:jB(e),fill:l})},e.key))]})},zB=e=>{e.stopPropagation()},FB=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:zB,color:dm.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),$B=({href:e,text:t,interactions:n,color:r})=>Yt.jsx(Op,{...FB({href:e,text:t,interactions:n,color:r}),children:t}),BB=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),HB=window.cancelIdleCallback??(e=>{clearTimeout(e)});let VB=0,WB=0,UB=0;const GB="qDimensionInfo/0",KB="qMeasureInfo/0",YB="x",XB="y",JB=e=>({key:"bars",type:"box",data:{extract:{field:GB,props:{start:0,end:{field:KB}}}},settings:{major:{scale:YB},minor:{scale:XB},box:{maxWidthPx:8,fill:{fn:e}}}}),ZB=e=>({key:"p",type:"point",data:{extract:{field:GB,props:{y:{field:KB}}}},settings:{x:{scale:YB},y:{scale:XB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),QB=({qNum:e})=>void 0===e?0:Math.sign(e),eH=(e,t)=>{const{primary:n,nil:r,others:o}=e.getDataColorSpecials(),i=mm(e,t?.negative,n),a=mm(e,t?.positive,n);return{key:"pos-neg",type:"box",data:{extract:{field:GB,props:{start:0,end:{field:KB,value:QB}}}},settings:{major:{scale:YB},minor:{scale:XB},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?r:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},tH=(e,{type:t,showDots:n,colors:r,colorMin:o,colorMax:i})=>{const a=((e,t,n,r)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=mm(e,t?.main,o),l=mm(e,t?.max,s),c=mm(e,t?.min,s),u=mm(e,t?.first,s),d=mm(e,t?.last,s);return e=>{const t=XB in e.datum?XB:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=r?l:e.datum[t].value<=n?c:e.data.items.at(0)===e.datum?u:e.data.items.at(-1)===e.datum?d:s}})(e,r,o,i);switch(t){case"bars":return[JB(a)];case"dots":return[ZB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:GB,props:{v:{field:KB}}}},settings:{coordinates:{major:{scale:YB},minor:{scale:XB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(mm(e,r?.main,e.getDataColorSpecials().primary));return n?[t,ZB(a)]:[t]}case"posNeg":return[eH(e,r)];default:return[]}},nH=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),rH=(e,t,n,r)=>({y:{data:{field:KB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:n},x:{data:{extract:{field:GB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===r,align:"rtl"===r?1:0,maxPxStep:12}}),oH=K();oH.use(G),oH.renderer.prio(["canvas"]);const iH={resolve:()=>{},promise:{}},aH=({chart:e,element:t,theme:n,isSnapshot:r,direction:o,miniChartData:i,downloadService:a})=>{const{resolveChartPromise:s,addChartPromiseToQueue:l}=(e=>{const t=k(e.isDownloadedAsPDForImage?At():iH);return{addChartPromiseToQueue:O(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(a),c=k(null),u=O(()=>{null!==t.current&&null===e.current&&(l(),c.current=(e=>{const t=performance.now();if(t-VB>50&&(VB=t,WB=0),WB+=1,0===UB&&WB<=20)return e(),()=>{};UB+=1;let n=!1;const r=()=>{n||(n=!0,UB-=1)},o=BB(()=>{r(),e()},{timeout:2e3});return()=>{HB(o),r()}})(()=>{c.current=null,t.current&&(e.current=(({element:e,theme:t,isSnapshot:n,miniChartData:r,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:c}=r;return oH.chart({element:e,data:{type:"q",key:"qHyperCube",data:nH(s)},settings:{scales:rH(a,l,c,i),components:tH(t,r),strategy:n?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:r,miniChartData:i,direction:o,onChartRendered:s}))}))},[t,e,l,n,r,i,o,s]);return{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:O(()=>{c.current?.(),c.current=null,s()},[s])}},sH=e=>{const t=k(null),n=k(!1);return O(r=>{const o=r.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(HB(e.current),e.current=null)})(t),n.current?0!==o?null!==e.current&&(t.current=BB(()=>{e.current?.update()},{timeout:2e3})):n.current=!1:n.current=!0},[e])},lH=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:n,isSnapshot:r,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:u}=aH({element:s,chart:l,theme:n,isSnapshot:r,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:r,chart:o})=>{const i=O(e=>{e.isIntersecting?r():n()},[r,n]);P(()=>{if(!e.current||!t)return()=>{};const r=e.current;return t.addTask(r,i),()=>{t.removeTask(r),n(),o.current?.destroy(),o.current=null}},[o,e,t,n,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:u,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionObserverTaskScheduler:r})=>{P(()=>r?()=>{}:(e(),()=>{t(),n.current?.destroy(),n.current=null}),[r,t,e,n])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:u,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:n})=>{const r=sH(t);P(()=>{const t=e.current;return t?(n.addTask(t,r),()=>{n.removeTask(t)}):()=>{}},[e,r,n])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},cH=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=lH({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return Yt.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},uH=e=>{let t="center",n="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?n="left":"flex-end"===e?.horizontal&&(n="right"),`${n} ${t}`},dH=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},pH=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const o=Gg(Lb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=Yt.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:n,objectFit:dH(s),objectPosition:uH(l),overflow:"hidden"}});return r?Yt.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?n:"100%",overflow:"hidden",display:"flex",justifyContent:c?wN(o,e):void 0},children:u}):u},fH=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&hN[t];return o&&Yt.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:Yt.jsx(o,{style:{height:e}})})},hH=({representation:e,cellValue:t,paginationCellAlign:n})=>{const r=Gg(Q_),o=Gg(Lb),i=Gg(Xb),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=mN(e,t,o,i),d=(p=r.measure.values.fontSize,parseInt(p||vN,10));var p;const{color:f,iconKey:h,position:m}=u||{};return l?Yt.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?f:void 0},children:["left"===m&&fH({size:d,iconKey:h,color:f}),Yt.jsx(M$,{isNumeric:!0,children:a}),"right"===m&&fH({size:d,iconKey:h,color:f})]}):fH({size:d,iconKey:h,color:f})},mH=(e,t,n)=>e.contentStaticLineCount?t*(n??e.grid.contentLineClamp):t,gH=({forwardRef:e,cell:t,style:n,isBlank:r,virtualizedCell:o,lineClamp:i,intersectionObserverTaskScheduler:a,resizeObserverTaskScheduler:s,paginationCellAlign:l})=>{const c=Gg(Q_),u=Gg(nz),d=Gg(Jg),p=Gg(fb),f=Gg(Xb),h=Gg(Lb),m=Gg(Rb),g=Gg(Cb);if(r)return null;if(t.representation.type===VP.Image&&!t.representation.url?.trim())return null;if(t.representation.type===VP.Image)return Yt.jsx(pH,{representation:t.representation,textStyle:n,maxImageHeight:mH(c,u,i),wrapInContainer:!o});const b=VO(t.qIsNull?t.representation.text:t.qNum);let v=t.representation;if(t.qIsNull&&t.isNumeric&&!Number.isNaN(b)){const e=t.formattedNullValueText??p_(b,t.qNumFormat,t.qIsAutoFormat);v={...t.representation,text:e}}let y=v.text;return t.representation.type!==VP.Link||g||t.isNull||(y=Yt.jsx($B,{href:t.representation.url,text:t.representation.text,interactions:m,color:n.cellForegroundColor})),t.representation.type!==VP.Indicator||Number.isNaN(b)?t.representation.type===VP.MiniChart&&t.representation.miniChart&&!t.isNull?Yt.jsx(cH,{height:mH(c,u,i),intersectionObserverTaskScheduler:a,resizeObserverTaskScheduler:s,miniChartData:t.representation.miniChart,theme:f,isSnapshot:!!p.snapshotData,direction:h,downloadService:d}):t.representation.type===VP.Bar&&t.representation.bar&&!t.isNull?Yt.jsx(_B,{height:mH(c,u,i),bar:t.representation.bar,theme:f,direction:h,fontFamily:c.measure.values.fontFamily,fontSize:n.fontSize??c.measure.values.fontSize,textDecoration:n.textDecoration}):Yt.jsx(M$,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:i,isPagination:!o,children:y}):Yt.jsx(hH,{representation:v,cellValue:b,paginationCellAlign:o?void 0:l})},bH=e=>{const t=Yt.jsx(gH,{...e});return e.indentation?Yt.jsx(R$,{indentation:e.indentation,isFlex:!!e.virtualizedCell,justifyContent:e.justifyContent,children:t}):t},vH=()=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:Yt.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),yH=Ec("div")({"& path":{stroke:"none !important"}}),xH=({children:e,cellSelectionState:t,hideTickIcon:n})=>t!==NO.Selected||n?e:Yt.jsxs(A$,{children:[e,Yt.jsx(yH,{children:Yt.jsx(vH,{})})]}),SH=e=>{const t=function(){const e=Ck(),t=ik(()=>null==e?void 0:e.dragOperation.source,[e]),n=ik(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return n.value}}}();return t.source&&t.source.id!==e?.5:1},wH=(e,t,n,r)=>({handleMouseDown:r=>{e?.(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{n({type:jO.SelectMultiEnd})};n({type:jO.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:jO.SelectMultiAdd,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:jO.SelectMouseUp,payload:{cell:t,evt:e,announce:r}})}}),CH=e=>{const t=Gg(H_),n=Gg(j_),r=Gg(hB),o=Gg(Gb),i=Gg(Lb),a=Kg(uB),s=Kg(JF),l=Gg(Fb),c=Gg(Mb),u=Gg(Eb),d=d=>{xB({evt:d,rootElement:o,selectionsAPI:u,cell:e,selectionDispatch:s,isSelectionsEnabled:c,setFocusedCellCoord:a,announce:r,keyboard:l,paginationNeeded:t,totalsPosition:n,direction:i})},p=e=>{((e,t)=>{e.key===Vm.Shift&&t({type:jO.SelectMultiEnd})})(e,s)},f=()=>{((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;m$([s,a],t,n,r)})(e,o,a,l,n)};if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=wH(f,e,s,r);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},EH=e=>{P(()=>()=>{ZF.remove(e)},[e])},IH=(e,t,n,r)=>{if(!n.isNull)return e;const o=r?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=r?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=r?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},RH=(e,t,n)=>{const{color:r,background:o}=e.grid.zebraStripes[n];return{...t,...r?{color:r}:void 0,...o?{background:o}:void 0}},AH=(e,t,n)=>{if(t.grid.zebraStripes.show){const r=(n.rowIdx+1)%2==0;return RH(t,e,r?"even":"odd")}return e},DH=(e,t)=>{const n=Gg(Q_),r=Gg(ZF(e)),o=Gg(ub),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS"),a=o("TLV_2710_TABLE_BLANK_TAG"),s=(e.isNull||!(i&&t.isDim))&&XN(e.qAttrExps,t.qAttrExprInfoIDs,a);EH(e);let l=t.isDim?n.dimension.values:n.measure.values;l=AH(l,n,e),l=i?n.subTotalRow:l,l=IH(l,n,e,t.isDim);const c=e.isNull||i&&t.isDim?l:JN(l,e.qAttrExps,t.qAttrExprInfoIDs),u=i?c:function(e,t,n){return t===NO.Selected?{...e,...n}:t===NO.Disabled?{...e,background:`${gN}, ${e.background}`}:e}(c,r,n.selectedColors);return{cellStyle:{...u,borderColor:n.grid.border},representationStyle:c,isBlank:s,indentation:ZN(e,t,o),cellSelectionState:r}},MH=Ec(Mh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),kH=Ec(Xh,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:n})=>({height:n,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":{...t,...t.color&&{[TB]:t.color}}}}})),TH=Ec(Lh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...SN,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),qH=Ec(Lh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...SN,...e,fontWeight:yN,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?n:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),PH=({cell:e,column:t,columnIndex:n,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o})=>{const i=Gg(Lb),a=Gg(Rb),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=CH(e),{cellStyle:p,representationStyle:f,isBlank:h,indentation:m,cellSelectionState:g}=DH(e,t),b=SH(t.id);return Yt.jsx(TH,{cellStyle:{...p,opacity:b},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${g} ${Hm}`,title:a.passive&&!h?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:Yt.jsx(xH,{cellSelectionState:g,hideTickIcon:!!e.isTotalRow,children:Yt.jsx(bH,{cell:e,style:f,isBlank:h,indentation:m,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o,paginationCellAlign:IN(i,e.align)})})})},LH=Og(0),OH=({column:e,totalsPosition:t,onKeyDown:n,onMouseDown:r})=>{const o=Gg(Q_),i=Gg(Db),a=Gg(LH),s=SH(e.id);return Yt.jsx(qH,{totalsStyle:{...o.totalRow,...t$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Hm}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:n,onMouseDown:r,children:Yt.jsx(M$,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},NH=()=>{const e=Gg(j_),t=Gg(__),n=Gg(F_),r=Gg(Gb),o=Gg(Ab),i=Gg(Lb),a=Kg(uB),s=Gg(Cb),l=Gg(Fb);return Yt.jsx(Xh,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:n.length+1,c];return Yt.jsx(OH,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:n,isInteractionEnabled:r}=e;if(!t&&r)switch(n.key){case Vm.C:gB(n);break;case Vm.Space:n.preventDefault();break;default:bB(e)}else vm(n)})({evt:e,rootElement:r,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{m$(u,r,a,l)}},t.id)})})};var jH=z(NH);const _H=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Gg(F_),r=Gg(j_),o=Gg(__),i=Gg(Q_),a=Gg(rz),s=Gg(oz),l=Gg(fb),c=!!GN(l)?.content?.hoverEffect;MB({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=O(t=>new IntersectionObserver(e=>{e.forEach(e=>{const n=t.get(e.target);n?.(e)})},{root:e.current}),[e]);return RB(t)})(t),d=DB();return Yt.jsxs(MH,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[r.atTop?Yt.jsx(jH,{}):void 0,n.map((e,t)=>{const n=e.at(0)?.isTotalRow??!1;return Yt.jsx(kH,{hoverColors:i.grid.hoverColors,hover:c,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:n?s:a,children:o.map((t,n)=>{const{id:r}=t,o=e[n];return Yt.jsx(PH,{columnIndex:n,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},r)})},`row-${t}`)}),r.atBottom?Yt.jsx(jH,{}):void 0]})};var zH=z(_H);const FH=(e,t)=>!!e?.skipHeader||!!t.hideHeader,$H=Og(e=>{const t=e(fb),n=e($b);if(n)return(e,{isDim:r,colIdx:o})=>{const i=r?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[r?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};n.applyPatches([l],!0)}}),BH=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,a=Gg($H),s=Gg(Lb),l=Gg(Ab),c=Gg(Jb),[u,d]=Yg(cz);if(!l)return null;return Yt.jsx(vz,{columnWidth:u.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{n?.();const t=[...u];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{u$(e);const t=e.closest(".sn-table-cell");p$(t)})(e.currentTarget)},setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},HH=e=>e.target?.getAttribute("class")?.includes(Wm),VH=({isInteractionEnabled:e,column:t})=>{const[n,r]=M(!1),o=Gg(n$),i=Gg(ON);return{open:n,setOpen:r,handleOpenMenu:t=>{!e||HH(t)||i||r(!0)},toggleSortOrder:n=>{e&&!HH(n)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(n)&&(n.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var WH=class extends wI{constructor(e,t){super(e,t),this.boundingRectangle=ES(null),this.destroy=LS(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:n}=t;if(n.initialized){const{element:e}=this.options,n="function"==typeof e?e(t):e;if(!n)return;let r;const o=()=>{this.boundingRectangle.value=NI(n)},i=()=>{r||(r=setTimeout(()=>{o(),r=void 0},25))},a=new ResizeObserver(o);return a.observe(n),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:n}=e;if(!t)return n;const r=this.boundingRectangle.value;if(!r)return n;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,n){const r=cT({},t);return e.boundingRectangle.top+t.y<=n.top?r.y=n.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=n.top+n.height&&(r.y=n.top+n.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=n.left?r.x=n.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=n.left+n.width&&(r.x=n.left+n.width-e.boundingRectangle.right),r}(new eC(l,c,s,a),n,r);return u}};WH.configure=zC(WH);const UH=({invert:e})=>({dragOperation:t,droppable:n})=>{if(!n.shape)return null;const{shape:r}=t;if(!r)return null;const o=function(e){return e.sortable?.index}(n);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}=r.current;return"left"===a&&l.left+.3*l.width<=n.shape.center.x||"right"===a&&l.right-.3*l.width>=n.shape.center.x?{id:n.id,value:1/Qw.distance(n.shape.center,s),type:XE.Collision,priority:YE.Normal}:null},GH=[WH.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],KH=(e,t)=>{const n=Gg(Lb),r=!Gg(Tb);return Rq({id:e.id,disabled:r,index:t,type:"item",accept:"item",group:"column",modifiers:GH,data:e,plugins:e=>[...e,YD.configure({feedback:"clone"})],collisionDetector:UH({invert:"rtl"===n})})},YH=({column:e,columnIndex:t,columnsLength:n})=>{const r=Gg(Q_),o=Gg(Gb),i=Gg(Lb),a=Gg(Rb),s=Gg(__),l=Gg(j_),c=Gg(cz)[t],u=Kg(uB),d=Gg(dB(t)),p=Gg(Tb),f=Gg(Fb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=VH({isInteractionEnabled:p,column:e}),v=Kg(ON),{ref:y,isDragging:x}=KH(e,t),S=SH(e.id),w=Gg(Sb),C=w?k$:X$,E=e.isActivelySorted?_O[e.sortDirection]:void 0,I=h?Bm:void 0,R=h?"true":void 0,A=t===n-1,D=[0,e.pageColIdx],M={width:c,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return Yt.jsxs(v$,{"data-dragging":x,ref:y,headerStyle:{...r.header,...t$(r,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground:e.headerColor?.background??r.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,color:e.headerColor?.color??r.header.color,interactions:a,style:M,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Hm}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:n,handleOpenMenu:r}=e;if(t)switch(n.key){case Vm.C:gB(n);break;case Vm.Enter:case Vm.Space:r?.(n);break;default:bB(e)}else vm(n)})({evt:e,rootElement:o,cellCoord:D,setFocusedCellCoord:u,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&m$(n,t,r,o)})({evt:e,rootElement:o,cellCoord:D,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":I,"aria-expanded":R,"aria-haspopup":"true",children:[Yt.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),Yt.jsx(BH,{column:e,isLastColumn:A,setIsAdjustingWidth:v})]},e.id)},XH=()=>{const e=Gg(__),t=Gg(Q_),n=Gg(fb),r=Gg(Nb),o=Kg(LH),i=Gg(cz),a=k(null),s=FH(r,n);return P(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),Yt.jsx(Vh,{style:{visibility:s?"collapse":void 0},children:Yt.jsx(w$,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,n)=>Yt.jsx(YH,{column:t,columnIndex:n,columnsLength:e.length},t.id))})})};var JH=z(XH);var ZH=z(()=>{const e=Gg(hB),[t,n]=Yg(D_),{page:r,rowsPerPage:o}=t,i=Gg(Ob),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=Gg(N_),p=Gg(Q_),f=Gg(Vj),h=Gg(fb),m=Gg(Xb),g=Gg(Ub),b=Gg(Gb),v=Gg(Nb),y=Gg(Lb),x=Gg(Rb),S=Gg(Jb),w=Gg(QF),C=Kg(JF),E=Gg(Cb),I=Gg(Fb),R=k(!1),A=k(null),D=k(null),M=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=qb(h,v),q=T?f.scrollLeft??0:0,L=T?f.rowPartialHeight??0:0,N=O(()=>{R.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=O(r=>{n({...t,page:r}),e({keys:[["SNTable.Pagination.PageStatusReport",(r+1).toString(),l.toString()]],politeness:"assertive"})},[t,n,l,e]),_=O(r=>{n({...t,page:0,rowsPerPage:r}),e({keys:[["SNTable.Pagination.RowsPerPageChange",r.toString()]],politeness:"assertive"})},[e,t,n]);return(e=>{const t=Gg(Lb),n=Gg(Vj);P(()=>{const r=e.current;if(!r)return;const o=e=>{((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth,{scrollLeft:o}=n;let i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&e.preventDefault()})(e,"rtl"===t,r)},i=e=>{n.scrollLeft=e.currentTarget?.scrollLeft||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}},[e,t,n])})(A),cB(D,R),(()=>{const e=Gg(Gb),t=Gg(Fb),n=Gg(uB);Om(()=>{const r=l$(e,n);t.active?p$(r):(r?.blur(),d$(e))},[t.active,e])})(),mB(R),P(()=>{const e=A.current;e&&(e.scrollLeft=q,e.scrollTop=L)},[t,s,q,L]),P(()=>{C({type:jO.UpdatePageRows,payload:{pageRows:u}})},[C,u]),pB(),SB(A),Yt.jsxs(lB,{children:[Yt.jsxs(E$,{ref:D,dir:y,onKeyDown:e=>{yB({evt:e,totalRowCount:s,page:r,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:I,isSelectionMode:E})},"data-testid":"sn-table",children:[Yt.jsx(IB,{}),Yt.jsxs(CB,{ref:A,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[Yt.jsxs(EB,{stickyHeader:!0,"aria-label":M,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[Yt.jsx(JH,{}),Yt.jsx(zH,{updateShouldRefocus:N,tableWrapperRef:D})]}),Yt.jsx(e$,{})]}),Yt.jsx(_F,{footerContainer:i,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:I,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),Yt.jsx(eB,{isPagination:!0})]})});const QH=Og(0),eV=Og(e=>{const t=e(hb);return Math.min(QN,t)}),tV=Og(e=>{const t=e(hb);return t===QN?0:Math.floor(t/QN)}),nV=Og(e=>{const t=e(QH),n=e(tV);return Math.min(t,n)}),rV=Og(e=>({page:e(nV),rowsPerPage:e(eV),rowsPerPageOptions:[]}),(e,t,n)=>{const r=e(tV);t(QH,Math.max(0,Math.min(n,r)))}),oV=Og(null),iV=Og(null),aV=Og(e=>{const t=e(rV),n=e(hb);return Math.min(t.rowsPerPage,n-t.page*t.rowsPerPage)}),sV=Og(null),lV=Og(null),cV=Og(e=>e(j_).atTop?2:1),uV=Og(e=>e(j_).atTop?1:e(cV)+e(aV)),dV=Og(e=>s$(Boolean(e(Cb)),e(j_))),pV=Og(e=>({firstBodyRowIdx:e(cV),totalsRowIdx:e(uV),allowedRows:e(dV)})),fV=Og(e=>({rootElement:e(Gb),totalsPosition:e(j_),rowCount:e(aV),colCount:e(z_),columnWidths:e(cz)})),hV=Og(e=>({scrollToCell:e(sV),scrollableContainerElement:e(lV)})),mV=Og(e=>({keyboard:e(Fb),isInSelectionMode:e(Cb),selectionsAPI:e(Eb),isSelectionsEnabled:e(Mb)})),gV=Og(e=>({direction:e(Lb),isInteractionEnabled:e(Tb),paginationNeeded:e(H_),announce:e(hB),shouldRefocusRef:e(oV)})),bV=e=>e.atTop?2:1,vV=(e,[t,n],r,o)=>{const i=bV(r);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${n}"]`);if(r.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${n}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${n}"]`):e.querySelector(`.sn-table-totals-row [data-col="${n}"]`)},yV=(e,t,n,r,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=n,d=c-bV(r),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 n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom&&n.left>=r.left&&n.right<=r.right})(vV(t,n,r,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},xV=(e,t,n,r,o,i)=>e<i?[t,e+1]:t<r?[t+1,o]:[t,e],SV=(e,t,n,r,o,i)=>e>o?[t,e-1]:t>n?[t-1,i]:[t,e],wV=(e,[t,n],r,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,c=a.top,u=r-1-a.bottom,d=o-1;switch(e.key){case Vm.Down:case Vm.Up:t=((e,t,n,r)=>e===Vm.Down&&t<r?t+1:e===Vm.Up&&t>n?t-1:t)(e.key,t,c,u);break;case Vm.Right:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?SV(e,t,n,0,o,i):xV(e,t,0,r,o,i))(n,t,c,u,0,d,i));break;case Vm.Left:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?xV(e,t,0,r,o,i):SV(e,t,n,0,o,i))(n,t,c,u,0,d,i));break;case Vm.Home:l?t=c:($F(e)&&(t=c),n=0);break;case Vm.End:l?t=u:($F(e)&&(t=u),n=d);break;case Vm.PageDown:t=Math.min(u,t+10);break;case Vm.PageUp:if(l)t=Math.max(c,t-10);else{const e=s?bV(s):1,n=t-e;t=n>0&&n<=10?e:Math.max(c,t-10)}}return[t,n]},CV=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},EV=[Vm.Home,Vm.End,Vm.PageUp,Vm.PageDown],IV=()=>{const e=k(!1),t=k(0),n=k(0),r=k(null),o=k(null),i=k(null),a=k(0),s=Kg(uB),l=Kg(JF),c=Gg(ub)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=Gg(fV),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=Gg(pV),{scrollToCell:v,scrollableContainerElement:y}=Gg(hV),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=Gg(mV),{direction:E,announce:I,isInteractionEnabled:R,paginationNeeded:A,shouldRefocusRef:M}=Gg(gV),T=D(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let n=0;n<e.length;n++)t[n+1]=t[n]+(e[n]??0);return t})(h),[h]);P(()=>()=>{t.current+=1,n.current+=1,a.current+=1,r.current?.(),r.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const q=O((e,t,n,r)=>{const o=t=>{if(r&&!r())return void n?.(!1);const i=vV(u,e,d,p);if(i)return document.activeElement!==i&&r$(i),document.activeElement===i?void n?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void n?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):n?.(!1)};requestAnimationFrame(()=>{o(t)})},[u,d,p]),L=O((e,t)=>{const r=a.current+1;a.current=r;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==r)return;if(n.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,M&&(M.current=!0),o.current?.(),o.current=yV(v,u,e,d,p,y,10,()=>a.current===r&&n.current===t,()=>{q(e,300,()=>{M&&(M.current=!1)},()=>a.current===r&&n.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[q,u,p,v,y,M,d]),N=O(()=>(M&&(M.current=!0),t.current+=1,t.current),[M]),j=O(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=O((e,n)=>{const r=o=>{if(t.current!==e)return;const i=vV(u,n,d,p);i&&document.activeElement!==i&&r$(i),o>0?requestAnimationFrame(()=>{r(o-1)}):M&&(M.current=!1)};requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.current===e&&(i.current?.(),i.current=yV(v,u,n,d,p,y,10,()=>t.current===e,()=>{r(300)}))})})},[u,d,p,v,M,y]),z=O((e,t)=>{if(!WF(e))return;vm(e),j(),n.current+=1;const o=n.current;a.current+=1,r.current?.(),r.current=null;const i=((e,t)=>bV(t)+e+(t.atBottom?1:0))(p,d),l=wV(e,t,i,f,E,g,d);CV(u),s(l);const[,c]=l,[,h]=t;return c!==h&&((e,t,n)=>{if(!e)return;const r=t[n]??0,o=t[n+1]??r,{scrollLeft:i,clientWidth:a}=e;r<i?e.scrollLeft=r:o>i+a&&(e.scrollLeft=o-a)})(y,T,c),M&&(M.current=!0),r.current=yV(v,u,l,d,p,y,10,()=>n.current===o,()=>{q(l,300,t=>{var n;M&&(M.current=!1),t&&(n=e.key,EV.includes(n))&&L(l,o)},()=>n.current===o)}),l},[u,d,p,f,E,v,s,g,y,M,q,j,T,L]),F=O(e=>{e.key===Vm.Esc?x.enabled&&!S&&(vm(e),x.blur?.(!0)):HF(e.key)&&vm(e)},[x,S]),$=O((e,t,n)=>{switch(e.key){case Vm.C:vm(e),R&&(e.ctrlKey||e.metaKey)&&Qm(e.currentTarget);break;case Vm.Enter:case Vm.Space:if(!R){vm(e);break}n?.(e);break;default:z(e,[0,t])}},[z,R]),B=O((t,r,o,i)=>{const a=[r+m,o];switch(t.key){case Vm.Space:if(vm(t),i.isSelectable&&C){e.current=!0;const n=N();l({type:jO.Select,payload:{cell:i,evt:t,announce:I}}),_(n,a)}break;case Vm.Enter:if(vm(t),e.current=!1,S){N(),s(FO),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),n.current+=1;const t=n.current;q(FO,300,()=>{M&&(M.current=!1)},()=>n.current===t)}break;case Vm.Esc:if(e.current=!1,S){vm(t);const e=N();w?.cancel(),_(e,a)}break;case Vm.C:vm(t),R&&(t.ctrlKey||t.metaKey)&&Qm(t.currentTarget);break;case Vm.Tab:{const e=t.shiftKey||!A;x.enabled&&S&&e&&(vm(t),bm(t.currentTarget,x,t.shiftKey));break}default:{const n=t.key===Vm.Left||t.key===Vm.Right,r=S||Boolean(w?.isModal())||e.current;if(n&&r){vm(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:jO.SelectMultiAdd,payload:{cell:i,evt:t,announce:I}});break}}},[m,z,C,l,I,S,w,x,A,R,N,_,s,v,y,q,M]),H=O(t=>{t.key===Vm.Space&&(e.current=!1),t.key===Vm.Shift&&l({type:jO.SelectMultiEnd})},[l]),V=O((e,t)=>{if(S)vm(e);else{if(e.key!==Vm.Space)return e.key===Vm.C?(vm(e),void(R&&(e.ctrlKey||e.metaKey)&&Qm(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,R]),W=O(e=>{j(),n.current+=1;const t=n.current;CV(u),s(e),x.enabled&&x.focus?.(),q(e,2,n=>{n&&L(e,t)},()=>n.current===t)},[u,s,x,q,j,L]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:B,handleBodyKeyUp:H,handleTotalsKeyDown:V,focusHeadCellOnClick:O(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:O((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:O(e=>{c&&W([b,e])},[W,b,c])}};var RV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function AV(e,t){return e===t||!(!RV(e)||!RV(t))}function DV(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!AV(e[n],t[n]))return!1;return!0}function MV(e,t){var n;void 0===t&&(t=DV);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var kV="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function TV(e){cancelAnimationFrame(e.id)}function qV(e,t){var n=kV();var r={id:requestAnimationFrame(function o(){kV()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var PV=-1;function LV(e){if(void 0===e&&(e=!1),-1===PV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),PV=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return PV}var OV=null;function NV(e){if(void 0===e&&(e=!1),null===OV||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?OV="positive-descending":(t.scrollLeft=1,OV=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),OV}return OV}var jV=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function _V(e){var t,n=e.getColumnOffset,r=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 r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Wc(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Wc(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=MV(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=MV(function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=MV(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(NV()){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-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&TV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=qV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Oc(t,e),t.getDerivedStateFromProps=function(e,t){return zV(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=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=LV();void 0!==r&&(r=Math.max(0,Math.min(r,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!==r?l(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(NV()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&TV(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=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?jV:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],I=this._getVerticalRangeToRender(),R=I[0],A=I[1],D=[];if(r>0&&g)for(var M=R;M<=A;M++)for(var k=w;k<=E;k++)D.push(C(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,k)}));var T=a(this.props,this._instanceProps),q=s(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Ln({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(c||u||"div",{children:D,ref:l,style:{height:T,pointerEvents:x?"none":void 0,width:q}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],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 r){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,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(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,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||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}(H),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var zV=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},FV=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},$V=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},BV=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var c=a+1;c<=n;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},HV=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?VV(e,t,n,i,0,r):WV(e,t,n,Math.max(0,i),r)},VV=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=BV(e,t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},WV=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&BV(e,t,r,n).offset<o;)r+=a,a*=2;return VV(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},UV=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=BV(e,t,n,i),c="column"===e?$V(t,i):FV(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=u+s?"auto":"center"),r){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}},GV=_V({getColumnOffset:function(e,t,n){return BV("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return HV("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=BV("column",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=BV("column",e,c,r).size;return c},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:FV,getEstimatedTotalWidth:$V,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return UV("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return UV("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return BV("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return HV("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=BV("row",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=BV("row",e,c,r).size;return c},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),KV=function(e,t){return e};function YV(e){var t,n=e.getItemOffset,r=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 r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,Wc(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Wc(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=MV(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=MV(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._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},r._getItemStyleCache=void 0,r._getItemStyleCache=MV(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(NV()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&TV(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=qV(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Oc(t,e),t.getDerivedStateFromProps=function(e,t){return XV(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?LV():0:l.scrollHeight>l.clientHeight?LV():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(NV()){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&&TV(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=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?KV:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],I=w[1],R=[];if(c>0)for(var A=E;A<=I;A++)R.push(C(t,{data:u,key:p(A,u),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var D=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Ln({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:R,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?D:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.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,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(H),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var XV=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},JV=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.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=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},ZV=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=JV(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},QV=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&JV(e,n,t).offset<r;)n+=i,i*=2;return ZV(e,t,Math.min(n,o-1),Math.floor(n/2),r)},eW=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},tW=YV({getItemOffset:function(e,t,n){return JV(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:eW,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=JV(e,t,o),p=eW(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===n&&(n=r>=h-u&&r<=f+u?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?ZV(e,t,o,0,n):QV(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=JV(e,t,r),d=n+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=JV(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function nW(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var rW=["style"],oW=["style"];function iW(e,t){var n=e.style,r=On(e,rW),o=t.style,i=On(t,oW);return!nW(n,o)&&!nW(r,i)}const aW=Og(0),sW=Og(0),lW=Og(0),cW=Og(e=>e(aW)+e(sW)),uW=Og(e=>{const t=e(Ub),n=e(H_),r=t.height-(n?41:0);return{width:t.width,height:r}}),dW=Og(e=>{const t=e(uW),n=e(NN),r=e(jN);return{width:t.width-r,height:t.height-n}}),pW=Og(e=>{const t=e(dW),n=e(cW),r=e(lW);return Math.min(t.height-n,r)}),fW=Og(-1),hW=Hx(e=>Og(t=>t(fW)===e)),mW=({style:e})=>Yt.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var gW=w.memo(mW,iW);const bW=Og(e=>{const t=e(dW),n=e(rz),r=e(cW),o=e(lW)+r,i=e(aV)*n+r;return o<2*t.height?o:i}),vW=Og(e=>e(bW)<=e(uW).height),yW=(e,t,n,r)=>{const o=n&&(!n.isNumeric||n.isDual),i=n?.isTotalRow??!1;return(e=>{const t=Gg(_$),n=k(e);n.current=e;const r=k(null);return O(e=>{const o=r.current;o!==e&&(o&&t&&(t.callbacks.delete(o),t.observer.unobserve(o)),r.current=e,e&&t&&(t.callbacks.set(e,n),t.observer.observe(e)))},[t])})(O(n=>{const a=n.contentBoxSize.at(0)?.blockSize;a&&o&&r(a,e,t,i)},[i,t,r,e,o]))},xW=()=>{},SW=e=>{e.preventDefault()};const wW=e=>{const t=e.grid.hoverColors?.color;return t?{[TB]:t}:{}},CW=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:c,onKeyDown:u,onKeyUp:d,onCellClick:p}=r,f=Gg(hW(t)),h=Kg(fW),m=Gg(Q_),g=Gg(Lb),b=Gg(Db),v=Gg(Tb),y=Gg(QF),x=Gg(ub),S=Gg(vW),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:I,cellSelectionState:R}=function(e){const t="object"==typeof e,n=Gg(Mb),r=Kg(JF),o=Gg(ZF(e));if(EH(e),t&&n){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=wH(SW,e,r,xW);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),A=yW(t,e,w,s),D=i[e]?.isDim?m.dimension.values:m.measure.values,M=SH(i[e].id);if("object"==typeof w){const{style:r,isBlank:o}=((e,t,n,r,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS"),l=a("TLV_2710_TABLE_BLANK_TAG"),c=(e.isNull||!(s&&t.isDim))&&XN(e.qAttrExps,t.qAttrExprInfoIDs,l);let u=AH(o,i,e);u=s?i.subTotalRow:u,u=IH(u,i,e,t.isDim);const d=e.isNull||s&&t.isDim?u:JN(u,e.qAttrExps,t.qAttrExprInfoIDs);return r!==NO.Selected||s?r!==NO.Disabled||s?n?{style:{...d,...i.grid.hoverColors,...wW(i)},isBlank:c}:{style:d,isBlank:c}:{style:{...d,...n&&wW(i),color:n?i.grid.hoverColors?.color:d.color,background:`${gN}, ${n?i.grid.hoverColors?.background:d.background}`},isBlank:c}:{style:{...d,...i.selectedColors},isBlank:c}})(w,i[e],a&&f,R,D,m,x),s={rowindex:t,columnindex:e},k=((e,t)=>e.representation.type===VP.Image&&"fitHeight"===e.representation.imageSize?wN(t,e.representation):e.align)(w,g),T=n=>{v&&p?.(t,e),C?.(n)},q=u?n=>{u(n,t,e,w)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${R} ${Hm}`,tabIndex:-1,style:{...n,...r,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:RN(g,w.isLastColumn,y),borderLeftWidth:AN(g,w.isLastColumn,y),justifyContent:k,borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:M},onMouseDown:T,onMouseUp:I,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:q,onKeyUp:d,title:b&&!o?w.representation.text:void 0,...s,children:Yt.jsx(xH,{cellSelectionState:R,hideTickIcon:!!w.isTotalRow,children:Yt.jsx(bH,{forwardRef:m.contentStaticLineCount||1===l?void 0:A,cell:w,style:r,isBlank:o,indentation:ZN(w,i[e],x),justifyContent:k,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return Yt.jsx(gW,{style:{...n,...D,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:M}})};var EW=z(CW,iW);const IW=(e,t)=>{if(!e||!t)return;const n=e.scrollHeight-e.clientHeight,r=Math.round(n*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==r&&(e.scrollTop=r)},RW=e=>{const t=k(e);return t.current=e,t},AW=wv(Og(async e=>{const t=e(fb),n=e($b),r=e(rV).page,{qDataPages:o}=t.qHyperCube;if(0!==r||0===o.length){const e=r*Math.min(QN,t.qHyperCube.qSize.qcy);if(n&&"getHyperCubeData"in n)return n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),DW=Og(e=>{const t=e(aV),n=e(dW),r=e(rz);return Math.min(t,Math.ceil(n.height/r))}),MW=Og(e=>{const t=e(cz),n=e(dW);return t.reduce((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),kW=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,TW=e=>-1===e.qElemNumber||!!e.qIsTotalCell,qW=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},PW=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some(e=>!e[t])},LW=(e,t,n,r,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,n,r,o,i,a,s,l,c)=>{const{qSize:u}=a.qHyperCube,d=r.qTop+n,p=o+n,f=e[p]??[],h=t.some(TW);return t.forEach((e,t)=>{const n=t+r.qLeft;if(f.at(n))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w,measureMinMax:C,qNumFormat:E,qIsAutoFormat:I,formattedNullValueText:R}=i[n],A=!m&&e.qIsNull,D=m&&E_(e,m),M=A||D?C_(m,e,a):e.qText,k=A?HO(M):BO(e),T=BO(e)&&!HO(e.qText??"");f[n]={id:LP(),...e,align:y_(k,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h&&!D,isTotalRow:h,pageRowIdx:p,pageColIdx:n,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:n===u.qcx-1,isNumeric:k,isDual:T,isNull:(!A||!k)&&E_(e,m),qNumFormat:E,qIsAutoFormat:I,formattedNullValueText:R,representation:Hj({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,measureMinMax:C,getText:()=>M,direction:c,enabledFeatures:{[VP.Image]:!0,[VP.Indicator]:!0,[VP.MiniChart]:!0,[VP.Bar]:!m&&s.flags.isEnabled("VNA-977-TABLE-BARS")}})},l(f[n],d,n)}),{row:f,pageRowIdx:p}})(n,l,c,e.qArea,u,r,o,i,a,s);n[p]=d})})},OW=({gridState:e,setEstimatedCellHeight:t})=>{const n=Gg(fb),r=Gg(Xb),o=Gg($b),i=Gg(cb),a=Gg(Lb),s=Gg(rV),l=Gg(AW),c=Gg(__),u=Gg(aV),d=Gg(DW),p=Gg(MW),f=k([]),h=O((e,r)=>{const o=Array.isArray(r)?r.slice(0,u):(e=>Array(e).fill(void 0))(u);return LW(e,s,o,c,n,i,t,a),f.current=o,o},[u,s,c,n,i,t,a]),[m,g]=M(()=>h(l??[]));Om(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const n=Gg(db),r=k(new Set),o=k(new Set),i=k(new Set),a=RW(e),s=RW(t),l=D(()=>({enqueue:e=>{const t=kW(e);i.current.has(t)||(r.current.add(e),i.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),o.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),n=await a.current(t);o.current.has(e)&&s.current(n)}catch(t){e.forEach(e=>{i.current.delete(kW(e))}),n.error({msg:"Failed to fetch pages",payload:t})}finally{o.current.delete(e)}}},75))},clear:()=>{r.current.clear(),o.current.clear(),i.current.clear()}}),[n,a,s]);return l})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=O((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(PW(f.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(e)}},[b]),y=O((e,t,n,r)=>{for(let o=t;o<t+r;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(qW(f.current,e,t,n,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(t)}}},[b,s]);return P(()=>{if(void 0===l)return;const{qcx:t,qcy:r}=n.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,r,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,n,d,p,s,b,y,e,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},NW=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},jW=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,_W=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=Gg(Q_),i=Gg(cz),{estimateLineCount:a}=Mm(o.dimension.values),s=_N(o.dimension.values.fontSize),l=e||t||1===n;return O((e,t,o)=>{if(l||e.representation.type===VP.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(n,Math.max(1,u));r(d*s,t,o,e.isTotalRow??!1)},[l,i,a,n,s,r])},zW=({isStaticNbrOfLines:e,minRowHeight:t,state:n,staticRowHeight:r=0})=>{const o=Gg(Vj);j(()=>{const i=e?r:((e,t)=>{const n=0===t?0:e/t;return Math.ceil(n)})(n.sumHeight,n.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,n,r,o])},FW=({isSnapshot:e,gridRef:t})=>{const n=Gg(Q_),r=Gg(aV),[o,i]=M(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=Gg(nz),s=Gg(rz),l=Gg(oz),c=!!n.contentStaticLineCount,u=Math.max(8e6/r,s,l)-9,d=u+9,p=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(u/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:n})=>n?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:c});(({gridRef:e,setState:t})=>{const n=Gg(fb),r=Gg(rV),o=Gg(cz),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;Om(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),Om(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:n})=>{const r=Gg(rz),o=Gg(oz);return O((i,a,s,l=!1)=>{$(()=>{e(e=>{const c=l?o:r,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(!jW(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:NW(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,n.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,r,o,n])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>O((o,i,a,s)=>{e||t||1===n||r(o,i,a,s)},[e,t,n,r]))({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),g=_W({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=O(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return zW({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},$W=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const n=O(e=>{const n=e.contentBoxSize.at(0)?.blockSize;void 0!==n&&t(n)},[t]);z$({ref:e,callback:n})};let BW=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const HW=({loadRows:e,loadColumns:t,gridState:n})=>{const r=Gg(Vj),o=Gg(fb),i=Gg(rV),a=Gg(aV);return O(({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},n,r)=>{let o,i;return o=r>t?BW.Down:r<t?BW.Up:BW.None,i=n>e?BW.Right:n<e?BW.Left:BW.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,c);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=c,n.current.overscanRowStopIndex=u,c>a)return;const b=s,v=c+i.page*i.rowsPerPage,y=l-s+1,x=u-c+1;if(r.visibleLeft=d,r.visibleWidth=p-d+1,r.visibleTop=f+i.page*i.rowsPerPage,r.visibleHeight=h-f+1,r.page=i.page,r.rowsPerPage=i.rowsPerPage,m===BW.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===BW.Up){const t=x+25,n=i.page*i.rowsPerPage,r=Math.max(n,v-25);e(b,r,y,t)}if(g===BW.Right){const e=o.qHyperCube.qSize.qcx-b,n=y+5,r=Math.min(e,n);t(b,v,r,x)}else if(g===BW.Left){const e=Math.max(0,b-5),n=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,n,x)}},[n,a,i.page,i.rowsPerPage,r,e,o.qHyperCube.qSize.qcx,t])};const VW=({columnIndex:e,data:t,rowIndex:n})=>{const r=t.rowsInPage[n]?.[e];return r?.id??`${n}-${e}`},WW={overflow:"hidden",willChange:"auto"},UW=F((e,t)=>{const{handleBodyKeyDown:n,handleBodyKeyUp:r,focusBodyCellOnClick:o}=IV(),i=Gg(__),a=Gg(dW),s=Kg(lW),l=Gg(pW),c=Gg(Vj),u=Gg(fb),d=Gg(Lb),p=Gg(cz),f=Gg(aV),h=k(null),m=k(null),g=k(null),b=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=!!GN(u)?.content?.hoverEffect,{setMeasuredCellHeight:y,setEstimatedCellHeight:x,getRowHeight:S,lineClamp:w}=FW({isSnapshot:!!u.snapshotData,gridRef:h}),{rowsInPage:C,loadRows:E,loadColumns:I}=OW({gridState:b,setEstimatedCellHeight:x}),R=HW({loadRows:E,loadColumns:I,gridState:b}),A=DB(),M=D(()=>({rowsInPage:C,columns:i,isHoverEnabled:v,lineClamp:w,setMeasuredCellHeight:y,resizeObserverTaskScheduler:A,onKeyDown:n,onKeyUp:r,onCellClick:o}),[C,i,v,w,y,A,n,r,o]);!function(e){const t=Kg(JF),{shouldRefocusRef:n}=Gg(gV),r=Gg(Gb),o=Gg(iV);P(()=>{t({type:jO.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=O(()=>{n&&(n.current=r.contains(document.activeElement))},[n,r]);MB({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(C);const{interpolatedScrollTo:T,handleGridScroll:q}=(({gridRef:e,outerRef:t,innerRef:n})=>{const r=Gg(pW),o=Gg(aV),i=Gg(lV),a=Kg(sV),s=RW(o),l=k(!1),c=k(!1);j(()=>{l.current&&e.current?.scrollToItem({rowIndex:o-1,align:"start"})});const u=O((t,o)=>{if(l.current=1===t,c.current=!1,l.current)e.current?.scrollToItem({rowIndex:s.current-1,align:"start"}),e.current?.scrollTo({scrollLeft:o});else{const i=(n.current?.clientHeight??r)-r;e.current?.scrollTo({scrollTop:Math.round(i*t),scrollLeft:o})}},[e,n,r,s]),d=O((n,r)=>{n<s.current-1&&(l.current=!1),c.current=!0,e.current?.scrollToItem({rowIndex:n,columnIndex:r,align:"auto"}),IW(i,t.current)},[e,t,s,i]),p=O(({scrollUpdateWasRequested:e})=>{e&&c.current&&(c.current=!1,IW(i,t.current))},[t,i]);return P(()=>(a(()=>d),()=>{a(null)}),[d,a]),{interpolatedScrollTo:u,handleGridScroll:p}})({gridRef:h,outerRef:m,innerRef:g});return B(t,()=>({interpolatedScrollTo:T}),[T]),$W(g,s),Yt.jsx(GV,{"data-key":"body",ref:h,outerRef:m,innerRef:g,style:WW,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:S,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:M,onItemsRendered:R,onScroll:q,itemKey:VW,className:"sn-table-body",direction:d,children:EW})});var GW=z(UW);const KW=({children:e})=>{const t=Gg(pz),n=Gg(bW);return Yt.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n},children:e})},YW=(e,t)=>{const n=k(null),r=Gg(cz);j(()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)},[t,n,e,r.length]);const o=O(n=>{const r=n.contentBoxSize.at(0)?.blockSize;r&&t(r+9,e)},[e,t]);return z$({ref:n,callback:o}),n},XW=Ec("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:n,applicableStyle:r,color:o})=>({...r,background:n,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),JW=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Gg(Q_),c=Gg(Lb),u=Gg(Rb),d=Gg(QF),p=Kg(ON),f=Gg(j_),h=Gg(Tb),m=Gg(cz)[e],g=Gg(Fb),b=Gg(dB(e)),v=r[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=VH({isInteractionEnabled:h,column:v}),C=Gg(Sb),E=YW(e,i),I=r.length-1===e,R=C?k$:X$,{ref:A,isDragging:D}=KH(v,e),M=SH(v.id),k=b&&!g.enabled&&h?0:-1,T=a?t=>{a(t,e,S)}:void 0;return Yt.jsxs(XW,{"data-dragging":D,ref:A,className:`sn-table-cell ${Hm}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...t$(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:RN(c,I,d),borderLeftWidth:AN(c,I,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:M},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:k,onKeyDown:T,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[Yt.jsx(R,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),Yt.jsx(BH,{column:v,isLastColumn:I,onColumnResize:o,setIsAdjustingWidth:p})]})},ZW=e=>{const[t,n]=M(new Map);Om(()=>{n(new Map)},[e.length]);const r=O((e,t)=>{n(n=>jW(n.get(t),e)?new Map(n).set(t,e):n)},[]);return{rowHeight:D(()=>NW(t),[t]),setMeasuredCellHeight:r}},QW=(e,t)=>{B(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},eU=e=>{const t=Gg(Xb),n=Gg(fb),r=Gg(rV),o=Gg(cz);Om(()=>{e.current?.resetAfterIndex(0,!1)},[n,r,e,o,t])},tU={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},nU=F((e,t)=>{const{columResizeHandler:n}=e,r=Gg(__),o=Gg(dW),i=Kg(aW),a=w.useRef(null),s=k(null),l=Gg(ez),c=Gg(fb),u=Gg(Nb),d=Gg(Lb),p=Gg(cz),{rowHeight:f,setMeasuredCellHeight:h}=ZW(r),m=FH(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=IV();return QW(t,a),eU(a),$W(s,i),Yt.jsx(tW,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...tU,...m?{display:"none"}:void 0},itemCount:r.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>r[e].id,itemData:{columns:r,columResizeHandler:n,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:JW})});var rU=z(nU);const oU=F((e,t)=>{const{children:n,onScroll:r}=e,o=Gg(Lb),i=Gg(kb),{width:a,height:s}=Gg(uW),l=Kg(lV),c=O(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return Yt.jsx("div",{"data-testid":"scrollable-container",ref:c,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:r,dir:o,tabIndex:-1,children:n})}),iU=({children:e})=>{const t=Gg(Lb),n=Gg(dW);return Yt.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:n.width,height:n.height},children:e})},aU=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Gg(Q_),c=Gg(fb),u=Gg(Lb),d=Gg(Db),p=Gg(Tb),f=Gg(QF),h=Gg(vW),m=YW(e,i),g=r[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=r[e],y=c.qHyperCube.qSize.qcx-1===e,x=SH(r[e].id),S=a?t=>{a(t,e)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${Hm}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...t$(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:RN(u,y,f),borderLeftWidth:AN(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:Yt.jsx(M$,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},sU=F((e,t)=>{const{totals:n}=e,r=Gg(__),o=Gg(dW),i=Kg(sW),a=k(null),s=k(null),l=Gg(tz),c=Gg(Lb),u=Gg(fb),d=Gg(cz),{rowHeight:p,setMeasuredCellHeight:f}=ZW(r),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=IV();return QW(t,a),eU(a),$W(s,i),Yt.jsx(tW,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:tU,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:r,totals:n,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:c,children:aU})});var lU=z(sU);const cU=e=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},uU=(e,t,n)=>{const r=Gg(Lb),o=Gg(Vj);return O(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,c=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,r),u=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=u,o.scrollLeft=c,n.current?.interpolatedScrollTo(Number.isNaN(u)?0:u,c),e.current?.scrollTo(c),t.current?.scrollTo(c)},[o,n,e,t,r])};var dU=z(()=>{const e=Gg(j_),t=k(null),n=k(null),r=k(null),o=k(null),i=uU(n,r,o),a=O(()=>{t.current&&(t.current.scrollTop=0)},[t]);pB(),(e=>{const t=Gg(z_),n=Gg(rV),r=Gg(Xb),o=Gg(aV),i=Gg(Eb),a=k(!1);P(()=>{const e=()=>{a.current=!0},t=()=>{i?.isActive()&&(a.current=!1)};return i?.on("canceled",e),i?.on("activated",t),()=>{i?.removeListener("canceled",e),i?.removeListener("activated",t)}},[i]),P(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),P(()=>cU(e),[n,o,e]),P(()=>{if(!a.current)return cU(e);a.current=!1},[r,e])})(t),SB(t);const s=Yt.jsx(lU,{ref:r,totals:e},"totals");return Yt.jsxs(lB,{children:[Yt.jsx(oU,{ref:t,onScroll:i,children:Yt.jsxs(KW,{children:[Yt.jsxs(iU,{children:[Yt.jsx(rU,{ref:n,columResizeHandler:a}),e.atTop?s:null,Yt.jsx(GW,{ref:o}),e.atBottom?s:null]}),Yt.jsx(e$,{})]})}),Yt.jsx(eB,{isPagination:!1})]})});const pU=()=>{const e=Gg(fb),t=Gg(Ub),n=Gg(Rb),{paginationNeeded:r,totalRowCount:o,totalColumnCount:i,totalPages:a}=Gg(N_),s=Gg(Xb),l=Gg(Jb),c=Gg(Fb),[u,d]=Yg(rV),p=k(null),f=k(!1),h=Kg(oV),m=Kg(iV);P(()=>{h(f)},[h]);const g=w.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=IV();return(()=>{const e=Gg(Gb),{keyboard:t}=Gg(mV),n=Gg(uB),r=Gg(j_),o=Gg(aV),{scrollToCell:i}=Gg(hV),{shouldRefocusRef:a}=Gg(gV),s=k({focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}),l=k(null),c=k(null);j(()=>{s.current={focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}},[n,r,o,i,e]),P(()=>{let e=!1;const{focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:u}=s.current;if("function"==typeof u.querySelector){if(t.active){const[t,a]=n,d=r.atTop?2:1;if(t>=d&&t<d+o){null!==c.current&&(cancelAnimationFrame(c.current),c.current=null),i?.(t-d,a);const n=t=>{if(e)return;const r=vV(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);r&&document.activeElement!==r&&r$(r),r&&document.activeElement===r||t>0&&(l.current=requestAnimationFrame(()=>{n(t-1)}))};l.current=requestAnimationFrame(()=>{e||n(5)})}else{const e=vV(u,n,r,o);e&&r$(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 n=vV(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);n?.blur(),CV(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])})(),cB(p,f),Yt.jsxs(E$,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[Yt.jsx(IB,{}),Yt.jsx(dU,{}),Yt.jsx(_F,{paginationNeeded:r,handleChangePage:e=>{d(e)},pageInfo:u,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:c,translator:l,theme:s,interactions:n,rect:t,layout:e})]})};var fU=z(pU);const hU=e=>{const t=e.get($b),n=e.get(_b),r=e.get(pb),o=e.get(Lb);a(()=>{r&&t&&(n?function(e){const t=e.get(Lb),n=e.get(Yb),r=hz(t);n.render(Yt.jsx(yi,{stylisPlugins:"rtl"===t?[qO]:void 0,children:Yt.jsx(Rc,{theme:r,children:Yt.jsx($g,{store:e,children:Yt.jsx(fz,{children:Yt.jsx(ZH,{})})})})}))}(e):function(e){const t=e.get(Lb),n=e.get(Yb),r=hz(t);n.render(Yt.jsx(w.StrictMode,{children:Yt.jsx(Rc,{theme:r,children:Yt.jsx($g,{store:e,children:Yt.jsx(fz,{children:Yt.jsx(fU,{})})})})}))}(e))},[r,n,e,t,o])};function mU(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=n.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:r.y+i.height+(t.atTop?s.height:0),bottom:r.y+r.height-(t.atBottom?s.height:0)},u=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(l,c),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(l,c),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(l,c,u);return{visibleRowStartIndex:u,visibleRowEndIndex:d,rowPartialHeight:p}}const gU=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},bU=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const vU=(e,t,n,r,o)=>{if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||I_.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},yU=(e,t,n,r,o)=>{if(r&&!r.isMultiPage)return r;const i=m_(e,r);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=mU(n,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:vU(a,o,e,t,r),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=n?.getBoundingClientRect(),o=n?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)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=gU(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+u,visibleRowEndIndex:p+u};const g=r.y+r.height,b=(bU(h,m,g)?d:d+1)+u;let v=p+u;const y=gU(p,o),x=y?.getBoundingClientRect();return y&&x&&(bU(x,m,g)||(v=p-1+u)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:vU(s,a,e,t,r),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},xU=({store:e})=>{const t=e.get(fb),n=e.get($b),r=e.get(Gb),o=e.get(Wb),i=e.get(Nb),a=e.get(_b);u(async s=>{const l=s;if(!l.snapshotData||!n||l.snapshotData.content)return l;if("getHyperCubeData"in n){const s=e.get(Vj),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=yU(t,s,r,i,a);l.qHyperCube.qDataPages=await n.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}),d(()=>({getViewState:()=>yU(t,e.get(Vj),r,i,a)}),[t,e,r,a])},SU={version:JSON.stringify("6.72.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:[],accessibleHeader:!1};var wU=e=>({properties:{initial:SU},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>vv({...t,env:e}),exportProperties:pv,exploration:EP(e)});const CU=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),EU=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});