@nebula.js/sn-table 6.3.0 → 6.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +1,20 @@
1
1
  /*
2
- * @nebula.js/sn-table v6.3.0
2
+ * @nebula.js/sn-table v6.3.2
3
3
  * Copyright (c) 2025 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){"use strict";var t,r,n,o,i,a,s,l,u,c,d,p,f,h,m,g,b,v,y,x,S,C,w,E,R,A,P,k,M,I,L,D,T,_,O,q,N,j,z,F,$,B,H;return{setters:[function(e){t=e.useMemo,r=e.useOptions,n=e.usePromise,o=e.useState,i=e.useEffect,a=e.useTheme,s=e.useInteractionState,l=e.onContextMenu,u=e.onTakeSnapshot,c=e.useImperativeHandle,d=e.useElement,p=e.useStaleLayout,f=e.useApp,h=e.useModel,m=e.useTranslator,g=e.useSelections,b=e.useKeyboard,v=e.useRect,y=e.useEmbed},function(e){x=e.default,S=e,C=e.useContext,w=e.useState,E=e.useMemo,R=e.useEffect,A=e.createElement,P=e.isValidElement,k=e.cloneElement,M=e.Children,I=e.useReducer,L=e.createContext,D=e.useRef,T=e.useCallback,_=e.forwardRef,O=e.memo,q=e.PureComponent,N=e.startTransition,j=e.useLayoutEffect,z=e.useImperativeHandle},function(e){F=e.default,$=e},function(e){B=e.default},function(e){H=e.default}],execute:function(){function W(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 V(e){if("object"==typeof e&&W(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}e("default",(function(e){return{qae:uF(),ext:iE(e),component(){const n=d(),o=oF(n),i=p(),a=f(),s=h(),u=uS(!!i.snapshotData),c=m(),x=g(),S=b(),C=r(),{freeResize:w}=C,E=v(),R=t((()=>i.snapshotData?.content&&!w?{...E,...i.snapshotData.content.size}:E),[E,w,i.snapshotData?.content]),A=gF(i),P=y(),k=Jx(i,n,bF,vF),M=C.direction,I=iF(i.qHyperCube,s),L=aE(i.qHyperCube,s),D=iS(k,i,e),T=vt(),_={app:a,layout:i,model:s,rect:R,theme:k,keyboard:S,translator:c,interactions:u,selectionsAPI:x,changeSortOrder:I,rootElement:n,embed:P,reactRoot:o,applyColumnWidths:L,isFontLoaded:D,downloadService:T,viewService:A,direction:M,env:e};l?.(((e,t)=>{const r=t.target,n=r?.closest(`.${mS}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{RS(n)}})})),mF({layout:i,viewService:A,model:s,rootElement:n,contentRect:E}),sF(_),nF(_)}}}));const G={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function U(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(W(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in G}(e)){const t=G[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function Y(e){let t,r,n=0;const o="string"==typeof e?U(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function K(e){let t,r,n=0;const o="string"==typeof e?U(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function X(e){if(W(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?V(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function J(e,t){return W(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:J(U(e))}function Z(e){return W(e)?1===e.a?X(e):J(e):Z(U(e))}const Q=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function ee(e){return.2126*Q(e.r)+.7152*Q(e.g)+.0722*Q(e.b)}function te(...e){const t=U(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=Y(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=U(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>function(...e){const t=U(...e);return t.invalid||ee(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=X(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=J(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=Z(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(W(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?V(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?U(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=Y(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=K(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=K(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>te(o(18*e)),getDarkenedColor:(e=1)=>te(o(18*-e))}}function re(e,t){if(!e||!t)return;const r=ee(e),n=ee(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}var ne,oe,ie=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],ae=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function se(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ae:ie}var le=function(){if(oe)return ne;oe=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return ne=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},ne}();function ue(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ce(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function de(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(le);var pe=1/.7,fe="\\s*([+-]?\\d+)\\s*",he="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ge=/^#([0-9a-f]{3,8})$/,be=new RegExp(`^rgb\\(${fe},${fe},${fe}\\)$`),ve=new RegExp(`^rgb\\(${me},${me},${me}\\)$`),ye=new RegExp(`^rgba\\(${fe},${fe},${fe},${he}\\)$`),xe=new RegExp(`^rgba\\(${me},${me},${me},${he}\\)$`),Se=new RegExp(`^hsl\\(${he},${me},${me}\\)$`),Ce=new RegExp(`^hsla\\(${he},${me},${me},${he}\\)$`),we={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 Ee(){return this.rgb().formatHex()}function Re(){return this.rgb().formatRgb()}function Ae(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ge.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Pe(t):3===r?new Le(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ke(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ke(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=be.exec(e))?new Le(t[1],t[2],t[3],1):(t=ve.exec(e))?new Le(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ye.exec(e))?ke(t[1],t[2],t[3],t[4]):(t=xe.exec(e))?ke(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Se.exec(e))?Ne(t[1],t[2]/100,t[3]/100,1):(t=Ce.exec(e))?Ne(t[1],t[2]/100,t[3]/100,t[4]):we.hasOwnProperty(e)?Pe(we[e]):"transparent"===e?new Le(NaN,NaN,NaN,0):null}function Pe(e){return new Le(e>>16&255,e>>8&255,255&e,1)}function ke(e,t,r,n){return n<=0&&(e=t=r=NaN),new Le(e,t,r,n)}function Me(e){return e instanceof de||(e=Ae(e)),e?new Le((e=e.rgb()).r,e.g,e.b,e.opacity):new Le}function Ie(e,t,r,n){return 1===arguments.length?Me(e):new Le(e,t,r,null==n?1:n)}function Le(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function De(){return`#${qe(this.r)}${qe(this.g)}${qe(this.b)}`}function Te(){const e=_e(this.opacity);return`${1===e?"rgb(":"rgba("}${Oe(this.r)}, ${Oe(this.g)}, ${Oe(this.b)}${1===e?")":`, ${e})`}`}function _e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Oe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qe(e){return((e=Oe(e))<16?"0":"")+e.toString(16)}function Ne(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ze(e,t,r,n)}function je(e){if(e instanceof ze)return new ze(e.h,e.s,e.l,e.opacity);if(e instanceof de||(e=Ae(e)),!e)return new ze;if(e instanceof ze)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new ze(a,s,l,e.opacity)}function ze(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Fe(e){return(e=(e||0)%360)<0?e+360:e}function $e(e){return Math.max(0,Math.min(1,e||0))}function Be(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}ue(de,Ae,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ee,formatHex:Ee,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return je(this).formatHsl()},formatRgb:Re,toString:Re}),ue(Le,Ie,ce(de,{brighter(e){return e=null==e?pe:Math.pow(pe,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Le(Oe(this.r),Oe(this.g),Oe(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:De,formatHex:De,formatHex8:function(){return`#${qe(this.r)}${qe(this.g)}${qe(this.b)}${qe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Te,toString:Te})),ue(ze,(function(e,t,r,n){return 1===arguments.length?je(e):new ze(e,t,r,null==n?1:n)}),ce(de,{brighter(e){return e=null==e?pe:Math.pow(pe,e),new ze(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ze(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Le(Be(e>=240?e-240:e+120,o,n),Be(e,o,n),Be(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ze(Fe(this.h),$e(this.s),$e(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("}${Fe(this.h)}, ${100*$e(this.s)}%, ${100*$e(this.l)}%${1===e?")":`, ${e})`}`}}));const He=Math.PI/180,We=180/Math.PI,Ve=4/29,Ge=6/29,Ue=3*Ge*Ge;function Ye(e){if(e instanceof Ke)return new Ke(e.l,e.a,e.b,e.opacity);if(e instanceof et)return tt(e);e instanceof Le||(e=Me(e));var t,r,n=Qe(e.r),o=Qe(e.g),i=Qe(e.b),a=Xe((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Xe((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Xe((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ke(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ke(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Xe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ue+Ve}function Je(e){return e>Ge?e*e*e:Ue*(e-Ve)}function Ze(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Qe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function et(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function tt(e){if(isNaN(e.h))return new Ke(e.l,0,0,e.opacity);var t=e.h*He;return new Ke(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ue(Ke,(function(e,t,r,n){return 1===arguments.length?Ye(e):new Ke(e,t,r,null==n?1:n)}),ce(de,{brighter(e){return new Ke(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ke(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Le(Ze(3.1338561*(t=.96422*Je(t))-1.6168667*(e=1*Je(e))-.4906146*(r=.82521*Je(r))),Ze(-.9787684*t+1.9161415*e+.033454*r),Ze(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),ue(et,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof et)return new et(e.h,e.c,e.l,e.opacity);if(e instanceof Ke||(e=Ye(e)),0===e.a&&0===e.b)return new et(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*We;return new et(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new et(e,t,r,null==n?1:n)}),ce(de,{brighter(e){return new et(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new et(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return tt(this).rgb()}}));var rt=e=>()=>e;function nt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):rt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?nt:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):rt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Ie(e)).r,(t=Ie(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=nt(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var ot,it="center",at="bottom";function st(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function lt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function ut(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=dt)):void 0===t&&(t=ct);for(var r,n,o,i,a,s=new ht(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new ht(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(ft)}function ct(e){return e.children}function dt(e){return Array.isArray(e)?e[1]:null}function pt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ft(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ht(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:it,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:it,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:it,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:it},{key:"DataRangeIncludingZero",alignment:at},{key:"LimitedData",alignment:at},{key:"NegativeOrZeroValues",alignment:at}].reduce((function(e,t){return e[t.key]=t,e}),{}),ht.prototype=ut.prototype={constructor:ht,count:function(){return this.eachAfter(lt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return ut(this).eachBefore(pt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},ot=function(e){
7
+ System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,r,n,o,i,a,s,l,u,c,d,p,f,m,h,g,b,v,y,x,S,w,C,E,R,P,A,I,M,D,k,T,q,L,O,N,_,j,z,F,H,$,B;return{setters:[function(e){t=e.useMemo,r=e.useOptions,n=e.usePromise,o=e.useState,i=e.useEffect,a=e.useTheme,s=e.useInteractionState,l=e.onContextMenu,u=e.onTakeSnapshot,c=e.useImperativeHandle,d=e.useElement,p=e.useStaleLayout,f=e.useApp,m=e.useModel,h=e.useTranslator,g=e.useSelections,b=e.useKeyboard,v=e.useRect,y=e.useEmbed},function(e){x=e.default,S=e.useContext,w=e.useState,C=e.useMemo,E=e.useEffect,R=e.createElement,P=e,A=e.isValidElement,I=e.cloneElement,M=e.Children,D=e.useReducer,k=e.createContext,T=e.useRef,q=e.useCallback,L=e.forwardRef,O=e.memo,N=e.PureComponent,_=e.startTransition,j=e.useLayoutEffect,z=e.useImperativeHandle},function(e){F=e.default,H=e},function(e){$=e.default},function(e){B=e.default}],execute:function(){function V(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 W(e){if("object"==typeof e&&V(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}e("default",(function(e){return{qae:PL(),ext:SR(e),component(){const n=d(),o=SL(n),i=p(),a=f(),s=m(),u=WC(!!i.snapshotData),c=h(),x=g(),S=b(),w=r(),{freeResize:C}=w,E=v(),R=t((()=>i.snapshotData?.content&&!C?{...E,...i.snapshotData.content.size}:E),[E,C,i.snapshotData?.content]),P=qL(i),A=y(),I=qC(i,n,LL,OL),M=w.direction,D=wL(i.qHyperCube,s),k=wR(i.qHyperCube,s),T=HC(I,i,e),q=Dt(),L={app:a,layout:i,model:s,rect:R,theme:I,keyboard:S,translator:c,interactions:u,selectionsAPI:x,changeSortOrder:D,rootElement:n,embed:A,reactRoot:o,applyColumnWidths:k,isFontLoaded:T,downloadService:q,viewService:P,direction:M,env:e};l?.(((e,t)=>{const r=t.target,n=r?.closest(`.${JC}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{sE(n)}})})),TL({layout:i,viewService:P,model:s,rootElement:n,contentRect:E}),EL(L),xL(L)}}}));const U={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function G(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(V(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in U}(e)){const t=U[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function Y(e){let t,r,n=0;const o="string"==typeof e?G(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function K(e){let t,r,n=0;const o="string"==typeof e?G(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function X(e){if(V(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?W(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function J(e,t){return V(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:J(G(e))}function Z(e){return V(e)?1===e.a?X(e):J(e):Z(G(e))}const Q=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function ee(e){return.2126*Q(e.r)+.7152*Q(e.g)+.0722*Q(e.b)}function te(...e){const t=G(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=Y(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=G(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>function(...e){const t=G(...e);return t.invalid||ee(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=X(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=J(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=Z(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(V(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?W(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?G(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=Y(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=K(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=K(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>te(o(18*e)),getDarkenedColor:(e=1)=>te(o(18*-e))}}function re(e,t){if(!e||!t)return;const r=ee(e),n=ee(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function ne(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var oe,ie="top",ae="top-right",se="right",le="bottom-right",ue="bottom",ce="bottom-left",de="left",pe="top-left";ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(oe={},"equal-equal",[ie,ue]),"equal-higher",[ue,le]),"equal-lower",[ie,ae]),"equal-void",[ie,ue]),"higher-equal",[de,ce,ie,ae]),"higher-higher-acute",[ue,ce,de,ae]),"higher-higher-obtuse",[ue,ie]),"higher-lower-negative",[ie,ae,se]),"higher-lower-positive",[ue,ce,de]),"higher-void",[ie]),ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(oe,"lower-equal",[ie]),"lower-higher-negative",[ie,pe]),"lower-higher-positive",[le]),"lower-lower-acute",[ie,pe,de,ae,se]),"lower-lower-obtuse",[ie,ue]),"lower-void",[ie]),"void-equal",[ie]),"void-higher",[ie,ue]),"void-lower",[ie,ue,de]),"void-void",[ie]),ne(oe,"unclassified",[ie,ue,se,de,ae,le,ce,pe]);var fe,me,he=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],ge=["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 be(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ge:he}var ve=function(){if(me)return fe;me=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return fe=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(m&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},fe}();function ye(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function xe(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Se(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(ve);var we=1/.7,Ce="\\s*([+-]?\\d+)\\s*",Ee="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pe=/^#([0-9a-f]{3,8})$/,Ae=new RegExp(`^rgb\\(${Ce},${Ce},${Ce}\\)$`),Ie=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Me=new RegExp(`^rgba\\(${Ce},${Ce},${Ce},${Ee}\\)$`),De=new RegExp(`^rgba\\(${Re},${Re},${Re},${Ee}\\)$`),ke=new RegExp(`^hsl\\(${Ee},${Re},${Re}\\)$`),Te=new RegExp(`^hsla\\(${Ee},${Re},${Re},${Ee}\\)$`),qe={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 Le(){return this.rgb().formatHex()}function Oe(){return this.rgb().formatRgb()}function Ne(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Pe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?_e(t):3===r?new He(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?je(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?je(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=Ae.exec(e))?new He(t[1],t[2],t[3],1):(t=Ie.exec(e))?new He(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Me.exec(e))?je(t[1],t[2],t[3],t[4]):(t=De.exec(e))?je(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ke.exec(e))?Ge(t[1],t[2]/100,t[3]/100,1):(t=Te.exec(e))?Ge(t[1],t[2]/100,t[3]/100,t[4]):qe.hasOwnProperty(e)?_e(qe[e]):"transparent"===e?new He(NaN,NaN,NaN,0):null}function _e(e){return new He(e>>16&255,e>>8&255,255&e,1)}function je(e,t,r,n){return n<=0&&(e=t=r=NaN),new He(e,t,r,n)}function ze(e){return e instanceof Se||(e=Ne(e)),e?new He((e=e.rgb()).r,e.g,e.b,e.opacity):new He}function Fe(e,t,r,n){return 1===arguments.length?ze(e):new He(e,t,r,null==n?1:n)}function He(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function $e(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}`}function Be(){const e=Ve(this.opacity);return`${1===e?"rgb(":"rgba("}${We(this.r)}, ${We(this.g)}, ${We(this.b)}${1===e?")":`, ${e})`}`}function Ve(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function We(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ue(e){return((e=We(e))<16?"0":"")+e.toString(16)}function Ge(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ke(e,t,r,n)}function Ye(e){if(e instanceof Ke)return new Ke(e.h,e.s,e.l,e.opacity);if(e instanceof Se||(e=Ne(e)),!e)return new Ke;if(e instanceof Ke)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Ke(a,s,l,e.opacity)}function Ke(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Xe(e){return(e=(e||0)%360)<0?e+360:e}function Je(e){return Math.max(0,Math.min(1,e||0))}function Ze(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}ye(Se,Ne,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Le,formatHex:Le,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ye(this).formatHsl()},formatRgb:Oe,toString:Oe}),ye(He,Fe,xe(Se,{brighter(e){return e=null==e?we:Math.pow(we,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new He(We(this.r),We(this.g),We(this.b),Ve(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:$e,formatHex:$e,formatHex8:function(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}${Ue(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Be,toString:Be})),ye(Ke,(function(e,t,r,n){return 1===arguments.length?Ye(e):new Ke(e,t,r,null==n?1:n)}),xe(Se,{brighter(e){return e=null==e?we:Math.pow(we,e),new Ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ke(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new He(Ze(e>=240?e-240:e+120,o,n),Ze(e,o,n),Ze(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ke(Xe(this.h),Je(this.s),Je(this.l),Ve(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=Ve(this.opacity);return`${1===e?"hsl(":"hsla("}${Xe(this.h)}, ${100*Je(this.s)}%, ${100*Je(this.l)}%${1===e?")":`, ${e})`}`}}));const Qe=Math.PI/180,et=180/Math.PI,tt=4/29,rt=6/29,nt=3*rt*rt;function ot(e){if(e instanceof it)return new it(e.l,e.a,e.b,e.opacity);if(e instanceof ct)return dt(e);e instanceof He||(e=ze(e));var t,r,n=ut(e.r),o=ut(e.g),i=ut(e.b),a=at((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=at((.4360747*n+.3850649*o+.1430804*i)/.96422),r=at((.0139322*n+.0971045*o+.7141733*i)/.82521)),new it(116*a-16,500*(t-a),200*(a-r),e.opacity)}function it(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function at(e){return e>.008856451679035631?Math.pow(e,1/3):e/nt+tt}function st(e){return e>rt?e*e*e:nt*(e-tt)}function lt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ut(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ct(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function dt(e){if(isNaN(e.h))return new it(e.l,0,0,e.opacity);var t=e.h*Qe;return new it(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ye(it,(function(e,t,r,n){return 1===arguments.length?ot(e):new it(e,t,r,null==n?1:n)}),xe(Se,{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,r=isNaN(this.b)?e:e-this.b/200;return new He(lt(3.1338561*(t=.96422*st(t))-1.6168667*(e=1*st(e))-.4906146*(r=.82521*st(r))),lt(-.9787684*t+1.9161415*e+.033454*r),lt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),ye(ct,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ct)return new ct(e.h,e.c,e.l,e.opacity);if(e instanceof it||(e=ot(e)),0===e.a&&0===e.b)return new ct(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*et;return new ct(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ct(e,t,r,null==n?1:n)}),xe(Se,{brighter(e){return new ct(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ct(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 r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):pt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?ft:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):pt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Fe(e)).r,(t=Fe(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ft(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var mt="center",ht="bottom";[{key:"NoDataExist",alignment:mt,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:mt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:mt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:mt},{key:"DataRangeIncludingZero",alignment:ht},{key:"LimitedData",alignment:ht},{key:"NegativeOrZeroValues",alignment:ht}].reduce((function(e,t){return e[t.key]=t,e}),{});var gt,bt=["__proto__","constructor"];function vt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!bt.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function yt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function xt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function St(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ct)):void 0===t&&(t=wt);for(var r,n,o,i,a,s=new Pt(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new Pt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Rt)}function wt(e){return e.children}function Ct(e){return Array.isArray(e)?e[1]:null}function Et(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Rt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Pt(e){this.data=e,this.depth=this.height=0,this.parent=null}Pt.prototype=St.prototype={constructor:Pt,count:function(){return this.eachAfter(xt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return St(this).eachBefore(Et)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},gt=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},ot({exports:{}});const mt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function gt(e,r){return t((()=>e),r)}const bt={},vt=()=>{const{viewState:e}=r(),o=(e=>{const r=t((()=>({current:bt})),[]);return r.current=r.current===bt?e:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=t((()=>mt()),[]),l=gt((e=>{i&&o.current.add(e)}),[o]),u=gt(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(o.current),o.current.clear(),s()}),1e3),[s,o]);return n((async()=>{i&&await a}),[a,i]),t((()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,e,l])};function yt(e,t){return function(){return null}}function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xt.apply(null,arguments)}function St(e){return St="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},St(e)}function Ct(e){return e&&"object"===St(e)&&e.constructor===Object}function wt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?xt({},e):e;return Ct(e)&&Ct(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Ct(t[o])&&o in e?n[o]=wt(e[o],t[o],r):n[o]=t[o])})),n}function Et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var At={exports:{}};function Pt(){}function kt(){}kt.resetWarningCache=Pt;At.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:kt,resetWarningCache:Pt};return r.PropTypes=r,r}();var Mt=Et(At.exports),It=(Mt.element,function(){return null});It.isRequired=(Mt.element.isRequired,function(){return null});var Lt=function(){return null};function Dt(e){var t=function(e,t){if("object"!=St(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==St(t)?t:t+""}function Tt(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var _t={exports:{}},Ot={},qt=60103,Nt=60106,jt=60107,zt=60108,Ft=60114,$t=60109,Bt=60110,Ht=60112,Wt=60113,Vt=60120,Gt=60115,Ut=60116,Yt=60121,Kt=60122,Xt=60117,Jt=60129,Zt=60131;if("function"==typeof Symbol&&Symbol.for){var Qt=Symbol.for;qt=Qt("react.element"),Nt=Qt("react.portal"),jt=Qt("react.fragment"),zt=Qt("react.strict_mode"),Ft=Qt("react.profiler"),$t=Qt("react.provider"),Bt=Qt("react.context"),Ht=Qt("react.forward_ref"),Wt=Qt("react.suspense"),Vt=Qt("react.suspense_list"),Gt=Qt("react.memo"),Ut=Qt("react.lazy"),Yt=Qt("react.block"),Kt=Qt("react.server.block"),Xt=Qt("react.fundamental"),Jt=Qt("react.debug_trace_mode"),Zt=Qt("react.legacy_hidden")}function er(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case qt:switch(e=e.type){case jt:case Ft:case zt:case Wt:case Vt:return e;default:switch(e=e&&e.$$typeof){case Bt:case Ht:case Ut:case Gt:case $t:return e;default:return t}}case Nt:return t}}}var tr=$t,rr=qt,nr=Ht,or=jt,ir=Ut,ar=Gt,sr=Nt,lr=Ft,ur=zt,cr=Wt;Ot.ContextConsumer=Bt,Ot.ContextProvider=tr,Ot.Element=rr,Ot.ForwardRef=nr,Ot.Fragment=or,Ot.Lazy=ir,Ot.Memo=ar,Ot.Portal=sr,Ot.Profiler=lr,Ot.StrictMode=ur,Ot.Suspense=cr,Ot.isAsyncMode=function(){return!1},Ot.isConcurrentMode=function(){return!1},Ot.isContextConsumer=function(e){return er(e)===Bt},Ot.isContextProvider=function(e){return er(e)===$t},Ot.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===qt},Ot.isForwardRef=function(e){return er(e)===Ht},Ot.isFragment=function(e){return er(e)===jt},Ot.isLazy=function(e){return er(e)===Ut},Ot.isMemo=function(e){return er(e)===Gt},Ot.isPortal=function(e){return er(e)===Nt},Ot.isProfiler=function(e){return er(e)===Ft},Ot.isStrictMode=function(e){return er(e)===zt},Ot.isSuspense=function(e){return er(e)===Wt},Ot.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===jt||e===Ft||e===Jt||e===zt||e===Wt||e===Vt||e===Zt||"object"==typeof e&&null!==e&&(e.$$typeof===Ut||e.$$typeof===Gt||e.$$typeof===$t||e.$$typeof===Bt||e.$$typeof===Ht||e.$$typeof===Xt||e.$$typeof===Yt||e[0]===Kt)},Ot.typeOf=er,_t.exports=Ot;var dr=_t.exports,pr=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(pr);return t&&t[1]||""}(e)||t}function hr(e,t,r){var n=fr(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var mr="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),gr=Mt.oneOfType([Mt.func,Mt.object]),br=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:yt,deepmerge:wt,elementAcceptingRef:It,elementTypeAcceptingRef:Lt,exactProp:function(e){return e},formatMuiErrorMessage:Tt,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return fr(e,"Component");if("object"===St(e))switch(e.$$typeof){case dr.ForwardRef:return hr(e,e.render,"ForwardRef");case dr.Memo:return hr(e,e.type,"memo");default:return}}},ponyfillGlobal:mr,refType:gr});function vr(e){if(e.type)return e;if("#"===e.charAt(0))return vr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(Tt(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function yr(e,t){return e=vr(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function xr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function Sr(e,t){if(null==e)return{};var r,n,o=xr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function wr(e,t){if(e){if("string"==typeof e)return Cr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cr(e,t):void 0}}function Er(e){return function(e){if(Array.isArray(e))return Cr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wr(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 Rr(e,t){return t?wt(e,t,{clone:!1}):e}var Ar={xs:0,sm:600,md:960,lg:1280,xl:1920},Pr={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Ar[e],"px)")}};function kr(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Pr;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===St(t)){var o=e.theme.breakpoints||Pr;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function Mr(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Ir(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Mr(e.theme,o)||{};return kr(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Mr(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Dt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)}))};return a.propTypes={},a.filterProps=[t],a}function Lr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce((function(t,r){var n=r(e);return n?Rr(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function Dr(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Tr=Ir({prop:"border",themeKey:"borders",transform:Dr}),_r=Ir({prop:"borderTop",themeKey:"borders",transform:Dr}),Or=Ir({prop:"borderRight",themeKey:"borders",transform:Dr}),qr=Ir({prop:"borderBottom",themeKey:"borders",transform:Dr}),Nr=Ir({prop:"borderLeft",themeKey:"borders",transform:Dr}),jr=Ir({prop:"borderColor",themeKey:"palette"}),zr=Ir({prop:"borderRadius",themeKey:"shape"}),Fr=Lr(Tr,_r,Or,qr,Nr,jr,zr);function $r(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Br(e){var t=function(t){var r=e(t);return t.css?xt({},Rr(r,e(xt({theme:t.theme},t.css))),$r(t.css,[e.filterProps])):t.sx?xt({},Rr(r,e(xt({theme:t.theme},t.sx))),$r(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(Er(e.filterProps)),t}var Hr=Lr(Ir({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Ir({prop:"display"}),Ir({prop:"overflow"}),Ir({prop:"textOverflow"}),Ir({prop:"visibility"}),Ir({prop:"whiteSpace"})),Wr=Ir({prop:"flexBasis"}),Vr=Ir({prop:"flexDirection"}),Gr=Ir({prop:"flexWrap"}),Ur=Ir({prop:"justifyContent"}),Yr=Ir({prop:"alignItems"}),Kr=Ir({prop:"alignContent"}),Xr=Ir({prop:"order"}),Jr=Ir({prop:"flex"}),Zr=Ir({prop:"flexGrow"}),Qr=Ir({prop:"flexShrink"}),en=Ir({prop:"alignSelf"}),tn=Ir({prop:"justifyItems"}),rn=Ir({prop:"justifySelf"}),nn=Lr(Wr,Vr,Gr,Ur,Yr,Kr,Xr,Jr,Zr,Qr,en,tn,rn),on=Ir({prop:"gridGap"}),an=Ir({prop:"gridColumnGap"}),sn=Ir({prop:"gridRowGap"}),ln=Ir({prop:"gridColumn"}),un=Ir({prop:"gridRow"}),cn=Ir({prop:"gridAutoFlow"}),dn=Ir({prop:"gridAutoColumns"}),pn=Ir({prop:"gridAutoRows"}),fn=Ir({prop:"gridTemplateColumns"}),hn=Ir({prop:"gridTemplateRows"}),mn=Ir({prop:"gridTemplateAreas"}),gn=Ir({prop:"gridArea"}),bn=Lr(on,an,sn,ln,un,cn,dn,pn,fn,hn,mn,gn),vn=Ir({prop:"color",themeKey:"palette"}),yn=Ir({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),xn=Lr(vn,yn),Sn=Ir({prop:"position"}),Cn=Ir({prop:"zIndex",themeKey:"zIndex"}),wn=Ir({prop:"top"}),En=Ir({prop:"right"}),Rn=Ir({prop:"bottom"}),An=Ir({prop:"left"}),Pn=Lr(Sn,Cn,wn,En,Rn,An),kn=Ir({prop:"boxShadow",themeKey:"shadows"});function Mn(e){return e<=1?"".concat(100*e,"%"):e}var In=Ir({prop:"width",transform:Mn}),Ln=Ir({prop:"maxWidth",transform:Mn}),Dn=Ir({prop:"minWidth",transform:Mn}),Tn=Ir({prop:"height",transform:Mn}),_n=Ir({prop:"maxHeight",transform:Mn}),On=Ir({prop:"minHeight",transform:Mn}),qn=Ir({prop:"size",cssProperty:"width",transform:Mn}),Nn=Ir({prop:"size",cssProperty:"height",transform:Mn}),jn=Ir({prop:"boxSizing"}),zn=Lr(In,Ln,Dn,Tn,_n,On,jn);function Fn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||wr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var $n={m:"margin",p:"padding"},Bn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Hn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Wn=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){if(e.length>2){if(!Hn[e])return[e];e=Hn[e]}var t=Fn(e.split(""),2),r=t[0],n=t[1],o=$n[r],i=Bn[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Vn=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Gn(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Un(e,t){return function(r){return e.reduce((function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e}),{})}}function Yn(e){var t=Gn(e.theme);return Object.keys(e).map((function(r){if(-1===Vn.indexOf(r))return null;var n=Un(Wn(r),t),o=e[r];return kr(e,o,n)})).reduce(Rr,{})}Yn.propTypes={},Yn.filterProps=Vn;var Kn=Ir({prop:"fontFamily",themeKey:"typography"}),Xn=Ir({prop:"fontSize",themeKey:"typography"}),Jn=Ir({prop:"fontStyle",themeKey:"typography"}),Zn=Ir({prop:"fontWeight",themeKey:"typography"}),Qn=Ir({prop:"letterSpacing"}),eo=Ir({prop:"lineHeight"}),to=Ir({prop:"textAlign"}),ro=Lr(Kn,Xn,Jn,Zn,Qn,eo,to),no=Object.freeze({__proto__:null,alignContent:Kr,alignItems:Yr,alignSelf:en,bgcolor:yn,border:Tr,borderBottom:qr,borderColor:jr,borderLeft:Nr,borderRadius:zr,borderRight:Or,borderTop:_r,borders:Fr,bottom:Rn,boxSizing:jn,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Pr,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(xt({theme:t.theme},t[o]))),r}),null);return Rr(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Er(e.filterProps)),t},color:vn,compose:Lr,createUnarySpacing:Gn,css:function(e){return Br(e)},display:Hr,flex:Jr,flexBasis:Wr,flexDirection:Vr,flexGrow:Zr,flexShrink:Qr,flexWrap:Gr,flexbox:nn,fontFamily:Kn,fontSize:Xn,fontStyle:Jn,fontWeight:Zn,grid:bn,gridArea:gn,gridAutoColumns:dn,gridAutoFlow:cn,gridAutoRows:pn,gridColumn:ln,gridColumnGap:an,gridGap:on,gridRow:un,gridRowGap:sn,gridTemplateAreas:mn,gridTemplateColumns:fn,gridTemplateRows:hn,height:Tn,justifyContent:Ur,justifyItems:tn,justifySelf:rn,left:An,letterSpacing:Qn,lineHeight:eo,maxHeight:_n,maxWidth:Ln,minHeight:On,minWidth:Dn,order:Xr,palette:xn,position:Sn,positions:Pn,right:En,shadows:kn,sizeHeight:Nn,sizeWidth:qn,sizing:zn,spacing:Yn,style:Ir,styleFunctionSx:Br,textAlign:to,top:wn,typography:ro,width:In,zIndex:Cn}),oo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",io=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ao(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==io.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[oo]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function so(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}function lo(){return lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lo.apply(null,arguments)}var uo="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},co="object"===("undefined"==typeof window?"undefined":uo(window))&&"object"===("undefined"==typeof document?"undefined":uo(document))&&9===document.nodeType;function po(e){return po="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},po(e)}function fo(e){var t=function(e,t){if("object"!=po(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=po(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==po(t)?t:t+""}function ho(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fo(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mo(e,t){return mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mo(e,t)}function go(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mo(e,t)}function bo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vo(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var yo={}.constructor;function xo(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(xo);if(e.constructor!==yo)return e;var t={};for(var r in e)t[r]=xo(e[r]);return t}function So(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=xo(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var Co=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},wo=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=Co(e[r]," ");else t=Co(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Eo(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Ro(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Ao(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=Eo(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=Ro(p+":"+u+wo(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Ro(h+":"+u+wo(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=Ro(g+":"+u+wo(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Ro(""+e+u+"{"+n,--i)+Ro("}",i)):n}var Po=/([[\].#*$><+~=|^:(),"'`\s])/g,ko="undefined"!=typeof CSS&&CSS.escape,Mo=function(e){return ko?ko(e):e.replace(Po,"\\$1")},Io=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Lo=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(bo(bo(o)),s),o.selectorText="."+Mo(o.id)),o}go(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=wo(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?lo({},e,{allowEmpty:!0}):e;return Ao(this.selectorText,this.style,r)},ho(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(Io),Do={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Lo(e,t,r)}},To={indent:1,children:!0},_o=/@([\w-]+)/,Oo=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(_o);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ii(lo({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=To);var t=Eo(e).linebreak;if(null==e.indent&&(e.indent=To.indent),null==e.children&&(e.children=To.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),qo=/@container|@media|@supports\s+/,No={onCreateRule:function(e,t,r){return qo.test(e)?new Oo(e,t,r):null}},jo={indent:1,children:!0},zo=/@keyframes\s+([\w-]+)/,Fo=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(zo);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:Mo(a(this,i)),this.rules=new ii(lo({},r,{parent:this})),t)this.rules.add(s,t[s],lo({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=jo);var t=Eo(e).linebreak;if(null==e.indent&&(e.indent=jo.indent),null==e.children&&(e.children=jo.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),$o=/@keyframes\s+/,Bo=/\$([\w-]+)/g,Ho=function(e,t){return"string"==typeof e?e.replace(Bo,(function(e,r){return r in t?t[r]:e})):e},Wo=function(e,t,r){var n=e[t],o=Ho(n,r);o!==n&&(e[t]=o)},Vo={onCreateRule:function(e,t,r){return"string"==typeof e&&$o.test(e)?new Fo(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Wo(e,"animation-name",r.keyframes),"animation"in e&&Wo(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Ho(e,n.keyframes);default:return e}}},Go=function(e){function t(){return e.apply(this,arguments)||this}return go(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?lo({},e,{allowEmpty:!0}):e;return Ao(this.key,this.style,r)},t}(Io),Uo={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Go(e,t,r):null}},Yo=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=Eo(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Ao(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Ao(this.at,this.style,e)},e}(),Ko=/@font-face/,Xo={onCreateRule:function(e,t,r){return Ko.test(e)?new Yo(e,t,r):null}},Jo=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return Ao(this.key,this.style,e)},e}(),Zo={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Jo(e,t,r):null}},Qo=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ei={"@charset":!0,"@import":!0,"@namespace":!0},ti={onCreateRule:function(e,t,r){return e in ei?new Qo(e,t,r):null}},ri=[Do,No,Vo,Uo,Xo,Zo,ti],ni={process:!0},oi={force:!0,process:!0},ii=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=lo({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Mo(this.classes[d]));var p=So(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=lo({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Lo?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Fo&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Lo?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Fo&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=ni);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,oi)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,oi)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=Eo(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),ai=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=lo({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ii(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),si=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),li=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=vo(t,["attached"]),o=Eo(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},ho(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ui=new li,ci="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),di="2f1acc6c3a606b082e5eef5e54414ffb";null==ci[di]&&(ci[di]=0);var pi=ci[di]++,fi=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+pi+o+t:i+r.key+"-"+pi+(o?"-"+o:"")+"-"+t}},hi=function(e){var t;return function(){return t||(t=e()),t}},mi=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},gi=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=wo(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},bi=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},vi=function(e,t){return e.selectorText=t,e.selectorText===t},yi=hi((function(){return document.querySelector("head")}));function xi(e){var t=ui.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=yi(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Si=hi((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ci=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},wi=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Ei=function(){function e(e){this.getPropertyValue=mi,this.setProperty=gi,this.removeProperty=bi,this.setSelector=vi,this.hasInsertedRules=!1,this.cssRules=[],e&&ui.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=Si();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=xi(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else yi().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=wi(r,t);if(!1===(o=Ci(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=wi(r,t),l=Ci(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof ai&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ri=0,Ai=function(){function e(e){this.id=Ri++,this.version="10.10.0",this.plugins=new si,this.options={id:{minify:!1},createGenerateId:fi,Renderer:co?Ei:null,plugins:[]},this.generateId=fi({minify:!1});for(var t=0;t<ri.length;t++)this.plugins.use(ri[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=lo({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===ui.index?0:ui.index+1);var n=new ai(e,lo({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),ui.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=lo({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=So(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Pi=function(e){return new Ai(e)},ki="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Mi(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=Mi(n);i&&(t||(t={}),t[r]=i)}}return t}
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},gt({exports:{}});const At=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function It(e,r){return t((()=>e),r)}const Mt={},Dt=()=>{const{viewState:e}=r(),o=(e=>{const r=t((()=>({current:Mt})),[]);return r.current=r.current===Mt?e:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=t((()=>At()),[]),l=It((e=>{i&&o.current.add(e)}),[o]),u=It(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(o.current),o.current.clear(),s()}),1e3),[s,o]);return n((async()=>{i&&await a}),[a,i]),t((()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,e,l])},kt={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"},Tt={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",...kt,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)"},qt=12,Lt=14,Ot=16,Nt=24,_t=3,jt=300,zt=400,Ft=600,Ht=700,$t={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Wt={exports:{}},Ut={},Gt=x,Yt=Symbol.for("react.element"),Kt=Symbol.for("react.fragment"),Xt=Object.prototype.hasOwnProperty,Jt=Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zt={key:!0,ref:!0,__self:!0,__source:!0};function Qt(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Xt.call(t,n)&&!Zt.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Yt,type:e,key:i,ref:a,props:o,_owner:Jt.current}}Ut.Fragment=Kt,Ut.jsx=Qt,Ut.jsxs=Qt,Wt.exports=Ut;var er=Wt.exports;const tr={black:"#000",white:"#fff"},rr="#e57373",nr="#ef5350",or="#f44336",ir="#d32f2f",ar="#c62828",sr="#f3e5f5",lr="#ce93d8",ur="#ba68c8",cr="#ab47bc",dr="#9c27b0",pr="#7b1fa2",fr="#e3f2fd",mr="#90caf9",hr="#42a5f5",gr="#1976d2",br="#1565c0",vr="#4fc3f7",yr="#29b6f6",xr="#03a9f4",Sr="#0288d1",wr="#01579b",Cr="#81c784",Er="#66bb6a",Rr="#4caf50",Pr="#388e3c",Ar="#2e7d32",Ir="#1b5e20",Mr="#ffb74d",Dr="#ffa726",kr="#ff9800",Tr="#f57c00",qr="#e65100",Lr={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 Or(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 Nr=Object.freeze({__proto__:null,default:Or}),_r="$$material";function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jr.apply(null,arguments)}function zr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var Fr=function(){return Fr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fr.apply(this,arguments)};function Hr(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var $r=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0},Br=Bt($r),Vr="-ms-",Wr="-moz-",Ur="-webkit-",Gr="comm",Yr="rule",Kr="decl",Xr="@keyframes",Jr=Math.abs,Zr=String.fromCharCode,Qr=Object.assign;function en(e){return e.trim()}function tn(e,t){return(e=t.exec(e))?e[0]:e}function rn(e,t,r){return e.replace(t,r)}function nn(e,t,r){return e.indexOf(t,r)}function on(e,t){return 0|e.charCodeAt(t)}function an(e,t,r){return e.slice(t,r)}function sn(e){return e.length}function ln(e){return e.length}function un(e,t){return t.push(e),e}function cn(e,t){return e.filter((function(e){return!tn(e,t)}))}var dn=1,pn=1,fn=0,mn=0,hn=0,gn="";function bn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:dn,column:pn,length:a,return:"",siblings:s}}function vn(e,t){return Qr(bn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function yn(e){for(;e.root;)e=vn(e.root,{children:[e]});un(e,e.siblings)}function xn(){return hn=mn<fn?on(gn,mn++):0,pn++,10===hn&&(pn=1,dn++),hn}function Sn(){return on(gn,mn)}function wn(){return mn}function Cn(e,t){return an(gn,e,t)}function En(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 Rn(e){return en(Cn(mn-1,In(91===e?e+2:40===e?e+1:e)))}function Pn(e){for(;(hn=Sn())&&hn<33;)xn();return En(e)>2||En(hn)>3?"":" "}function An(e,t){for(;--t&&xn()&&!(hn<48||hn>102||hn>57&&hn<65||hn>70&&hn<97););return Cn(e,wn()+(t<6&&32==Sn()&&32==xn()))}function In(e){for(;xn();)switch(hn){case e:return mn;case 34:case 39:34!==e&&39!==e&&In(hn);break;case 40:41===e&&In(e);break;case 92:xn()}return mn}function Mn(e,t){for(;xn()&&e+hn!==57&&(e+hn!==84||47!==Sn()););return"/*"+Cn(t,mn-1)+"*"+Zr(47===e?e:xn())}function Dn(e){for(;!En(Sn());)xn();return Cn(e,mn)}function kn(e){return function(e){return gn="",e}(Tn("",null,null,null,[""],e=function(e){return dn=pn=1,fn=sn(gn=e),mn=0,[]}(e),0,[0],e))}function Tn(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,w=n,C=y;g;)switch(m=v,v=xn()){case 40:if(108!=m&&58==on(C,d-1)){-1!=nn(C+=rn(Rn(v),"&","&\f"),"&\f",Jr(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Rn(v);break;case 9:case 10:case 13:case 32:C+=Pn(m);break;case 92:C+=An(wn()-1,7);continue;case 47:switch(Sn()){case 42:case 47:un(Ln(Mn(xn(),wn()),t,r,l),l);break;default:C+="/"}break;case 123*h:s[u++]=sn(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=rn(C,/\f/g,"")),f>0&&sn(C)-d&&un(f>32?On(C+";",n,r,d-1,l):On(rn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(un(w=qn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)Tn(C,t,w,w,x,i,d,s,S);else switch(99===p&&110===on(C,3)?100:p){case 100:case 108:case 109:case 115:Tn(e,w,w,n&&un(qn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:Tn(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+sn(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(hn=mn>0?on(gn,--mn):0,pn--,10===hn&&(pn=1,dn--),hn))continue;switch(C+=Zr(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(sn(C)-1)*b,b=1;break;case 64:45===Sn()&&(C+=Rn(xn())),p=Sn(),c=d=sn(y=C+=Dn(wn())),v++;break;case 45:45===m&&2==sn(C)&&(h=0)}}return i}function qn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=ln(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=an(e,p+1,p=Jr(g=a[h])),x=e;v<m;++v)(x=en(g>0?f[v]+" "+y:rn(y,/&\f/g,f[v])))&&(l[b++]=x);return bn(e,t,r,0===o?Yr:s,l,u,c,d)}function Ln(e,t,r,n){return bn(e,t,r,Gr,Zr(hn),an(e,2,-2),0,n)}function On(e,t,r,n,o){return bn(e,t,r,Kr,an(e,0,n),an(e,n+1,-1),n,o)}function Nn(e,t,r){switch(function(e,t){return 45^on(e,0)?(((t<<2^on(e,0))<<2^on(e,1))<<2^on(e,2))<<2^on(e,3):0}(e,t)){case 5103:return Ur+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ur+e+e;case 4789:return Wr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ur+e+Wr+e+Vr+e+e;case 5936:switch(on(e,t+11)){case 114:return Ur+e+Vr+rn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ur+e+Vr+rn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ur+e+Vr+rn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ur+e+Vr+e+e;case 6165:return Ur+e+Vr+"flex-"+e+e;case 5187:return Ur+e+rn(e,/(\w+).+(:[^]+)/,Ur+"box-$1$2"+Vr+"flex-$1$2")+e;case 5443:return Ur+e+Vr+"flex-item-"+rn(e,/flex-|-self/g,"")+(tn(e,/flex-|baseline/)?"":Vr+"grid-row-"+rn(e,/flex-|-self/g,""))+e;case 4675:return Ur+e+Vr+"flex-line-pack"+rn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ur+e+Vr+rn(e,"shrink","negative")+e;case 5292:return Ur+e+Vr+rn(e,"basis","preferred-size")+e;case 6060:return Ur+"box-"+rn(e,"-grow","")+Ur+e+Vr+rn(e,"grow","positive")+e;case 4554:return Ur+rn(e,/([^-])(transform)/g,"$1"+Ur+"$2")+e;case 6187:return rn(rn(rn(e,/(zoom-|grab)/,Ur+"$1"),/(image-set)/,Ur+"$1"),e,"")+e;case 5495:case 3959:return rn(e,/(image-set\([^]*)/,Ur+"$1$`$1");case 4968:return rn(rn(e,/(.+:)(flex-)?(.*)/,Ur+"box-pack:$3"+Vr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ur+e+e;case 4200:if(!tn(e,/flex-|baseline/))return Vr+"grid-column-align"+an(e,t)+e;break;case 2592:case 3360:return Vr+rn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,tn(e.props,/grid-\w+-end/)}))?~nn(e+(r=r[t].value),"span",0)?e:Vr+rn(e,"-start","")+e+Vr+"grid-row-span:"+(~nn(r,"span",0)?tn(r,/\d+/):+tn(r,/\d+/)-+tn(e,/\d+/))+";":Vr+rn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return tn(e.props,/grid-\w+-start/)}))?e:Vr+rn(rn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return rn(e,/(.+)-inline(.+)/,Ur+"$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(sn(e)-1-t>6)switch(on(e,t+1)){case 109:if(45!==on(e,t+4))break;case 102:return rn(e,/(.+:)(.+)-([^]+)/,"$1"+Ur+"$2-$3$1"+Wr+(108==on(e,t+3)?"$3":"$2-$3"))+e;case 115:return~nn(e,"stretch",0)?Nn(rn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return rn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Vr+r+":"+n+s+(o?Vr+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===on(e,t+6))return rn(e,":",":"+Ur)+e;break;case 6444:switch(on(e,45===on(e,14)?18:11)){case 120:return rn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ur+(45===on(e,14)?"inline-":"")+"box$3$1"+Ur+"$2$3$1"+Vr+"$2box$3")+e;case 100:return rn(e,":",":"+Vr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return rn(e,"scroll-","scroll-snap-")+e}return e}function _n(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function jn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Kr:return e.return=e.return||e.value;case Gr:return"";case Xr:return e.return=e.value+"{"+_n(e.children,n)+"}";case Yr:if(!sn(e.value=e.props.join(",")))return""}return sn(r=_n(e.children,n))?e.return=e.value+"{"+r+"}":""}function zn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kr:return void(e.return=Nn(e.value,e.length,r));case Xr:return _n([vn(e,{value:rn(e.value,"@","@"+Ur)})],n);case Yr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(tn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":yn(vn(e,{props:[rn(t,/:(read-\w+)/,":-moz-$1")]})),yn(vn(e,{props:[t]})),Qr(e,{props:cn(r,n)});break;case"::placeholder":yn(vn(e,{props:[rn(t,/:(plac\w+)/,":"+Ur+"input-$1")]})),yn(vn(e,{props:[rn(t,/:(plac\w+)/,":-moz-$1")]})),yn(vn(e,{props:[rn(t,/:(plac\w+)/,Vr+"input-$1")]})),yn(vn(e,{props:[t]})),Qr(e,{props:cn(r,n)})}return""}))}}var Fn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,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},Hn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",$n="active",Bn="data-styled-version",Vn="6.1.18",Wn="/*!sc*/\n",Un="undefined"!=typeof window&&"undefined"!=typeof document,Gn=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),Yn={},Kn=Object.freeze([]),Xn=Object.freeze({});function Jn(e,t,r){return void 0===r&&(r=Xn),e.theme!==r.theme&&e.theme||t||r.theme}var Zn=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","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","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Qn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eo=/(^-|-$)/g;function to(e){return e.replace(Qn,"-").replace(eo,"")}var ro=/(a)(d)/gi,no=function(e){return String.fromCharCode(e+(e>25?39:97))};function oo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=no(t%52)+r;return(no(t%52)+r).replace(ro,"$1-$2")}var io,ao=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},so=function(e){return ao(5381,e)};function lo(e){return oo(so(e)>>>0)}function uo(e){return"string"==typeof e&&!0}var co="function"==typeof Symbol&&Symbol.for,po=co?Symbol.for("react.memo"):60115,fo=co?Symbol.for("react.forward_ref"):60112,mo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ho={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},go={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bo=((io={})[fo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},io[po]=go,io);function vo(e){return("type"in(t=e)&&t.type.$$typeof)===po?go:"$$typeof"in e?bo[e.$$typeof]:mo;var t}var yo=Object.defineProperty,xo=Object.getOwnPropertyNames,So=Object.getOwnPropertySymbols,wo=Object.getOwnPropertyDescriptor,Co=Object.getPrototypeOf,Eo=Object.prototype;function Ro(e,t,r){if("string"!=typeof t){if(Eo){var n=Co(t);n&&n!==Eo&&Ro(e,n,r)}var o=xo(t);So&&(o=o.concat(So(t)));for(var i=vo(e),a=vo(t),s=0;s<o.length;++s){var l=o[s];if(!(l in ho||r&&r[l]||a&&l in a||i&&l in i)){var u=wo(t,l);try{yo(e,l,u)}catch(e){}}}}return e}function Po(e){return"function"==typeof e}function Ao(e){return"object"==typeof e&&"styledComponentId"in e}function Io(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Mo(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Do(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ko(e,t,r){if(void 0===r&&(r=!1),!r&&!Do(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ko(e[n],t[n]);else if(Do(t))for(var n in t)e[n]=ko(e[n],t[n]);return e}function To(e,t){Object.defineProperty(e,"toString",{value:t})}function qo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Lo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw qo(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Wn);return t},e}(),Oo=new Map,No=new Map,_o=1,jo=function(e){if(Oo.has(e))return Oo.get(e);for(;No.has(_o);)_o++;var t=_o++;return Oo.set(e,t),No.set(t,e),t},zo=function(e,t){_o=t+1,Oo.set(e,t),No.set(t,e)},Fo="style[".concat(Hn,"][").concat(Bn,'="').concat(Vn,'"]'),Ho=new RegExp("^".concat(Hn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),$o=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Bo=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Wn),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Ho);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(zo(c,u),$o(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Vo=function(e){for(var t=document.querySelectorAll(Fo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Hn)!==$n&&(Bo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Wo=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Hn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Hn,$n),n.setAttribute(Bn,Vn);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Uo=function(){function e(e){this.element=Wo(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw qo(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Go=function(){function e(e){this.element=Wo(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Yo=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ko=Un,Xo={isServer:!Un,useCSSOMInjection:!Gn},Jo=function(){function e(e,t,r){void 0===e&&(e=Xn),void 0===t&&(t={});var n=this;this.options=Fr(Fr({},Xo),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Un&&Ko&&(Ko=!1,Vo(this)),To(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return No.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(Hn,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(Wn)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return jo(e)},e.prototype.rehydrate=function(){!this.server&&Un&&Vo(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Fr(Fr({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Yo(r):t?new Uo(r):new Go(r)}(this.options),new Lo(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(jo(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(jo(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(jo(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Zo=/&/g,Qo=/^\s*\/\/.*$/gm;function ei(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=ei(e.children,t)),e}))}function ti(e){var t,r,n,o=void 0===e?Xn:e,i=o.options,a=void 0===i?Xn:i,s=o.plugins,l=void 0===s?Kn:s,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=l.slice();c.push((function(e){e.type===Yr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Zo,r).replace(n,u))})),a.prefix&&c.push(zn),c.push(jn);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var l=e.replace(Qo,""),u=kn(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=ei(u,a.namespace));var d,p=[];return _n(u,function(e){var t=ln(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||qo(15),ao(e,t.name)}),5381).toString():"",d}var ri=new Jo,ni=ti(),oi=x.createContext({shouldForwardProp:void 0,styleSheet:ri,stylis:ni});oi.Consumer;var ii=x.createContext(void 0);function ai(){return S(oi)}function si(e){var t=w(e.stylisPlugins),r=t[0],n=t[1],o=ai().styleSheet,i=C((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=C((function(){return ti({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);E((function(){Br(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var s=C((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(oi.Provider,{value:s},x.createElement(ii.Provider,{value:a},e.children))}var li=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ni);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,To(this,(function(){throw qo(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=ni),this.name+e.hash},e}(),ui=function(e){return e>="A"&&e<="Z"};function ci(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;ui(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var di=function(e){return null==e||!1===e||""===e},pi=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!di(i)&&(Array.isArray(i)&&i.isCss||Po(i)?n.push("".concat(ci(o),":"),i,";"):Do(i)?n.push.apply(n,Hr(Hr(["".concat(o," {")],pi(i),!1),["}"],!1)):n.push("".concat(ci(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Fn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function fi(e,t,r,n){return di(e)?[]:Ao(e)?[".".concat(e.styledComponentId)]:Po(e)?!Po(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:fi(e(t),t,r,n):e instanceof li?r?(e.inject(r,n),[e.getName(n)]):[e]:Do(e)?pi(e):Array.isArray(e)?Array.prototype.concat.apply(Kn,e.map((function(e){return fi(e,t,r,n)}))):[e.toString()];var o}function mi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Po(r)&&!Ao(r))return!1}return!0}var hi=so(Vn),gi=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&mi(e),this.componentId=t,this.baseHash=ao(hi,t),this.baseStyle=r,Jo.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Io(n,this.staticRulesId);else{var o=Mo(fi(this.rules,e,t,r)),i=oo(ao(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=Io(n,i),this.staticRulesId=i}else{for(var s=ao(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Mo(fi(c,e,t,r));s=ao(s,d+u),l+=d}}if(l){var p=oo(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=Io(n,p)}}return n},e}(),bi=x.createContext(void 0);bi.Consumer;var vi={};function yi(e,t,r){var n=Ao(e),o=e,i=!uo(e),a=t.attrs,s=void 0===a?Kn:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":to(e);vi[r]=(vi[r]||0)+1;var n="".concat(r,"-").concat(lo(Vn+r+vi[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return uo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(to(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new gi(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=x.useContext(bi),c=ai(),d=e.shouldForwardProp||c.shouldForwardProp,p=Jn(t,u,i)||Xn,f=function(e,t,r){for(var n,o=Fr(Fr({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Po(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?Io(o[s],a[s]):"style"===s?Fr(Fr({},o[s]),a[s]):a[s]}return t.className&&(o.className=Io(o.className,t.className)),o}(n,t,p),m=f.as||l,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var r=ai();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=Io(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[uo(m)&&!Zn.has(m)?"class":"className"]=v,r&&(h.ref=r),R(m,h)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=n?Io(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)ko(e,o[n],!0);return e}({},o.defaultProps,e):e}}),To(y,(function(){return".".concat(y.styledComponentId)})),i&&Ro(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function xi(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Si=function(e){return Object.assign(e,{isCss:!0})};function wi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Po(e)||Do(e))return Si(fi(xi(Kn,Hr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?fi(n):Si(fi(xi(n,t)))}function Ci(e,t,r){if(void 0===r&&(r=Xn),!t)throw qo(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,wi.apply(void 0,Hr([n],o,!1)))};return n.attrs=function(n){return Ci(e,t,Fr(Fr({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Ci(e,t,Fr(Fr({},r),n))},n}var Ei=function(e){return Ci(yi,e)},Ri=Ei;Zn.forEach((function(e){Ri[e]=Ei(e)}));var Pi=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=mi(e),Jo.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Mo(fi(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Jo.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Ai(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Mo(wi.apply(void 0,Hr([e],t,!1))),o=lo(n);return new li(o,n)}var Ii={exports:{}};function Mi(){}function Di(){}Di.resetWarningCache=Mi;Ii.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Di,resetWarningCache:Mi};return r.PropTypes=r,r}();var ki=Bt(Ii.exports);function Ti(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}Ti.propTypes={children:ki.node,injectFirst:ki.bool};const qi=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=wi.apply(void 0,Hr([e],t,!1)),o="sc-global-".concat(lo(JSON.stringify(n))),i=new Pi(n,o),a=function(e){var t=ai(),r=x.useContext(bi),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&s(n,e,t.styleSheet,r,t.stylis),x.useLayoutEffect((function(){if(!t.styleSheet.server)return s(n,e,t.styleSheet,r,t.stylis),function(){return i.removeStyles(n,t.styleSheet)}}),[n,e,t.styleSheet,r,t.stylis]),null};function s(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Yn,r,o);else{var s=Fr(Fr({},t),{theme:Jn(t,n,a.defaultProps)});i.renderStyles(e,s,r,o)}}return x.memo(a)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
10
10
  /**
11
- * A better abstraction over CSS.
12
- *
13
- * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
14
- * @website https://github.com/cssinjs/jss
15
- * @license MIT
16
- */Pi();var Ii=Date.now(),Li="fnValues"+Ii,Di="fnStyle"+ ++Ii,Ti="@global",_i="@global ",Oi=function(){function e(e,t,r){for(var n in this.type="global",this.at=Ti,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new ii(lo({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),qi=function(){function e(e,t,r){this.type="global",this.at=Ti,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,lo({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ni=/\s*,\s*/g;function ji(e,t){for(var r=e.split(Ni),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function zi(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Ti)return new Oi(e,t,r);if("@"===e[0]&&e.substr(0,8)===_i)return new qi(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[Ti]:null;if(o){for(var i in o)t.addRule(i,o[i],lo({},r,{selector:ji(i,e.selector)}));delete n[Ti]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Ti){var i=ji(o.substr(7),e.selector);t.addRule(i,n[o],lo({},r,{selector:i})),delete n[o]}}(e,t))}}}var Fi=/\s*,\s*/g,$i=/&/g,Bi=/\$([\w-]+)/g;function Hi(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(Fi),n=e.split(Fi),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace($i,a):a+" "+l}return o}function r(e,t,r){if(r)return lo({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=lo({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(Bi,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],lo({},a,{selector:f})):u.addRule(h,n[c],lo({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Wi=/[A-Z]/g,Vi=/^ms-/,Gi={};function Ui(e){return"-"+e.toLowerCase()}function Yi(e){if(Gi.hasOwnProperty(e))return Gi[e];var t=e.replace(Wi,Ui);return Gi[e]=Vi.test(t)?"-"+t:t}function Ki(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Yi(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ki):t.fallbacks=Ki(e.fallbacks)),t}var Xi=ki&&CSS?CSS.px:"px",Ji=ki&&CSS?CSS.ms:"ms",Zi=ki&&CSS?CSS.percent:"%";function Qi(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var ea=Qi({"animation-delay":Ji,"animation-duration":Ji,"background-position":Xi,"background-position-x":Xi,"background-position-y":Xi,"background-size":Xi,border:Xi,"border-bottom":Xi,"border-bottom-left-radius":Xi,"border-bottom-right-radius":Xi,"border-bottom-width":Xi,"border-left":Xi,"border-left-width":Xi,"border-radius":Xi,"border-right":Xi,"border-right-width":Xi,"border-top":Xi,"border-top-left-radius":Xi,"border-top-right-radius":Xi,"border-top-width":Xi,"border-width":Xi,"border-block":Xi,"border-block-end":Xi,"border-block-end-width":Xi,"border-block-start":Xi,"border-block-start-width":Xi,"border-block-width":Xi,"border-inline":Xi,"border-inline-end":Xi,"border-inline-end-width":Xi,"border-inline-start":Xi,"border-inline-start-width":Xi,"border-inline-width":Xi,"border-start-start-radius":Xi,"border-start-end-radius":Xi,"border-end-start-radius":Xi,"border-end-end-radius":Xi,margin:Xi,"margin-bottom":Xi,"margin-left":Xi,"margin-right":Xi,"margin-top":Xi,"margin-block":Xi,"margin-block-end":Xi,"margin-block-start":Xi,"margin-inline":Xi,"margin-inline-end":Xi,"margin-inline-start":Xi,padding:Xi,"padding-bottom":Xi,"padding-left":Xi,"padding-right":Xi,"padding-top":Xi,"padding-block":Xi,"padding-block-end":Xi,"padding-block-start":Xi,"padding-inline":Xi,"padding-inline-end":Xi,"padding-inline-start":Xi,"mask-position-x":Xi,"mask-position-y":Xi,"mask-size":Xi,height:Xi,width:Xi,"min-height":Xi,"max-height":Xi,"min-width":Xi,"max-width":Xi,bottom:Xi,left:Xi,top:Xi,right:Xi,inset:Xi,"inset-block":Xi,"inset-block-end":Xi,"inset-block-start":Xi,"inset-inline":Xi,"inset-inline-end":Xi,"inset-inline-start":Xi,"box-shadow":Xi,"text-shadow":Xi,"column-gap":Xi,"column-rule":Xi,"column-rule-width":Xi,"column-width":Xi,"font-size":Xi,"font-size-delta":Xi,"letter-spacing":Xi,"text-decoration-thickness":Xi,"text-indent":Xi,"text-stroke":Xi,"text-stroke-width":Xi,"word-spacing":Xi,motion:Xi,"motion-offset":Xi,outline:Xi,"outline-offset":Xi,"outline-width":Xi,perspective:Xi,"perspective-origin-x":Zi,"perspective-origin-y":Zi,"transform-origin":Zi,"transform-origin-x":Zi,"transform-origin-y":Zi,"transform-origin-z":Zi,"transition-delay":Ji,"transition-duration":Ji,"vertical-align":Xi,"flex-basis":Xi,"shape-margin":Xi,size:Xi,gap:Xi,grid:Xi,"grid-gap":Xi,"row-gap":Xi,"grid-row-gap":Xi,"grid-column-gap":Xi,"grid-template-rows":Xi,"grid-template-columns":Xi,"grid-auto-rows":Xi,"grid-auto-columns":Xi,"box-shadow-x":Xi,"box-shadow-y":Xi,"box-shadow-blur":Xi,"box-shadow-spread":Xi,"font-line-height":Xi,"text-shadow-x":Xi,"text-shadow-y":Xi,"text-shadow-blur":Xi});function ta(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=ta(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=ta(o,t[o],r);else for(var i in t)t[i]=ta(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||ea[e];return!a||0===t&&a===Xi?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ra(e){void 0===e&&(e={});var t=Qi(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=ta(n,e[n],t);return e},onChangeValue:function(e,r){return ta(r,e,t)}}}var na="",oa="",ia="",aa="",sa=co&&"ontouchstart"in document.documentElement;if(co){var la={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ua=document.createElement("p").style;for(var ca in la)if(ca+"Transform"in ua){na=ca,oa=la[ca];break}"Webkit"===na&&"msHyphens"in ua&&(na="ms",oa=la.ms,aa="edge"),"Webkit"===na&&"-apple-trailing-word"in ua&&(ia="apple")}var da=na,pa=oa,fa=ia,ha=aa,ma=sa;var ga={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===da?"-webkit-"+e:pa+e)}},ba={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===da?pa+"print-"+e:e)}},va=/[-\s]+(.)?/g;function ya(e,t){return t?t.toUpperCase():""}function xa(e){return e.replace(va,ya)}function Sa(e){return xa("-"+e)}var Ca,wa={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===da){var r="mask-image";if(xa(r)in t)return e;if(da+Sa(r)in t)return pa+e}return e}},Ea={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==fa||ma?e:pa+e)}},Ra={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:pa+e)}},Aa={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:pa+e)}},Pa={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===da||"ms"===da&&"edge"!==ha?pa+e:e)}},ka={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===da||"ms"===da||"apple"===fa?pa+e:e)}},Ma={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===da?"WebkitColumn"+Sa(e)in t&&pa+"column-"+e:"Moz"===da&&("page"+Sa(e)in t&&"page-"+e))}},Ia={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===da)return e;var r=e.replace("-inline","");return da+Sa(r)in t&&pa+r}},La={supportedProperty:function(e,t){return xa(e)in t&&e}},Da={supportedProperty:function(e,t){var r=Sa(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:da+r in t?pa+e:"Webkit"!==da&&"Webkit"+r in t&&"-webkit-"+e}},Ta={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===da?""+pa+e:e)}},_a={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===da?pa+"scroll-chaining":e)}},Oa={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},qa={supportedProperty:function(e,t){var r=Oa[e];return!!r&&(da+Sa(r)in t&&pa+r)}},Na={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ja=Object.keys(Na),za=function(e){return pa+e},Fa={supportedProperty:function(e,t,r){var n=r.multiple;if(ja.indexOf(e)>-1){var o=Na[e];if(!Array.isArray(o))return da+Sa(o)in t&&pa+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(da+Sa(o[0])in t))return!1;return o.map(za)}return!1}},$a=[ga,ba,wa,Ea,Ra,Aa,Pa,ka,Ma,Ia,La,Da,Ta,_a,qa,Fa],Ba=$a.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ha=$a.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Er(t.noPrefill)),e}),[]),Wa={};if(co){Ca=document.createElement("p");var Va=window.getComputedStyle(document.documentElement,"");for(var Ga in Va)isNaN(Ga)||(Wa[Va[Ga]]=Va[Ga]);Ha.forEach((function(e){return delete Wa[e]}))}function Ua(e,t){if(void 0===t&&(t={}),!Ca)return e;if(null!=Wa[e])return Wa[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ca.style);for(var r=0;r<Ba.length&&(Wa[e]=Ba[r](e,Ca.style,t),!Wa[e]);r++);try{Ca.style[e]=""}catch(e){return!1}return Wa[e]}var Ya,Ka={},Xa={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ja=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Za(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Ua(t):", "+Ua(r);return n||(t||r)}function Qa(e,t){var r=t;if(!Ya||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Ka[n])return Ka[n];try{Ya.style[e]=r}catch(e){return Ka[n]=!1,!1}if(Xa[e])r=r.replace(Ja,Za);else if(""===Ya.style[e]&&("-ms-flex"===(r=pa+r)&&(Ya.style[e]="-ms-flexbox"),Ya.style[e]=r,""===Ya.style[e]))return Ka[n]=!1,!1;return Ya.style[e]="",Ka[n]=r,Ka[n]}function es(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=Ua(r);i&&i!==r&&(o=!0);var a=!1,s=Qa(i,wo(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===da?e:"@"+pa+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return Qa(t,wo(e))||e}}}function ts(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=So(e,{},r);return n[Di]=t,n},onProcessStyle:function(e,t){if(Li in t||Di in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[Li]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Di];i&&(o.style=i(e)||{});var a=o[Li];if(a)for(var s in a)o.prop(s,a[s](e),n)}},zi(),Hi(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ki(e[t]);return e}return Ki(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Yi(t);return t===n?e:(r.prop(n,e),null)}},ra(),"undefined"==typeof window?null:es(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}})]};var e}function rs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=xt({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}co&&(Ya=document.createElement("p"));var ns=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},os=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},is=function(e,t,r){e.get(t).delete(r)},as=x.createContext(null);function ss(){return x.useContext(as)}var ls,us=Pi(ts()),cs=ao(),ds=new Map,ps={disableGeneration:!1,generateClassName:cs,jss:us,sheetsCache:null,sheetsManager:ds,sheetsRegistry:null},fs=x.createContext(ps);function hs(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=Sr(e,["children","injectFirst","disableGeneration"]),s=xt({},x.useContext(fs),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!ls){var l=document.head;ls=document.createComment("mui-inject-first"),l.insertBefore(ls,l.firstChild)}s.jss=Pi({plugins:ts().plugins,insertionPoint:ls})}return x.createElement(fs.Provider,{value:s},t)}var ms=-1e9;var gs={};function bs(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=os(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},ns(o.sheetsManager,i,n,s));var l=xt({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=os(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,xt({link:!1},l))).attach(),o.sheetsCache&&ns(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Mi(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,xt({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=rs({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function vs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?gs:i,s=Sr(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=xt({},o);return Object.keys(i).forEach((function(e){a[e]=wt(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:ms+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ss()||a,n=xt({},x.useContext(fs),s),i=x.useRef(),u=x.useRef();!function(e,t){var r,n=x.useRef([]),o=x.useMemo((function(){return{}}),t);n.current!==o&&(n.current=o,r=e()),x.useEffect((function(){return function(){r&&r()}}),[o])}((function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return bs(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=os(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(is(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),x.useEffect((function(){u.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(i.current,e),u.current=!0}));var c=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=rs({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}function ys(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dt(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var xs=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return ys(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new li;var r=ao();return x.createElement(hs,xt({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return x.createElement("style",xt({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function Ss(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Ss(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Cs(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Ss(e))&&(n&&(n+=" "),n+=t);return n}var ws={exports:{}},Es={},Rs="function"==typeof Symbol&&Symbol.for,As=Rs?Symbol.for("react.element"):60103,Ps=Rs?Symbol.for("react.portal"):60106,ks=Rs?Symbol.for("react.fragment"):60107,Ms=Rs?Symbol.for("react.strict_mode"):60108,Is=Rs?Symbol.for("react.profiler"):60114,Ls=Rs?Symbol.for("react.provider"):60109,Ds=Rs?Symbol.for("react.context"):60110,Ts=Rs?Symbol.for("react.async_mode"):60111,_s=Rs?Symbol.for("react.concurrent_mode"):60111,Os=Rs?Symbol.for("react.forward_ref"):60112,qs=Rs?Symbol.for("react.suspense"):60113,Ns=Rs?Symbol.for("react.suspense_list"):60120,js=Rs?Symbol.for("react.memo"):60115,zs=Rs?Symbol.for("react.lazy"):60116,Fs=Rs?Symbol.for("react.block"):60121,$s=Rs?Symbol.for("react.fundamental"):60117,Bs=Rs?Symbol.for("react.responder"):60118,Hs=Rs?Symbol.for("react.scope"):60119;function Ws(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case As:switch(e=e.type){case Ts:case _s:case ks:case Is:case Ms:case qs:return e;default:switch(e=e&&e.$$typeof){case Ds:case Os:case zs:case js:case Ls:return e;default:return t}}case Ps:return t}}}function Vs(e){return Ws(e)===_s}Es.AsyncMode=Ts,Es.ConcurrentMode=_s,Es.ContextConsumer=Ds,Es.ContextProvider=Ls,Es.Element=As,Es.ForwardRef=Os,Es.Fragment=ks,Es.Lazy=zs,Es.Memo=js,Es.Portal=Ps,Es.Profiler=Is,Es.StrictMode=Ms,Es.Suspense=qs,Es.isAsyncMode=function(e){return Vs(e)||Ws(e)===Ts},Es.isConcurrentMode=Vs,Es.isContextConsumer=function(e){return Ws(e)===Ds},Es.isContextProvider=function(e){return Ws(e)===Ls},Es.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===As},Es.isForwardRef=function(e){return Ws(e)===Os},Es.isFragment=function(e){return Ws(e)===ks},Es.isLazy=function(e){return Ws(e)===zs},Es.isMemo=function(e){return Ws(e)===js},Es.isPortal=function(e){return Ws(e)===Ps},Es.isProfiler=function(e){return Ws(e)===Is},Es.isStrictMode=function(e){return Ws(e)===Ms},Es.isSuspense=function(e){return Ws(e)===qs},Es.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ks||e===_s||e===Is||e===Ms||e===qs||e===Ns||"object"==typeof e&&null!==e&&(e.$$typeof===zs||e.$$typeof===js||e.$$typeof===Ls||e.$$typeof===Ds||e.$$typeof===Os||e.$$typeof===$s||e.$$typeof===Bs||e.$$typeof===Hs||e.$$typeof===Fs)},Es.typeOf=Ws,ws.exports=Es;var Gs=ws.exports,Us={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ys={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ks={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xs={};function Js(e){return Gs.isMemo(e)?Ks:Xs[e.$$typeof]||Us}Xs[Gs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xs[Gs.Memo]=Ks;var Zs=Object.defineProperty,Qs=Object.getOwnPropertyNames,el=Object.getOwnPropertySymbols,tl=Object.getOwnPropertyDescriptor,rl=Object.getPrototypeOf,nl=Object.prototype;var ol=function e(t,r,n){if("string"!=typeof r){if(nl){var o=rl(r);o&&o!==nl&&e(t,o,n)}var i=Qs(r);el&&(i=i.concat(el(r)));for(var a=Js(t),s=Js(r),l=0;l<i.length;++l){var u=i[l];if(!(Ys[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=tl(r,u);try{Zs(t,u,c)}catch(e){}}}}return t},il=Et(ol);function al(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=x.forwardRef((function(r,n){var o=r.innerRef,i=Sr(r,["innerRef"]),a=ss()||e;return x.createElement(t,xt({theme:a,ref:o||n},i))}));return il(r,t),r}}var sl=al(),ll=Object.freeze({__proto__:null,ServerStyleSheets:xs,StylesContext:fs,StylesProvider:hs,ThemeProvider:function(e){var t=e.children,r=e.theme,n=ss(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):xt({},e,t)}(n,r);return null!=e&&(e[oo]=null!==n),e}),[r,n]);return x.createElement(as.Provider,{value:o},t)},createGenerateClassName:ao,createStyles:function(e){return e},getThemeProps:so,jssPreset:ts,makeStyles:vs,mergeClasses:rs,sheetsManager:ds,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=Sr(n,["name"]),a=o,s=vs("function"==typeof t?function(e){return{root:function(r){return t(xt({theme:e},r))}}}:{root:t},xt({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=x.forwardRef((function(t,n){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,p=Sr(t,["children","className","clone","component"]),f=Cs(s(t).root,u),h=p;if(r&&(o=h,i=r,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),c)return x.cloneElement(l,xt({className:Cs(l.props.className,f)},h));if("function"==typeof l)return l(xt({className:f},h));var m=d||e;return x.createElement(m,xt({ref:n,className:f},h),l)}));return il(l,e),l}},useTheme:ss,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=Sr(t,["defaultTheme","withTheme","name"]),l=a,u=vs(e,xt({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),c=x.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=Sr(e,["classes","innerRef"]),c=u(xt({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=ss()||n,a&&(d=so({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,xt({ref:s||t,classes:c},d))}));return il(c,r),c}},withTheme:sl,withThemeCreator:al});
17
- /** @license Material-UI v4.11.5
18
- *
19
- * This source code is licensed under the MIT license found in the
20
- * LICENSE file in the root directory of this source tree.
21
- */const ul={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"},cl={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",...ul,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)"},dl=12,pl=14,fl=16,hl=24,ml=3,gl=300,bl=400,vl=600,yl=700,xl={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};yr(cl.GREYSCALE_0,.05),yr(cl.GREEN_PALE,.5),yr(cl.BLUE_PALE,.5),yr(cl.GREEN_PALE,.5),yr(cl.BLUE_PALE,.5),yr(cl.GREEN_PALE,.5),yr(cl.BLUE_PALE,.5);yr(cl.GREEN_PALE,.5),yr(cl.BLUE_PALE,.5),yr(cl.GREEN_PALE,.5),yr(cl.BLUE_PALE,.5);var Sl={exports:{}},Cl={},wl=x,El=Symbol.for("react.element"),Rl=Symbol.for("react.fragment"),Al=Object.prototype.hasOwnProperty,Pl=wl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kl={key:!0,ref:!0,__self:!0,__source:!0};function Ml(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Al.call(t,n)&&!kl.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:El,type:e,key:i,ref:a,props:o,_owner:Pl.current}}Cl.Fragment=Rl,Cl.jsx=Ml,Cl.jsxs=Ml,Sl.exports=Cl;var Il,Ll=Sl.exports;function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dl.apply(null,arguments)}var Tl,_l=function(e){return S.createElement("svg",Dl({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Il||(Il=S.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ol.apply(null,arguments)}var ql=function(e){return S.createElement("svg",Ol({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Tl||(Tl=S.createElement("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.345z"})))};function Nl({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Ll.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function jl(e={}){return Ll.jsx(Nl,{...e,children:Ll.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Ll.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Ll.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 zl(e={}){return Ll.jsx(Nl,{...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Ll.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Ll.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Fl(e={}){return Ll.jsx(Nl,{fontSize:"medium",...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Ll.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function $l(e={}){return Ll.jsx(Nl,{fontSize:"medium",...e,children:Ll.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ll.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Ll.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 Bl({className:e}){return Ll.jsx(Nl,{fontSize:"small",className:e,children:Ll.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Ll.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ll.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Ll.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Ll.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"}),Ll.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"})]})})})})})}Ll.jsx(ql,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Ll.jsx(_l,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Ll.jsx(Fl,{}),Ll.jsx($l,{}),Ll.jsx((function(e={}){return Ll.jsx(Nl,{...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Ll.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Ll.jsx(jl,{}),Ll.jsx(zl,{}),Ll.jsx(_l,{style:{color:cl.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const Hl={black:"#000",white:"#fff"},Wl="#e57373",Vl="#ef5350",Gl="#f44336",Ul="#d32f2f",Yl="#c62828",Kl="#f3e5f5",Xl="#ce93d8",Jl="#ba68c8",Zl="#ab47bc",Ql="#9c27b0",eu="#7b1fa2",tu="#e3f2fd",ru="#90caf9",nu="#42a5f5",ou="#1976d2",iu="#1565c0",au="#4fc3f7",su="#29b6f6",lu="#03a9f4",uu="#0288d1",cu="#01579b",du="#81c784",pu="#66bb6a",fu="#4caf50",hu="#388e3c",mu="#2e7d32",gu="#1b5e20",bu="#ffb74d",vu="#ffa726",yu="#ff9800",xu="#f57c00",Su="#e65100",Cu={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 wu(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 Eu=Object.freeze({__proto__:null,default:wu}),Ru="$$material";function Au(){return Au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Au.apply(this,arguments)}function Pu(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var ku=function(){return ku=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ku.apply(this,arguments)};function Mu(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Iu=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0},Lu=Et(Iu),Du="-ms-",Tu="-moz-",_u="-webkit-",Ou="comm",qu="rule",Nu="decl",ju="@keyframes",zu=Math.abs,Fu=String.fromCharCode,$u=Object.assign;function Bu(e){return e.trim()}function Hu(e,t){return(e=t.exec(e))?e[0]:e}function Wu(e,t,r){return e.replace(t,r)}function Vu(e,t,r){return e.indexOf(t,r)}function Gu(e,t){return 0|e.charCodeAt(t)}function Uu(e,t,r){return e.slice(t,r)}function Yu(e){return e.length}function Ku(e){return e.length}function Xu(e,t){return t.push(e),e}function Ju(e,t){return e.filter((function(e){return!Hu(e,t)}))}var Zu=1,Qu=1,ec=0,tc=0,rc=0,nc="";function oc(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Zu,column:Qu,length:a,return:"",siblings:s}}function ic(e,t){return $u(oc("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ac(e){for(;e.root;)e=ic(e.root,{children:[e]});Xu(e,e.siblings)}function sc(){return rc=tc<ec?Gu(nc,tc++):0,Qu++,10===rc&&(Qu=1,Zu++),rc}function lc(){return Gu(nc,tc)}function uc(){return tc}function cc(e,t){return Uu(nc,e,t)}function dc(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 pc(e){return Bu(cc(tc-1,mc(91===e?e+2:40===e?e+1:e)))}function fc(e){for(;(rc=lc())&&rc<33;)sc();return dc(e)>2||dc(rc)>3?"":" "}function hc(e,t){for(;--t&&sc()&&!(rc<48||rc>102||rc>57&&rc<65||rc>70&&rc<97););return cc(e,uc()+(t<6&&32==lc()&&32==sc()))}function mc(e){for(;sc();)switch(rc){case e:return tc;case 34:case 39:34!==e&&39!==e&&mc(rc);break;case 40:41===e&&mc(e);break;case 92:sc()}return tc}function gc(e,t){for(;sc()&&e+rc!==57&&(e+rc!==84||47!==lc()););return"/*"+cc(t,tc-1)+"*"+Fu(47===e?e:sc())}function bc(e){for(;!dc(lc());)sc();return cc(e,tc)}function vc(e){return function(e){return nc="",e}(yc("",null,null,null,[""],e=function(e){return Zu=Qu=1,ec=Yu(nc=e),tc=0,[]}(e),0,[0],e))}function yc(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,C=n,w=y;g;)switch(h=v,v=sc()){case 40:if(108!=h&&58==Gu(w,d-1)){-1!=Vu(w+=Wu(pc(v),"&","&\f"),"&\f",zu(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=pc(v);break;case 9:case 10:case 13:case 32:w+=fc(h);break;case 92:w+=hc(uc()-1,7);continue;case 47:switch(lc()){case 42:case 47:Xu(Sc(gc(sc(),uc()),t,r,l),l);break;default:w+="/"}break;case 123*m:s[u++]=Yu(w)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=Wu(w,/\f/g,"")),f>0&&Yu(w)-d&&Xu(f>32?Cc(w+";",n,r,d-1,l):Cc(Wu(w," ","")+";",n,r,d-2,l),l);break;case 59:w+=";";default:if(Xu(C=xc(w,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)yc(w,t,C,C,x,i,d,s,S);else switch(99===p&&110===Gu(w,3)?100:p){case 100:case 108:case 109:case 115:yc(e,C,C,n&&Xu(xc(e,C,C,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:yc(w,C,C,C,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=w="",d=a;break;case 58:d=1+Yu(w),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==(rc=tc>0?Gu(nc,--tc):0,Qu--,10===rc&&(Qu=1,Zu--),rc))continue;switch(w+=Fu(v),v*m){case 38:b=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(Yu(w)-1)*b,b=1;break;case 64:45===lc()&&(w+=pc(sc())),p=lc(),c=d=Yu(y=w+=bc(uc())),v++;break;case 45:45===h&&2==Yu(w)&&(m=0)}}return i}function xc(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Ku(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=Uu(e,p+1,p=zu(g=a[m])),x=e;v<h;++v)(x=Bu(g>0?f[v]+" "+y:Wu(y,/&\f/g,f[v])))&&(l[b++]=x);return oc(e,t,r,0===o?qu:s,l,u,c,d)}function Sc(e,t,r,n){return oc(e,t,r,Ou,Fu(rc),Uu(e,2,-2),0,n)}function Cc(e,t,r,n,o){return oc(e,t,r,Nu,Uu(e,0,n),Uu(e,n+1,-1),n,o)}function wc(e,t,r){switch(function(e,t){return 45^Gu(e,0)?(((t<<2^Gu(e,0))<<2^Gu(e,1))<<2^Gu(e,2))<<2^Gu(e,3):0}(e,t)){case 5103:return _u+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _u+e+e;case 4789:return Tu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _u+e+Tu+e+Du+e+e;case 5936:switch(Gu(e,t+11)){case 114:return _u+e+Du+Wu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _u+e+Du+Wu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _u+e+Du+Wu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _u+e+Du+e+e;case 6165:return _u+e+Du+"flex-"+e+e;case 5187:return _u+e+Wu(e,/(\w+).+(:[^]+)/,_u+"box-$1$2"+Du+"flex-$1$2")+e;case 5443:return _u+e+Du+"flex-item-"+Wu(e,/flex-|-self/g,"")+(Hu(e,/flex-|baseline/)?"":Du+"grid-row-"+Wu(e,/flex-|-self/g,""))+e;case 4675:return _u+e+Du+"flex-line-pack"+Wu(e,/align-content|flex-|-self/g,"")+e;case 5548:return _u+e+Du+Wu(e,"shrink","negative")+e;case 5292:return _u+e+Du+Wu(e,"basis","preferred-size")+e;case 6060:return _u+"box-"+Wu(e,"-grow","")+_u+e+Du+Wu(e,"grow","positive")+e;case 4554:return _u+Wu(e,/([^-])(transform)/g,"$1"+_u+"$2")+e;case 6187:return Wu(Wu(Wu(e,/(zoom-|grab)/,_u+"$1"),/(image-set)/,_u+"$1"),e,"")+e;case 5495:case 3959:return Wu(e,/(image-set\([^]*)/,_u+"$1$`$1");case 4968:return Wu(Wu(e,/(.+:)(flex-)?(.*)/,_u+"box-pack:$3"+Du+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_u+e+e;case 4200:if(!Hu(e,/flex-|baseline/))return Du+"grid-column-align"+Uu(e,t)+e;break;case 2592:case 3360:return Du+Wu(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Hu(e.props,/grid-\w+-end/)}))?~Vu(e+(r=r[t].value),"span",0)?e:Du+Wu(e,"-start","")+e+Du+"grid-row-span:"+(~Vu(r,"span",0)?Hu(r,/\d+/):+Hu(r,/\d+/)-+Hu(e,/\d+/))+";":Du+Wu(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Hu(e.props,/grid-\w+-start/)}))?e:Du+Wu(Wu(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Wu(e,/(.+)-inline(.+)/,_u+"$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(Yu(e)-1-t>6)switch(Gu(e,t+1)){case 109:if(45!==Gu(e,t+4))break;case 102:return Wu(e,/(.+:)(.+)-([^]+)/,"$1"+_u+"$2-$3$1"+Tu+(108==Gu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Vu(e,"stretch",0)?wc(Wu(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Wu(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Du+r+":"+n+s+(o?Du+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===Gu(e,t+6))return Wu(e,":",":"+_u)+e;break;case 6444:switch(Gu(e,45===Gu(e,14)?18:11)){case 120:return Wu(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_u+(45===Gu(e,14)?"inline-":"")+"box$3$1"+_u+"$2$3$1"+Du+"$2box$3")+e;case 100:return Wu(e,":",":"+Du)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Wu(e,"scroll-","scroll-snap-")+e}return e}function Ec(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Rc(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Nu:return e.return=e.return||e.value;case Ou:return"";case ju:return e.return=e.value+"{"+Ec(e.children,n)+"}";case qu:if(!Yu(e.value=e.props.join(",")))return""}return Yu(r=Ec(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ac(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Nu:return void(e.return=wc(e.value,e.length,r));case ju:return Ec([ic(e,{value:Wu(e.value,"@","@"+_u)})],n);case qu:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Hu(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ac(ic(e,{props:[Wu(t,/:(read-\w+)/,":-moz-$1")]})),ac(ic(e,{props:[t]})),$u(e,{props:Ju(r,n)});break;case"::placeholder":ac(ic(e,{props:[Wu(t,/:(plac\w+)/,":"+_u+"input-$1")]})),ac(ic(e,{props:[Wu(t,/:(plac\w+)/,":-moz-$1")]})),ac(ic(e,{props:[Wu(t,/:(plac\w+)/,Du+"input-$1")]})),ac(ic(e,{props:[t]})),$u(e,{props:Ju(r,n)})}return""}))}}var Pc={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,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},kc="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Mc="active",Ic="data-styled-version",Lc="6.1.18",Dc="/*!sc*/\n",Tc="undefined"!=typeof window&&"undefined"!=typeof document,_c=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),Oc={},qc=Object.freeze([]),Nc=Object.freeze({});function jc(e,t,r){return void 0===r&&(r=Nc),e.theme!==r.theme&&e.theme||t||r.theme}var zc=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","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","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Fc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,$c=/(^-|-$)/g;function Bc(e){return e.replace(Fc,"-").replace($c,"")}var Hc=/(a)(d)/gi,Wc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Vc(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Wc(t%52)+r;return(Wc(t%52)+r).replace(Hc,"$1-$2")}var Gc,Uc=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Yc=function(e){return Uc(5381,e)};function Kc(e){return Vc(Yc(e)>>>0)}function Xc(e){return"string"==typeof e&&!0}var Jc="function"==typeof Symbol&&Symbol.for,Zc=Jc?Symbol.for("react.memo"):60115,Qc=Jc?Symbol.for("react.forward_ref"):60112,ed={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},td={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},rd={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nd=((Gc={})[Qc]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gc[Zc]=rd,Gc);function od(e){return("type"in(t=e)&&t.type.$$typeof)===Zc?rd:"$$typeof"in e?nd[e.$$typeof]:ed;var t}var id=Object.defineProperty,ad=Object.getOwnPropertyNames,sd=Object.getOwnPropertySymbols,ld=Object.getOwnPropertyDescriptor,ud=Object.getPrototypeOf,cd=Object.prototype;function dd(e,t,r){if("string"!=typeof t){if(cd){var n=ud(t);n&&n!==cd&&dd(e,n,r)}var o=ad(t);sd&&(o=o.concat(sd(t)));for(var i=od(e),a=od(t),s=0;s<o.length;++s){var l=o[s];if(!(l in td||r&&r[l]||a&&l in a||i&&l in i)){var u=ld(t,l);try{id(e,l,u)}catch(e){}}}}return e}function pd(e){return"function"==typeof e}function fd(e){return"object"==typeof e&&"styledComponentId"in e}function hd(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function md(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function gd(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function bd(e,t,r){if(void 0===r&&(r=!1),!r&&!gd(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=bd(e[n],t[n]);else if(gd(t))for(var n in t)e[n]=bd(e[n],t[n]);return e}function vd(e,t){Object.defineProperty(e,"toString",{value:t})}function yd(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var xd=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw yd(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Dc);return t},e}(),Sd=new Map,Cd=new Map,wd=1,Ed=function(e){if(Sd.has(e))return Sd.get(e);for(;Cd.has(wd);)wd++;var t=wd++;return Sd.set(e,t),Cd.set(t,e),t},Rd=function(e,t){wd=t+1,Sd.set(e,t),Cd.set(t,e)},Ad="style[".concat(kc,"][").concat(Ic,'="').concat(Lc,'"]'),Pd=new RegExp("^".concat(kc,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),kd=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Md=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Dc),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Pd);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Rd(c,u),kd(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Id=function(e){for(var t=document.querySelectorAll(Ad),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(kc)!==Mc&&(Md(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Ld=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(kc,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(kc,Mc),n.setAttribute(Ic,Lc);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Dd=function(){function e(e){this.element=Ld(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw yd(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Td=function(){function e(e){this.element=Ld(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),_d=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Od=Tc,qd={isServer:!Tc,useCSSOMInjection:!_c},Nd=function(){function e(e,t,r){void 0===e&&(e=Nc),void 0===t&&(t={});var n=this;this.options=ku(ku({},qd),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Tc&&Od&&(Od=!1,Id(this)),vd(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Cd.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(kc,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(Dc)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Ed(e)},e.prototype.rehydrate=function(){!this.server&&Tc&&Id(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(ku(ku({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new _d(r):t?new Dd(r):new Td(r)}(this.options),new xd(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Ed(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Ed(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Ed(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),jd=/&/g,zd=/^\s*\/\/.*$/gm;function Fd(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Fd(e.children,t)),e}))}function $d(e){var t,r,n,o=void 0===e?Nc:e,i=o.options,a=void 0===i?Nc:i,s=o.plugins,l=void 0===s?qc:s,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=l.slice();c.push((function(e){e.type===qu&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(jd,r).replace(n,u))})),a.prefix&&c.push(Ac),c.push(Rc);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var l=e.replace(zd,""),u=vc(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=Fd(u,a.namespace));var d,p=[];return Ec(u,function(e){var t=Ku(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||yd(15),Uc(e,t.name)}),5381).toString():"",d}var Bd=new Nd,Hd=$d(),Wd=x.createContext({shouldForwardProp:void 0,styleSheet:Bd,stylis:Hd});Wd.Consumer;var Vd=x.createContext(void 0);function Gd(){return C(Wd)}function Ud(e){var t=w(e.stylisPlugins),r=t[0],n=t[1],o=Gd().styleSheet,i=E((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=E((function(){return $d({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);R((function(){Lu(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var s=E((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(Wd.Provider,{value:s},x.createElement(Vd.Provider,{value:a},e.children))}var Yd=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Hd);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,vd(this,(function(){throw yd(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Hd),this.name+e.hash},e}(),Kd=function(e){return e>="A"&&e<="Z"};function Xd(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Kd(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Jd=function(e){return null==e||!1===e||""===e},Zd=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Jd(i)&&(Array.isArray(i)&&i.isCss||pd(i)?n.push("".concat(Xd(o),":"),i,";"):gd(i)?n.push.apply(n,Mu(Mu(["".concat(o," {")],Zd(i),!1),["}"],!1)):n.push("".concat(Xd(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Pc||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Qd(e,t,r,n){return Jd(e)?[]:fd(e)?[".".concat(e.styledComponentId)]:pd(e)?!pd(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Qd(e(t),t,r,n):e instanceof Yd?r?(e.inject(r,n),[e.getName(n)]):[e]:gd(e)?Zd(e):Array.isArray(e)?Array.prototype.concat.apply(qc,e.map((function(e){return Qd(e,t,r,n)}))):[e.toString()];var o}function ep(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(pd(r)&&!fd(r))return!1}return!0}var tp=Yc(Lc),rp=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&ep(e),this.componentId=t,this.baseHash=Uc(tp,t),this.baseStyle=r,Nd.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=hd(n,this.staticRulesId);else{var o=md(Qd(this.rules,e,t,r)),i=Vc(Uc(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=hd(n,i),this.staticRulesId=i}else{for(var s=Uc(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=md(Qd(c,e,t,r));s=Uc(s,d+u),l+=d}}if(l){var p=Vc(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=hd(n,p)}}return n},e}(),np=x.createContext(void 0);np.Consumer;var op={};function ip(e,t,r){var n=fd(e),o=e,i=!Xc(e),a=t.attrs,s=void 0===a?qc:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":Bc(e);op[r]=(op[r]||0)+1;var n="".concat(r,"-").concat(Kc(Lc+r+op[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return Xc(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Bc(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var b=new rp(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=x.useContext(np),c=Gd(),d=e.shouldForwardProp||c.shouldForwardProp,p=jc(t,u,i)||Nc,f=function(e,t,r){for(var n,o=ku(ku({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=pd(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?hd(o[s],a[s]):"style"===s?ku(ku({},o[s]),a[s]):a[s]}return t.className&&(o.className=hd(o.className,t.className)),o}(n,t,p),h=f.as||l,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var b=function(e,t){var r=Gd();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=hd(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Xc(h)&&!zc.has(h)?"class":"className"]=v,r&&(m.ref=r),A(h,m)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?hd(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)bd(e,o[n],!0);return e}({},o.defaultProps,e):e}}),vd(y,(function(){return".".concat(y.styledComponentId)})),i&&dd(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function ap(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var sp=function(e){return Object.assign(e,{isCss:!0})};function lp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(pd(e)||gd(e))return sp(Qd(ap(qc,Mu([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Qd(n):sp(Qd(ap(n,t)))}function up(e,t,r){if(void 0===r&&(r=Nc),!t)throw yd(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,lp.apply(void 0,Mu([n],o,!1)))};return n.attrs=function(n){return up(e,t,ku(ku({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return up(e,t,ku(ku({},r),n))},n}var cp=function(e){return up(ip,e)},dp=cp;zc.forEach((function(e){dp[e]=cp(e)}));var pp=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ep(e),Nd.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(md(Qd(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Nd.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function fp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=md(lp.apply(void 0,Mu([e],t,!1))),o=Kc(n);return new Yd(o,n)}function hp(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}hp.propTypes={children:Mt.node,injectFirst:Mt.bool};const mp=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=lp.apply(void 0,Mu([e],t,!1)),o="sc-global-".concat(Kc(JSON.stringify(n))),i=new pp(n,o),a=function(e){var t=Gd(),r=x.useContext(np),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&s(n,e,t.styleSheet,r,t.stylis),x.useLayoutEffect((function(){if(!t.styleSheet.server)return s(n,e,t.styleSheet,r,t.stylis),function(){return i.removeStyles(n,t.styleSheet)}}),[n,e,t.styleSheet,r,t.stylis]),null};function s(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Oc,r,o);else{var s=ku(ku({},t),{theme:jc(t,n,a.defaultProps)});i.renderStyles(e,s,r,o)}}return x.memo(a)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
22
- /**
23
- * @mui/styled-engine-sc v6.4.2
11
+ * @mui/styled-engine-sc v6.4.3
24
12
  *
25
13
  * @license MIT
26
14
  * This source code is licensed under the MIT license found in the
27
15
  * LICENSE file in the root directory of this source tree.
28
16
  */
29
- function gp(e,t){let r;return r=t?dp(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):dp(e),r}function bp(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function vp(e){return e}mp.propTypes={defaultTheme:Mt.object,styles:Mt.oneOfType([Mt.array,Mt.string,Mt.object,Mt.func])};var yp=Object.freeze({__proto__:null,GlobalStyles:mp,StyledEngineProvider:hp,ThemeContext:np,css:lp,default:gp,internal_mutateStyles:bp,internal_processStyles:function(e,t){return bp(e,t)},internal_serializeStyles:vp,keyframes:fp});function xp(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 Sp(e){if(S.isValidElement(e)||!xp(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Sp(e[r])})),t}function Cp(e,t,r={clone:!0}){const n=r.clone?lo({},e):e;return xp(e)&&xp(t)&&Object.keys(t).forEach((o=>{S.isValidElement(t[o])?n[o]=t[o]:xp(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&xp(e[o])?n[o]=Cp(e[o],t[o],r):r.clone?n[o]=xp(t[o])?Sp(t[o]):t[o]:n[o]=t[o]})),n}var wp=Object.freeze({__proto__:null,default:Cp,isPlainObject:xp});const Ep=["values","unit","step"];function Rp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=vo(e,Ep),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)=>lo({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return lo({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(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]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const Ap={borderRadius:4};function Pp(e,t){return t?Cp(e,t,{clone:!1}):e}const kp={xs:0,sm:600,md:900,lg:1200,xl:1536},Mp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${kp[e]}px)`};function Ip(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Mp;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Mp;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||kp).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Lp(e){if("string"!=typeof e)throw new Error(wu(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Dp=Object.freeze({__proto__:null,default:Lp});function Tp(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function _p(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Tp(e,r)||n,t&&(o=t(o,n,e)),o}function Op(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Tp(e.theme,n)||{};return Ip(e,i,(e=>{let n=_p(a,o,e);return e===n&&"string"==typeof e&&(n=_p(a,o,`${t}${"default"===e?"":Lp(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const qp={m:"margin",p:"padding"},Np={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zp=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!jp[e])return[e];e=jp[e]}const[t,r]=e.split(""),n=qp[t],o=Np[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Fp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$p=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Bp(e,t,r,n){var o;const i=null!=(o=Tp(e,t,!1))?o:r;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 Hp(e){return Bp(e,"spacing",8)}function Wp(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Vp(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Wp(t,r),e)),{})}(zp(r),n);return Ip(e,e[r],o)}function Gp(e,t){const r=Hp(e.theme);return Object.keys(e).map((n=>Vp(e,t,n,r))).reduce(Pp,{})}function Up(e){return Gp(e,Fp)}function Yp(e){return Gp(e,$p)}function Kp(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Pp(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Xp(e){return"number"!=typeof e?e:`${e}px solid`}function Jp(e,t){return Op({prop:e,themeKey:"borders",transform:t})}Up.propTypes={},Up.filterProps=Fp,Yp.propTypes={},Yp.filterProps=$p;const Zp=Jp("border",Xp),Qp=Jp("borderTop",Xp),ef=Jp("borderRight",Xp),tf=Jp("borderBottom",Xp),rf=Jp("borderLeft",Xp),nf=Jp("borderColor"),of=Jp("borderTopColor"),af=Jp("borderRightColor"),sf=Jp("borderBottomColor"),lf=Jp("borderLeftColor"),uf=Jp("outline",Xp),cf=Jp("outlineColor"),df=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Bp(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Wp(t,e)});return Ip(e,e.borderRadius,r)}return null};df.propTypes={},df.filterProps=["borderRadius"],Kp(Zp,Qp,ef,tf,rf,nf,of,af,sf,lf,df,uf,cf);const pf=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Bp(e.theme,"spacing",8),r=e=>({gap:Wp(t,e)});return Ip(e,e.gap,r)}return null};pf.propTypes={},pf.filterProps=["gap"];const ff=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Bp(e.theme,"spacing",8),r=e=>({columnGap:Wp(t,e)});return Ip(e,e.columnGap,r)}return null};ff.propTypes={},ff.filterProps=["columnGap"];const hf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Bp(e.theme,"spacing",8),r=e=>({rowGap:Wp(t,e)});return Ip(e,e.rowGap,r)}return null};hf.propTypes={},hf.filterProps=["rowGap"];function mf(e,t){return"grey"===t?t:e}Kp(pf,ff,hf,Op({prop:"gridColumn"}),Op({prop:"gridRow"}),Op({prop:"gridAutoFlow"}),Op({prop:"gridAutoColumns"}),Op({prop:"gridAutoRows"}),Op({prop:"gridTemplateColumns"}),Op({prop:"gridTemplateRows"}),Op({prop:"gridTemplateAreas"}),Op({prop:"gridArea"}));function gf(e){return e<=1&&0!==e?100*e+"%":e}Kp(Op({prop:"color",themeKey:"palette",transform:mf}),Op({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mf}),Op({prop:"backgroundColor",themeKey:"palette",transform:mf}));const bf=Op({prop:"width",transform:gf}),vf=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||kp[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:gf(t)}};return Ip(e,e.maxWidth,t)}return null};vf.filterProps=["maxWidth"];const yf=Op({prop:"minWidth",transform:gf}),xf=Op({prop:"height",transform:gf}),Sf=Op({prop:"maxHeight",transform:gf}),Cf=Op({prop:"minHeight",transform:gf});Op({prop:"size",cssProperty:"width",transform:gf}),Op({prop:"size",cssProperty:"height",transform:gf});Kp(bf,vf,yf,xf,Sf,Cf,Op({prop:"boxSizing"}));const wf={border:{themeKey:"borders",transform:Xp},borderTop:{themeKey:"borders",transform:Xp},borderRight:{themeKey:"borders",transform:Xp},borderBottom:{themeKey:"borders",transform:Xp},borderLeft:{themeKey:"borders",transform:Xp},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xp},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:df},color:{themeKey:"palette",transform:mf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mf},backgroundColor:{themeKey:"palette",transform:mf},p:{style:Yp},pt:{style:Yp},pr:{style:Yp},pb:{style:Yp},pl:{style:Yp},px:{style:Yp},py:{style:Yp},padding:{style:Yp},paddingTop:{style:Yp},paddingRight:{style:Yp},paddingBottom:{style:Yp},paddingLeft:{style:Yp},paddingX:{style:Yp},paddingY:{style:Yp},paddingInline:{style:Yp},paddingInlineStart:{style:Yp},paddingInlineEnd:{style:Yp},paddingBlock:{style:Yp},paddingBlockStart:{style:Yp},paddingBlockEnd:{style:Yp},m:{style:Up},mt:{style:Up},mr:{style:Up},mb:{style:Up},ml:{style:Up},mx:{style:Up},my:{style:Up},margin:{style:Up},marginTop:{style:Up},marginRight:{style:Up},marginBottom:{style:Up},marginLeft:{style:Up},marginX:{style:Up},marginY:{style:Up},marginInline:{style:Up},marginInlineStart:{style:Up},marginInlineEnd:{style:Up},marginBlock:{style:Up},marginBlockStart:{style:Up},marginBlockEnd:{style:Up},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:pf},rowGap:{style:hf},columnGap:{style:ff},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:gf},maxWidth:{style:vf},minWidth:{transform:gf},height:{transform:gf},maxHeight:{transform:gf},minHeight:{transform:gf},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ef(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Tp(r,s)||{};if(u)return u(o);return Ip(o,t,(t=>{let r=_p(c,l,t);return t===r&&"string"==typeof t&&(r=_p(c,l,`${e}${"default"===t?"":Lp(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:wf;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{});return r||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=Pp(l,e(r,o,i,a));else{const e=Ip({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=Pp(l,e):l[r]=t({sx:o,theme:i})}else l=Pp(l,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const Rf=Ef();function Af(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Rf.filterProps=["sx"];const Pf=["breakpoints","palette","spacing","shape"];function kf(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=vo(e,Pf),s=Rp(r),l=function(e=8){if(e.mui)return e;const t=Hp({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Cp({breakpoints:s,direction:"ltr",components:{},palette:lo({mode:"light"},n),spacing:l,shape:lo({},Ap,i)},a);return u.applyStyles=Af,u=t.reduce(((e,t)=>Cp(e,t)),u),u.unstable_sxConfig=lo({},wf,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Rf({sx:e,theme:this})},u}var Mf=Object.freeze({__proto__:null,default:kf,private_createBreakpoints:Rp,unstable_applyStyles:Af});function If(e=null){const t=S.useContext(np);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Lf=kf();function Df(e=Lf){return If(e)}function Tf({styles:e,themeId:t,defaultTheme:r={}}){const n=Df(r),o="function"==typeof e?e(t&&n[t]||n):e;return Ll.jsx(mp,{styles:o})}const _f=["sx"];function Of(e){const{sx:t}=e,r=vo(e,_f),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:wf;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return xp(r)?lo({},n,r):n}:lo({},n,t),lo({},o,{sx:i})}var qf=Object.freeze({__proto__:null,default:Rf,extendSxProp:Of,unstable_createStyleFunctionSx:Ef,unstable_defaultSxConfig:wf});const Nf=e=>e,jf=(()=>{let e=Nf;return{configure(t){e=t},generate:t=>e(t),reset(){e=Nf}}})();function zf(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=zf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ff(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=zf(e))&&(n&&(n+=" "),n+=t);return n}const $f=["className","component"];const Bf={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 Hf(e,t,r="Mui"){const n=Bf[t];return n?`${r}-${n}`:`${jf.generate(e)}-${t}`}function Wf(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Hf(e,t,r)})),n}var Vf={exports:{}},Gf={},Uf=Symbol.for("react.transitional.element"),Yf=Symbol.for("react.portal"),Kf=Symbol.for("react.fragment"),Xf=Symbol.for("react.strict_mode"),Jf=Symbol.for("react.profiler"),Zf=Symbol.for("react.consumer"),Qf=Symbol.for("react.context"),eh=Symbol.for("react.forward_ref"),th=Symbol.for("react.suspense"),rh=Symbol.for("react.suspense_list"),nh=Symbol.for("react.memo"),oh=Symbol.for("react.lazy"),ih=Symbol.for("react.offscreen"),ah=Symbol.for("react.client.reference");function sh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Uf:switch(e=e.type){case Kf:case Jf:case Xf:case th:case rh:return e;default:switch(e=e&&e.$$typeof){case Qf:case eh:case oh:case nh:case Zf:return e;default:return t}}case Yf:return t}}}Gf.ContextConsumer=Zf,Gf.ContextProvider=Qf,Gf.Element=Uf,Gf.ForwardRef=eh,Gf.Fragment=Kf,Gf.Lazy=oh,Gf.Memo=nh,Gf.Portal=Yf,Gf.Profiler=Jf,Gf.StrictMode=Xf,Gf.Suspense=th,Gf.SuspenseList=rh,Gf.isContextConsumer=function(e){return sh(e)===Zf},Gf.isContextProvider=function(e){return sh(e)===Qf},Gf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Uf},Gf.isForwardRef=function(e){return sh(e)===eh},Gf.isFragment=function(e){return sh(e)===Kf},Gf.isLazy=function(e){return sh(e)===oh},Gf.isMemo=function(e){return sh(e)===nh},Gf.isPortal=function(e){return sh(e)===Yf},Gf.isProfiler=function(e){return sh(e)===Jf},Gf.isStrictMode=function(e){return sh(e)===Xf},Gf.isSuspense=function(e){return sh(e)===th},Gf.isSuspenseList=function(e){return sh(e)===rh},Gf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Kf||e===Jf||e===Xf||e===th||e===rh||e===ih||"object"==typeof e&&null!==e&&(e.$$typeof===oh||e.$$typeof===nh||e.$$typeof===Qf||e.$$typeof===Zf||e.$$typeof===eh||e.$$typeof===ah||void 0!==e.getModuleId)},Gf.typeOf=sh,Vf.exports=Gf;var lh=Vf.exports;const uh=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ch(e){const t=`${e}`.match(uh);return t&&t[1]||""}function dh(e,t=""){return e.displayName||e.name||ch(e)||t}function ph(e,t,r){const n=dh(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var fh=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return dh(e,"Component");if("object"==typeof e)switch(e.$$typeof){case lh.ForwardRef:return ph(e,e.render,"ForwardRef");case lh.Memo:return ph(e,e.type,"memo");default:return}}},getFunctionName:ch});function hh(e,t){const r=lo({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=lo({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=lo({},i),Object.keys(o).forEach((e=>{r[n][e]=hh(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const mh="undefined"!=typeof window?S.useLayoutEffect:S.useEffect;function gh(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var bh=Object.freeze({__proto__:null,default:gh});function vh(e){if(e.type)return e;if("#"===e.charAt(0))return vh(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(wu(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=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(n))throw new Error(wu(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function yh(e,t){return e=vh(e),t=function(e,t=0,r=1){return gh(e,t,r)}(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:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function xh(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Sh(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Ch(e){return e&&e.ownerDocument||document}function wh(e){return Ch(e).defaultView||window}function Eh(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Rh=0;const Ah=S["useId".toString()];function Ph(e){if(void 0!==Ah){return Ah()}return function(e){const[t,r]=S.useState(e),n=t;return S.useEffect((()=>{null==t&&(Rh+=1,r(`mui-${Rh}`))}),[t]),n}(e)}function kh({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=S.useRef(void 0!==e),[i,a]=S.useState(t);return[o?e:i,S.useCallback((e=>{o||a(e)}),[])]}function Mh(e){const t=S.useRef(e);return mh((()=>{t.current=e})),S.useRef(((...e)=>(0,t.current)(...e))).current}function Ih(...e){return S.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Eh(e,t)}))}),e)}const Lh={};const Dh=[];class Th{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Th}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function _h(){const e=function(e,t){const r=S.useRef(Lh);return r.current===Lh&&(r.current=e(t)),r}(Th.create).current;return function(e){S.useEffect(e,Dh)}(e.disposeEffect),e}let Oh=!0,qh=!1;const Nh=new Th,jh={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 zh(e){e.metaKey||e.altKey||e.ctrlKey||(Oh=!0)}function Fh(){Oh=!1}function $h(){"hidden"===this.visibilityState&&qh&&(Oh=!0)}function Bh(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Oh||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!jh[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Hh(){const e=S.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",zh,!0),t.addEventListener("mousedown",Fh,!0),t.addEventListener("pointerdown",Fh,!0),t.addEventListener("touchstart",Fh,!0),t.addEventListener("visibilitychange",$h,!0))}),[]),t=S.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Bh(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(qh=!0,Nh.start(100,(()=>{qh=!1})),t.current=!1,!0)},ref:e}}function Wh(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Vh(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function Gh(e){return"string"==typeof e}function Uh(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Yh(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Kh=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Xh(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=vo(e,Kh),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Ff(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=lo({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=lo({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Uh(lo({},o,n)),s=Yh(n),l=Yh(o),u=t(a),c=Ff(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=lo({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=lo({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(lo({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Gh(e)?t:lo({},t,{ownerState:lo({},t.ownerState,r)})}(r,lo({},l,{ref:Ih(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Jh(e){var t;return parseInt(S.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Zh=S.createContext(null);function Qh(){return S.useContext(Zh)}var em="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function tm(e){const{children:t,theme:r}=e,n=Qh(),o=S.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return lo({},e,t)}(n,r);return null!=e&&(e[em]=null!==n),e}),[r,n]);return Ll.jsx(Zh.Provider,{value:o,children:t})}const rm=S.createContext(),nm=S.createContext(void 0);function om({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?hh(o.defaultProps,n):o.styleOverrides||o.variants?n:hh(o,n)}({props:e,name:t,theme:{components:S.useContext(nm)}})}function im(e,t){return Au({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var am,sm={},lm={exports:{}};(am=lm).exports=function(e){return e&&e.__esModule?e:{default:e}},am.exports.__esModule=!0,am.exports.default=am.exports;var um=lm.exports,cm=Rt(Eu),dm=Rt(bh),pm=um;Object.defineProperty(sm,"__esModule",{value:!0});var fm=sm.alpha=Am;sm.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Sm(e),a=Sm(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return wm({type:"rgb",values:s})},sm.colorChannel=void 0;var hm=sm.darken=Pm;sm.decomposeColor=Sm,sm.emphasize=Mm;var mm=sm.getContrastRatio=function(e,t){const r=Rm(e),n=Rm(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};sm.getLuminance=Rm,sm.hexToRgb=xm,sm.hslToRgb=Em;var gm=sm.lighten=km;sm.private_safeAlpha=function(e,t,r){try{return Am(e,t)}catch(t){return e}},sm.private_safeColorChannel=void 0,sm.private_safeDarken=function(e,t,r){try{return Pm(e,t)}catch(t){return e}},sm.private_safeEmphasize=function(e,t,r){try{return Mm(e,t)}catch(t){return e}},sm.private_safeLighten=function(e,t,r){try{return km(e,t)}catch(t){return e}},sm.recomposeColor=wm,sm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Sm(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 bm=pm(cm),vm=pm(dm);function ym(e,t=0,r=1){return(0,vm.default)(e,t,r)}function xm(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Sm(e){if(e.type)return e;if("#"===e.charAt(0))return Sm(xm(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,bm.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=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(n))throw new Error((0,bm.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Cm=e=>{const t=Sm(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};sm.colorChannel=Cm;function wm(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Em(e){e=Sm(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),wm({type:s,values:l})}function Rm(e){let t="hsl"===(e=Sm(e)).type||"hsla"===e.type?Sm(Em(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 Am(e,t){return e=Sm(e),t=ym(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,wm(e)}function Pm(e,t){if(e=Sm(e),t=ym(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 r=0;r<3;r+=1)e.values[r]*=1-t;return wm(e)}function km(e,t){if(e=Sm(e),t=ym(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return wm(e)}function Mm(e,t=.15){return Rm(e)>.5?Pm(e,t):km(e,t)}sm.private_safeColorChannel=(e,t)=>{try{return Cm(e)}catch(t){return e}};const Im=["mode","contrastThreshold","tonalOffset"],Lm={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:Hl.white,default:Hl.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}},Dm={text:{primary:Hl.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:Hl.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 Tm(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=gm(e.main,o):"dark"===t&&(e.dark=hm(e.main,i)))}function _m(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Pu(e,Im),i=e.primary||function(e="light"){return"dark"===e?{main:ru,light:tu,dark:nu}:{main:ou,light:nu,dark:iu}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Xl,light:Kl,dark:Zl}:{main:Ql,light:Jl,dark:eu}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Gl,light:Wl,dark:Ul}:{main:Ul,light:Vl,dark:Yl}}(t),l=e.info||function(e="light"){return"dark"===e?{main:su,light:au,dark:uu}:{main:uu,light:lu,dark:cu}}(t),u=e.success||function(e="light"){return"dark"===e?{main:pu,light:du,dark:hu}:{main:mu,light:fu,dark:gu}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:vu,light:bu,dark:xu}:{main:"#ed6c02",light:yu,dark:Su}}(t);function d(e){return mm(e,Dm.text.primary)>=r?Dm.text.primary:Lm.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Au({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(wu(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(wu(12,t?` (${t})`:"",JSON.stringify(e.main)));return Tm(e,"light",o,n),Tm(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Dm,light:Lm};return Cp(Au({common:Au({},Hl),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:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Cu,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Om=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const qm={textTransform:"uppercase"},Nm='"Roboto", "Helvetica", "Arial", sans-serif';function jm(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Nm,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Pu(r,Om),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Au({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Nm?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);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,qm),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,qm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Cp(Au({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function zm(...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 Fm=["none",zm(0,2,1,-1,0,1,1,0,0,1,3,0),zm(0,3,1,-2,0,2,2,0,0,1,5,0),zm(0,3,3,-2,0,3,4,0,0,1,8,0),zm(0,2,4,-1,0,4,5,0,0,1,10,0),zm(0,3,5,-1,0,5,8,0,0,1,14,0),zm(0,3,5,-1,0,6,10,0,0,1,18,0),zm(0,4,5,-2,0,7,10,1,0,2,16,1),zm(0,5,5,-3,0,8,10,1,0,3,14,2),zm(0,5,6,-3,0,9,12,1,0,3,16,2),zm(0,6,6,-3,0,10,14,1,0,4,18,3),zm(0,6,7,-4,0,11,15,1,0,4,20,3),zm(0,7,8,-4,0,12,17,2,0,5,22,4),zm(0,7,8,-4,0,13,19,2,0,5,24,4),zm(0,7,9,-4,0,14,21,2,0,5,26,4),zm(0,8,9,-5,0,15,22,2,0,6,28,5),zm(0,8,10,-5,0,16,24,2,0,6,30,5),zm(0,8,11,-5,0,17,26,2,0,6,32,5),zm(0,9,11,-5,0,18,28,2,0,7,34,6),zm(0,9,12,-6,0,19,29,2,0,7,36,6),zm(0,10,13,-6,0,20,31,3,0,8,38,7),zm(0,10,13,-6,0,21,33,3,0,8,40,7),zm(0,10,14,-6,0,22,35,3,0,8,42,7),zm(0,11,14,-7,0,23,36,3,0,9,44,8),zm(0,11,15,-7,0,24,38,3,0,9,46,8)],$m=["duration","easing","delay"],Bm={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)"},Hm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wm(e){return`${Math.round(e)}ms`}function Vm(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Gm(e){const t=Au({},Bm,e.easing),r=Au({},Hm,e.duration);return Au({getAutoHeightDuration:Vm,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Pu(n,$m),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Wm(o)} ${i} ${"string"==typeof a?a:Wm(a)}`)).join(",")}},e,{easing:t,duration:r})}const Um={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ym=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Km(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Pu(e,Ym);if(e.vars&&void 0===e.generateCssVars)throw new Error(wu(18));const s=_m(n),l=kf(e);let u=Cp(l,{mixins:im(l.breakpoints,r),palette:s,shadows:Fm.slice(),typography:jm(s,i),transitions:Gm(o),zIndex:Au({},Um)});return u=Cp(u,a),u=t.reduce(((e,t)=>Cp(e,t)),u),u.unstable_sxConfig=Au({},wf,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Rf({sx:e,theme:this})},u}const Xm=Km();function Jm(){const e=Df(Xm);return e[Ru]||e}var Zm,Qm={},eg={exports:{}};var tg,rg={exports:{}};var ng=Rt(yp),og=Rt(wp),ig=Rt(Dp),ag=Rt(fh),sg=Rt(Mf),lg=Rt(qf),ug=um;Object.defineProperty(Qm,"__esModule",{value:!0});var cg=Qm.default=function(e={}){const{themeId:t,defaultTheme:r=Cg,rootShouldForwardProp:n=Sg,slotShouldForwardProp:o=Sg}=e,i=e=>(0,gg.default)((0,dg.default)({},e,{theme:Eg((0,dg.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,fg.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Rg(wg(l))}=a,p=(0,pg.default)(a,yg),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,h=c||!1;let m=Sg;"Root"===l||"root"===l?m=n:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,fg.default)(e,(0,dg.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,hg.isPlainObject)(e)?n=>Ag(e,(0,dg.default)({},n,{theme:Eg({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=Eg((0,dg.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Ag(r,(0,dg.default)({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=Eg((0,dg.default)({},e,{defaultTheme:r,themeId:t}));return Ag({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,dg.default)({},e,{theme:o}))})),h||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Qm.shouldForwardProp=Sg,Qm.systemDefaultTheme=void 0;var dg=ug((Zm||(Zm=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 r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}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}(eg)),eg.exports)),pg=ug((tg||(tg=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(rg)),rg.exports)),fg=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=xg(t);if(r&&r.has(e))return r.get(e);var n={__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(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(ng),hg=og;ug(ig),ug(ag);var mg=ug(sg),gg=ug(lg);const bg=["ownerState"],vg=["variants"],yg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function xg(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(xg=function(e){return e?r:t})(e)}function Sg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Cg=Qm.systemDefaultTheme=(0,mg.default)(),wg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Eg({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Rg(e){return e?(t,r)=>r[e]:null}function Ag(e,t){let{ownerState:r}=t,n=(0,pg.default)(t,bg);const o="function"==typeof e?e((0,dg.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Ag(e,(0,dg.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,pg.default)(o,vg);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,dg.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,dg.default)({ownerState:r},n,r)):e.style))})),t}return o}function Pg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const kg=e=>Pg(e)&&"classes"!==e,Mg=cg({themeId:Ru,defaultTheme:Xm,rootShouldForwardProp:kg}),Ig=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Lg(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Lg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Dg(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Lg(e))&&(n&&(n+=" "),n+=t);return n}function Tg(e){return om(e)}function _g(e){return Hf("MuiSvgIcon",e)}Wf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Og=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],qg=Mg("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Lp(r.color)}`],t[`fontSize${Lp(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"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==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,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]}})),Ng=S.forwardRef((function(e,t){const r=Tg({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Pu(r,Og),f=S.isValidElement(n)&&"svg"===n.type,h=Au({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Vh({root:["root","inherit"!==t&&`color${Lp(t)}`,`fontSize${Lp(r)}`]},_g,n)})(h);return Ll.jsxs(qg,Au({as:a,className:Dg(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?Ll.jsx("title",{children:c}):null]}))}));Ng.muiName="SvgIcon";var jg=!1,zg=x.createContext(null),Fg="unmounted",$g="exited",Bg="entering",Hg="entered",Wg="exiting",Vg=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=$g,n.appearStatus=Bg):o=Hg:o=t.unmountOnExit||t.mountOnEnter?Fg:$g,n.state={status:o},n.nextCallback=null,n}go(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Fg?{status:$g}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Bg&&r!==Hg&&(t=Bg):r!==Bg&&r!==Hg||(t=Wg)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Bg){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$g&&this.setState({status:Fg})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[F.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||jg?this.safeSetState({status:Hg},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Bg},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Hg},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:F.findDOMNode(this);t&&!jg?(this.props.onExit(n),this.safeSetState({status:Wg},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:$g},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:$g},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Fg)return null;var t=this.props,r=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 n=vo(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(zg.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Gg(){}function Ug(e,t){var r=Object.create(null);return e&&M.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&P(e)?t(e):e}(e)})),r}function Yg(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Kg(e,t,r){var n=Ug(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,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(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(P(a)){var s=i in t,l=i in n,u=t[i],c=P(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&P(u)&&(o[i]=k(a,{onExited:r.bind(null,a),in:u.props.in,exit:Yg(a,"exit",e),enter:Yg(a,"enter",e)})):o[i]=k(a,{in:!1}):o[i]=k(a,{onExited:r.bind(null,a),in:!0,exit:Yg(a,"exit",e),enter:Yg(a,"enter",e)})}})),o}Vg.contextType=zg,Vg.propTypes={},Vg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gg,onEntering:Gg,onEntered:Gg,onExit:Gg,onExiting:Gg,onExited:Gg},Vg.UNMOUNTED=Fg,Vg.EXITED=$g,Vg.ENTERING=Bg,Vg.ENTERED=Hg,Vg.EXITING=Wg;var Xg=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Jg=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(bo(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}go(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Ug(r.children,(function(e){return k(e,{onExited:n.bind(null,e),in:!0,appear:Yg(e,"appear",r),enter:Yg(e,"enter",r),exit:Yg(e,"exit",r)})}))):Kg(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Ug(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=lo({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=vo(e,["component","childFactory"]),o=this.state.contextValue,i=Xg(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(zg.Provider,{value:o},i):x.createElement(zg.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);Jg.propTypes={},Jg.defaultProps={component:"div",childFactory:function(e){return e}};const Zg=e=>e.scrollTop;function Qg(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function eb(e){return Hf("MuiPaper",e)}Wf("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 tb=["className","component","elevation","square","variant"],rb=Mg("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return Au({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&&Au({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${fm("#fff",Ig(t.elevation))}, ${fm("#fff",Ig(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),nb=S.forwardRef((function(e,t){const r=Tg({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Pu(r,tb),u=Au({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Vh({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},eb,o)})(u);return Ll.jsx(rb,Au({as:o,ownerState:u,className:Dg(c.root,n),ref:t},l))}));const ob=Wf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ib=["center","classes","className"];let ab,sb,lb,ub,cb=e=>e;const db=fp(ab||(ab=cb`
17
+ function Li(e,t){let r;return r=t?Ri(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ri(e),r}function Oi(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Ni(e){return e}qi.propTypes={defaultTheme:ki.object,styles:ki.oneOfType([ki.array,ki.string,ki.object,ki.func])};var _i=Object.freeze({__proto__:null,GlobalStyles:qi,StyledEngineProvider:Ti,ThemeContext:bi,css:wi,default:Li,internal_mutateStyles:Oi,internal_processStyles:function(e,t){return Oi(e,t)},internal_serializeStyles:Ni,keyframes:Ai});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(P.isValidElement(e)||!ji(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=zi(e[r])})),t}function Fi(e,t,r={clone:!0}){const n=r.clone?jr({},e):e;return ji(e)&&ji(t)&&Object.keys(t).forEach((o=>{P.isValidElement(t[o])?n[o]=t[o]:ji(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ji(e[o])?n[o]=Fi(e[o],t[o],r):r.clone?n[o]=ji(t[o])?zi(t[o]):t[o]:n[o]=t[o]})),n}var Hi=Object.freeze({__proto__:null,default:Fi,isPlainObject:ji});const $i=["values","unit","step"];function Bi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=zr(e,$i),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)=>jr({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return jr({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(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]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const Vi={borderRadius:4};function Wi(e,t){return t?Fi(e,t,{clone:!1}):e}const Ui={xs:0,sm:600,md:900,lg:1200,xl:1536},Gi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ui[e]}px)`};function Yi(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Gi;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Gi;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Ui).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ki(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function Xi(e){if("string"!=typeof e)throw new Error(Or(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ji=Object.freeze({__proto__:null,default:Xi});function Zi(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Qi(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Zi(e,r)||n,t&&(o=t(o,n,e)),o}function ea(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Zi(e.theme,n)||{};return Yi(e,i,(e=>{let n=Qi(a,o,e);return e===n&&"string"==typeof e&&(n=Qi(a,o,`${t}${"default"===e?"":Xi(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const ta={m:"margin",p:"padding"},ra={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},na={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oa=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!na[e])return[e];e=na[e]}const[t,r]=e.split(""),n=ta[t],o=ra[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ia=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function sa(e,t,r,n){var o;const i=null!=(o=Zi(e,t,!1))?o:r;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 la(e){return sa(e,"spacing",8)}function ua(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function ca(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=ua(t,r),e)),{})}(oa(r),n);return Yi(e,e[r],o)}function da(e,t){const r=la(e.theme);return Object.keys(e).map((n=>ca(e,t,n,r))).reduce(Wi,{})}function pa(e){return da(e,ia)}function fa(e){return da(e,aa)}function ma(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Wi(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ha(e){return"number"!=typeof e?e:`${e}px solid`}function ga(e,t){return ea({prop:e,themeKey:"borders",transform:t})}pa.propTypes={},pa.filterProps=ia,fa.propTypes={},fa.filterProps=aa;const ba=ga("border",ha),va=ga("borderTop",ha),ya=ga("borderRight",ha),xa=ga("borderBottom",ha),Sa=ga("borderLeft",ha),wa=ga("borderColor"),Ca=ga("borderTopColor"),Ea=ga("borderRightColor"),Ra=ga("borderBottomColor"),Pa=ga("borderLeftColor"),Aa=ga("outline",ha),Ia=ga("outlineColor"),Ma=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=sa(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:ua(t,e)});return Yi(e,e.borderRadius,r)}return null};Ma.propTypes={},Ma.filterProps=["borderRadius"],ma(ba,va,ya,xa,Sa,wa,Ca,Ea,Ra,Pa,Ma,Aa,Ia);const Da=e=>{if(void 0!==e.gap&&null!==e.gap){const t=sa(e.theme,"spacing",8),r=e=>({gap:ua(t,e)});return Yi(e,e.gap,r)}return null};Da.propTypes={},Da.filterProps=["gap"];const ka=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=sa(e.theme,"spacing",8),r=e=>({columnGap:ua(t,e)});return Yi(e,e.columnGap,r)}return null};ka.propTypes={},ka.filterProps=["columnGap"];const Ta=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=sa(e.theme,"spacing",8),r=e=>({rowGap:ua(t,e)});return Yi(e,e.rowGap,r)}return null};Ta.propTypes={},Ta.filterProps=["rowGap"];function qa(e,t){return"grey"===t?t:e}ma(Da,ka,Ta,ea({prop:"gridColumn"}),ea({prop:"gridRow"}),ea({prop:"gridAutoFlow"}),ea({prop:"gridAutoColumns"}),ea({prop:"gridAutoRows"}),ea({prop:"gridTemplateColumns"}),ea({prop:"gridTemplateRows"}),ea({prop:"gridTemplateAreas"}),ea({prop:"gridArea"}));function La(e){return e<=1&&0!==e?100*e+"%":e}ma(ea({prop:"color",themeKey:"palette",transform:qa}),ea({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qa}),ea({prop:"backgroundColor",themeKey:"palette",transform:qa}));const Oa=ea({prop:"width",transform:La}),Na=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Ui[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:La(t)}};return Yi(e,e.maxWidth,t)}return null};Na.filterProps=["maxWidth"];const _a=ea({prop:"minWidth",transform:La}),ja=ea({prop:"height",transform:La}),za=ea({prop:"maxHeight",transform:La}),Fa=ea({prop:"minHeight",transform:La});ea({prop:"size",cssProperty:"width",transform:La}),ea({prop:"size",cssProperty:"height",transform:La});ma(Oa,Na,_a,ja,za,Fa,ea({prop:"boxSizing"}));const Ha={border:{themeKey:"borders",transform:ha},borderTop:{themeKey:"borders",transform:ha},borderRight:{themeKey:"borders",transform:ha},borderBottom:{themeKey:"borders",transform:ha},borderLeft:{themeKey:"borders",transform:ha},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ha},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ma},color:{themeKey:"palette",transform:qa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qa},backgroundColor:{themeKey:"palette",transform:qa},p:{style:fa},pt:{style:fa},pr:{style:fa},pb:{style:fa},pl:{style:fa},px:{style:fa},py:{style:fa},padding:{style:fa},paddingTop:{style:fa},paddingRight:{style:fa},paddingBottom:{style:fa},paddingLeft:{style:fa},paddingX:{style:fa},paddingY:{style:fa},paddingInline:{style:fa},paddingInlineStart:{style:fa},paddingInlineEnd:{style:fa},paddingBlock:{style:fa},paddingBlockStart:{style:fa},paddingBlockEnd:{style:fa},m:{style:pa},mt:{style:pa},mr:{style:pa},mb:{style:pa},ml:{style:pa},mx:{style:pa},my:{style:pa},margin:{style:pa},marginTop:{style:pa},marginRight:{style:pa},marginBottom:{style:pa},marginLeft:{style:pa},marginX:{style:pa},marginY:{style:pa},marginInline:{style:pa},marginInlineStart:{style:pa},marginInlineEnd:{style:pa},marginBlock:{style:pa},marginBlockStart:{style:pa},marginBlockEnd:{style:pa},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:Da},rowGap:{style:Ta},columnGap:{style:ka},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:La},maxWidth:{style:Na},minWidth:{transform:La},height:{transform:La},maxHeight:{transform:La},minHeight:{transform:La},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function $a(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Zi(r,s)||{};if(u)return u(o);return Yi(o,t,(t=>{let r=Qi(c,l,t);return t===r&&"string"==typeof t&&(r=Qi(c,l,`${e}${"default"===t?"":Xi(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:Ha;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{});return r||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(n).forEach((r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=Wi(u,e(r,o,i,s));else{const e=Yi({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?u=Wi(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=Wi(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":Ki(l,u)}:Ki(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const Ba=$a();function Va(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Ba.filterProps=["sx"];const Wa=["breakpoints","palette","spacing","shape"];function Ua(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=zr(e,Wa),s=Bi(r),l=function(e=8){if(e.mui)return e;const t=la({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Fi({breakpoints:s,direction:"ltr",components:{},palette:jr({mode:"light"},n),spacing:l,shape:jr({},Vi,i)},a);return u.applyStyles=Va,u=t.reduce(((e,t)=>Fi(e,t)),u),u.unstable_sxConfig=jr({},Ha,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ba({sx:e,theme:this})},u}var Ga=Object.freeze({__proto__:null,default:Ua,private_createBreakpoints:Bi,unstable_applyStyles:Va});function Ya(e=null){const t=P.useContext(bi);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Ka=Ua();function Xa(e=Ka){return Ya(e)}function Ja(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Za({styles:e,themeId:t,defaultTheme:r={}}){const n=Xa(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>Ja("function"==typeof e?e(o):e))):Ja(i)),er.jsx(qi,{styles:i})}const Qa=["sx"];function es(e){const{sx:t}=e,r=zr(e,Qa),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Ha;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ji(r)?jr({},n,r):n}:jr({},n,t),jr({},o,{sx:i})}var ts=Object.freeze({__proto__:null,default:Ba,extendSxProp:es,unstable_createStyleFunctionSx:$a,unstable_defaultSxConfig:Ha});const rs=e=>e,ns=(()=>{let e=rs;return{configure(t){e=t},generate:t=>e(t),reset(){e=rs}}})();function os(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=os(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function is(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=os(e))&&(n&&(n+=" "),n+=t);return n}const as=["className","component"];const ss={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 ls(e,t,r="Mui"){const n=ss[t];return n?`${r}-${n}`:`${ns.generate(e)}-${t}`}function us(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ls(e,t,r)})),n}var cs={exports:{}},ds={},ps=Symbol.for("react.transitional.element"),fs=Symbol.for("react.portal"),ms=Symbol.for("react.fragment"),hs=Symbol.for("react.strict_mode"),gs=Symbol.for("react.profiler"),bs=Symbol.for("react.consumer"),vs=Symbol.for("react.context"),ys=Symbol.for("react.forward_ref"),xs=Symbol.for("react.suspense"),Ss=Symbol.for("react.suspense_list"),ws=Symbol.for("react.memo"),Cs=Symbol.for("react.lazy"),Es=Symbol.for("react.offscreen"),Rs=Symbol.for("react.client.reference");function Ps(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ps:switch(e=e.type){case ms:case gs:case hs:case xs:case Ss:return e;default:switch(e=e&&e.$$typeof){case vs:case ys:case Cs:case ws:case bs:return e;default:return t}}case fs:return t}}}ds.ContextConsumer=bs,ds.ContextProvider=vs,ds.Element=ps,ds.ForwardRef=ys,ds.Fragment=ms,ds.Lazy=Cs,ds.Memo=ws,ds.Portal=fs,ds.Profiler=gs,ds.StrictMode=hs,ds.Suspense=xs,ds.SuspenseList=Ss,ds.isContextConsumer=function(e){return Ps(e)===bs},ds.isContextProvider=function(e){return Ps(e)===vs},ds.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ps},ds.isForwardRef=function(e){return Ps(e)===ys},ds.isFragment=function(e){return Ps(e)===ms},ds.isLazy=function(e){return Ps(e)===Cs},ds.isMemo=function(e){return Ps(e)===ws},ds.isPortal=function(e){return Ps(e)===fs},ds.isProfiler=function(e){return Ps(e)===gs},ds.isStrictMode=function(e){return Ps(e)===hs},ds.isSuspense=function(e){return Ps(e)===xs},ds.isSuspenseList=function(e){return Ps(e)===Ss},ds.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ms||e===gs||e===hs||e===xs||e===Ss||e===Es||"object"==typeof e&&null!==e&&(e.$$typeof===Cs||e.$$typeof===ws||e.$$typeof===vs||e.$$typeof===bs||e.$$typeof===ys||e.$$typeof===Rs||void 0!==e.getModuleId)},ds.typeOf=Ps,cs.exports=ds;var As=cs.exports;const Is=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ms(e){const t=`${e}`.match(Is);return t&&t[1]||""}function Ds(e,t=""){return e.displayName||e.name||Ms(e)||t}function ks(e,t,r){const n=Ds(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Ts=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ds(e,"Component");if("object"==typeof e)switch(e.$$typeof){case As.ForwardRef:return ks(e,e.render,"ForwardRef");case As.Memo:return ks(e,e.type,"memo");default:return}}},getFunctionName:Ms});function qs(e,t){const r=jr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=jr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=jr({},i),Object.keys(o).forEach((e=>{r[n][e]=qs(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Ls="undefined"!=typeof window?P.useLayoutEffect:P.useEffect;function Os(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Ns=Object.freeze({__proto__:null,default:Os});function _s(e){if(e.type)return e;if("#"===e.charAt(0))return _s(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Or(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=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(n))throw new Error(Or(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function js(e,t){return e=_s(e),t=function(e,t=0,r=1){return Os(e,t,r)}(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:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function zs(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Fs(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Hs(e){return e&&e.ownerDocument||document}function $s(e){return Hs(e).defaultView||window}function Bs(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Vs=0;const Ws=P["useId".toString()];function Us(e){if(void 0!==Ws){return Ws()}return function(e){const[t,r]=P.useState(e),n=t;return P.useEffect((()=>{null==t&&(Vs+=1,r(`mui-${Vs}`))}),[t]),n}(e)}function Gs({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=P.useRef(void 0!==e),[i,a]=P.useState(t);return[o?e:i,P.useCallback((e=>{o||a(e)}),[])]}function Ys(e){const t=P.useRef(e);return Ls((()=>{t.current=e})),P.useRef(((...e)=>(0,t.current)(...e))).current}function Ks(...e){return P.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Bs(e,t)}))}),e)}const Xs={};const Js=[];class Zs{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Zs}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Qs(){const e=function(e,t){const r=P.useRef(Xs);return r.current===Xs&&(r.current=e(t)),r}(Zs.create).current;return function(e){P.useEffect(e,Js)}(e.disposeEffect),e}let el=!0,tl=!1;const rl=new Zs,nl={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 ol(e){e.metaKey||e.altKey||e.ctrlKey||(el=!0)}function il(){el=!1}function al(){"hidden"===this.visibilityState&&tl&&(el=!0)}function sl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return el||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!nl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function ll(){const e=P.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ol,!0),t.addEventListener("mousedown",il,!0),t.addEventListener("pointerdown",il,!0),t.addEventListener("touchstart",il,!0),t.addEventListener("visibilitychange",al,!0))}),[]),t=P.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!sl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(tl=!0,rl.start(100,(()=>{tl=!1})),t.current=!1,!0)},ref:e}}function ul(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function cl(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function dl(e){return"string"==typeof e}function pl(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function fl(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const ml=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function hl(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=zr(e,ml),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=is(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=jr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=jr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=pl(jr({},o,n)),s=fl(n),l=fl(o),u=t(a),c=is(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=jr({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=jr({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(jr({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||dl(e)?t:jr({},t,{ownerState:jr({},t.ownerState,r)})}(r,jr({},l,{ref:Ks(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function gl(e){var t;return parseInt(P.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const bl=P.createContext(null);function vl(){return P.useContext(bl)}var yl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function xl(e){const{children:t,theme:r}=e,n=vl(),o=P.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return jr({},e,t)}(n,r);return null!=e&&(e[yl]=null!==n),e}),[r,n]);return er.jsx(bl.Provider,{value:o,children:t})}const Sl=["value"],wl=P.createContext();function Cl(e){let{value:t}=e,r=zr(e,Sl);return er.jsx(wl.Provider,jr({value:null==t||t},r))}const El=P.createContext(void 0);function Rl({value:e,children:t}){return er.jsx(El.Provider,{value:e,children:t})}function Pl({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?qs(o.defaultProps,n):o.styleOverrides||o.variants?n:qs(o,n)}({props:e,name:t,theme:{components:P.useContext(El)}})}const Al={};function Il(e,t,r,n=!1){return P.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?jr({},t,{[e]:i}):i;return n?()=>a:a}return jr({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Ml(e){const{children:t,theme:r,themeId:n}=e,o=Ya(Al),i=vl()||Al,a=Il(n,o,r),s=Il(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=Ya(),r=Us()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Ls((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}}),[o,r]),o?er.jsx(Za,{styles:o}):null}(a);return er.jsx(xl,{theme:s,children:er.jsx(bi.Provider,{value:a,children:er.jsx(Cl,{value:l,children:er.jsxs(Rl,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Dl(e){return Dl="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},Dl(e)}function kl(e){var t=function(e,t){if("object"!=Dl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Dl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Dl(t)?t:t+""}function Tl(e,t){return jr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ql,Ll={},Ol={exports:{}};(ql=Ol).exports=function(e){return e&&e.__esModule?e:{default:e}},ql.exports.__esModule=!0,ql.exports.default=ql.exports;var Nl=Ol.exports,_l=Vt(Nr),jl=Vt(Ns),zl=Nl;Object.defineProperty(Ll,"__esModule",{value:!0});var Fl=Ll.alpha=Ql;Ll.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Yl(e),a=Yl(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Xl({type:"rgb",values:s})},Ll.colorChannel=void 0;var Hl=Ll.darken=eu;Ll.decomposeColor=Yl,Ll.emphasize=ru;var $l=Ll.getContrastRatio=function(e,t){const r=Zl(e),n=Zl(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Ll.getLuminance=Zl,Ll.hexToRgb=Gl,Ll.hslToRgb=Jl;var Bl=Ll.lighten=tu;Ll.private_safeAlpha=function(e,t,r){try{return Ql(e,t)}catch(t){return e}},Ll.private_safeColorChannel=void 0,Ll.private_safeDarken=function(e,t,r){try{return eu(e,t)}catch(t){return e}},Ll.private_safeEmphasize=function(e,t,r){try{return ru(e,t)}catch(t){return e}},Ll.private_safeLighten=function(e,t,r){try{return tu(e,t)}catch(t){return e}},Ll.recomposeColor=Xl,Ll.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Yl(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 Vl=zl(_l),Wl=zl(jl);function Ul(e,t=0,r=1){return(0,Wl.default)(e,t,r)}function Gl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Yl(e){if(e.type)return e;if("#"===e.charAt(0))return Yl(Gl(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Vl.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=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(n))throw new Error((0,Vl.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Kl=e=>{const t=Yl(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Ll.colorChannel=Kl;function Xl(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Jl(e){e=Yl(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Xl({type:s,values:l})}function Zl(e){let t="hsl"===(e=Yl(e)).type||"hsla"===e.type?Yl(Jl(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 Ql(e,t){return e=Yl(e),t=Ul(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Xl(e)}function eu(e,t){if(e=Yl(e),t=Ul(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 r=0;r<3;r+=1)e.values[r]*=1-t;return Xl(e)}function tu(e,t){if(e=Yl(e),t=Ul(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Xl(e)}function ru(e,t=.15){return Zl(e)>.5?eu(e,t):tu(e,t)}Ll.private_safeColorChannel=(e,t)=>{try{return Kl(e)}catch(t){return e}};const nu=["mode","contrastThreshold","tonalOffset"],ou={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:tr.white,default:tr.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}},iu={text:{primary:tr.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:tr.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 au(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Bl(e.main,o):"dark"===t&&(e.dark=Hl(e.main,i)))}function su(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=zr(e,nu),i=e.primary||function(e="light"){return"dark"===e?{main:mr,light:fr,dark:hr}:{main:gr,light:hr,dark:br}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:lr,light:sr,dark:cr}:{main:dr,light:ur,dark:pr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:or,light:rr,dark:ir}:{main:ir,light:nr,dark:ar}}(t),l=e.info||function(e="light"){return"dark"===e?{main:yr,light:vr,dark:Sr}:{main:Sr,light:xr,dark:wr}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Er,light:Cr,dark:Pr}:{main:Ar,light:Rr,dark:Ir}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Dr,light:Mr,dark:Tr}:{main:"#ed6c02",light:kr,dark:qr}}(t);function d(e){return $l(e,iu.text.primary)>=r?iu.text.primary:ou.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=jr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Or(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Or(12,t?` (${t})`:"",JSON.stringify(e.main)));return au(e,"light",o,n),au(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:iu,light:ou};return Fi(jr({common:jr({},tr),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:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Lr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const lu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const uu={textTransform:"uppercase"},cu='"Roboto", "Helvetica", "Arial", sans-serif';function du(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=cu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=zr(r,lu),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return jr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===cu?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,uu),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,uu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Fi(jr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function pu(...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 fu=["none",pu(0,2,1,-1,0,1,1,0,0,1,3,0),pu(0,3,1,-2,0,2,2,0,0,1,5,0),pu(0,3,3,-2,0,3,4,0,0,1,8,0),pu(0,2,4,-1,0,4,5,0,0,1,10,0),pu(0,3,5,-1,0,5,8,0,0,1,14,0),pu(0,3,5,-1,0,6,10,0,0,1,18,0),pu(0,4,5,-2,0,7,10,1,0,2,16,1),pu(0,5,5,-3,0,8,10,1,0,3,14,2),pu(0,5,6,-3,0,9,12,1,0,3,16,2),pu(0,6,6,-3,0,10,14,1,0,4,18,3),pu(0,6,7,-4,0,11,15,1,0,4,20,3),pu(0,7,8,-4,0,12,17,2,0,5,22,4),pu(0,7,8,-4,0,13,19,2,0,5,24,4),pu(0,7,9,-4,0,14,21,2,0,5,26,4),pu(0,8,9,-5,0,15,22,2,0,6,28,5),pu(0,8,10,-5,0,16,24,2,0,6,30,5),pu(0,8,11,-5,0,17,26,2,0,6,32,5),pu(0,9,11,-5,0,18,28,2,0,7,34,6),pu(0,9,12,-6,0,19,29,2,0,7,36,6),pu(0,10,13,-6,0,20,31,3,0,8,38,7),pu(0,10,13,-6,0,21,33,3,0,8,40,7),pu(0,10,14,-6,0,22,35,3,0,8,42,7),pu(0,11,14,-7,0,23,36,3,0,9,44,8),pu(0,11,15,-7,0,24,38,3,0,9,46,8)],mu=["duration","easing","delay"],hu={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)"},gu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bu(e){return`${Math.round(e)}ms`}function vu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function yu(e){const t=jr({},hu,e.easing),r=jr({},gu,e.duration);return jr({getAutoHeightDuration:vu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return zr(n,mu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:bu(o)} ${i} ${"string"==typeof a?a:bu(a)}`)).join(",")}},e,{easing:t,duration:r})}const xu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Su=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function wu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=zr(e,Su);if(e.vars&&void 0===e.generateCssVars)throw new Error(Or(18));const s=su(n),l=Ua(e);let u=Fi(l,{mixins:Tl(l.breakpoints,r),palette:s,shadows:fu.slice(),typography:du(s,i),transitions:yu(o),zIndex:jr({},xu)});return u=Fi(u,a),u=t.reduce(((e,t)=>Fi(e,t)),u),u.unstable_sxConfig=jr({},Ha,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ba({sx:e,theme:this})},u}const Cu=wu();function Eu(){const e=Xa(Cu);return e[_r]||e}var Ru,Pu={},Au={exports:{}};function Iu(){return Ru||(Ru=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 r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}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}(Au)),Au.exports}var Mu,Du={exports:{}};function ku(){return Mu||(Mu=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Du)),Du.exports}var Tu=Vt(_i),qu=Vt(Hi),Lu=Vt(Ji),Ou=Vt(Ts),Nu=Vt(Ga),_u=Vt(ts),ju=Nl;Object.defineProperty(Pu,"__esModule",{value:!0});var zu=Pu.default=function(e={}){const{themeId:t,defaultTheme:r=Zu,rootShouldForwardProp:n=Xu,slotShouldForwardProp:o=Xu}=e,i=e=>(0,Wu.default)((0,Fu.default)({},e,{theme:ec((0,Fu.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,$u.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=tc(Qu(l))}=a,p=(0,Hu.default)(a,Yu),f=s&&s.startsWith("Mui")||l?"components":"custom",m=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,h=c||!1;let g=Xu;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,$u.default)(e,(0,Fu.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Bu.isPlainObject)(e)?n=>{const o=ec({theme:n.theme,defaultTheme:r,themeId:t});return rc(e,(0,Fu.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(n,...o)=>{let a=v(n);const l=o?o.map(v):[];s&&d&&l.push((e=>{const n=ec((0,Fu.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=rc(r,(0,Fu.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!m&&l.push((e=>{var n;const o=ec((0,Fu.default)({},e,{defaultTheme:r,themeId:t}));return rc({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Fu.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),h||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=b(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return b.withConfig&&(y.withConfig=b.withConfig),y}};Pu.shouldForwardProp=Xu,Pu.systemDefaultTheme=void 0;var Fu=ju(Iu()),Hu=ju(ku()),$u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Ku(t);if(r&&r.has(e))return r.get(e);var n={__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(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Tu),Bu=qu;ju(Lu),ju(Ou);var Vu=ju(Nu),Wu=ju(_u);const Uu=["ownerState"],Gu=["variants"],Yu=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ku(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Ku=function(e){return e?r:t})(e)}function Xu(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Ju(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Zu=Pu.systemDefaultTheme=(0,Vu.default)(),Qu=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ec({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function tc(e){return e?(t,r)=>r[e]:null}function rc(e,t,r){let{ownerState:n}=t,o=(0,Hu.default)(t,Uu);const i="function"==typeof e?e((0,Fu.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>rc(e,(0,Fu.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Hu.default)(i,Gu);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Fu.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Fu.default)({ownerState:n},o,n)):e.style;t.push(r?Ju((0,$u.internal_serializeStyles)(i),r):i)}})),t}return r?Ju((0,$u.internal_serializeStyles)(i),r):i}function nc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const oc=e=>nc(e)&&"classes"!==e,ic=zu({themeId:_r,defaultTheme:Cu,rootShouldForwardProp:oc}),ac=["theme"];function sc(e){let{theme:t}=e,r=zr(e,ac);const n=t[_r];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=jr({},n,{vars:null}):t&&!t.vars&&(o=jr({},t,{vars:null}))),er.jsx(Ml,jr({},r,{themeId:n?_r:void 0,theme:o}))}const lc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function uc(e){return Pl(e)}function cc(e){return ls("MuiSvgIcon",e)}us("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],pc=ic("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Xi(r.color)}`],t[`fontSize${Xi(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"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==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,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==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),fc=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=zr(r,dc),f=P.isValidElement(n)&&"svg"===n.type,m=jr({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return cl({root:["root","inherit"!==t&&`color${Xi(t)}`,`fontSize${Xi(r)}`]},cc,n)})(m);return er.jsxs(pc,jr({as:a,className:is(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?er.jsx("title",{children:c}):null]}))}));function mc(e,t){return mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mc(e,t)}function hc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mc(e,t)}fc.muiName="SvgIcon";var gc=!1,bc=x.createContext(null),vc="unmounted",yc="exited",xc="entering",Sc="entered",wc="exiting",Cc=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=yc,n.appearStatus=xc):o=Sc:o=t.unmountOnExit||t.mountOnEnter?vc:yc,n.state={status:o},n.nextCallback=null,n}hc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===vc?{status:yc}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==xc&&r!==Sc&&(t=xc):r!==xc&&r!==Sc||(t=wc)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yc&&this.setState({status:vc})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[F.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||gc?this.safeSetState({status:Sc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:xc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Sc},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:F.findDOMNode(this);t&&!gc?(this.props.onExit(n),this.safeSetState({status:wc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:yc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:yc},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===vc)return null;var t=this.props,r=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 n=zr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(bc.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Ec(){}function Rc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pc(e,t){var r=Object.create(null);return e&&M.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&A(e)?t(e):e}(e)})),r}function Ac(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Ic(e,t,r){var n=Pc(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,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(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(A(a)){var s=i in t,l=i in n,u=t[i],c=A(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&A(u)&&(o[i]=I(a,{onExited:r.bind(null,a),in:u.props.in,exit:Ac(a,"exit",e),enter:Ac(a,"enter",e)})):o[i]=I(a,{in:!1}):o[i]=I(a,{onExited:r.bind(null,a),in:!0,exit:Ac(a,"exit",e),enter:Ac(a,"enter",e)})}})),o}Cc.contextType=bc,Cc.propTypes={},Cc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ec,onEntering:Ec,onEntered:Ec,onExit:Ec,onExiting:Ec,onExited:Ec},Cc.UNMOUNTED=vc,Cc.EXITED=yc,Cc.ENTERING=xc,Cc.ENTERED=Sc,Cc.EXITING=wc;var Mc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Dc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Rc(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}hc(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Pc(r.children,(function(e){return I(e,{onExited:n.bind(null,e),in:!0,appear:Ac(e,"appear",r),enter:Ac(e,"enter",r),exit:Ac(e,"exit",r)})}))):Ic(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Pc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=jr({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=zr(e,["component","childFactory"]),o=this.state.contextValue,i=Mc(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(bc.Provider,{value:o},i):x.createElement(bc.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);Dc.propTypes={},Dc.defaultProps={component:"div",childFactory:function(e){return e}};const kc=e=>e.scrollTop;function Tc(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function qc(e){return ls("MuiPaper",e)}us("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 Lc=["className","component","elevation","square","variant"],Oc=ic("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return jr({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&&jr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Fl("#fff",lc(t.elevation))}, ${Fl("#fff",lc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Nc=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=zr(r,Lc),u=jr({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return cl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},qc,o)})(u);return er.jsx(Oc,jr({as:o,ownerState:u,className:is(c.root,n),ref:t},l))}));const _c=us("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),jc=["center","classes","className"];let zc,Fc,Hc,$c,Bc=e=>e;const Vc=Ai(zc||(zc=Bc`
30
18
  0% {
31
19
  transform: scale(0);
32
20
  opacity: 0.1;
@@ -36,7 +24,7 @@ function gp(e,t){let r;return r=t?dp(e).withConfig({displayName:t.label,shouldFo
36
24
  transform: scale(1);
37
25
  opacity: 0.3;
38
26
  }
39
- `)),pb=fp(sb||(sb=cb`
27
+ `)),Wc=Ai(Fc||(Fc=Bc`
40
28
  0% {
41
29
  opacity: 1;
42
30
  }
@@ -44,7 +32,7 @@ function gp(e,t){let r;return r=t?dp(e).withConfig({displayName:t.label,shouldFo
44
32
  100% {
45
33
  opacity: 0;
46
34
  }
47
- `)),fb=fp(lb||(lb=cb`
35
+ `)),Uc=Ai(Hc||(Hc=Bc`
48
36
  0% {
49
37
  transform: scale(1);
50
38
  }
@@ -56,7 +44,7 @@ function gp(e,t){let r;return r=t?dp(e).withConfig({displayName:t.label,shouldFo
56
44
  100% {
57
45
  transform: scale(1);
58
46
  }
59
- `)),hb=Mg("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),mb=Mg((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=S.useState(!1),p=Dg(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Dg(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),S.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),Ll.jsx("span",{className:p,style:f,children:Ll.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(ub||(ub=cb`
47
+ `)),Gc=ic("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Yc=ic((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=P.useState(!1),p=is(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=is(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),P.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),er.jsx("span",{className:p,style:f,children:er.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})($c||($c=Bc`
60
48
  opacity: 0;
61
49
  position: absolute;
62
50
 
@@ -99,9 +87,19 @@ function gp(e,t){let r;return r=t?dp(e).withConfig({displayName:t.label,shouldFo
99
87
  animation-iteration-count: infinite;
100
88
  animation-delay: 200ms;
101
89
  }
102
- `),ob.rippleVisible,db,550,(({theme:e})=>e.transitions.easing.easeInOut),ob.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ob.child,ob.childLeaving,pb,550,(({theme:e})=>e.transitions.easing.easeInOut),ob.childPulsate,fb,(({theme:e})=>e.transitions.easing.easeInOut)),gb=S.forwardRef((function(e,t){const r=Tg({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Pu(r,ib),[s,l]=S.useState([]),u=S.useRef(0),c=S.useRef(null);S.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=S.useRef(!1),p=_h(),f=S.useRef(null),h=S.useRef(null),m=S.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,Ll.jsx(mb,{classes:{ripple:Dg(o.ripple,ob.ripple),rippleVisible:Dg(o.rippleVisible,ob.rippleVisible),ripplePulsate:Dg(o.ripplePulsate,ob.ripplePulsate),child:Dg(o.child,ob.child),childLeaving:Dg(o.childLeaving,ob.childLeaving),childPulsate:Dg(o.childPulsate,ob.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=S.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m,p]),b=S.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=S.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return S.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ll.jsx(hb,Au({className:Dg(ob.root,o.root,i),ref:h},a,{children:Ll.jsx(Jg,{component:null,exit:!0,children:s})}))}));function bb(e){return Hf("MuiButtonBase",e)}const vb=Wf("MuiButtonBase",["root","disabled","focusVisible"]),yb=["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"],xb=Mg("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"},[`&.${vb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Sb=S.forwardRef((function(e,t){const r=Tg({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:C,onMouseLeave:w,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:k=0,TouchRippleProps:M,touchRippleRef:I,type:L}=r,D=Pu(r,yb),T=S.useRef(null),_=S.useRef(null),O=Ih(_,I),{isFocusVisibleRef:q,onFocus:N,onBlur:j,ref:z}=Hh(),[F,$]=S.useState(!1);l&&F&&$(!1),S.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[B,H]=S.useState(!1);S.useEffect((()=>{H(!0)}),[]);const W=B&&!u&&!l;function V(e,t,r=c){return Mh((n=>{t&&t(n);return!r&&_.current&&_.current[e](n),!0}))}S.useEffect((()=>{F&&d&&!u&&B&&_.current.pulsate()}),[u,d,F,B]);const G=V("start",C),U=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),J=V("start",P),Z=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{j(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Mh((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=S.useRef(!1),oe=Mh((e=>{d&&!ne.current&&F&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=Mh((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(D.href||D.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===L?"button":L,se.disabled=l):(D.href||D.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Ih(t,z,T),ue=Au({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Vh({root:["root",t&&"disabled",r&&"focusVisible"]},bb,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Ll.jsxs(xb,Au({as:ae,className:Dg(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:k,type:L},se,D,{children:[i,W?Ll.jsx(gb,Au({ref:O,center:o},M)):null]}))}));function Cb(e){return Hf("MuiTypography",e)}Wf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const wb=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Eb=Mg("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Lp(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Au({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}))),Rb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ab={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Pb=S.forwardRef((function(e,t){const r=Tg({props:e,name:"MuiTypography"}),n=(e=>Ab[e]||e)(r.color),o=Of(Au({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Rb}=o,f=Pu(o,wb),h=Au({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Rb[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Vh({root:["root",i,"inherit"!==e.align&&`align${Lp(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Cb,a)})(h);return Ll.jsx(Eb,Au({as:m,ref:t,ownerState:h,className:Dg(g.root,a)},f))}));const kb=S.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=S.useState(null),s=Ih(S.isValidElement(r)?Jh(r):null,t);if(mh((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),mh((()=>{if(i&&!o)return Eh(t,i),()=>{Eh(t,null)}}),[t,i,o]),o){if(S.isValidElement(r)){const e={ref:s};return S.cloneElement(r,e)}return Ll.jsx(S.Fragment,{children:r})}return Ll.jsx(S.Fragment,{children:i?$.createPortal(r,i):i})})),Mb=["onChange","maxRows","minRows","style","value"];function Ib(e){return parseInt(e,10)||0}const Lb={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Db(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Tb=S.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Pu(e,Mb),{current:l}=S.useRef(null!=a),u=S.useRef(null),c=Ih(t,u),d=S.useRef(null),p=S.useRef(null),f=S.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=wh(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=Ib(i.paddingBottom)+Ib(i.paddingTop),l=Ib(i.borderBottomWidth)+Ib(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),h=Mh((()=>{const e=u.current,t=f();if(!e||!t||Db(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),m=S.useCallback((()=>{const e=u.current,t=f();if(!e||!t||Db(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),g=S.useRef(-1);mh((()=>{const e=Sh(m),t=null==u?void 0:u.current;if(!t)return;const r=wh(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[f,m,h]),mh((()=>{m()}));return Ll.jsxs(S.Fragment,{children:[Ll.jsx("textarea",Au({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),Ll.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Au({},Lb,i,{paddingTop:0,paddingBottom:0})})]})}));function _b({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const Ob=S.createContext(void 0);function qb(){return S.useContext(Ob)}function Nb(e){return Ll.jsx(Tf,Au({},e,{defaultTheme:Xm,themeId:Ru}))}function jb(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function zb(e,t=!1){return e&&(jb(e.value)&&""!==e.value||t&&jb(e.defaultValue)&&""!==e.defaultValue)}function Fb(e){return Hf("MuiInputBase",e)}const $b=Wf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Bb=["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"],Hb=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Lp(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Wb=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Vb=Mg("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Hb})((({theme:e,ownerState:t})=>Au({},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",[`&.${$b.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Au({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Gb=Mg("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Wb})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Au({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Au({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${$b.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},[`&.${$b.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"})})),Ub=Ll.jsx(Nb,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Yb=S.forwardRef((function(e,t){var r;const n=Tg({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:C=!1,name:w,onBlur:E,onChange:R,onClick:A,onFocus:P,onKeyDown:k,onKeyUp:M,placeholder:I,readOnly:L,renderSuffix:D,rows:T,slotProps:_={},slots:O={},startAdornment:q,type:N="text",value:j}=n,z=Pu(n,Bb),F=null!=b.value?b.value:j,{current:$}=S.useRef(null!=F),B=S.useRef(),H=S.useCallback((e=>{}),[]),W=Ih(B,v,b.ref,H),[V,G]=S.useState(!1),U=qb(),Y=_b({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:V,S.useEffect((()=>{!U&&d&&V&&(G(!1),E&&E())}),[U,d,V,E]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=S.useCallback((e=>{zb(e)?K&&K():X&&X()}),[K,X]);mh((()=>{$&&J({value:F})}),[F,J,$]);S.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;C&&"input"===Z&&(Q=Au(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:y,minRows:x},Q),Z=Tb);S.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=Au({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:C,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Vh({root:["root",`color${Lp(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Lp(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Fb,t)})(ee),re=O.root||l.Root||Vb,ne=_.root||u.root||{},oe=O.input||l.Input||Gb;return Q=Au({},Q,null!=(r=_.input)?r:u.input),Ll.jsxs(S.Fragment,{children:[!p&&Ub,Ll.jsxs(re,Au({},ne,!Gh(re)&&{ownerState:Au({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},z,{className:Dg(te.root,ne.className,s,L&&"MuiInputBase-readOnly"),children:[q,Ll.jsx(Ob.Provider,{value:null,children:Ll.jsx(oe,Au({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:I,readOnly:L,required:Y.required,rows:T,value:F,onKeyDown:k,onKeyUp:M,type:N},Q,!Gh(oe)&&{as:Z,ownerState:Au({},ee,Q.ownerState)},{ref:W,className:Dg(te.input,Q.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(wu(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,D?D(Au({},Y,{startAdornment:q})):null]}))]})}));function Kb(e){return Hf("MuiInput",e)}const Xb=Au({},$b,Wf("MuiInput",["root","underline","input"]));function Jb(e){return Hf("MuiOutlinedInput",e)}const Zb=Au({},$b,Wf("MuiOutlinedInput",["root","notchedOutline","input"]));function Qb(e){return Hf("MuiFilledInput",e)}const ev=Au({},$b,Wf("MuiFilledInput",["root","underline","input"]));var tv=function(e,t){function r(r,n){return Ll.jsx(Ng,Au({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Ng.muiName,S.memo(S.forwardRef(r))}(Ll.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const rv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],nv={entering:{opacity:1},entered:{opacity:1}},ov=S.forwardRef((function(e,t){const r=Jm(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=Vg}=e,v=Pu(e,rv),y=S.useRef(null),x=Ih(y,Jh(a),t),C=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},w=C(d),E=C(((e,t)=>{Zg(e);const n=Qg({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=C(c),A=C(h),P=C((e=>{const t=Qg({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),k=C(f);return Ll.jsx(b,Au({appear:i,in:l,nodeRef:y,onEnter:E,onEntered:R,onEntering:w,onExit:P,onExited:k,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>S.cloneElement(a,Au({style:Au({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},nv[e],m,a.props.style),ref:x},t))}))}));function iv(e){return Hf("MuiBackdrop",e)}Wf("MuiBackdrop",["root","invisible"]);const av=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],sv=Mg("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Au({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"}))),lv=S.forwardRef((function(e,t){var r,n,o;const i=Tg({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=ov,transitionDuration:g}=i,b=Pu(i,av),v=Au({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Vh({root:["root",r&&"invisible"]},iv,t)})(v),x=null!=(r=f.root)?r:c.root;return Ll.jsx(m,Au({in:p,timeout:g},b,{children:Ll.jsx(sv,Au({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:Dg(y.root,s,null==x?void 0:x.className),ownerState:Au({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),uv=Wf("MuiBox",["root"]),cv=Km(),dv=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=gp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Rf);return S.forwardRef((function(e,a){const s=Df(r),l=Of(e),{className:u,component:c="div"}=l,d=vo(l,$f);return Ll.jsx(i,lo({as:c,ref:a,className:Ff(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Ru,defaultTheme:cv,defaultClassName:uv.root,generateClassName:jf.generate});function pv(e){return Hf("MuiButton",e)}const fv=Wf("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"]),hv=S.createContext({}),mv=S.createContext(void 0),gv=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],bv=e=>Au({},"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}}),vv=Mg(Sb,{shouldForwardProp:e=>kg(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Lp(r.color)}`],t[`size${Lp(r.size)}`],t[`${r.variant}Size${Lp(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Au({},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":Au({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:fm(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})`:fm(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})`:fm(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":Au({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${fv.focusVisible}`]:Au({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${fv.disabled}`]:Au({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 ${fm(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${fv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fv.disabled}`]:{boxShadow:"none"}})),yv=Mg("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Lp(r.size)}`]]}})((({ownerState:e})=>Au({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},bv(e)))),xv=Mg("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Lp(r.size)}`]]}})((({ownerState:e})=>Au({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},bv(e)))),Sv=S.forwardRef((function(e,t){const r=S.useContext(hv),n=S.useContext(mv),o=Tg({props:hh(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Pu(o,gv),x=Au({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),C=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Au({},a,Vh({root:["root",i,`${i}${Lp(t)}`,`size${Lp(o)}`,`${i}Size${Lp(o)}`,`color${Lp(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Lp(o)}`],endIcon:["icon","endIcon",`iconSize${Lp(o)}`]},pv,a))})(x),w=g&&Ll.jsx(yv,{className:C.startIcon,ownerState:x,children:g}),E=p&&Ll.jsx(xv,{className:C.endIcon,ownerState:x,children:p}),R=n||"";return Ll.jsxs(vv,Au({ownerState:x,className:Dg(r.className,C.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Dg(C.focusVisible,f),ref:t,type:b},y,{classes:C,children:[w,i,E]}))}));function Cv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wv(e){return parseInt(wh(e).getComputedStyle(e).paddingRight,10)||0}function Ev(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Cv(e,o)}))}function Rv(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Av(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Ch(e);return t.body===e?wh(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Wh(Ch(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${wv(n)+e}px`;const t=Ch(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${wv(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Ch(n).body;else{const t=n.parentElement,r=wh(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const Pv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kv(e){const t=[],r=[];return Array.from(e.querySelectorAll(Pv)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Mv(){return!0}function Iv(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=kv,isEnabled:a=Mv,open:s}=e,l=S.useRef(!1),u=S.useRef(null),c=S.useRef(null),d=S.useRef(null),p=S.useRef(null),f=S.useRef(!1),h=S.useRef(null),m=Ih(Jh(t),h),g=S.useRef(null);S.useEffect((()=>{s&&h.current&&(f.current=!r)}),[r,s]),S.useEffect((()=>{if(!s||!h.current)return;const e=Ch(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]),S.useEffect((()=>{if(!s||!h.current)return;const e=Ch(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ll.jsxs(S.Fragment,{children:[Ll.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Ll.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Lv=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Cv(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ev(t,e.mount,e.modalRef,n,!0);const o=Rv(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Rv(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Av(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Rv(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Cv(e.modalRef,t),Ev(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Cv(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Dv(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Lv,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=S.useRef({}),f=S.useRef(null),h=S.useRef(null),m=Ih(h,d),[g,b]=S.useState(!c),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),C=()=>{o.mount(x(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},w=Mh((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ch(f.current).body;o.add(x(),e),h.current&&C()})),E=S.useCallback((()=>o.isTopModal(x())),[o]),R=Mh((e=>{f.current=e,e&&(c&&E()?C():h.current&&Cv(h.current,y))})),A=S.useCallback((()=>{o.remove(x(),y)}),[y,o]);S.useEffect((()=>()=>{A()}),[A]),S.useEffect((()=>{c?w():v&&i||A()}),[c,A,v,i,w]);const P=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Uh(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Au({},r,t);return Au({role:"presentation"},n,{onKeyDown:P(n),ref:m})},getBackdropProps:(e={})=>Au({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:xh((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:xh((()=>{b(!0),s&&s(),i&&A()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function Tv(e){return Hf("MuiModal",e)}Wf("MuiModal",["root","hidden","backdrop"]);const _v=["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"],Ov=Mg("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Au({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),qv=Mg(lv,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Nv=S.forwardRef((function(e,t){var r,n,o,i,a,s;const l=Tg({name:"MuiModal",props:e}),{BackdropComponent:u=qv,BackdropProps:c,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:C=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:k,slotProps:M,slots:I}=l,L=Pu(l,_v),D=Au({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:C,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:R,keepMounted:A}),{getRootProps:T,getBackdropProps:_,getTransitionProps:O,portalRef:q,isTopModal:N,exited:j,hasTransition:z}=Dv(Au({},D,{rootRef:t})),F=Au({},D,{exited:j}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Vh({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Tv,n)})(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!=(r=null!=(n=null==I?void 0:I.root)?n:g.Root)?r:Ov,W=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==M?void 0:M.root)?a:b.root,G=null!=(s=null==M?void 0:M.backdrop)?s:b.backdrop,U=Xh({elementType:H,externalSlotProps:V,externalForwardedProps:L,getSlotProps:T,additionalProps:{ref:t,as:m},ownerState:F,className:Dg(d,null==V?void 0:V.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),Y=Xh({elementType:W,externalSlotProps:G,additionalProps:c,getSlotProps:e=>_(Au({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Dg(null==G?void 0:G.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:F});return A||k||z&&!j?Ll.jsx(kb,{ref:q,container:h,disablePortal:C,children:Ll.jsxs(H,Au({},U,{children:[!R&&u?Ll.jsx(W,Au({},Y)):null,Ll.jsx(Iv,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:N,open:k,children:S.cloneElement(f,B)})]}))}):null}));function jv(e){return Hf("MuiDivider",e)}const zv=Wf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Fv=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$v=Mg("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Au({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)`:fm(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})=>Au({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Au({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>Au({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>Au({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Bv=Mg("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Au({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)`}))),Hv=S.forwardRef((function(e,t){const r=Tg({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Pu(r,Fv),h=Au({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Vh({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},jv,n)})(h);return Ll.jsx($v,Au({as:a,className:Dg(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Ll.jsx(Bv,{className:m.wrapper,ownerState:h,children:o}):null}))}));Hv.muiSkipListHighlight=!0;const Wv=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Vv=Mg(Vb,{shouldForwardProp:e=>kg(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Hb(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Au({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}},[`&.${ev.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ev.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ev.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ev.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(.${ev.disabled}, .${ev.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ev.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Au({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}))})),Gv=Mg(Gb,{name:"MuiFilledInput",slot:"Input",overridesResolver:Wb})((({theme:e,ownerState:t})=>Au({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}))),Uv=S.forwardRef((function(e,t){var r,n,o,i;const a=Tg({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Pu(a,Wv),g=Au({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Au({},t,Vh({root:["root",!r&&"underline"],input:["input"]},Qb,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Cp(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Vv,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Gv;return Ll.jsx(Yb,Au({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Uv.muiName="Input";const Yv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Kv(e){return`scale(${e}, ${e**2})`}const Xv={entering:{opacity:1,transform:Kv(1)},entered:{opacity:1,transform:"none"}},Jv="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Zv=S.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Vg}=e,g=Pu(e,Yv),b=_h(),v=S.useRef(),y=Jm(),x=S.useRef(null),C=Ih(x,Jh(o),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},E=w(u),R=w(((e,t)=>{Zg(e);const{duration:r,delay:n,easing:o}=Qg({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Jv?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),A=w(l),P=w(p),k=w((e=>{const{duration:t,delay:r,easing:n}=Qg({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:r}),y.transitions.create("transform",{duration:Jv?o:.666*o,delay:Jv?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Kv(.75),c&&c(e)})),M=w(d);return Ll.jsx(m,Au({appear:n,in:a,nodeRef:x,onEnter:R,onEntered:A,onEntering:E,onExit:k,onExited:M,onExiting:P,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>S.cloneElement(o,Au({style:Au({opacity:0,transform:Kv(.75),visibility:"exited"!==e||a?void 0:"hidden"},Xv[e],f,o.props.style),ref:C},t))}))}));Zv.muiSupportAuto=!0;const Qv=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ey=Mg(Vb,{shouldForwardProp:e=>kg(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Hb(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Au({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"},[`&.${Xb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xb.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xb.disabled}, .${Xb.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Xb.disabled}:before`]:{borderBottomStyle:"dotted"}})})),ty=Mg(Gb,{name:"MuiInput",slot:"Input",overridesResolver:Wb})({}),ry=S.forwardRef((function(e,t){var r,n,o,i;const a=Tg({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Pu(a,Qv),b=(e=>{const{classes:t,disableUnderline:r}=e;return Au({},t,Vh({root:["root",!r&&"underline"],input:["input"]},Kb,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Cp(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:ey,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:ty;return Ll.jsx(Yb,Au({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function ny(e){return Hf("MuiLink",e)}ry.muiName="Input";const oy=Wf("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),iy={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ay=({theme:e,ownerState:t})=>{const r=(e=>iy[e]||e)(t.color),n=Tp(e,`palette.${r}`,!1)||t.color,o=Tp(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:fm(n,.4)},sy=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ly=Mg(Pb,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Lp(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Au({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Au({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:ay({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"},[`&.${oy.focusVisible}`]:{outline:"auto"}}))),uy=S.forwardRef((function(e,t){const r=Tg({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=Pu(r,sy),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=Hh(),[b,v]=S.useState(!1),y=Ih(t,g),x=Au({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),C=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Vh({root:["root",`underline${Lp(o)}`,"button"===r&&"button",n&&"focusVisible"]},ny,t)})(x);return Ll.jsx(ly,Au({color:o,className:Dg(C.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(iy).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),cy=S.createContext({});function dy(e){return Hf("MuiList",e)}Wf("MuiList",["root","padding","dense","subheader"]);const py=["children","className","component","dense","disablePadding","subheader"],fy=Mg("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>Au({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),hy=S.forwardRef((function(e,t){const r=Tg({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Pu(r,py),c=S.useMemo((()=>({dense:a})),[a]),d=Au({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Vh({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},dy,t)})(d);return Ll.jsx(cy.Provider,{value:c,children:Ll.jsxs(fy,Au({as:i,className:Dg(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function my(e){return Hf("MuiListItemIcon",e)}const gy=Wf("MuiListItemIcon",["root","alignItemsFlexStart"]),by=["className"],vy=Mg("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Au({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),yy=S.forwardRef((function(e,t){const r=Tg({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Pu(r,by),i=Au({},r,{alignItems:S.useContext(cy).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Vh({root:["root","flex-start"===t&&"alignItemsFlexStart"]},my,r)})(i);return Ll.jsx(vy,Au({className:Dg(a.root,n),ownerState:i,ref:t},o))})),xy=Wf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Sy=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Cy(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function wy(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Ey(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Ry(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Ey(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Ay=S.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Pu(e,Sy),p=S.useRef(null),f=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});mh((()=>{n&&p.current.focus()}),[n]),S.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${Wh(Ch(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=Ih(p,t);let m=-1;S.Children.forEach(i,((e,t)=>{S.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=S.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),S.cloneElement(e,t)}return e}));return Ll.jsx(hy,Au({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Ch(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Ry(t,n,l,s,Cy);else if("ArrowUp"===r)e.preventDefault(),Ry(t,n,l,s,wy);else if("Home"===r)e.preventDefault(),Ry(t,null,l,s,Cy);else if("End"===r)e.preventDefault(),Ry(t,null,l,s,wy);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&Ey(n,o);o.previousKeyMatched&&(l||Ry(t,n,!1,s,Cy,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Py(e){return Hf("MuiPopover",e)}Wf("MuiPopover",["root","paper"]);const ky=["onEntering"],My=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Iy=["slotProps"];function Ly(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Dy(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Ty(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function _y(e){return"function"==typeof e?e():e}const Oy=Mg(Nv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qy=Mg(nb,{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}),Ny=S.forwardRef((function(e,t){var r,n,o;const i=Tg({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:C=Zv,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,A=Pu(i.TransitionProps,ky),P=Pu(i,My),k=null!=(r=null==y?void 0:y.paper)?r:b,M=S.useRef(),I=Ih(M,k.ref),L=Au({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:C,transitionDuration:w,TransitionProps:A}),D=(e=>{const{classes:t}=e;return Vh({root:["root"],paper:["paper"]},Py,t)})(L),T=S.useCallback((()=>{if("anchorPosition"===c)return u;const e=_y(s),t=(e&&1===e.nodeType?e:Ch(M.current).body).getBoundingClientRect();return{top:t.top+Ly(t,l.vertical),left:t.left+Dy(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),_=S.useCallback((e=>({vertical:Ly(e,x.vertical),horizontal:Dy(e,x.horizontal)})),[x.horizontal,x.vertical]),O=S.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=_(t);if("none"===c)return{top:null,left:null,transformOrigin:Ty(r)};const n=T();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=wh(_y(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Ty(r)}}),[s,c,T,_,m]),[q,N]=S.useState(g),j=S.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,N(!0)}),[O]);S.useEffect((()=>(R&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[s,R,j]);S.useEffect((()=>{g&&j()})),S.useImperativeHandle(a,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),S.useEffect((()=>{if(!g)return;const e=Sh((()=>{j()})),t=wh(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,j]);let z=w;"auto"!==w||C.muiSupportAuto||(z=void 0);const F=f||(s?Ch(_y(s)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:Oy,B=null!=(o=null==v?void 0:v.paper)?o:qy,H=Xh({elementType:B,externalSlotProps:Au({},k,{style:q?k.style:Au({},k.style,{opacity:0})}),additionalProps:{elevation:h,ref:I},ownerState:L,className:Dg(D.paper,null==k?void 0:k.className)}),W=Xh({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:L,className:Dg(D.root,p)}),{slotProps:V}=W,G=Pu(W,Iy);return Ll.jsx($,Au({},G,!Gh($)&&{slotProps:V,disableScrollLock:R},{children:Ll.jsx(C,Au({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),j()},onExited:()=>{N(!1)},timeout:z},A,{children:Ll.jsx(B,Au({},H,{children:d}))}))}))}));function jy(e){return Hf("MuiMenu",e)}Wf("MuiMenu",["root","paper","list"]);const zy=["onEntering"],Fy=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],$y={vertical:"top",horizontal:"right"},By={vertical:"top",horizontal:"left"},Hy=Mg(Ny,{shouldForwardProp:e=>kg(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wy=Mg(qy,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Vy=Mg(Ay,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Gy=S.forwardRef((function(e,t){var r,n;const o=Tg({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Pu(o.TransitionProps,zy),x=Pu(o,Fy),C=(()=>{const e=S.useContext(rm);return null!=e&&e})(),w=Au({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),E=(e=>{const{classes:t}=e;return Vh({root:["root"],paper:["paper"],list:["list"]},jy,t)})(w),R=i&&!l&&d,A=S.useRef(null);let P=-1;S.Children.map(a,((e,t)=>{S.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const k=null!=(r=b.paper)?r:Wy,M=null!=(n=v.paper)?n:p,I=Xh({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[E.root,s]}),L=Xh({elementType:k,externalSlotProps:M,ownerState:w,className:E.paper});return Ll.jsx(Hy,Au({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?$y:By,slots:{paper:k,root:b.root},slotProps:{root:I,paper:L},open:d,ref:t,transitionDuration:h,TransitionProps:Au({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:Ll.jsx(Vy,Au({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===P||l),autoFocusItem:R,variant:g},u,{className:Dg(E.list,u.className),children:a}))}))}));function Uy(e){return Hf("MuiMenuItem",e)}const Yy=Wf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ky=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Xy=Mg(Sb,{shouldForwardProp:e=>kg(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Au({},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"}},[`&.${Yy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fm(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Yy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:fm(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Yy.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:fm(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})`:fm(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Yy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zv.inset}`]:{marginLeft:52},[`& .${xy.root}`]:{marginTop:0,marginBottom:0},[`& .${xy.inset}`]:{paddingLeft:36},[`& .${gy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Au({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${gy.root} svg`]:{fontSize:"1.25rem"}})))),Jy=S.forwardRef((function(e,t){const r=Tg({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Pu(r,Ky),f=S.useContext(cy),h=S.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=S.useRef(null);mh((()=>{n&&m.current&&m.current.focus()}),[n]);const g=Au({},r,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Au({},a,Vh({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Uy,a))})(r),v=Ih(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),Ll.jsx(cy.Provider,{value:h,children:Ll.jsx(Xy,Au({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Dg(b.focusVisible,l),className:Dg(b.root,d)},p,{ownerState:g,classes:b}))})}));function Zy(e){return Hf("MuiNativeSelect",e)}const Qy=Wf("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ex=["className","disabled","error","IconComponent","inputRef","variant"],tx=({ownerState:e,theme:t})=>Au({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Au({},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"},[`&.${Qy.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}}),rx=Mg("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:kg,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Qy.multiple}`]:t.multiple}]}})(tx),nx=({ownerState:e,theme:t})=>Au({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Qy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ox=Mg("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Lp(r.variant)}`],r.open&&t.iconOpen]}})(nx),ix=S.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Pu(e,ex),u=Au({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Vh({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Lp(r)}`,i&&"iconOpen",n&&"disabled"]},Zy,t)})(u);return Ll.jsxs(S.Fragment,{children:[Ll.jsx(rx,Au({ownerState:u,className:Dg(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:Ll.jsx(ox,{as:i,ownerState:u,className:c.icon})]})}));var ax;const sx=["children","classes","className","label","notched"],lx=Mg("fieldset",{shouldForwardProp:kg})({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%"}),ux=Mg("legend",{shouldForwardProp:kg})((({ownerState:e,theme:t})=>Au({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&&Au({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 cx=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],dx=Mg(Vb,{shouldForwardProp:e=>kg(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Hb})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Au({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Zb.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Zb.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Zb.focused} .${Zb.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Zb.error} .${Zb.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Zb.disabled} .${Zb.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Au({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),px=Mg((function(e){const{className:t,label:r,notched:n}=e,o=Pu(e,sx),i=null!=r&&""!==r,a=Au({},e,{notched:n,withLabel:i});return Ll.jsx(lx,Au({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ll.jsx(ux,{ownerState:a,children:i?Ll.jsx("span",{children:r}):ax||(ax=Ll.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}})),fx=Mg(Gb,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Wb})((({theme:e,ownerState:t})=>Au({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}))),hx=S.forwardRef((function(e,t){var r,n,o,i,a;const s=Tg({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Pu(s,cx),b=(e=>{const{classes:t}=e;return Au({},t,Vh({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Jb,t))})(s),v=qb(),y=_b({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Au({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),C=null!=(r=null!=(n=h.root)?n:l.Root)?r:dx,w=null!=(o=null!=(i=h.input)?i:l.Input)?o:fx;return Ll.jsx(Yb,Au({slots:{root:C,input:w},renderSuffix:e=>Ll.jsx(px,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Ll.jsxs(S.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:Au({},b,{notchedOutline:null})}))}));function mx(e){return Hf("MuiSelect",e)}hx.muiName="Input";const gx=Wf("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var bx;const vx=["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"],yx=Mg("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${gx.select}`]:t.select},{[`&.${gx.select}`]:t[r.variant]},{[`&.${gx.error}`]:t.error},{[`&.${gx.multiple}`]:t.multiple}]}})(tx,{[`&.${gx.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),xx=Mg("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Lp(r.variant)}`],r.open&&t.iconOpen]}})(nx),Sx=Mg("input",{shouldForwardProp:e=>Pg(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 Cx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function wx(e){return null==e||"string"==typeof e&&!e.trim()}const Ex=S.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:C,onClose:w,onFocus:E,onOpen:R,open:A,readOnly:P,renderValue:k,SelectDisplayProps:M={},tabIndex:I,value:L,variant:D="standard"}=e,T=Pu(e,vx),[_,O]=kh({controlled:L,default:c,name:"Select"}),[q,N]=kh({controlled:A,default:u,name:"Select"}),j=S.useRef(null),z=S.useRef(null),[F,$]=S.useState(null),{current:B}=S.useRef(null!=A),[H,W]=S.useState(),V=Ih(t,m),G=S.useCallback((e=>{z.current=e,e&&$(e)}),[]),U=null==F?void 0:F.parentNode;S.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:j.current,value:_})),[_]),S.useEffect((()=>{u&&q&&F&&!B&&(W(a?null:U.clientWidth),z.current.focus())}),[F,a]),S.useEffect((()=>{i&&z.current.focus()}),[i]),S.useEffect((()=>{if(!g)return;const e=Ch(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):w&&w(t),B||(W(a?null:U.clientWidth),N(e))},K=S.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(_)?_.slice():[];const t=_.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),_!==r&&(O(r),C)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),C(o,e)}v||Y(!1,t)}},J=null!==F&&q;let Z,Q;delete T["aria-invalid"];const ee=[];let te=!1;(zb({value:_})||p)&&(k?Z=k(_):te=!0);const re=K.map((e=>{if(!S.isValidElement(e))return null;let t;if(v){if(!Array.isArray(_))throw new Error(wu(2));t=_.some((t=>Cx(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Cx(_,e.props.value),t&&te&&(Q=e.props.children);return S.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=H;!a&&B&&F&&(oe=U.clientWidth),ne=void 0!==I?I:d?null:0;const ie=M.id||(y?`mui-component-select-${y}`:void 0),ae=Au({},e,{variant:D,value:_,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Vh({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Lp(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},mx,t)})(ae),le=Au({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Ph();return Ll.jsxs(S.Fragment,{children:[Ll.jsx(yx,Au({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:_,name:y}}),x(e))},onFocus:E},M,{ownerState:ae,className:Dg(M.className,se.select,l),id:ie,children:wx(Z)?bx||(bx=Ll.jsx("span",{className:"notranslate",children:"​"})):Z})),Ll.jsx(Sx,Au({"aria-invalid":f,value:Array.isArray(_)?_.join(","):_,name:y,ref:j,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),C&&C(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},T)),Ll.jsx(xx,{as:h,className:se.icon,ownerState:ae}),Ll.jsx(Gy,Au({id:`menu-${y||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Au({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Au({},b.slotProps,{paper:Au({},le,{style:Au({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),Rx=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ax=["root"],Px={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>kg(e)&&"variant"!==e,slot:"Root"},kx=Mg(ry,Px)(""),Mx=Mg(hx,Px)(""),Ix=Mg(Uv,Px)(""),Lx=S.forwardRef((function(e,t){const r=Tg({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=tv,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:C,SelectDisplayProps:w,variant:E="outlined"}=r,R=Pu(r,Rx),A=b?ix:Ex,P=_b({props:r,muiFormControl:qb(),states:["variant","error"]}),k=P.variant||E,M=Au({},r,{variant:k,classes:i}),I=(e=>{const{classes:t}=e;return t})(M),L=Pu(I,Ax),D=d||{standard:Ll.jsx(kx,{ownerState:M}),outlined:Ll.jsx(Mx,{label:f,ownerState:M}),filled:Ll.jsx(Ix,{ownerState:M})}[k],T=Ih(t,Jh(D));return Ll.jsx(S.Fragment,{children:S.cloneElement(D,Au({inputComponent:A,inputProps:Au({children:o,error:P.error,IconComponent:u,variant:k,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:x,renderValue:C,SelectDisplayProps:Au({id:c},w)},p,{classes:p?Cp(L,p.classes):L},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===k?{notched:!0}:{},{ref:T,className:Dg(D.props.className,a,I.root)},!d&&{variant:k},R))})}));function Dx(e={}){return Ll.jsx(Nl,{...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ll.jsx("rect",{stroke:cl.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Lx.muiName="Select";const Tx={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:ml,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var _x=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:cl.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:cl.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Ll.jsx(_l,{"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 ${cl.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:cl.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${cl.MISC_FOCUS_BORDER}`,borderRadius:ml,backgroundColor:cl.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 ${cl.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:cl.WHITE,color:cl.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:ml},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${cl.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:cl.GREYSCALE_0_15,backgroundColor:cl.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:cl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${cl.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:cl.GREEN_PALE},"&:active":{backgroundColor:cl.GREEN_DARK},"&.Mui-focusVisible":{borderColor:cl.GREEN_PALE,boxShadow:`0 0 0 3px ${yh(cl.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:cl.BLUE_PALE},"&:active":{backgroundColor:cl.BLUE_DARK},"&.Mui-focusVisible":{borderColor:cl.BLUE_PALE,boxShadow:`0 0 0 3px ${yh(cl.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:ml,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:cl.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${cl.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:cl.GREYSCALE_0_15,backgroundColor:cl.GREYSCALE_100_60,"&:active":{backgroundColor:cl.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:cl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${cl.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:cl.PURPLE,"&.Mui-focusVisible":{borderColor:cl.PURPLE,boxShadow:`0 0 0 3px ${yh(cl.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:cl.GREEN,"&.Mui-focusVisible":{borderColor:cl.GREEN,boxShadow:`0 0 0 3px ${yh(cl.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:cl.BLUE,"&.Mui-focusVisible":{borderColor:cl.BLUE,boxShadow:`0 0 0 3px ${yh(cl.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:cl.ORANGE,"&.Mui-focusVisible":{borderColor:cl.ORANGE,boxShadow:`0 0 0 3px ${yh(cl.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:cl.RED,"&.Mui-focusVisible":{borderColor:cl.RED,boxShadow:`0 0 0 3px ${yh(cl.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:cl.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:cl.PURPLE_PALE},"&:active":{backgroundColor:cl.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:cl.PURPLE_PALE,boxShadow:`0 0 0 3px ${yh(cl.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:cl.GREEN_PALE},"&:active":{backgroundColor:cl.GREEN_DARK},"&.Mui-focusVisible":{borderColor:cl.GREEN_PALE,boxShadow:`0 0 0 3px ${yh(cl.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:cl.BLUE_PALE},"&:active":{backgroundColor:cl.BLUE_DARK},"&.Mui-focusVisible":{borderColor:cl.BLUE_PALE,boxShadow:`0 0 0 3px ${yh(cl.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:cl.ORANGE_PALE},"&:active":{backgroundColor:cl.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:cl.ORANGE_PALE,boxShadow:`0 0 0 3px ${yh(cl.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:cl.RED_PALE},"&:active":{backgroundColor:cl.RED_DARK},"&.Mui-focusVisible":{borderColor:cl.RED_PALE,boxShadow:`0 0 0 3px ${yh(cl.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:cl.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:cl.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ml,boxShadow:`inset 0 0 0 2px ${cl.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Ll.jsx(ql,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:dl,borderRadius:ml,color:cl.TEXT_PRIMARY,backgroundColor:cl.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:cl.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${cl.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:cl.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:cl.GREYSCALE_0_05,color:cl.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:cl.GREEN,borderColor:cl.GREEN},"&.MuiChip-outlinedInfo":{color:cl.BLUE,borderColor:cl.BLUE},"&.MuiChip-outlinedWarning":{color:cl.ORANGE,borderColor:cl.ORANGE},"&.MuiChip-outlinedError":{color:cl.RED,borderColor:cl.RED}},outlined:{border:`solid 1px ${cl.GREYSCALE_0_15}`,backgroundColor:cl.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ml,boxShadow:"none",backgroundColor:cl.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:cl.GREEN,borderColor:cl.GREEN},outlinedSecondary:{color:cl.BLUE,borderColor:cl.BLUE},label:{fontFamily:xl.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Ll.jsx(ql,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Ll.jsx(_l,{"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:ml},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ml,fontSize:pl,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:cl.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${cl.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:cl.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:cl.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:cl.GREYSCALE_0_05}}},popupIndicator:{borderRadius:ml,border:`solid 1px ${cl.GREYSCALE_0_15}`,color:cl.GREYSCALE_0_60,marginRight:0,width:hl,height:hl},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${cl.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ml,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:cl.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:pl}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:dl,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:cl.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:cl.GREYSCALE_25,fontSize:dl,fontFamily:xl.FONT_FAMILY,fontWeight:vl,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:cl.TEXT_PRIMARY},"&.Mui-error":{color:cl.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:cl.TEXT_SECONDARY,content:"'(optional)'",fontWeight:bl,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:cl.TEXT_SECONDARY,content:"'(required)'",fontWeight:bl,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:pl,lineHeight:"16px",backgroundColor:cl.WHITE,borderRadius:ml,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cl.GREYSCALE_0_05}`,borderColor:cl.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cl.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${cl.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${cl.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cl.RED}`,boxShadow:`0px 0px 0px 1px ${cl.RED}, inset 0 2px 0 0 ${cl.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${cl.GREYSCALE_0_10}`,borderColor:cl.GREYSCALE_0_10,backgroundColor:cl.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:cl.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:cl.GREYSCALE_0_15,borderRadius:ml,boxShadow:`inset 0 2px 0 0 ${cl.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Ll.jsx(_l,{...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:cl.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:cl.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:cl.GREYSCALE_0_03},"&:active":{backgroundColor:cl.GREYSCALE_0_10},"&:focus":{backgroundColor:cl.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${cl.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${cl.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:cl.GREYSCALE_0_30,"&:hover":{backgroundColor:cl.GREYSCALE_0_0,borderColor:cl.GREYSCALE_0_15},"& ~svg":{color:cl.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${cl.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ml}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:cl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${cl.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:cl.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:pl,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:dl,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:dl,fontWeight:vl,color:cl.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:vl}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${cl.GREYSCALE_0_15}, 0px 0px 0px 1px ${cl.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Ll.jsx(Fl,{}),checkedIcon:Ll.jsx($l,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:cl.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${cl.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:cl.GREEN_PALE,boxShadow:`0 0 0 3px ${yh(cl.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:cl.BLUE_PALE,boxShadow:`0 0 0 3px ${yh(cl.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:cl.GREYSCALE_0_20}},"&.Mui-disabled":{fill:cl.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Ll.jsx(Dx,{}),checkedIcon:Ll.jsx(jl,{}),indeterminateIcon:Ll.jsx(zl,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ml,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:cl.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:cl.GREYSCALE_0_55,color:cl.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:cl.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:cl.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:cl.GREYSCALE_0_55,"&:hover":{color:cl.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:cl.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:cl.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:pl,color:cl.TEXT_PRIMARY,lineHeight:"16px",fontWeight:vl},secondary:{fontSize:dl,color:cl.GREYSCALE_45,fontWeight:bl,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:pl,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:pl,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:cl.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:dl,borderBottom:`solid 1px ${cl.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:pl,color:cl.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:cl.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:cl.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:cl.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:cl.RED}}},"&.Mui-focusVisible":{backgroundColor:cl.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:cl.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:cl.GREEN,height:"24px","&.Mui-disabled":{color:cl.GREYSCALE_0_15}},rail:{backgroundColor:cl.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${cl.GREYSCALE_0_05}`,borderRadius:ml,boxShadow:`inset 0px 0px 0px 1px ${cl.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${cl.GREYSCALE_0_05}`,borderRadius:ml},thumb:{height:"16px",width:"16px",borderRadius:ml,backgroundColor:cl.WHITE,boxShadow:`0px 1px 2px 0px ${cl.GREYSCALE_0_15}, 0px 0px 0px 1px ${cl.GREYSCALE_0_05}`,"&:hover":{borderRadius:ml,boxShadow:`0 2px 4px 0 ${cl.GREYSCALE_0_30}, 0 0 0 1px ${cl.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${cl.GREYSCALE_0_15}, 0 0 0 1px ${cl.GREYSCALE_0_06}, 0 0 0 2px ${cl.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${cl.GREYSCALE_0_15}, 0 0 0 1px ${cl.GREYSCALE_0_06}, 0 0 0 2px ${cl.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:cl.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:cl.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:cl.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:cl.GREYSCALE_0_15},markLabel:{color:cl.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:cl.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:cl.WHITE,color:cl.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:cl.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:cl.GREEN_PALE,boxShadow:`0 0 0 3px ${yh(cl.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:cl.BLUE_PALE,boxShadow:`0 0 0 3px ${yh(cl.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:cl.GREYSCALE_0_15,borderRadius:ml},thumb:{height:"16px",width:"16px",borderRadius:ml,backgroundColor:cl.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:pl,fontWeight:vl,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${cl.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${cl.MISC_FOCUS_BORDER}`,backgroundColor:cl.GREYSCALE_0_03,borderRadius:ml},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:cl.GREYSCALE_25,"&.Mui-selected":{color:cl.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:pl,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:ml,"&:hover":{backgroundColor:cl.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 ${cl.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${cl.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:ml,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:cl.GREYSCALE_0_05},"&:hover":{backgroundColor:cl.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${cl.GREYSCALE_85}`,borderRight:`1px solid ${cl.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:vl,backgroundColor:cl.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:cl.GREYSCALE_98,borderBottom:`1px solid ${cl.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${cl.GREYSCALE_85}`,borderTop:`1px solid ${cl.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:cl.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:cl.GREYSCALE_0_05,"&:hover":{backgroundColor:cl.GREYSCALE_0_03}},"&&:hover":{backgroundColor:cl.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Ll.jsx(Bl,{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 ${cl.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:pl,borderRadius:ml,padding:"7px 16px",border:`1px solid ${cl.GREYSCALE_0_15}`,backgroundColor:cl.GREYSCALE_100_60,color:cl.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:cl.GREYSCALE_0_10,border:`1px solid ${cl.GREYSCALE_0_30}`},"&:hover":{backgroundColor:cl.GREYSCALE_0_03,border:`1px solid ${cl.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:cl.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${cl.MISC_FOCUS_BORDER}`,border:`1px solid ${cl.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:cl.GREYSCALE_25,backgroundColor:cl.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:cl.GREYSCALE_0_10,border:`1px solid ${cl.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:dl,height:24,width:24,padding:7},sizeLarge:{fontSize:fl,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:pl,borderRadius:ml}}},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:cl.GREYSCALE_20},tooltip:{backgroundColor:cl.GREYSCALE_20,fontSize:dl,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Tx}:{}}))(t);const Ox=e=>({mode:"light",primary:{ultraLight:cl.GREEN_ULTRA_LIGHT,light:cl.GREEN_PALE,main:cl.GREEN,dark:cl.GREEN_DARK,extraDark:cl.GREEN_EXTRA_DARK,contrastText:cl.WHITE},secondary:{ultraLight:cl.BLUE_ULTRA_LIGHT,light:cl.BLUE_PALE,main:cl.BLUE,dark:cl.BLUE_DARK,extraDark:cl.BLUE_EXTRA_DARK,contrastText:cl.WHITE},error:{ultraLight:cl.RED_ULTRA_LIGHT,light:cl.RED_PALE,main:cl.RED,dark:cl.RED_DARK,extraDark:cl.RED_EXTRA_DARK,contrastText:cl.WHITE},warning:{ultraLight:cl.ORANGE_ULTRA_LIGHT,light:cl.ORANGE_PALE,main:cl.ORANGE,dark:cl.ORANGE_DARK,extraDark:cl.ORANGE_EXTRA_DARK,contrastText:cl.WHITE},success:{ultraLight:cl.GREEN_ULTRA_LIGHT,light:cl.GREEN_PALE,main:cl.GREEN,dark:cl.GREEN_DARK,extraDark:cl.GREEN_EXTRA_DARK,contrastText:cl.WHITE},info:{ultraLight:cl.BLUE_ULTRA_LIGHT,light:cl.BLUE_PALE,main:cl.BLUE,dark:cl.BLUE_DARK,extraDark:cl.BLUE_EXTRA_DARK,contrastText:cl.WHITE},text:{primary:cl.TEXT_PRIMARY,secondary:cl.TEXT_SECONDARY,disabled:cl.GREYSCALE_0_30},action:{hover:cl.GREYSCALE_0_03,hoverOpacity:.03,selected:cl.GREYSCALE_0_05,selectedOpacity:.05,focus:cl.MISC_FOCUS_BORDER},amethyst:{ultraLight:cl.WHITE,main:cl.PURPLE,light:cl.PURPLE_PALE,dark:cl.PURPLE_DARK,extraDark:cl.GREYSCALE_0_0,contrastText:cl.WHITE},background:{paper:cl.WHITE,default:cl.GREYSCALE_95},divider:cl.GREYSCALE_0_15}),qx={...ul},Nx=((e="light",t=!1)=>((e,t=!1)=>({components:_x(0,t),palette:Ox(),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:pl,fontWeightLight:gl,fontWeightRegular:bl,fontWeightMedium:vl,fontWeightBold:yl,htmlFontSize:pl,fontFamily:xl.FONT_FAMILY,button:{fontWeight:vl,fontSize:pl,textTransform:"none"},body1:{fontSize:fl,lineHeight:"24px"},body2:{fontSize:pl,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:hl,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:fl,fontWeight:vl,lineHeight:"16px"},h6:{fontSize:pl,fontWeight:vl,lineHeight:"16px"},caption:{color:cl.TEXT_SECONDARY},subtitle1:{fontSize:pl,color:cl.TEXT_SECONDARY},subtitle2:{fontSize:dl,color:cl.TEXT_SECONDARY}},shape:{borderRadius:ml}}))(0,t))().palette,jx={TEXT:Nx.text.primary,DISABLED:Nx.text.disabled,HOVER:Nx.action.hover,WHITE:qx.GREYSCALE_100,BORDER_LIGHT:qx.GREYSCALE_90,BORDER_MEDIUM:qx.GREYSCALE_85,BORDER_HEAVY:qx.GREYSCALE_50,DARK_MODE_TEXT:qx.GREYSCALE_95,DARK_MODE_BORDER:qx.GREYSCALE_95,DARK_MODE_DISABLED:qx.GREYSCALE_70,DARK_MODE_BACKGROUND:qx.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:qx.GREYSCALE_95,SELECTED:Nx.primary.main,LINK:Nx.info.main},zx=(e,t=jx.TEXT,r=jx.WHITE)=>{const n=te(e),o=te(t),i=te(r);return n.isInvalid()?t:function(e,t,r){const n=re(e,t),o=re(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},Fx=e=>{const t=e.getStyle("","","dataColors.selected")||jx.SELECTED,r=function(e,t){const r=te("#FFFFFF"),n=te(e),o=te(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=re(r,n),a=re(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,jx.TEXT);return{background:t,color:r}},$x=(e,t)=>{const r=te(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Bx=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},Hx=e=>{const t=te(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Wx=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},Vx=e=>{e.stopPropagation(),e.preventDefault()},Gx=e=>!!e&&0===te(e).a,Ux="#grid",Yx=(e,t,r,n=jx.WHITE)=>e&&!Gx(e)?e:Gx(t)?r&&!Gx(r)?r:n:t,Kx=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},Xx=(e,t,r,n,o)=>{const i=Kx(".qv-object .qv-inner-object",r),a=Kx(".qv-panel-sheet",r),s=Kx(Ux,r)??a,l=(e=>{const t=e.components?.find((e=>"general"===e.key)),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return Hx(r);if("none"===n)return"transparent";if(void 0===n)return;const i=te(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=Gx(d),f=!Gx(h=p?s:d)&&zx(h,jx.TEXT,jx.DARK_MODE_TEXT)===X(jx.DARK_MODE_TEXT);var h;return{color:d,headerColor:Yx(l,d,s),isDark:f}},Jx=(e,r,n,s)=>{const l=a(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=o([]);return i((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(r.closest(Ux),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return t((()=>({...l,background:Xx(e,l,r,n,s)})),[l.name(),r,n,s,e,u])};function Zx(e,r){const o=t((()=>({isLoading:!0})),r),[i,a]=n((async()=>{try{return await e()}finally{o.isLoading=!1}}),r);return[i,o.isLoading,a]}const Qx=3;function eS(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function tS({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Qx}=o??{},{estimateWidth:a,measureText:s,estimateLineCount:l}=E((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=st(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=st((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=eS(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var rS,nS=F;rS=nS.createRoot,nS.hydrateRoot;const oS="Source Sans Pro, sans-serif",iS=(e,t,r)=>{const[,n,o]=Zx((async()=>{const t=se(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,oS].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n};function aS(e,t){const[r,n]=w(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var sS={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 lS=({translator:e})=>(E((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(sS).forEach((t=>{e.add(sS[t])}))}}(e)}),[e]),e),uS=e=>{const t=s();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}},cS="12px",dS="nebula-table-utils-head-menu-button",pS="nebula-table-utils-head-menu-wrapper",fS="nebula-table-utils-head-menu",hS="nebula-table-utils-head-menu-list-id",mS="sn-copy-cell";let gS=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 bS="nebula-table-utils-column-adjuster";let vS=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}({}),yS=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const xS={darker:.15,brighter:.3,opacity:.03},SS={darker:.3,brighter:.5,opacity:.05};let CS=function(e){return e.Cyclic="C",e}({});const wS=document.createElement("textarea");function ES(e){wS.value=e,document.body.appendChild(wS),wS.select(),wS.setSelectionRange(0,wS.value.length),document.execCommand("copy"),document.body.removeChild(wS)}wS.style.position="absolute",wS.style.left="-9999px",wS.setAttribute("readonly","");const RS=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{ES(t)})):ES(t))};function AS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var PS,kS,MS,IS="top",LS="top-right",DS="right",TS="bottom-right",_S="bottom",OS="bottom-left",qS="left",NS="top-left";AS(AS(AS(AS(AS(AS(AS(AS(AS(AS(PS={},"equal-equal",[IS,_S]),"equal-higher",[_S,TS]),"equal-lower",[IS,LS]),"equal-void",[IS,_S]),"higher-equal",[qS,OS,IS,LS]),"higher-higher-acute",[_S,OS,qS,LS]),"higher-higher-obtuse",[_S,IS]),"higher-lower-negative",[IS,LS,DS]),"higher-lower-positive",[_S,OS,qS]),"higher-void",[IS]),AS(AS(AS(AS(AS(AS(AS(AS(AS(AS(PS,"lower-equal",[IS]),"lower-higher-negative",[IS,NS]),"lower-higher-positive",[TS]),"lower-lower-acute",[IS,NS,qS,LS,DS]),"lower-lower-obtuse",[IS,_S]),"lower-void",[IS]),"void-equal",[IS]),"void-higher",[IS,_S]),"void-lower",[IS,_S,qS]),"void-void",[IS]),AS(PS,"unclassified",[IS,_S,DS,qS,LS,TS,OS,NS]);var jS=function(){if(MS)return kS;MS=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return kS=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},kS}();function zS(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function FS(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function $S(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(jS);var BS=1/.7,HS="\\s*([+-]?\\d+)\\s*",WS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",VS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",GS=/^#([0-9a-f]{3,8})$/,US=new RegExp(`^rgb\\(${HS},${HS},${HS}\\)$`),YS=new RegExp(`^rgb\\(${VS},${VS},${VS}\\)$`),KS=new RegExp(`^rgba\\(${HS},${HS},${HS},${WS}\\)$`),XS=new RegExp(`^rgba\\(${VS},${VS},${VS},${WS}\\)$`),JS=new RegExp(`^hsl\\(${WS},${VS},${VS}\\)$`),ZS=new RegExp(`^hsla\\(${WS},${VS},${VS},${WS}\\)$`),QS={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 eC(){return this.rgb().formatHex()}function tC(){return this.rgb().formatRgb()}function rC(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=GS.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?nC(t):3===r?new sC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?oC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?oC(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=US.exec(e))?new sC(t[1],t[2],t[3],1):(t=YS.exec(e))?new sC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=KS.exec(e))?oC(t[1],t[2],t[3],t[4]):(t=XS.exec(e))?oC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=JS.exec(e))?fC(t[1],t[2]/100,t[3]/100,1):(t=ZS.exec(e))?fC(t[1],t[2]/100,t[3]/100,t[4]):QS.hasOwnProperty(e)?nC(QS[e]):"transparent"===e?new sC(NaN,NaN,NaN,0):null}function nC(e){return new sC(e>>16&255,e>>8&255,255&e,1)}function oC(e,t,r,n){return n<=0&&(e=t=r=NaN),new sC(e,t,r,n)}function iC(e){return e instanceof $S||(e=rC(e)),e?new sC((e=e.rgb()).r,e.g,e.b,e.opacity):new sC}function aC(e,t,r,n){return 1===arguments.length?iC(e):new sC(e,t,r,null==n?1:n)}function sC(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function lC(){return`#${pC(this.r)}${pC(this.g)}${pC(this.b)}`}function uC(){const e=cC(this.opacity);return`${1===e?"rgb(":"rgba("}${dC(this.r)}, ${dC(this.g)}, ${dC(this.b)}${1===e?")":`, ${e})`}`}function cC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function dC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function pC(e){return((e=dC(e))<16?"0":"")+e.toString(16)}function fC(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new mC(e,t,r,n)}function hC(e){if(e instanceof mC)return new mC(e.h,e.s,e.l,e.opacity);if(e instanceof $S||(e=rC(e)),!e)return new mC;if(e instanceof mC)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new mC(a,s,l,e.opacity)}function mC(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function gC(e){return(e=(e||0)%360)<0?e+360:e}function bC(e){return Math.max(0,Math.min(1,e||0))}function vC(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}zS($S,rC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:eC,formatHex:eC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return hC(this).formatHsl()},formatRgb:tC,toString:tC}),zS(sC,aC,FS($S,{brighter(e){return e=null==e?BS:Math.pow(BS,e),new sC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new sC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sC(dC(this.r),dC(this.g),dC(this.b),cC(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:lC,formatHex:lC,formatHex8:function(){return`#${pC(this.r)}${pC(this.g)}${pC(this.b)}${pC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:uC,toString:uC})),zS(mC,(function(e,t,r,n){return 1===arguments.length?hC(e):new mC(e,t,r,null==n?1:n)}),FS($S,{brighter(e){return e=null==e?BS:Math.pow(BS,e),new mC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new mC(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new sC(vC(e>=240?e-240:e+120,o,n),vC(e,o,n),vC(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new mC(gC(this.h),bC(this.s),bC(this.l),cC(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=cC(this.opacity);return`${1===e?"hsl(":"hsla("}${gC(this.h)}, ${100*bC(this.s)}%, ${100*bC(this.l)}%${1===e?")":`, ${e})`}`}}));const yC=Math.PI/180,xC=180/Math.PI,SC=4/29,CC=6/29,wC=3*CC*CC;function EC(e){if(e instanceof RC)return new RC(e.l,e.a,e.b,e.opacity);if(e instanceof IC)return LC(e);e instanceof sC||(e=iC(e));var t,r,n=MC(e.r),o=MC(e.g),i=MC(e.b),a=AC((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=AC((.4360747*n+.3850649*o+.1430804*i)/.96422),r=AC((.0139322*n+.0971045*o+.7141733*i)/.82521)),new RC(116*a-16,500*(t-a),200*(a-r),e.opacity)}function RC(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function AC(e){return e>.008856451679035631?Math.pow(e,1/3):e/wC+SC}function PC(e){return e>CC?e*e*e:wC*(e-SC)}function kC(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function MC(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function IC(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function LC(e){if(isNaN(e.h))return new RC(e.l,0,0,e.opacity);var t=e.h*yC;return new RC(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}zS(RC,(function(e,t,r,n){return 1===arguments.length?EC(e):new RC(e,t,r,null==n?1:n)}),FS($S,{brighter(e){return new RC(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new RC(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new sC(kC(3.1338561*(t=.96422*PC(t))-1.6168667*(e=1*PC(e))-.4906146*(r=.82521*PC(r))),kC(-.9787684*t+1.9161415*e+.033454*r),kC(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),zS(IC,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof IC)return new IC(e.h,e.c,e.l,e.opacity);if(e instanceof RC||(e=EC(e)),0===e.a&&0===e.b)return new IC(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*xC;return new IC(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new IC(e,t,r,null==n?1:n)}),FS($S,{brighter(e){return new IC(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new IC(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return LC(this).rgb()}}));var DC=e=>()=>e;function TC(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):DC(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?TC:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):DC(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=aC(e)).r,(t=aC(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=TC(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var _C="center",OC="bottom";[{key:"NoDataExist",alignment:_C,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:_C,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:_C,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:_C},{key:"DataRangeIncludingZero",alignment:OC},{key:"LimitedData",alignment:OC},{key:"NegativeOrZeroValues",alignment:OC}].reduce((function(e,t){return e[t.key]=t,e}),{});var qC,NC=["__proto__","constructor"];function jC(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!NC.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function zC(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function FC(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=BC)):void 0===t&&(t=$C);for(var r,n,o,i,a,s=new VC(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new VC(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(WC)}function $C(e){return e.children}function BC(e){return Array.isArray(e)?e[1]:null}function HC(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function WC(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function VC(e){this.data=e,this.depth=this.height=0,this.parent=null}VC.prototype=FC.prototype={constructor:VC,count:function(){return this.eachAfter(zC)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return FC(this).eachBefore(HC)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},qC=function(e){
103
- /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
104
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},qC({exports:{}});var GC={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](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),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Le});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}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 u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.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 n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"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),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"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,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[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,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const C={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.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 r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.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&&(n=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);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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 R=t().bind(null,!0),A={},P=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function L(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=M(e[r||t])?i:e[t],e=e[r||t]}})),e}function D(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){D(e[n],t[n])||(r=!1)})),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!D(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);D(i,a)||I(t,o)||(M(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(A.generate(a,i,s)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&M(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(D(t,o))return n;if(!M(t[0])&&M(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!I(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=L(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(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return w(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(n)||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(k(a)&&k(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!I(r,e)&&delete r[e]})),R(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 c=L(e,t.from);P(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,_=function(e,r,n){if(!e)return Promise.resolve();var o=T.generate(r,n);return t()(!0,r,n),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 q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===O)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===O)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var j={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=C.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=C.getNumStepComp(r,l),p=C.getAboveComp(r,l,c,d),f=C.getRangeComp("RangeSum",p);if(C.needDimension({modifier:r,properties:n,layout:o})){var h=C.getDimComp(u,1),m=C.getDimComp(u,0),g=C.getAggrComp(f,h,m);f=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,j)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(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: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(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:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(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:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=C.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=C.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=C.getNumStepComp(n,u),h=C.getAboveComp(n,u,p,f);if(n.nullSuppression)t=C.getRangeComp("RangeAvg",h);else{var m=C.getRangeComp("RangeSum",h),g=function(e,t){var r=C.getRowNoComp(e,t);if(!C.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(C.needDimension({modifier:n,properties:o,layout:a})){var v=C.getDimComp(c,1),y=C.getDimComp(c,0),x=C.getAggrComp(b,v,y);b=n.showExcludedValues?C.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!C.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 r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.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 C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?C.generateTSDExpression(r,t,n):t},extractInputExpression:C.extractInputExpression,initModifier:function(e,t){C.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=C.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(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:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.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 r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=C.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=C.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(C.needDimension({modifier:r,properties:n,layout:o})){var f=C.getDimComp(u,1),h=C.getDimComp(u,0),m=C.getAggrComp(p,f,h);p=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,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]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!C.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 C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;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,r){return 1===e?"{$<".concat(C.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(C.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=C.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=C.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.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]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(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(r){return function(e,t,r){var n=[{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 n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(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(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(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,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};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",Ce="qDef.qLabelExpression",we="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,we,i(e,Se)),r(e,Ee,i(e,Ce)))},restoreBase:function(e){Pe.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,we)),r(e,Ce,i(e,Ee)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const ke=Pe;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 Ie={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Le={modifiers:Ie,apply:Te,applyModifiers:_e,cleanUpMeasure:Oe,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:ke.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Fe(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:je};var De={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;De[r.id]=De[r.id]||{isFirstTime:!0};var u=De[r.id].isFirstTime;if(De[r.id].isFirstTime=!1,n&&"object"===Me(n))return _e({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=De[r.id].lastReloadTime;if(De[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return h&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(r++,"object"!==Me(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&C.simplifyExpression(t.qDef.base.qDef)!==C.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),_e({model:r,oldProperties:e,properties:n,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)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function _e(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Oe(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;ke.isValid(r)||ke.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(s++,"object"!==Me(Ie[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)");Ie[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ie[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[n.type].updateModifier&&Ie[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Ie[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||je(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&je(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):Oe(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):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&&!Ie[e.type]}))}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:Fe(e),properties:r,layout:n})}))}function Ne(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ie[n.type]&&!n.disabled)return n}}function je(e){var t=Ne(e);return!t||Ie[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 r=Ne(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function He(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!Ie[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ue({modifiers:Fe(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.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,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):_(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Fe(t);if(Ue({modifiers:n,properties:e})){var i=Ve(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=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:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),De[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](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);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}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)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r: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 r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?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 r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(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 u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.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)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.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,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),C=r.n(S);function w(e,t){var r=C()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return C()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const M=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},I=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},L=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},D=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}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},_=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=w(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=w(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},j=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=C()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.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=C()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=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>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(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=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(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 P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(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),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return k(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 k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(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),n.measures.added(e,r)}))}},H=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),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}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||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,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=j({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,C=y.maxMeasures,w=y.minMeasures,E=l.defaultDimension,R=void 0===E?D():E,A=l.defaultMeasure,P=void 0===A?T():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:C,minMeasures:w})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:C,minMeasures:w,newHyperCubeDef:v}),_({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),O({exportFormat:t,maxMeasures:C,minMeasures:w,newHyperCubeDef:v,defaultMeasure:P}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),I("qMaxStackedCells",b,v),I("qNoOfLeftDims",b,v),L("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),L("qMode",b,v,"S"),L("qReductionMode",b,v,"N"),L("qSortbyYValue",b,v),L("qIndentMode",b,v),L("qShowTotalsAbove",b,v),M(g,t,n),m.qProperty=g;var k=i.getValue(c||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:k}),p&&W(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(U(a,t,n,o),Y(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,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.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)}(r,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}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));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,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(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 r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=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):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,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,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,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",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.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=ue(d,p),b=ce({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),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||C()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||C()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=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:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,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]&&C()(s,r.properties.measureAxes[t[0].axis])):C()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ce={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),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,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function we(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=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 u=we(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=we(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",ke="measures",Me="qDef.conditionalColoring";const Ie={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:ke,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Me,arrayName:ke,quarantineName:Pe})}};var Le="qHyperCubeDef.qMeasures",De="measures",Te="qHyperCubeDef.qDimensions",_e="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",je="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:De,itemPath:ze}),Ee({properties:e,arrayPath:Te,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:De,itemPath:ze}),Re({properties:e,arrayPath:Te,quarantineName:Fe,arrayName:_e,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:ze}),Ee({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:je,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:je,itemPath:ze})}},Be={hypercube:V,colorChart:be,axisChart:Ce,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:Ie,conditionalShow:$e}})(),n.default})()}(GC);var UC=Et(GC.exports);const YC="qHyperCubeDef.qMeasures",KC="measures",XC="qHyperCubeDef.qDimensions",JC="dimensions",ZC="qDef.representation",QC="tableRepresentation",ew="qDef.conditionalColoring",tw="conditionalColoring",rw="qMiniChartDef",nw="miniChartDef",ow=({propertyTree:e,hyperCubePath:t})=>{const r=UC.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t)));return o})(o,i,n);return jC(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),UC.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),UC.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),UC.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{UC.quarantineArrayProp({properties:e,arrayPath:XC,itemPath:ZC,arrayName:JC,quarantineName:QC}),UC.quarantineArrayProp({properties:e,arrayPath:YC,itemPath:ZC,arrayName:KC,quarantineName:QC}),UC.quarantineArrayProp({properties:e,arrayPath:YC,itemPath:ew,arrayName:KC,quarantineName:tw}),UC.quarantineArrayProp({properties:e,arrayPath:YC,itemPath:rw,arrayName:KC,quarantineName:nw})})(r.properties),r};const iw=/^q[A-Z]/,aw=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],sw=e=>"object"==typeof e&&null!==e,lw=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!iw.test(e)&&!aw.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>sw(e)?lw(e,`${o}.${t}`):e)):sw(n)&&(e[r]=lw(n,o))})),e),uw=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:yS.Pixels,pixels:e}:{type:yS.FitToContent}:i.qDef.columnWidth=e}return i},cw=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{if(i){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}lw(e.properties)}const a=UC.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(UC.conditionalShow.unquarantine(a.qProperty),i)jC(a,"qProperty.totals.show",!1),jC(a,"qProperty.usePagination",!0),jC(a,"qProperty.accessibleHeader",!0);else{UC.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{UC.unquarantineArrayProp({properties:e,arrayPath:XC,itemPath:ZC,arrayName:JC,quarantineName:QC}),UC.unquarantineArrayProp({properties:e,arrayPath:YC,itemPath:ZC,arrayName:KC,quarantineName:QC}),UC.unquarantineArrayProp({properties:e,arrayPath:YC,itemPath:ew,arrayName:KC,quarantineName:tw}),UC.unquarantineArrayProp({properties:e,arrayPath:YC,itemPath:rw,arrayName:KC,quarantineName:nw})})(a.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=a.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>uw(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>uw(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(jC(a,"qProperty.qHyperCubeDef.qDimensions",o),jC(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var dw={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function pw(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function fw(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function hw(e){return e>0?0:1}function mw(e){return e.translator.get("Visualizations.Descriptions.Column")}function gw(e){return{measures:{min:hw,max:1e3,description:()=>mw(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;pw(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;fw(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:hw,max:1e3,description:()=>mw(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return pw(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;fw(o,n)}}}}let bw=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),vw=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const yw=e=>{switch(e?.type){case"url":return bw.Link;case"image":return bw.Image;case"indicator":return bw.Indicator;case"miniChart":return bw.MiniChart;default:return bw.Text}},xw=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.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}}),Sw=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>yw(e.qDef.representation)===bw.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,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},Cw=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:xw({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>yw(e.qDef.representation)===bw.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>yw(e.qDef.representation)===bw.Link&&e.qDef.representation?.urlPosition===vw.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>yw(e.qDef.representation)===bw.Link&&e.qDef.representation?.urlPosition===vw.Attribute},...Sw(r)}},ww=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[bw.Image],i=!n?.("qMiniChartDef")&&t[bw.MiniChart],a=!n?.("tableIndicators")&&t[bw.Indicator],s=o&&t[bw.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>yw(e.qDef.representation)===bw.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}};var Ew,Rw={};Ew=Rw,(()=>{var e={370:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](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 n={};r.r(n),r.d(n,{default:()=>ke});var o=r(370),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={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 u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.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 n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(c,f),b=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function C(e){return"".concat(e,"(")}function w(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:f,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:C,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return C(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===w({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=w({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.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&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=l.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?l.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(l.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="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},A(e)}var P=i().bind(null,!0),k={},M=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function L(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=L(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(e,t){var r=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){_(e[n],t[n])||(r=!1)})),r);if(M(e)&&M(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!_(e[n],t[n]))return!1;return!0}return e===t}k.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?P({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);_(i,a)||D(t,o)||(L(a)?n.push({op:"add",path:s,value:i}):I(i)&&I(a)?n=n.concat(k.generate(a,i,s)):M(i)&&M(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&L(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(_(t,o))return n;if(!L(t[0])&&L(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(k.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},k.apply=function(e,t){t.forEach((function(t){var r,n,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(M(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(M(a)&&M(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||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(I(a)&&I(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(r,e)&&delete r[e]})),P(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 c=T(e,t.from);M(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(M(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return P({},e)},k.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):P(e,t)};const O=k;var q="accumulation";function N(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===q)return r[n]}function j(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.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 r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.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 E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;var i=N(t,e);return i&&!i.disabled}}}};var $="movingAverage";function B(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function H(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=E.getNumDimensions({properties:o,layout:i}));var c=s(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:i})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(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(H(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(H(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(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=B(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=B(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=B(t,e);return i&&!i.disabled}}}};var G="timeSeriesDecomposition";function U(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function Y(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const X={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(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:l.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.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 r=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=U(t,e);return i&&!i.disabled}}}};var J="difference";function Z(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===J)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,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]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.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 E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(J))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===J)return r[n]}(t,e);return i&&!i.disabled}}}};var te="normalization";function re(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;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,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a,s){var l=ae(t),u=se(t,r,n),c=""===l&&""===u?"":l||u,d=le(o,i),p=ue(o,i,a),f=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension,r.ignoreNegative)},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]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(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(r){return function(e,t,r){var n=[{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 n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(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(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(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,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="library id deleted",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId",ge="qDef.qLabel",be="qDef.qLabelExpression",ve="qDef.base.qLabel",ye="qDef.base.qLabelExpression",xe="qDef.qAggrFunc",Se="qDef.base.qAggrFunc",Ce="qDef.base";const we={getExpression:function(e){var t=s(e,fe);return void 0!==t?t:s(e,pe)},getExpressionRef:function(e){return void 0!==s(e,fe)?fe:pe},getLibraryIdRef:function(e){return s(e,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},getLabelRef:function(e){return s(e,Ce)?ve:ge},getLabelExpressionRef:function(e){return s(e,Ce)?ye:be}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,me,s(e,he)),a(e,ve,s(e,ge)),a(e,ye,s(e,be)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,he,s(e,me)),a(e,ge,s(e,ve)),a(e,be,s(e,ye)),s(e,xe)&&s(e,Se)&&a(e,xe,s(e,Se)),delete e.qDef.base)},isValid:function(e){var t=s(e,fe),r=s(e,me);return void 0!==t||void 0!==r}};const Re=Ee;function Ae(e){return Ae="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},Ae(e)}var Pe={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:X};const ke={modifiers:Pe,apply:Ie,applyModifiers:Le,cleanUpMeasure:De,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[e.id])},hasActiveModifiers:Te,getActiveModifier:_e,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Pe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Pe[e]&&Pe[e].isApplicable({properties:r,layout:n})}))},measureBase:we,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Ne(e);We({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Oe};var Me={};function Ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,l=!1;Me[t.id]=Me[t.id]||{isFirstTime:!0};var u=Me[t.id].isFirstTime;if(Me[t.id].isFirstTime=!1,r&&"object"===Ae(r))return Le({model:t,properties:r});var c=t?t.layout:void 0,d=s(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(c,"qHyperCube.qMeasureInfo"),f=Me[t.id].lastReloadTime;if(Me[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Te({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return He({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return We({modifiers:Ne(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then((function(e){var r=i()(!0,{},e);ze(r);var n=Xe(r);return Ve({model:t}).then((function(o){return Ge({libraryIds:n,model:t}).then((function(n){return h&&function(e){var t=e.properties;qe(t).forEach((function(e){return function(e){var t=e.measure;if(He({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Ae(e)&&!e.disabled){if(r++,"object"!==Ae(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&$e(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),Le({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})}))})).catch((function(){return Promise.resolve(l)}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Ae(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return qe(r).forEach((function(e){return De(e)})),Ye({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function Le(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,l=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),ze(n);var p=Xe(n);return Je({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=qe(r)),!t.length)return Promise.resolve();if(!o&&!Te({measures:t,properties:r}))return t.forEach((function(e){return De(e)})),Promise.resolve();var l=o?void 0:Xe(r);return Ve({model:n,dimensionAndFieldList:a}).then((function(e){return Ge({libraryIds:l,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&We({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ae(e)&&!e.disabled){if(a++,"object"!==Ae(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Pe[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Pe[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Pe[r.type].updateModifier&&Pe[r.type].updateModifier(r,n.qHyperCubeDef);var a=we.getExpression(t),s=""===a?a:Pe[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||Oe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Oe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Fe(t)):De(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Ye({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function De(e){!function(e){var t=Ne(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ae(e)&&!e.disabled&&!Pe[e.type]}))}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Te(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({modifiers:Ne(e),properties:r,layout:n})}))}function _e(e){var t=Ne(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Pe[n.type]&&!n.disabled)return n}}function Oe(e){var t=_e(e);return!t||Pe[t.type].enableTotalsFunction(e)}function qe(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Ne(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function je(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function ze(e){qe(e).forEach((function(e){return function(e){var t=_e(e);t&&(void 0!==t.outputExpression&&je(t)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Fe(e){var t=Ne(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ae(t)&&(t.disabled||!Pe[t.type]&&je(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function $e(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function He(e){var t=e.measure,r=e.properties,n=e.layout;return!Be(t)&&We({modifiers:Ne(t),properties:r,layout:n})}function We(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ae(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ve(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ge(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.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})).catch((function(){return null}))}function Ue(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),Ue)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),Ue)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ue)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ue);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&s(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):function(e,t,r){if(!e)return Promise.resolve();var n=O.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()}(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ke(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Ae(e)&&!e.disabled&&Pe[e.type]&&Pe[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Xe(e){var t=qe(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Ne(t);if(We({modifiers:n,properties:e})){var i=Be(t);i&&r.push(i),o=o||Ke({modifiers:n,properties:e})}})),s(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Me[t.id].masterItemSubscriber=Me[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=s(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])}))}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,(function(){return e=t.id,r(de),delete n[e],void c();var e})),enabled:!1,properties:l(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return Ie({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Me[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in Ew.default=n.default,n)-1===["default"].indexOf(Ze)&&(Ew[Ze]=n[Ze]);Object.defineProperty(Ew,"__esModule",{value:!0})})();var Aw=Et(Rw);const Pw={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},kw={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}},Mw=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)=>(!Aw.hasActiveModifiers({measures:[e],properties:t.properties})||Aw.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")}),Iw={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:yS.Auto,translation:"Common.Auto"},{value:yS.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:yS.Pixels,translation:"Object.Table.Column.Pixels"},{value:yS.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:yS.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===yS.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===yS.Percentage}},Lw=()=>({...Pw,visibilityCondition:{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},tableCellStyling:{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}]},...kw,...Iw}),Dw={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},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},Tw=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:Mw(e)}},_w=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:Dw},presentation:{type:"items",translation:"properties.presentation",items:{...Lw(),...Cw(e)}}}}}),Ow=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:Tw(e)},presentation:{type:"items",translation:"properties.presentation",items:{...Lw(),...ww(e,{[bw.Image]:!0,[bw.Indicator]:!0,[bw.MiniChart]:!0})}}}}}),qw=e=>({..._w(e),...Ow(e)}),Nw=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...qw(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}}}),jw={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}},zw=({flags:e})=>{const t={ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1};return e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")?{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},t,{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]}:t},Fw=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")}),$w=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),Bw=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},Hw=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map((e=>Bw(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...se(n).filter((e=>!a.includes(e))).map((e=>Bw(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Ww=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Vw=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Bw(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Ww.filter((e=>!i.includes(e))).map((e=>Bw(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Gw=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Hw({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:Vw({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:$w(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:$w(`${e}.background`,"properties.background",((t,r)=>{const n=r?jx.WHITE:jx.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),Uw=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{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:$w(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:$w(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),Yw=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},Kw=e=>e.grid?.zebraStripes?.show,Xw={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=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)}},Jw=e=>e?.content?.hoverEffect,Zw={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:Jw,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:Jw,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},Qw=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,eE=({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,defaultValue:[],items:{headerSection:Gw({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:Yw,disableNoneCallback:Qw}),dimensionValueSection:Gw({section:"dimensionValues",translator:t,flags:e,getThemeValue:Yw}),measureValueSection:Gw({section:"measureValues",translator:t,flags:e,getThemeValue:Yw}),totalRowSection:Gw({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:Yw,disableNoneCallback:Qw}),nullValues:Uw({section:"nullValues",fallbackBackground:jx.NULL_VALUE_BACKGROUND,getThemeValue:Yw}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...Xw},border:$w("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??jx.BORDER_MEDIUM)),divider:$w("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??jx.BORDER_HEAVY))}}}},hoverEffectSection:Zw,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:Kw,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:Kw,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:Kw,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:Kw,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),tE=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[eE(e),Fw(e),zw(e),{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},{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]},...jw}}),rE={uses:"sorting"},nE={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},oE=e=>({type:"items",component:"accordion",items:{data:Nw(e),sorting:rE,addOns:nE,settings:tE(e)}});function iE(e){return{definition:oE(e),exploration:dw,data:gw(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(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return cw({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>ow({propertyTree:e,hyperCubePath:t})}}const aE=(e,r)=>t((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=e[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};t?.applyPatches([l],!0)})(e,r)),[e,r]),sE=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),lE=[];for(let e=0;e<256;++e)lE.push((e+256).toString(16).slice(1));let uE;const cE=new Uint8Array(16);var dE={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function pE(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!uE){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");uE=crypto.getRandomValues.bind(crypto)}return uE(cE)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(lE[e[t+0]]+lE[e[t+1]]+lE[e[t+2]]+lE[e[t+3]]+"-"+lE[e[t+4]]+lE[e[t+5]]+"-"+lE[e[t+6]]+lE[e[t+7]]+"-"+lE[e[t+8]]+lE[e[t+9]]+"-"+lE[e[t+10]]+lE[e[t+11]]+lE[e[t+12]]+lE[e[t+13]]+lE[e[t+14]]+lE[e[t+15]]).toLowerCase()}(n)}const fE=()=>{return crypto?.randomUUID?.()??(dE.randomUUID&&!e?dE.randomUUID():pE(e));var e},hE=({qLibraryId:e,cId:t})=>e??t??fE(),mE=e=>"number"==typeof e&&!Number.isNaN(+e),gE=e=>mE(e.qNum),bE=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);function vE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yE(e,t,r){return t=wE(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,RE()?Reflect.construct(t,r||[],wE(e).constructor):t.apply(e,r))}function xE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kE(n.key),n)}}function CE(e,t,r){return t&&SE(e.prototype,t),r&&SE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wE(e){return wE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wE(e)}function EE(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AE(e,t)}function RE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(RE=function(){return!!e})()}function AE(e,t){return AE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AE(e,t)}function PE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vE(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vE(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kE(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}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 IE={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:LE(e),value:LE(t),useEqualSign:r}}(r,o,i))}})),t}};function LE(e){try{return decodeURIComponent(e)}catch(t){return e}}function DE(e){if(!(this instanceof DE))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return IE.fromSearchString(t.search)}}})}function TE(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}DE.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},DE.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=TE((t=e[n]).key),t.value?r+="=".concat(TE(t.value)):r+=t.useEqualSign?"=":"";return r};var _E,OE=function(){return CE((function e(t){xE(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(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}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),qE=function(){return CE((function e(){xE(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new OE(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),NE=function(e){return e>=0&&e<=1114111},jE=function(e){return e.match(/[\s]/)},zE=function(e){function t(){return xE(this,t),yE(this,t,arguments)}return EE(t,e),CE(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var 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(t=i,r=0;r<5&&(null!=(n=e.next())&&!jE(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return NE(a)?String.fromCharCode(a):"�"}}])}(qE),FE=function(){function e(t,r){xE(this,e),this._key=t,this._value=r}return CE(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}])}(),$E=function(){function e(){xE(this,e)}return CE(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return FE.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return FE.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||FE.newInstanceIfNeeded(e,t,this._value)}}])}(),BE=function(){return CE((function e(){xE(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new $E);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),HE=function(){var e,t,r,n=[],o=[],i=new BE;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),WE=function(e){function t(){return xE(this,t),yE(this,t,arguments)}return EE(t,e),CE(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,HE.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=HE.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&NE(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&NE(n)?String.fromCharCode(n):null}}])}(qE),VE=function(e){function t(){return xE(this,t),yE(this,t,arguments)}return EE(t,e),CE(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),NE(o))?String.fromCharCode(o):(e.reset(),null)}}])}(qE),GE=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(_E=document.createElement("div"));var UE=Array.prototype.indexOf,YE=[",",".","_"," "],KE=[",",".","-","_"," "],XE={width:["%"],height:["%"]},JE={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},ZE={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":JE.image,"background-color":JE.color,"border-color":JE.color,"border-image":JE.image,color:JE.color,icon:JE.image,"list-style-image":JE.image,"outline-color":JE.color},QE={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function eR(e,t,r){var n;if(t){if(UE)return UE.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function tR(e){if(null==e)return"";var t,r=document.createTextNode(e);return _E.appendChild(r),t=_E.innerHTML,_E.removeChild(r),t}function rR(e,t,r){var n,o,i,a,s,l,u,c,d;for(e=oR(e).toLowerCase(),t=oR(t),i=0;i<QE.attr_name.length;i++)if(e.match(QE.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<QE.attr_val.length;i++)if(t.toLowerCase().match(QE.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=XE[e])||(n=KE),o="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&eR(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function nR(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=oR(e).toLowerCase(),t=oR(t),eR(e,QE.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<QE.css_val.length;n++)if(t.toLowerCase().indexOf(QE.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=ZE[e])||(o=JE.default),i="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&eR(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function oR(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new WE,new VE,new zE];!a;){n=r;for(var l=0;l<s.length;l++)(i=s[l].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var iR=[],aR=0;aR<255;aR++)iR[aR]=aR>=48&&aR<=57||aR>=65&&aR<=90||aR>=97&&aR<=122?null:aR.toString(16);var sR=function(e){return tR(e.unsafe)},lR=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=nR(t,r[t],!0),i+=nR(t,r[t],!0),o[t]=n[t]);return e.map?o:i},uR=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=rR(i,t[i],!0),o+=rR(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function cR(e,t){throw new Error(t)}var dR={canonicalize:oR,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===ME(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?sR(e):"css"===e.context?(null!=e.map&&"object"!==ME(e.map)&&cR(this,"Invalid parameter type"),lR(e)):"attr"===e.context?(null!=e.map&&"object"!==ME(e.map)&&cR(this,"Invalid parameter type"),uR(e)):void cR(this,"Invalid parameter type")},encodeForAttr:rR,encodeForAttr2:function(e){return rR("nonsens",e,!0)},encodeForCSS:nR,encodeForHref:function(e){oR(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new DE(e),r=DE.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+DE.encodeSearchParams(n)+t.hash).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){var r,n,o,i,a,s;for(t||(t=YE),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),eR(o,t)>=0||null==iR[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),s+="\\u".concat(a).concat(n.toUpperCase())));return s},encodeForHTML:tR,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=oR(t).toLowerCase():cR(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,s=function(e){var t,r=PE(null!==(t=GE.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),l=s.mimeType,u=s.encoding,c=s.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(l,u,c);return"image/svg+xml"===l?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";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(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const pR=(e,t)=>t.qAttrExps?.qValues?.[e],fR=(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"}}},hR=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&dR.isSafeDataURL(t)?{type:bw.Image,url:t,text:e,imageSize:r,resolvedImagePosition:fR(n,a),labelStructure:o,imageBox:i}:{type:bw.Text,url:void 0,text:e,labelStructure:o},mR=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:bw.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:bw.MiniChart,text:n,miniChart:a}},gR=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===vw.Attribute?void 0:r?.urlLabel},bR=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:bw.Link,url:dR.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:bw.Text,url:void 0,text:t,labelStructure:e}}},vR=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=yw(t),d=s(e);return c===bw.Image&&u[bw.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=pR(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),hR({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return hR({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=pR(r.imageLabel??-1,e)?.qText??n;return hR({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:bw.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===bw.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===vw.Attribute){const i=gR(r.url??-1,e,t);return bR({labelStructure:n,text:o||i||"",url:i})}if(i===vw.Dimension){const i=gR(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),bR({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:bw.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===bw.Indicator&&u[bw.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:bw.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===bw.MiniChart&&u[bw.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?mR(e,t,i,d):{type:bw.Text,url:void 0,text:d,labelStructure:a}},yR=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,xR=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",SR=1e4;function CR(e,t){return[...t].reverse().find((t=>t*e<=SR))||Math.floor(SR/e)}function wR(e,t){if(t.viewState?.skipTotals)return{atTop:!1,atBottom:!1};const[r,n,o,i,a]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function ER(e,t,r,n){return t?0===r?e.totals.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function RR(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return mE(r?.qNum)}function AR(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const PR=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const kR=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=n.length===a?n:Array.from(Array(a).keys()),{visibleColumnsOrder:l,visibleColumnIndexes:u}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const s=e<n,{qError:l}=s?t[e]:r[e-n],u=7005===l?.qErrorCode;return u?s?i++:a++:o[e]=s?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(s,o,i);return l.map(((n,o)=>function(e,t,r,n,o,i){const{qDimensionInfo:a,qMeasureInfo:s,qEffectiveInterColumnSortOrder:l}=e.qHyperCube,u=a.length,c=t<u,d=c?a[t]:s[t-u],p=c&&a[t].qGrouping===CS.Cyclic,f=t===l[0];let h,m,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:C}=d;if(c){const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles,b=e.qLocked??!1,v=n,({qDimensionType:h}=e)}else({qMiniChart:m}=d);const{qFallbackTitle:w,textAlign:E,qAttrExprInfo:R,qSortIndicator:A,qReverseSort:P,qApprMaxGlyphCount:k,columnWidth:M,qLibraryId:I}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:I,pageColIdx:r,qApprMaxGlyphCount:k,qReverseSort:P,columnWidth:M??{type:yS.Auto},selectionColIdx:v,isActivelySorted:f,id:hE(d),label:w,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:R.map((e=>e.id)),qAttrExprInfoIndex:sE(d),sortDirection:A&&"N"!==A?A:"A",totalInfo:ER(e,c,r,n),...!c&&{isTotalNumeric:RR(e,n)},...AR(E,h,c,o,i),representation:S,conditionalColoring:c?void 0:C,qMiniChart:m}}(e,n,o,u[n],t,r)))};const MR=(e,t)=>!(!e.snapshotData&&!t.viewState?.visibleHeight),IR=(e,t)=>void 0!==t.viewState?.usePagination?t.viewState.usePagination:!1!==e.usePagination||MR(e,t);var LR="$$material";const DR=["values","unit","step"];function TR(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=xr(e,DR),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)=>xt({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return xt({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(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]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const _R={borderRadius:4};function OR(e,t){return t?Cp(e,t,{clone:!1}):e}const qR={xs:0,sm:600,md:900,lg:1200,xl:1536},NR={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qR[e]}px)`};function jR(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||NR;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||NR;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||qR).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function zR(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function FR(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function $R(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:FR(e,r)||n,t&&(o=t(o,n,e)),o}function BR(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=FR(e.theme,n)||{};return jR(e,i,(e=>{let n=$R(a,o,e);return e===n&&"string"==typeof e&&(n=$R(a,o,`${t}${"default"===e?"":Lp(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const HR={m:"margin",p:"padding"},WR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},VR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},GR=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!VR[e])return[e];e=VR[e]}const[t,r]=e.split(""),n=HR[t],o=WR[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),UR=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],YR=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function KR(e,t,r,n){var o;const i=null!=(o=FR(e,t,!1))?o:r;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 XR(e){return KR(e,"spacing",8)}function JR(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function ZR(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=JR(t,r),e)),{})}(GR(r),n);return jR(e,e[r],o)}function QR(e,t){const r=XR(e.theme);return Object.keys(e).map((n=>ZR(e,t,n,r))).reduce(OR,{})}function eA(e){return QR(e,UR)}function tA(e){return QR(e,YR)}function rA(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?OR(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function nA(e){return"number"!=typeof e?e:`${e}px solid`}function oA(e,t){return BR({prop:e,themeKey:"borders",transform:t})}eA.propTypes={},eA.filterProps=UR,tA.propTypes={},tA.filterProps=YR;const iA=oA("border",nA),aA=oA("borderTop",nA),sA=oA("borderRight",nA),lA=oA("borderBottom",nA),uA=oA("borderLeft",nA),cA=oA("borderColor"),dA=oA("borderTopColor"),pA=oA("borderRightColor"),fA=oA("borderBottomColor"),hA=oA("borderLeftColor"),mA=oA("outline",nA),gA=oA("outlineColor"),bA=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=KR(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:JR(t,e)});return jR(e,e.borderRadius,r)}return null};bA.propTypes={},bA.filterProps=["borderRadius"],rA(iA,aA,sA,lA,uA,cA,dA,pA,fA,hA,bA,mA,gA);const vA=e=>{if(void 0!==e.gap&&null!==e.gap){const t=KR(e.theme,"spacing",8),r=e=>({gap:JR(t,e)});return jR(e,e.gap,r)}return null};vA.propTypes={},vA.filterProps=["gap"];const yA=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=KR(e.theme,"spacing",8),r=e=>({columnGap:JR(t,e)});return jR(e,e.columnGap,r)}return null};yA.propTypes={},yA.filterProps=["columnGap"];const xA=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=KR(e.theme,"spacing",8),r=e=>({rowGap:JR(t,e)});return jR(e,e.rowGap,r)}return null};xA.propTypes={},xA.filterProps=["rowGap"];function SA(e,t){return"grey"===t?t:e}rA(vA,yA,xA,BR({prop:"gridColumn"}),BR({prop:"gridRow"}),BR({prop:"gridAutoFlow"}),BR({prop:"gridAutoColumns"}),BR({prop:"gridAutoRows"}),BR({prop:"gridTemplateColumns"}),BR({prop:"gridTemplateRows"}),BR({prop:"gridTemplateAreas"}),BR({prop:"gridArea"}));function CA(e){return e<=1&&0!==e?100*e+"%":e}rA(BR({prop:"color",themeKey:"palette",transform:SA}),BR({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:SA}),BR({prop:"backgroundColor",themeKey:"palette",transform:SA}));const wA=BR({prop:"width",transform:CA}),EA=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||qR[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:CA(t)}};return jR(e,e.maxWidth,t)}return null};EA.filterProps=["maxWidth"];const RA=BR({prop:"minWidth",transform:CA}),AA=BR({prop:"height",transform:CA}),PA=BR({prop:"maxHeight",transform:CA}),kA=BR({prop:"minHeight",transform:CA});BR({prop:"size",cssProperty:"width",transform:CA}),BR({prop:"size",cssProperty:"height",transform:CA});rA(wA,EA,RA,AA,PA,kA,BR({prop:"boxSizing"}));const MA={border:{themeKey:"borders",transform:nA},borderTop:{themeKey:"borders",transform:nA},borderRight:{themeKey:"borders",transform:nA},borderBottom:{themeKey:"borders",transform:nA},borderLeft:{themeKey:"borders",transform:nA},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:nA},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bA},color:{themeKey:"palette",transform:SA},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:SA},backgroundColor:{themeKey:"palette",transform:SA},p:{style:tA},pt:{style:tA},pr:{style:tA},pb:{style:tA},pl:{style:tA},px:{style:tA},py:{style:tA},padding:{style:tA},paddingTop:{style:tA},paddingRight:{style:tA},paddingBottom:{style:tA},paddingLeft:{style:tA},paddingX:{style:tA},paddingY:{style:tA},paddingInline:{style:tA},paddingInlineStart:{style:tA},paddingInlineEnd:{style:tA},paddingBlock:{style:tA},paddingBlockStart:{style:tA},paddingBlockEnd:{style:tA},m:{style:eA},mt:{style:eA},mr:{style:eA},mb:{style:eA},ml:{style:eA},mx:{style:eA},my:{style:eA},margin:{style:eA},marginTop:{style:eA},marginRight:{style:eA},marginBottom:{style:eA},marginLeft:{style:eA},marginX:{style:eA},marginY:{style:eA},marginInline:{style:eA},marginInlineStart:{style:eA},marginInlineEnd:{style:eA},marginBlock:{style:eA},marginBlockStart:{style:eA},marginBlockEnd:{style:eA},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:vA},rowGap:{style:xA},columnGap:{style:yA},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:CA},maxWidth:{style:EA},minWidth:{transform:CA},height:{transform:CA},maxHeight:{transform:CA},minHeight:{transform:CA},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function IA(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=FR(r,s)||{};if(u)return u(o);return jR(o,t,(t=>{let r=$R(c,l,t);return t===r&&"string"==typeof t&&(r=$R(c,l,`${e}${"default"===t?"":Lp(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:MA;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{});return r||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(n).forEach((r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=OR(u,e(r,o,i,s));else{const e=jR({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?u=OR(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=OR(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":zR(l,u)}:zR(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const LA=IA();function DA(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}LA.filterProps=["sx"];const TA=["breakpoints","palette","spacing","shape"];function _A(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=xr(e,TA),s=TR(r),l=function(e=8){if(e.mui)return e;const t=XR({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Cp({breakpoints:s,direction:"ltr",components:{},palette:xt({mode:"light"},n),spacing:l,shape:xt({},_R,i)},a);return u.applyStyles=DA,u=t.reduce(((e,t)=>Cp(e,t)),u),u.unstable_sxConfig=xt({},MA,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return LA({sx:e,theme:this})},u}var OA=Object.freeze({__proto__:null,default:_A,private_createBreakpoints:TR,unstable_applyStyles:DA});function qA(e=null){const t=S.useContext(np);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const NA=_A();function jA(e=NA){return qA(e)}function zA(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function FA({styles:e,themeId:t,defaultTheme:r={}}){const n=jA(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>zA("function"==typeof e?e(o):e))):zA(i)),Ll.jsx(mp,{styles:i})}const $A=["sx"];function BA(e){const{sx:t}=e,r=xr(e,$A),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:MA;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return xp(r)?xt({},n,r):n}:xt({},n,t),xt({},o,{sx:i})}var HA=Object.freeze({__proto__:null,default:LA,extendSxProp:BA,unstable_createStyleFunctionSx:IA,unstable_defaultSxConfig:MA});const WA=["className","component"];function VA(e){if(e.type)return e;if("#"===e.charAt(0))return VA(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(wu(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=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(n))throw new Error(wu(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function GA(e,t){return e=VA(e),t=function(e,t=0,r=1){return gh(e,t,r)}(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:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}const UA=["value"],YA=S.createContext();function KA(e){let{value:t}=e,r=xr(e,UA);return Ll.jsx(YA.Provider,xt({value:null==t||t},r))}const XA=S.createContext(void 0);function JA({value:e,children:t}){return Ll.jsx(XA.Provider,{value:e,children:t})}function ZA({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?hh(o.defaultProps,n):o.styleOverrides||o.variants?n:hh(o,n)}({props:e,name:t,theme:{components:S.useContext(XA)}})}const QA={};function eP(e,t,r,n=!1){return S.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?xt({},t,{[e]:i}):i;return n?()=>a:a}return xt({},t,e?{[e]:r}:r)}),[e,t,r,n])}function tP(e){const{children:t,theme:r,themeId:n}=e,o=qA(QA),i=Qh()||QA,a=eP(n,o,r),s=eP(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=qA(),r=Ph()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",mh((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}}),[o,r]),o?Ll.jsx(FA,{styles:o}):null}(a);return Ll.jsx(tm,{theme:s,children:Ll.jsx(np.Provider,{value:a,children:Ll.jsx(KA,{value:l,children:Ll.jsxs(JA,{value:null==a?void 0:a.components,children:[u,t]})})})})}function rP(e,t){return xt({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var nP={},oP={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(oP);var iP=oP.exports,aP=iP;Object.defineProperty(nP,"__esModule",{value:!0});var sP=nP.alpha=xP;nP.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=mP(e),a=mP(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return bP({type:"rgb",values:s})},nP.colorChannel=void 0;var lP=nP.darken=SP;nP.decomposeColor=mP,nP.emphasize=wP;var uP=nP.getContrastRatio=function(e,t){const r=yP(e),n=yP(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};nP.getLuminance=yP,nP.hexToRgb=hP,nP.hslToRgb=vP;var cP=nP.lighten=CP;nP.private_safeAlpha=function(e,t,r){try{return xP(e,t)}catch(t){return e}},nP.private_safeColorChannel=void 0,nP.private_safeDarken=function(e,t,r){try{return SP(e,t)}catch(t){return e}},nP.private_safeEmphasize=function(e,t,r){try{return wP(e,t)}catch(t){return e}},nP.private_safeLighten=function(e,t,r){try{return CP(e,t)}catch(t){return e}},nP.recomposeColor=bP,nP.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=mP(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 dP=aP(cm),pP=aP(dm);function fP(e,t=0,r=1){return(0,pP.default)(e,t,r)}function hP(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function mP(e){if(e.type)return e;if("#"===e.charAt(0))return mP(hP(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,dP.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=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(n))throw new Error((0,dP.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const gP=e=>{const t=mP(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};nP.colorChannel=gP;function bP(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function vP(e){e=mP(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),bP({type:s,values:l})}function yP(e){let t="hsl"===(e=mP(e)).type||"hsla"===e.type?mP(vP(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 xP(e,t){return e=mP(e),t=fP(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,bP(e)}function SP(e,t){if(e=mP(e),t=fP(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 r=0;r<3;r+=1)e.values[r]*=1-t;return bP(e)}function CP(e,t){if(e=mP(e),t=fP(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return bP(e)}function wP(e,t=.15){return yP(e)>.5?SP(e,t):CP(e,t)}nP.private_safeColorChannel=(e,t)=>{try{return gP(e)}catch(t){return e}};const EP={black:"#000",white:"#fff"},RP={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"},AP="#f3e5f5",PP="#ce93d8",kP="#ba68c8",MP="#ab47bc",IP="#9c27b0",LP="#7b1fa2",DP="#e57373",TP="#ef5350",_P="#f44336",OP="#d32f2f",qP="#c62828",NP="#ffb74d",jP="#ffa726",zP="#ff9800",FP="#f57c00",$P="#e65100",BP="#e3f2fd",HP="#90caf9",WP="#42a5f5",VP="#1976d2",GP="#1565c0",UP="#4fc3f7",YP="#29b6f6",KP="#03a9f4",XP="#0288d1",JP="#01579b",ZP="#81c784",QP="#66bb6a",ek="#4caf50",tk="#388e3c",rk="#2e7d32",nk="#1b5e20",ok=["mode","contrastThreshold","tonalOffset"],ik={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:EP.white,default:EP.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}},ak={text:{primary:EP.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:EP.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 sk(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=cP(e.main,o):"dark"===t&&(e.dark=lP(e.main,i)))}function lk(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=xr(e,ok),i=e.primary||function(e="light"){return"dark"===e?{main:HP,light:BP,dark:WP}:{main:VP,light:WP,dark:GP}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:PP,light:AP,dark:MP}:{main:IP,light:kP,dark:LP}}(t),s=e.error||function(e="light"){return"dark"===e?{main:_P,light:DP,dark:OP}:{main:OP,light:TP,dark:qP}}(t),l=e.info||function(e="light"){return"dark"===e?{main:YP,light:UP,dark:XP}:{main:XP,light:KP,dark:JP}}(t),u=e.success||function(e="light"){return"dark"===e?{main:QP,light:ZP,dark:tk}:{main:rk,light:ek,dark:nk}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:jP,light:NP,dark:FP}:{main:"#ed6c02",light:zP,dark:$P}}(t);function d(e){return uP(e,ak.text.primary)>=r?ak.text.primary:ik.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=xt({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(wu(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(wu(12,t?` (${t})`:"",JSON.stringify(e.main)));return sk(e,"light",o,n),sk(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ak,light:ik};return Cp(xt({common:xt({},EP),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:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:RP,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const uk=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ck={textTransform:"uppercase"},dk='"Roboto", "Helvetica", "Arial", sans-serif';function pk(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=dk,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=xr(r,uk),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return xt({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===dk?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);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,ck),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ck),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Cp(xt({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function fk(...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 hk=["none",fk(0,2,1,-1,0,1,1,0,0,1,3,0),fk(0,3,1,-2,0,2,2,0,0,1,5,0),fk(0,3,3,-2,0,3,4,0,0,1,8,0),fk(0,2,4,-1,0,4,5,0,0,1,10,0),fk(0,3,5,-1,0,5,8,0,0,1,14,0),fk(0,3,5,-1,0,6,10,0,0,1,18,0),fk(0,4,5,-2,0,7,10,1,0,2,16,1),fk(0,5,5,-3,0,8,10,1,0,3,14,2),fk(0,5,6,-3,0,9,12,1,0,3,16,2),fk(0,6,6,-3,0,10,14,1,0,4,18,3),fk(0,6,7,-4,0,11,15,1,0,4,20,3),fk(0,7,8,-4,0,12,17,2,0,5,22,4),fk(0,7,8,-4,0,13,19,2,0,5,24,4),fk(0,7,9,-4,0,14,21,2,0,5,26,4),fk(0,8,9,-5,0,15,22,2,0,6,28,5),fk(0,8,10,-5,0,16,24,2,0,6,30,5),fk(0,8,11,-5,0,17,26,2,0,6,32,5),fk(0,9,11,-5,0,18,28,2,0,7,34,6),fk(0,9,12,-6,0,19,29,2,0,7,36,6),fk(0,10,13,-6,0,20,31,3,0,8,38,7),fk(0,10,13,-6,0,21,33,3,0,8,40,7),fk(0,10,14,-6,0,22,35,3,0,8,42,7),fk(0,11,14,-7,0,23,36,3,0,9,44,8),fk(0,11,15,-7,0,24,38,3,0,9,46,8)],mk=["duration","easing","delay"],gk={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)"},bk={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vk(e){return`${Math.round(e)}ms`}function yk(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function xk(e){const t=xt({},gk,e.easing),r=xt({},bk,e.duration);return xt({getAutoHeightDuration:yk,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return xr(n,mk),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:vk(o)} ${i} ${"string"==typeof a?a:vk(a)}`)).join(",")}},e,{easing:t,duration:r})}const Sk={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ck=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function wk(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=xr(e,Ck);if(e.vars&&void 0===e.generateCssVars)throw new Error(wu(18));const s=lk(n),l=_A(e);let u=Cp(l,{mixins:rP(l.breakpoints,r),palette:s,shadows:hk.slice(),typography:pk(s,i),transitions:xk(o),zIndex:xt({},Sk)});return u=Cp(u,a),u=t.reduce(((e,t)=>Cp(e,t)),u),u.unstable_sxConfig=xt({},MA,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return LA({sx:e,theme:this})},u}const Ek=wk();var Rk,Ak={},Pk={exports:{}};function kk(){return Rk||(Rk=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 r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}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}(Pk)),Pk.exports}var Mk,Ik={exports:{}};function Lk(){return Mk||(Mk=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Ik)),Ik.exports}var Dk=Rt(OA),Tk=Rt(HA),_k=iP;Object.defineProperty(Ak,"__esModule",{value:!0});var Ok=Ak.default=function(e={}){const{themeId:t,defaultTheme:r=Yk,rootShouldForwardProp:n=Gk,slotShouldForwardProp:o=Gk}=e,i=e=>(0,$k.default)((0,qk.default)({},e,{theme:Xk((0,qk.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,jk.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Jk(Kk(l))}=a,p=(0,Nk.default)(a,Wk),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=Gk;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,jk.default)(e,(0,qk.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,zk.isPlainObject)(e)?n=>{const o=Xk({theme:n.theme,defaultTheme:r,themeId:t});return Zk(e,(0,qk.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(n,...o)=>{let a=v(n);const l=o?o.map(v):[];s&&d&&l.push((e=>{const n=Xk((0,qk.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Zk(r,(0,qk.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=Xk((0,qk.default)({},e,{defaultTheme:r,themeId:t}));return Zk({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,qk.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=b(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return b.withConfig&&(y.withConfig=b.withConfig),y}};Ak.shouldForwardProp=Gk,Ak.systemDefaultTheme=void 0;var qk=_k(kk()),Nk=_k(Lk()),jk=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Vk(t);if(r&&r.has(e))return r.get(e);var n={__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(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(ng),zk=og;_k(ig),_k(ag);var Fk=_k(Dk),$k=_k(Tk);const Bk=["ownerState"],Hk=["variants"],Wk=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Vk(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Vk=function(e){return e?r:t})(e)}function Gk(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Uk(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Yk=Ak.systemDefaultTheme=(0,Fk.default)(),Kk=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Xk({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Jk(e){return e?(t,r)=>r[e]:null}function Zk(e,t,r){let{ownerState:n}=t,o=(0,Nk.default)(t,Bk);const i="function"==typeof e?e((0,qk.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>Zk(e,(0,qk.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Nk.default)(i,Hk);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,qk.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,qk.default)({ownerState:n},o,n)):e.style;t.push(r?Uk((0,jk.internal_serializeStyles)(i),r):i)}})),t}return r?Uk((0,jk.internal_serializeStyles)(i),r):i}const Qk=Ok({themeId:LR,defaultTheme:Ek,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),eM=["theme"];function tM(e){let{theme:t}=e,r=xr(e,eM);const n=t[LR];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=xt({},n,{vars:null}):t&&!t.vars&&(o=xt({},t,{vars:null}))),Ll.jsx(tP,xt({},r,{themeId:n?LR:void 0,theme:o}))}var rM={exports:{}};
90
+ `),_c.rippleVisible,Vc,550,(({theme:e})=>e.transitions.easing.easeInOut),_c.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),_c.child,_c.childLeaving,Wc,550,(({theme:e})=>e.transitions.easing.easeInOut),_c.childPulsate,Uc,(({theme:e})=>e.transitions.easing.easeInOut)),Kc=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=zr(r,jc),[s,l]=P.useState([]),u=P.useRef(0),c=P.useRef(null);P.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=P.useRef(!1),p=Qs(),f=P.useRef(null),m=P.useRef(null),h=P.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,er.jsx(Yc,{classes:{ripple:is(o.ripple,_c.ripple),rippleVisible:is(o.rippleVisible,_c.rippleVisible),ripplePulsate:is(o.ripplePulsate,_c.ripplePulsate),child:is(o.child,_c.child),childLeaving:is(o.childLeaving,_c.childLeaving),childPulsate:is(o.childPulsate,_c.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=P.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=P.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=P.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return P.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),er.jsx(Gc,jr({className:is(_c.root,o.root,i),ref:m},a,{children:er.jsx(Dc,{component:null,exit:!0,children:s})}))}));function Xc(e){return ls("MuiButtonBase",e)}const Jc=us("MuiButtonBase",["root","disabled","focusVisible"]),Zc=["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"],Qc=ic("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"},[`&.${Jc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ed=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:C,onTouchEnd:E,onTouchMove:R,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:k}=r,T=zr(r,Zc),q=P.useRef(null),L=P.useRef(null),O=Ks(L,D),{isFocusVisibleRef:N,onFocus:_,onBlur:j,ref:z}=ll(),[F,H]=P.useState(!1);l&&F&&H(!1),P.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),q.current.focus()}})),[]);const[$,B]=P.useState(!1);P.useEffect((()=>{B(!0)}),[]);const V=$&&!u&&!l;function W(e,t,r=c){return Ys((n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0}))}P.useEffect((()=>{F&&d&&!u&&$&&L.current.pulsate()}),[u,d,F,$]);const U=W("start",S),G=W("stop",h),Y=W("stop",g),K=W("stop",C),X=W("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),J=W("start",A),Z=W("stop",E),Q=W("stop",R),ee=W("stop",(e=>{j(e),!1===N.current&&H(!1),f&&f(e)}),!1),te=Ys((e=>{q.current||(q.current=e.currentTarget),_(e),!0===N.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=P.useRef(!1),oe=Ys((e=>{d&&!ne.current&&F&&L.current&&" "===e.key&&(ne.current=!0,L.current.stop(e,(()=>{L.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=Ys((e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===k?"button":k,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Ks(t,z,q),ue=jr({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=cl({root:["root",t&&"disabled",r&&"focusVisible"]},Xc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return er.jsxs(Qc,jr({as:ae,className:is(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:I,type:k},se,T,{children:[i,V?er.jsx(Kc,jr({ref:O,center:o},M)):null]}))}));function td(e){return ls("MuiIconButton",e)}const rd=us("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),nd=["edge","children","className","color","disabled","disableFocusRipple","size"],od=ic(ed,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Xi(r.color)}`],r.edge&&t[`edge${Xi(r.edge)}`],t[`size${Xi(r.size)}`]]}})((({theme:e,ownerState:t})=>jr({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(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return jr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&jr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":jr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${rd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),id=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=zr(r,nd),d=jr({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return cl({root:["root",r&&"disabled","default"!==n&&`color${Xi(n)}`,o&&`edge${Xi(o)}`,`size${Xi(i)}`]},td,t)})(d);return er.jsx(od,jr({className:is(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function ad(e){return ls("MuiTypography",e)}us("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const sd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ld=ic("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Xi(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>jr({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}))),ud={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},dd=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTypography"}),n=(e=>cd[e]||e)(r.color),o=es(jr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=ud}=o,f=zr(o,sd),m=jr({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=s||(c?"p":p[d]||ud[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return cl({root:["root",i,"inherit"!==e.align&&`align${Xi(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},ad,a)})(m);return er.jsx(ld,jr({as:h,ref:t,ownerState:m,className:is(g.root,a)},f))}));const pd=P.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=P.useState(null),s=Ks(P.isValidElement(r)?gl(r):null,t);if(Ls((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Ls((()=>{if(i&&!o)return Bs(t,i),()=>{Bs(t,null)}}),[t,i,o]),o){if(P.isValidElement(r)){const e={ref:s};return P.cloneElement(r,e)}return er.jsx(P.Fragment,{children:r})}return er.jsx(P.Fragment,{children:i?H.createPortal(r,i):i})})),fd=["onChange","maxRows","minRows","style","value"];function md(e){return parseInt(e,10)||0}const hd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function gd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const bd=P.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=zr(e,fd),{current:l}=P.useRef(null!=a),u=P.useRef(null),c=Ks(t,u),d=P.useRef(null),p=P.useRef(null),f=P.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=$s(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=md(i.paddingBottom)+md(i.paddingTop),l=md(i.borderBottomWidth)+md(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),m=Ys((()=>{const e=u.current,t=f();if(!e||!t||gd(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),h=P.useCallback((()=>{const e=u.current,t=f();if(!e||!t||gd(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),g=P.useRef(-1);Ls((()=>{const e=Fs(h),t=null==u?void 0:u.current;if(!t)return;const r=$s(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{m()&&(n.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[f,h,m]),Ls((()=>{h()}));return er.jsxs(P.Fragment,{children:[er.jsx("textarea",jr({value:a,onChange:e=>{l||h(),r&&r(e)},ref:c,rows:o,style:i},s)),er.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:jr({},hd,i,{paddingTop:0,paddingBottom:0})})]})}));function vd({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const yd=P.createContext(void 0);function xd(){return P.useContext(yd)}function Sd(e){return er.jsx(Za,jr({},e,{defaultTheme:Cu,themeId:_r}))}function wd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Cd(e,t=!1){return e&&(wd(e.value)&&""!==e.value||t&&wd(e.defaultValue)&&""!==e.defaultValue)}function Ed(e){return ls("MuiInputBase",e)}const Rd=us("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Pd=["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"],Ad=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Xi(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Id=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Md=ic("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ad})((({theme:e,ownerState:t})=>jr({},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",[`&.${Rd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&jr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Dd=ic("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Id})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=jr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return jr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Rd.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},[`&.${Rd.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"})})),kd=er.jsx(Sd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Td=P.forwardRef((function(e,t){var r;const n=uc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:C,onChange:E,onClick:R,onFocus:A,onKeyDown:I,onKeyUp:M,placeholder:D,readOnly:k,renderSuffix:T,rows:q,slotProps:L={},slots:O={},startAdornment:N,type:_="text",value:j}=n,z=zr(n,Pd),F=null!=b.value?b.value:j,{current:H}=P.useRef(null!=F),$=P.useRef(),B=P.useCallback((e=>{}),[]),V=Ks($,v,b.ref,B),[W,U]=P.useState(!1),G=xd(),Y=vd({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:W,P.useEffect((()=>{!G&&d&&W&&(U(!1),C&&C())}),[G,d,W,C]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=P.useCallback((e=>{Cd(e)?K&&K():X&&X()}),[K,X]);Ls((()=>{H&&J({value:F})}),[F,J,H]);P.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;S&&"input"===Z&&(Q=jr(q?{type:void 0,minRows:q,maxRows:q}:{type:void 0,maxRows:y,minRows:x},Q),Z=bd);P.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=jr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:S,size:Y.size,startAdornment:N,type:_}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return cl({root:["root",`color${Xi(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Xi(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Ed,t)})(ee),re=O.root||l.Root||Md,ne=L.root||u.root||{},oe=O.input||l.Input||Dd;return Q=jr({},Q,null!=(r=L.input)?r:u.input),er.jsxs(P.Fragment,{children:[!p&&kd,er.jsxs(re,jr({},ne,!dl(re)&&{ownerState:jr({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},z,{className:is(te.root,ne.className,s,k&&"MuiInputBase-readOnly"),children:[N,er.jsx(yd.Provider,{value:null,children:er.jsx(oe,jr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:w,placeholder:D,readOnly:k,required:Y.required,rows:q,value:F,onKeyDown:I,onKeyUp:M,type:_},Q,!dl(oe)&&{as:Z,ownerState:jr({},ee,Q.ownerState)},{ref:V,className:is(te.input,Q.className,k&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||$.current;if(null==t)throw new Error(Or(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(jr({},Y,{startAdornment:N})):null]}))]})}));function qd(e){return ls("MuiInput",e)}const Ld=jr({},Rd,us("MuiInput",["root","underline","input"]));function Od(e){return ls("MuiOutlinedInput",e)}const Nd=jr({},Rd,us("MuiOutlinedInput",["root","notchedOutline","input"]));function _d(e){return ls("MuiFilledInput",e)}const jd=jr({},Rd,us("MuiFilledInput",["root","underline","input"]));var zd=function(e,t){function r(r,n){return er.jsx(fc,jr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=fc.muiName,P.memo(P.forwardRef(r))}(er.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Fd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Hd={entering:{opacity:1},entered:{opacity:1}},$d=P.forwardRef((function(e,t){const r=Eu(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=Cc}=e,v=zr(e,Fd),y=P.useRef(null),x=Ks(y,gl(a),t),S=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},w=S(d),C=S(((e,t)=>{kc(e);const n=Tc({style:h,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),E=S(c),R=S(m),A=S((e=>{const t=Tc({style:h,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),I=S(f);return er.jsx(b,jr({appear:i,in:l,nodeRef:y,onEnter:C,onEntered:E,onEntering:w,onExit:A,onExited:I,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>P.cloneElement(a,jr({style:jr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Hd[e],h,a.props.style),ref:x},t))}))}));function Bd(e){return ls("MuiBackdrop",e)}us("MuiBackdrop",["root","invisible"]);const Vd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Wd=ic("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>jr({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"}))),Ud=P.forwardRef((function(e,t){var r,n,o;const i=uc({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=$d,transitionDuration:g}=i,b=zr(i,Vd),v=jr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return cl({root:["root",r&&"invisible"]},Bd,t)})(v),x=null!=(r=f.root)?r:c.root;return er.jsx(h,jr({in:p,timeout:g},b,{children:er.jsx(Wd,jr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:l,className:is(y.root,s,null==x?void 0:x.className),ownerState:jr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Gd=us("MuiBox",["root"]),Yd=wu(),Kd=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Li("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ba);return P.forwardRef((function(e,a){const s=Xa(r),l=es(e),{className:u,component:c="div"}=l,d=zr(l,as);return er.jsx(i,jr({as:c,ref:a,className:is(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:_r,defaultTheme:Yd,defaultClassName:Gd.root,generateClassName:ns.generate});function Xd(e){return ls("MuiButton",e)}const Jd=us("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"]),Zd=P.createContext({}),Qd=P.createContext(void 0),ep=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],tp=e=>jr({},"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}}),rp=ic(ed,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Xi(r.color)}`],t[`size${Xi(r.size)}`],t[`${r.variant}Size${Xi(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return jr({},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":jr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl(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(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(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":jr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Jd.focusVisible}`]:jr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Jd.disabled}`]:jr({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(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Jd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Jd.disabled}`]:{boxShadow:"none"}})),np=ic("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Xi(r.size)}`]]}})((({ownerState:e})=>jr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},tp(e)))),op=ic("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Xi(r.size)}`]]}})((({ownerState:e})=>jr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},tp(e)))),ip=P.forwardRef((function(e,t){const r=P.useContext(Zd),n=P.useContext(Qd),o=uc({props:qs(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,y=zr(o,ep),x=jr({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return jr({},a,cl({root:["root",i,`${i}${Xi(t)}`,`size${Xi(o)}`,`${i}Size${Xi(o)}`,`color${Xi(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Xi(o)}`],endIcon:["icon","endIcon",`iconSize${Xi(o)}`]},Xd,a))})(x),w=g&&er.jsx(np,{className:S.startIcon,ownerState:x,children:g}),C=p&&er.jsx(op,{className:S.endIcon,ownerState:x,children:p}),E=n||"";return er.jsxs(rp,jr({ownerState:x,className:is(r.className,S.root,l,E),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:is(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[w,i,C]}))}));function ap(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sp(e){return parseInt($s(e).getComputedStyle(e).paddingRight,10)||0}function lp(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&ap(e,o)}))}function up(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function cp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Hs(e);return t.body===e?$s(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ul(Hs(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${sp(n)+e}px`;const t=Hs(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${sp(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Hs(n).body;else{const t=n.parentElement,r=$s(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const dp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function pp(e){const t=[],r=[];return Array.from(e.querySelectorAll(dp)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function fp(){return!0}function mp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=pp,isEnabled:a=fp,open:s}=e,l=P.useRef(!1),u=P.useRef(null),c=P.useRef(null),d=P.useRef(null),p=P.useRef(null),f=P.useRef(!1),m=P.useRef(null),h=Ks(gl(t),m),g=P.useRef(null);P.useEffect((()=>{s&&m.current&&(f.current=!r)}),[r,s]),P.useEffect((()=>{if(!s||!m.current)return;const e=Hs(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),P.useEffect((()=>{if(!s||!m.current)return;const e=Hs(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return er.jsxs(P.Fragment,{children:[er.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),er.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const hp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&ap(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);lp(t,e.mount,e.modalRef,n,!0);const o=up(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=up(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=cp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=up(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&ap(e.modalRef,t),lp(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&ap(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function gp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=hp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=P.useRef({}),f=P.useRef(null),m=P.useRef(null),h=Ks(m,d),[g,b]=P.useState(!c),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=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},w=Ys((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Hs(f.current).body;o.add(x(),e),m.current&&S()})),C=P.useCallback((()=>o.isTopModal(x())),[o]),E=Ys((e=>{f.current=e,e&&(c&&C()?S():m.current&&ap(m.current,y))})),R=P.useCallback((()=>{o.remove(x(),y)}),[y,o]);P.useEffect((()=>()=>{R()}),[R]),P.useEffect((()=>{c?w():v&&i||R()}),[c,R,v,i,w]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=pl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=jr({},r,t);return jr({role:"presentation"},n,{onKeyDown:A(n),ref:h})},getBackdropProps:(e={})=>jr({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:zs((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:zs((()=>{b(!0),s&&s(),i&&R()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:E,isTopModal:C,exited:g,hasTransition:v}}function bp(e){return ls("MuiModal",e)}us("MuiModal",["root","hidden","backdrop"]);const vp=["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"],yp=ic("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>jr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),xp=ic(Ud,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Sp=P.forwardRef((function(e,t){var r,n,o,i,a,s;const l=uc({name:"MuiModal",props:e}),{BackdropComponent:u=xp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:E=!1,keepMounted:R=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=l,k=zr(l,vp),T=jr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:E,keepMounted:R}),{getRootProps:q,getBackdropProps:L,getTransitionProps:O,portalRef:N,isTopModal:_,exited:j,hasTransition:z}=gp(jr({},T,{rootRef:t})),F=jr({},T,{exited:j}),H=(e=>{const{open:t,exited:r,classes:n}=e;return cl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},bp,n)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const B=null!=(r=null!=(n=null==D?void 0:D.root)?n:g.Root)?r:yp,V=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,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=hl({elementType:B,externalSlotProps:W,externalForwardedProps:k,getSlotProps:q,additionalProps:{ref:t,as:h},ownerState:F,className:is(d,null==W?void 0:W.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=hl({elementType:V,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L(jr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:is(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return R||I||z&&!j?er.jsx(pd,{ref:N,container:m,disablePortal:S,children:er.jsxs(B,jr({},G,{children:[!E&&u?er.jsx(V,jr({},Y)):null,er.jsx(mp,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:_,open:I,children:P.cloneElement(f,$)})]}))}):null}));function wp(e){return ls("MuiDivider",e)}const Cp=us("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Ep=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Rp=ic("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>jr({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(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})=>jr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>jr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>jr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>jr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Pp=ic("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>jr({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)`}))),Ap=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=zr(r,Ep),m=jr({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return cl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},wp,n)})(m);return er.jsx(Rp,jr({as:a,className:is(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?er.jsx(Pp,{className:h.wrapper,ownerState:m,children:o}):null}))}));Ap.muiSkipListHighlight=!0;const Ip=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Mp=ic(Md,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ad(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return jr({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}},[`&.${jd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${jd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${jd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jd.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(.${jd.disabled}, .${jd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${jd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&jr({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Dp=ic(Dd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Id})((({theme:e,ownerState:t})=>jr({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}))),kp=P.forwardRef((function(e,t){var r,n,o,i;const a=uc({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=zr(a,Ip),g=jr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return jr({},t,cl({root:["root",!r&&"underline"],input:["input"]},_d,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Fi(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Mp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Dp;return er.jsx(Td,jr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));kp.muiName="Input";const Tp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function qp(e){return`scale(${e}, ${e**2})`}const Lp={entering:{opacity:1,transform:qp(1)},entered:{opacity:1,transform:"none"}},Op="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Np=P.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Cc}=e,g=zr(e,Tp),b=Qs(),v=P.useRef(),y=Eu(),x=P.useRef(null),S=Ks(x,gl(o),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(u),E=w(((e,t)=>{kc(e);const{duration:r,delay:n,easing:o}=Tc({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Op?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),R=w(l),A=w(p),I=w((e=>{const{duration:t,delay:r,easing:n}=Tc({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Op?o:.666*o,delay:Op?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=qp(.75),c&&c(e)})),M=w(d);return er.jsx(h,jr({appear:n,in:a,nodeRef:x,onEnter:E,onEntered:R,onEntering:C,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===m&&b.start(v.current||0,e),r&&r(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>P.cloneElement(o,jr({style:jr({opacity:0,transform:qp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Lp[e],f,o.props.style),ref:S},t))}))}));Np.muiSupportAuto=!0;const _p=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],jp=ic(Md,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ad(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),jr({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ld.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ld.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ld.disabled}, .${Ld.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ld.disabled}:before`]:{borderBottomStyle:"dotted"}})})),zp=ic(Dd,{name:"MuiInput",slot:"Input",overridesResolver:Id})({}),Fp=P.forwardRef((function(e,t){var r,n,o,i;const a=uc({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=zr(a,_p),b=(e=>{const{classes:t,disableUnderline:r}=e;return jr({},t,cl({root:["root",!r&&"underline"],input:["input"]},qd,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Fi(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:l.Root)?r:jp,S=null!=(o=null!=(i=m.input)?i:l.Input)?o:zp;return er.jsx(Td,jr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));function Hp(e){return ls("MuiLink",e)}Fp.muiName="Input";const $p=us("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Bp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Vp=({theme:e,ownerState:t})=>{const r=(e=>Bp[e]||e)(t.color),n=Zi(e,`palette.${r}`,!1)||t.color,o=Zi(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Fl(n,.4)},Wp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Up=ic(dd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Xi(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>jr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&jr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Vp({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$p.focusVisible}`]:{outline:"auto"}}))),Gp=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=zr(r,Wp),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=ll(),[b,v]=P.useState(!1),y=Ks(t,g),x=jr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return cl({root:["root",`underline${Xi(o)}`,"button"===r&&"button",n&&"focusVisible"]},Hp,t)})(x);return er.jsx(Up,jr({color:o,className:is(S.root,n),classes:l,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(Bp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),Yp=P.createContext({});function Kp(e){return ls("MuiList",e)}us("MuiList",["root","padding","dense","subheader"]);const Xp=["children","className","component","dense","disablePadding","subheader"],Jp=ic("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>jr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Zp=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=zr(r,Xp),c=P.useMemo((()=>({dense:a})),[a]),d=jr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return cl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Kp,t)})(d);return er.jsx(Yp.Provider,{value:c,children:er.jsxs(Jp,jr({as:i,className:is(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function Qp(e){return ls("MuiListItemIcon",e)}const ef=us("MuiListItemIcon",["root","alignItemsFlexStart"]),tf=["className"],rf=ic("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>jr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),nf=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=zr(r,tf),i=jr({},r,{alignItems:P.useContext(Yp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return cl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Qp,r)})(i);return er.jsx(rf,jr({className:is(a.root,n),ownerState:i,ref:t},o))})),of=us("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),af=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function sf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function lf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function uf(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function cf(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&uf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const df=P.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=zr(e,af),p=P.useRef(null),f=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ls((()=>{n&&p.current.focus()}),[n]),P.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${ul(Hs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=Ks(p,t);let h=-1;P.Children.forEach(i,((e,t)=>{P.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=P.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),P.cloneElement(e,t)}return e}));return er.jsx(Zp,jr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Hs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),cf(t,n,l,s,sf);else if("ArrowUp"===r)e.preventDefault(),cf(t,n,l,s,lf);else if("Home"===r)e.preventDefault(),cf(t,null,l,s,sf);else if("End"===r)e.preventDefault(),cf(t,null,l,s,lf);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&uf(n,o);o.previousKeyMatched&&(l||cf(t,n,!1,s,sf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function pf(e){return ls("MuiPopover",e)}us("MuiPopover",["root","paper"]);const ff=["onEntering"],mf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],hf=["slotProps"];function gf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function bf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}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=ic(Sp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sf=ic(Nc,{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=P.forwardRef((function(e,t){var r,n,o;const i=uc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Np,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:E=!1}=i,R=zr(i.TransitionProps,ff),A=zr(i,mf),I=null!=(r=null==y?void 0:y.paper)?r:b,M=P.useRef(),D=Ks(M,I.ref),k=jr({},i,{anchorOrigin:l,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:R}),T=(e=>{const{classes:t}=e;return cl({root:["root"],paper:["paper"]},pf,t)})(k),q=P.useCallback((()=>{if("anchorPosition"===c)return u;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,u,c]),L=P.useCallback((e=>({vertical:gf(e,x.vertical),horizontal:bf(e,x.horizontal)})),[x.horizontal,x.vertical]),O=P.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:vf(r)};const n=q();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=$s(yf(s)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:vf(r)}}),[s,c,q,L,h]),[N,_]=P.useState(g),j=P.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,_(!0)}),[O]);P.useEffect((()=>(E&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[s,E,j]);P.useEffect((()=>{g&&j()})),P.useImperativeHandle(a,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),P.useEffect((()=>{if(!g)return;const e=Fs((()=>{j()})),t=$s(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,j]);let z=w;"auto"!==w||S.muiSupportAuto||(z=void 0);const F=f||(s?Hs(yf(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:xf,$=null!=(o=null==v?void 0:v.paper)?o:Sf,B=hl({elementType:$,externalSlotProps:jr({},I,{style:N?I.style:jr({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:k,className:is(T.paper,null==I?void 0:I.className)}),V=hl({elementType:H,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:k,className:is(T.root,p)}),{slotProps:W}=V,U=zr(V,hf);return er.jsx(H,jr({},U,!dl(H)&&{slotProps:W,disableScrollLock:E},{children:er.jsx(S,jr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),j()},onExited:()=>{_(!1)},timeout:z},R,{children:er.jsx($,jr({},B,{children:d}))}))}))}));function Cf(e){return ls("MuiMenu",e)}us("MuiMenu",["root","paper","list"]);const Ef=["onEntering"],Rf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Pf={vertical:"top",horizontal:"right"},Af={vertical:"top",horizontal:"left"},If=ic(wf,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mf=ic(Sf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Df=ic(df,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),kf=P.forwardRef((function(e,t){var r,n;const o=uc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=zr(o.TransitionProps,Ef),x=zr(o,Rf),S=(()=>{const e=P.useContext(wl);return null!=e&&e})(),w=jr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return cl({root:["root"],paper:["paper"],list:["list"]},Cf,t)})(w),E=i&&!l&&d,R=P.useRef(null);let A=-1;P.Children.map(a,((e,t)=>{P.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=b.paper)?r:Mf,M=null!=(n=v.paper)?n:p,D=hl({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[C.root,s]}),k=hl({elementType:I,externalSlotProps:M,ownerState:w,className:C.paper});return er.jsx(If,jr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Pf:Af,slots:{paper:I,root:b.root},slotProps:{root:D,paper:k},open:d,ref:t,transitionDuration:m,TransitionProps:jr({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:w},x,{classes:f,children:er.jsx(Df,jr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===A||l),autoFocusItem:E,variant:g},u,{className:is(C.list,u.className),children:a}))}))}));function Tf(e){return ls("MuiMenuItem",e)}const qf=us("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Lf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Of=ic(ed,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>jr({},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"}},[`&.${qf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fl(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(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Cp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Cp.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&&jr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ef.root} svg`]:{fontSize:"1.25rem"}})))),Nf=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=zr(r,Lf),f=P.useContext(Yp),m=P.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=P.useRef(null);Ls((()=>{n&&h.current&&h.current.focus()}),[n]);const g=jr({},r,{dense:m.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return jr({},a,cl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Tf,a))})(r),v=Ks(h,t);let y;return r.disabled||(y=void 0!==c?c:-1),er.jsx(Yp.Provider,{value:m,children:er.jsx(Of,jr({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:is(b.focusVisible,l),className:is(b.root,d)},p,{ownerState:g,classes:b}))})}));function _f(e){return ls("MuiNativeSelect",e)}const jf=us("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})=>jr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":jr({},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"},[`&.${jf.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}}),Hf=ic("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:oc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${jf.multiple}`]:t.multiple}]}})(Ff),$f=({ownerState:e,theme:t})=>jr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${jf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Bf=ic("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Xi(r.variant)}`],r.open&&t.iconOpen]}})($f),Vf=P.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=zr(e,zf),u=jr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return cl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Xi(r)}`,i&&"iconOpen",n&&"disabled"]},_f,t)})(u);return er.jsxs(P.Fragment,{children:[er.jsx(Hf,jr({ownerState:u,className:is(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:er.jsx(Bf,{as:i,ownerState:u,className:c.icon})]})}));var Wf;const Uf=["children","classes","className","label","notched"],Gf=ic("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:oc})({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%"}),Yf=ic("legend",{name:"MuiNotchedOutlined",shouldForwardProp:oc})((({ownerState:e,theme:t})=>jr({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&&jr({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 Kf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Xf=ic(Md,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ad})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return jr({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)`:r}},[`&.${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&&jr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Jf=ic((function(e){const{className:t,label:r,notched:n}=e,o=zr(e,Uf),i=null!=r&&""!==r,a=jr({},e,{notched:n,withLabel:i});return er.jsx(Gf,jr({"aria-hidden":!0,className:t,ownerState:a},o,{children:er.jsx(Yf,{ownerState:a,children:i?er.jsx("span",{children:r}):Wf||(Wf=er.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=ic(Dd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Id})((({theme:e,ownerState:t})=>jr({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=P.forwardRef((function(e,t){var r,n,o,i,a;const s=uc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=s,g=zr(s,Kf),b=(e=>{const{classes:t}=e;return jr({},t,cl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Od,t))})(s),v=xd(),y=vd({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=jr({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(r=null!=(n=m.root)?n:l.Root)?r:Xf,w=null!=(o=null!=(i=m.input)?i:l.Input)?o:Zf;return er.jsx(Td,jr({slots:{root:S,input:w},renderSuffix:e=>er.jsx(Jf,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=er.jsxs(P.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:jr({},b,{notchedOutline:null})}))}));function em(e){return ls("MuiSelect",e)}Qf.muiName="Input";const tm=us("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var rm;const nm=["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"],om=ic("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${tm.select}`]:t.select},{[`&.${tm.select}`]:t[r.variant]},{[`&.${tm.error}`]:t.error},{[`&.${tm.multiple}`]:t.multiple}]}})(Ff,{[`&.${tm.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),im=ic("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Xi(r.variant)}`],r.open&&t.iconOpen]}})($f),am=ic("input",{shouldForwardProp:e=>nc(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 sm(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function lm(e){return null==e||"string"==typeof e&&!e.trim()}const um=P.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:w,onFocus:C,onOpen:E,open:R,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:D,value:k,variant:T="standard"}=e,q=zr(e,nm),[L,O]=Gs({controlled:k,default:c,name:"Select"}),[N,_]=Gs({controlled:R,default:u,name:"Select"}),j=P.useRef(null),z=P.useRef(null),[F,H]=P.useState(null),{current:$}=P.useRef(null!=R),[B,V]=P.useState(),W=Ks(t,h),U=P.useCallback((e=>{z.current=e,e&&H(e)}),[]),G=null==F?void 0:F.parentNode;P.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:j.current,value:L})),[L]),P.useEffect((()=>{u&&N&&F&&!$&&(V(a?null:G.clientWidth),z.current.focus())}),[F,a]),P.useEffect((()=>{i&&z.current.focus()}),[i]),P.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 Y=(e,t)=>{e?E&&E(t):w&&w(t),$||(V(a?null:G.clientWidth),_(e))},K=P.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==r&&(O(r),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),S(o,e)}v||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete q["aria-invalid"];const ee=[];let te=!1;(Cd({value:L})||p)&&(I?Z=I(L):te=!0);const re=K.map((e=>{if(!P.isValidElement(e))return null;let t;if(v){if(!Array.isArray(L))throw new Error(Or(2));t=L.some((t=>sm(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=sm(L,e.props.value),t&&te&&(Q=e.props.children);return P.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!a&&$&&F&&(oe=G.clientWidth),ne=void 0!==D?D:d?null:0;const ie=M.id||(y?`mui-component-select-${y}`:void 0),ae=jr({},e,{variant:T,value:L,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return cl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Xi(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},em,t)})(ae),le=jr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Us();return er.jsxs(P.Fragment,{children:[er.jsx(om,jr({ref:U,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:y}}),x(e))},onFocus:C},M,{ownerState:ae,className:is(M.className,se.select,l),id:ie,children:lm(Z)?rm||(rm=er.jsx("span",{className:"notranslate",children:"​"})):Z})),er.jsx(am,jr({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:y,ref:j,"aria-hidden":!0,onChange:e=>{const t=K.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},q)),er.jsx(im,{as:m,className:se.icon,ownerState:ae}),er.jsx(kf,jr({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:jr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:jr({},b.slotProps,{paper:jr({},le,{style:jr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),cm=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],dm=["root"],pm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>oc(e)&&"variant"!==e,slot:"Root"},fm=ic(Fp,pm)(""),mm=ic(Qf,pm)(""),hm=ic(kp,pm)(""),gm=P.forwardRef((function(e,t){const r=uc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=zd,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:w,variant:C="outlined"}=r,E=zr(r,cm),R=b?Vf:um,A=vd({props:r,muiFormControl:xd(),states:["variant","error"]}),I=A.variant||C,M=jr({},r,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(M),k=zr(D,dm),T=d||{standard:er.jsx(fm,{ownerState:M}),outlined:er.jsx(mm,{label:f,ownerState:M}),filled:er.jsx(hm,{ownerState:M})}[I],q=Ks(t,gl(T));return er.jsx(P.Fragment,{children:P.cloneElement(T,jr({inputComponent:R,inputProps:jr({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:jr({id:c},w)},p,{classes:p?Fi(k,p.classes):k},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===I?{notched:!0}:{},{ref:q,className:is(T.props.className,a,D.root)},!d&&{variant:I},E))})}));gm.muiName="Select";const bm=P.createContext();function vm(e){return ls("MuiTable",e)}us("MuiTable",["root","stickyHeader"]);const ym=["className","component","padding","size","stickyHeader"],xm=ic("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>jr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":jr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Sm="table",wm=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTable"}),{className:n,component:o=Sm,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=zr(r,ym),u=jr({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return cl({root:["root",r&&"stickyHeader"]},vm,t)})(u),d=P.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return er.jsx(bm.Provider,{value:d,children:er.jsx(xm,jr({as:o,role:o===Sm?null:"table",ref:t,className:is(c.root,n),ownerState:u},l))})})),Cm=P.createContext();function Em(e){return ls("MuiTableBody",e)}us("MuiTableBody",["root"]);const Rm=["className","component"],Pm=ic("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Am={variant:"body"},Im="tbody",Mm=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTableBody"}),{className:n,component:o=Im}=r,i=zr(r,Rm),a=jr({},r,{component:o}),s=(e=>{const{classes:t}=e;return cl({root:["root"]},Em,t)})(a);return er.jsx(Cm.Provider,{value:Am,children:er.jsx(Pm,jr({className:is(s.root,n),as:o,ref:t,role:o===Im?null:"rowgroup",ownerState:a},i))})}));function Dm(e){return ls("MuiTableCell",e)}const km=us("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Tm=["align","className","component","padding","scope","size","sortDirection","variant"],qm=ic("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Xi(r.size)}`],"normal"!==r.padding&&t[`padding${Xi(r.padding)}`],"inherit"!==r.align&&t[`align${Xi(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>jr({},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?Bl(Fl(e.palette.divider,1),.88):Hl(Fl(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",[`&.${km.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}))),Lm=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=zr(r,Tm),p=P.useContext(bm),f=P.useContext(Cm),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=s;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=jr({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return cl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Xi(n)}`,"normal"!==o&&`padding${Xi(o)}`,`size${Xi(i)}`]},Dm,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),er.jsx(qm,jr({as:h,ref:t,className:is(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));function Om(e){return ls("MuiTableContainer",e)}us("MuiTableContainer",["root"]);const Nm=["className","component"],_m=ic("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),jm=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=zr(r,Nm),a=jr({},r,{component:o}),s=(e=>{const{classes:t}=e;return cl({root:["root"]},Om,t)})(a);return er.jsx(_m,jr({ref:t,as:o,className:is(s.root,n),ownerState:a},i))}));function zm(e){return ls("MuiTableHead",e)}us("MuiTableHead",["root"]);const Fm=["className","component"],Hm=ic("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),$m={variant:"head"},Bm="thead",Vm=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTableHead"}),{className:n,component:o=Bm}=r,i=zr(r,Fm),a=jr({},r,{component:o}),s=(e=>{const{classes:t}=e;return cl({root:["root"]},zm,t)})(a);return er.jsx(Cm.Provider,{value:$m,children:er.jsx(Hm,jr({as:o,className:is(s.root,n),ref:t,role:o===Bm?null:"rowgroup",ownerState:a},i))})}));function Wm(e){return ls("MuiTableRow",e)}const Um=us("MuiTableRow",["root","selected","hover","head","footer"]),Gm=["className","component","hover","selected"],Ym=ic("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Um.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Um.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl(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(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Km="tr",Xm=P.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTableRow"}),{className:n,component:o=Km,hover:i=!1,selected:a=!1}=r,s=zr(r,Gm),l=P.useContext(Cm),u=jr({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return cl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Wm,t)})(u);return er.jsx(Ym,jr({as:o,ref:t,className:is(c.root,n),role:o===Km?null:"row",ownerState:u},s))}));function Jm(e){return er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:er.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var Zm=function({fontSize:e="medium",children:t=null,className:r=""}={}){return er.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function Qm(e={}){return er.jsx(Zm,{...e,children:er.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[er.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),er.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 eh(e={}){return er.jsx(Zm,{fontSize:"medium",...e,children:er.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[er.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),er.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 th(e){return er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:er.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 rh(e={}){return er.jsx(Zm,{...e,children:er.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:er.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[er.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),er.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function nh(e={}){return er.jsx(Zm,{fontSize:"medium",...e,children:er.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:er.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:er.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function oh({className:e}){return er.jsx(Zm,{fontSize:"small",className:e,children:er.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:er.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:er.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:er.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[er.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"}),er.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 ih(e={}){return er.jsx(Zm,{...e,children:er.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:er.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:er.jsx("rect",{stroke:Tt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const ah={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:_t,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var sh=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Tt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Tt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:er.jsx(Jm,{"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 ${Tt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`,borderRadius:_t,backgroundColor:Tt.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 ${Tt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Tt.WHITE,color:Tt.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:_t},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Tt.GREYSCALE_0_15,backgroundColor:Tt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Tt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Tt.GREEN_PALE},"&:active":{backgroundColor:Tt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${js(Tt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Tt.BLUE_PALE},"&:active":{backgroundColor:Tt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${js(Tt.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:_t,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Tt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Tt.GREYSCALE_0_15,backgroundColor:Tt.GREYSCALE_100_60,"&:active":{backgroundColor:Tt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Tt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Tt.PURPLE,"&.Mui-focusVisible":{borderColor:Tt.PURPLE,boxShadow:`0 0 0 3px ${js(Tt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Tt.GREEN,"&.Mui-focusVisible":{borderColor:Tt.GREEN,boxShadow:`0 0 0 3px ${js(Tt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Tt.BLUE,"&.Mui-focusVisible":{borderColor:Tt.BLUE,boxShadow:`0 0 0 3px ${js(Tt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Tt.ORANGE,"&.Mui-focusVisible":{borderColor:Tt.ORANGE,boxShadow:`0 0 0 3px ${js(Tt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Tt.RED,"&.Mui-focusVisible":{borderColor:Tt.RED,boxShadow:`0 0 0 3px ${js(Tt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Tt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Tt.PURPLE_PALE},"&:active":{backgroundColor:Tt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Tt.PURPLE_PALE,boxShadow:`0 0 0 3px ${js(Tt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Tt.GREEN_PALE},"&:active":{backgroundColor:Tt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${js(Tt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Tt.BLUE_PALE},"&:active":{backgroundColor:Tt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${js(Tt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Tt.ORANGE_PALE},"&:active":{backgroundColor:Tt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Tt.ORANGE_PALE,boxShadow:`0 0 0 3px ${js(Tt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Tt.RED_PALE},"&:active":{backgroundColor:Tt.RED_DARK},"&.Mui-focusVisible":{borderColor:Tt.RED_PALE,boxShadow:`0 0 0 3px ${js(Tt.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:Tt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Tt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:_t,boxShadow:`inset 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:er.jsx(th,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:qt,borderRadius:_t,color:Tt.TEXT_PRIMARY,backgroundColor:Tt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Tt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Tt.GREYSCALE_0_05,color:Tt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Tt.GREEN,borderColor:Tt.GREEN},"&.MuiChip-outlinedInfo":{color:Tt.BLUE,borderColor:Tt.BLUE},"&.MuiChip-outlinedWarning":{color:Tt.ORANGE,borderColor:Tt.ORANGE},"&.MuiChip-outlinedError":{color:Tt.RED,borderColor:Tt.RED}},outlined:{border:`solid 1px ${Tt.GREYSCALE_0_15}`,backgroundColor:Tt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:_t,boxShadow:"none",backgroundColor:Tt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Tt.GREEN,borderColor:Tt.GREEN},outlinedSecondary:{color:Tt.BLUE,borderColor:Tt.BLUE},label:{fontFamily:$t.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:er.jsx(th,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:er.jsx(Jm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:_t},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:_t,fontSize:Lt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Tt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Tt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Tt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Tt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Tt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:_t,border:`solid 1px ${Tt.GREYSCALE_0_15}`,color:Tt.GREYSCALE_0_60,marginRight:0,width:Nt,height:Nt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Tt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:_t,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Tt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Lt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:qt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Tt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Tt.GREYSCALE_25,fontSize:qt,fontFamily:$t.FONT_FAMILY,fontWeight:Ft,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Tt.TEXT_PRIMARY},"&.Mui-error":{color:Tt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Tt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:zt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Tt.TEXT_SECONDARY,content:"'(required)'",fontWeight:zt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Lt,lineHeight:"16px",backgroundColor:Tt.WHITE,borderRadius:_t,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.GREYSCALE_0_05}`,borderColor:Tt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Tt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Tt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.RED}`,boxShadow:`0px 0px 0px 1px ${Tt.RED}, inset 0 2px 0 0 ${Tt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.GREYSCALE_0_10}`,borderColor:Tt.GREYSCALE_0_10,backgroundColor:Tt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Tt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Tt.GREYSCALE_0_15,borderRadius:_t,boxShadow:`inset 0 2px 0 0 ${Tt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>er.jsx(Jm,{...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:Tt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Tt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03},"&:active":{backgroundColor:Tt.GREYSCALE_0_10},"&:focus":{backgroundColor:Tt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Tt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Tt.GREYSCALE_0_30,"&:hover":{backgroundColor:Tt.GREYSCALE_0_0,borderColor:Tt.GREYSCALE_0_15},"& ~svg":{color:Tt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Tt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:_t}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Tt.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:qt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:qt,fontWeight:Ft,color:Tt.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 ${Tt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Tt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:er.jsx(nh,{}),checkedIcon:er.jsx(eh,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Tt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${js(Tt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${js(Tt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Tt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Tt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:er.jsx(ih,{}),checkedIcon:er.jsx(Qm,{}),indeterminateIcon:er.jsx(rh,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:_t,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Tt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Tt.GREYSCALE_0_55,color:Tt.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:Tt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Tt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Tt.GREYSCALE_0_55,"&:hover":{color:Tt.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:Tt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Tt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Lt,color:Tt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ft},secondary:{fontSize:qt,color:Tt.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:Tt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:qt,borderBottom:`solid 1px ${Tt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Lt,color:Tt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Tt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Tt.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:Tt.RED}}},"&.Mui-focusVisible":{backgroundColor:Tt.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:Tt.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:Tt.GREEN,height:"24px","&.Mui-disabled":{color:Tt.GREYSCALE_0_15}},rail:{backgroundColor:Tt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Tt.GREYSCALE_0_05}`,borderRadius:_t,boxShadow:`inset 0px 0px 0px 1px ${Tt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Tt.GREYSCALE_0_05}`,borderRadius:_t},thumb:{height:"16px",width:"16px",borderRadius:_t,backgroundColor:Tt.WHITE,boxShadow:`0px 1px 2px 0px ${Tt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Tt.GREYSCALE_0_05}`,"&:hover":{borderRadius:_t,boxShadow:`0 2px 4px 0 ${Tt.GREYSCALE_0_30}, 0 0 0 1px ${Tt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Tt.GREYSCALE_0_15}, 0 0 0 1px ${Tt.GREYSCALE_0_06}, 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Tt.GREYSCALE_0_15}, 0 0 0 1px ${Tt.GREYSCALE_0_06}, 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Tt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Tt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Tt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Tt.GREYSCALE_0_15},markLabel:{color:Tt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Tt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Tt.WHITE,color:Tt.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:Tt.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:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${js(Tt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${js(Tt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Tt.GREYSCALE_0_15,borderRadius:_t},thumb:{height:"16px",width:"16px",borderRadius:_t,backgroundColor:Tt.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 ${Tt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`,backgroundColor:Tt.GREYSCALE_0_03,borderRadius:_t},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Tt.GREYSCALE_25,"&.Mui-selected":{color:Tt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Lt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:_t,"&:hover":{backgroundColor:Tt.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 ${Tt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Tt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:_t,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Tt.GREYSCALE_0_05},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Tt.GREYSCALE_85}`,borderRight:`1px solid ${Tt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ft,backgroundColor:Tt.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:Tt.GREYSCALE_98,borderBottom:`1px solid ${Tt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Tt.GREYSCALE_85}`,borderTop:`1px solid ${Tt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Tt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Tt.GREYSCALE_0_05,"&:hover":{backgroundColor:Tt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Tt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>er.jsx(oh,{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 ${Tt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Lt,borderRadius:_t,padding:"7px 16px",border:`1px solid ${Tt.GREYSCALE_0_15}`,backgroundColor:Tt.GREYSCALE_100_60,color:Tt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Tt.GREYSCALE_0_10,border:`1px solid ${Tt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03,border:`1px solid ${Tt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Tt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Tt.MISC_FOCUS_BORDER}`,border:`1px solid ${Tt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Tt.GREYSCALE_25,backgroundColor:Tt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Tt.GREYSCALE_0_10,border:`1px solid ${Tt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:qt,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:_t}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Tt.GREYSCALE_20},tooltip:{backgroundColor:Tt.GREYSCALE_20,fontSize:qt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...ah}:{}}),lh=(e,t)=>sh(t);var uh=()=>({mode:"light",primary:{ultraLight:Tt.GREEN_ULTRA_LIGHT,light:Tt.GREEN_PALE,main:Tt.GREEN,dark:Tt.GREEN_DARK,extraDark:Tt.GREEN_EXTRA_DARK,contrastText:Tt.WHITE},secondary:{ultraLight:Tt.BLUE_ULTRA_LIGHT,light:Tt.BLUE_PALE,main:Tt.BLUE,dark:Tt.BLUE_DARK,extraDark:Tt.BLUE_EXTRA_DARK,contrastText:Tt.WHITE},error:{ultraLight:Tt.RED_ULTRA_LIGHT,light:Tt.RED_PALE,main:Tt.RED,dark:Tt.RED_DARK,extraDark:Tt.RED_EXTRA_DARK,contrastText:Tt.WHITE},warning:{ultraLight:Tt.ORANGE_ULTRA_LIGHT,light:Tt.ORANGE_PALE,main:Tt.ORANGE,dark:Tt.ORANGE_DARK,extraDark:Tt.ORANGE_EXTRA_DARK,contrastText:Tt.WHITE},success:{ultraLight:Tt.GREEN_ULTRA_LIGHT,light:Tt.GREEN_PALE,main:Tt.GREEN,dark:Tt.GREEN_DARK,extraDark:Tt.GREEN_EXTRA_DARK,contrastText:Tt.WHITE},info:{ultraLight:Tt.BLUE_ULTRA_LIGHT,light:Tt.BLUE_PALE,main:Tt.BLUE,dark:Tt.BLUE_DARK,extraDark:Tt.BLUE_EXTRA_DARK,contrastText:Tt.WHITE},text:{primary:Tt.TEXT_PRIMARY,secondary:Tt.TEXT_SECONDARY,disabled:Tt.GREYSCALE_0_30},action:{hover:Tt.GREYSCALE_0_03,hoverOpacity:.03,selected:Tt.GREYSCALE_0_05,selectedOpacity:.05,focus:Tt.MISC_FOCUS_BORDER},amethyst:{ultraLight:Tt.WHITE,main:Tt.PURPLE,light:Tt.PURPLE_PALE,dark:Tt.PURPLE_DARK,extraDark:Tt.GREYSCALE_0_0,contrastText:Tt.WHITE},background:{paper:Tt.WHITE,default:Tt.GREYSCALE_95},divider:Tt.GREYSCALE_0_15});var ch=e=>uh();var dh=(e,t=!1)=>({components:lh(0,t),palette:ch(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Lt,fontWeightLight:jt,fontWeightRegular:zt,fontWeightMedium:Ft,fontWeightBold:Ht,htmlFontSize:Lt,fontFamily:$t.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:Tt.TEXT_SECONDARY},subtitle1:{fontSize:Lt,color:Tt.TEXT_SECONDARY},subtitle2:{fontSize:qt,color:Tt.TEXT_SECONDARY}},shape:{borderRadius:_t}});const ph={...kt};var fh={},mh={exports:{}},hh={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(hh);var gh=hh.exports;!function(e){var t=gh.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(mh);var bh=mh.exports,vh={};function yh(e,t){return function(){return null}}function xh(e){return e&&"object"===Dl(e)&&e.constructor===Object}function Sh(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?jr({},e):e;return xh(e)&&xh(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(xh(t[o])&&o in e?n[o]=Sh(e[o],t[o],r):n[o]=t[o])})),n}var wh=(ki.element,function(){return null});wh.isRequired=(ki.element.isRequired,function(){return null});var Ch=function(){return null};var Eh={exports:{}},Rh={},Ph=60103,Ah=60106,Ih=60107,Mh=60108,Dh=60114,kh=60109,Th=60110,qh=60112,Lh=60113,Oh=60120,Nh=60115,_h=60116,jh=60121,zh=60122,Fh=60117,Hh=60129,$h=60131;if("function"==typeof Symbol&&Symbol.for){var Bh=Symbol.for;Ph=Bh("react.element"),Ah=Bh("react.portal"),Ih=Bh("react.fragment"),Mh=Bh("react.strict_mode"),Dh=Bh("react.profiler"),kh=Bh("react.provider"),Th=Bh("react.context"),qh=Bh("react.forward_ref"),Lh=Bh("react.suspense"),Oh=Bh("react.suspense_list"),Nh=Bh("react.memo"),_h=Bh("react.lazy"),jh=Bh("react.block"),zh=Bh("react.server.block"),Fh=Bh("react.fundamental"),Hh=Bh("react.debug_trace_mode"),$h=Bh("react.legacy_hidden")}function Vh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ph:switch(e=e.type){case Ih:case Dh:case Mh:case Lh:case Oh:return e;default:switch(e=e&&e.$$typeof){case Th:case qh:case _h:case Nh:case kh:return e;default:return t}}case Ah:return t}}}var Wh=kh,Uh=Ph,Gh=qh,Yh=Ih,Kh=_h,Xh=Nh,Jh=Ah,Zh=Dh,Qh=Mh,eg=Lh;Rh.ContextConsumer=Th,Rh.ContextProvider=Wh,Rh.Element=Uh,Rh.ForwardRef=Gh,Rh.Fragment=Yh,Rh.Lazy=Kh,Rh.Memo=Xh,Rh.Portal=Jh,Rh.Profiler=Zh,Rh.StrictMode=Qh,Rh.Suspense=eg,Rh.isAsyncMode=function(){return!1},Rh.isConcurrentMode=function(){return!1},Rh.isContextConsumer=function(e){return Vh(e)===Th},Rh.isContextProvider=function(e){return Vh(e)===kh},Rh.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ph},Rh.isForwardRef=function(e){return Vh(e)===qh},Rh.isFragment=function(e){return Vh(e)===Ih},Rh.isLazy=function(e){return Vh(e)===_h},Rh.isMemo=function(e){return Vh(e)===Nh},Rh.isPortal=function(e){return Vh(e)===Ah},Rh.isProfiler=function(e){return Vh(e)===Dh},Rh.isStrictMode=function(e){return Vh(e)===Mh},Rh.isSuspense=function(e){return Vh(e)===Lh},Rh.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ih||e===Dh||e===Hh||e===Mh||e===Lh||e===Oh||e===$h||"object"==typeof e&&null!==e&&(e.$$typeof===_h||e.$$typeof===Nh||e.$$typeof===kh||e.$$typeof===Th||e.$$typeof===qh||e.$$typeof===Fh||e.$$typeof===jh||e[0]===zh)},Rh.typeOf=Vh,Eh.exports=Rh;var tg=Eh.exports,rg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ng(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(rg);return t&&t[1]||""}(e)||t}function og(e,t,r){var n=ng(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var ig="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),ag=ki.oneOfType([ki.func,ki.object]),sg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:yh,deepmerge:Sh,elementAcceptingRef:wh,elementTypeAcceptingRef:Ch,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return ng(e,"Component");if("object"===Dl(e))switch(e.$$typeof){case tg.ForwardRef:return og(e,e.render,"ForwardRef");case tg.Memo:return og(e,e.type,"memo");default:return}}},ponyfillGlobal:ig,refType:ag}),lg=Vt(sg);Object.defineProperty(vh,"__esModule",{value:!0}),vh.hexToRgb=dg,vh.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=fg(e),r=t.values;return"#".concat(r.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},vh.hslToRgb=pg,vh.decomposeColor=fg,vh.recomposeColor=mg,vh.getContrastRatio=function(e,t){var r=hg(e),n=hg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},vh.getLuminance=hg,vh.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return hg(e)>.5?bg(e,t):vg(e,t)},vh.fade=function(e,t){return gg(e,t)},vh.alpha=gg,vh.darken=bg,vh.lighten=vg;var ug=lg;function cg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function dg(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function pg(e){var t=(e=fg(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),mg({type:s,values:l})}function fg(e){if(e.type)return e;if("#"===e.charAt(0))return fg(dg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,ug.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function mg(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function hg(e){var t="hsl"===(e=fg(e)).type?fg(pg(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gg(e,t){return e=fg(e),t=cg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,mg(e)}function bg(e,t){if(e=fg(e),t=cg(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return mg(e)}function vg(e,t){if(e=fg(e),t=cg(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return mg(e)}var yg,xg,Sg,wg={},Cg={exports:{}},Eg={exports:{}},Rg={exports:{}};function Pg(){return yg||(yg=1,function(e){var t=gh.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Rg)),Rg.exports}function Ag(){return xg||(xg=1,function(e){var t=gh.default,r=Pg();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Eg)),Eg.exports}function Ig(){return Sg||(Sg=1,function(e){var t=Ag();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Cg)),Cg.exports}var Mg,Dg={exports:{}};function kg(){return Mg||(Mg=1,function(e){var t=ku();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Dg)),Dg.exports}var Tg,qg={};var Lg,Og={};var Ng,_g={},jg={};var zg,Fg={};var Hg,$g={};var Bg,Vg={};var Wg,Ug={};var Gg,Yg={};var Kg,Xg={};var Jg,Zg,Qg={};function eb(){if(Zg)return _g;Zg=1;var e=Nl;Object.defineProperty(_g,"__esModule",{value:!0}),_g.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,P=e.success,A=void 0===P?{light:d.default[300],main:d.default[500],dark:d.default[700]}:P,I=e.type,M=void 0===I?"light":I,D=e.contrastThreshold,k=void 0===D?3:D,T=e.tonalOffset,q=void 0===T?.2:T,L=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function O(e){return(0,p.getContrastRatio)(e,m.text.primary)>=k?m.text.primary:f.text.primary}var N=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return h(e,"light",o,q),h(e,"dark",i,q),e.contrastText||(e.contrastText=O(e.main)),e},_={dark:m,light:f},j=(0,n.deepmerge)((0,t.default)({common:o.default,type:M,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(A),grey:i.default,contrastThreshold:k,getContrastText:O,augmentColor:N,tonalOffset:q},_[M]),L);return j},_g.dark=_g.light=void 0;var t=e(Iu()),r=e(kg()),n=lg,o=e(function(){if(Ng)return jg;Ng=1,Object.defineProperty(jg,"__esModule",{value:!0}),jg.default=void 0;var e={black:"#000",white:"#fff"};return jg.default=e,jg}()),i=e(function(){if(zg)return Fg;zg=1,Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return Fg.default=e,Fg}()),a=e(function(){if(Hg)return $g;Hg=1,Object.defineProperty($g,"__esModule",{value:!0}),$g.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return $g.default=e,$g}()),s=e(function(){if(Bg)return Vg;Bg=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return Vg.default=e,Vg}()),l=e(function(){if(Wg)return Ug;Wg=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return Ug.default=e,Ug}()),u=e(function(){if(Gg)return Yg;Gg=1,Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return Yg.default=e,Yg}()),c=e(function(){if(Kg)return Xg;Kg=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return Xg.default=e,Xg}()),d=e(function(){if(Jg)return Qg;Jg=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return Qg.default=e,Qg}()),p=vh,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};_g.light=f;var m={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function h(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return _g.dark=m,_g}var tb,rb={};var nb,ob={};var ib,ab={};var sb={};function lb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ub(e,t){if(e){if("string"==typeof e)return lb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lb(e,t):void 0}}function cb(e){return function(e){if(Array.isArray(e))return lb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ub(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 db(e,t){return t?Sh(e,t,{clone:!1}):e}var pb={xs:0,sm:600,md:960,lg:1280,xl:1920},fb={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(pb[e],"px)")}};function mb(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||fb;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Dl(t)){var o=e.theme.breakpoints||fb;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function hb(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function gb(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=hb(e.theme,o)||{};return mb(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=hb(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=kl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)}))};return a.propTypes={},a.filterProps=[t],a}function bb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce((function(t,r){var n=r(e);return n?db(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function vb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var yb=gb({prop:"border",themeKey:"borders",transform:vb}),xb=gb({prop:"borderTop",themeKey:"borders",transform:vb}),Sb=gb({prop:"borderRight",themeKey:"borders",transform:vb}),wb=gb({prop:"borderBottom",themeKey:"borders",transform:vb}),Cb=gb({prop:"borderLeft",themeKey:"borders",transform:vb}),Eb=gb({prop:"borderColor",themeKey:"palette"}),Rb=gb({prop:"borderRadius",themeKey:"shape"}),Pb=bb(yb,xb,Sb,wb,Cb,Eb,Rb);function Ab(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Ib(e){var t=function(t){var r=e(t);return t.css?jr({},db(r,e(jr({theme:t.theme},t.css))),Ab(t.css,[e.filterProps])):t.sx?jr({},db(r,e(jr({theme:t.theme},t.sx))),Ab(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(cb(e.filterProps)),t}var Mb=bb(gb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),gb({prop:"display"}),gb({prop:"overflow"}),gb({prop:"textOverflow"}),gb({prop:"visibility"}),gb({prop:"whiteSpace"})),Db=gb({prop:"flexBasis"}),kb=gb({prop:"flexDirection"}),Tb=gb({prop:"flexWrap"}),qb=gb({prop:"justifyContent"}),Lb=gb({prop:"alignItems"}),Ob=gb({prop:"alignContent"}),Nb=gb({prop:"order"}),_b=gb({prop:"flex"}),jb=gb({prop:"flexGrow"}),zb=gb({prop:"flexShrink"}),Fb=gb({prop:"alignSelf"}),Hb=gb({prop:"justifyItems"}),$b=gb({prop:"justifySelf"}),Bb=bb(Db,kb,Tb,qb,Lb,Ob,Nb,_b,jb,zb,Fb,Hb,$b),Vb=gb({prop:"gridGap"}),Wb=gb({prop:"gridColumnGap"}),Ub=gb({prop:"gridRowGap"}),Gb=gb({prop:"gridColumn"}),Yb=gb({prop:"gridRow"}),Kb=gb({prop:"gridAutoFlow"}),Xb=gb({prop:"gridAutoColumns"}),Jb=gb({prop:"gridAutoRows"}),Zb=gb({prop:"gridTemplateColumns"}),Qb=gb({prop:"gridTemplateRows"}),ev=gb({prop:"gridTemplateAreas"}),tv=gb({prop:"gridArea"}),rv=bb(Vb,Wb,Ub,Gb,Yb,Kb,Xb,Jb,Zb,Qb,ev,tv),nv=gb({prop:"color",themeKey:"palette"}),ov=gb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),iv=bb(nv,ov),av=gb({prop:"position"}),sv=gb({prop:"zIndex",themeKey:"zIndex"}),lv=gb({prop:"top"}),uv=gb({prop:"right"}),cv=gb({prop:"bottom"}),dv=gb({prop:"left"}),pv=bb(av,sv,lv,uv,cv,dv),fv=gb({prop:"boxShadow",themeKey:"shadows"});function mv(e){return e<=1?"".concat(100*e,"%"):e}var hv=gb({prop:"width",transform:mv}),gv=gb({prop:"maxWidth",transform:mv}),bv=gb({prop:"minWidth",transform:mv}),vv=gb({prop:"height",transform:mv}),yv=gb({prop:"maxHeight",transform:mv}),xv=gb({prop:"minHeight",transform:mv}),Sv=gb({prop:"size",cssProperty:"width",transform:mv}),wv=gb({prop:"size",cssProperty:"height",transform:mv}),Cv=gb({prop:"boxSizing"}),Ev=bb(hv,gv,bv,vv,yv,xv,Cv);function Rv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||ub(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Pv={m:"margin",p:"padding"},Av={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Iv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mv=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){if(e.length>2){if(!Iv[e])return[e];e=Iv[e]}var t=Rv(e.split(""),2),r=t[0],n=t[1],o=Pv[r],i=Av[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Dv=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function kv(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Tv(e,t){return function(r){return e.reduce((function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e}),{})}}function qv(e){var t=kv(e.theme);return Object.keys(e).map((function(r){if(-1===Dv.indexOf(r))return null;var n=Tv(Mv(r),t),o=e[r];return mb(e,o,n)})).reduce(db,{})}qv.propTypes={},qv.filterProps=Dv;var Lv,Ov=gb({prop:"fontFamily",themeKey:"typography"}),Nv=gb({prop:"fontSize",themeKey:"typography"}),_v=gb({prop:"fontStyle",themeKey:"typography"}),jv=gb({prop:"fontWeight",themeKey:"typography"}),zv=gb({prop:"letterSpacing"}),Fv=gb({prop:"lineHeight"}),Hv=gb({prop:"textAlign"}),$v=bb(Ov,Nv,_v,jv,zv,Fv,Hv),Bv=Object.freeze({__proto__:null,alignContent:Ob,alignItems:Lb,alignSelf:Fb,bgcolor:ov,border:yb,borderBottom:wb,borderColor:Eb,borderLeft:Cb,borderRadius:Rb,borderRight:Sb,borderTop:xb,borders:Pb,bottom:cv,boxSizing:Cv,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||fb,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(jr({theme:t.theme},t[o]))),r}),null);return db(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(cb(e.filterProps)),t},color:nv,compose:bb,createUnarySpacing:kv,css:function(e){return Ib(e)},display:Mb,flex:_b,flexBasis:Db,flexDirection:kb,flexGrow:jb,flexShrink:zb,flexWrap:Tb,flexbox:Bb,fontFamily:Ov,fontSize:Nv,fontStyle:_v,fontWeight:jv,grid:rv,gridArea:tv,gridAutoColumns:Xb,gridAutoFlow:Kb,gridAutoRows:Jb,gridColumn:Gb,gridColumnGap:Wb,gridGap:Vb,gridRow:Yb,gridRowGap:Ub,gridTemplateAreas:ev,gridTemplateColumns:Zb,gridTemplateRows:Qb,height:vv,justifyContent:qb,justifyItems:Hb,justifySelf:$b,left:dv,letterSpacing:zv,lineHeight:Fv,maxHeight:yv,maxWidth:gv,minHeight:xv,minWidth:bv,order:Nb,palette:iv,position:av,positions:pv,right:uv,shadows:fv,sizeHeight:wv,sizeWidth:Sv,sizing:Ev,spacing:qv,style:gb,styleFunctionSx:Ib,textAlign:Hv,top:lv,typography:$v,width:hv,zIndex:sv}),Vv=Vt(Bv);var Wv,Uv={};function Gv(){if(Wv)return Uv;Wv=1;var e=Nl;Object.defineProperty(Uv,"__esModule",{value:!0}),Uv.default=Uv.duration=Uv.easing=void 0;var t=e(kg()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};Uv.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}Uv.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return Uv.default=i,Uv}var Yv,Kv,Xv={};function Jv(){if(Kv)return wg;Kv=1;var e=Nl;Object.defineProperty(wg,"__esModule",{value:!0}),wg.createMuiTheme=function(){return p.apply(void 0,arguments)},wg.default=void 0,e(Ig());var t=e(kg()),r=lg,n=e(function(){if(Tg)return qg;Tg=1;var e=Nl;Object.defineProperty(qg,"__esModule",{value:!0}),qg.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},qg.keys=void 0;var t=e(Iu()),r=e(kg()),n=["xs","sm","md","lg","xl"];return qg.keys=n,qg}()),o=e(function(){if(Lg)return Og;Lg=1;var e=Nl;Object.defineProperty(Og,"__esModule",{value:!0}),Og.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(Ig()),r=e(Iu());return Og}()),i=e(eb()),a=e(function(){if(tb)return rb;tb=1;var e=Nl;Object.defineProperty(rb,"__esModule",{value:!0}),rb.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,m=u.fontWeightLight,h=void 0===m?300:m,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,P=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),A=f/14,I=R||function(e){return"".concat(e/C*A,"rem")},M=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:I(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},D={h1:M(h,96,1.167,-1.5),h2:M(h,60,1.2,-.5),h3:M(b,48,1.167,0),h4:M(b,34,1.235,.25),h5:M(b,24,1.334,0),h6:M(y,20,1.6,.15),subtitle1:M(b,16,1.75,.15),subtitle2:M(y,14,1.57,.1),body1:M(b,16,1.5,.15),body2:M(b,14,1.43,.15),button:M(y,14,1.75,.4,a),caption:M(b,12,1.66,.4),overline:M(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:I,round:i,fontFamily:d,fontSize:f,fontWeightLight:h,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},D),P,{clone:!1})};var t=e(Iu()),r=e(kg()),n=lg;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return rb}()),s=e(function(){if(nb)return ob;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}nb=1,Object.defineProperty(ob,"__esModule",{value:!0}),ob.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return ob.default=t,ob}()),l=e(function(){if(ib)return ab;ib=1,Object.defineProperty(ab,"__esModule",{value:!0}),ab.default=void 0;var e={borderRadius:4};return ab.default=e,ab}()),u=e(function(){if(Lv)return sb;Lv=1,Object.defineProperty(sb,"__esModule",{value:!0}),sb.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=Vv;return sb}()),c=e(Gv()),d=e(function(){if(Yv)return Xv;Yv=1,Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return Xv.default=e,Xv}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,m=e.mixins,h=void 0===m?{}:m,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,h),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),P=arguments.length,A=new Array(P>1?P-1:0),I=1;I<P;I++)A[I-1]=arguments[I];return R=A.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return wg.default=f,wg}var Zv,Qv={};var ey={},ty="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ry=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ny(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==ry.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[ty]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function oy(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var iy="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},ay="object"===("undefined"==typeof window?"undefined":iy(window))&&"object"===("undefined"==typeof document?"undefined":iy(document))&&9===document.nodeType;function sy(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var ly={}.constructor;function uy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(uy);if(e.constructor!==ly)return e;var t={};for(var r in e)t[r]=uy(e[r]);return t}function cy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=uy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var dy=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},py=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=dy(e[r]," ");else t=dy(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function fy(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function my(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function hy(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=fy(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=my(p+":"+u+py(f)+";",i))}}else for(var m in a){var h=a[m];null!=h&&(n&&(n+=l),n+=my(m+":"+u+py(h)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=my(g+":"+u+py(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),my(""+e+u+"{"+n,--i)+my("}",i)):n}var gy=/([[\].#*$><+~=|^:(),"'`\s])/g,by="undefined"!=typeof CSS&&CSS.escape,vy=function(e){return by?by(e):e.replace(gy,"\\$1")},yy=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),xy=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Rc(Rc(o)),s),o.selectorText="."+vy(o.id)),o}hc(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=py(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?jr({},e,{allowEmpty:!0}):e;return hy(this.selectorText,this.style,r)},sy(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(yy),Sy={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new xy(e,t,r)}},wy={indent:1,children:!0},Cy=/@([\w-]+)/,Ey=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Cy);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Yy(jr({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=wy);var t=fy(e).linebreak;if(null==e.indent&&(e.indent=wy.indent),null==e.children&&(e.children=wy.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Ry=/@container|@media|@supports\s+/,Py={onCreateRule:function(e,t,r){return Ry.test(e)?new Ey(e,t,r):null}},Ay={indent:1,children:!0},Iy=/@keyframes\s+([\w-]+)/,My=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Iy);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:vy(a(this,i)),this.rules=new Yy(jr({},r,{parent:this})),t)this.rules.add(s,t[s],jr({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Ay);var t=fy(e).linebreak;if(null==e.indent&&(e.indent=Ay.indent),null==e.children&&(e.children=Ay.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Dy=/@keyframes\s+/,ky=/\$([\w-]+)/g,Ty=function(e,t){return"string"==typeof e?e.replace(ky,(function(e,r){return r in t?t[r]:e})):e},qy=function(e,t,r){var n=e[t],o=Ty(n,r);o!==n&&(e[t]=o)},Ly={onCreateRule:function(e,t,r){return"string"==typeof e&&Dy.test(e)?new My(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&qy(e,"animation-name",r.keyframes),"animation"in e&&qy(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Ty(e,n.keyframes);default:return e}}},Oy=function(e){function t(){return e.apply(this,arguments)||this}return hc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?jr({},e,{allowEmpty:!0}):e;return hy(this.key,this.style,r)},t}(yy),Ny={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Oy(e,t,r):null}},_y=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=fy(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=hy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return hy(this.at,this.style,e)},e}(),jy=/@font-face/,zy={onCreateRule:function(e,t,r){return jy.test(e)?new _y(e,t,r):null}},Fy=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return hy(this.key,this.style,e)},e}(),Hy={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Fy(e,t,r):null}},$y=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),By={"@charset":!0,"@import":!0,"@namespace":!0},Vy={onCreateRule:function(e,t,r){return e in By?new $y(e,t,r):null}},Wy=[Sy,Py,Ly,Ny,zy,Hy,Vy],Uy={process:!0},Gy={force:!0,process:!0},Yy=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=jr({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+vy(this.classes[d]));var p=cy(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=jr({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof xy?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof My&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof xy?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof My&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=Uy);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,Gy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Gy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=fy(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),Ky=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=jr({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Yy(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),Xy=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Jy=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=zr(t,["attached"]),o=fy(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},sy(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Zy=new Jy,Qy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ex="2f1acc6c3a606b082e5eef5e54414ffb";null==Qy[ex]&&(Qy[ex]=0);var tx=Qy[ex]++,rx=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+tx+o+t:i+r.key+"-"+tx+(o?"-"+o:"")+"-"+t}},nx=function(e){var t;return function(){return t||(t=e()),t}},ox=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ix=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=py(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},ax=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},sx=function(e,t){return e.selectorText=t,e.selectorText===t},lx=nx((function(){return document.querySelector("head")}));function ux(e){var t=Zy.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=lx(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var cx=nx((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),dx=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},px=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},fx=function(){function e(e){this.getPropertyValue=ox,this.setProperty=ix,this.removeProperty=ax,this.setSelector=sx,this.hasInsertedRules=!1,this.cssRules=[],e&&Zy.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=cx();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=ux(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else lx().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=px(r,t);if(!1===(o=dx(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=px(r,t),l=dx(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof Ky&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),mx=0,hx=function(){function e(e){this.id=mx++,this.version="10.10.0",this.plugins=new Xy,this.options={id:{minify:!1},createGenerateId:rx,Renderer:ay?fx:null,plugins:[]},this.generateId=rx({minify:!1});for(var t=0;t<Wy.length;t++)this.plugins.use(Wy[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=jr({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===Zy.index?0:Zy.index+1);var n=new Ky(e,jr({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),Zy.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=jr({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=cy(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),gx=function(e){return new hx(e)},bx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function vx(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=vx(n);i&&(t||(t={}),t[r]=i)}}return t}
91
+ /**
92
+ * A better abstraction over CSS.
93
+ *
94
+ * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
95
+ * @website https://github.com/cssinjs/jss
96
+ * @license MIT
97
+ */gx();var yx=Date.now(),xx="fnValues"+yx,Sx="fnStyle"+ ++yx,wx="@global",Cx="@global ",Ex=function(){function e(e,t,r){for(var n in this.type="global",this.at=wx,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new Yy(jr({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Rx=function(){function e(e,t,r){this.type="global",this.at=wx,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,jr({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Px=/\s*,\s*/g;function Ax(e,t){for(var r=e.split(Px),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Ix(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===wx)return new Ex(e,t,r);if("@"===e[0]&&e.substr(0,8)===Cx)return new Rx(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[wx]:null;if(o){for(var i in o)t.addRule(i,o[i],jr({},r,{selector:Ax(i,e.selector)}));delete n[wx]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===wx){var i=Ax(o.substr(7),e.selector);t.addRule(i,n[o],jr({},r,{selector:i})),delete n[o]}}(e,t))}}}var Mx=/\s*,\s*/g,Dx=/&/g,kx=/\$([\w-]+)/g;function Tx(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(Mx),n=e.split(Mx),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Dx,a):a+" "+l}return o}function r(e,t,r){if(r)return jr({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=jr({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(kx,s);var m=l.key+"-"+c;"replaceRule"in u?u.replaceRule(m,n[c],jr({},a,{selector:f})):u.addRule(m,n[c],jr({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var qx=/[A-Z]/g,Lx=/^ms-/,Ox={};function Nx(e){return"-"+e.toLowerCase()}function _x(e){if(Ox.hasOwnProperty(e))return Ox[e];var t=e.replace(qx,Nx);return Ox[e]=Lx.test(t)?"-"+t:t}function jx(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:_x(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(jx):t.fallbacks=jx(e.fallbacks)),t}var zx=bx&&CSS?CSS.px:"px",Fx=bx&&CSS?CSS.ms:"ms",Hx=bx&&CSS?CSS.percent:"%";function $x(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var Bx=$x({"animation-delay":Fx,"animation-duration":Fx,"background-position":zx,"background-position-x":zx,"background-position-y":zx,"background-size":zx,border:zx,"border-bottom":zx,"border-bottom-left-radius":zx,"border-bottom-right-radius":zx,"border-bottom-width":zx,"border-left":zx,"border-left-width":zx,"border-radius":zx,"border-right":zx,"border-right-width":zx,"border-top":zx,"border-top-left-radius":zx,"border-top-right-radius":zx,"border-top-width":zx,"border-width":zx,"border-block":zx,"border-block-end":zx,"border-block-end-width":zx,"border-block-start":zx,"border-block-start-width":zx,"border-block-width":zx,"border-inline":zx,"border-inline-end":zx,"border-inline-end-width":zx,"border-inline-start":zx,"border-inline-start-width":zx,"border-inline-width":zx,"border-start-start-radius":zx,"border-start-end-radius":zx,"border-end-start-radius":zx,"border-end-end-radius":zx,margin:zx,"margin-bottom":zx,"margin-left":zx,"margin-right":zx,"margin-top":zx,"margin-block":zx,"margin-block-end":zx,"margin-block-start":zx,"margin-inline":zx,"margin-inline-end":zx,"margin-inline-start":zx,padding:zx,"padding-bottom":zx,"padding-left":zx,"padding-right":zx,"padding-top":zx,"padding-block":zx,"padding-block-end":zx,"padding-block-start":zx,"padding-inline":zx,"padding-inline-end":zx,"padding-inline-start":zx,"mask-position-x":zx,"mask-position-y":zx,"mask-size":zx,height:zx,width:zx,"min-height":zx,"max-height":zx,"min-width":zx,"max-width":zx,bottom:zx,left:zx,top:zx,right:zx,inset:zx,"inset-block":zx,"inset-block-end":zx,"inset-block-start":zx,"inset-inline":zx,"inset-inline-end":zx,"inset-inline-start":zx,"box-shadow":zx,"text-shadow":zx,"column-gap":zx,"column-rule":zx,"column-rule-width":zx,"column-width":zx,"font-size":zx,"font-size-delta":zx,"letter-spacing":zx,"text-decoration-thickness":zx,"text-indent":zx,"text-stroke":zx,"text-stroke-width":zx,"word-spacing":zx,motion:zx,"motion-offset":zx,outline:zx,"outline-offset":zx,"outline-width":zx,perspective:zx,"perspective-origin-x":Hx,"perspective-origin-y":Hx,"transform-origin":Hx,"transform-origin-x":Hx,"transform-origin-y":Hx,"transform-origin-z":Hx,"transition-delay":Fx,"transition-duration":Fx,"vertical-align":zx,"flex-basis":zx,"shape-margin":zx,size:zx,gap:zx,grid:zx,"grid-gap":zx,"row-gap":zx,"grid-row-gap":zx,"grid-column-gap":zx,"grid-template-rows":zx,"grid-template-columns":zx,"grid-auto-rows":zx,"grid-auto-columns":zx,"box-shadow-x":zx,"box-shadow-y":zx,"box-shadow-blur":zx,"box-shadow-spread":zx,"font-line-height":zx,"text-shadow-x":zx,"text-shadow-y":zx,"text-shadow-blur":zx});function Vx(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Vx(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Vx(o,t[o],r);else for(var i in t)t[i]=Vx(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Bx[e];return!a||0===t&&a===zx?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Wx(e){void 0===e&&(e={});var t=$x(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Vx(n,e[n],t);return e},onChangeValue:function(e,r){return Vx(r,e,t)}}}var Ux="",Gx="",Yx="",Kx="",Xx=ay&&"ontouchstart"in document.documentElement;if(ay){var Jx={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Zx=document.createElement("p").style;for(var Qx in Jx)if(Qx+"Transform"in Zx){Ux=Qx,Gx=Jx[Qx];break}"Webkit"===Ux&&"msHyphens"in Zx&&(Ux="ms",Gx=Jx.ms,Kx="edge"),"Webkit"===Ux&&"-apple-trailing-word"in Zx&&(Yx="apple")}var eS=Ux,tS=Gx,rS=Yx,nS=Kx,oS=Xx;var iS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===eS?"-webkit-"+e:tS+e)}},aS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===eS?tS+"print-"+e:e)}},sS=/[-\s]+(.)?/g;function lS(e,t){return t?t.toUpperCase():""}function uS(e){return e.replace(sS,lS)}function cS(e){return uS("-"+e)}var dS,pS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===eS){var r="mask-image";if(uS(r)in t)return e;if(eS+cS(r)in t)return tS+e}return e}},fS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==rS||oS?e:tS+e)}},mS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:tS+e)}},hS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:tS+e)}},gS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===eS||"ms"===eS&&"edge"!==nS?tS+e:e)}},bS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===eS||"ms"===eS||"apple"===rS?tS+e:e)}},vS={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===eS?"WebkitColumn"+cS(e)in t&&tS+"column-"+e:"Moz"===eS&&("page"+cS(e)in t&&"page-"+e))}},yS={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===eS)return e;var r=e.replace("-inline","");return eS+cS(r)in t&&tS+r}},xS={supportedProperty:function(e,t){return uS(e)in t&&e}},SS={supportedProperty:function(e,t){var r=cS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:eS+r in t?tS+e:"Webkit"!==eS&&"Webkit"+r in t&&"-webkit-"+e}},wS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===eS?""+tS+e:e)}},CS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===eS?tS+"scroll-chaining":e)}},ES={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},RS={supportedProperty:function(e,t){var r=ES[e];return!!r&&(eS+cS(r)in t&&tS+r)}},PS={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},AS=Object.keys(PS),IS=function(e){return tS+e},MS={supportedProperty:function(e,t,r){var n=r.multiple;if(AS.indexOf(e)>-1){var o=PS[e];if(!Array.isArray(o))return eS+cS(o)in t&&tS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(eS+cS(o[0])in t))return!1;return o.map(IS)}return!1}},DS=[iS,aS,pS,fS,mS,hS,gS,bS,vS,yS,xS,SS,wS,CS,RS,MS],kS=DS.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),TS=DS.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,cb(t.noPrefill)),e}),[]),qS={};if(ay){dS=document.createElement("p");var LS=window.getComputedStyle(document.documentElement,"");for(var OS in LS)isNaN(OS)||(qS[LS[OS]]=LS[OS]);TS.forEach((function(e){return delete qS[e]}))}function NS(e,t){if(void 0===t&&(t={}),!dS)return e;if(null!=qS[e])return qS[e];"transition"!==e&&"transform"!==e||(t[e]=e in dS.style);for(var r=0;r<kS.length&&(qS[e]=kS[r](e,dS.style,t),!qS[e]);r++);try{dS.style[e]=""}catch(e){return!1}return qS[e]}var _S,jS={},zS={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},FS=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function HS(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?NS(t):", "+NS(r);return n||(t||r)}function $S(e,t){var r=t;if(!_S||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=jS[n])return jS[n];try{_S.style[e]=r}catch(e){return jS[n]=!1,!1}if(zS[e])r=r.replace(FS,HS);else if(""===_S.style[e]&&("-ms-flex"===(r=tS+r)&&(_S.style[e]="-ms-flexbox"),_S.style[e]=r,""===_S.style[e]))return jS[n]=!1,!1;return _S.style[e]="",jS[n]=r,jS[n]}function BS(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=NS(r);i&&i!==r&&(o=!0);var a=!1,s=$S(i,py(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===eS?e:"@"+tS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return $S(t,py(e))||e}}}function VS(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=cy(e,{},r);return n[Sx]=t,n},onProcessStyle:function(e,t){if(xx in t||Sx in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[xx]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Sx];i&&(o.style=i(e)||{});var a=o[xx];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Ix(),Tx(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=jx(e[t]);return e}return jx(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=_x(t);return t===n?e:(r.prop(n,e),null)}},Wx(),"undefined"==typeof window?null:BS(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}})]};var e}function WS(e,t){if(null==e)return{};var r,n,o=zr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function US(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=jr({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}ay&&(_S=document.createElement("p"));var GS=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},YS=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},KS=function(e,t,r){e.get(t).delete(r)},XS=x.createContext(null);function JS(){return x.useContext(XS)}var ZS,QS=gx(VS()),ew=ny(),tw=new Map,rw={disableGeneration:!1,generateClassName:ew,jss:QS,sheetsCache:null,sheetsManager:tw,sheetsRegistry:null},nw=x.createContext(rw);function ow(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=WS(e,["children","injectFirst","disableGeneration"]),s=jr({},x.useContext(nw),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!ZS){var l=document.head;ZS=document.createComment("mui-inject-first"),l.insertBefore(ZS,l.firstChild)}s.jss=gx({plugins:VS().plugins,insertionPoint:ZS})}return x.createElement(nw.Provider,{value:s},t)}var iw=-1e9;var aw={};function sw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=YS(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},GS(o.sheetsManager,i,n,s));var l=jr({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=YS(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,jr({link:!1},l))).attach(),o.sheetsCache&&GS(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=vx(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,jr({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=US({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function lw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?aw:i,s=WS(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=jr({},o);return Object.keys(i).forEach((function(e){a[e]=Sh(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:iw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JS()||a,n=jr({},x.useContext(nw),s),i=x.useRef(),u=x.useRef();!function(e,t){var r,n=x.useRef([]),o=x.useMemo((function(){return{}}),t);n.current!==o&&(n.current=o,r=e()),x.useEffect((function(){return function(){r&&r()}}),[o])}((function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return sw(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=YS(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(KS(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),x.useEffect((function(){u.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(i.current,e),u.current=!0}));var c=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=US({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var uw=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return sy(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new Jy;var r=ny();return x.createElement(ow,jr({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return x.createElement("style",jr({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function cw(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=cw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function dw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=cw(e))&&(n&&(n+=" "),n+=t);return n}var pw={exports:{}},fw={},mw="function"==typeof Symbol&&Symbol.for,hw=mw?Symbol.for("react.element"):60103,gw=mw?Symbol.for("react.portal"):60106,bw=mw?Symbol.for("react.fragment"):60107,vw=mw?Symbol.for("react.strict_mode"):60108,yw=mw?Symbol.for("react.profiler"):60114,xw=mw?Symbol.for("react.provider"):60109,Sw=mw?Symbol.for("react.context"):60110,ww=mw?Symbol.for("react.async_mode"):60111,Cw=mw?Symbol.for("react.concurrent_mode"):60111,Ew=mw?Symbol.for("react.forward_ref"):60112,Rw=mw?Symbol.for("react.suspense"):60113,Pw=mw?Symbol.for("react.suspense_list"):60120,Aw=mw?Symbol.for("react.memo"):60115,Iw=mw?Symbol.for("react.lazy"):60116,Mw=mw?Symbol.for("react.block"):60121,Dw=mw?Symbol.for("react.fundamental"):60117,kw=mw?Symbol.for("react.responder"):60118,Tw=mw?Symbol.for("react.scope"):60119;function qw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case hw:switch(e=e.type){case ww:case Cw:case bw:case yw:case vw:case Rw:return e;default:switch(e=e&&e.$$typeof){case Sw:case Ew:case Iw:case Aw:case xw:return e;default:return t}}case gw:return t}}}function Lw(e){return qw(e)===Cw}fw.AsyncMode=ww,fw.ConcurrentMode=Cw,fw.ContextConsumer=Sw,fw.ContextProvider=xw,fw.Element=hw,fw.ForwardRef=Ew,fw.Fragment=bw,fw.Lazy=Iw,fw.Memo=Aw,fw.Portal=gw,fw.Profiler=yw,fw.StrictMode=vw,fw.Suspense=Rw,fw.isAsyncMode=function(e){return Lw(e)||qw(e)===ww},fw.isConcurrentMode=Lw,fw.isContextConsumer=function(e){return qw(e)===Sw},fw.isContextProvider=function(e){return qw(e)===xw},fw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===hw},fw.isForwardRef=function(e){return qw(e)===Ew},fw.isFragment=function(e){return qw(e)===bw},fw.isLazy=function(e){return qw(e)===Iw},fw.isMemo=function(e){return qw(e)===Aw},fw.isPortal=function(e){return qw(e)===gw},fw.isProfiler=function(e){return qw(e)===yw},fw.isStrictMode=function(e){return qw(e)===vw},fw.isSuspense=function(e){return qw(e)===Rw},fw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===bw||e===Cw||e===yw||e===vw||e===Rw||e===Pw||"object"==typeof e&&null!==e&&(e.$$typeof===Iw||e.$$typeof===Aw||e.$$typeof===xw||e.$$typeof===Sw||e.$$typeof===Ew||e.$$typeof===Dw||e.$$typeof===kw||e.$$typeof===Tw||e.$$typeof===Mw)},fw.typeOf=qw,pw.exports=fw;var Ow=pw.exports,Nw={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_w={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},jw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zw={};function Fw(e){return Ow.isMemo(e)?jw:zw[e.$$typeof]||Nw}zw[Ow.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zw[Ow.Memo]=jw;var Hw=Object.defineProperty,$w=Object.getOwnPropertyNames,Bw=Object.getOwnPropertySymbols,Vw=Object.getOwnPropertyDescriptor,Ww=Object.getPrototypeOf,Uw=Object.prototype;var Gw=function e(t,r,n){if("string"!=typeof r){if(Uw){var o=Ww(r);o&&o!==Uw&&e(t,o,n)}var i=$w(r);Bw&&(i=i.concat(Bw(r)));for(var a=Fw(t),s=Fw(r),l=0;l<i.length;++l){var u=i[l];if(!(_w[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Vw(r,u);try{Hw(t,u,c)}catch(e){}}}}return t},Yw=Bt(Gw);function Kw(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=x.forwardRef((function(r,n){var o=r.innerRef,i=WS(r,["innerRef"]),a=JS()||e;return x.createElement(t,jr({theme:a,ref:o||n},i))}));return Yw(r,t),r}}var Xw,Jw=Kw(),Zw=Object.freeze({__proto__:null,ServerStyleSheets:uw,StylesContext:nw,StylesProvider:ow,ThemeProvider:function(e){var t=e.children,r=e.theme,n=JS(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):jr({},e,t)}(n,r);return null!=e&&(e[ty]=null!==n),e}),[r,n]);return x.createElement(XS.Provider,{value:o},t)},createGenerateClassName:ny,createStyles:function(e){return e},getThemeProps:oy,jssPreset:VS,makeStyles:lw,mergeClasses:US,sheetsManager:tw,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=WS(n,["name"]),a=o,s=lw("function"==typeof t?function(e){return{root:function(r){return t(jr({theme:e},r))}}}:{root:t},jr({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=x.forwardRef((function(t,n){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,p=WS(t,["children","className","clone","component"]),f=dw(s(t).root,u),m=p;if(r&&(o=m,i=r,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),m=a),c)return x.cloneElement(l,jr({className:dw(l.props.className,f)},m));if("function"==typeof l)return l(jr({className:f},m));var h=d||e;return x.createElement(h,jr({ref:n,className:f},m),l)}));return Yw(l,e),l}},useTheme:JS,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=WS(t,["defaultTheme","withTheme","name"]),l=a,u=lw(e,jr({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),c=x.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=WS(e,["classes","innerRef"]),c=u(jr({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=JS()||n,a&&(d=oy({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,jr({ref:s||t,classes:c},d))}));return Yw(c,r),c}},withTheme:Jw,withThemeCreator:Kw}),Qw=Vt(Zw);
98
+ /** @license Material-UI v4.11.5
99
+ *
100
+ * This source code is licensed under the MIT license found in the
101
+ * LICENSE file in the root directory of this source tree.
102
+ */var eC,tC,rC={},nC={};function oC(){if(eC)return nC;eC=1;var e=Nl;Object.defineProperty(nC,"__esModule",{value:!0}),nC.default=void 0;var t=(0,e(Jv()).default)();return nC.default=t,nC}var iC,aC,sC={},lC={};function uC(){if(aC)return sC;aC=1;var e=Nl;Object.defineProperty(sC,"__esModule",{value:!0}),sC.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var m=f.typography,h=(0,n.convertLength)(m.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=m[e],i=parseFloat(h(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(h(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:m.htmlFontSize})})}),m[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(Iu()),r=lg,n=function(){if(iC)return lC;iC=1;var e=Nl;Object.defineProperty(lC,"__esModule",{value:!0}),lC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},lC.getUnit=r,lC.toUnitless=n,lC.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},lC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},lC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},lC.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach((function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e(Ig());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return lC}();return sC}var cC,dC={};var pC,fC={};var mC,hC={};var gC,bC={};!function(e){var t=Nl,r=bh;Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return h.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return h.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return h.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return h.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return h.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return h.ThemeProvider}});var o=vh;Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var i=r(Jv()),a=t(function(){if(Zv)return Qv;Zv=1;var e=Nl;Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=lg,r=e(Jv());return Qv}()),s=t(function(){if(Xw)return ey;Xw=1,Object.defineProperty(ey,"__esModule",{value:!0}),ey.default=function(t){return(0,e.createStyles)(t)};var e=Qw;return ey}()),l=t(function(){if(tC)return rC;tC=1;var e=Nl;Object.defineProperty(rC,"__esModule",{value:!0}),rC.default=void 0;var t=e(Iu()),r=Qw,n=e(oC()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return rC.default=o,rC}()),u=t(uC()),c=t(function(){if(cC)return dC;cC=1;var e=Nl;Object.defineProperty(dC,"__esModule",{value:!0}),dC.default=void 0;var t=e(Iu()),r=Qw,n=e(oC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return dC.default=o,dC}()),d=Gv();Object.keys(d).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))}));var p=t(function(){if(pC)return fC;pC=1;var e=Nl;Object.defineProperty(fC,"__esModule",{value:!0}),fC.default=function(){return(0,t.useTheme)()||r.default};var t=Qw;e(x);var r=e(oC());return fC}()),f=t(function(){if(mC)return hC;mC=1;var e=Nl;Object.defineProperty(hC,"__esModule",{value:!0}),hC.default=void 0;var t=e(Iu()),r=Qw,n=e(oC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return hC.default=o,hC}()),m=t(function(){if(gC)return bC;gC=1;var e=Nl;Object.defineProperty(bC,"__esModule",{value:!0}),bC.default=void 0;var t=Qw,r=e(oC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return bC.default=n,bC}()),h=Qw}(fh),fh.alpha(Tt.GREYSCALE_0,.05),fh.alpha(Tt.GREEN_PALE,.5),fh.alpha(Tt.BLUE_PALE,.5),fh.alpha(Tt.GREEN_PALE,.5),fh.alpha(Tt.BLUE_PALE,.5),fh.alpha(Tt.GREEN_PALE,.5),fh.alpha(Tt.BLUE_PALE,.5),fh.alpha(Tt.GREEN_PALE,.5),fh.alpha(Tt.BLUE_PALE,.5),fh.alpha(Tt.GREEN_PALE,.5),fh.alpha(Tt.BLUE_PALE,.5);const vC=(e="light",t=!1)=>dh(e,t),yC=vC().palette,xC={TEXT:yC.text.primary,DISABLED:yC.text.disabled,HOVER:yC.action.hover,WHITE:ph.GREYSCALE_100,BORDER_LIGHT:ph.GREYSCALE_90,BORDER_MEDIUM:ph.GREYSCALE_85,BORDER_HEAVY:ph.GREYSCALE_50,DARK_MODE_TEXT:ph.GREYSCALE_95,DARK_MODE_BORDER:ph.GREYSCALE_95,DARK_MODE_DISABLED:ph.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:ph.GREYSCALE_95,SELECTED:yC.primary.main,LINK:yC.info.main,ERROR:yC.error.main},SC=(e,t=xC.TEXT,r=xC.WHITE)=>{const n=te(e),o=te(t),i=te(r);return n.isInvalid()?t:function(e,t,r){const n=re(e,t),o=re(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},wC=e=>{const t=e.getStyle("","","dataColors.selected")||xC.SELECTED,r=function(e,t){const r=te("#FFFFFF"),n=te(e),o=te(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=re(r,n),a=re(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,xC.TEXT);return{background:t,color:r}},CC=(e,t)=>{const r=te(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},EC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},RC=e=>{const t=te(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},PC=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},AC=e=>{e.stopPropagation(),e.preventDefault()},IC=e=>!!e&&0===te(e).a,MC="#grid",DC=(e,t,r,n=xC.WHITE)=>e&&!IC(e)?e:IC(t)?r&&!IC(r)?r:n:t,kC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},TC=(e,t,r,n,o)=>{const i=kC(".qv-object .qv-inner-object",r),a=kC(".qv-panel-sheet",r),s=kC(MC,r)??a,l=(e=>{const t=e.components?.find((e=>"general"===e.key)),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return RC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=te(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=IC(d),f=!IC(m=p?s:d)&&SC(m,xC.TEXT,xC.DARK_MODE_TEXT)===X(xC.DARK_MODE_TEXT);var m;return{color:d,headerColor:DC(l,d,s),isDark:f}},qC=(e,r,n,s)=>{const l=a(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=o([]);return i((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(r.closest(MC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return t((()=>({...l,background:TC(e,l,r,n,s)})),[l.name(),r,n,s,e,u])};function LC(e,r){const o=t((()=>({isLoading:!0})),r),[i,a]=n((async()=>{try{return await e()}finally{o.isLoading=!1}}),r);return[i,o.isLoading,a]}const OC=3;function NC(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function _C({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=OC}=o??{},{estimateWidth:a,measureText:s,estimateLineCount:l}=C((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=yt(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=yt((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=NC(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var jC,zC=F;jC=zC.createRoot,zC.hydrateRoot;const FC="Source Sans Pro, sans-serif",HC=(e,t,r)=>{const[,n,o]=LC((async()=>{const t=be(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,FC].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n};function $C(e,t){const[r,n]=w(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var BC={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 VC=({translator:e})=>(C((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(BC).forEach((t=>{e.add(BC[t])}))}}(e)}),[e]),e),WC=e=>{const t=s();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}},UC="12px",GC="nebula-table-utils-head-menu-button",YC="nebula-table-utils-head-menu-wrapper",KC="nebula-table-utils-head-menu",XC="nebula-table-utils-head-menu-list-id",JC="sn-copy-cell";let ZC=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 QC="nebula-table-utils-column-adjuster";let eE=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}({}),tE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const rE={darker:.15,brighter:.3,opacity:.03},nE={darker:.3,brighter:.5,opacity:.05};let oE=function(e){return e.Cyclic="C",e}({});const iE=document.createElement("textarea");function aE(e){iE.value=e,document.body.appendChild(iE),iE.select(),iE.setSelectionRange(0,iE.value.length),document.execCommand("copy"),document.body.removeChild(iE)}iE.style.position="absolute",iE.style.left="-9999px",iE.setAttribute("readonly","");const sE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{aE(t)})):aE(t))};var lE={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](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),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>ke});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}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 u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.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 n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"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),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"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,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);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,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(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 r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.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&&(n=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);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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 R=t().bind(null,!0),P={},A=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function k(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=M(e[r||t])?i:e[t],e=e[r||t]}})),e}function T(e,t){var r=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){T(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}P.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||D(t,o)||(M(a)?n.push({op:"add",path:s,value:i}):I(i)&&I(a)?n=n.concat(P.generate(a,i,s)):A(i)&&A(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&M(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!M(t[0])&&M(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(P.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},P.apply=function(e,t){t.forEach((function(t){var r,n,o=k(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,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||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(I(a)&&I(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(r,e)&&delete r[e]})),R(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 c=k(e,t.from);A(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},P.clone=function(e){return R({},e)},P.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):R(e,t)};const q=P,L=function(e,r,n){if(!e)return Promise.resolve();var o=q.generate(r,n);return t()(!0,r,n),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 r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===O)return r[n]}function _(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===O)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var j={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,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var m=w.getDimComp(u,1),h=w.getDimComp(u,0),g=w.getAggrComp(f,m,h);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,j)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={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(_(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(_(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(_(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(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(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,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function $(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={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,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),m=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",m);else{var h=w.getRangeComp("RangeSum",m),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var v=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(b,v,y);b=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={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($(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($(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($(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($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(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,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function U(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={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,r){var n=U(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.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 r=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):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,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),m=w.getDimComp(u,0),h=w.getAggrComp(p,f,m);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}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]:{},r={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,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;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,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.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]:{},r={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(ne(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(r){return function(e,t,r){var n=[{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 n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(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(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(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,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="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,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},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",Re="qDef.qAggrFunc",Pe="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Pe)&&r(e,Re,i(e,Pe)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Ie=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 De={accumulation:z,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const ke={modifiers:De,apply:qe,applyModifiers:Le,cleanUpMeasure:Oe,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:_e,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Fe(e);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:je};var Te={};function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Te[r.id]=Te[r.id]||{isFirstTime:!0};var u=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Me(n))return Le({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ge({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);$e(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&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 r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(r++,"object"!==Me(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Le({model:r,oldProperties:e,properties:n,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)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function Le(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach((function(e){return Oe(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ge({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Ie.isValid(r)||Ie.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(s++,"object"!==Me(De[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)");De[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:De[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[n.type].updateModifier&&De[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:De[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||je(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&je(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):Oe(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):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&&!De[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})}))}function _e(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(De[n.type]&&!n.disabled)return n}}function je(e){var t=_e(e);return!t||De[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 He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){ze(e).forEach((function(e){return function(e){var r=_e(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!De[t.type]&&He(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,r=e.properties,n=e.layout;return!We(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.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,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):L(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Fe(t);if(Ge({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=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:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return qe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Te[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](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);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}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)}r.d(n,{default:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r: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 r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?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 r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(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 u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.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)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.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,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var P=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const M=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},D=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},k=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=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}}},q=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,P),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,P),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},_=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},j=function(e){var t=e.exportFormat,r=e.initialProperties,n=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&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.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,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=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>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(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=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,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 r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?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),n.dimensions.added(e,r)}))}},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return I(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 I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(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),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:l}),h({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||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,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=j({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,P=l.defaultMeasure,A=void 0===P?q():P;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:R}),O({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),_({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),k("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),k("qMode",b,v,"S"),k("qReductionMode",b,v,"N"),k("qSortbyYValue",b,v),k("qIndentMode",b,v),k("qShowTotalsAbove",b,v),M(g,t,n),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),p&&V(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(G(a,t,n,o),Y(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,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.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)}(r,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}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));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,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(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 r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=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):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,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,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=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:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,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,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),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,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=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 u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Pe="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const De={quarantine:function(e){Ee({properties:e,arrayPath:Pe,quarantineName:Ae,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,itemPath:Me,arrayName:Ie,quarantineName:Ae})}};var ke="qHyperCubeDef.qMeasures",Te="measures",qe="qHyperCubeDef.qDimensions",Le="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",je="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const He={quarantine:function(e){Ee({properties:e,arrayPath:ke,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:ke,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:je,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:je,itemPath:ze})}},$e={hypercube:W,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:He}})(),n.default})()}(lE);var uE=Bt(lE.exports);const cE="qHyperCubeDef.qMeasures",dE="measures",pE="qHyperCubeDef.qDimensions",fE="dimensions",mE="qDef.representation",hE="tableRepresentation",gE="qDef.conditionalColoring",bE="conditionalColoring",vE="qMiniChartDef",yE="miniChartDef",xE=({propertyTree:e,hyperCubePath:t})=>{const r=uE.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t)));return o})(o,i,n);return vt(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),uE.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),uE.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),uE.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{uE.quarantineArrayProp({properties:e,arrayPath:pE,itemPath:mE,arrayName:fE,quarantineName:hE}),uE.quarantineArrayProp({properties:e,arrayPath:cE,itemPath:mE,arrayName:dE,quarantineName:hE}),uE.quarantineArrayProp({properties:e,arrayPath:cE,itemPath:gE,arrayName:dE,quarantineName:bE}),uE.quarantineArrayProp({properties:e,arrayPath:cE,itemPath:vE,arrayName:dE,quarantineName:yE})})(r.properties),r};const SE=/^q[A-Z]/,wE=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],CE=e=>"object"==typeof e&&null!==e,EE=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!SE.test(e)&&!wE.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>CE(e)?EE(e,`${o}.${t}`):e)):CE(n)&&(e[r]=EE(n,o))})),e),RE=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:tE.Pixels,pixels:e}:{type:tE.FitToContent}:i.qDef.columnWidth=e}return i},PE=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{if(i){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}EE(e.properties)}const a=uE.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(uE.conditionalShow.unquarantine(a.qProperty),i)vt(a,"qProperty.totals.show",!1),vt(a,"qProperty.usePagination",!0),vt(a,"qProperty.accessibleHeader",!0);else{uE.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{uE.unquarantineArrayProp({properties:e,arrayPath:pE,itemPath:mE,arrayName:fE,quarantineName:hE}),uE.unquarantineArrayProp({properties:e,arrayPath:cE,itemPath:mE,arrayName:dE,quarantineName:hE}),uE.unquarantineArrayProp({properties:e,arrayPath:cE,itemPath:gE,arrayName:dE,quarantineName:bE}),uE.unquarantineArrayProp({properties:e,arrayPath:cE,itemPath:vE,arrayName:dE,quarantineName:yE})})(a.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=a.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>RE(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>RE(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(vt(a,"qProperty.qHyperCubeDef.qDimensions",o),vt(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var AE={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function IE(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function ME(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function DE(e){return e>0?0:1}function kE(e){return e.translator.get("Visualizations.Descriptions.Column")}function TE(e){return{measures:{min:DE,max:1e3,description:()=>kE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;IE(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;ME(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:DE,max:1e3,description:()=>kE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return IE(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;ME(o,n)}}}}let qE=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),LE=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const OE=e=>{switch(e?.type){case"url":return qE.Link;case"image":return qE.Image;case"indicator":return qE.Indicator;case"miniChart":return qE.MiniChart;default:return qE.Text}},NE=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.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}}),_E=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>OE(e.qDef.representation)===qE.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,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},jE=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:NE({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>OE(e.qDef.representation)===qE.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>OE(e.qDef.representation)===qE.Link&&e.qDef.representation?.urlPosition===LE.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>OE(e.qDef.representation)===qE.Link&&e.qDef.representation?.urlPosition===LE.Attribute},..._E(r)}},zE=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[qE.Image],i=!n?.("qMiniChartDef")&&t[qE.MiniChart],a=!n?.("tableIndicators")&&t[qE.Indicator],s=o&&t[qE.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>OE(e.qDef.representation)===qE.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}};var FE,HE={};FE=HE,(()=>{var e={370:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](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 n={};r.r(n),r.d(n,{default:()=>Ie});var o=r(370),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={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 u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.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 n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),m=g(1),h=x(c,f),b=x(d,m);return"".concat(a,"({1<").concat(h,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function w(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:f,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(h(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:m,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return m(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:w,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return w(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=C({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.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&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=l.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?l.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(l.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P(e){return P="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},P(e)}var A=i().bind(null,!0),I={},M=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===P(e)}function k(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function q(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=k(e[r||t])?i:e[t],e=e[r||t]}})),e}function L(e,t){var r=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){L(e[n],t[n])||(r=!1)})),r);if(M(e)&&M(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}I.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?A({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||T(t,o)||(k(a)?n.push({op:"add",path:s,value:i}):D(i)&&D(a)?n=n.concat(I.generate(a,i,s)):M(i)&&M(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&k(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(L(t,o))return n;if(!k(t[0])&&k(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(I.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){k(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},I.apply=function(e,t){t.forEach((function(t){var r,n,o=q(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(M(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(M(a)&&M(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||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))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]})),A(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 c=q(e,t.from);M(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(M(o)?o.splice(+i,1):delete o[i])}))},I.clone=function(e){return A({},e)},I.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):A(e,t)};const O=I;var N="accumulation";function _(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function j(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.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 r=_(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=_(t,e);return r&&!r.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 E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=_(t,e);return i&&!i.disabled}}}};var H="movingAverage";function $(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===H)return r[n]}function B(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===H)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=E.getNumDimensions({properties:o,layout:i}));var c=s(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:i})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.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 r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.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 E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=$(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function G(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function Y(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const X={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(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:l.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.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 r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=G(t,e);return i&&!i.disabled}}}};var J="difference";function Z(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===J)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:h}):h}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]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.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 E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(J))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===J)return r[n]}(t,e);return i&&!i.disabled}}}};var te="normalization";function re(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;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,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a,s){var l=ae(t),u=se(t,r,n),c=""===l&&""===u?"":l||u,d=le(o,i),p=ue(o,i,a),f=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension,r.ignoreNegative)},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]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(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(r){return function(e,t,r){var n=[{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 n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(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(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(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,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="library id deleted",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId",ge="qDef.qLabel",be="qDef.qLabelExpression",ve="qDef.base.qLabel",ye="qDef.base.qLabelExpression",xe="qDef.qAggrFunc",Se="qDef.base.qAggrFunc",we="qDef.base";const Ce={getExpression:function(e){var t=s(e,fe);return void 0!==t?t:s(e,pe)},getExpressionRef:function(e){return void 0!==s(e,fe)?fe:pe},getLibraryIdRef:function(e){return s(e,he)?he:me},getLibraryId:function(e){return s(e,he)||s(e,me)},getLabelRef:function(e){return s(e,we)?ve:ge},getLabelExpressionRef:function(e){return s(e,we)?ye:be}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,he,s(e,me)),a(e,ve,s(e,ge)),a(e,ye,s(e,be)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,me,s(e,he)),a(e,ge,s(e,ve)),a(e,be,s(e,ye)),s(e,xe)&&s(e,Se)&&a(e,xe,s(e,Se)),delete e.qDef.base)},isValid:function(e){var t=s(e,fe),r=s(e,he);return void 0!==t||void 0!==r}};const Re=Ee;function Pe(e){return Pe="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},Pe(e)}var Ae={accumulation:F,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:X};const Ie={modifiers:Ae,apply:De,applyModifiers:ke,cleanUpMeasure:Te,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[e.id])},hasActiveModifiers:qe,getActiveModifier:Le,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:r,layout:n})}))},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=_e(e);Ve({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Oe};var Me={};function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,l=!1;Me[t.id]=Me[t.id]||{isFirstTime:!0};var u=Me[t.id].isFirstTime;if(Me[t.id].isFirstTime=!1,r&&"object"===Pe(r))return ke({model:t,properties:r});var c=t?t.layout:void 0,d=s(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(c,"qHyperCube.qMeasureInfo"),f=Me[t.id].lastReloadTime;if(Me[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Be({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ve({modifiers:_e(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then((function(e){var r=i()(!0,{},e);ze(r);var n=Xe(r);return We({model:t}).then((function(o){return Ue({libraryIds:n,model:t}).then((function(n){return m&&function(e){var t=e.properties;Ne(t).forEach((function(e){return function(e){var t=e.measure;if(Be({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(r++,"object"!==Pe(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&He(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),ke({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})}))})).catch((function(){return Promise.resolve(l)}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Pe(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return Ne(r).forEach((function(e){return Te(e)})),Ye({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function ke(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,l=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),ze(n);var p=Xe(n);return Je({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Ne(r)),!t.length)return Promise.resolve();if(!o&&!qe({measures:t,properties:r}))return t.forEach((function(e){return Te(e)})),Promise.resolve();var l=o?void 0:Xe(r);return We({model:n,dimensionAndFieldList:a}).then((function(e){return Ue({libraryIds:l,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Ve({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(a++,"object"!==Pe(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ae[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ae[r.type].updateModifier&&Ae[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Ae[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||Oe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Oe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Fe(t)):Te(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Ye({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function Te(e){!function(e){var t=_e(e);return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({modifiers:_e(e),properties:r,layout:n})}))}function Le(e){var t=_e(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ae[n.type]&&!n.disabled)return n}}function Oe(e){var t=Le(e);return!t||Ae[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function _e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function je(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function ze(e){Ne(e).forEach((function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&je(t)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Fe(e){var t=_e(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!Ae[t.type]&&je(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function He(e){return e.base||e.qDef&&e.qDef.base}function $e(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function Be(e){var t=e.measure,r=e.properties,n=e.layout;return!$e(t)&&Ve({modifiers:_e(t),properties:r,layout:n})}function Ve(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function We(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ue(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.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})).catch((function(){return null}))}function Ge(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),Ge)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&s(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):function(e,t,r){if(!e)return Promise.resolve();var n=O.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()}(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ke(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=_e(t);if(Ve({modifiers:n,properties:e})){var i=$e(t);i&&r.push(i),o=o||Ke({modifiers:n,properties:e})}})),s(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Me[t.id].masterItemSubscriber=Me[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=s(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])}))}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,(function(){return e=t.id,r(de),delete n[e],void c();var e})),enabled:!1,properties:l(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Me[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in FE.default=n.default,n)-1===["default"].indexOf(Ze)&&(FE[Ze]=n[Ze]);Object.defineProperty(FE,"__esModule",{value:!0})})();var $E=Bt(HE);const BE={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},VE={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}},WE=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)=>(!$E.hasActiveModifiers({measures:[e],properties:t.properties})||$E.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")}),UE={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:tE.Auto,translation:"Common.Auto"},{value:tE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:tE.Pixels,translation:"Object.Table.Column.Pixels"},{value:tE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:tE.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===tE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===tE.Percentage}},GE=()=>({...BE,visibilityCondition:{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},tableCellStyling:{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}]},...VE,...UE}),YE={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},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},KE=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:WE(e)}},XE=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:YE},presentation:{type:"items",translation:"properties.presentation",items:{...GE(),...jE(e)}}}}}),JE=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:KE(e)},presentation:{type:"items",translation:"properties.presentation",items:{...GE(),...zE(e,{[qE.Image]:!0,[qE.Indicator]:!0,[qE.MiniChart]:!0})}}}}}),ZE=e=>({...XE(e),...JE(e)}),QE=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...ZE(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}}}),eR={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}},tR=({flags:e})=>{const t={ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1};return e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")?{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},t,{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]}:t},rR=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")}),nR=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),oR=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},iR=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map((e=>oR(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...be(n).filter((e=>!a.includes(e))).map((e=>oR(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),aR=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],sR=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>oR(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...aR.filter((e=>!i.includes(e))).map((e=>oR(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),lR=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:iR({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:sR({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:nR(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:nR(`${e}.background`,"properties.background",((t,r)=>{const n=r?xC.WHITE:xC.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),uR=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{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:nR(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:nR(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),cR=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},dR=e=>e.grid?.zebraStripes?.show,pR={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=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)}},fR=e=>e?.content?.hoverEffect,mR={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:fR,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:fR,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},hR=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,gR=({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,defaultValue:[],items:{headerSection:lR({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:cR,disableNoneCallback:hR}),dimensionValueSection:lR({section:"dimensionValues",translator:t,flags:e,getThemeValue:cR}),measureValueSection:lR({section:"measureValues",translator:t,flags:e,getThemeValue:cR}),totalRowSection:lR({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:cR,disableNoneCallback:hR}),nullValues:uR({section:"nullValues",fallbackBackground:xC.NULL_VALUE_BACKGROUND,getThemeValue:cR}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...pR},border:nR("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??xC.BORDER_MEDIUM)),divider:nR("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??xC.BORDER_HEAVY))}}}},hoverEffectSection:mR,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:dR,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:dR,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:dR,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:dR,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),bR=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[gR(e),rR(e),tR(e),{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},{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]},...eR}}),vR={uses:"sorting"},yR={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},xR=e=>({type:"items",component:"accordion",items:{data:QE(e),sorting:vR,addOns:yR,settings:bR(e)}});function SR(e){return{definition:xR(e),exploration:AE,data:TE(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(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return PE({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>xE({propertyTree:e,hyperCubePath:t})}}const wR=(e,r)=>t((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=e[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};t?.applyPatches([l],!0)})(e,r)),[e,r]),CR=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),ER=[];for(let e=0;e<256;++e)ER.push((e+256).toString(16).slice(1));let RR;const PR=new Uint8Array(16);var AR={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function IR(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!RR){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");RR=crypto.getRandomValues.bind(crypto)}return RR(PR)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(ER[e[t+0]]+ER[e[t+1]]+ER[e[t+2]]+ER[e[t+3]]+"-"+ER[e[t+4]]+ER[e[t+5]]+"-"+ER[e[t+6]]+ER[e[t+7]]+"-"+ER[e[t+8]]+ER[e[t+9]]+"-"+ER[e[t+10]]+ER[e[t+11]]+ER[e[t+12]]+ER[e[t+13]]+ER[e[t+14]]+ER[e[t+15]]).toLowerCase()}(n)}const MR=()=>{return crypto?.randomUUID?.()??(AR.randomUUID&&!e?AR.randomUUID():IR(e));var e},DR=({qLibraryId:e,cId:t})=>e??t??MR(),kR=e=>"number"==typeof e&&!Number.isNaN(+e),TR=e=>kR(e.qNum),qR=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);var LR={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach((e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:NR(e),value:NR(t),useEqualSign:r}}(n,o,i))})),t}},OR=LR;function NR(e){try{return decodeURIComponent(e)}catch{return e}}function _R(e){if(!(this instanceof _R))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>OR.fromSearchString(t.search)}})}function jR(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}_R.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},_R.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=jR(t.key),t.value?r+=`=${jR(t.value)}`:r+=t.useEqualSign?"=":"";return r};var zR=_R;var FR,HR=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}},$R=class{decode(e){let t="";const r=new HR(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},BR=e=>e>=0&&e<=1114111,VR=e=>e.match(/[\s]/),WR=class extends $R{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!VR(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return BR(a)?String.fromCharCode(a):"�"}},UR=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},GR=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return UR.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return UR.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||UR.newInstanceIfNeeded(e,t,this._value)}},YR=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 GR);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},KR=(()=>{const e=[],t=[],r=new YR;let n,o,i;for(n in e["&quot"]="34",e["&amp"]="38",e["&lt"]="60",e["&gt"]="62",e["&nbsp"]="160",e["&iexcl"]="161",e["&cent"]="162",e["&pound"]="163",e["&curren"]="164",e["&yen"]="165",e["&brvbar"]="166",e["&sect"]="167",e["&uml"]="168",e["&copy"]="169",e["&ordf"]="170",e["&laquo"]="171",e["&not"]="172",e["&shy"]="173",e["&reg"]="174",e["&macr"]="175",e["&deg"]="176",e["&plusmn"]="177",e["&sup2"]="178",e["&sup3"]="179",e["&acute"]="180",e["&micro"]="181",e["&para"]="182",e["&middot"]="183",e["&cedil"]="184",e["&sup1"]="185",e["&ordm"]="186",e["&raquo"]="187",e["&frac14"]="188",e["&frac12"]="189",e["&frac34"]="190",e["&iquest"]="191",e["&Agrave"]="192",e["&Aacute"]="193",e["&Acirc"]="194",e["&Atilde"]="195",e["&Auml"]="196",e["&Aring"]="197",e["&AElig"]="198",e["&Ccedil"]="199",e["&Egrave"]="200",e["&Eacute"]="201",e["&Ecirc"]="202",e["&Euml"]="203",e["&Igrave"]="204",e["&Iacute"]="205",e["&Icirc"]="206",e["&Iuml"]="207",e["&ETH"]="208",e["&Ntilde"]="209",e["&Ograve"]="210",e["&Oacute"]="211",e["&Ocirc"]="212",e["&Otilde"]="213",e["&Ouml"]="214",e["&times"]="215",e["&Oslash"]="216",e["&Ugrave"]="217",e["&Uacute"]="218",e["&Ucirc"]="219",e["&Uuml"]="220",e["&Yacute"]="221",e["&THORN"]="222",e["&szlig"]="223",e["&agrave"]="224",e["&aacute"]="225",e["&acirc"]="226",e["&atilde"]="227",e["&auml"]="228",e["&aring"]="229",e["&aelig"]="230",e["&ccedil"]="231",e["&egrave"]="232",e["&eacute"]="233",e["&ecirc"]="234",e["&euml"]="235",e["&igrave"]="236",e["&iacute"]="237",e["&icirc"]="238",e["&iuml"]="239",e["&eth"]="240",e["&ntilde"]="241",e["&ograve"]="242",e["&oacute"]="243",e["&ocirc"]="244",e["&otilde"]="245",e["&ouml"]="246",e["&divide"]="247",e["&oslash"]="248",e["&ugrave"]="249",e["&uacute"]="250",e["&ucirc"]="251",e["&uuml"]="252",e["&yacute"]="253",e["&thorn"]="254",e["&yuml"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["&notin"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})(),XR=class extends $R{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,KR.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=KR.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&BR(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&BR(n)?String.fromCharCode(n):null}},JR=class extends $R{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),BR(i))?String.fromCharCode(i):(e.reset(),null)}},ZR=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,QR=5e6,eP=5e5,tP=(e,t)=>{const{maxByteSizeSvg:r=eP,maxByteSizeImage:n=QR}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=ZR.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n};"undefined"!=typeof document&&(FR=document.createElement("div"));var rP=Array.prototype.indexOf,nP=[",",".","_"," "],oP=[",",".","-","_"," "],iP={width:["%"],height:["%"]},aP={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},sP={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":aP.image,"background-color":aP.color,"border-color":aP.color,"border-image":aP.image,color:aP.color,icon:aP.image,"list-style-image":aP.image,"outline-color":aP.color},lP={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function uP(e,t,r){let n;if(t){if(rP)return rP.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function cP(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return FR.appendChild(r),t=FR.innerHTML,FR.removeChild(r),t}function dP(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=fP(e).toLowerCase(),t=fP(t),i=0;i<lP.attr_name.length;i++)if(e.match(lP.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<lP.attr_val.length;i++)if(t.toLowerCase().match(lP.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=iP[e],n||(n=oP),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&uP(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function pP(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=fP(e).toLowerCase(),t=fP(t),uP(e,lP.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<lP.css_val.length;n++)if(t.toLowerCase().indexOf(lP.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=sP[e],o||(o=aP.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&uP(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function fP(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new XR,new JR,new WR];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}var mP=[];for(let e=0;e<255;e++)mP[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var hP={html:e=>cP(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=pP(t,r[t],!0),i+=pP(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=dP(e,t[e],!0),o+=dP(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function gP(e,t){throw new Error(t)}var bP={canonicalize:fP,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?hP.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&gP(this,"Invalid parameter type"),hP.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&gP(this,"Invalid parameter type"),hP.attr(e)):void gP(this,"Invalid parameter type")},encodeForAttr:dP,encodeForAttr2:function(e){return dP("nonsens",e,!0)},encodeForCSS:pP,encodeForHref:function(e){fP(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new zR(e),r=zR.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+zR.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=nP),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),uP(o,t)>=0||null==mP[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:cP,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=fP(t).toLowerCase():gP(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:tP,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const vP=(e,t)=>t.qAttrExps?.qValues?.[e],yP=(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"}}},xP=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&bP.isSafeDataURL(t)?{type:qE.Image,url:t,text:e,imageSize:r,resolvedImagePosition:yP(n,a),labelStructure:o,imageBox:i}:{type:qE.Text,url:void 0,text:e,labelStructure:o},SP=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:qE.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:qE.MiniChart,text:n,miniChart:a}},wP=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===LE.Attribute?void 0:r?.urlLabel},CP=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:qE.Link,url:bP.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:qE.Text,url:void 0,text:t,labelStructure:e}}},EP=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=OE(t),d=s(e);return c===qE.Image&&u[qE.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=vP(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),xP({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return xP({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=vP(r.imageLabel??-1,e)?.qText??n;return xP({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:qE.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===qE.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===LE.Attribute){const i=wP(r.url??-1,e,t);return CP({labelStructure:n,text:o||i||"",url:i})}if(i===LE.Dimension){const i=wP(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),CP({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:qE.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===qE.Indicator&&u[qE.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:qE.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===qE.MiniChart&&u[qE.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?SP(e,t,i,d):{type:qE.Text,url:void 0,text:d,labelStructure:a}},RP=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,PP=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",AP=1e4;function IP(e,t){return[...t].reverse().find((t=>t*e<=AP))||Math.floor(AP/e)}function MP(e,t){if(t.viewState?.skipTotals)return{atTop:!1,atBottom:!1};const[r,n,o,i,a]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function DP(e,t,r,n){return t?0===r?e.totals.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function kP(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return kR(r?.qNum)}function TP(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const qP=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const LP=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=n.length===a?n:Array.from(Array(a).keys()),{visibleColumnsOrder:l,visibleColumnIndexes:u}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const s=e<n,{qError:l}=s?t[e]:r[e-n],u=7005===l?.qErrorCode;return u?s?i++:a++:o[e]=s?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(s,o,i);return l.map(((n,o)=>function(e,t,r,n,o,i){const{qDimensionInfo:a,qMeasureInfo:s,qEffectiveInterColumnSortOrder:l}=e.qHyperCube,u=a.length,c=t<u,d=c?a[t]:s[t-u],p=c&&a[t].qGrouping===oE.Cyclic,f=t===l[0];let m,h,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:w}=d;if(c){const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles,b=e.qLocked??!1,v=n,({qDimensionType:m}=e)}else({qMiniChart:h}=d);const{qFallbackTitle:C,textAlign:E,qAttrExprInfo:R,qSortIndicator:P,qReverseSort:A,qApprMaxGlyphCount:I,columnWidth:M,qLibraryId:D}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:D,pageColIdx:r,qApprMaxGlyphCount:I,qReverseSort:A,columnWidth:M??{type:tE.Auto},selectionColIdx:v,isActivelySorted:f,id:DR(d),label:C,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:R.map((e=>e.id)),qAttrExprInfoIndex:CR(d),sortDirection:P&&"N"!==P?P:"A",totalInfo:DP(e,c,r,n),...!c&&{isTotalNumeric:kP(e,n)},...TP(E,m,c,o,i),representation:S,conditionalColoring:c?void 0:w,qMiniChart:h}}(e,n,o,u[n],t,r)))};const OP=(e,t)=>!(!e.snapshotData&&!t.viewState?.visibleHeight),NP=(e,t)=>void 0!==t.viewState?.usePagination?t.viewState.usePagination:!1!==e.usePagination||OP(e,t);var _P={exports:{}};
105
103
  /*!
106
104
  * CSSJanus. https://github.com/cssjanus/cssjanus
107
105
  *
@@ -120,77 +118,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.le
120
118
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
121
119
  * See the License for the specific language governing permissions and
122
120
  * limitations under the License.
123
- */!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",h="(?:[!#$%&*-~]|"+r+"|"+u+")*?",m="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+h+a+"\\))",v="(?="+h+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),C=new RegExp("("+l+g+"[^;}]+;?)","gi"),w=new RegExp("("+l+"[^\\}]*?})","gi"),E=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(s+"(left)"+m+b+g,"gi"),P=new RegExp(s+"(right)"+m+b+g,"gi"),k=new RegExp(s+"(left)"+v,"gi"),M=new RegExp(s+"(right)"+v,"gi"),I=new RegExp(s+"(ltr)"+v,"gi"),L=new RegExp(s+"(rtl)"+v,"gi"),D=new RegExp(s+"([ns]?)e-resize","gi"),T=new RegExp(s+"([ns]?)w-resize","gi"),_=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),O=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),j=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),z=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),F=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),H=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function V(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function G(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 U(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?G(n)+" / "+G(o):G(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(C,"`NOFLIP_SINGLE`"),a=new n(w,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(I,"$1"+e).replace(L,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(k,"$1"+e).replace(M,"$1left").replace(x,"right")),r=r.replace(E,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(P,"$1left").replace(x,"right").replace(D,"$1$2"+e).replace(T,"$1$2e-resize").replace(x,"w-resize").replace(j,U).replace(z,K).replace(F,J).replace($,J).replace(B,K).replace(H,X).replace(W,X).replace(_,"$1$2$3$8$5$6$7$4$9").replace(O,"$1$2$3$8$5$6$7$4$9").replace(q,V).replace(N,V),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(rM,rM.exports);var nM=Et(rM.exports),oM="comm",iM="rule",aM="decl",sM=Math.abs,lM=String.fromCharCode;function uM(e){return e.trim()}function cM(e,t,r){return e.replace(t,r)}function dM(e,t,r){return e.indexOf(t,r)}function pM(e,t){return 0|e.charCodeAt(t)}function fM(e,t,r){return e.slice(t,r)}function hM(e){return e.length}function mM(e,t){return t.push(e),e}var gM=1,bM=1,vM=0,yM=0,xM=0,SM="";function CM(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:gM,column:bM,length:a,return:"",siblings:s}}function wM(){return xM=yM>0?pM(SM,--yM):0,bM--,10===xM&&(bM=1,gM--),xM}function EM(){return xM=yM<vM?pM(SM,yM++):0,bM++,10===xM&&(bM=1,gM++),xM}function RM(){return pM(SM,yM)}function AM(){return yM}function PM(e,t){return fM(SM,e,t)}function kM(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 MM(e){return uM(PM(yM-1,DM(91===e?e+2:40===e?e+1:e)))}function IM(e){for(;(xM=RM())&&xM<33;)EM();return kM(e)>2||kM(xM)>3?"":" "}function LM(e,t){for(;--t&&EM()&&!(xM<48||xM>102||xM>57&&xM<65||xM>70&&xM<97););return PM(e,AM()+(t<6&&32==RM()&&32==EM()))}function DM(e){for(;EM();)switch(xM){case e:return yM;case 34:case 39:34!==e&&39!==e&&DM(xM);break;case 40:41===e&&DM(e);break;case 92:EM()}return yM}function TM(e,t){for(;EM()&&e+xM!==57&&(e+xM!==84||47!==RM()););return"/*"+PM(t,yM-1)+"*"+lM(47===e?e:EM())}function _M(e){for(;!kM(RM());)EM();return PM(e,yM)}function OM(e){return function(e){return SM="",e}(qM("",null,null,null,[""],e=function(e){return gM=bM=1,vM=hM(SM=e),yM=0,[]}(e),0,[0],e))}function qM(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,C=n,w=y;g;)switch(h=v,v=EM()){case 40:if(108!=h&&58==pM(w,d-1)){-1!=dM(w+=cM(MM(v),"&","&\f"),"&\f",sM(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=MM(v);break;case 9:case 10:case 13:case 32:w+=IM(h);break;case 92:w+=LM(AM()-1,7);continue;case 47:switch(RM()){case 42:case 47:mM(jM(TM(EM(),AM()),t,r,l),l),5!=kM(h||1)&&5!=kM(RM()||1)||!hM(w)||" "===fM(w,-1,void 0)||(w+=" ");break;default:w+="/"}break;case 123*m:s[u++]=hM(w)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=cM(w,/\f/g,"")),f>0&&(hM(w)-d||0===m&&47===h)&&mM(f>32?zM(w+";",n,r,d-1,l):zM(cM(w," ","")+";",n,r,d-2,l),l);break;case 59:w+=";";default:if(mM(C=NM(w,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)qM(w,t,C,C,x,i,d,s,S);else{switch(p){case 99:if(110===pM(w,3))break;case 108:if(97===pM(w,2))break;default:c=0;case 100:case 109:case 115:}c?qM(e,C,C,n&&mM(NM(e,C,C,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):qM(w,C,C,C,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=w="",d=a;break;case 58:d=1+hM(w),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==wM())continue;switch(w+=lM(v),v*m){case 38:b=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(hM(w)-1)*b,b=1;break;case 64:45===RM()&&(w+=MM(EM())),p=RM(),c=d=hM(y=w+=_M(AM())),v++;break;case 45:45===h&&2==hM(w)&&(m=0)}}return i}function NM(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=fM(e,p+1,p=sM(g=a[m])),x=e;v<h;++v)(x=uM(g>0?f[v]+" "+y:cM(y,/&\f/g,f[v])))&&(l[b++]=x);return CM(e,t,r,0===o?iM:s,l,u,c,d)}function jM(e,t,r,n){return CM(e,t,r,oM,lM(xM),fM(e,2,-2),0,n)}function zM(e,t,r,n,o){return CM(e,t,r,aM,fM(e,0,n),fM(e,n+1,-1),n,o)}function FM(e,t,r){switch(e.type){case"@import":case aM:case oM:return e.return=e.return||e.value;case iM:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===oM&&(e.children=e.value)}))}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),FM);return hM(n)?e.return=e.value+"{"+n+"}":""}function $M(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===iM&&(!e.parent||"@media"===e.parent.type||e.parent.type===iM)){var o=nM.transform(FM(e));e.children=o?OM(o)[0].children:[],e.return=""}}Object.defineProperty($M,"name",{value:"stylisRTLPlugin"});let BM=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),HM=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}({}),WM=function(e){return e.A="ascending",e.D="descending",e}({}),VM=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const GM=[0,0];function UM(e){return ZA(e)}const YM=Wf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),KM=["center","classes","className"];let XM,JM,ZM,QM,eI=e=>e;const tI=fp(XM||(XM=eI`
124
- 0% {
125
- transform: scale(0);
126
- opacity: 0.1;
127
- }
128
-
129
- 100% {
130
- transform: scale(1);
131
- opacity: 0.3;
132
- }
133
- `)),rI=fp(JM||(JM=eI`
134
- 0% {
135
- opacity: 1;
136
- }
137
-
138
- 100% {
139
- opacity: 0;
140
- }
141
- `)),nI=fp(ZM||(ZM=eI`
142
- 0% {
143
- transform: scale(1);
144
- }
145
-
146
- 50% {
147
- transform: scale(0.92);
148
- }
149
-
150
- 100% {
151
- transform: scale(1);
152
- }
153
- `)),oI=Qk("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),iI=Qk((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=S.useState(!1),p=Ff(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Ff(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),S.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),Ll.jsx("span",{className:p,style:f,children:Ll.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(QM||(QM=eI`
154
- opacity: 0;
155
- position: absolute;
156
-
157
- &.${0} {
158
- opacity: 0.3;
159
- transform: scale(1);
160
- animation-name: ${0};
161
- animation-duration: ${0}ms;
162
- animation-timing-function: ${0};
163
- }
164
-
165
- &.${0} {
166
- animation-duration: ${0}ms;
167
- }
168
-
169
- & .${0} {
170
- opacity: 1;
171
- display: block;
172
- width: 100%;
173
- height: 100%;
174
- border-radius: 50%;
175
- background-color: currentColor;
176
- }
177
-
178
- & .${0} {
179
- opacity: 0;
180
- animation-name: ${0};
181
- animation-duration: ${0}ms;
182
- animation-timing-function: ${0};
183
- }
184
-
185
- & .${0} {
186
- position: absolute;
187
- /* @noflip */
188
- left: 0px;
189
- top: 0;
190
- animation-name: ${0};
191
- animation-duration: 2500ms;
192
- animation-timing-function: ${0};
193
- animation-iteration-count: infinite;
194
- animation-delay: 200ms;
195
- }
196
- `),YM.rippleVisible,tI,550,(({theme:e})=>e.transitions.easing.easeInOut),YM.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),YM.child,YM.childLeaving,rI,550,(({theme:e})=>e.transitions.easing.easeInOut),YM.childPulsate,nI,(({theme:e})=>e.transitions.easing.easeInOut)),aI=S.forwardRef((function(e,t){const r=UM({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=xr(r,KM),[s,l]=S.useState([]),u=S.useRef(0),c=S.useRef(null);S.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=S.useRef(!1),p=_h(),f=S.useRef(null),h=S.useRef(null),m=S.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,Ll.jsx(iI,{classes:{ripple:Ff(o.ripple,YM.ripple),rippleVisible:Ff(o.rippleVisible,YM.rippleVisible),ripplePulsate:Ff(o.ripplePulsate,YM.ripplePulsate),child:Ff(o.child,YM.child),childLeaving:Ff(o.childLeaving,YM.childLeaving),childPulsate:Ff(o.childPulsate,YM.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=S.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m,p]),b=S.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=S.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return S.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ll.jsx(oI,xt({className:Ff(YM.root,o.root,i),ref:h},a,{children:Ll.jsx(Jg,{component:null,exit:!0,children:s})}))}));function sI(e){return Hf("MuiButtonBase",e)}const lI=Wf("MuiButtonBase",["root","disabled","focusVisible"]),uI=["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"],cI=Qk("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"},[`&.${lI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),dI=S.forwardRef((function(e,t){const r=UM({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:C,onMouseLeave:w,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:k=0,TouchRippleProps:M,touchRippleRef:I,type:L}=r,D=xr(r,uI),T=S.useRef(null),_=S.useRef(null),O=Ih(_,I),{isFocusVisibleRef:q,onFocus:N,onBlur:j,ref:z}=Hh(),[F,$]=S.useState(!1);l&&F&&$(!1),S.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[B,H]=S.useState(!1);S.useEffect((()=>{H(!0)}),[]);const W=B&&!u&&!l;function V(e,t,r=c){return Mh((n=>{t&&t(n);return!r&&_.current&&_.current[e](n),!0}))}S.useEffect((()=>{F&&d&&!u&&B&&_.current.pulsate()}),[u,d,F,B]);const G=V("start",C),U=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),J=V("start",P),Z=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{j(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Mh((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=T.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=S.useRef(!1),oe=Mh((e=>{d&&!ne.current&&F&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=Mh((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(D.href||D.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===L?"button":L,se.disabled=l):(D.href||D.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Ih(t,z,T),ue=xt({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Vh({root:["root",t&&"disabled",r&&"focusVisible"]},sI,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Ll.jsxs(cI,xt({as:ae,className:Ff(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:k,type:L},se,D,{children:[i,W?Ll.jsx(aI,xt({ref:O,center:o},M)):null]}))}));function pI(e){return Hf("MuiIconButton",e)}const fI=Wf("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),hI=["edge","children","className","color","disabled","disableFocusRipple","size"],mI=Qk(dI,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Lp(r.color)}`],r.edge&&t[`edge${Lp(r.edge)}`],t[`size${Lp(r.size)}`]]}})((({theme:e,ownerState:t})=>xt({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})`:sP(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return xt({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&xt({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":xt({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:sP(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${fI.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),gI=S.forwardRef((function(e,t){const r=UM({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=xr(r,hI),d=xt({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return Vh({root:["root",r&&"disabled","default"!==n&&`color${Lp(n)}`,o&&`edge${Lp(o)}`,`size${Lp(i)}`]},pI,t)})(d);return Ll.jsx(mI,xt({className:Ff(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))})),bI=Wf("MuiBox",["root"]),vI=wk(),yI=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=gp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(LA);return S.forwardRef((function(e,a){const s=jA(r),l=BA(e),{className:u,component:c="div"}=l,d=xr(l,WA);return Ll.jsx(i,xt({as:c,ref:a,className:Ff(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:LR,defaultTheme:vI,defaultClassName:bI.root,generateClassName:jf.generate}),xI=S.createContext();function SI(e){return Hf("MuiTable",e)}Wf("MuiTable",["root","stickyHeader"]);const CI=["className","component","padding","size","stickyHeader"],wI=Qk("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>xt({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":xt({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),EI="table",RI=S.forwardRef((function(e,t){const r=UM({props:e,name:"MuiTable"}),{className:n,component:o=EI,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=xr(r,CI),u=xt({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Vh({root:["root",r&&"stickyHeader"]},SI,t)})(u),d=S.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return Ll.jsx(xI.Provider,{value:d,children:Ll.jsx(wI,xt({as:o,role:o===EI?null:"table",ref:t,className:Ff(c.root,n),ownerState:u},l))})})),AI=S.createContext();function PI(e){return Hf("MuiTableBody",e)}Wf("MuiTableBody",["root"]);const kI=["className","component"],MI=Qk("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),II={variant:"body"},LI="tbody",DI=S.forwardRef((function(e,t){const r=UM({props:e,name:"MuiTableBody"}),{className:n,component:o=LI}=r,i=xr(r,kI),a=xt({},r,{component:o}),s=(e=>{const{classes:t}=e;return Vh({root:["root"]},PI,t)})(a);return Ll.jsx(AI.Provider,{value:II,children:Ll.jsx(MI,xt({className:Ff(s.root,n),as:o,ref:t,role:o===LI?null:"rowgroup",ownerState:a},i))})}));function TI(e){return Hf("MuiTableCell",e)}const _I=Wf("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),OI=["align","className","component","padding","scope","size","sortDirection","variant"],qI=Qk("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Lp(r.size)}`],"normal"!==r.padding&&t[`padding${Lp(r.padding)}`],"inherit"!==r.align&&t[`align${Lp(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>xt({},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?cP(sP(e.palette.divider,1),.88):lP(sP(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",[`&.${_I.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}))),NI=S.forwardRef((function(e,t){const r=UM({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=xr(r,OI),p=S.useContext(xI),f=S.useContext(AI),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=c||f&&f.variant,v=xt({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Vh({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Lp(n)}`,"normal"!==o&&`padding${Lp(o)}`,`size${Lp(i)}`]},TI,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Ll.jsx(qI,xt({as:m,ref:t,className:Ff(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));function jI(e){return Hf("MuiTableContainer",e)}Wf("MuiTableContainer",["root"]);const zI=["className","component"],FI=Qk("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),$I=S.forwardRef((function(e,t){const r=UM({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=xr(r,zI),a=xt({},r,{component:o}),s=(e=>{const{classes:t}=e;return Vh({root:["root"]},jI,t)})(a);return Ll.jsx(FI,xt({ref:t,as:o,className:Ff(s.root,n),ownerState:a},i))}));function BI(e){return Hf("MuiTableHead",e)}Wf("MuiTableHead",["root"]);const HI=["className","component"],WI=Qk("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),VI={variant:"head"},GI="thead",UI=S.forwardRef((function(e,t){const r=UM({props:e,name:"MuiTableHead"}),{className:n,component:o=GI}=r,i=xr(r,HI),a=xt({},r,{component:o}),s=(e=>{const{classes:t}=e;return Vh({root:["root"]},BI,t)})(a);return Ll.jsx(AI.Provider,{value:VI,children:Ll.jsx(WI,xt({as:o,className:Ff(s.root,n),ref:t,role:o===GI?null:"rowgroup",ownerState:a},i))})}));function YI(e){return Hf("MuiTableRow",e)}const KI=Wf("MuiTableRow",["root","selected","hover","head","footer"]),XI=["className","component","hover","selected"],JI=Qk("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${KI.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${KI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:sP(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}))`:sP(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),ZI="tr",QI=S.forwardRef((function(e,t){const r=UM({props:e,name:"MuiTableRow"}),{className:n,component:o=ZI,hover:i=!1,selected:a=!1}=r,s=xr(r,XI),l=S.useContext(AI),u=xt({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Vh({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},YI,t)})(u);return Ll.jsx(JI,xt({as:o,ref:t,className:Ff(c.root,n),role:o===ZI?null:"row",ownerState:u},s))})),eL=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),tL=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},rL=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&te(e.localPaletteColors[t].color).blend(te(s.color),s.t)},nL=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:eL(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:tL(n,t,r)})))),n},oL=(e,t,r,n)=>{const o=nL(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=rL(e,a,t);break}n=i}return r})(o,t);return a},iL=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!mE(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!mE(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},aL=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=iL(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!mE(t))return 0;let a=r&&mE(r)?Math.min(r,t):0;const s=n.sort(((e,t)=>e.value-t.value)),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},sL=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=aL(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return tL(o,r.limitPaletteColorIndex,n);const a=eL(r.limitRange,t);return oL(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},lL={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",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",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)"},uL=12,cL=14,dL=16,pL=24,fL=3,hL=300,mL=400,gL=600,bL=700,vL={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function yL(e){return Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ll.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var xL=function({fontSize:e="medium",children:t=null,className:r=""}={}){return Ll.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function SL(e={}){return Ll.jsx(xL,{...e,children:Ll.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Ll.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Ll.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 CL(e={}){return Ll.jsx(xL,{fontSize:"medium",...e,children:Ll.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ll.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Ll.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 wL(e){return Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ll.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 EL(e={}){return Ll.jsx(xL,{...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Ll.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Ll.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function RL(e={}){return Ll.jsx(xL,{fontSize:"medium",...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Ll.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function AL({className:e}){return Ll.jsx(xL,{fontSize:"small",className:e,children:Ll.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Ll.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ll.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Ll.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Ll.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"}),Ll.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 PL(e={}){return Ll.jsx(xL,{...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ll.jsx("rect",{stroke:lL.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const kL={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:fL,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var ML=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:lL.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:lL.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Ll.jsx(yL,{"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 ${lL.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:lL.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${lL.MISC_FOCUS_BORDER}`,borderRadius:fL,backgroundColor:lL.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 ${lL.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:lL.WHITE,color:lL.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:fL},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${lL.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:lL.GREYSCALE_0_15,backgroundColor:lL.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:lL.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${lL.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:lL.GREEN_PALE},"&:active":{backgroundColor:lL.GREEN_DARK},"&.Mui-focusVisible":{borderColor:lL.GREEN_PALE,boxShadow:`0 0 0 3px ${GA(lL.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:lL.BLUE_PALE},"&:active":{backgroundColor:lL.BLUE_DARK},"&.Mui-focusVisible":{borderColor:lL.BLUE_PALE,boxShadow:`0 0 0 3px ${GA(lL.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:fL,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:lL.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${lL.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:lL.GREYSCALE_0_15,backgroundColor:lL.GREYSCALE_100_60,"&:active":{backgroundColor:lL.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:lL.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${lL.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:lL.PURPLE,"&.Mui-focusVisible":{borderColor:lL.PURPLE,boxShadow:`0 0 0 3px ${GA(lL.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:lL.GREEN,"&.Mui-focusVisible":{borderColor:lL.GREEN,boxShadow:`0 0 0 3px ${GA(lL.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:lL.BLUE,"&.Mui-focusVisible":{borderColor:lL.BLUE,boxShadow:`0 0 0 3px ${GA(lL.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:lL.ORANGE,"&.Mui-focusVisible":{borderColor:lL.ORANGE,boxShadow:`0 0 0 3px ${GA(lL.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:lL.RED,"&.Mui-focusVisible":{borderColor:lL.RED,boxShadow:`0 0 0 3px ${GA(lL.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:lL.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:lL.PURPLE_PALE},"&:active":{backgroundColor:lL.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:lL.PURPLE_PALE,boxShadow:`0 0 0 3px ${GA(lL.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:lL.GREEN_PALE},"&:active":{backgroundColor:lL.GREEN_DARK},"&.Mui-focusVisible":{borderColor:lL.GREEN_PALE,boxShadow:`0 0 0 3px ${GA(lL.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:lL.BLUE_PALE},"&:active":{backgroundColor:lL.BLUE_DARK},"&.Mui-focusVisible":{borderColor:lL.BLUE_PALE,boxShadow:`0 0 0 3px ${GA(lL.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:lL.ORANGE_PALE},"&:active":{backgroundColor:lL.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:lL.ORANGE_PALE,boxShadow:`0 0 0 3px ${GA(lL.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:lL.RED_PALE},"&:active":{backgroundColor:lL.RED_DARK},"&.Mui-focusVisible":{borderColor:lL.RED_PALE,boxShadow:`0 0 0 3px ${GA(lL.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:lL.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:lL.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:fL,boxShadow:`inset 0 0 0 2px ${lL.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Ll.jsx(wL,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:uL,borderRadius:fL,color:lL.TEXT_PRIMARY,backgroundColor:lL.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:lL.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${lL.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:lL.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:lL.GREYSCALE_0_05,color:lL.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:lL.GREEN,borderColor:lL.GREEN},"&.MuiChip-outlinedInfo":{color:lL.BLUE,borderColor:lL.BLUE},"&.MuiChip-outlinedWarning":{color:lL.ORANGE,borderColor:lL.ORANGE},"&.MuiChip-outlinedError":{color:lL.RED,borderColor:lL.RED}},outlined:{border:`solid 1px ${lL.GREYSCALE_0_15}`,backgroundColor:lL.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:fL,boxShadow:"none",backgroundColor:lL.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:lL.GREEN,borderColor:lL.GREEN},outlinedSecondary:{color:lL.BLUE,borderColor:lL.BLUE},label:{fontFamily:vL.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Ll.jsx(wL,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Ll.jsx(yL,{"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:fL},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:fL,fontSize:cL,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:lL.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${lL.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:lL.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:lL.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:lL.GREYSCALE_0_05}}},popupIndicator:{borderRadius:fL,border:`solid 1px ${lL.GREYSCALE_0_15}`,color:lL.GREYSCALE_0_60,marginRight:0,width:pL,height:pL},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${lL.GREYSCALE_0_15}`},clearIndicator:{borderRadius:fL,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:lL.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:cL}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:uL,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:lL.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:lL.GREYSCALE_25,fontSize:uL,fontFamily:vL.FONT_FAMILY,fontWeight:gL,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:lL.TEXT_PRIMARY},"&.Mui-error":{color:lL.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:lL.TEXT_SECONDARY,content:"'(optional)'",fontWeight:mL,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:lL.TEXT_SECONDARY,content:"'(required)'",fontWeight:mL,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:cL,lineHeight:"16px",backgroundColor:lL.WHITE,borderRadius:fL,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lL.GREYSCALE_0_05}`,borderColor:lL.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lL.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${lL.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${lL.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lL.RED}`,boxShadow:`0px 0px 0px 1px ${lL.RED}, inset 0 2px 0 0 ${lL.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${lL.GREYSCALE_0_10}`,borderColor:lL.GREYSCALE_0_10,backgroundColor:lL.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:lL.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:lL.GREYSCALE_0_15,borderRadius:fL,boxShadow:`inset 0 2px 0 0 ${lL.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Ll.jsx(yL,{...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:lL.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:lL.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:lL.GREYSCALE_0_03},"&:active":{backgroundColor:lL.GREYSCALE_0_10},"&:focus":{backgroundColor:lL.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${lL.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${lL.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:lL.GREYSCALE_0_30,"&:hover":{backgroundColor:lL.GREYSCALE_0_0,borderColor:lL.GREYSCALE_0_15},"& ~svg":{color:lL.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${lL.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:fL}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:lL.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${lL.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:lL.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:cL,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:uL,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:uL,fontWeight:gL,color:lL.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:gL}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${lL.GREYSCALE_0_15}, 0px 0px 0px 1px ${lL.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Ll.jsx(RL,{}),checkedIcon:Ll.jsx(CL,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:lL.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${lL.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:lL.GREEN_PALE,boxShadow:`0 0 0 3px ${GA(lL.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:lL.BLUE_PALE,boxShadow:`0 0 0 3px ${GA(lL.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:lL.GREYSCALE_0_20}},"&.Mui-disabled":{fill:lL.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Ll.jsx(PL,{}),checkedIcon:Ll.jsx(SL,{}),indeterminateIcon:Ll.jsx(EL,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:fL,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:lL.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:lL.GREYSCALE_0_55,color:lL.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:lL.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:lL.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:lL.GREYSCALE_0_55,"&:hover":{color:lL.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:lL.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:lL.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:cL,color:lL.TEXT_PRIMARY,lineHeight:"16px",fontWeight:gL},secondary:{fontSize:uL,color:lL.GREYSCALE_45,fontWeight:mL,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:cL,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:cL,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:lL.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:uL,borderBottom:`solid 1px ${lL.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:cL,color:lL.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:lL.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:lL.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:lL.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:lL.RED}}},"&.Mui-focusVisible":{backgroundColor:lL.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:lL.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:lL.GREEN,height:"24px","&.Mui-disabled":{color:lL.GREYSCALE_0_15}},rail:{backgroundColor:lL.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${lL.GREYSCALE_0_05}`,borderRadius:fL,boxShadow:`inset 0px 0px 0px 1px ${lL.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${lL.GREYSCALE_0_05}`,borderRadius:fL},thumb:{height:"16px",width:"16px",borderRadius:fL,backgroundColor:lL.WHITE,boxShadow:`0px 1px 2px 0px ${lL.GREYSCALE_0_15}, 0px 0px 0px 1px ${lL.GREYSCALE_0_05}`,"&:hover":{borderRadius:fL,boxShadow:`0 2px 4px 0 ${lL.GREYSCALE_0_30}, 0 0 0 1px ${lL.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${lL.GREYSCALE_0_15}, 0 0 0 1px ${lL.GREYSCALE_0_06}, 0 0 0 2px ${lL.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${lL.GREYSCALE_0_15}, 0 0 0 1px ${lL.GREYSCALE_0_06}, 0 0 0 2px ${lL.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:lL.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:lL.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:lL.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:lL.GREYSCALE_0_15},markLabel:{color:lL.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:lL.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:lL.WHITE,color:lL.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:lL.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:lL.GREEN_PALE,boxShadow:`0 0 0 3px ${GA(lL.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:lL.BLUE_PALE,boxShadow:`0 0 0 3px ${GA(lL.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:lL.GREYSCALE_0_15,borderRadius:fL},thumb:{height:"16px",width:"16px",borderRadius:fL,backgroundColor:lL.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:cL,fontWeight:gL,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${lL.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${lL.MISC_FOCUS_BORDER}`,backgroundColor:lL.GREYSCALE_0_03,borderRadius:fL},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:lL.GREYSCALE_25,"&.Mui-selected":{color:lL.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:cL,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:fL,"&:hover":{backgroundColor:lL.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 ${lL.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${lL.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:fL,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:lL.GREYSCALE_0_05},"&:hover":{backgroundColor:lL.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${lL.GREYSCALE_85}`,borderRight:`1px solid ${lL.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:gL,backgroundColor:lL.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:lL.GREYSCALE_98,borderBottom:`1px solid ${lL.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${lL.GREYSCALE_85}`,borderTop:`1px solid ${lL.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:lL.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:lL.GREYSCALE_0_05,"&:hover":{backgroundColor:lL.GREYSCALE_0_03}},"&&:hover":{backgroundColor:lL.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Ll.jsx(AL,{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 ${lL.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:cL,borderRadius:fL,padding:"7px 16px",border:`1px solid ${lL.GREYSCALE_0_15}`,backgroundColor:lL.GREYSCALE_100_60,color:lL.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:lL.GREYSCALE_0_10,border:`1px solid ${lL.GREYSCALE_0_30}`},"&:hover":{backgroundColor:lL.GREYSCALE_0_03,border:`1px solid ${lL.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:lL.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${lL.MISC_FOCUS_BORDER}`,border:`1px solid ${lL.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:lL.GREYSCALE_25,backgroundColor:lL.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:lL.GREYSCALE_0_10,border:`1px solid ${lL.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:uL,height:24,width:24,padding:7},sizeLarge:{fontSize:dL,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:cL,borderRadius:fL}}},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:lL.GREYSCALE_20},tooltip:{backgroundColor:lL.GREYSCALE_20,fontSize:uL,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...kL}:{}}),IL=(e,t)=>ML(t);var LL=()=>({mode:"light",primary:{ultraLight:lL.GREEN_ULTRA_LIGHT,light:lL.GREEN_PALE,main:lL.GREEN,dark:lL.GREEN_DARK,extraDark:lL.GREEN_EXTRA_DARK,contrastText:lL.WHITE},secondary:{ultraLight:lL.BLUE_ULTRA_LIGHT,light:lL.BLUE_PALE,main:lL.BLUE,dark:lL.BLUE_DARK,extraDark:lL.BLUE_EXTRA_DARK,contrastText:lL.WHITE},error:{ultraLight:lL.RED_ULTRA_LIGHT,light:lL.RED_PALE,main:lL.RED,dark:lL.RED_DARK,extraDark:lL.RED_EXTRA_DARK,contrastText:lL.WHITE},warning:{ultraLight:lL.ORANGE_ULTRA_LIGHT,light:lL.ORANGE_PALE,main:lL.ORANGE,dark:lL.ORANGE_DARK,extraDark:lL.ORANGE_EXTRA_DARK,contrastText:lL.WHITE},success:{ultraLight:lL.GREEN_ULTRA_LIGHT,light:lL.GREEN_PALE,main:lL.GREEN,dark:lL.GREEN_DARK,extraDark:lL.GREEN_EXTRA_DARK,contrastText:lL.WHITE},info:{ultraLight:lL.BLUE_ULTRA_LIGHT,light:lL.BLUE_PALE,main:lL.BLUE,dark:lL.BLUE_DARK,extraDark:lL.BLUE_EXTRA_DARK,contrastText:lL.WHITE},text:{primary:lL.TEXT_PRIMARY,secondary:lL.TEXT_SECONDARY,disabled:lL.GREYSCALE_0_30},action:{hover:lL.GREYSCALE_0_03,hoverOpacity:.03,selected:lL.GREYSCALE_0_05,selectedOpacity:.05,focus:lL.MISC_FOCUS_BORDER},amethyst:{ultraLight:lL.WHITE,main:lL.PURPLE,light:lL.PURPLE_PALE,dark:lL.PURPLE_DARK,extraDark:lL.GREYSCALE_0_0,contrastText:lL.WHITE},background:{paper:lL.WHITE,default:lL.GREYSCALE_95},divider:lL.GREYSCALE_0_15});var DL=e=>LL();var TL=(e,t=!1)=>({components:IL(0,t),palette:DL(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:cL,fontWeightLight:hL,fontWeightRegular:mL,fontWeightMedium:gL,fontWeightBold:bL,htmlFontSize:cL,fontFamily:vL.FONT_FAMILY,button:{fontWeight:gL,fontSize:cL,textTransform:"none"},body1:{fontSize:dL,lineHeight:"24px"},body2:{fontSize:cL,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:pL,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:dL,fontWeight:gL,lineHeight:"16px"},h6:{fontSize:cL,fontWeight:gL,lineHeight:"16px"},caption:{color:lL.TEXT_SECONDARY},subtitle1:{fontSize:cL,color:lL.TEXT_SECONDARY},subtitle2:{fontSize:uL,color:lL.TEXT_SECONDARY}},shape:{borderRadius:fL}}),_L={},OL={exports:{}},qL={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(qL);var NL=qL.exports;!function(e){var t=NL.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(OL);var jL=OL.exports,zL={},FL=Rt(br);Object.defineProperty(zL,"__esModule",{value:!0}),zL.hexToRgb=HL,zL.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=VL(e),r=t.values;return"#".concat(r.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},zL.hslToRgb=WL,zL.decomposeColor=VL,zL.recomposeColor=GL,zL.getContrastRatio=function(e,t){var r=UL(e),n=UL(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},zL.getLuminance=UL,zL.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return UL(e)>.5?KL(e,t):XL(e,t)},zL.fade=function(e,t){return YL(e,t)},zL.alpha=YL,zL.darken=KL,zL.lighten=XL;var $L=FL;function BL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function HL(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function WL(e){var t=(e=VL(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),GL({type:s,values:l})}function VL(e){if(e.type)return e;if("#"===e.charAt(0))return VL(HL(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,$L.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function GL(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function UL(e){var t="hsl"===(e=VL(e)).type?VL(WL(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function YL(e,t){return e=VL(e),t=BL(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,GL(e)}function KL(e,t){if(e=VL(e),t=BL(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return GL(e)}function XL(e,t){if(e=VL(e),t=BL(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return GL(e)}var JL,ZL,QL,eD={},tD={exports:{}},rD={exports:{}},nD={exports:{}};function oD(){return JL||(JL=1,function(e){var t=NL.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(nD)),nD.exports}function iD(){return ZL||(ZL=1,function(e){var t=NL.default,r=oD();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(rD)),rD.exports}function aD(){return QL||(QL=1,function(e){var t=iD();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(tD)),tD.exports}var sD,lD={exports:{}};function uD(){return sD||(sD=1,function(e){var t=Lk();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(lD)),lD.exports}var cD,dD={};var pD,fD={};var hD,mD={},gD={};var bD,vD={};var yD,xD={};var SD,CD={};var wD,ED={};var RD,AD={};var PD,kD={};var MD,ID,LD={};function DD(){if(ID)return mD;ID=1;var e=iP;Object.defineProperty(mD,"__esModule",{value:!0}),mD.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,C=e.warning,w=void 0===C?{light:u.default[300],main:u.default[500],dark:u.default[700]}:C,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,A=e.success,P=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,k=e.type,M=void 0===k?"light":k,I=e.contrastThreshold,L=void 0===I?3:I,D=e.tonalOffset,T=void 0===D?.2:D,_=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function O(e){return(0,p.getContrastRatio)(e,h.text.primary)>=L?h.text.primary:f.text.primary}var q=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,T),m(e,"dark",i,T),e.contrastText||(e.contrastText=O(e.main)),e},N={dark:h,light:f},j=(0,n.deepmerge)((0,t.default)({common:o.default,type:M,primary:q(b),secondary:q(y,"A400","A200","A700"),error:q(S),warning:q(w),info:q(R),success:q(P),grey:i.default,contrastThreshold:L,getContrastText:O,augmentColor:q,tonalOffset:T},N[M]),_);return j},mD.dark=mD.light=void 0;var t=e(kk()),r=e(uD()),n=FL,o=e(function(){if(hD)return gD;hD=1,Object.defineProperty(gD,"__esModule",{value:!0}),gD.default=void 0;var e={black:"#000",white:"#fff"};return gD.default=e,gD}()),i=e(function(){if(bD)return vD;bD=1,Object.defineProperty(vD,"__esModule",{value:!0}),vD.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return vD.default=e,vD}()),a=e(function(){if(yD)return xD;yD=1,Object.defineProperty(xD,"__esModule",{value:!0}),xD.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return xD.default=e,xD}()),s=e(function(){if(SD)return CD;SD=1,Object.defineProperty(CD,"__esModule",{value:!0}),CD.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return CD.default=e,CD}()),l=e(function(){if(wD)return ED;wD=1,Object.defineProperty(ED,"__esModule",{value:!0}),ED.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return ED.default=e,ED}()),u=e(function(){if(RD)return AD;RD=1,Object.defineProperty(AD,"__esModule",{value:!0}),AD.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return AD.default=e,AD}()),c=e(function(){if(PD)return kD;PD=1,Object.defineProperty(kD,"__esModule",{value:!0}),kD.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return kD.default=e,kD}()),d=e(function(){if(MD)return LD;MD=1,Object.defineProperty(LD,"__esModule",{value:!0}),LD.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return LD.default=e,LD}()),p=zL,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};mD.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return mD.dark=h,mD}var TD,_D={};var OD,qD={};var ND,jD={};var zD,FD={},$D=Rt(no);var BD,HD={};function WD(){if(BD)return HD;BD=1;var e=iP;Object.defineProperty(HD,"__esModule",{value:!0}),HD.default=HD.duration=HD.easing=void 0;var t=e(uD()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};HD.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}HD.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return HD.default=i,HD}var VD,GD,UD={};function YD(){if(GD)return eD;GD=1;var e=iP;Object.defineProperty(eD,"__esModule",{value:!0}),eD.createMuiTheme=function(){return p.apply(void 0,arguments)},eD.default=void 0,e(aD());var t=e(uD()),r=FL,n=e(function(){if(cD)return dD;cD=1;var e=iP;Object.defineProperty(dD,"__esModule",{value:!0}),dD.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},dD.keys=void 0;var t=e(kk()),r=e(uD()),n=["xs","sm","md","lg","xl"];return dD.keys=n,dD}()),o=e(function(){if(pD)return fD;pD=1;var e=iP;Object.defineProperty(fD,"__esModule",{value:!0}),fD.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(aD()),r=e(kk());return fD}()),i=e(DD()),a=e(function(){if(TD)return _D;TD=1;var e=iP;Object.defineProperty(_D,"__esModule",{value:!0}),_D.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,C=u.htmlFontSize,w=void 0===C?16:C,E=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=f/14,k=R||function(e){return"".concat(e/w*P,"rem")},M=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:k(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},I={h1:M(m,96,1.167,-1.5),h2:M(m,60,1.2,-.5),h3:M(b,48,1.167,0),h4:M(b,34,1.235,.25),h5:M(b,24,1.334,0),h6:M(y,20,1.6,.15),subtitle1:M(b,16,1.75,.15),subtitle2:M(y,14,1.57,.1),body1:M(b,16,1.5,.15),body2:M(b,14,1.43,.15),button:M(y,14,1.75,.4,a),caption:M(b,12,1.66,.4),overline:M(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:w,pxToRem:k,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},I),A,{clone:!1})};var t=e(kk()),r=e(uD()),n=FL;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return _D}()),s=e(function(){if(OD)return qD;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}OD=1,Object.defineProperty(qD,"__esModule",{value:!0}),qD.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return qD.default=t,qD}()),l=e(function(){if(ND)return jD;ND=1,Object.defineProperty(jD,"__esModule",{value:!0}),jD.default=void 0;var e={borderRadius:4};return jD.default=e,jD}()),u=e(function(){if(zD)return FD;zD=1,Object.defineProperty(FD,"__esModule",{value:!0}),FD.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=$D;return FD}()),c=e(WD()),d=e(function(){if(VD)return UD;VD=1,Object.defineProperty(UD,"__esModule",{value:!0}),UD.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return UD.default=e,UD}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),C=(0,i.default)(b),w=(0,n.default)(f),E=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:w,direction:"ltr",mixins:(0,o.default)(w,E,m),overrides:{},palette:C,props:{},shadows:s.default,typography:(0,a.default)(C,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,P=new Array(A>1?A-1:0),k=1;k<A;k++)P[k-1]=arguments[k];return R=P.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return eD.default=f,eD}var KD,XD={};var JD,ZD={},QD=Rt(ll);var eT,tT,rT={},nT={};function oT(){if(eT)return nT;eT=1;var e=iP;Object.defineProperty(nT,"__esModule",{value:!0}),nT.default=void 0;var t=(0,e(YD()).default)();return nT.default=t,nT}var iT,aT,sT={},lT={};function uT(){if(aT)return sT;aT=1;var e=iP;Object.defineProperty(sT,"__esModule",{value:!0}),sT.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(kk()),r=FL,n=function(){if(iT)return lT;iT=1;var e=iP;Object.defineProperty(lT,"__esModule",{value:!0}),lT.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},lT.getUnit=r,lT.toUnitless=n,lT.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},lT.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},lT.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},lT.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach((function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e(aD());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return lT}();return sT}var cT,dT={};var pT,fT={};var hT,mT={};var gT,bT={};!function(e){var t=iP,r=jL;Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=zL;Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var i=r(YD()),a=t(function(){if(KD)return XD;KD=1;var e=iP;Object.defineProperty(XD,"__esModule",{value:!0}),XD.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=FL,r=e(YD());return XD}()),s=t(function(){if(JD)return ZD;JD=1,Object.defineProperty(ZD,"__esModule",{value:!0}),ZD.default=function(t){return(0,e.createStyles)(t)};var e=QD;return ZD}()),l=t(function(){if(tT)return rT;tT=1;var e=iP;Object.defineProperty(rT,"__esModule",{value:!0}),rT.default=void 0;var t=e(kk()),r=QD,n=e(oT()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return rT.default=o,rT}()),u=t(uT()),c=t(function(){if(cT)return dT;cT=1;var e=iP;Object.defineProperty(dT,"__esModule",{value:!0}),dT.default=void 0;var t=e(kk()),r=QD,n=e(oT()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return dT.default=o,dT}()),d=WD();Object.keys(d).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))}));var p=t(function(){if(pT)return fT;pT=1;var e=iP;Object.defineProperty(fT,"__esModule",{value:!0}),fT.default=function(){return(0,t.useTheme)()||r.default};var t=QD;e(x);var r=e(oT());return fT}()),f=t(function(){if(hT)return mT;hT=1;var e=iP;Object.defineProperty(mT,"__esModule",{value:!0}),mT.default=void 0;var t=e(kk()),r=QD,n=e(oT()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return mT.default=o,mT}()),h=t(function(){if(gT)return bT;gT=1;var e=iP;Object.defineProperty(bT,"__esModule",{value:!0}),bT.default=void 0;var t=QD,r=e(oT()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return bT.default=n,bT}()),m=QD}(_L),_L.alpha(lL.GREYSCALE_0,.05),_L.alpha(lL.GREEN_PALE,.5),_L.alpha(lL.BLUE_PALE,.5),_L.alpha(lL.GREEN_PALE,.5),_L.alpha(lL.BLUE_PALE,.5),_L.alpha(lL.GREEN_PALE,.5),_L.alpha(lL.BLUE_PALE,.5),_L.alpha(lL.GREEN_PALE,.5),_L.alpha(lL.BLUE_PALE,.5),_L.alpha(lL.GREEN_PALE,.5),_L.alpha(lL.BLUE_PALE,.5);const vT=(e="light",t=!1)=>TL(e,t),yT=(vT().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)"),xT=4/3,ST="12px",CT="600",wT="Source Sans Pro, sans-serif",ET={height:"auto",fontSize:ST,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"}},RT={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:CT},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},AT=(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,PT=(e,t)=>e.representation.type===bw.Image&&"fitHeight"===e.representation.imageSize?AT(t,e.representation):e.align,kT=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",MT=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},IT=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,LT=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",DT=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",TT=24,_T=Qk("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),OT=Qk(yI,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})((({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?kT(e,n):void 0}))),qT=Qk(yI,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${pS}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${pS}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),NT=Qk(yI,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),jT=Qk(yI,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),zT=Qk(gI,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})((({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n}))),FT=25e4,$T=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(vS.PixelsMax,Math.max(vS.PixelsMin,f)),i-=n[a]};switch(s){case yS.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?vS.PixelsDefault:+e)(l),h();break;case yS.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?vS.PercentageDefault:+e)(u)/100*t,h();break;case yS.FitToContent:e.representation?.type===bw.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case yS.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(vS.AutoMinTable,e)}))}return n},BT=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},HT=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},WT=e=>e.ctrlKey||e.metaKey,VT=e=>e.shiftKey&&WT(e),GT=e=>[gS.Left,gS.Right,gS.Up,gS.Down].includes(e),UT=e=>e.shiftKey&&GT(e.key),YT=e=>(e=>GT(e)||[gS.Home,gS.End,gS.PageUp,gS.PageDown].includes(e))(e.key)&&!VT(e),KT=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),BT(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},XT=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&UT(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&UT(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===gS.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return BT(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},JT=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},ZT=(e,t)=>{switch(t.type){case HM.Select:return KT(e,t.payload);case HM.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case HM.SelectMouseUp:return((e,t)=>JT(e.isSelectMultiValues||e.firstCell!==t.cell?e:KT(e,t)))(e,t.payload);case HM.SelectMultiAdd:return XT(e,t.payload);case HM.SelectMultiEnd:return JT(e);case HM.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case HM.Clear:return e.rows.size?{...e,rows:new Map}:e;case HM.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},QT=4/3,e_=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function t_(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const r_=(e,t)=>e?{borderBottomColor:jx.DARK_MODE_BORDER,borderRightColor:jx.DARK_MODE_BORDER,borderLeftColor:jx.DARK_MODE_BORDER,borderTopColor:jx.DARK_MODE_BORDER}:{borderLeftColor:jx.BORDER_MEDIUM,borderRightColor:jx.BORDER_MEDIUM,borderTopColor:jx.BORDER_HEAVY,borderBottomColor:t?jx.BORDER_HEAVY:jx.BORDER_LIGHT},n_=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*QT+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},o_=e=>e.components?.find((e=>"theme"===e.key)),i_=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:e_(r?.fontColor)?t_(jx.TEXT,t,r?.fontColor):i||jx.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...r_(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function a_(e,t,r){const n=o_(e)?.header,o=i_("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=te(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=$x(o.background??jx.WHITE,xS),o.activeBackground=$x(o.background??jx.WHITE,SS),o}const s_=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in RT)(e)&&Object.assign(t,RT[e]))),t};function l_(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach(((e,t)=>{const i=e.qText,a=i&&Hx(i);a&&"none"!==a&&(n[r[t]]=a),o=i?s_(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=zx(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const u_=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},c_=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=u_(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},d_=(e,t,r,n=jx.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=c_(e,t,r);return Yx(i,o,a,n)??n},p_=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return ST}},f_=e=>e?.some((e=>"italic"===e))?"italic":"normal",h_=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?CT:"normal",m_=e=>!1===e?1:3,g_=e=>parseInt(e??ET.fontSize,10)*xT,b_=e=>e?.some((e=>"underline"===e))?"underline":"none",v_=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=o_(t)??{},p=IR(t,o)?jx.WHITE:jx.TRANSPARENT,f=d_(n,i,"object.straightTableV2.dimension.label.name.backgroundColor",p),h=o.viewState?.maxLineCount??d?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),m={header:{fontFamily:i?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??r.head.fontFamily??wT,fontSize:p_(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:f_(i?.fontStyle),fontWeight:h_(i?.fontStyle,CT),textDecoration:b_(i?.fontStyle),color:u_(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??jx.TEXT,background:f},headerMenuHoverBackground:$x(f,xS),headerMenuActiveBackground:$x(f,SS),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??wT,fontSize:p_(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:f_(a?.fontStyle),fontWeight:h_(a?.fontStyle,"normal"),textDecoration:b_(a?.fontStyle),color:u_(n,a?.fontColor)??u_(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??jx.TEXT,background:c_(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??jx.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??wT,fontSize:p_(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:f_(s?.fontStyle),fontWeight:h_(s?.fontStyle,"normal"),textDecoration:b_(s?.fontStyle),color:u_(n,s?.fontColor)??u_(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??jx.TEXT,background:c_(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??jx.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??wT,fontSize:p_(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:f_(l?.fontStyle),fontWeight:h_(l?.fontStyle,CT),textDecoration:b_(l?.fontStyle),color:u_(n,l?.fontColor)??u_(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??jx.TEXT,background:d_(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:f_(u?.fontStyle),fontWeight:h_(u?.fontStyle,"normal"),textDecoration:b_(u?.fontStyle),color:u_(n,u?.fontColor)??u_(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??jx.TEXT,background:u_(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??jx.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??m_(t.multiline?.wrapTextInCells),headerLineClamp:m_(t.multiline?.wrapTextInHeaders),border:u_(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?jx.DARK_MODE_BORDER:jx.BORDER_MEDIUM),divider:u_(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??jx.BORDER_HEAVY,hoverColors:{color:u_(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:u_(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:u_(n,c?.zebraStripes?.color?.odd),background:u_(n,c?.zebraStripes?.background?.odd)},even:{color:u_(n,c?.zebraStripes?.color?.even),background:u_(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===u_(n,u?.background),overrideNullValueColor:void 0===u_(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:Fx(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:h},{headerMinRowHeight:g,totalRowLineHeight:b,totalRowMinHeight:v,contentLineHeight:y,contentMinRowHeight:x}=(e=>{const t=Math.max(g_(e.header.fontSize)+8,32),r=g_(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(g_(e.dimension.values.fontSize),g_(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(m);return m.headerMinRowHeight=g,m.totalRowLineHeight=b,m.totalRowMinHeight=v,m.contentLineHeight=y,m.contentMinRowHeight=x,m},y_=(e,t,r,n)=>{const o=E((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=o_(e)?.content,i=i_("content",t,o);i.background=t.background.color;const a=n_(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=e_(l)||!!c,p=e_(s)||!!u,f=d||p;let h;h=e_(s)?t_(jx.HOVER,t,s):u||(d?"":jx.HOVER);const m=f?t_(zx(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=a_(e,t,!o),s=function(e,t,r){const n=o_(e)?.content,o=i_("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=a_(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},x_=new Map;const S_=L({}),C_=function(e){const t=L([()=>{},new Set]);return x_.set(e,t),({children:r,value:n})=>{const o=D(n),i=D(new Set);R((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=T((()=>o.current),[o]),s=E((()=>[a,i.current]),[a]);return Ll.jsx(e.Provider,{value:n,children:Ll.jsx(t.Provider,{value:s,children:r})})}}(S_),w_={rows:[],columns:[],totalsPosition:{}},E_=({app:e,children:t,tableData:r=w_,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,setPage:m,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:C})=>{const[R,A]=w(0),[P,k]=w(o||GM),[M,L]=((e,t)=>{const[r,n]=I(ZT,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[D,T]=w(-1),_=y_(i,u,r,d),O=((e,t,r,n,o)=>E((()=>v_(0,t,r,n,o)),[t,r,e,n,o]))(S,i,_,u,y),[q,N,j,z,F,$]=((e,t,r,n,o=!0)=>{const i=t.atBottom||t.atTop,a=tS({...n.header,fontWeight:CT},{maxNbrLinesOfText:3}).measureText,s=tS({...n.totalRow,fontWeight:CT},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=tS(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:u}=tS(n.measure.values,{maxNbrLinesOfText:3}),c=E((()=>(e,t,r,n,c,d,p)=>{let f=0;if(o){const t=4;let r=25;r+=t+24,n&&(r+=20+t),c&&(r+=20),f=a(e)+r}else{let t=9;t+=16,p&&(t+=TT),t+=TT,t+=TT,f=a(e)+t}const h=d?l:u;return Math.max(f,i?s(t)+24+1:0,h(r))}),[l,u,a,s,i,o]),[d,p]=w(0),[f,h]=w(!1),[m,g]=w((()=>$T(e,r,c)));aS((()=>{g($T(e,r-d,c)),h(!1)}),[e,r,d,c]);const b=E((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,d,r)),[m,d,r]);return[m,g,p,b,f,h]})(r.columns,r.totalsPosition,v.width,O,i.accessibleHeader),B=E((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,rect:v,viewService:y,styleService:O,direction:C,downloadService:x})),[e,n,i,a,s,l,u,c.active,d,p,f,h,v,y,O,C,x]);return Ll.jsx(C_,{value:{headRowHeight:R,setHeadRowHeight:A,focusedCellCoord:P,setFocusedCellCoord:k,selectionState:M,selectionDispatch:L,hoverIndex:D,setHoverIndex:T,columnWidths:q,setColumnWidths:N,baseProps:B,tableData:r,setYScrollbarWidth:j,setPage:m,pageInfo:g,initialDataPages:b,showRightBorder:z,env:S,isAdjustingWidth:F,setIsAdjustingWidth:$},children:t})};function R_(e,t){const r=function(e){return x_.get(e)}(e),[n,o]=C(r),[,i]=I((e=>e+1),0),a=D(t),s=D(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=E((()=>t(l)),[l,t]);return R((()=>{a.current=t,s.current=u}),[l,u,t]),R((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function A_(e){const t=vT();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),wk({...t,direction:e})}const P_={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},k_={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},M_=Mg("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...P_},"&::-moz-range-track":{...P_},"&::-ms-track":{...P_},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...k_},"&::-moz-range-thumb":{...k_},"&::-ms-thumb":{...k_},"&: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"}}))),I_=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=lS({translator:c.translator}),f=D({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};aS((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,vS.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:yS.Pixels,pixels:f.current.columnWidth};a(e)}else l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},C=e=>{Vx(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",C),x()},w=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=>{Vx(e),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===gS.Left||e.key===gS.Right){Vx(e);const t=5,r=e.key===gS.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===gS.Space||e.key===gS.Enter?(Vx(e),s(e),l?.(!1),x()):e.key===gS.Esc&&(Vx(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return Ll.jsx(M_,{style:b,hoverColor:o,isLastColumn:r,className:bS,"data-testid":bS,onMouseDown:e=>{Vx(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",C),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:yS.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Vx(e),document.addEventListener("touchmove",w),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":vS.PixelsMin,"aria-valuemax":vS.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},L_=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),D_=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},T_=Mg(dv,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})((({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"}))),__=Mg(L_,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),O_=Mg(Gy)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),q_=Mg(Hv)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),N_=Mg(Jy)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),j_=Mg(Jy,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),z_=Mg("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),F_=Mg("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),$_=Mg(Pb)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),B_=Mg(yy,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),H_=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),W_=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?W_(t):t:e.parentElement?.children?.[0]},V_=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?V_(t):t},G_=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===gS.Down||t===gS.Up){const r=e=>t===gS.Down?W_(e):V_(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},U_=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(r)}}:{}})))})))));let Y_={};const K_=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=w(!1),f=x.useRef(null),h=T((e=>{e.stopPropagation(),p(!1)}),[p]);return Ll.jsxs(Ll.Fragment,{children:[Ll.jsxs(j_,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),Y_={}),a?.length&&(p(!0),Y_[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:G_,children:[l?Ll.jsx(z_,{direction:u,isPagination:c}):null,Ll.jsxs(F_,{children:[Ll.jsx(B_,{direction:u,isPagination:c,children:Ll.jsx(o,{})}),Ll.jsx($_,{variant:"body2",children:n})]}),a?.length?Ll.jsx(H_,{}):null]},t),a?.length?Ll.jsx(Q_,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:U_(a,Y_),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},X_=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&Ll.jsx(N_,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>Ll.jsx(K_,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),J_=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[X_({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?Ll.jsx(q_,{"data-testid":"group-divider",variant:"middle"}):void 0])),Z_={appear:0,enter:0,exit:0},Q_=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?Ll.jsx(O_,{className:fS,open:t,anchorEl:e,onClose:r,transitionDuration:Z_,MenuListProps:{id:hS},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:J_({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,eO=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>T((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]),tO=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),rO=(e,t)=>e.some((e=>t[e]>0)),nO={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},oO=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=w(null),[a,s]=w(nO);return aS((()=>{e||(s(nO),i(null))}),[e]),R((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=tO(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:rO(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:rO(["qSelected"],e),canSelectPossible:rO(["qOption"],e),canSelectAlternative:rO(["qAlternative"],e),canSelectExcluded:rO(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},iO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),aO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})}))),sO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),lO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),uO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})}))),cO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),dO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),pO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),fO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),hO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),mO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),gO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),bO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),vO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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 yO=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const xO="/qListObjectDef",SO=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[yO.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:iO,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:lO,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:pO,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:uO,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[yO.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:fO,enabled:!0}]}]),!e.isLocked&&r[yO.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:vO,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(xO))},icon:hO,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(xO))},icon:bO,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(xO))},icon:mO,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(xO))},icon:gO,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(xO))},icon:aO,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:dO,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:cO,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[yO.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:sO,enabled:!0}]}]),f},CO=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=cS})=>{const v=D(null),y=lS({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:C}=n,w=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=oO({open:e,headerData:n,app:w,qStateName:c?.qStateName}),A=D_({model:f,headerData:n}),P=eO({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),k=T((e=>{e.stopPropagation(),t(!1)}),[t]),M=T((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?Ll.jsxs(T_,{rightAligned:"right"===C,shouldShowMenuIcon:s,className:pS,onClick:!1===g?M:void 0,ref:v,isAccessibleHeader:g,children:[s?Ll.jsx(__,{height:b,className:dS,"data-testid":dS,isInteractionsActive:i.active??!1,children:Ll.jsx(L_,{})}):null,Ll.jsx(Q_,{open:e,anchorEl:!1===g?v.current:r.current,onClose:k,menuGroups:SO({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:P,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},wO=e=>e.isDark?{background:e.color,borderColor:jx.DARK_MODE_BORDER,color:jx.DARK_MODE_TEXT,disabledColor:jx.DARK_MODE_DISABLED,iconColor:jx.DARK_MODE_TEXT}:{background:e.color,borderColor:jx.BORDER_MEDIUM,color:jx.TEXT,disabledColor:jx.DISABLED},EO=Mg(dv,{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}`}))),RO=Mg(Lx,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),AO=Mg(Sv,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),PO=Mg(Pb)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),kO=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=E((()=>wO(n.background)),[n]);if(!r.active)return null;const a=o?Ll.jsx(EO,{footerStyle:i,children:e}):null;return t?F.createPortal(e,t):a},MO=L({}),IO=()=>C(MO),LO=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=E((()=>wO(p.background)),[p]),v=o?o.getBoundingClientRect().width:h.width,y=lS({translator:d}),x=E((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,s,l,u,c,y,p,f,h,m,b,g,v]);return Ll.jsx(MO.Provider,{value:x,children:e})};let DO=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),TO=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 _O=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),OO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),qO=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),NO={FirstPage:OO,PreviousPage:_O,NextPage:H_,LastPage:qO,FirstPageRTL:qO,PreviousPageRTL:H_,NextPageRTL:_O,LastPageRTL:OO},jO=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=IO(),u=r.concat("rtl"===n?"RTL":""),c=NO[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},zO=()=>{const{pageInfo:e,width:t,interactions:r}=IO(),n=0===e.page,{IconComponent:o,styledProps:i}=jO({type:DO.FirstPage,disabledCondition:n,pageNumber:0});return t<=TO.FirstPage?null:Ll.jsx(AO,{...i,disabled:!r.active,children:Ll.jsx(o,{height:cS})})},FO=(e,t,r=!1)=>{r&&e.key===gS.Tab&&!e.shiftKey&&(Vx(e),Wx(e.target,t,!1))},$O=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=IO(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=jO({type:DO.LastPage,disabledCondition:a,pageNumber:r-1}),u=t.enabled?e=>{FO(e,t,n)}:void 0;return o<=TO.LastPage?null:Ll.jsx(AO,{...l,onKeyDown:u,disabled:!i.active,children:Ll.jsx(s,{height:cS})})},BO=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=IO(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=jO({type:DO.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>TO.FirstPage&&o>TO.LastPage)&&t.enabled?e=>{FO(e,t,n)}:void 0;return Ll.jsx(AO,{...l,onKeyDown:u,disabled:!i.active,children:Ll.jsx(s,{height:cS})})},HO=()=>{const{pageInfo:e,interactions:t}=IO(),r=0===e.page,{IconComponent:n,styledProps:o}=jO({type:DO.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return Ll.jsx(AO,{...o,disabled:!t.active,children:Ll.jsx(n,{height:cS})})},WO=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=IO(),{page:o,rowsPerPage:i}=r;if(t<=TO.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return Ll.jsx(PO,{variant:"caption",dir:"ltr",children:a})},VO=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=IO(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return Ll.jsxs(Ll.Fragment,{children:[Ll.jsxs(PO,{variant:"caption",id:p,children:[c,":"]}),Ll.jsx(RO,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},GO=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o}=IO();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>TO.RowsPerPage&&r<=100)||void 0===e.rowsPerPageOptions)return null;const i=Ll.jsx(Ll.Fragment,{children:e.rowsPerPageOptions.map((e=>Ll.jsx("option",{value:e,children:e},e)))});return Ll.jsx(VO,{name:"RowsPerPage",value:e.rowsPerPage,options:i,handleChange:e=>{o?.(+e.target.value)}})},UO=1e3,YO="…",KO=({totalPages:e,page:t})=>{const r=Math.min(e,UO),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-UO):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return Ll.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(Ll.jsx("option",{value:YO,disabled:!0,children:YO},"startMoreOptions")),o<e-1&&a.push(Ll.jsx("option",{value:YO,disabled:!0,children:YO},"endMoreOptions")),Ll.jsx(Ll.Fragment,{children:a})},XO=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=IO(),{page:o}=e;if(t<=TO.SelectPage)return null;const i=Ll.jsx(KO,{totalPages:r,page:o});return Ll.jsx(VO,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var JO=O((e=>Ll.jsxs(LO,{...e,children:[Ll.jsx(GO,{}),Ll.jsx(XO,{}),Ll.jsx(WO,{}),Ll.jsx(zO,{}),Ll.jsx(HO,{}),Ll.jsx(BO,{}),Ll.jsx($O,{})]})));const ZO=e=>Ll.jsx(kO,{...e,children:Ll.jsx(JO,{...e})}),QO={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},eq=Qk(yI,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),tq=Qk("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...QO,whiteSpace:"nowrap",display:r?"block":void 0}:{...QO,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}));function rq(e,t){const r=D(!1);R((()=>{r.current?e():r.current=!0}),t)}const nq=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),oq=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),iq=e=>e.atTop?2:1,aq=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],sq=e=>e?.setAttribute("tabIndex","0"),lq=e=>e?.setAttribute("tabIndex","-1"),uq=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(lq)},cq=e=>{e?.focus(),sq(e)},dq=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${bS}`);cq(t)}),0)},pq=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{uq(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case gS.Down:u<s&&u++;break;case gS.Up:u>a&&u--;break;case gS.Right:if(i)break;[u,c]="rtl"===n?nq({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):oq({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case gS.Left:if(i)break;[u,c]="rtl"===n?oq({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):nq({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case gS.Home:(WT(e)||i)&&(u=a),i||(c=0);break;case gS.End:(WT(e)||i)&&(u=s),i||(c=l);break;case gS.PageDown:u=Math.min(s,u+10);break;case gS.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=aq(t,a);return cq(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},fq=(e,t,r,n)=>{uq(t),r(e),n.enabled&&!n.active?n.focus?.():cq(aq(t,e))},hq=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${fS}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${VM.First}`),r=e.querySelector(`.${VM.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},mq=()=>{const{downloadService:e}=R_(S_,(e=>e.baseProps));R((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},gq=(e,t,r)=>{const{rootElement:n,keyboard:o}=R_(S_,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=R_(S_,(e=>e.tableData)),u=R_(S_,(e=>e.focusedCellCoord)),c=R_(S_,(e=>e.setFocusedCellCoord)),d=R_(S_,(e=>e.baseProps.selectionsAPI?.isModal()));rq((()=>{const r=((e,t,r=!1)=>{const n=[iq(t),e[1]];return r?n:GM})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(uq(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=aq(t,e);r.current?(cq(s),r.current=!1):sq(s),n&&(a({keys:[s?.textContent??""]}),HT(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},bq=(e,t,r)=>{R((()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},vq=e=>{Vx(e),WT(e)&&RS(e.currentTarget)},yq=e=>{YT(e.evt)&&(Vx(e.evt),pq(e))},xq=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!YT(t))return;Vx(t);const i=((e,t)=>[e.pageRowIdx+iq(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?iq(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=pq({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:HM.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):HT(o,a,i)})({...e,nextCell:s})},Sq=e=>{const{evt:t}=e;VT(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{Vx(e);const a=Math.ceil(t/r)-1;e.key===gS.Right&&n<a?(o(),i(n+1)):e.key===gS.Left&&n>0&&(o(),i(n-1))})(e):t.key===gS.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(Vx(e),t.blur?.(!0))})(e):GT(t.key)&&Vx(t)},Cq=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(BM.Disabled))return void Vx(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case gS.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{Vx(e),t.isSelectable&&r&&n({type:HM.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case gS.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{Vx(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case gS.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(Vx(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case gS.C:vq(t);break;case gS.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(Vx(e),Wx(e.currentTarget,t,e.shiftKey))})(n);break;default:xq(n)}},wq=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,Eq=(e,t,r)=>{R((()=>{const r=e.current;if(!r)return()=>{};const n=new ResizeObserver(t);return n.observe(r),()=>{n.disconnect()}}),[e,t,r])},Rq=e=>{const[t,r]=w(0),[n,o]=w(0),i=R_(S_,(e=>e.isAdjustingWidth)),a=T((t=>{if(e.current&&!i){const e=t.at(0)?.borderBoxSize.at(0)?.inlineSize??0,n=t.at(0)?.borderBoxSize.at(0)?.blockSize??0,i=t.at(0)?.contentBoxSize.at(0)?.inlineSize??0,a=n-(t.at(0)?.contentBoxSize.at(0)?.blockSize??0);o(e-i),r(a)}}),[e,i]);return Eq(e,a),{xScrollbarWidth:t,yScrollbarWidth:n}},Aq=Qk("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),Pq=Qk($I,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),kq=Qk(RI,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),Mq=()=>Ll.jsxs(Ll.Fragment,{children:[Ll.jsx(Aq,{className:VM.First,"data-testid":VM.First,"aria-live":"polite","aria-atomic":"true"}),Ll.jsx(Aq,{className:VM.Second,"data-testid":VM.Second,"aria-live":"polite","aria-atomic":"true"})]}),Iq=e=>{const t=D(new Map),r=D(null);R((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=T(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=T((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return E((()=>({addTask:n,removeTask:o})),[n,o])},Lq=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),Dq=()=>Iq(Lq),Tq=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{R((()=>{const i=()=>{t({type:HM.Reset})},a=()=>{t({type:HM.Clear})},s=()=>{o.current?.contains(document.activeElement)?r():n.enabled&&n.blur?.(!0),i()};return e?.on("deactivated",i),e?.on("canceled",i),e?.on("confirmed",s),e?.on("cleared",a),()=>{e?.removeListener("deactivated",i),e?.removeListener("canceled",i),e?.removeListener("confirmed",s),e?.removeListener("cleared",a)}}),[e,n,t,r,o])},_q=e=>{e.stopPropagation()},Oq=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:_q,color:jx.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),qq=({href:e,text:t,interactions:r,color:n})=>Ll.jsx(uy,{...Oq({href:e,text:t,interactions:r,color:n}),children:t}),Nq=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),jq=window.cancelIdleCallback??(e=>{clearTimeout(e)}),zq="qDimensionInfo/0",Fq="qMeasureInfo/0",$q="x",Bq="y",Hq=e=>({key:"bars",type:"box",data:{extract:{field:zq,props:{start:0,end:{field:Fq}}}},settings:{major:{scale:$q},minor:{scale:Bq},box:{maxWidthPx:8,fill:{fn:e}}}}),Wq=e=>({key:"p",type:"point",data:{extract:{field:zq,props:{y:{field:Fq}}}},settings:{x:{scale:$q},y:{scale:Bq},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),Vq=({qNum:e})=>void 0===e?0:Math.sign(e),Gq=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=Bx(e,t?.negative,r),a=Bx(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:zq,props:{start:0,end:{field:Fq,value:Vq}}}},settings:{major:{scale:$q},minor:{scale:Bq},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},Uq=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=Bx(e,t?.main,o),l=Bx(e,t?.max,s),u=Bx(e,t?.min,s),c=Bx(e,t?.first,s),d=Bx(e,t?.last,s);return e=>{const t=Bq in e.datum?Bq:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[Hq(a)];case"dots":return[Wq(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:zq,props:{v:{field:Fq}}}},settings:{coordinates:{major:{scale:$q},minor:{scale:Bq,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Bx(e,n?.main,e.getDataColorSpecials().primary));return r?[t,Wq(a)]:[t]}case"posNeg":return[Gq(e,n)];default:return[]}},Yq=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"}),Kq=(e,t,r,n)=>({y:{data:{field:Fq},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:zq}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),Xq=H();Xq.use(B),Xq.renderer.prio(["canvas"]);const Jq={resolve:()=>{},promise:{}},Zq=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=D(e.isDownloadedAsPDForImage?mt():Jq);return{addChartPromiseToQueue:T((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:T((()=>{if(null===t.current||null!==e.current)return;u();r.current=Nq((()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return Xq.chart({element:e,data:{type:"q",key:"qHyperCube",data:Yq(s)},settings:{scales:Kq(a,l,u,i),components:Uq(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:T((()=>{null!==r.current&&jq(r.current),r.current=null,l()}),[r,l])}},Qq=e=>{const t=D(null),r=D(!1);return T((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(jq(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=Nq((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},eN=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=D(null),l=D(null),u=D(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=Zq({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=T((e=>{e.isIntersecting?n():r()}),[n,r]);R((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}}),[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{R((()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=Qq(t);R((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},tN=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=eN({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return Ll.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},rN="cell-text",nN=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=R_(S_,(e=>e.baseProps));return o?Ll.jsx(tq,{"data-testid":rN,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):Ll.jsx(tq,{"data-testid":rN,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},oN=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},iN=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},aN=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=R_(S_,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=Ll.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:iN(s),objectPosition:oN(l),overflow:"hidden"}});return n?Ll.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?AT(o,e):void 0},children:c}):c},sN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),lN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),uN=_(((e,t)=>Ll.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:[Ll.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"}),Ll.jsx("use",{fillRule:"evenodd"})]}))),cN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),dN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),pN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),fN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.jsx("path",{d:"M2 7h12v2H2z"})}))),hN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),mN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),gN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),bN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),vN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),yN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),xN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),SN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),CN={m:vN,"ï":gN,R:_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),S:yN,T:xN,U:SN,P:mN,Q:pN,"è":_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),"¢":cN,"©":uN,"23F4":dN,2013:bN,"&":hN,add:sN,"minus-2":fN,dot:lN},wN=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&CN[t];return o&&Ll.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:Ll.jsx(o,{style:{height:e}})})},EN=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=R_(S_,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=sL(e,t,i,o),d=(e=>parseInt(e||ST,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?Ll.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&wN({size:d,iconKey:f,color:p}),Ll.jsx(nN,{isNumeric:!0,children:a}),"right"===h&&wN({size:d,iconKey:f,color:p})]}):wN({size:d,iconKey:f,color:p})},RN=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,AN=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const{interactions:l,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=R_(S_,(e=>e.baseProps)),h=R_(S_,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==bw.Link||h||(m=Ll.jsx(qq,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===bw.Image)return Ll.jsx(aN,{representation:t.representation,textStyle:r,maxImageHeight:RN(u,o),wrapInContainer:!n});const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==bw.Indicator||Number.isNaN(g)?t.representation.type===bw.MiniChart&&t.representation.miniChart&&!t.isNull?Ll.jsx(tN,{height:RN(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):Ll.jsx(nN,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):Ll.jsx(EN,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},PN=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:HM.SelectMultiEnd})};r({type:HM.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:HM.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:HM.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),kN=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=R_(S_,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=R_(S_,(e=>e.baseProps)),u=R_(S_,(e=>e.setFocusedCellCoord)),c=R_(S_,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{Cq({evt:s,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:l})},f=e=>{((e,t)=>{e.key===gS.Shift&&t({type:HM.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;fq([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:h};const{handleMouseDown:m,handleMouseOver:g,handleMouseUp:b}=PN(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},MN=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=BM.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?BM.Disabled:n.has(e.qElemNumber)?BM.Selected:BM.Possible),i},IN=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},LN=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},DN=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return LN(t,e,n?"even":"odd")}return e},TN=(e,t)=>{const{styleService:r}=R_(S_,(e=>e.baseProps)),n=R_(S_,(t=>MN(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=DN(o,r,e),o=IN(o,r,e);const i=l_(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===BM.Selected?{...e,...r}:t===BM.Disabled?{...e,background:`${yT}, ${e.background}`}:e}(E((()=>e.isNull?o:l_(o,e.qAttrExps,t.qAttrExprInfoIDs)),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},_N=Qk(DI,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),ON=Qk(QI,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),qN=Qk(NI,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...ET,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),NN=Qk(NI,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...ET,...e,fontWeight:CT,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",zIndex:t?1:void 0}))),jN=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=R_(S_,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=kN(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=TN(e,r);return Ll.jsx(qN,{cellStyle:f,scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${m} ${mS}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:Ll.jsx(AN,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:IT(s,e.align)})})},zN=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),FN=()=>{const{columns:e,totalsPosition:t,rows:r}=R_(S_,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:s,direction:l}=R_(S_,(e=>e.baseProps)),u=R_(S_,(e=>e.headRowHeight)),c=R_(S_,(e=>e.setFocusedCellCoord)),d=!!o?.isModal(),p=!!s.active;return Ll.jsx(QI,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return Ll.jsx(NN,{totalsStyle:{...a.totalRow,...zN(a,t,!1)},headRowHeight:u,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${mS}`,tabIndex:-1,title:s.passive?e.totalInfo:void 0,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case gS.C:vq(r);break;case gS.Space:r.preventDefault();break;default:yq(e)}else Vx(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:l})},onMouseDown:()=>{fq(f,n,c,i)},children:Ll.jsx(nN,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var $N=O(FN);const BN=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=R_(S_,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=R_(S_,(e=>e.baseProps)),c=R_(S_,(e=>e.selectionDispatch)),d=!!o_(l)?.content?.hoverEffect;Tq({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=T((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return Iq(t)})(t),f=Dq();return Ll.jsxs(_N,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?Ll.jsx($N,{}):void 0,n.map(((e,t)=>Ll.jsx(ON,{hoverColors:u.grid.hoverColors,hover:d,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:u.contentMinRowHeight,children:o.map(((t,n)=>{const{id:o}=t,i=e[n];return Ll.jsx(jN,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?Ll.jsx($N,{}):void 0]})};var HN=O(BN);const WN=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,VN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),GN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),UN=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),YN=Qk(NI,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...ET,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),KN=Qk("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:ST,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),XN=parseInt(ST,10)/2,JN=Qk("div")({position:"absolute",bottom:-XN,left:`calc(50% - ${XN}px)`}),ZN=({column:e,isInteractionEnabled:t,open:r,setOpen:n,isPagination:o,forwardRef:i})=>{const{translator:a,changeSortOrder:s,interactions:l,embed:u,app:c,styleService:d,layout:p,direction:f}=R_(S_,(e=>e.baseProps)),h=R_(S_,(t=>t.columnWidths[e.pageColIdx])),m=R_(S_,(e=>e.baseProps.model)),g=D(null),b=D(null),v=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=tS({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:CT});let o=!1,i=!1,a=!1;const s=t.isLocked,l=t.isActivelySorted,u=r-25,c=s?20:0,d=l?20:0;let p=n(t.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({styleService:d,column:e,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?Ll.jsx(VN,{height:ST,"data-testid":"head-cell-sort-ascending-icon"}):Ll.jsx(GN,{height:ST,"data-testid":"head-cell-sort-descending-icon"}),a=r?Ll.jsx(KN,{align:t,dir:o,children:i}):void 0,s=n?Ll.jsx(NT,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Ll.jsx(UN,{height:ST,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(e,v,f);return Ll.jsxs(qT,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:MT(e,o,f),children:[S,Ll.jsxs(OT,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:f,isPagination:o,children:[y,Ll.jsx(nN,{forwardRef:i,isPagination:o,isHeadCell:!0,children:e.label}),x]}),t?Ll.jsxs(Ll.Fragment,{children:[Ll.jsx(CO,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:a,anchorRef:g,menuAvailabilityFlags:{[yO.Sorting]:!0,[yO.Searching]:!0,[yO.Selections]:!0,[yO.AdjusterHeaderSize]:!0},open:r,setOpen:n,interactions:l,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:u,listboxRef:b},selectionRelatedArgs:{app:c,qStateName:p.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:dq},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:f,isPagination:o,isAccessibleHeader:!0}),Ll.jsx(_T,{ref:b,direction:f,isPagination:o}),Ll.jsx(_T,{ref:g,direction:f})]}):null]})},QN=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=R_(S_,(e=>e.baseProps)),c=R_(S_,(e=>e.columnWidths)),d=R_(S_,(e=>e.setColumnWidths));if(!s.active)return null;return Ll.jsx(I_,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{lq(e);const t=e.closest(".sn-table-cell");cq(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},ej=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),tj=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})}))),rj=(e,t)=>e.isCyclic&&t,nj=({column:e})=>{const{direction:t,model:r,styleService:n}=R_(S_,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=D_({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return Ll.jsxs(Ll.Fragment,{children:[Ll.jsx(zT,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,onClick:e=>{e.stopPropagation(),a(!0)},children:Ll.jsx(ej,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),Ll.jsx(Q_,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:tj,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},oj=e=>e.isLocked,ij=({column:e})=>{const t=R_(S_,(e=>e.baseProps.app)),r=R_(S_,(e=>e.baseProps.layout.qStateName)),n=R_(S_,(e=>e.baseProps.styleService));return Ll.jsx(zT,{hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=tO(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:Ll.jsx(UN,{height:16,"data-testid":"head-cell-lock-icon"})})},aj=({column:e,open:t,setOpen:r,isPagination:n})=>{const{translator:o,interactions:i,app:a,layout:s,direction:l,changeSortOrder:u,embed:c,styleService:d}=R_(S_,(e=>e.baseProps)),p=R_(S_,(e=>e.baseProps.model)),f=x.useRef(null),h=x.useRef(null);return Ll.jsxs(zT,{hoverBackground:d.headerMenuHoverBackground,activeBackground:d.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[Ll.jsx(CO,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:o,anchorRef:f,menuAvailabilityFlags:{[yO.Sorting]:!0,[yO.Searching]:!0,[yO.Selections]:!0,[yO.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:i,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),u(e,r))},searchRelatedArgs:{embed:c,listboxRef:h},selectionRelatedArgs:{app:a,qStateName:s.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:dq},shouldShowMenuIcon:!0,model:p,direction:l,isPagination:n,isAccessibleHeader:!1,iconSize:16}),Ll.jsx(_T,{ref:h,direction:l,isPagination:n}),Ll.jsx(_T,{ref:f,direction:l})]})},sj=Qk(yI)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),lj=({children:e})=>{const t=x.useRef(null),[r,n]=w((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=E((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=T((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach((e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)})),n((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[o]);return Eq(t,i),Ll.jsx(sj,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})};lj.Item=({children:e})=>e;const uj=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),cj=(e,t)=>!e.isLocked&&e.isDim&&t,dj=({column:e,open:t,setOpen:r})=>{const{embed:n,app:o,direction:i,layout:a,styleService:s}=R_(S_,(e=>e.baseProps)),l=x.useRef(null),u=T((()=>{r(!1)}),[r]),c=eO({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:l},selectionRelatedArgs:{qStateName:a.qStateName},direction:i,onPopoverClose:u});return Ll.jsx(zT,{hoverBackground:s.headerMenuHoverBackground,activeBackground:s.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:Ll.jsx(uj,{ref:l,height:16,"data-testid":"head-cell-search-icon"})})},pj=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),fj=_(((e,t)=>Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Ll.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"})}))),hj=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?Ll.jsx(fj,{height:ST,"data-testid":"head-cell-sort-ascending-icon"}):Ll.jsx(pj,{height:ST,"data-testid":"head-cell-sort-descending-icon"});return r?Ll.jsx(JN,{children:n}):void 0},mj=0,gj=1,bj=2,vj=3,yj=({column:e,open:t,setOpen:r,isPagination:n,forwardRef:o})=>{const{styleService:i}=R_(S_,(e=>e.baseProps)),a=(()=>{const e=R_(S_,(e=>e.baseProps.interactions.active)),t=R_(S_,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:s}=tS(i.header),[l,u]=x.useState(!1);return Ll.jsxs(lj,{children:[Ll.jsx(lj.Item,{prio:bj,minWidth:TT,children:oj(e)?Ll.jsx(ij,{column:e}):null},"Lock"),Ll.jsx(lj.Item,{prio:gj,minWidth:TT,children:rj(e,a)?Ll.jsx(nj,{column:e}):null},"Cyclic"),Ll.jsx(lj.Item,{ignore:!0,children:Ll.jsx(hj,{column:e})},"Sort"),Ll.jsx(lj.Item,{minWidth:s(e.label)+8,children:Ll.jsx(jT,{justifyContent:e.headTextAlign,children:Ll.jsx(nN,{forwardRef:o,isPagination:n,isHeadCell:!0,children:e.label})})},"Text"),Ll.jsx(lj.Item,{prio:mj,minWidth:TT,children:l||cj(e,a)?Ll.jsx(dj,{open:l,setOpen:u,column:e}):null},"Search"),Ll.jsx(lj.Item,{prio:vj,minWidth:TT,children:a?Ll.jsx(aj,{column:e,open:t,setOpen:r,isPagination:n}):null},"Menu")]})},xj=()=>{const{flags:e}=R_(S_,(e=>e.env)),t=R_(S_,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},Sj=e=>e.target?.getAttribute("class")?.includes(bS),Cj=({isInteractionEnabled:e,column:t})=>{const[r,n]=w(!1),{changeSortOrder:o}=R_(S_,(e=>e.baseProps)),i=R_(S_,(e=>e.isAdjustingWidth)),a=R_(S_,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||Sj(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!Sj(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}},wj=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=R_(S_,(e=>e.baseProps)),{columns:l,totalsPosition:u}=R_(S_,(e=>e.tableData)),c=R_(S_,(e=>e.columnWidths[t])),d=R_(S_,(e=>e.baseProps.selectionsAPI?.isModal())),p=R_(S_,(e=>e.setFocusedCellCoord)),f=R_(S_,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=Cj({isInteractionEnabled:h,column:e}),x=xj(),S=x?ZN:yj,C=e.isActivelySorted?WM[e.sortDirection]:void 0,w=m?hS:void 0,E=m?"true":void 0,R=t===r-1,A=[0,e.pageColIdx],P={width:c-(R?8:9),zIndex:l.length-t},k=f&&0===t&&!i.enabled&&h?0:-1;return Ll.jsxs(YN,{headerStyle:{...a.header,...zN(a,u,!0)},background:x&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${mS}`,tabIndex:k,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case gS.C:vq(r);break;case gS.Enter:case gS.Space:n?.(r);break;default:yq(e)}else Vx(r)})({evt:e,rootElement:o,cellCoord:A,setFocusedCellCoord:p,isInteractionEnabled:h,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&fq(r,t,n,o)})({evt:e,rootElement:o,cellCoord:A,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:x?b:y,"aria-sort":C,"aria-controls":w,"aria-expanded":E,"aria-haspopup":"true",children:[Ll.jsx(S,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),Ll.jsx(QN,{column:e,isLastColumn:R,setIsAdjustingWidth:v})]},e.id)},Ej=()=>{const{columns:e}=R_(S_,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=R_(S_,(e=>e.baseProps)),o=R_(S_,(e=>e.setHeadRowHeight)),i=R_(S_,(e=>e.columnWidths)),a=D(null),s=WN(r,n);return R((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),Ll.jsx(UI,{style:{visibility:s?"collapse":void 0},children:Ll.jsx(QI,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>Ll.jsx(wj,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var Rj=O(Ej);const Aj=e=>{const{pageInfo:t,setPageInfo:r,footerContainer:n,announce:o}=e,{page:i,rowsPerPage:a}=t,{totalColumnCount:s,totalRowCount:l,totalPages:u,paginationNeeded:c,rows:d,columns:p}=R_(S_,(e=>e.tableData)),{rootElement:f,keyboard:h,translator:m,theme:g,interactions:b,styleService:v,viewService:y,layout:x,rect:S,direction:C}=R_(S_,(e=>e.baseProps)),w=R_(S_,(e=>e.setYScrollbarWidth)),E=R_(S_,(e=>e.showRightBorder)),A=R_(S_,(e=>e.selectionDispatch)),P=R_(S_,(e=>e.baseProps.selectionsAPI?.isModal())),k=D(!1),M=D(null),I=D(null),{yScrollbarWidth:L}=Rq(M),_=`${m.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${m.get("SNTable.Accessibility.NavigationInstructions")}`,O=MR(x,y),q=O?y.scrollLeft??0:0,N=O?y.rowPartialHeight??0:0,j=T((()=>{k.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),z=T((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),F=T((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return bq(M,C,y),((e,t)=>{const{keyboard:r}=R_(S_,(e=>e.baseProps));R((()=>{const n=e.current;if(!n)return;const o=e=>{hq(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(I,k),(()=>{const{rootElement:e,keyboard:t}=R_(S_,(e=>e.baseProps)),r=R_(S_,(e=>e.focusedCellCoord));aS((()=>{const n=aq(e,r);t.active?cq(n):(n?.blur(),uq(e))}),[t.active,e])})(),gq(k,o,i),R((()=>{const e=M.current;e&&(e.scrollLeft=q,e.scrollTop=N)}),[t,l,q,N]),rq((()=>{w(L)}),[L]),rq((()=>{A({type:HM.UpdatePageRows,payload:{pageRows:d}})}),[d]),mq(),Ll.jsxs(eq,{ref:I,background:g.background,dir:C,onKeyDown:e=>{Sq({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:z,updateShouldRefocus:j,keyboard:h,isSelectionMode:P})},"data-testid":"sn-table",children:[Ll.jsx(Mq,{}),Ll.jsx(Pq,{ref:M,className:"sn-table-container",fullHeight:!!n||!b.active||!c,interactions:b,tabIndex:-1,role:"application","data-testid":"table-container",children:Ll.jsxs(kq,{stickyHeader:!0,"aria-label":_,borderRight:E?`1px solid ${v.grid.border}`:void 0,children:[Ll.jsx(Rj,{}),Ll.jsx(HN,{...e,updateShouldRefocus:j,tableWrapperRef:I})]})}),Ll.jsx(ZO,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:g,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:m,interactions:b,rect:S,layout:x,handleChangePage:z,handleChangeRowsPerPage:F,isSelectionMode:P,direction:C})]})};var Pj=O(Aj),kj=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Mj(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||kj(n)&&kj(o)))return!1;var n,o;return!0}function Ij(e,t){var r;void 0===t&&(t=Mj);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var Lj="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Dj(e){cancelAnimationFrame(e.id)}function Tj(e,t){var r=Lj();var n={id:requestAnimationFrame((function o(){Lj()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var _j=-1;function Oj(e){if(void 0===e&&(e=!1),-1===_j||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),_j=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return _j}var qj=null;function Nj(e){if(void 0===e&&(e=!1),null===qj||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?qj="positive-descending":(t.scrollLeft=1,qj=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),qj}return qj}var jj=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function zj(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,bo(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:bo(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Ij((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=Ij((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=Ij((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(Nj()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Dj(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Tj(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}go(t,e),t.getDerivedStateFromProps=function(e,t){return Fj(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=Oj();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Nj()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Dj(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?jj:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],w=S[1],E=this._getVerticalRangeToRender(),R=E[0],P=E[1],k=[];if(n>0&&g)for(var M=R;M<=P;M++)for(var I=C;I<=w;I++)k.push(A(t,{columnIndex:I,data:d,isScrolling:v?x:void 0,key:f({columnIndex:I,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,I)}));var L=a(this.props,this._instanceProps),D=s(this.props,this._instanceProps);return A(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:lo({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},A(u||c||"div",{children:k,ref:l,style:{height:L,pointerEvents:x?"none":void 0,width:D}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Fj=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},$j=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},Bj=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},Hj=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},Wj=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?Vj(e,t,r,i,0,n):Gj(e,t,r,Math.max(0,i),n)},Vj=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=Hj(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},Gj=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&Hj(e,t,n,r).offset<o;)n+=a,a*=2;return Vj(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},Uj=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=Hj(e,t,r,i),u="column"===e?Bj(t,i):$j(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},Yj=zj({getColumnOffset:function(e,t,r){return Hj("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return Wj("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=Hj("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=Hj("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:$j,getEstimatedTotalWidth:Bj,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return Uj("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return Uj("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return Hj("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return Wj("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=Hj("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=Hj("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),Kj=function(e,t){return e};function Xj(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,bo(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:bo(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Ij((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Ij((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Ij((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(Nj()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Dj(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Tj(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}go(t,e),t.getDerivedStateFromProps=function(e,t){return Jj(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?Oj():0:l.scrollHeight>l.clientHeight?Oj():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(Nj()){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&&Dj(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?Kj:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],E=C[1],R=[];if(u>0)for(var P=w;P<=E;P++)R.push(A(t,{data:c,key:p(P,c),index:P,isScrolling:b?y:void 0,style:this._getItemStyle(P)}));var k=n(this.props,this._instanceProps);return A(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:lo({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},A(s||l||"div",{children:R,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Jj=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Zj=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},Qj=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=Zj(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},ez=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&Zj(e,r,t).offset<n;)r+=i,i*=2;return Qj(e,t,Math.min(r,o-1),Math.floor(r/2),n)},tz=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},rz=Xj({getItemOffset:function(e,t,r){return Zj(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:tz,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=Zj(e,t,o),p=tz(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?Qj(e,t,o,0,r):ez(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=Zj(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=Zj(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function nz(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var oz=["style"],iz=["style"];function az(e,t){var r=e.style,n=vo(e,oz),o=t.style,i=vo(t,iz);return!nz(r,o)&&!nz(n,i)}const sz=({style:e})=>Ll.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var lz=x.memo(sz,az);const uz=()=>{},cz=e=>{e.preventDefault()};const dz=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=R_(S_,(e=>e.hoverIndex===t)),d=R_(S_,(e=>e.setHoverIndex)),{interactions:p,styleService:f,direction:h}=R_(S_,(e=>e.baseProps)),m=R_(S_,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=R_(S_,(e=>e.baseProps)),r=R_(S_,(e=>e.selectionDispatch)),n="object"==typeof e,o=R_(S_,(t=>n?MN(e,t.selectionState):BM.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=PN(cz,e,r,uz);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=D(null),i=r&&!r.isNumeric,a=T((r=>{const o=wq(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return Eq(o,a),o})(t,e,g,s),C=i[e]?.isDim?f.dimension.values:f.measure.values;if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=DN(o,i,e);a=IN(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?l_(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===BM.Selected?{...s,...i.selectedColors}:n===BM.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${yT}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,C,f),o={rowindex:t,columnindex:e};return Ll.jsx("div",{className:`sn-table-cell ${x} ${mS}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:LT(h,g.isLastColumn,m),borderLeftWidth:DT(h,g.isLastColumn,m),justifyContent:PT(g,h),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:p.passive?g.representation.text:void 0,...o,children:Ll.jsx(AN,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})}return Ll.jsx(lz,{style:{...r,...C,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var pz=O(dz,az);const fz=e=>{const t=D(e);return t.current=e,t},hz=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,mz=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},gz=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},bz=(e,t,r,n,o,i,a,s)=>{e.forEach((e=>{e.qMatrix.forEach(((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],C=xR(h,e,a),w=!h&&e.qIsNull,E=w?bE(C):gE(e);f[r]={id:fE(),...e,align:PR(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!w||!E)&&yR(e,h),representation:vR({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>w?C:e.qText,direction:u,enabledFeatures:{[bw.Image]:!0,[bw.Indicator]:!0,[bw.MiniChart]:!0}})},l(f[r],d,r)})),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},vz=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=R_(S_,(e=>e.env)),{direction:p}=R_(S_,(e=>e.baseProps)),f=D([]),h=T(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return bz(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=w((()=>h(n??[])));aS((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=D(new Set),n=D(new Set),o=D(new Set),i=fz(e),a=fz(t),s=E((()=>({enqueue:e=>{const t=hz(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(hz(e))})),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>h(e,t)))})),v=T(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(gz(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=T(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(mz(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return R((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,u,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},yz=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},xz=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,Sz=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=R_(S_,(e=>e.baseProps.styleService)),i=R_(S_,(e=>e.columnWidths)),{estimateLineCount:a}=tS(o.dimension.values),s=g_(o.dimension.values.fontSize),l=e||t||1===r;return T(((e,t,o)=>{if(l||e.representation.type===bw.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)}),[l,i,a,r,s,n])},Cz=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>E((()=>{const{estimatedRowHeight:a,totalRowHeight:s}=e?{totalRowHeight:n*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(r),totalRowHeight:t}})(r.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(n*t,s)}),[e,t,n,r,o,i]),wz=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=R_(S_,(e=>e.baseProps)),[a,s]=w({rowHeights:new Map,cellHeightsInGrid:new Map}),l=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/l))),h=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:l,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{const{layout:n}=R_(S_,(e=>e.baseProps)),o=R_(S_,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;aS((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),aS((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:n,setState:s,pageInfo:o});const m=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>T(((o,i,a)=>{N((()=>{e((e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!xz(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,yz(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>T(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m});return{setMeasuredCellHeight:g,setEstimatedCellHeight:Sz({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),getRowHeight:T((e=>c?h:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]),totalRowHeight:Cz({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,rowCount:e,viewService:r}),lineClamp:f}},Ez=(e,t)=>{j((()=>()=>{t(0)}),[e,t]);const r=T((e=>{const r=wq(e);void 0!==r&&t(r)}),[t]);Eq(e,r)};let Rz=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const Az=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>T((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=Rz.None,i=Rz.None;return o=n>t?Rz.Down:n<t?Rz.Up:Rz.None,i=r>e?Rz.Right:r<e?Rz.Left:Rz.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,s,u);if(i.current.overscanColumnStartIndex=s,i.current.overscanColumnStopIndex=l,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=s,v=u+o.page*o.rowsPerPage,y=l-s+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=h-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,m===Rz.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===Rz.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===Rz.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===Rz.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),Pz={enabled:!1},kz=()=>{},Mz={current:null};const Iz=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=E((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},Lz=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},Dz={overflow:"hidden",willChange:"auto"};var Tz=O(_(((e,t)=>{const{rect:r,columns:n,pageInfo:o,headerAndTotalsHeight:i,setInnerBodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=R_(S_,(e=>e.baseProps)),f=R_(S_,(e=>e.columnWidths)),h=R_(S_,(e=>e.initialDataPages)),m=D(null),g=D(null),b=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=D(0),y=!!o_(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:C}=Iz(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:w,setEstimatedCellHeight:A,getRowHeight:P,lineClamp:k,totalRowHeight:M}=wz({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:I,loadRows:L,loadColumns:T}=vz({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:C,columns:n,gridState:b,setEstimatedCellHeight:A}),_=Az({layout:s,loadRows:L,loadColumns:T,rowCount:x,pageInfo:o,gridState:b,viewService:c}),O=Dq(),q=E((()=>({rowsInPage:I,columns:n,isHoverEnabled:y,lineClamp:k,setMeasuredCellHeight:w,resizeObserverTaskScheduler:O})),[I,n,y,k,w,O]),N=((e,t,r)=>Math.min(e.height-t,r))(r,i,M);return j((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=R_(S_,(e=>e.baseProps)),r=R_(S_,(e=>e.selectionDispatch));R((()=>{r({type:HM.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),Tq({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:kz,keyboard:Pz,tableWrapperRef:Mz})}(I),z(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??N)-N,n=Math.round(r*e);v.current=e,1===v.current?(m.current?.scrollToItem({rowIndex:x-1,align:"start"}),m.current?.scrollTo({scrollLeft:t})):m.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[g,N,x]),Ez(g,a),Ll.jsx(Yj,{"data-key":"body",ref:m,innerRef:g,style:Dz,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:N,rowCount:x,rowHeight:P,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:q,onItemsRendered:_,itemKey:Lz,className:"sn-table-body",direction:p,children:pz})})));const _z=({width:e,height:t,children:r})=>Ll.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),Oz=(e,t)=>{const r=D(null),n=R_(S_,(e=>e.columnWidths));j((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=T((r=>{const n=wq(r);n&&t(n+9,e)}),[e,t]);return Eq(r,o),r},qz=Qk("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}}))),Nz=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=R_(S_,(e=>e.baseProps)),u=R_(S_,(e=>e.baseProps.selectionsAPI?.isModal())),c=R_(S_,(e=>e.showRightBorder)),d=R_(S_,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=Cj({isInteractionEnabled:p,column:f}),y=xj(),x=Oz(e,i),S=n.length-1===e,C=y?ZN:yj;return Ll.jsxs(qz,{className:`sn-table-cell ${mS}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...zN(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:LT(l,S,c),borderLeftWidth:DT(l,S,c),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:f.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===f.headTextAlign?"row-reverse":"row",userSelect:"none"},interactions:a,hoverBackground:s.headerMenuHoverBackground,background:y&&h?s.headerMenuActiveBackground:s.header.background,children:[Ll.jsx(C,{forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),Ll.jsx(QN,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},jz=e=>{const[t,r]=w(new Map);aS((()=>{r(new Map)}),[e.length]);const n=T(((e,t)=>{r((r=>xz(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:E((()=>yz(t)),[t]),setMeasuredCellHeight:n}},zz=(e,t)=>{z(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},Fz=(e,t,r,n,o)=>{aS((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},$z={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},Bz=_(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=x.useRef(null),l=D(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=R_(S_,(e=>e.baseProps)),h=R_(S_,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=jz(n),b=WN(f,u);return zz(t,s),Fz(s,u,o,h,c),Ez(l,a),Ll.jsx(rz,{ref:s,outerRef:l,layout:"horizontal",style:{...$z,...b?{display:"none"}:void 0},itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(m+8,d.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,setMeasuredCellHeight:g},direction:p,children:Nz})}));var Hz=O(Bz);const Wz=_(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=R_(S_,(e=>e.baseProps));return Ll.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,children:r})})),Vz=({children:e,rect:t})=>{const{direction:r}=R_(S_,(e=>e.baseProps));return Ll.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},Gz=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=R_(S_,(e=>e.baseProps)),c=R_(S_,(e=>e.showRightBorder)),d=Oz(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e;return Ll.jsx("div",{className:`sn-table-cell ${mS}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...zN(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:LT(u,m,c),borderLeftWidth:DT(u,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default"},children:Ll.jsx(nN,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},Uz=_(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=D(null),l=D(null),{layout:u,theme:c,styleService:d,direction:p}=R_(S_,(e=>e.baseProps)),f=R_(S_,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=jz(i);return zz(t,s),Fz(s,u,n,f,c),Ez(l,a),Ll.jsx(rz,{ref:s,outerRef:l,layout:"horizontal",style:$z,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(h,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:m},direction:p,children:Gz})}));var Yz=O(Uz);const Kz=(e,t,r,n,o)=>T((i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),c=Math.max(0,Math.min(1,l/(a-s)));n.scrollTopRatio=c,n.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[n,r,e,t,o]),Xz=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=R_(S_,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=R_(S_,(e=>e.baseProps)),c=R_(S_,(e=>e.columnWidths)),d=R_(S_,(e=>e.setYScrollbarWidth)),p=D(null),f=D(null),h=D(null),m=D(null),{xScrollbarWidth:g,yScrollbarWidth:b}=Rq(p),v=E((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),y=E((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(v,g,b)),[v,g,b]),{rowCount:x}=Iz(i,t,y,c,0),{headerAndTotalsHeight:S,innerBodyHeight:C,setHeaderRowHeight:R,setTotalsRowHeight:A,setInnerBodyHeight:P}=(()=>{const[e,t]=w(0),[r,n]=w(0),[o,i]=w(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:k,height:M}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=R_(S_,(e=>e.baseProps)),a=e+t,s=r*i.contentMinRowHeight+t;let l=s;return s<n.height&&a>n.height&&(l=a),{width:o.reduce(((e,t)=>e+t),0),height:l}})({innerBodyHeight:C,headerAndTotalsHeight:S,rowCount:x,stickyContainerRect:y,columnWidths:c}),I=Kz(f,h,m,l,u),L=T((()=>{p.current&&(p.current.scrollTop=0)}),[p]);mq(),j((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),j((()=>{p.current&&(p.current.scrollTop=0)}),[t,x,a]),rq((()=>{d(b)}),[b]);const _=Ll.jsx(Yz,{rect:y,pageInfo:t,columns:n,ref:h,totals:r,setTotalsRowHeight:A},"totals");return Ll.jsx(Wz,{ref:p,width:v.width,height:v.height,onScroll:I,children:Ll.jsx(_z,{width:k,height:M,children:Ll.jsxs(Vz,{rect:y,children:[Ll.jsx(Hz,{rect:y,pageInfo:t,columns:n,ref:f,columResizeHandler:L,setHeaderRowHeight:R}),r.atTop?_:null,Ll.jsx(Tz,{ref:m,rect:y,pageInfo:t,columns:n,headerAndTotalsHeight:S,setInnerBodyHeight:P}),r.atBottom?_:null]})})})};var Jz=O(Xz);const Zz=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=R_(S_,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=R_(S_,(e=>e.tableData)),c=R_(S_,(e=>e.pageInfo)),d=R_(S_,(e=>e.setPage));return Ll.jsxs(eq,{"data-testid":"sn-table",background:e.background,children:[Ll.jsx(Jz,{pageInfo:c}),Ll.jsx(ZO,{paginationNeeded:a,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var Qz=O(Zz);var eF={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 tF=(e,r)=>t((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(eF).forEach((t=>{e.add(eF[t])}))}(r),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${VM.First}`),s=e.querySelector(`.${VM.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===VM.First?(l=s,r=VM.Second):(l=a,r=VM.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}})(e,r))),[e,r.language()]),rF={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},nF=e=>{const{app:t,model:n,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:h}=r(),m=IR(s,d),g=tF(a,l),[b,v]=o(((e,t)=>MR(e,t)?{page:t.page||rF.page,rowsPerPage:t.rowsPerPage||rF.rowsPerPage,rowsPerPageOptions:rF.rowsPerPageOptions}:rF)(s,d)),[y,x]=Zx((async()=>m?async function(e,t,r,n,o,i,a,s){const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),h=o.visibleTop??l*u,m=o.visibleHeight??Math.min(u,p-h);if(l>0&&h>=p)return n({...r,page:0}),null;if(m*d>SR)return n({...r,rowsPerPage:CR(d,c),page:0}),null;const g=p>10,b=wR(t,o),v=kR(t,a,s),y=!!t.snapshotData,x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});y||(o.qTop=h,o.qHeight=m,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=x.at(0)?.qMatrix.map(((e,r)=>{const n=[];return v.forEach(((o,l)=>{const u=e[l],c=xR(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?bE(c):gE(u);n[l]={id:fE(),...u,align:PR(p,o.bodyTextAlign,s,a),rowIdx:r+h,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===m-1,isNumeric:p,isNull:(!d||!p)&&yR(u,o.isDim),representation:vR({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[bw.Image]:!0,[bw.Indicator]:!0,[bw.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,s,b,v,d,p,!0,f):null),[s,b,n,m,f]);i((()=>{m&&e.model&&e.changeSortOrder&&y&&c&&!x&&function(e,t){const{direction:r,...n}=e,o=A_(r);t.render(Ll.jsx(Ud,{stylisPlugins:"rtl"===r?[$M]:void 0,children:Ll.jsx(tM,{theme:o,children:Ll.jsx(E_,{...e,children:Ll.jsx(Pj,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:y,pageInfo:b,setPageInfo:v,direction:f,footerContainer:h,announce:g},u)}),[g,t,f,h,c,b,u,e,m,y,x])},oF=e=>{const r=t((()=>rS(e)),[e]);return i((()=>()=>{r.unmount()}),[r]),r},iF=(e,r)=>t((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(e.qDimensionInfo.length,r)),[e.qDimensionInfo.length,r]);const aF=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=Zx((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(FT,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return[...n]})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},sF=e=>{const{layout:r,model:n,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=e,p=!IR(r,c),[f,h]=o(!1);f&&h(!1);const m=t((()=>function(e,t,r,n,o){const i=kR(e,o,n),a=wR(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(FT,s),u=s>FT&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(r,s,c,d,f)),[r,s,c,d,f]),{pageInfo:g,setPage:b}=((e,r)=>{const[n,i]=o(0),a=Math.min(FT,e.qHyperCube.qSize.qcy),s=t((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(r){const t=Math.floor(e.qHyperCube.qSize.qcy/FT);t<n&&i(t)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=aF({model:n,layout:r,page:g.page,shouldRender:p});i((()=>{p&&a.active&&a.blur?.(!1)}),[a,p]),i((()=>{p&&e.model&&e.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=A_(r);t.render(Ll.jsx(x.StrictMode,{children:Ll.jsx(tM,{theme:n,children:Ll.jsx(E_,{...e,children:Ll.jsx(Qz,{})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:m,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,e,b,p,m])},lF={version:JSON.stringify("6.3.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var uF=e=>({properties:{initial:lF},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>cw({...e}),exportProperties:ow,exploration:dw});function cF(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const dF=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},pF=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const fF=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||rF.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},hF=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=wR(e,t);if(IR(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=cF(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:fF(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=dF(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(pF(h,m,g)?d:d+1)+c;let v=p+c;const y=dF(p,o),x=y?.getBoundingClientRect();return y&&x&&(pF(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:fF(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},mF=({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{u((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h}=hF(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),c((()=>({getViewState:()=>hF(e,t,n)})),[e,t,n])},gF=e=>{const{viewState:n}=r();return t((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(n,e.snapshotData)),[n,e.snapshotData,e.usePagination])},bF=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),vF=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));
121
+ */!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+r+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),w=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=new RegExp("("+l+"[^\\}]*?})","gi"),E=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),P=new RegExp(s+"(left)"+h+b+g,"gi"),A=new RegExp(s+"(right)"+h+b+g,"gi"),I=new RegExp(s+"(left)"+v,"gi"),M=new RegExp(s+"(right)"+v,"gi"),D=new RegExp(s+"(ltr)"+v,"gi"),k=new RegExp(s+"(rtl)"+v,"gi"),T=new RegExp(s+"([ns]?)e-resize","gi"),q=new RegExp(s+"([ns]?)w-resize","gi"),L=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),O=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),N=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),_=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),j=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),z=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),F=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),V=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function W(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function U(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function G(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?U(n)+" / "+U(o):U(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(w,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(D,"$1"+e).replace(k,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(M,"$1left").replace(x,"right")),r=r.replace(E,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(P,"$1"+e).replace(A,"$1left").replace(x,"right").replace(T,"$1$2"+e).replace(q,"$1$2e-resize").replace(x,"w-resize").replace(j,G).replace(z,K).replace(F,J).replace(H,J).replace($,K).replace(B,X).replace(V,X).replace(L,"$1$2$3$8$5$6$7$4$9").replace(O,"$1$2$3$8$5$6$7$4$9").replace(N,W).replace(_,W),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(_P,_P.exports);var jP=Bt(_P.exports),zP="comm",FP="rule",HP="decl",$P=Math.abs,BP=String.fromCharCode;function VP(e){return e.trim()}function WP(e,t,r){return e.replace(t,r)}function UP(e,t,r){return e.indexOf(t,r)}function GP(e,t){return 0|e.charCodeAt(t)}function YP(e,t,r){return e.slice(t,r)}function KP(e){return e.length}function XP(e,t){return t.push(e),e}var JP=1,ZP=1,QP=0,eA=0,tA=0,rA="";function nA(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:JP,column:ZP,length:a,return:"",siblings:s}}function oA(){return tA=eA>0?GP(rA,--eA):0,ZP--,10===tA&&(ZP=1,JP--),tA}function iA(){return tA=eA<QP?GP(rA,eA++):0,ZP++,10===tA&&(ZP=1,JP++),tA}function aA(){return GP(rA,eA)}function sA(){return eA}function lA(e,t){return YP(rA,e,t)}function uA(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function cA(e){return VP(lA(eA-1,fA(91===e?e+2:40===e?e+1:e)))}function dA(e){for(;(tA=aA())&&tA<33;)iA();return uA(e)>2||uA(tA)>3?"":" "}function pA(e,t){for(;--t&&iA()&&!(tA<48||tA>102||tA>57&&tA<65||tA>70&&tA<97););return lA(e,sA()+(t<6&&32==aA()&&32==iA()))}function fA(e){for(;iA();)switch(tA){case e:return eA;case 34:case 39:34!==e&&39!==e&&fA(tA);break;case 40:41===e&&fA(e);break;case 92:iA()}return eA}function mA(e,t){for(;iA()&&e+tA!==57&&(e+tA!==84||47!==aA()););return"/*"+lA(t,eA-1)+"*"+BP(47===e?e:iA())}function hA(e){for(;!uA(aA());)iA();return lA(e,eA)}function gA(e){return function(e){return rA="",e}(bA("",null,null,null,[""],e=function(e){return JP=ZP=1,QP=KP(rA=e),eA=0,[]}(e),0,[0],e))}function bA(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,w=n,C=y;g;)switch(m=v,v=iA()){case 40:if(108!=m&&58==GP(C,d-1)){-1!=UP(C+=WP(cA(v),"&","&\f"),"&\f",$P(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=cA(v);break;case 9:case 10:case 13:case 32:C+=dA(m);break;case 92:C+=pA(sA()-1,7);continue;case 47:switch(aA()){case 42:case 47:XP(yA(mA(iA(),sA()),t,r,l),l),5!=uA(m||1)&&5!=uA(aA()||1)||!KP(C)||" "===YP(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*h:s[u++]=KP(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=WP(C,/\f/g,"")),f>0&&(KP(C)-d||0===h&&47===m)&&XP(f>32?xA(C+";",n,r,d-1,l):xA(WP(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(XP(w=vA(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)bA(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===GP(C,3))break;case 108:if(97===GP(C,2))break;default:c=0;case 100:case 109:case 115:}c?bA(e,w,w,n&&XP(vA(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):bA(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+KP(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==oA())continue;switch(C+=BP(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(KP(C)-1)*b,b=1;break;case 64:45===aA()&&(C+=cA(iA())),p=aA(),c=d=KP(y=C+=hA(sA())),v++;break;case 45:45===m&&2==KP(C)&&(h=0)}}return i}function vA(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=function(e){return e.length}(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=YP(e,p+1,p=$P(g=a[h])),x=e;v<m;++v)(x=VP(g>0?f[v]+" "+y:WP(y,/&\f/g,f[v])))&&(l[b++]=x);return nA(e,t,r,0===o?FP:s,l,u,c,d)}function yA(e,t,r,n){return nA(e,t,r,zP,BP(tA),YP(e,2,-2),0,n)}function xA(e,t,r,n,o){return nA(e,t,r,HP,YP(e,0,n),YP(e,n+1,-1),n,o)}function SA(e,t,r){switch(e.type){case"@import":case HP:case zP:return e.return=e.return||e.value;case FP:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===zP&&(e.children=e.value)}))}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),SA);return KP(n)?e.return=e.value+"{"+n+"}":""}function wA(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===FP&&(!e.parent||"@media"===e.parent.type||e.parent.type===FP)){var o=jP.transform(SA(e));e.children=o?gA(o)[0].children:[],e.return=""}}Object.defineProperty(wA,"name",{value:"stylisRTLPlugin"});let CA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),EA=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),RA=function(e){return e.A="ascending",e.D="descending",e}({}),PA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const AA=[0,0],IA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),MA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},DA=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&te(e.localPaletteColors[t].color).blend(te(s.color),s.t)},kA=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:IA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:MA(n,t,r)})))),n},TA=(e,t,r,n)=>{const o=kA(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=DA(e,a,t);break}n=i}return r})(o,t);return a},qA=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!kR(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!kR(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},LA=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=qA(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!kR(t))return 0;let a=r&&kR(r)?Math.min(r,t):0;const s=n.sort(((e,t)=>e.value-t.value)),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},OA=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=LA(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return MA(o,r.limitPaletteColorIndex,n);const a=IA(r.limitRange,t);return TA(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},NA=(vC().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)"),_A=4/3,jA="12px",zA="600",FA="Source Sans Pro, sans-serif",HA={height:"auto",fontSize:jA,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},$A={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:zA},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},BA=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,VA=(e,t)=>e.representation.type===qE.Image&&"fitHeight"===e.representation.imageSize?BA(t,e.representation):e.align,WA=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",UA=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},GA=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,YA=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",KA=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",XA=24,JA=ic("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),ZA=ic(Kd,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})((({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?WA(e,n):void 0}))),QA=ic(Kd,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${YC}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${YC}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),eI=ic(Kd,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),tI=ic(Kd,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),rI=ic(id,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})((({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n}))),nI=25e4,oI=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const m=()=>{n[a]=Math.min(eE.PixelsMax,Math.max(eE.PixelsMin,f)),i-=n[a]};switch(s){case tE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?eE.PixelsDefault:+e)(l),m();break;case tE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?eE.PercentageDefault:+e)(u)/100*t,m();break;case tE.FitToContent:e.representation?.type===qE.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),m());break;case tE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(eE.AutoMinTable,e)}))}return n},iI=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},aI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},sI=e=>e.ctrlKey||e.metaKey,lI=e=>e.shiftKey&&sI(e),uI=e=>[ZC.Left,ZC.Right,ZC.Up,ZC.Down].includes(e),cI=e=>e.shiftKey&&uI(e.key),dI=e=>(e=>uI(e)||[ZC.Home,ZC.End,ZC.PageUp,ZC.PageDown].includes(e))(e.key)&&!lI(e),pI=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),iI(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},fI=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&cI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&cI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===ZC.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return iI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},mI=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},hI=(e,t)=>{switch(t.type){case EA.Select:return pI(e,t.payload);case EA.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case EA.SelectMouseUp:return((e,t)=>mI(e.isSelectMultiValues||e.firstCell!==t.cell?e:pI(e,t)))(e,t.payload);case EA.SelectMultiAdd:return fI(e,t.payload);case EA.SelectMultiEnd:return mI(e);case EA.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case EA.Clear:return e.rows.size?{...e,rows:new Map}:e;case EA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},gI=4/3,bI=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function vI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const yI=(e,t)=>e?{borderBottomColor:xC.DARK_MODE_BORDER,borderRightColor:xC.DARK_MODE_BORDER,borderLeftColor:xC.DARK_MODE_BORDER,borderTopColor:xC.DARK_MODE_BORDER}:{borderLeftColor:xC.BORDER_MEDIUM,borderRightColor:xC.BORDER_MEDIUM,borderTopColor:xC.BORDER_HEAVY,borderBottomColor:t?xC.BORDER_HEAVY:xC.BORDER_LIGHT},xI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*gI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},SI=e=>e.components?.find((e=>"theme"===e.key)),wI=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:bI(r?.fontColor)?vI(xC.TEXT,t,r?.fontColor):i||xC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...yI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function CI(e,t,r){const n=SI(e)?.header,o=wI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=te(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=CC(o.background??xC.WHITE,rE),o.activeBackground=CC(o.background??xC.WHITE,nE),o}const EI=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in $A)(e)&&Object.assign(t,$A[e]))),t};function RI(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach(((e,t)=>{const i=e.qText,a=i&&RC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?EI(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=SC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const PI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},AI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=PI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},II=(e,t,r,n=xC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=AI(e,t,r);return DC(i,o,a,n)??n},MI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return jA}},DI=e=>e?.some((e=>"italic"===e))?"italic":"normal",kI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?zA:"normal",TI=e=>!1===e?1:3,qI=e=>parseInt(e??HA.fontSize,10)*_A,LI=e=>e?.some((e=>"underline"===e))?"underline":"none",OI=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=SI(t)??{},p=NP(t,o)?xC.WHITE:xC.TRANSPARENT,f=II(n,i,"object.straightTableV2.dimension.label.name.backgroundColor",p),m=o.viewState?.maxLineCount??d?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),h={header:{fontFamily:i?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??r.head.fontFamily??FA,fontSize:MI(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:DI(i?.fontStyle),fontWeight:kI(i?.fontStyle,zA),textDecoration:LI(i?.fontStyle),color:PI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??xC.TEXT,background:f},headerMenuHoverBackground:CC(f,rE),headerMenuActiveBackground:CC(f,nE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??FA,fontSize:MI(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:DI(a?.fontStyle),fontWeight:kI(a?.fontStyle,"normal"),textDecoration:LI(a?.fontStyle),color:PI(n,a?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??xC.TEXT,background:AI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??xC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??FA,fontSize:MI(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:DI(s?.fontStyle),fontWeight:kI(s?.fontStyle,"normal"),textDecoration:LI(s?.fontStyle),color:PI(n,s?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??xC.TEXT,background:AI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??xC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??FA,fontSize:MI(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:DI(l?.fontStyle),fontWeight:kI(l?.fontStyle,zA),textDecoration:LI(l?.fontStyle),color:PI(n,l?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??xC.TEXT,background:II(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:DI(u?.fontStyle),fontWeight:kI(u?.fontStyle,"normal"),textDecoration:LI(u?.fontStyle),color:PI(n,u?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??xC.TEXT,background:PI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??xC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:m??TI(t.multiline?.wrapTextInCells),headerLineClamp:TI(t.multiline?.wrapTextInHeaders),border:PI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?xC.DARK_MODE_BORDER:xC.BORDER_MEDIUM),divider:PI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??xC.BORDER_HEAVY,hoverColors:{color:PI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:PI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:PI(n,c?.zebraStripes?.color?.odd),background:PI(n,c?.zebraStripes?.background?.odd)},even:{color:PI(n,c?.zebraStripes?.color?.even),background:PI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===PI(n,u?.background),overrideNullValueColor:void 0===PI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:wC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:m},{headerMinRowHeight:g,totalRowLineHeight:b,totalRowMinHeight:v,contentLineHeight:y,contentMinRowHeight:x}=(e=>{const t=Math.max(qI(e.header.fontSize)+8,32),r=qI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(qI(e.dimension.values.fontSize),qI(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(h);return h.headerMinRowHeight=g,h.totalRowLineHeight=b,h.totalRowMinHeight=v,h.contentLineHeight=y,h.contentMinRowHeight=x,h},NI=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=SI(e)?.content,i=wI("content",t,o);i.background=t.background.color;const a=xI(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=bI(l)||!!c,p=bI(s)||!!u,f=d||p;let m;m=bI(s)?vI(xC.HOVER,t,s):u||(d?"":xC.HOVER);const h=f?vI(SC(m),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:m,color:h}}}(e,t,r.rows.length,n),a=CI(e,t,!o),s=function(e,t,r){const n=SI(e)?.content,o=wI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=CI(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},_I=new Map;const jI=k({}),zI=function(e){const t=k([()=>{},new Set]);return _I.set(e,t),({children:r,value:n})=>{const o=T(n),i=T(new Set);E((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=q((()=>o.current),[o]),s=C((()=>[a,i.current]),[a]);return er.jsx(e.Provider,{value:n,children:er.jsx(t.Provider,{value:s,children:r})})}}(jI),FI={rows:[],columns:[],totalsPosition:{}},HI=({app:e,children:t,tableData:r=FI,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:E})=>{const[R,P]=w(0),[A,I]=w(o||AA),[M,k]=((e,t)=>{const[r,n]=D(hI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[T,q]=w(-1),L=NI(i,u,r,d),O=((e,t,r,n,o)=>C((()=>OI(0,t,r,n,o)),[t,r,e,n,o]))(S,i,L,u,y),[N,_,j,z,F,H]=((e,t,r,n,o=!0)=>{const i=t.atBottom||t.atTop,a=_C({...n.header,fontWeight:zA},{maxNbrLinesOfText:3}).measureText,s=_C({...n.totalRow,fontWeight:zA},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=_C(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:u}=_C(n.measure.values,{maxNbrLinesOfText:3}),c=C((()=>(e,t,r,n,c,d,p)=>{let f=0;if(o){const t=4;let r=25;r+=t+24,n&&(r+=20+t),c&&(r+=20),f=a(e)+r}else{let t=9;t+=16,p&&(t+=XA),t+=XA,t+=XA,f=a(e)+t}const m=d?l:u;return Math.max(f,i?s(t)+24+1:0,m(r))}),[l,u,a,s,i,o]),[d,p]=w(0),[f,m]=w(!1),[h,g]=w((()=>oI(e,r,c)));$C((()=>{g(oI(e,r-d,c)),m(!1)}),[e,r,d,c]);const b=C((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(h,d,r)),[h,d,r]);return[h,g,p,b,f,m]})(r.columns,r.totalsPosition,v.width,O,i.accessibleHeader),$=C((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:v,viewService:y,styleService:O,direction:E,downloadService:x})),[e,n,i,a,s,l,u,c.active,d,p,f,m,v,y,O,E,x]);return er.jsx(zI,{value:{headRowHeight:R,setHeadRowHeight:P,focusedCellCoord:A,setFocusedCellCoord:I,selectionState:M,selectionDispatch:k,hoverIndex:T,setHoverIndex:q,columnWidths:N,setColumnWidths:_,baseProps:$,tableData:r,setYScrollbarWidth:j,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:z,env:S,isAdjustingWidth:F,setIsAdjustingWidth:H},children:t})};function $I(e,t){const r=function(e){return _I.get(e)}(e),[n,o]=S(r),[,i]=D((e=>e+1),0),a=T(t),s=T(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=C((()=>t(l)),[l,t]);return E((()=>{a.current=t,s.current=u}),[l,u,t]),E((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function BI(e){const t=vC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),wu({...t,direction:e})}const VI={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},WI={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},UI=ic("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...VI},"&::-moz-range-track":{...VI},"&::-ms-track":{...VI},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...WI},"&::-moz-range-thumb":{...WI},"&::-ms-thumb":{...WI},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),GI=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=VC({translator:c.translator}),f=T({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,h=n&&!u,g=()=>h?f.current.columnWidth-m:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};$C((()=>{h&&v()}),[e]);const y=e=>{const t=Math.max(e,eE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:tE.Pixels,pixels:f.current.columnWidth};a(e)}else l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{AC(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=>{AC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===ZC.Left||e.key===ZC.Right){AC(e);const t=5,r=e.key===ZC.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===ZC.Space||e.key===ZC.Enter?(AC(e),s(e),l?.(!1),x()):e.key===ZC.Esc&&(AC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return er.jsx(UI,{style:b,hoverColor:o,isLastColumn:r,className:QC,"data-testid":QC,onMouseDown:e=>{AC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:tE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(AC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":eE.PixelsMin,"aria-valuemax":eE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},YI=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),KI=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},XI=ic(Kd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})((({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"}))),JI=ic(YI,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),ZI=ic(kf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),QI=ic(Ap)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),eM=ic(Nf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),tM=ic(Nf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),rM=ic("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),nM=ic("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),oM=ic(dd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),iM=ic(nf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),aM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),sM=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?sM(t):t:e.parentElement?.children?.[0]},lM=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?lM(t):t},uM=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===ZC.Down||t===ZC.Up){const r=e=>t===ZC.Down?sM(e):lM(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},cM=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(r)}}:{}})))})))));let dM={};const pM=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=w(!1),f=x.useRef(null),m=q((e=>{e.stopPropagation(),p(!1)}),[p]);return er.jsxs(er.Fragment,{children:[er.jsxs(tM,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),dM={}),a?.length&&(p(!0),dM[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:uM,children:[l?er.jsx(rM,{direction:u,isPagination:c}):null,er.jsxs(nM,{children:[er.jsx(iM,{direction:u,isPagination:c,children:er.jsx(o,{})}),er.jsx(oM,{variant:"body2",children:n})]}),a?.length?er.jsx(aM,{}):null]},t),a?.length?er.jsx(gM,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:m,menuGroups:cM(a,dM),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},fM=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&er.jsx(eM,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>er.jsx(pM,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),mM=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[fM({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?er.jsx(QI,{"data-testid":"group-divider",variant:"middle"}):void 0])),hM={appear:0,enter:0,exit:0},gM=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?er.jsx(ZI,{className:KC,open:t,anchorEl:e,onClose:r,transitionDuration:hM,MenuListProps:{id:XC},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:mM({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,bM=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>q((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]),vM=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),yM=(e,t)=>e.some((e=>t[e]>0)),xM={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},SM=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=w(null),[a,s]=w(xM);return $C((()=>{e||(s(xM),i(null))}),[e]),E((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=vM(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:yM(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:yM(["qSelected"],e),canSelectPossible:yM(["qOption"],e),canSelectAlternative:yM(["qAlternative"],e),canSelectExcluded:yM(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},wM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})}))),CM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})}))),EM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})}))),RM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})}))),PM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})}))),AM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})}))),IM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})}))),MM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})}))),DM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),kM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})}))),TM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),qM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),LM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),OM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})})));let NM=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const _M="/qListObjectDef",jM=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[NM.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:wM,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:RM,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:MM,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:PM,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[NM.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:DM,enabled:!0}]}]),!e.isLocked&&r[NM.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:OM,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(_M))},icon:kM,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(_M))},icon:LM,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(_M))},icon:TM,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(_M))},icon:qM,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(_M))},icon:CM,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:IM,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:AM,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[NM.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:EM,enabled:!0}]}]),f},zM=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:m="ltr",isPagination:h,isAccessibleHeader:g,iconSize:b=UC})=>{const v=T(null),y=VC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=SM({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=KI({model:f,headerData:n}),A=bM({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:m}),I=q((e=>{e.stopPropagation(),t(!1)}),[t]),M=q((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?er.jsxs(XI,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:YC,onClick:!1===g?M:void 0,ref:v,isAccessibleHeader:g,children:[s?er.jsx(JI,{height:b,className:GC,"data-testid":GC,isInteractionsActive:i.active??!1,children:er.jsx(YI,{})}):null,er.jsx(gM,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:jM({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:p}),direction:m,isPagination:h})]}):null},FM=e=>e.isDark?{background:e.color,borderColor:xC.DARK_MODE_BORDER,color:xC.DARK_MODE_TEXT,disabledColor:xC.DARK_MODE_DISABLED,iconColor:xC.DARK_MODE_TEXT}:{background:e.color,borderColor:xC.BORDER_MEDIUM,color:xC.TEXT,disabledColor:xC.DISABLED},HM=ic(Kd,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),$M=ic(gm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),BM=ic(ip,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),VM=ic(dd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),WM=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>FM(n.background)),[n]);if(!r.active)return null;const a=o?er.jsx(HM,{footerStyle:i,children:e}):null;return t?F.createPortal(e,t):a},UM=k({}),GM=()=>S(UM),YM=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=C((()=>FM(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=VC({translator:d}),x=C((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,s,l,u,c,y,p,f,m,h,b,g,v]);return er.jsx(UM.Provider,{value:x,children:e})};let KM=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),XM=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 JM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),ZM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),QM=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),eD={FirstPage:ZM,PreviousPage:JM,NextPage:aM,LastPage:QM,FirstPageRTL:QM,PreviousPageRTL:aM,NextPageRTL:JM,LastPageRTL:ZM},tD=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=GM(),u=r.concat("rtl"===n?"RTL":""),c=eD[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},rD=()=>{const{pageInfo:e,width:t,interactions:r}=GM(),n=0===e.page,{IconComponent:o,styledProps:i}=tD({type:KM.FirstPage,disabledCondition:n,pageNumber:0});return t<=XM.FirstPage?null:er.jsx(BM,{...i,disabled:!r.active,children:er.jsx(o,{height:UC})})},nD=(e,t,r=!1)=>{r&&e.key===ZC.Tab&&!e.shiftKey&&(AC(e),PC(e.target,t,!1))},oD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=GM(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=tD({type:KM.LastPage,disabledCondition:a,pageNumber:r-1}),u=t.enabled?e=>{nD(e,t,n)}:void 0;return o<=XM.LastPage?null:er.jsx(BM,{...l,onKeyDown:u,disabled:!i.active,children:er.jsx(s,{height:UC})})},iD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=GM(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=tD({type:KM.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>XM.FirstPage&&o>XM.LastPage)&&t.enabled?e=>{nD(e,t,n)}:void 0;return er.jsx(BM,{...l,onKeyDown:u,disabled:!i.active,children:er.jsx(s,{height:UC})})},aD=()=>{const{pageInfo:e,interactions:t}=GM(),r=0===e.page,{IconComponent:n,styledProps:o}=tD({type:KM.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return er.jsx(BM,{...o,disabled:!t.active,children:er.jsx(n,{height:UC})})},sD=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=GM(),{page:o,rowsPerPage:i}=r;if(t<=XM.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return er.jsx(VM,{variant:"caption",dir:"ltr",children:a})},lD=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=GM(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return er.jsxs(er.Fragment,{children:[er.jsxs(VM,{variant:"caption",id:p,children:[c,":"]}),er.jsx($M,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},uD=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o}=GM();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>XM.RowsPerPage&&r<=100)||void 0===e.rowsPerPageOptions)return null;const i=er.jsx(er.Fragment,{children:e.rowsPerPageOptions.map((e=>er.jsx("option",{value:e,children:e},e)))});return er.jsx(lD,{name:"RowsPerPage",value:e.rowsPerPage,options:i,handleChange:e=>{o?.(+e.target.value)}})},cD=1e3,dD="…",pD=({totalPages:e,page:t})=>{const r=Math.min(e,cD),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-cD):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return er.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(er.jsx("option",{value:dD,disabled:!0,children:dD},"startMoreOptions")),o<e-1&&a.push(er.jsx("option",{value:dD,disabled:!0,children:dD},"endMoreOptions")),er.jsx(er.Fragment,{children:a})},fD=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=GM(),{page:o}=e;if(t<=XM.SelectPage)return null;const i=er.jsx(pD,{totalPages:r,page:o});return er.jsx(lD,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var mD=O((e=>er.jsxs(YM,{...e,children:[er.jsx(uD,{}),er.jsx(fD,{}),er.jsx(sD,{}),er.jsx(rD,{}),er.jsx(aD,{}),er.jsx(iD,{}),er.jsx(oD,{})]})));const hD=e=>er.jsx(WM,{...e,children:er.jsx(mD,{...e})}),gD={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},bD=ic(Kd,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),vD=ic("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...gD,whiteSpace:"nowrap",display:r?"block":void 0}:{...gD,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}));function yD(e,t){const r=T(!1);E((()=>{r.current?e():r.current=!0}),t)}const xD=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),SD=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),wD=e=>e.atTop?2:1,CD=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],ED=e=>e?.setAttribute("tabIndex","0"),RD=e=>e?.setAttribute("tabIndex","-1"),PD=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(RD)},AD=e=>{e?.focus(),ED(e)},ID=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${QC}`);AD(t)}),0)},MD=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{PD(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case ZC.Down:u<s&&u++;break;case ZC.Up:u>a&&u--;break;case ZC.Right:if(i)break;[u,c]="rtl"===n?xD({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):SD({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case ZC.Left:if(i)break;[u,c]="rtl"===n?SD({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):xD({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case ZC.Home:(sI(e)||i)&&(u=a),i||(c=0);break;case ZC.End:(sI(e)||i)&&(u=s),i||(c=l);break;case ZC.PageDown:u=Math.min(s,u+10);break;case ZC.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=CD(t,a);return AD(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},DD=(e,t,r,n)=>{PD(t),r(e),n.enabled&&!n.active?n.focus?.():AD(CD(t,e))},kD=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${KC}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${PA.First}`),r=e.querySelector(`.${PA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},TD=()=>{const{downloadService:e}=$I(jI,(e=>e.baseProps));E((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},qD=(e,t,r)=>{const{rootElement:n,keyboard:o}=$I(jI,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=$I(jI,(e=>e.tableData)),u=$I(jI,(e=>e.focusedCellCoord)),c=$I(jI,(e=>e.setFocusedCellCoord)),d=$I(jI,(e=>e.baseProps.selectionsAPI?.isModal()));yD((()=>{const r=((e,t,r=!1)=>{const n=[wD(t),e[1]];return r?n:AA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(PD(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=CD(t,e);r.current?(AD(s),r.current=!1):ED(s),n&&(a({keys:[s?.textContent??""]}),aI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},LD=(e,t,r)=>{E((()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},OD=e=>{AC(e),sI(e)&&sE(e.currentTarget)},ND=e=>{dI(e.evt)&&(AC(e.evt),MD(e))},_D=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!dI(t))return;AC(t);const i=((e,t)=>[e.pageRowIdx+wD(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?wD(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=MD({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:EA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):aI(o,a,i)})({...e,nextCell:s})},jD=e=>{const{evt:t}=e;lI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{AC(e);const a=Math.ceil(t/r)-1;e.key===ZC.Right&&n<a?(o(),i(n+1)):e.key===ZC.Left&&n>0&&(o(),i(n-1))})(e):t.key===ZC.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(AC(e),t.blur?.(!0))})(e):uI(t.key)&&AC(t)},zD=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(CA.Disabled))return void AC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case ZC.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{AC(e),t.isSelectable&&r&&n({type:EA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case ZC.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{AC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case ZC.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(AC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case ZC.C:OD(t);break;case ZC.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(AC(e),PC(e.currentTarget,t,e.shiftKey))})(n);break;default:_D(n)}},FD=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,HD=(e,t,r)=>{E((()=>{const r=e.current;if(!r)return()=>{};const n=new ResizeObserver(t);return n.observe(r),()=>{n.disconnect()}}),[e,t,r])},$D=e=>{const[t,r]=w(0),[n,o]=w(0),i=$I(jI,(e=>e.isAdjustingWidth)),a=q((t=>{if(e.current&&!i){const e=t.at(0)?.borderBoxSize.at(0)?.inlineSize??0,n=t.at(0)?.borderBoxSize.at(0)?.blockSize??0,i=t.at(0)?.contentBoxSize.at(0)?.inlineSize??0,a=n-(t.at(0)?.contentBoxSize.at(0)?.blockSize??0);o(e-i),r(a)}}),[e,i]);return HD(e,a),{xScrollbarWidth:t,yScrollbarWidth:n}},BD=ic("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),VD=ic(jm,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),WD=ic(wm,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),UD=()=>er.jsxs(er.Fragment,{children:[er.jsx(BD,{className:PA.First,"data-testid":PA.First,"aria-live":"polite","aria-atomic":"true"}),er.jsx(BD,{className:PA.Second,"data-testid":PA.Second,"aria-live":"polite","aria-atomic":"true"})]}),GD=e=>{const t=T(new Map),r=T(null);E((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=q(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=q((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return C((()=>({addTask:n,removeTask:o})),[n,o])},YD=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),KD=()=>GD(YD),XD=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{E((()=>{const i=()=>{t({type:EA.Reset})},a=()=>{t({type:EA.Clear})},s=()=>{o.current?.contains(document.activeElement)?r():n.enabled&&n.blur?.(!0),i()};return e?.on("deactivated",i),e?.on("canceled",i),e?.on("confirmed",s),e?.on("cleared",a),()=>{e?.removeListener("deactivated",i),e?.removeListener("canceled",i),e?.removeListener("confirmed",s),e?.removeListener("cleared",a)}}),[e,n,t,r,o])},JD=e=>{e.stopPropagation()},ZD=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:JD,color:xC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),QD=({href:e,text:t,interactions:r,color:n})=>er.jsx(Gp,{...ZD({href:e,text:t,interactions:r,color:n}),children:t}),ek=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),tk=window.cancelIdleCallback??(e=>{clearTimeout(e)}),rk="qDimensionInfo/0",nk="qMeasureInfo/0",ok="x",ik="y",ak=e=>({key:"bars",type:"box",data:{extract:{field:rk,props:{start:0,end:{field:nk}}}},settings:{major:{scale:ok},minor:{scale:ik},box:{maxWidthPx:8,fill:{fn:e}}}}),sk=e=>({key:"p",type:"point",data:{extract:{field:rk,props:{y:{field:nk}}}},settings:{x:{scale:ok},y:{scale:ik},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),lk=({qNum:e})=>void 0===e?0:Math.sign(e),uk=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=EC(e,t?.negative,r),a=EC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:rk,props:{start:0,end:{field:nk,value:lk}}}},settings:{major:{scale:ok},minor:{scale:ik},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},ck=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=EC(e,t?.main,o),l=EC(e,t?.max,s),u=EC(e,t?.min,s),c=EC(e,t?.first,s),d=EC(e,t?.last,s);return e=>{const t=ik in e.datum?ik:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[ak(a)];case"dots":return[sk(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:rk,props:{v:{field:nk}}}},settings:{coordinates:{major:{scale:ok},minor:{scale:ik,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(EC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,sk(a)]:[t]}case"posNeg":return[uk(e,n)];default:return[]}},dk=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"}),pk=(e,t,r,n)=>({y:{data:{field:nk},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:rk}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),fk=B();fk.use($),fk.renderer.prio(["canvas"]);const mk={resolve:()=>{},promise:{}},hk=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=T(e.isDownloadedAsPDForImage?At():mk);return{addChartPromiseToQueue:q((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:q((()=>{if(null===t.current||null!==e.current)return;u();r.current=ek((()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return fk.chart({element:e,data:{type:"q",key:"qHyperCube",data:dk(s)},settings:{scales:pk(a,l,u,i),components:ck(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:q((()=>{null!==r.current&&tk(r.current),r.current=null,l()}),[r,l])}},gk=e=>{const t=T(null),r=T(!1);return q((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(tk(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=ek((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},bk=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=T(null),l=T(null),u=T(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=hk({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=q((e=>{e.isIntersecting?n():r()}),[n,r]);E((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}}),[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{E((()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=gk(t);E((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},vk=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=bk({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return er.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},yk="cell-text",xk=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=$I(jI,(e=>e.baseProps));return o?er.jsx(vD,{"data-testid":yk,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):er.jsx(vD,{"data-testid":yk,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},Sk=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},wk=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},Ck=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=$I(jI,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=er.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:wk(s),objectPosition:Sk(l),overflow:"hidden"}});return n?er.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?BA(o,e):void 0},children:c}):c},Ek=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),Rk=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),Pk=L(((e,t)=>er.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[er.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),er.jsx("use",{fillRule:"evenodd"})]}))),Ak=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})}))),Ik=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})}))),Mk=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})}))),Dk=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M2 7h12v2H2z"})}))),kk=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})}))),Tk=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),qk=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})}))),Lk=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})}))),Ok=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),Nk=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})}))),_k=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})}))),jk=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})}))),zk=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})}))),Fk={m:Ok,"ï":qk,R:zk,S:Nk,T:_k,U:jk,P:Tk,Q:Mk,"è":L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})}))),"¢":Ak,"©":Pk,"23F4":Ik,2013:Lk,"&":kk,add:Ek,"minus-2":Dk,dot:Rk},Hk=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&Fk[t];return o&&er.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:er.jsx(o,{style:{height:e}})})},$k=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=$I(jI,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=OA(e,t,i,o),d=(e=>parseInt(e||jA,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:m}=c||{};return l?er.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===m&&Hk({size:d,iconKey:f,color:p}),er.jsx(xk,{isNumeric:!0,children:a}),"right"===m&&Hk({size:d,iconKey:f,color:p})]}):Hk({size:d,iconKey:f,color:p})},Bk=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,Vk=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const{interactions:l,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=$I(jI,(e=>e.baseProps)),m=$I(jI,(e=>e.selectionState.api?.isActive()));let h=t.representation.text;if(t.representation.type!==qE.Link||m||(h=er.jsx(QD,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===qE.Image)return er.jsx(Ck,{representation:t.representation,textStyle:r,maxImageHeight:Bk(u,o),wrapInContainer:!n});const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==qE.Indicator||Number.isNaN(g)?t.representation.type===qE.MiniChart&&t.representation.miniChart&&!t.isNull?er.jsx(vk,{height:Bk(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):er.jsx(xk,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:h}):er.jsx($k,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},Wk=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:EA.SelectMultiEnd})};r({type:EA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:EA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:EA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),Uk=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=$I(jI,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=$I(jI,(e=>e.baseProps)),u=$I(jI,(e=>e.setFocusedCellCoord)),c=$I(jI,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{zD({evt:s,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:l})},f=e=>{((e,t)=>{e.key===ZC.Shift&&t({type:EA.SelectMultiEnd})})(e,c)},m=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;DD([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:m};const{handleMouseDown:h,handleMouseOver:g,handleMouseUp:b}=Wk(m,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:h,onMouseUp:b,onMouseOver:g}},Gk=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=CA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?CA.Disabled:n.has(e.qElemNumber)?CA.Selected:CA.Possible),i},Yk=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},Kk=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},Xk=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return Kk(t,e,n?"even":"odd")}return e},Jk=(e,t)=>{const{styleService:r}=$I(jI,(e=>e.baseProps)),n=$I(jI,(t=>Gk(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=Xk(o,r,e),o=Yk(o,r,e);const i=RI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===CA.Selected?{...e,...r}:t===CA.Disabled?{...e,background:`${NA}, ${e.background}`}:e}(C((()=>e.isNull?o:RI(o,e.qAttrExps,t.qAttrExprInfoIDs)),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},Zk=ic(Mm,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),Qk=ic(Xm,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),eT=ic(Lm,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...HA,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),tT=ic(Lm,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...HA,...e,fontWeight:zA,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",zIndex:t?1:void 0}))),rT=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=$I(jI,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=Uk(e,t),{cellStyle:f,representationStyle:m,cellSelectionState:h}=Jk(e,r);return er.jsx(eT,{cellStyle:f,scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${JC}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:er.jsx(Vk,{cell:e,style:m,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:GA(s,e.align)})})},nT=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),oT=()=>{const{columns:e,totalsPosition:t,rows:r}=$I(jI,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:s,direction:l}=$I(jI,(e=>e.baseProps)),u=$I(jI,(e=>e.headRowHeight)),c=$I(jI,(e=>e.setFocusedCellCoord)),d=!!o?.isModal(),p=!!s.active;return er.jsx(Xm,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return er.jsx(tT,{totalsStyle:{...a.totalRow,...nT(a,t,!1)},headRowHeight:u,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${JC}`,tabIndex:-1,title:s.passive?e.totalInfo:void 0,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case ZC.C:OD(r);break;case ZC.Space:r.preventDefault();break;default:ND(e)}else AC(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:l})},onMouseDown:()=>{DD(f,n,c,i)},children:er.jsx(xk,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var iT=O(oT);const aT=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=$I(jI,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=$I(jI,(e=>e.baseProps)),c=$I(jI,(e=>e.selectionDispatch)),d=!!SI(l)?.content?.hoverEffect;XD({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=q((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return GD(t)})(t),f=KD();return er.jsxs(Zk,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?er.jsx(iT,{}):void 0,n.map(((e,t)=>er.jsx(Qk,{hoverColors:u.grid.hoverColors,hover:d,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:u.contentMinRowHeight,children:o.map(((t,n)=>{const{id:o}=t,i=e[n];return er.jsx(rT,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?er.jsx(iT,{}):void 0]})};var sT=O(aT);const lT=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,uT=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})}))),cT=ic(Lm,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...HA,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),dT=ic("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:jA,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),pT=parseInt(jA,10)/2,fT=ic("div")({position:"absolute",bottom:-pT,left:`calc(50% - ${pT}px)`}),mT=({column:e,isInteractionEnabled:t,open:r,setOpen:n,isPagination:o,forwardRef:i})=>{const{translator:a,changeSortOrder:s,interactions:l,embed:u,app:c,styleService:d,layout:p,direction:f}=$I(jI,(e=>e.baseProps)),m=$I(jI,(t=>t.columnWidths[e.pageColIdx])),h=$I(jI,(e=>e.baseProps.model)),g=T(null),b=T(null),v=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=_C({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:zA});let o=!1,i=!1,a=!1;const s=t.isLocked,l=t.isActivelySorted,u=r-25,c=s?20:0,d=l?20:0;let p=n(t.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({styleService:d,column:e,columnWidth:m}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?er.jsx(wM,{height:jA,"data-testid":"head-cell-sort-ascending-icon"}):er.jsx(RM,{height:jA,"data-testid":"head-cell-sort-descending-icon"}),a=r?er.jsx(dT,{align:t,dir:o,children:i}):void 0,s=n?er.jsx(eI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:er.jsx(uT,{height:jA,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(e,v,f);return er.jsxs(QA,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:UA(e,o,f),children:[S,er.jsxs(ZA,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:f,isPagination:o,children:[y,er.jsx(xk,{forwardRef:i,isPagination:o,isHeadCell:!0,children:e.label}),x]}),t?er.jsxs(er.Fragment,{children:[er.jsx(zM,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:a,anchorRef:g,menuAvailabilityFlags:{[NM.Sorting]:!0,[NM.Searching]:!0,[NM.Selections]:!0,[NM.AdjusterHeaderSize]:!0},open:r,setOpen:n,interactions:l,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:u,listboxRef:b},selectionRelatedArgs:{app:c,qStateName:p.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:ID},shouldShowMenuIcon:v.shouldShowMenuIcon,model:h,direction:f,isPagination:o,isAccessibleHeader:!0}),er.jsx(JA,{ref:b,direction:f,isPagination:o}),er.jsx(JA,{ref:g,direction:f})]}):null]})},hT=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=$I(jI,(e=>e.baseProps)),c=$I(jI,(e=>e.columnWidths)),d=$I(jI,(e=>e.setColumnWidths));if(!s.active)return null;return er.jsx(GI,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{RD(e);const t=e.closest(".sn-table-cell");AD(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},gT=L(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})}))),bT=(e,t)=>e.isCyclic&&t,vT=({column:e})=>{const{direction:t,model:r,styleService:n}=$I(jI,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=KI({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return er.jsxs(er.Fragment,{children:[er.jsx(rI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,onClick:e=>{e.stopPropagation(),a(!0)},children:er.jsx(gT,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),er.jsx(gM,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:PM,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},yT=e=>e.isLocked,xT=({column:e})=>{const t=$I(jI,(e=>e.baseProps.app)),r=$I(jI,(e=>e.baseProps.layout.qStateName)),n=$I(jI,(e=>e.baseProps.styleService));return er.jsx(rI,{hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=vM(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:er.jsx(uT,{height:16,"data-testid":"head-cell-lock-icon"})})},ST=({column:e,open:t,setOpen:r,isPagination:n})=>{const{translator:o,interactions:i,app:a,layout:s,direction:l,changeSortOrder:u,embed:c,styleService:d}=$I(jI,(e=>e.baseProps)),p=$I(jI,(e=>e.baseProps.model)),f=x.useRef(null),m=x.useRef(null);return er.jsxs(rI,{hoverBackground:d.headerMenuHoverBackground,activeBackground:d.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[er.jsx(zM,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:o,anchorRef:f,menuAvailabilityFlags:{[NM.Sorting]:!0,[NM.Searching]:!0,[NM.Selections]:!0,[NM.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:i,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),u(e,r))},searchRelatedArgs:{embed:c,listboxRef:m},selectionRelatedArgs:{app:a,qStateName:s.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:ID},shouldShowMenuIcon:!0,model:p,direction:l,isPagination:n,isAccessibleHeader:!1,iconSize:16}),er.jsx(JA,{ref:m,direction:l,isPagination:n}),er.jsx(JA,{ref:f,direction:l})]})},wT=ic(Kd)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),CT=({children:e})=>{const t=x.useRef(null),[r,n]=w((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=C((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=q((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach((e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)})),n((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[o]);return HD(t,i),er.jsx(wT,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})};CT.Item=({children:e})=>e;const ET=(e,t)=>!e.isLocked&&e.isDim&&t,RT=({column:e,open:t,setOpen:r})=>{const{embed:n,app:o,direction:i,layout:a,styleService:s}=$I(jI,(e=>e.baseProps)),l=x.useRef(null),u=q((()=>{r(!1)}),[r]),c=bM({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:l},selectionRelatedArgs:{qStateName:a.qStateName},direction:i,onPopoverClose:u});return er.jsx(rI,{hoverBackground:s.headerMenuHoverBackground,activeBackground:s.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:er.jsx(DM,{ref:l,height:16,"data-testid":"head-cell-search-icon"})})},PT=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?er.jsx(zk,{height:jA,"data-testid":"head-cell-sort-ascending-icon"}):er.jsx(Nk,{height:jA,"data-testid":"head-cell-sort-descending-icon"});return r?er.jsx(fT,{children:n}):void 0},AT=0,IT=1,MT=2,DT=3,kT=({column:e,open:t,setOpen:r,isPagination:n,forwardRef:o})=>{const{styleService:i}=$I(jI,(e=>e.baseProps)),a=(()=>{const e=$I(jI,(e=>e.baseProps.interactions.active)),t=$I(jI,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:s}=_C(i.header),[l,u]=x.useState(!1);return er.jsxs(CT,{children:[er.jsx(CT.Item,{prio:MT,minWidth:XA,children:yT(e)?er.jsx(xT,{column:e}):null},"Lock"),er.jsx(CT.Item,{prio:IT,minWidth:XA,children:bT(e,a)?er.jsx(vT,{column:e}):null},"Cyclic"),er.jsx(CT.Item,{ignore:!0,children:er.jsx(PT,{column:e})},"Sort"),er.jsx(CT.Item,{minWidth:s(e.label)+8,children:er.jsx(tI,{justifyContent:e.headTextAlign,children:er.jsx(xk,{forwardRef:o,isPagination:n,isHeadCell:!0,children:e.label})})},"Text"),er.jsx(CT.Item,{prio:AT,minWidth:XA,children:l||ET(e,a)?er.jsx(RT,{open:l,setOpen:u,column:e}):null},"Search"),er.jsx(CT.Item,{prio:DT,minWidth:XA,children:a?er.jsx(ST,{column:e,open:t,setOpen:r,isPagination:n}):null},"Menu")]})},TT=()=>{const{flags:e}=$I(jI,(e=>e.env)),t=$I(jI,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},qT=e=>e.target?.getAttribute("class")?.includes(QC),LT=({isInteractionEnabled:e,column:t})=>{const[r,n]=w(!1),{changeSortOrder:o}=$I(jI,(e=>e.baseProps)),i=$I(jI,(e=>e.isAdjustingWidth)),a=$I(jI,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||qT(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!qT(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}},OT=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=$I(jI,(e=>e.baseProps)),{columns:l,totalsPosition:u}=$I(jI,(e=>e.tableData)),c=$I(jI,(e=>e.columnWidths[t])),d=$I(jI,(e=>e.baseProps.selectionsAPI?.isModal())),p=$I(jI,(e=>e.setFocusedCellCoord)),f=$I(jI,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),m=!!n.active&&!d,{open:h,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=LT({isInteractionEnabled:m,column:e}),x=TT(),S=x?mT:kT,w=e.isActivelySorted?RA[e.sortDirection]:void 0,C=h?XC:void 0,E=h?"true":void 0,R=t===r-1,P=[0,e.pageColIdx],A={width:c-(R?8:9),zIndex:l.length-t},I=f&&0===t&&!i.enabled&&m?0:-1;return er.jsxs(cT,{headerStyle:{...a.header,...nT(a,u,!0)},background:x&&h?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:A,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${JC}`,tabIndex:I,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case ZC.C:OD(r);break;case ZC.Enter:case ZC.Space:n?.(r);break;default:ND(e)}else AC(r)})({evt:e,rootElement:o,cellCoord:P,setFocusedCellCoord:p,isInteractionEnabled:m,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&DD(r,t,n,o)})({evt:e,rootElement:o,cellCoord:P,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:m})},onClick:x?b:y,"aria-sort":w,"aria-controls":C,"aria-expanded":E,"aria-haspopup":"true",children:[er.jsx(S,{column:e,isInteractionEnabled:m,open:h,setOpen:g,isPagination:!0}),er.jsx(hT,{column:e,isLastColumn:R,setIsAdjustingWidth:v})]},e.id)},NT=()=>{const{columns:e}=$I(jI,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=$I(jI,(e=>e.baseProps)),o=$I(jI,(e=>e.setHeadRowHeight)),i=$I(jI,(e=>e.columnWidths)),a=T(null),s=lT(r,n);return E((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),er.jsx(Vm,{style:{visibility:s?"collapse":void 0},children:er.jsx(Xm,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>er.jsx(OT,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var _T=O(NT);const jT=e=>{const{pageInfo:t,setPageInfo:r,footerContainer:n,announce:o}=e,{page:i,rowsPerPage:a}=t,{totalColumnCount:s,totalRowCount:l,totalPages:u,paginationNeeded:c,rows:d,columns:p}=$I(jI,(e=>e.tableData)),{rootElement:f,keyboard:m,translator:h,theme:g,interactions:b,styleService:v,viewService:y,layout:x,rect:S,direction:w}=$I(jI,(e=>e.baseProps)),C=$I(jI,(e=>e.setYScrollbarWidth)),R=$I(jI,(e=>e.showRightBorder)),P=$I(jI,(e=>e.selectionDispatch)),A=$I(jI,(e=>e.baseProps.selectionsAPI?.isModal())),I=T(!1),M=T(null),D=T(null),{yScrollbarWidth:k}=$D(M),L=`${h.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${h.get("SNTable.Accessibility.NavigationInstructions")}`,O=OP(x,y),N=O?y.scrollLeft??0:0,_=O?y.rowPartialHeight??0:0,j=q((()=>{I.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),z=q((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),F=q((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return LD(M,w,y),((e,t)=>{const{keyboard:r}=$I(jI,(e=>e.baseProps));E((()=>{const n=e.current;if(!n)return;const o=e=>{kD(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(D,I),(()=>{const{rootElement:e,keyboard:t}=$I(jI,(e=>e.baseProps)),r=$I(jI,(e=>e.focusedCellCoord));$C((()=>{const n=CD(e,r);t.active?AD(n):(n?.blur(),PD(e))}),[t.active,e])})(),qD(I,o,i),E((()=>{const e=M.current;e&&(e.scrollLeft=N,e.scrollTop=_)}),[t,l,N,_]),yD((()=>{C(k)}),[k]),yD((()=>{P({type:EA.UpdatePageRows,payload:{pageRows:d}})}),[d]),TD(),er.jsxs(bD,{ref:D,background:g.background,dir:w,onKeyDown:e=>{jD({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:z,updateShouldRefocus:j,keyboard:m,isSelectionMode:A})},"data-testid":"sn-table",children:[er.jsx(UD,{}),er.jsx(VD,{ref:M,className:"sn-table-container",fullHeight:!!n||!b.active||!c,interactions:b,tabIndex:-1,role:"application","data-testid":"table-container",children:er.jsxs(WD,{stickyHeader:!0,"aria-label":L,borderRight:R?`1px solid ${v.grid.border}`:void 0,children:[er.jsx(_T,{}),er.jsx(sT,{...e,updateShouldRefocus:j,tableWrapperRef:D})]})}),er.jsx(hD,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:g,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:m,translator:h,interactions:b,rect:S,layout:x,handleChangePage:z,handleChangeRowsPerPage:F,isSelectionMode:A,direction:w})]})};var zT=O(jT);function FT(){return FT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},FT.apply(null,arguments)}function HT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $T(e,t){return $T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$T(e,t)}function BT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$T(e,t)}var VT=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function WT(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||VT(n)&&VT(o)))return!1;var n,o;return!0}function UT(e,t){var r;void 0===t&&(t=WT);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function GT(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var YT="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function KT(e){cancelAnimationFrame(e.id)}function XT(e,t){var r=YT();var n={id:requestAnimationFrame((function o(){YT()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var JT=-1;function ZT(e){if(void 0===e&&(e=!1),-1===JT||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),JT=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return JT}var QT=null;function eq(e){if(void 0===e&&(e=!1),null===QT||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?QT="positive-descending":(t.scrollLeft=1,QT=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),QT}return QT}var tq=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function rq(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,HT(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:HT(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=UT((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=UT((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&s,h&&l,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=UT((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(eq()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&KT(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=XT(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}BT(t,e),t.getDerivedStateFromProps=function(e,t){return nq(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=ZT();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(eq()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&KT(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?tq:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],C=S[1],E=this._getVerticalRangeToRender(),P=E[0],A=E[1],I=[];if(n>0&&g)for(var M=P;M<=A;M++)for(var D=w;D<=C;D++)I.push(R(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,D)}));var k=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:FT({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:I,ref:l,style:{height:k,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var nq=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},oq=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},iq=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},aq=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},sq=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?lq(e,t,r,i,0,n):uq(e,t,r,Math.max(0,i),n)},lq=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=aq(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},uq=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&aq(e,t,n,r).offset<o;)n+=a,a*=2;return lq(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},cq=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=aq(e,t,r,i),u="column"===e?iq(t,i):oq(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},dq=rq({getColumnOffset:function(e,t,r){return aq("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return sq("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=aq("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=aq("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:oq,getEstimatedTotalWidth:iq,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return cq("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return cq("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return aq("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return sq("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=aq("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=aq("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),pq=function(e,t){return e};function fq(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,HT(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:HT(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=UT((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=UT((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=UT((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(eq()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&KT(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=XT(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}BT(t,e),t.getDerivedStateFromProps=function(e,t){return mq(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?ZT():0:l.scrollHeight>l.clientHeight?ZT():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(eq()){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&&KT(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?pq:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],E=w[1],P=[];if(u>0)for(var A=C;A<=E;A++)P.push(R(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:FT({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(s||l||"div",{children:P,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var mq=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},hq=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},gq=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=hq(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},bq=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&hq(e,r,t).offset<n;)r+=i,i*=2;return gq(e,t,Math.min(r,o-1),Math.floor(r/2),n)},vq=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},yq=fq({getItemOffset:function(e,t,r){return hq(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:vq,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=hq(e,t,o),p=vq(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?gq(e,t,o,0,r):bq(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=hq(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=hq(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function xq(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var Sq=["style"],wq=["style"];function Cq(e,t){var r=e.style,n=GT(e,Sq),o=t.style,i=GT(t,wq);return!xq(r,o)&&!xq(n,i)}const Eq=({style:e})=>er.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var Rq=x.memo(Eq,Cq);const Pq=()=>{},Aq=e=>{e.preventDefault()};const Iq=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=$I(jI,(e=>e.hoverIndex===t)),d=$I(jI,(e=>e.setHoverIndex)),{interactions:p,styleService:f,direction:m}=$I(jI,(e=>e.baseProps)),h=$I(jI,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=$I(jI,(e=>e.baseProps)),r=$I(jI,(e=>e.selectionDispatch)),n="object"==typeof e,o=$I(jI,(t=>n?Gk(e,t.selectionState):CA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=Wk(Aq,e,r,Pq);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=T(null),i=r&&!r.isNumeric,a=q((r=>{const o=FD(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return HD(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values;if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=Xk(o,i,e);a=Yk(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?RI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===CA.Selected?{...s,...i.selectedColors}:n===CA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${NA}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,f),o={rowindex:t,columnindex:e};return er.jsx("div",{className:`sn-table-cell ${x} ${JC}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:YA(m,g.isLastColumn,h),borderLeftWidth:KA(m,g.isLastColumn,h),justifyContent:VA(g,m),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:p.passive?g.representation.text:void 0,...o,children:er.jsx(Vk,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})}return er.jsx(Rq,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var Mq=O(Iq,Cq);const Dq=e=>{const t=T(e);return t.current=e,t},kq=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,Tq=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},qq=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},Lq=(e,t,r,n,o,i,a,s)=>{e.forEach((e=>{e.qMatrix.forEach(((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:m,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=PP(m,e,a),C=!m&&e.qIsNull,E=C?qR(w):TR(e);f[r]={id:MR(),...e,align:qP(E,g,u),rowIdx:d,colIdx:o,isSelectable:m&&!h,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&RP(e,m),representation:EP({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[qE.Image]:!0,[qE.Indicator]:!0,[qE.MiniChart]:!0}})},l(f[r],d,r)})),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},Oq=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=$I(jI,(e=>e.env)),{direction:p}=$I(jI,(e=>e.baseProps)),f=T([]),m=q(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return Lq(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[h,g]=w((()=>m(n??[])));$C((()=>{g(m(n??[]))}),[n,p]);const b=((e,t)=>{const r=T(new Set),n=T(new Set),o=T(new Set),i=Dq(e),a=Dq(t),s=C((()=>({enqueue:e=>{const t=kq(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(kq(e))})),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>m(e,t)))})),v=q(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(qq(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=q(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(Tq(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return E((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,u,r]),{rowsInPage:h,loadRows:y,loadColumns:v}},Nq=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},_q=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,jq=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=$I(jI,(e=>e.baseProps.styleService)),i=$I(jI,(e=>e.columnWidths)),{estimateLineCount:a}=_C(o.dimension.values),s=qI(o.dimension.values.fontSize),l=e||t||1===r;return q(((e,t,o)=>{if(l||e.representation.type===qE.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)}),[l,i,a,r,s,n])},zq=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>C((()=>{const{estimatedRowHeight:a,totalRowHeight:s}=e?{totalRowHeight:n*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(r),totalRowHeight:t}})(r.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(n*t,s)}),[e,t,n,r,o,i]),Fq=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=$I(jI,(e=>e.baseProps)),[a,s]=w({rowHeights:new Map,cellHeightsInGrid:new Map}),l=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/l))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:l,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{const{layout:n}=$I(jI,(e=>e.baseProps)),o=$I(jI,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;$C((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),$C((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:n,setState:s,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>q(((o,i,a)=>{_((()=>{e((e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!_q(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,Nq(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>q(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:jq({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:q((e=>c?m:a.rowHeights.get(e)??u),[c,u,a.rowHeights,m]),totalRowHeight:zq({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:r}),lineClamp:f}},Hq=(e,t)=>{j((()=>()=>{t(0)}),[e,t]);const r=q((e=>{const r=FD(e);void 0!==r&&t(r)}),[t]);HD(e,r)};let $q=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const Bq=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>q((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=$q.None,i=$q.None;return o=n>t?$q.Down:n<t?$q.Up:$q.None,i=r>e?$q.Right:r<e?$q.Left:$q.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,s,u);if(i.current.overscanColumnStartIndex=s,i.current.overscanColumnStopIndex=l,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=s,v=u+o.page*o.rowsPerPage,y=l-s+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===$q.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===$q.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===$q.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===$q.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),Vq={enabled:!1},Wq=()=>{},Uq={current:null};const Gq=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=C((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},Yq=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},Kq={overflow:"hidden",willChange:"auto"};var Xq=O(L(((e,t)=>{const{rect:r,columns:n,pageInfo:o,headerAndTotalsHeight:i,setInnerBodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=$I(jI,(e=>e.baseProps)),f=$I(jI,(e=>e.columnWidths)),m=$I(jI,(e=>e.initialDataPages)),h=T(null),g=T(null),b=T({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=T(0),y=!!SI(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=Gq(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:R,setEstimatedCellHeight:P,getRowHeight:A,lineClamp:I,totalRowHeight:M}=Fq({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:h,pageInfo:o}),{rowsInPage:D,loadRows:k,loadColumns:q}=Oq({layout:s,model:l,theme:u,initialDataPages:m,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:P}),L=Bq({layout:s,loadRows:k,loadColumns:q,rowCount:x,pageInfo:o,gridState:b,viewService:c}),O=KD(),N=C((()=>({rowsInPage:D,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:R,resizeObserverTaskScheduler:O})),[D,n,y,I,R,O]),_=((e,t,r)=>Math.min(e.height-t,r))(r,i,M);return j((()=>{1===v.current&&h.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=$I(jI,(e=>e.baseProps)),r=$I(jI,(e=>e.selectionDispatch));E((()=>{r({type:EA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),XD({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:Wq,keyboard:Vq,tableWrapperRef:Uq})}(D),z(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??_)-_,n=Math.round(r*e);v.current=e,1===v.current?(h.current?.scrollToItem({rowIndex:x-1,align:"start"}),h.current?.scrollTo({scrollLeft:t})):h.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[g,_,x]),Hq(g,a),er.jsx(dq,{"data-key":"body",ref:h,innerRef:g,style:Kq,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:_,rowCount:x,rowHeight:A,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:N,onItemsRendered:L,itemKey:Yq,className:"sn-table-body",direction:p,children:Mq})})));const Jq=({width:e,height:t,children:r})=>er.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),Zq=(e,t)=>{const r=T(null),n=$I(jI,(e=>e.columnWidths));j((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=q((r=>{const n=FD(r);n&&t(n+9,e)}),[e,t]);return HD(r,o),r},Qq=ic("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}}))),eL=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=$I(jI,(e=>e.baseProps)),u=$I(jI,(e=>e.baseProps.selectionsAPI?.isModal())),c=$I(jI,(e=>e.showRightBorder)),d=$I(jI,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=LT({isInteractionEnabled:p,column:f}),y=TT(),x=Zq(e,i),S=n.length-1===e,w=y?mT:kT;return er.jsxs(Qq,{className:`sn-table-cell ${JC}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...nT(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:YA(l,S,c),borderLeftWidth:KA(l,S,c),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:f.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===f.headTextAlign?"row-reverse":"row",userSelect:"none"},interactions:a,hoverBackground:s.headerMenuHoverBackground,background:y&&m?s.headerMenuActiveBackground:s.header.background,children:[er.jsx(w,{forwardRef:x,column:f,isInteractionEnabled:p,open:m,setOpen:h}),er.jsx(hT,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},tL=e=>{const[t,r]=w(new Map);$C((()=>{r(new Map)}),[e.length]);const n=q(((e,t)=>{r((r=>_q(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>Nq(t)),[t]),setMeasuredCellHeight:n}},rL=(e,t)=>{z(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},nL=(e,t,r,n,o)=>{$C((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},oL={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},iL=L(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=x.useRef(null),l=T(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=$I(jI,(e=>e.baseProps)),m=$I(jI,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:g}=tL(n),b=lT(f,u);return rL(t,s),nL(s,u,o,m,c),Hq(l,a),er.jsx(yq,{ref:s,outerRef:l,layout:"horizontal",style:{...oL,...b?{display:"none"}:void 0},itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>m[e],height:Math.max(h+8,d.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,setMeasuredCellHeight:g},direction:p,children:eL})}));var aL=O(iL);const sL=L(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=$I(jI,(e=>e.baseProps));return er.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,children:r})})),lL=({children:e,rect:t})=>{const{direction:r}=$I(jI,(e=>e.baseProps));return er.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},uL=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=$I(jI,(e=>e.baseProps)),c=$I(jI,(e=>e.showRightBorder)),d=Zq(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:m}=n[e],h=a.qHyperCube.qSize.qcx-1===e;return er.jsx("div",{className:`sn-table-cell ${JC}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...nT(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:YA(u,h,c),borderLeftWidth:KA(u,h,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default"},children:er.jsx(xk,{forwardRef:m?void 0:d,isNumeric:m,children:p})})},cL=L(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=T(null),l=T(null),{layout:u,theme:c,styleService:d,direction:p}=$I(jI,(e=>e.baseProps)),f=$I(jI,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:h}=tL(i);return rL(t,s),nL(s,u,n,f,c),Hq(l,a),er.jsx(yq,{ref:s,outerRef:l,layout:"horizontal",style:oL,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(m,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:h},direction:p,children:uL})}));var dL=O(cL);const pL=(e,t,r,n,o)=>q((i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),c=Math.max(0,Math.min(1,l/(a-s)));n.scrollTopRatio=c,n.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[n,r,e,t,o]),fL=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=$I(jI,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=$I(jI,(e=>e.baseProps)),c=$I(jI,(e=>e.columnWidths)),d=$I(jI,(e=>e.setYScrollbarWidth)),p=T(null),f=T(null),m=T(null),h=T(null),{xScrollbarWidth:g,yScrollbarWidth:b}=$D(p),v=C((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),y=C((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(v,g,b)),[v,g,b]),{rowCount:x}=Gq(i,t,y,c,0),{headerAndTotalsHeight:S,innerBodyHeight:E,setHeaderRowHeight:R,setTotalsRowHeight:P,setInnerBodyHeight:A}=(()=>{const[e,t]=w(0),[r,n]=w(0),[o,i]=w(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:I,height:M}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=$I(jI,(e=>e.baseProps)),a=e+t,s=r*i.contentMinRowHeight+t;let l=s;return s<n.height&&a>n.height&&(l=a),{width:o.reduce(((e,t)=>e+t),0),height:l}})({innerBodyHeight:E,headerAndTotalsHeight:S,rowCount:x,stickyContainerRect:y,columnWidths:c}),D=pL(f,m,h,l,u),k=q((()=>{p.current&&(p.current.scrollTop=0)}),[p]);TD(),j((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),j((()=>{p.current&&(p.current.scrollTop=0)}),[t,x,a]),yD((()=>{d(b)}),[b]);const L=er.jsx(dL,{rect:y,pageInfo:t,columns:n,ref:m,totals:r,setTotalsRowHeight:P},"totals");return er.jsx(sL,{ref:p,width:v.width,height:v.height,onScroll:D,children:er.jsx(Jq,{width:I,height:M,children:er.jsxs(lL,{rect:y,children:[er.jsx(aL,{rect:y,pageInfo:t,columns:n,ref:f,columResizeHandler:k,setHeaderRowHeight:R}),r.atTop?L:null,er.jsx(Xq,{ref:h,rect:y,pageInfo:t,columns:n,headerAndTotalsHeight:S,setInnerBodyHeight:A}),r.atBottom?L:null]})})})};var mL=O(fL);const hL=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=$I(jI,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=$I(jI,(e=>e.tableData)),c=$I(jI,(e=>e.pageInfo)),d=$I(jI,(e=>e.setPage));return er.jsxs(bD,{"data-testid":"sn-table",background:e.background,children:[er.jsx(mL,{pageInfo:c}),er.jsx(hD,{paginationNeeded:a,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var gL=O(hL);var bL={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 vL=(e,r)=>t((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(bL).forEach((t=>{e.add(bL[t])}))}(r),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${PA.First}`),s=e.querySelector(`.${PA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===PA.First?(l=s,r=PA.Second):(l=a,r=PA.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}})(e,r))),[e,r.language()]),yL={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},xL=e=>{const{app:t,model:n,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:m}=r(),h=NP(s,d),g=vL(a,l),[b,v]=o(((e,t)=>OP(e,t)?{page:t.page||yL.page,rowsPerPage:t.rowsPerPage||yL.rowsPerPage,rowsPerPageOptions:yL.rowsPerPageOptions}:yL)(s,d)),[y,x]=LC((async()=>h?async function(e,t,r,n,o,i,a,s){const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),m=o.visibleTop??l*u,h=o.visibleHeight??Math.min(u,p-m);if(l>0&&m>=p)return n({...r,page:0}),null;if(h*d>AP)return n({...r,rowsPerPage:IP(d,c),page:0}),null;const g=p>10,b=MP(t,o),v=LP(t,a,s),y=!!t.snapshotData,x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:m,qHeight:h,qWidth:d});y||(o.qTop=m,o.qHeight=h,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=x.at(0)?.qMatrix.map(((e,r)=>{const n=[];return v.forEach(((o,l)=>{const u=e[l],c=PP(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?qR(c):TR(u);n[l]={id:MR(),...u,align:qP(p,o.bodyTextAlign,s,a),rowIdx:r+m,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===h-1,isNumeric:p,isNull:(!d||!p)&&RP(u,o.isDim),representation:EP({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[qE.Image]:!0,[qE.Indicator]:!0,[qE.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,s,b,v,d,p,!0,f):null),[s,b,n,h,f]);i((()=>{h&&e.model&&e.changeSortOrder&&y&&c&&!x&&function(e,t){const{direction:r,...n}=e,o=BI(r);t.render(er.jsx(si,{stylisPlugins:"rtl"===r?[wA]:void 0,children:er.jsx(sc,{theme:o,children:er.jsx(HI,{...e,children:er.jsx(zT,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:y,pageInfo:b,setPageInfo:v,direction:f,footerContainer:m,announce:g},u)}),[g,t,f,m,c,b,u,e,h,y,x])},SL=e=>{const r=t((()=>jC(e)),[e]);return i((()=>()=>{r.unmount()}),[r]),r},wL=(e,r)=>t((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(e.qDimensionInfo.length,r)),[e.qDimensionInfo.length,r]);const CL=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=LC((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(nI,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return[...n]})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},EL=e=>{const{layout:r,model:n,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=e,p=!NP(r,c),[f,m]=o(!1);f&&m(!1);const h=t((()=>function(e,t,r,n,o){const i=LP(e,o,n),a=MP(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(nI,s),u=s>nI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(r,s,c,d,f)),[r,s,c,d,f]),{pageInfo:g,setPage:b}=((e,r)=>{const[n,i]=o(0),a=Math.min(nI,e.qHyperCube.qSize.qcy),s=t((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(r){const t=Math.floor(e.qHyperCube.qSize.qcy/nI);t<n&&i(t)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=CL({model:n,layout:r,page:g.page,shouldRender:p});i((()=>{p&&a.active&&a.blur?.(!1)}),[a,p]),i((()=>{p&&e.model&&e.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=BI(r);t.render(er.jsx(x.StrictMode,{children:er.jsx(sc,{theme:n,children:er.jsx(HI,{...e,children:er.jsx(gL,{})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:h,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,e,b,p,h])},RL={version:JSON.stringify("6.3.2"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var PL=e=>({properties:{initial:RL},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>PE({...e}),exportProperties:xE,exploration:AE});function AL(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const IL=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},ML=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const DL=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||yL.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},kL=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=MP(e,t);if(NP(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=AL(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:DL(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=IL(d,o),m=f?.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(ML(m,h,g)?d:d+1)+c;let v=p+c;const y=IL(p,o),x=y?.getBoundingClientRect();return y&&x&&(ML(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:DL(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},TL=({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{u((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=kL(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),c((()=>({getViewState:()=>kL(e,t,n)})),[e,t,n])},qL=e=>{const{viewState:n}=r();return t((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(n,e.snapshotData)),[n,e.snapshotData,e.usePagination])},LL=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),OL=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));