@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.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +22 -97
- package/dist/sn-table.js +25 -100
- package/dist/sn-table.systemjs.js +22 -97
- package/package.json +8 -8
- package/sn-table-ext/dist/sn-table.js +25 -100
- package/sn-table-ext/sn-table.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.3.
|
|
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
|
-
import{useMemo as e,useOptions as t,usePromise as r,useState as n,useEffect as o,useTheme as i,useInteractionState as a,onContextMenu as s,onTakeSnapshot as l,useImperativeHandle as u,useElement as c,useStaleLayout as d,useApp as p,useModel as f,useTranslator as h,useSelections as m,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useContext as S,useState as C,useMemo as w,useEffect as E,createElement as R,isValidElement as A,cloneElement as P,Children as k,useReducer as M,createContext as I,useRef as L,useCallback as D,forwardRef as T,memo as _,PureComponent as O,startTransition as q,useLayoutEffect as N,useImperativeHandle as j}from"react";import*as z from"react-dom";import F from"react-dom";import $ from"picasso-plugin-q";import B from"picasso.js";function H(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&&H(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const V={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(H(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 V}(e)){const t=V[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 U(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 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,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 K(e){if(H(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 X(e,t){return H(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:X(G(e))}function J(e){return H(e)?1===e.a?K(e):X(e):J(G(e))}const Z=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Q(e){return.2126*Z(e.r)+.7152*Z(e.g)+.0722*Z(e.b)}function ee(...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=U(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||Q(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=K(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=X(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=J(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(H(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}=U(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}=Y(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=Y(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)=>ee(o(18*e)),getDarkenedColor:(e=1)=>ee(o(18*-e))}}function te(e,t){if(!e||!t)return;const r=Q(e),n=Q(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}var re,ne,oe=["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"],ie=["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 ae(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ie:oe}var se=function(){if(ne)return re;ne=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 re=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},re}();function le(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ue(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ce(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(se);var de=1/.7,pe="\\s*([+-]?\\d+)\\s*",fe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",he="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",me=/^#([0-9a-f]{3,8})$/,ge=new RegExp(`^rgb\\(${pe},${pe},${pe}\\)$`),be=new RegExp(`^rgb\\(${he},${he},${he}\\)$`),ve=new RegExp(`^rgba\\(${pe},${pe},${pe},${fe}\\)$`),ye=new RegExp(`^rgba\\(${he},${he},${he},${fe}\\)$`),xe=new RegExp(`^hsl\\(${fe},${he},${he}\\)$`),Se=new RegExp(`^hsla\\(${fe},${he},${he},${fe}\\)$`),Ce={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 we(){return this.rgb().formatHex()}function Ee(){return this.rgb().formatRgb()}function Re(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=me.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ae(t):3===r?new Ie(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Pe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Pe(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=ge.exec(e))?new Ie(t[1],t[2],t[3],1):(t=be.exec(e))?new Ie(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ve.exec(e))?Pe(t[1],t[2],t[3],t[4]):(t=ye.exec(e))?Pe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xe.exec(e))?qe(t[1],t[2]/100,t[3]/100,1):(t=Se.exec(e))?qe(t[1],t[2]/100,t[3]/100,t[4]):Ce.hasOwnProperty(e)?Ae(Ce[e]):"transparent"===e?new Ie(NaN,NaN,NaN,0):null}function Ae(e){return new Ie(e>>16&255,e>>8&255,255&e,1)}function Pe(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ie(e,t,r,n)}function ke(e){return e instanceof ce||(e=Re(e)),e?new Ie((e=e.rgb()).r,e.g,e.b,e.opacity):new Ie}function Me(e,t,r,n){return 1===arguments.length?ke(e):new Ie(e,t,r,null==n?1:n)}function Ie(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Le(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function De(){const e=Te(this.opacity);return`${1===e?"rgb(":"rgba("}${_e(this.r)}, ${_e(this.g)}, ${_e(this.b)}${1===e?")":`, ${e})`}`}function Te(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _e(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=_e(e))<16?"0":"")+e.toString(16)}function qe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new je(e,t,r,n)}function Ne(e){if(e instanceof je)return new je(e.h,e.s,e.l,e.opacity);if(e instanceof ce||(e=Re(e)),!e)return new je;if(e instanceof je)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 je(a,s,l,e.opacity)}function je(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ze(e){return(e=(e||0)%360)<0?e+360:e}function Fe(e){return Math.max(0,Math.min(1,e||0))}function $e(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}le(ce,Re,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:we,formatHex:we,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ne(this).formatHsl()},formatRgb:Ee,toString:Ee}),le(Ie,Me,ue(ce,{brighter(e){return e=null==e?de:Math.pow(de,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ie(_e(this.r),_e(this.g),_e(this.b),Te(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:Le,formatHex:Le,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:De,toString:De})),le(je,(function(e,t,r,n){return 1===arguments.length?Ne(e):new je(e,t,r,null==n?1:n)}),ue(ce,{brighter(e){return e=null==e?de:Math.pow(de,e),new je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new je(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 Ie($e(e>=240?e-240:e+120,o,n),$e(e,o,n),$e(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new je(ze(this.h),Fe(this.s),Fe(this.l),Te(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=Te(this.opacity);return`${1===e?"hsl(":"hsla("}${ze(this.h)}, ${100*Fe(this.s)}%, ${100*Fe(this.l)}%${1===e?")":`, ${e})`}`}}));const Be=Math.PI/180,He=180/Math.PI,We=4/29,Ve=6/29,Ge=3*Ve*Ve;function Ue(e){if(e instanceof Ye)return new Ye(e.l,e.a,e.b,e.opacity);if(e instanceof Qe)return et(e);e instanceof Ie||(e=ke(e));var t,r,n=Ze(e.r),o=Ze(e.g),i=Ze(e.b),a=Ke((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Ke((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Ke((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ye(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ye(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Ke(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ge+We}function Xe(e){return e>Ve?e*e*e:Ge*(e-We)}function Je(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ze(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Qe(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function et(e){if(isNaN(e.h))return new Ye(e.l,0,0,e.opacity);var t=e.h*Be;return new Ye(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}le(Ye,(function(e,t,r,n){return 1===arguments.length?Ue(e):new Ye(e,t,r,null==n?1:n)}),ue(ce,{brighter(e){return new Ye(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ye(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 Ie(Je(3.1338561*(t=.96422*Xe(t))-1.6168667*(e=1*Xe(e))-.4906146*(r=.82521*Xe(r))),Je(-.9787684*t+1.9161415*e+.033454*r),Je(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),le(Qe,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Qe)return new Qe(e.h,e.c,e.l,e.opacity);if(e instanceof Ye||(e=Ue(e)),0===e.a&&0===e.b)return new Qe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*He;return new Qe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Qe(e,t,r,null==n?1:n)}),ue(ce,{brighter(e){return new Qe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Qe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return et(this).rgb()}}));var tt=e=>()=>e;function rt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):tt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?rt: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):tt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Me(e)).r,(t=Me(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=rt(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 nt,ot="center",it="bottom";function at(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 st(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 lt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ct)):void 0===t&&(t=ut);for(var r,n,o,i,a,s=new ft(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 ft(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(pt)}function ut(e){return e.children}function ct(e){return Array.isArray(e)?e[1]:null}function dt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function pt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ft(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:ot,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:ot,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:ot,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:ot},{key:"DataRangeIncludingZero",alignment:it},{key:"LimitedData",alignment:it},{key:"NegativeOrZeroValues",alignment:it}].reduce((function(e,t){return e[t.key]=t,e}),{}),ft.prototype=lt.prototype={constructor:ft,count:function(){return this.eachAfter(st)},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 lt(this).eachBefore(dt)},[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)}},nt=function(e){
|
|
7
|
+
import{useMemo as e,useOptions as t,usePromise as r,useState as n,useEffect as o,useTheme as i,useInteractionState as a,onContextMenu as s,onTakeSnapshot as l,useImperativeHandle as u,useElement as c,useStaleLayout as d,useApp as p,useModel as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useContext as S,useState as w,useMemo as C,useEffect as E,createElement as R,isValidElement as P,cloneElement as A,Children as I,useReducer as M,createContext as D,useRef as k,useCallback as T,forwardRef as q,memo as L,PureComponent as O,startTransition as N,useLayoutEffect as _,useImperativeHandle as j}from"react";import*as z from"react-dom";import F from"react-dom";import H from"picasso-plugin-q";import $ from"picasso.js";function B(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&&B(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const W={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(B(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 W}(e)){const t=W[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 G(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 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,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 K(e){if(B(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 X(e,t){return B(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:X(U(e))}function J(e){return B(e)?1===e.a?K(e):X(e):J(U(e))}const Z=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Q(e){return.2126*Z(e.r)+.7152*Z(e.g)+.0722*Z(e.b)}function ee(...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=G(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||Q(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=K(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=X(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=J(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(B(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}=G(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}=Y(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=Y(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)=>ee(o(18*e)),getDarkenedColor:(e=1)=>ee(o(18*-e))}}function te(e,t){if(!e||!t)return;const r=Q(e),n=Q(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function re(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 ne,oe="top",ie="top-right",ae="right",se="bottom-right",le="bottom",ue="bottom-left",ce="left",de="top-left";re(re(re(re(re(re(re(re(re(re(ne={},"equal-equal",[oe,le]),"equal-higher",[le,se]),"equal-lower",[oe,ie]),"equal-void",[oe,le]),"higher-equal",[ce,ue,oe,ie]),"higher-higher-acute",[le,ue,ce,ie]),"higher-higher-obtuse",[le,oe]),"higher-lower-negative",[oe,ie,ae]),"higher-lower-positive",[le,ue,ce]),"higher-void",[oe]),re(re(re(re(re(re(re(re(re(re(ne,"lower-equal",[oe]),"lower-higher-negative",[oe,de]),"lower-higher-positive",[se]),"lower-lower-acute",[oe,de,ce,ie,ae]),"lower-lower-obtuse",[oe,le]),"lower-void",[oe]),"void-equal",[oe]),"void-higher",[oe,le]),"void-lower",[oe,le,ce]),"void-void",[oe]),re(ne,"unclassified",[oe,le,ae,ce,ie,se,ue,de]);var pe,fe,me=["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"],he=["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 ge(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?he:me}var be=function(){if(fe)return pe;fe=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 pe=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},pe}();function ve(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ye(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function xe(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(be);var Se=1/.7,we="\\s*([+-]?\\d+)\\s*",Ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ee="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Re=/^#([0-9a-f]{3,8})$/,Pe=new RegExp(`^rgb\\(${we},${we},${we}\\)$`),Ae=new RegExp(`^rgb\\(${Ee},${Ee},${Ee}\\)$`),Ie=new RegExp(`^rgba\\(${we},${we},${we},${Ce}\\)$`),Me=new RegExp(`^rgba\\(${Ee},${Ee},${Ee},${Ce}\\)$`),De=new RegExp(`^hsl\\(${Ce},${Ee},${Ee}\\)$`),ke=new RegExp(`^hsla\\(${Ce},${Ee},${Ee},${Ce}\\)$`),Te={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 qe(){return this.rgb().formatHex()}function Le(){return this.rgb().formatRgb()}function Oe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Re.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ne(t):3===r?new Fe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?_e(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?_e(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Pe.exec(e))?new Fe(t[1],t[2],t[3],1):(t=Ae.exec(e))?new Fe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ie.exec(e))?_e(t[1],t[2],t[3],t[4]):(t=Me.exec(e))?_e(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=De.exec(e))?Ue(t[1],t[2]/100,t[3]/100,1):(t=ke.exec(e))?Ue(t[1],t[2]/100,t[3]/100,t[4]):Te.hasOwnProperty(e)?Ne(Te[e]):"transparent"===e?new Fe(NaN,NaN,NaN,0):null}function Ne(e){return new Fe(e>>16&255,e>>8&255,255&e,1)}function _e(e,t,r,n){return n<=0&&(e=t=r=NaN),new Fe(e,t,r,n)}function je(e){return e instanceof xe||(e=Oe(e)),e?new Fe((e=e.rgb()).r,e.g,e.b,e.opacity):new Fe}function ze(e,t,r,n){return 1===arguments.length?je(e):new Fe(e,t,r,null==n?1:n)}function Fe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function He(){return`#${We(this.r)}${We(this.g)}${We(this.b)}`}function $e(){const e=Be(this.opacity);return`${1===e?"rgb(":"rgba("}${Ve(this.r)}, ${Ve(this.g)}, ${Ve(this.b)}${1===e?")":`, ${e})`}`}function Be(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ve(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function We(e){return((e=Ve(e))<16?"0":"")+e.toString(16)}function Ue(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ye(e,t,r,n)}function Ge(e){if(e instanceof Ye)return new Ye(e.h,e.s,e.l,e.opacity);if(e instanceof xe||(e=Oe(e)),!e)return new Ye;if(e instanceof Ye)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 Ye(a,s,l,e.opacity)}function Ye(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Ke(e){return(e=(e||0)%360)<0?e+360:e}function Xe(e){return Math.max(0,Math.min(1,e||0))}function Je(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}ve(xe,Oe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ge(this).formatHsl()},formatRgb:Le,toString:Le}),ve(Fe,ze,ye(xe,{brighter(e){return e=null==e?Se:Math.pow(Se,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Fe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fe(Ve(this.r),Ve(this.g),Ve(this.b),Be(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:He,formatHex:He,formatHex8:function(){return`#${We(this.r)}${We(this.g)}${We(this.b)}${We(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$e,toString:$e})),ve(Ye,(function(e,t,r,n){return 1===arguments.length?Ge(e):new Ye(e,t,r,null==n?1:n)}),ye(xe,{brighter(e){return e=null==e?Se:Math.pow(Se,e),new Ye(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ye(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 Fe(Je(e>=240?e-240:e+120,o,n),Je(e,o,n),Je(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ye(Ke(this.h),Xe(this.s),Xe(this.l),Be(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=Be(this.opacity);return`${1===e?"hsl(":"hsla("}${Ke(this.h)}, ${100*Xe(this.s)}%, ${100*Xe(this.l)}%${1===e?")":`, ${e})`}`}}));const Ze=Math.PI/180,Qe=180/Math.PI,et=4/29,tt=6/29,rt=3*tt*tt;function nt(e){if(e instanceof ot)return new ot(e.l,e.a,e.b,e.opacity);if(e instanceof ut)return ct(e);e instanceof Fe||(e=je(e));var t,r,n=lt(e.r),o=lt(e.g),i=lt(e.b),a=it((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=it((.4360747*n+.3850649*o+.1430804*i)/.96422),r=it((.0139322*n+.0971045*o+.7141733*i)/.82521)),new ot(116*a-16,500*(t-a),200*(a-r),e.opacity)}function ot(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function it(e){return e>.008856451679035631?Math.pow(e,1/3):e/rt+et}function at(e){return e>tt?e*e*e:rt*(e-et)}function st(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function lt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ut(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ct(e){if(isNaN(e.h))return new ot(e.l,0,0,e.opacity);var t=e.h*Ze;return new ot(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ve(ot,(function(e,t,r,n){return 1===arguments.length?nt(e):new ot(e,t,r,null==n?1:n)}),ye(xe,{brighter(e){return new ot(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ot(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 Fe(st(3.1338561*(t=.96422*at(t))-1.6168667*(e=1*at(e))-.4906146*(r=.82521*at(r))),st(-.9787684*t+1.9161415*e+.033454*r),st(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),ve(ut,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ut)return new ut(e.h,e.c,e.l,e.opacity);if(e instanceof ot||(e=nt(e)),0===e.a&&0===e.b)return new ut(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Qe;return new ut(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ut(e,t,r,null==n?1:n)}),ye(xe,{brighter(e){return new ut(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ut(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ct(this).rgb()}}));var dt=e=>()=>e;function pt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):dt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?pt: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):dt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=ze(e)).r,(t=ze(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=pt(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 ft="center",mt="bottom";[{key:"NoDataExist",alignment:ft,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:ft,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:ft,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:ft},{key:"DataRangeIncludingZero",alignment:mt},{key:"LimitedData",alignment:mt},{key:"NegativeOrZeroValues",alignment:mt}].reduce((function(e,t){return e[t.key]=t,e}),{});var ht,gt=["__proto__","constructor"];function bt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!gt.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 vt(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 yt(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 xt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wt)):void 0===t&&(t=St);for(var r,n,o,i,a,s=new Rt(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 Rt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Et)}function St(e){return e.children}function wt(e){return Array.isArray(e)?e[1]:null}function Ct(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Et(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Rt(e){this.data=e,this.depth=this.height=0,this.parent=null}Rt.prototype=xt.prototype={constructor:Rt,count:function(){return this.eachAfter(yt)},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 xt(this).eachBefore(Ct)},[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)}},ht=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}},nt({exports:{}});const ht=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function mt(t,r){return e((()=>t),r)}const gt={},bt=()=>{const{viewState:n}=t(),o=(t=>{const r=e((()=>({current:gt})),[]);return r.current=r.current===gt?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e((()=>ht()),[]),l=mt((e=>{i&&o.current.add(e)}),[o]),u=mt(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(o.current),o.current.clear(),s()}),1e3),[s,o]);return r((async()=>{i&&await a}),[a,i]),e((()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,n,l])};function vt(e,t){return function(){return null}}function yt(){return yt=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},yt.apply(null,arguments)}function xt(e){return xt="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},xt(e)}function St(e){return e&&"object"===xt(e)&&e.constructor===Object}function Ct(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?yt({},e):e;return St(e)&&St(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(St(t[o])&&o in e?n[o]=Ct(e[o],t[o],r):n[o]=t[o])})),n}function wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Et(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 Rt={exports:{}};function At(){}function Pt(){}Pt.resetWarningCache=At;Rt.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:Pt,resetWarningCache:At};return r.PropTypes=r,r}();var kt=wt(Rt.exports),Mt=(kt.element,function(){return null});Mt.isRequired=(kt.element.isRequired,function(){return null});var It=function(){return null};function Lt(e){var t=function(e,t){if("object"!=xt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==xt(t)?t:t+""}function Dt(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 Tt={exports:{}},_t={},Ot=60103,qt=60106,Nt=60107,jt=60108,zt=60114,Ft=60109,$t=60110,Bt=60112,Ht=60113,Wt=60120,Vt=60115,Gt=60116,Ut=60121,Yt=60122,Kt=60117,Xt=60129,Jt=60131;if("function"==typeof Symbol&&Symbol.for){var Zt=Symbol.for;Ot=Zt("react.element"),qt=Zt("react.portal"),Nt=Zt("react.fragment"),jt=Zt("react.strict_mode"),zt=Zt("react.profiler"),Ft=Zt("react.provider"),$t=Zt("react.context"),Bt=Zt("react.forward_ref"),Ht=Zt("react.suspense"),Wt=Zt("react.suspense_list"),Vt=Zt("react.memo"),Gt=Zt("react.lazy"),Ut=Zt("react.block"),Yt=Zt("react.server.block"),Kt=Zt("react.fundamental"),Xt=Zt("react.debug_trace_mode"),Jt=Zt("react.legacy_hidden")}function Qt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ot:switch(e=e.type){case Nt:case zt:case jt:case Ht:case Wt:return e;default:switch(e=e&&e.$$typeof){case $t:case Bt:case Gt:case Vt:case Ft:return e;default:return t}}case qt:return t}}}var er=Ft,tr=Ot,rr=Bt,nr=Nt,or=Gt,ir=Vt,ar=qt,sr=zt,lr=jt,ur=Ht;_t.ContextConsumer=$t,_t.ContextProvider=er,_t.Element=tr,_t.ForwardRef=rr,_t.Fragment=nr,_t.Lazy=or,_t.Memo=ir,_t.Portal=ar,_t.Profiler=sr,_t.StrictMode=lr,_t.Suspense=ur,_t.isAsyncMode=function(){return!1},_t.isConcurrentMode=function(){return!1},_t.isContextConsumer=function(e){return Qt(e)===$t},_t.isContextProvider=function(e){return Qt(e)===Ft},_t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ot},_t.isForwardRef=function(e){return Qt(e)===Bt},_t.isFragment=function(e){return Qt(e)===Nt},_t.isLazy=function(e){return Qt(e)===Gt},_t.isMemo=function(e){return Qt(e)===Vt},_t.isPortal=function(e){return Qt(e)===qt},_t.isProfiler=function(e){return Qt(e)===zt},_t.isStrictMode=function(e){return Qt(e)===jt},_t.isSuspense=function(e){return Qt(e)===Ht},_t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Nt||e===zt||e===Xt||e===jt||e===Ht||e===Wt||e===Jt||"object"==typeof e&&null!==e&&(e.$$typeof===Gt||e.$$typeof===Vt||e.$$typeof===Ft||e.$$typeof===$t||e.$$typeof===Bt||e.$$typeof===Kt||e.$$typeof===Ut||e[0]===Yt)},_t.typeOf=Qt,Tt.exports=_t;var cr=Tt.exports,dr=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(dr);return t&&t[1]||""}(e)||t}function fr(e,t,r){var n=pr(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var hr="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),mr=kt.oneOfType([kt.func,kt.object]),gr=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:vt,deepmerge:Ct,elementAcceptingRef:Mt,elementTypeAcceptingRef:It,exactProp:function(e){return e},formatMuiErrorMessage:Dt,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return pr(e,"Component");if("object"===xt(e))switch(e.$$typeof){case cr.ForwardRef:return fr(e,e.render,"ForwardRef");case cr.Memo:return fr(e,e.type,"memo");default:return}}},ponyfillGlobal:hr,refType:mr});function br(e){if(e.type)return e;if("#"===e.charAt(0))return br(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(Dt(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 vr(e,t){return e=br(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 yr(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 xr(e,t){if(null==e)return{};var r,n,o=yr(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 Sr(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 Cr(e,t){if(e){if("string"==typeof e)return Sr(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)?Sr(e,t):void 0}}function wr(e){return function(e){if(Array.isArray(e))return Sr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cr(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 Er(e,t){return t?Ct(e,t,{clone:!1}):e}var Rr={xs:0,sm:600,md:960,lg:1280,xl:1920},Ar={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Rr[e],"px)")}};function Pr(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Ar;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===xt(t)){var o=e.theme.breakpoints||Ar;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function kr(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Mr(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=kr(e.theme,o)||{};return Pr(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=kr(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Lt(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 Ir(){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?Er(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function Lr(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Dr=Mr({prop:"border",themeKey:"borders",transform:Lr}),Tr=Mr({prop:"borderTop",themeKey:"borders",transform:Lr}),_r=Mr({prop:"borderRight",themeKey:"borders",transform:Lr}),Or=Mr({prop:"borderBottom",themeKey:"borders",transform:Lr}),qr=Mr({prop:"borderLeft",themeKey:"borders",transform:Lr}),Nr=Mr({prop:"borderColor",themeKey:"palette"}),jr=Mr({prop:"borderRadius",themeKey:"shape"}),zr=Ir(Dr,Tr,_r,Or,qr,Nr,jr);function Fr(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function $r(e){var t=function(t){var r=e(t);return t.css?yt({},Er(r,e(yt({theme:t.theme},t.css))),Fr(t.css,[e.filterProps])):t.sx?yt({},Er(r,e(yt({theme:t.theme},t.sx))),Fr(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(wr(e.filterProps)),t}var Br=Ir(Mr({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Mr({prop:"display"}),Mr({prop:"overflow"}),Mr({prop:"textOverflow"}),Mr({prop:"visibility"}),Mr({prop:"whiteSpace"})),Hr=Mr({prop:"flexBasis"}),Wr=Mr({prop:"flexDirection"}),Vr=Mr({prop:"flexWrap"}),Gr=Mr({prop:"justifyContent"}),Ur=Mr({prop:"alignItems"}),Yr=Mr({prop:"alignContent"}),Kr=Mr({prop:"order"}),Xr=Mr({prop:"flex"}),Jr=Mr({prop:"flexGrow"}),Zr=Mr({prop:"flexShrink"}),Qr=Mr({prop:"alignSelf"}),en=Mr({prop:"justifyItems"}),tn=Mr({prop:"justifySelf"}),rn=Ir(Hr,Wr,Vr,Gr,Ur,Yr,Kr,Xr,Jr,Zr,Qr,en,tn),nn=Mr({prop:"gridGap"}),on=Mr({prop:"gridColumnGap"}),an=Mr({prop:"gridRowGap"}),sn=Mr({prop:"gridColumn"}),ln=Mr({prop:"gridRow"}),un=Mr({prop:"gridAutoFlow"}),cn=Mr({prop:"gridAutoColumns"}),dn=Mr({prop:"gridAutoRows"}),pn=Mr({prop:"gridTemplateColumns"}),fn=Mr({prop:"gridTemplateRows"}),hn=Mr({prop:"gridTemplateAreas"}),mn=Mr({prop:"gridArea"}),gn=Ir(nn,on,an,sn,ln,un,cn,dn,pn,fn,hn,mn),bn=Mr({prop:"color",themeKey:"palette"}),vn=Mr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),yn=Ir(bn,vn),xn=Mr({prop:"position"}),Sn=Mr({prop:"zIndex",themeKey:"zIndex"}),Cn=Mr({prop:"top"}),wn=Mr({prop:"right"}),En=Mr({prop:"bottom"}),Rn=Mr({prop:"left"}),An=Ir(xn,Sn,Cn,wn,En,Rn),Pn=Mr({prop:"boxShadow",themeKey:"shadows"});function kn(e){return e<=1?"".concat(100*e,"%"):e}var Mn=Mr({prop:"width",transform:kn}),In=Mr({prop:"maxWidth",transform:kn}),Ln=Mr({prop:"minWidth",transform:kn}),Dn=Mr({prop:"height",transform:kn}),Tn=Mr({prop:"maxHeight",transform:kn}),_n=Mr({prop:"minHeight",transform:kn}),On=Mr({prop:"size",cssProperty:"width",transform:kn}),qn=Mr({prop:"size",cssProperty:"height",transform:kn}),Nn=Mr({prop:"boxSizing"}),jn=Ir(Mn,In,Ln,Dn,Tn,_n,Nn);function zn(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)||Cr(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 Fn={m:"margin",p:"padding"},$n={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hn=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(!Bn[e])return[e];e=Bn[e]}var t=zn(e.split(""),2),r=t[0],n=t[1],o=Fn[r],i=$n[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Wn=["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 Vn(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 Gn(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 Un(e){var t=Vn(e.theme);return Object.keys(e).map((function(r){if(-1===Wn.indexOf(r))return null;var n=Gn(Hn(r),t),o=e[r];return Pr(e,o,n)})).reduce(Er,{})}Un.propTypes={},Un.filterProps=Wn;var Yn=Mr({prop:"fontFamily",themeKey:"typography"}),Kn=Mr({prop:"fontSize",themeKey:"typography"}),Xn=Mr({prop:"fontStyle",themeKey:"typography"}),Jn=Mr({prop:"fontWeight",themeKey:"typography"}),Zn=Mr({prop:"letterSpacing"}),Qn=Mr({prop:"lineHeight"}),eo=Mr({prop:"textAlign"}),to=Ir(Yn,Kn,Xn,Jn,Zn,Qn,eo),ro=Object.freeze({__proto__:null,alignContent:Yr,alignItems:Ur,alignSelf:Qr,bgcolor:vn,border:Dr,borderBottom:Or,borderColor:Nr,borderLeft:qr,borderRadius:jr,borderRight:_r,borderTop:Tr,borders:zr,bottom:En,boxSizing:Nn,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Ar,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(yt({theme:t.theme},t[o]))),r}),null);return Er(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(wr(e.filterProps)),t},color:bn,compose:Ir,createUnarySpacing:Vn,css:function(e){return $r(e)},display:Br,flex:Xr,flexBasis:Hr,flexDirection:Wr,flexGrow:Jr,flexShrink:Zr,flexWrap:Vr,flexbox:rn,fontFamily:Yn,fontSize:Kn,fontStyle:Xn,fontWeight:Jn,grid:gn,gridArea:mn,gridAutoColumns:cn,gridAutoFlow:un,gridAutoRows:dn,gridColumn:sn,gridColumnGap:on,gridGap:nn,gridRow:ln,gridRowGap:an,gridTemplateAreas:hn,gridTemplateColumns:pn,gridTemplateRows:fn,height:Dn,justifyContent:Gr,justifyItems:en,justifySelf:tn,left:Rn,letterSpacing:Zn,lineHeight:Qn,maxHeight:Tn,maxWidth:In,minHeight:_n,minWidth:Ln,order:Kr,palette:yn,position:xn,positions:An,right:wn,shadows:Pn,sizeHeight:qn,sizeWidth:On,sizing:jn,spacing:Un,style:Mr,styleFunctionSx:$r,textAlign:eo,top:Cn,typography:to,width:Mn,zIndex:Sn}),no="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",oo=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function io(){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!==oo.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[no]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function ao(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 so(){return so=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},so.apply(null,arguments)}var lo="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},uo="object"===("undefined"==typeof window?"undefined":lo(window))&&"object"===("undefined"==typeof document?"undefined":lo(document))&&9===document.nodeType;function co(e){return co="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(e)}function po(e){var t=function(e,t){if("object"!=co(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==co(t)?t:t+""}function fo(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,po(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ho(e,t){return ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ho(e,t)}function mo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ho(e,t)}function go(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bo(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 vo={}.constructor;function yo(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(yo);if(e.constructor!==vo)return e;var t={};for(var r in e)t[r]=yo(e[r]);return t}function xo(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=yo(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var So=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},Co=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+=So(e[r]," ");else t=So(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function wo(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Eo(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Ro(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=wo(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+=Eo(p+":"+u+Co(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Eo(h+":"+u+Co(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=Eo(g+":"+u+Co(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Eo(""+e+u+"{"+n,--i)+Eo("}",i)):n}var Ao=/([[\].#*$><+~=|^:(),"'`\s])/g,Po="undefined"!=typeof CSS&&CSS.escape,ko=function(e){return Po?Po(e):e.replace(Ao,"\\$1")},Mo=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}(),Io=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(go(go(o)),s),o.selectorText="."+ko(o.id)),o}mo(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]=Co(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?so({},e,{allowEmpty:!0}):e;return Ro(this.selectorText,this.style,r)},fo(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}(Mo),Lo={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Io(e,t,r)}},Do={indent:1,children:!0},To=/@([\w-]+)/,_o=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(To);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new oi(so({},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=Do);var t=wo(e).linebreak;if(null==e.indent&&(e.indent=Do.indent),null==e.children&&(e.children=Do.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Oo=/@container|@media|@supports\s+/,qo={onCreateRule:function(e,t,r){return Oo.test(e)?new _o(e,t,r):null}},No={indent:1,children:!0},jo=/@keyframes\s+([\w-]+)/,zo=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(jo);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:ko(a(this,i)),this.rules=new oi(so({},r,{parent:this})),t)this.rules.add(s,t[s],so({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=No);var t=wo(e).linebreak;if(null==e.indent&&(e.indent=No.indent),null==e.children&&(e.children=No.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}(),Fo=/@keyframes\s+/,$o=/\$([\w-]+)/g,Bo=function(e,t){return"string"==typeof e?e.replace($o,(function(e,r){return r in t?t[r]:e})):e},Ho=function(e,t,r){var n=e[t],o=Bo(n,r);o!==n&&(e[t]=o)},Wo={onCreateRule:function(e,t,r){return"string"==typeof e&&Fo.test(e)?new zo(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Ho(e,"animation-name",r.keyframes),"animation"in e&&Ho(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 Bo(e,n.keyframes);default:return e}}},Vo=function(e){function t(){return e.apply(this,arguments)||this}return mo(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?so({},e,{allowEmpty:!0}):e;return Ro(this.key,this.style,r)},t}(Mo),Go={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Vo(e,t,r):null}},Uo=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=wo(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Ro(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Ro(this.at,this.style,e)},e}(),Yo=/@font-face/,Ko={onCreateRule:function(e,t,r){return Yo.test(e)?new Uo(e,t,r):null}},Xo=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 Ro(this.key,this.style,e)},e}(),Jo={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Xo(e,t,r):null}},Zo=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}(),Qo={"@charset":!0,"@import":!0,"@namespace":!0},ei={onCreateRule:function(e,t,r){return e in Qo?new Zo(e,t,r):null}},ti=[Lo,qo,Wo,Go,Ko,Jo,ei],ri={process:!0},ni={force:!0,process:!0},oi=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=so({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="."+ko(this.classes[d]));var p=xo(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=so({},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 Io?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof zo&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Io?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof zo&&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=ri);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,ni)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ni)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=wo(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}(),ii=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=so({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new oi(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}(),ai=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}(),si=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=bo(t,["attached"]),o=wo(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},fo(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),li=new si,ui="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ci="2f1acc6c3a606b082e5eef5e54414ffb";null==ui[ci]&&(ui[ci]=0);var di=ui[ci]++,pi=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")+di+o+t:i+r.key+"-"+di+(o?"-"+o:"")+"-"+t}},fi=function(e){var t;return function(){return t||(t=e()),t}},hi=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},mi=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=Co(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},gi=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},bi=function(e,t){return e.selectorText=t,e.selectorText===t},vi=fi((function(){return document.querySelector("head")}));function yi(e){var t=li.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=vi(),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 xi=fi((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Si=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]},Ci=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},wi=function(){function e(e){this.getPropertyValue=hi,this.setProperty=mi,this.removeProperty=gi,this.setSelector=bi,this.hasInsertedRules=!1,this.cssRules=[],e&&li.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=xi();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=yi(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 vi().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=Ci(r,t);if(!1===(o=Si(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=Ci(r,t),l=Si(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 ii&&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}(),Ei=0,Ri=function(){function e(e){this.id=Ei++,this.version="10.10.0",this.plugins=new ai,this.options={id:{minify:!1},createGenerateId:pi,Renderer:uo?wi:null,plugins:[]},this.generateId=pi({minify:!1});for(var t=0;t<ti.length;t++)this.plugins.use(ti[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=so({},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===li.index?0:li.index+1);var n=new ii(e,so({},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(),li.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=so({},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=xo(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}(),Ai=function(e){return new Ri(e)},Pi="object"==typeof CSS&&null!=CSS&&"number"in CSS;function ki(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=ki(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}},ht({exports:{}});const Pt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function At(t,r){return e((()=>t),r)}const It={},Mt=()=>{const{viewState:n}=t(),o=(t=>{const r=e((()=>({current:It})),[]);return r.current=r.current===It?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e((()=>Pt()),[]),l=At((e=>{i&&o.current.add(e)}),[o]),u=At(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(o.current),o.current.clear(),s()}),1e3),[s,o]);return r((async()=>{i&&await a}),[a,i]),e((()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,n,l])},Dt={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"},kt={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",...Dt,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)"},Tt=12,qt=14,Lt=16,Ot=24,Nt=3,_t=300,jt=400,zt=600,Ft=700,Ht={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function $t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bt(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 Vt={exports:{}},Wt={},Ut=x,Gt=Symbol.for("react.element"),Yt=Symbol.for("react.fragment"),Kt=Object.prototype.hasOwnProperty,Xt=Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Jt={key:!0,ref:!0,__self:!0,__source:!0};function Zt(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)Kt.call(t,n)&&!Jt.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:Gt,type:e,key:i,ref:a,props:o,_owner:Xt.current}}Wt.Fragment=Yt,Wt.jsx=Zt,Wt.jsxs=Zt,Vt.exports=Wt;var Qt=Vt.exports;const er={black:"#000",white:"#fff"},tr="#e57373",rr="#ef5350",nr="#f44336",or="#d32f2f",ir="#c62828",ar="#f3e5f5",sr="#ce93d8",lr="#ba68c8",ur="#ab47bc",cr="#9c27b0",dr="#7b1fa2",pr="#e3f2fd",fr="#90caf9",mr="#42a5f5",hr="#1976d2",gr="#1565c0",br="#4fc3f7",vr="#29b6f6",yr="#03a9f4",xr="#0288d1",Sr="#01579b",wr="#81c784",Cr="#66bb6a",Er="#4caf50",Rr="#388e3c",Pr="#2e7d32",Ar="#1b5e20",Ir="#ffb74d",Mr="#ffa726",Dr="#ff9800",kr="#f57c00",Tr="#e65100",qr={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 Lr(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 Or=Object.freeze({__proto__:null,default:Lr}),Nr="$$material";function _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_r.apply(null,arguments)}function jr(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 zr=function(){return zr=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},zr.apply(this,arguments)};function Fr(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 Hr=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},$r=$t(Hr),Br="-ms-",Vr="-moz-",Wr="-webkit-",Ur="comm",Gr="rule",Yr="decl",Kr="@keyframes",Xr=Math.abs,Jr=String.fromCharCode,Zr=Object.assign;function Qr(e){return e.trim()}function en(e,t){return(e=t.exec(e))?e[0]:e}function tn(e,t,r){return e.replace(t,r)}function rn(e,t,r){return e.indexOf(t,r)}function nn(e,t){return 0|e.charCodeAt(t)}function on(e,t,r){return e.slice(t,r)}function an(e){return e.length}function sn(e){return e.length}function ln(e,t){return t.push(e),e}function un(e,t){return e.filter((function(e){return!en(e,t)}))}var cn=1,dn=1,pn=0,fn=0,mn=0,hn="";function gn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:cn,column:dn,length:a,return:"",siblings:s}}function bn(e,t){return Zr(gn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function vn(e){for(;e.root;)e=bn(e.root,{children:[e]});ln(e,e.siblings)}function yn(){return mn=fn<pn?nn(hn,fn++):0,dn++,10===mn&&(dn=1,cn++),mn}function xn(){return nn(hn,fn)}function Sn(){return fn}function wn(e,t){return on(hn,e,t)}function Cn(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 En(e){return Qr(wn(fn-1,An(91===e?e+2:40===e?e+1:e)))}function Rn(e){for(;(mn=xn())&&mn<33;)yn();return Cn(e)>2||Cn(mn)>3?"":" "}function Pn(e,t){for(;--t&&yn()&&!(mn<48||mn>102||mn>57&&mn<65||mn>70&&mn<97););return wn(e,Sn()+(t<6&&32==xn()&&32==yn()))}function An(e){for(;yn();)switch(mn){case e:return fn;case 34:case 39:34!==e&&39!==e&&An(mn);break;case 40:41===e&&An(e);break;case 92:yn()}return fn}function In(e,t){for(;yn()&&e+mn!==57&&(e+mn!==84||47!==xn()););return"/*"+wn(t,fn-1)+"*"+Jr(47===e?e:yn())}function Mn(e){for(;!Cn(xn());)yn();return wn(e,fn)}function Dn(e){return function(e){return hn="",e}(kn("",null,null,null,[""],e=function(e){return cn=dn=1,pn=an(hn=e),fn=0,[]}(e),0,[0],e))}function kn(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=yn()){case 40:if(108!=m&&58==nn(C,d-1)){-1!=rn(C+=tn(En(v),"&","&\f"),"&\f",Xr(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=En(v);break;case 9:case 10:case 13:case 32:C+=Rn(m);break;case 92:C+=Pn(Sn()-1,7);continue;case 47:switch(xn()){case 42:case 47:ln(qn(In(yn(),Sn()),t,r,l),l);break;default:C+="/"}break;case 123*h:s[u++]=an(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=tn(C,/\f/g,"")),f>0&&an(C)-d&&ln(f>32?Ln(C+";",n,r,d-1,l):Ln(tn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(ln(w=Tn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)kn(C,t,w,w,x,i,d,s,S);else switch(99===p&&110===nn(C,3)?100:p){case 100:case 108:case 109:case 115:kn(e,w,w,n&&ln(Tn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:kn(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+an(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(mn=fn>0?nn(hn,--fn):0,dn--,10===mn&&(dn=1,cn--),mn))continue;switch(C+=Jr(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(an(C)-1)*b,b=1;break;case 64:45===xn()&&(C+=En(yn())),p=xn(),c=d=an(y=C+=Mn(Sn())),v++;break;case 45:45===m&&2==an(C)&&(h=0)}}return i}function Tn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=sn(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=on(e,p+1,p=Xr(g=a[h])),x=e;v<m;++v)(x=Qr(g>0?f[v]+" "+y:tn(y,/&\f/g,f[v])))&&(l[b++]=x);return gn(e,t,r,0===o?Gr:s,l,u,c,d)}function qn(e,t,r,n){return gn(e,t,r,Ur,Jr(mn),on(e,2,-2),0,n)}function Ln(e,t,r,n,o){return gn(e,t,r,Yr,on(e,0,n),on(e,n+1,-1),n,o)}function On(e,t,r){switch(function(e,t){return 45^nn(e,0)?(((t<<2^nn(e,0))<<2^nn(e,1))<<2^nn(e,2))<<2^nn(e,3):0}(e,t)){case 5103:return Wr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Wr+e+e;case 4789:return Vr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Wr+e+Vr+e+Br+e+e;case 5936:switch(nn(e,t+11)){case 114:return Wr+e+Br+tn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Wr+e+Br+tn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Wr+e+Br+tn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Wr+e+Br+e+e;case 6165:return Wr+e+Br+"flex-"+e+e;case 5187:return Wr+e+tn(e,/(\w+).+(:[^]+)/,Wr+"box-$1$2"+Br+"flex-$1$2")+e;case 5443:return Wr+e+Br+"flex-item-"+tn(e,/flex-|-self/g,"")+(en(e,/flex-|baseline/)?"":Br+"grid-row-"+tn(e,/flex-|-self/g,""))+e;case 4675:return Wr+e+Br+"flex-line-pack"+tn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Wr+e+Br+tn(e,"shrink","negative")+e;case 5292:return Wr+e+Br+tn(e,"basis","preferred-size")+e;case 6060:return Wr+"box-"+tn(e,"-grow","")+Wr+e+Br+tn(e,"grow","positive")+e;case 4554:return Wr+tn(e,/([^-])(transform)/g,"$1"+Wr+"$2")+e;case 6187:return tn(tn(tn(e,/(zoom-|grab)/,Wr+"$1"),/(image-set)/,Wr+"$1"),e,"")+e;case 5495:case 3959:return tn(e,/(image-set\([^]*)/,Wr+"$1$`$1");case 4968:return tn(tn(e,/(.+:)(flex-)?(.*)/,Wr+"box-pack:$3"+Br+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Wr+e+e;case 4200:if(!en(e,/flex-|baseline/))return Br+"grid-column-align"+on(e,t)+e;break;case 2592:case 3360:return Br+tn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,en(e.props,/grid-\w+-end/)}))?~rn(e+(r=r[t].value),"span",0)?e:Br+tn(e,"-start","")+e+Br+"grid-row-span:"+(~rn(r,"span",0)?en(r,/\d+/):+en(r,/\d+/)-+en(e,/\d+/))+";":Br+tn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return en(e.props,/grid-\w+-start/)}))?e:Br+tn(tn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return tn(e,/(.+)-inline(.+)/,Wr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(an(e)-1-t>6)switch(nn(e,t+1)){case 109:if(45!==nn(e,t+4))break;case 102:return tn(e,/(.+:)(.+)-([^]+)/,"$1"+Wr+"$2-$3$1"+Vr+(108==nn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rn(e,"stretch",0)?On(tn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return tn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Br+r+":"+n+s+(o?Br+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===nn(e,t+6))return tn(e,":",":"+Wr)+e;break;case 6444:switch(nn(e,45===nn(e,14)?18:11)){case 120:return tn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Wr+(45===nn(e,14)?"inline-":"")+"box$3$1"+Wr+"$2$3$1"+Br+"$2box$3")+e;case 100:return tn(e,":",":"+Br)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return tn(e,"scroll-","scroll-snap-")+e}return e}function Nn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function _n(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Yr:return e.return=e.return||e.value;case Ur:return"";case Kr:return e.return=e.value+"{"+Nn(e.children,n)+"}";case Gr:if(!an(e.value=e.props.join(",")))return""}return an(r=Nn(e.children,n))?e.return=e.value+"{"+r+"}":""}function jn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Yr:return void(e.return=On(e.value,e.length,r));case Kr:return Nn([bn(e,{value:tn(e.value,"@","@"+Wr)})],n);case Gr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(en(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":vn(bn(e,{props:[tn(t,/:(read-\w+)/,":-moz-$1")]})),vn(bn(e,{props:[t]})),Zr(e,{props:un(r,n)});break;case"::placeholder":vn(bn(e,{props:[tn(t,/:(plac\w+)/,":"+Wr+"input-$1")]})),vn(bn(e,{props:[tn(t,/:(plac\w+)/,":-moz-$1")]})),vn(bn(e,{props:[tn(t,/:(plac\w+)/,Br+"input-$1")]})),vn(bn(e,{props:[t]})),Zr(e,{props:un(r,n)})}return""}))}}var zn={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},Fn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Hn="active",$n="data-styled-version",Bn="6.1.18",Vn="/*!sc*/\n",Wn="undefined"!=typeof window&&"undefined"!=typeof document,Un=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)),Gn={},Yn=Object.freeze([]),Kn=Object.freeze({});function Xn(e,t,r){return void 0===r&&(r=Kn),e.theme!==r.theme&&e.theme||t||r.theme}var Jn=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"]),Zn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Qn=/(^-|-$)/g;function eo(e){return e.replace(Zn,"-").replace(Qn,"")}var to=/(a)(d)/gi,ro=function(e){return String.fromCharCode(e+(e>25?39:97))};function no(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ro(t%52)+r;return(ro(t%52)+r).replace(to,"$1-$2")}var oo,io=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ao=function(e){return io(5381,e)};function so(e){return no(ao(e)>>>0)}function lo(e){return"string"==typeof e&&!0}var uo="function"==typeof Symbol&&Symbol.for,co=uo?Symbol.for("react.memo"):60115,po=uo?Symbol.for("react.forward_ref"):60112,fo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ho={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},go=((oo={})[po]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},oo[co]=ho,oo);function bo(e){return("type"in(t=e)&&t.type.$$typeof)===co?ho:"$$typeof"in e?go[e.$$typeof]:fo;var t}var vo=Object.defineProperty,yo=Object.getOwnPropertyNames,xo=Object.getOwnPropertySymbols,So=Object.getOwnPropertyDescriptor,wo=Object.getPrototypeOf,Co=Object.prototype;function Eo(e,t,r){if("string"!=typeof t){if(Co){var n=wo(t);n&&n!==Co&&Eo(e,n,r)}var o=yo(t);xo&&(o=o.concat(xo(t)));for(var i=bo(e),a=bo(t),s=0;s<o.length;++s){var l=o[s];if(!(l in mo||r&&r[l]||a&&l in a||i&&l in i)){var u=So(t,l);try{vo(e,l,u)}catch(e){}}}}return e}function Ro(e){return"function"==typeof e}function Po(e){return"object"==typeof e&&"styledComponentId"in e}function Ao(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Io(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Mo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Do(e,t,r){if(void 0===r&&(r=!1),!r&&!Mo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Do(e[n],t[n]);else if(Mo(t))for(var n in t)e[n]=Do(e[n],t[n]);return e}function ko(e,t){Object.defineProperty(e,"toString",{value:t})}function To(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 qo=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 To(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(Vn);return t},e}(),Lo=new Map,Oo=new Map,No=1,_o=function(e){if(Lo.has(e))return Lo.get(e);for(;Oo.has(No);)No++;var t=No++;return Lo.set(e,t),Oo.set(t,e),t},jo=function(e,t){No=t+1,Lo.set(e,t),Oo.set(t,e)},zo="style[".concat(Fn,"][").concat($n,'="').concat(Bn,'"]'),Fo=new RegExp("^".concat(Fn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ho=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)},$o=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Vn),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Fo);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(jo(c,u),Ho(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Bo=function(e){for(var t=document.querySelectorAll(zo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Fn)!==Hn&&($o(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Vo=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Fn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Fn,Hn),n.setAttribute($n,Bn);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Wo=function(){function e(e){this.element=Vo(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 To(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}(),Uo=function(){function e(e){this.element=Vo(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}(),Go=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}(),Yo=Wn,Ko={isServer:!Wn,useCSSOMInjection:!Un},Xo=function(){function e(e,t,r){void 0===e&&(e=Kn),void 0===t&&(t={});var n=this;this.options=zr(zr({},Ko),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Wn&&Yo&&(Yo=!1,Bo(this)),ko(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Oo.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(Fn,".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(Vn)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return _o(e)},e.prototype.rehydrate=function(){!this.server&&Wn&&Bo(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(zr(zr({},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 Go(r):t?new Wo(r):new Uo(r)}(this.options),new qo(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(_o(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(_o(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(_o(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Jo=/&/g,Zo=/^\s*\/\/.*$/gm;function Qo(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=Qo(e.children,t)),e}))}function ei(e){var t,r,n,o=void 0===e?Kn:e,i=o.options,a=void 0===i?Kn:i,s=o.plugins,l=void 0===s?Yn: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===Gr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Jo,r).replace(n,u))})),a.prefix&&c.push(jn),c.push(_n);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(Zo,""),u=Dn(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=Qo(u,a.namespace));var d,p=[];return Nn(u,function(e){var t=sn(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(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||To(15),io(e,t.name)}),5381).toString():"",d}var ti=new Xo,ri=ei(),ni=x.createContext({shouldForwardProp:void 0,styleSheet:ti,stylis:ri});ni.Consumer;var oi=x.createContext(void 0);function ii(){return S(ni)}function ai(e){var t=w(e.stylisPlugins),r=t[0],n=t[1],o=ii().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 ei({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);E((function(){$r(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(ni.Provider,{value:s},x.createElement(oi.Provider,{value:a},e.children))}var si=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ri);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,ko(this,(function(){throw To(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=ri),this.name+e.hash},e}(),li=function(e){return e>="A"&&e<="Z"};function ui(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;li(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var ci=function(e){return null==e||!1===e||""===e},di=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!ci(i)&&(Array.isArray(i)&&i.isCss||Ro(i)?n.push("".concat(ui(o),":"),i,";"):Mo(i)?n.push.apply(n,Fr(Fr(["".concat(o," {")],di(i),!1),["}"],!1)):n.push("".concat(ui(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in zn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function pi(e,t,r,n){return ci(e)?[]:Po(e)?[".".concat(e.styledComponentId)]:Ro(e)?!Ro(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:pi(e(t),t,r,n):e instanceof si?r?(e.inject(r,n),[e.getName(n)]):[e]:Mo(e)?di(e):Array.isArray(e)?Array.prototype.concat.apply(Yn,e.map((function(e){return pi(e,t,r,n)}))):[e.toString()];var o}function fi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ro(r)&&!Po(r))return!1}return!0}var mi=ao(Bn),hi=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&fi(e),this.componentId=t,this.baseHash=io(mi,t),this.baseStyle=r,Xo.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=Ao(n,this.staticRulesId);else{var o=Io(pi(this.rules,e,t,r)),i=no(io(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=Ao(n,i),this.staticRulesId=i}else{for(var s=io(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=Io(pi(c,e,t,r));s=io(s,d+u),l+=d}}if(l){var p=no(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=Ao(n,p)}}return n},e}(),gi=x.createContext(void 0);gi.Consumer;var bi={};function vi(e,t,r){var n=Po(e),o=e,i=!lo(e),a=t.attrs,s=void 0===a?Yn:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":eo(e);bi[r]=(bi[r]||0)+1;var n="".concat(r,"-").concat(so(Bn+r+bi[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return lo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(eo(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 hi(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(gi),c=ii(),d=e.shouldForwardProp||c.shouldForwardProp,p=Xn(t,u,i)||Kn,f=function(e,t,r){for(var n,o=zr(zr({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Ro(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?Ao(o[s],a[s]):"style"===s?zr(zr({},o[s]),a[s]):a[s]}return t.className&&(o.className=Ao(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=ii();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=Ao(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[lo(m)&&!Jn.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?Ao(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++)Do(e,o[n],!0);return e}({},o.defaultProps,e):e}}),ko(y,(function(){return".".concat(y.styledComponentId)})),i&&Eo(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function yi(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 xi=function(e){return Object.assign(e,{isCss:!0})};function Si(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ro(e)||Mo(e))return xi(pi(yi(Yn,Fr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?pi(n):xi(pi(yi(n,t)))}function wi(e,t,r){if(void 0===r&&(r=Kn),!t)throw To(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Si.apply(void 0,Fr([n],o,!1)))};return n.attrs=function(n){return wi(e,t,zr(zr({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return wi(e,t,zr(zr({},r),n))},n}var Ci=function(e){return wi(vi,e)},Ei=Ci;Jn.forEach((function(e){Ei[e]=Ci(e)}));var Ri=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=fi(e),Xo.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Io(pi(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&&Xo.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Pi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Io(Si.apply(void 0,Fr([e],t,!1))),o=so(n);return new si(o,n)}var Ai={exports:{}};function Ii(){}function Mi(){}Mi.resetWarningCache=Ii;Ai.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:Mi,resetWarningCache:Ii};return r.PropTypes=r,r}();var Di=$t(Ai.exports);function ki(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}ki.propTypes={children:Di.node,injectFirst:Di.bool};const Ti=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Si.apply(void 0,Fr([e],t,!1)),o="sc-global-".concat(so(JSON.stringify(n))),i=new Ri(n,o),a=function(e){var t=ii(),r=x.useContext(gi),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,Gn,r,o);else{var s=zr(zr({},t),{theme:Xn(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
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
14
|
-
* @website https://github.com/cssinjs/jss
|
|
15
|
-
* @license MIT
|
|
16
|
-
*/Ai();var Mi=Date.now(),Ii="fnValues"+Mi,Li="fnStyle"+ ++Mi,Di="@global",Ti="@global ",_i=function(){function e(e,t,r){for(var n in this.type="global",this.at=Di,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new oi(so({},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}(),Oi=function(){function e(e,t,r){this.type="global",this.at=Di,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,so({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),qi=/\s*,\s*/g;function Ni(e,t){for(var r=e.split(qi),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function ji(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Di)return new _i(e,t,r);if("@"===e[0]&&e.substr(0,8)===Ti)return new Oi(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[Di]:null;if(o){for(var i in o)t.addRule(i,o[i],so({},r,{selector:Ni(i,e.selector)}));delete n[Di]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Di){var i=Ni(o.substr(7),e.selector);t.addRule(i,n[o],so({},r,{selector:i})),delete n[o]}}(e,t))}}}var zi=/\s*,\s*/g,Fi=/&/g,$i=/\$([\w-]+)/g;function Bi(){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(zi),n=e.split(zi),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(Fi,a):a+" "+l}return o}function r(e,t,r){if(r)return so({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=so({},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($i,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],so({},a,{selector:f})):u.addRule(h,n[c],so({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Hi=/[A-Z]/g,Wi=/^ms-/,Vi={};function Gi(e){return"-"+e.toLowerCase()}function Ui(e){if(Vi.hasOwnProperty(e))return Vi[e];var t=e.replace(Hi,Gi);return Vi[e]=Wi.test(t)?"-"+t:t}function Yi(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Ui(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Yi):t.fallbacks=Yi(e.fallbacks)),t}var Ki=Pi&&CSS?CSS.px:"px",Xi=Pi&&CSS?CSS.ms:"ms",Ji=Pi&&CSS?CSS.percent:"%";function Zi(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 Qi=Zi({"animation-delay":Xi,"animation-duration":Xi,"background-position":Ki,"background-position-x":Ki,"background-position-y":Ki,"background-size":Ki,border:Ki,"border-bottom":Ki,"border-bottom-left-radius":Ki,"border-bottom-right-radius":Ki,"border-bottom-width":Ki,"border-left":Ki,"border-left-width":Ki,"border-radius":Ki,"border-right":Ki,"border-right-width":Ki,"border-top":Ki,"border-top-left-radius":Ki,"border-top-right-radius":Ki,"border-top-width":Ki,"border-width":Ki,"border-block":Ki,"border-block-end":Ki,"border-block-end-width":Ki,"border-block-start":Ki,"border-block-start-width":Ki,"border-block-width":Ki,"border-inline":Ki,"border-inline-end":Ki,"border-inline-end-width":Ki,"border-inline-start":Ki,"border-inline-start-width":Ki,"border-inline-width":Ki,"border-start-start-radius":Ki,"border-start-end-radius":Ki,"border-end-start-radius":Ki,"border-end-end-radius":Ki,margin:Ki,"margin-bottom":Ki,"margin-left":Ki,"margin-right":Ki,"margin-top":Ki,"margin-block":Ki,"margin-block-end":Ki,"margin-block-start":Ki,"margin-inline":Ki,"margin-inline-end":Ki,"margin-inline-start":Ki,padding:Ki,"padding-bottom":Ki,"padding-left":Ki,"padding-right":Ki,"padding-top":Ki,"padding-block":Ki,"padding-block-end":Ki,"padding-block-start":Ki,"padding-inline":Ki,"padding-inline-end":Ki,"padding-inline-start":Ki,"mask-position-x":Ki,"mask-position-y":Ki,"mask-size":Ki,height:Ki,width:Ki,"min-height":Ki,"max-height":Ki,"min-width":Ki,"max-width":Ki,bottom:Ki,left:Ki,top:Ki,right:Ki,inset:Ki,"inset-block":Ki,"inset-block-end":Ki,"inset-block-start":Ki,"inset-inline":Ki,"inset-inline-end":Ki,"inset-inline-start":Ki,"box-shadow":Ki,"text-shadow":Ki,"column-gap":Ki,"column-rule":Ki,"column-rule-width":Ki,"column-width":Ki,"font-size":Ki,"font-size-delta":Ki,"letter-spacing":Ki,"text-decoration-thickness":Ki,"text-indent":Ki,"text-stroke":Ki,"text-stroke-width":Ki,"word-spacing":Ki,motion:Ki,"motion-offset":Ki,outline:Ki,"outline-offset":Ki,"outline-width":Ki,perspective:Ki,"perspective-origin-x":Ji,"perspective-origin-y":Ji,"transform-origin":Ji,"transform-origin-x":Ji,"transform-origin-y":Ji,"transform-origin-z":Ji,"transition-delay":Xi,"transition-duration":Xi,"vertical-align":Ki,"flex-basis":Ki,"shape-margin":Ki,size:Ki,gap:Ki,grid:Ki,"grid-gap":Ki,"row-gap":Ki,"grid-row-gap":Ki,"grid-column-gap":Ki,"grid-template-rows":Ki,"grid-template-columns":Ki,"grid-auto-rows":Ki,"grid-auto-columns":Ki,"box-shadow-x":Ki,"box-shadow-y":Ki,"box-shadow-blur":Ki,"box-shadow-spread":Ki,"font-line-height":Ki,"text-shadow-x":Ki,"text-shadow-y":Ki,"text-shadow-blur":Ki});function ea(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=ea(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=ea(o,t[o],r);else for(var i in t)t[i]=ea(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Qi[e];return!a||0===t&&a===Ki?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ta(e){void 0===e&&(e={});var t=Zi(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=ea(n,e[n],t);return e},onChangeValue:function(e,r){return ea(r,e,t)}}}var ra="",na="",oa="",ia="",aa=uo&&"ontouchstart"in document.documentElement;if(uo){var sa={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},la=document.createElement("p").style;for(var ua in sa)if(ua+"Transform"in la){ra=ua,na=sa[ua];break}"Webkit"===ra&&"msHyphens"in la&&(ra="ms",na=sa.ms,ia="edge"),"Webkit"===ra&&"-apple-trailing-word"in la&&(oa="apple")}var ca=ra,da=na,pa=oa,fa=ia,ha=aa;var ma={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ca?"-webkit-"+e:da+e)}},ga={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ca?da+"print-"+e:e)}},ba=/[-\s]+(.)?/g;function va(e,t){return t?t.toUpperCase():""}function ya(e){return e.replace(ba,va)}function xa(e){return ya("-"+e)}var Sa,Ca={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ca){var r="mask-image";if(ya(r)in t)return e;if(ca+xa(r)in t)return da+e}return e}},wa={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==pa||ha?e:da+e)}},Ea={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:da+e)}},Ra={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:da+e)}},Aa={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ca||"ms"===ca&&"edge"!==fa?da+e:e)}},Pa={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ca||"ms"===ca||"apple"===pa?da+e:e)}},ka={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ca?"WebkitColumn"+xa(e)in t&&da+"column-"+e:"Moz"===ca&&("page"+xa(e)in t&&"page-"+e))}},Ma={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ca)return e;var r=e.replace("-inline","");return ca+xa(r)in t&&da+r}},Ia={supportedProperty:function(e,t){return ya(e)in t&&e}},La={supportedProperty:function(e,t){var r=xa(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ca+r in t?da+e:"Webkit"!==ca&&"Webkit"+r in t&&"-webkit-"+e}},Da={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ca?""+da+e:e)}},Ta={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ca?da+"scroll-chaining":e)}},_a={"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"},Oa={supportedProperty:function(e,t){var r=_a[e];return!!r&&(ca+xa(r)in t&&da+r)}},qa={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"},Na=Object.keys(qa),ja=function(e){return da+e},za={supportedProperty:function(e,t,r){var n=r.multiple;if(Na.indexOf(e)>-1){var o=qa[e];if(!Array.isArray(o))return ca+xa(o)in t&&da+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(ca+xa(o[0])in t))return!1;return o.map(ja)}return!1}},Fa=[ma,ga,Ca,wa,Ea,Ra,Aa,Pa,ka,Ma,Ia,La,Da,Ta,Oa,za],$a=Fa.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ba=Fa.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,wr(t.noPrefill)),e}),[]),Ha={};if(uo){Sa=document.createElement("p");var Wa=window.getComputedStyle(document.documentElement,"");for(var Va in Wa)isNaN(Va)||(Ha[Wa[Va]]=Wa[Va]);Ba.forEach((function(e){return delete Ha[e]}))}function Ga(e,t){if(void 0===t&&(t={}),!Sa)return e;if(null!=Ha[e])return Ha[e];"transition"!==e&&"transform"!==e||(t[e]=e in Sa.style);for(var r=0;r<$a.length&&(Ha[e]=$a[r](e,Sa.style,t),!Ha[e]);r++);try{Sa.style[e]=""}catch(e){return!1}return Ha[e]}var Ua,Ya={},Ka={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Xa=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ja(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Ga(t):", "+Ga(r);return n||(t||r)}function Za(e,t){var r=t;if(!Ua||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Ya[n])return Ya[n];try{Ua.style[e]=r}catch(e){return Ya[n]=!1,!1}if(Ka[e])r=r.replace(Xa,Ja);else if(""===Ua.style[e]&&("-ms-flex"===(r=da+r)&&(Ua.style[e]="-ms-flexbox"),Ua.style[e]=r,""===Ua.style[e]))return Ya[n]=!1,!1;return Ua.style[e]="",Ya[n]=r,Ya[n]}function Qa(){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=Ga(r);i&&i!==r&&(o=!0);var a=!1,s=Za(i,Co(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"===ca?e:"@"+da+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return Za(t,Co(e))||e}}}function es(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=xo(e,{},r);return n[Li]=t,n},onProcessStyle:function(e,t){if(Ii in t||Li 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[Ii]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Li];i&&(o.style=i(e)||{});var a=o[Ii];if(a)for(var s in a)o.prop(s,a[s](e),n)}},ji(),Bi(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Yi(e[t]);return e}return Yi(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Ui(t);return t===n?e:(r.prop(n,e),null)}},ta(),"undefined"==typeof window?null:Qa(),(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 ts(){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=yt({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}uo&&(Ua=document.createElement("p"));var rs=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},ns=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},os=function(e,t,r){e.get(t).delete(r)},is=x.createContext(null);function as(){return x.useContext(is)}var ss,ls=Ai(es()),us=io(),cs=new Map,ds={disableGeneration:!1,generateClassName:us,jss:ls,sheetsCache:null,sheetsManager:cs,sheetsRegistry:null},ps=x.createContext(ds);function fs(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=xr(e,["children","injectFirst","disableGeneration"]),s=yt({},x.useContext(ps),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!ss){var l=document.head;ss=document.createComment("mui-inject-first"),l.insertBefore(ss,l.firstChild)}s.jss=Ai({plugins:es().plugins,insertionPoint:ss})}return x.createElement(ps.Provider,{value:s},t)}var hs=-1e9;var ms={};function gs(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=ns(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},rs(o.sheetsManager,i,n,s));var l=yt({},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=ns(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,yt({link:!1},l))).attach(),o.sheetsCache&&rs(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=ki(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,yt({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=ts({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function bs(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?ms:i,s=xr(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=yt({},o);return Object.keys(i).forEach((function(e){a[e]=Ct(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:hs+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=as()||a,n=yt({},x.useContext(ps),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 gs(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=ns(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(os(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=ts({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}function vs(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,Lt(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var ys=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 vs(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new si;var r=io();return x.createElement(fs,yt({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",yt({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function xs(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=xs(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ss(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=xs(e))&&(n&&(n+=" "),n+=t);return n}var Cs={exports:{}},ws={},Es="function"==typeof Symbol&&Symbol.for,Rs=Es?Symbol.for("react.element"):60103,As=Es?Symbol.for("react.portal"):60106,Ps=Es?Symbol.for("react.fragment"):60107,ks=Es?Symbol.for("react.strict_mode"):60108,Ms=Es?Symbol.for("react.profiler"):60114,Is=Es?Symbol.for("react.provider"):60109,Ls=Es?Symbol.for("react.context"):60110,Ds=Es?Symbol.for("react.async_mode"):60111,Ts=Es?Symbol.for("react.concurrent_mode"):60111,_s=Es?Symbol.for("react.forward_ref"):60112,Os=Es?Symbol.for("react.suspense"):60113,qs=Es?Symbol.for("react.suspense_list"):60120,Ns=Es?Symbol.for("react.memo"):60115,js=Es?Symbol.for("react.lazy"):60116,zs=Es?Symbol.for("react.block"):60121,Fs=Es?Symbol.for("react.fundamental"):60117,$s=Es?Symbol.for("react.responder"):60118,Bs=Es?Symbol.for("react.scope"):60119;function Hs(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Rs:switch(e=e.type){case Ds:case Ts:case Ps:case Ms:case ks:case Os:return e;default:switch(e=e&&e.$$typeof){case Ls:case _s:case js:case Ns:case Is:return e;default:return t}}case As:return t}}}function Ws(e){return Hs(e)===Ts}ws.AsyncMode=Ds,ws.ConcurrentMode=Ts,ws.ContextConsumer=Ls,ws.ContextProvider=Is,ws.Element=Rs,ws.ForwardRef=_s,ws.Fragment=Ps,ws.Lazy=js,ws.Memo=Ns,ws.Portal=As,ws.Profiler=Ms,ws.StrictMode=ks,ws.Suspense=Os,ws.isAsyncMode=function(e){return Ws(e)||Hs(e)===Ds},ws.isConcurrentMode=Ws,ws.isContextConsumer=function(e){return Hs(e)===Ls},ws.isContextProvider=function(e){return Hs(e)===Is},ws.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Rs},ws.isForwardRef=function(e){return Hs(e)===_s},ws.isFragment=function(e){return Hs(e)===Ps},ws.isLazy=function(e){return Hs(e)===js},ws.isMemo=function(e){return Hs(e)===Ns},ws.isPortal=function(e){return Hs(e)===As},ws.isProfiler=function(e){return Hs(e)===Ms},ws.isStrictMode=function(e){return Hs(e)===ks},ws.isSuspense=function(e){return Hs(e)===Os},ws.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ps||e===Ts||e===Ms||e===ks||e===Os||e===qs||"object"==typeof e&&null!==e&&(e.$$typeof===js||e.$$typeof===Ns||e.$$typeof===Is||e.$$typeof===Ls||e.$$typeof===_s||e.$$typeof===Fs||e.$$typeof===$s||e.$$typeof===Bs||e.$$typeof===zs)},ws.typeOf=Hs,Cs.exports=ws;var Vs=Cs.exports,Gs={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Us={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ys={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ks={};function Xs(e){return Vs.isMemo(e)?Ys:Ks[e.$$typeof]||Gs}Ks[Vs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ks[Vs.Memo]=Ys;var Js=Object.defineProperty,Zs=Object.getOwnPropertyNames,Qs=Object.getOwnPropertySymbols,el=Object.getOwnPropertyDescriptor,tl=Object.getPrototypeOf,rl=Object.prototype;var nl=function e(t,r,n){if("string"!=typeof r){if(rl){var o=tl(r);o&&o!==rl&&e(t,o,n)}var i=Zs(r);Qs&&(i=i.concat(Qs(r)));for(var a=Xs(t),s=Xs(r),l=0;l<i.length;++l){var u=i[l];if(!(Us[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=el(r,u);try{Js(t,u,c)}catch(e){}}}}return t},ol=wt(nl);function il(){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=xr(r,["innerRef"]),a=as()||e;return x.createElement(t,yt({theme:a,ref:o||n},i))}));return ol(r,t),r}}var al=il(),sl=Object.freeze({__proto__:null,ServerStyleSheets:ys,StylesContext:ps,StylesProvider:fs,ThemeProvider:function(e){var t=e.children,r=e.theme,n=as(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):yt({},e,t)}(n,r);return null!=e&&(e[no]=null!==n),e}),[r,n]);return x.createElement(is.Provider,{value:o},t)},createGenerateClassName:io,createStyles:function(e){return e},getThemeProps:ao,jssPreset:es,makeStyles:bs,mergeClasses:ts,sheetsManager:cs,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=xr(n,["name"]),a=o,s=bs("function"==typeof t?function(e){return{root:function(r){return t(yt({theme:e},r))}}}:{root:t},yt({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=xr(t,["children","className","clone","component"]),f=Ss(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,yt({className:Ss(l.props.className,f)},h));if("function"==typeof l)return l(yt({className:f},h));var m=d||e;return x.createElement(m,yt({ref:n,className:f},h),l)}));return ol(l,e),l}},useTheme:as,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=xr(t,["defaultTheme","withTheme","name"]),l=a,u=bs(e,yt({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=xr(e,["classes","innerRef"]),c=u(yt({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=as()||n,a&&(d=ao({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,yt({ref:s||t,classes:c},d))}));return ol(c,r),c}},withTheme:al,withThemeCreator:il});
|
|
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 ll={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"},ul={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",...ll,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)"},cl=12,dl=14,pl=16,fl=24,hl=3,ml=300,gl=400,bl=600,vl=700,yl={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};vr(ul.GREYSCALE_0,.05),vr(ul.GREEN_PALE,.5),vr(ul.BLUE_PALE,.5),vr(ul.GREEN_PALE,.5),vr(ul.BLUE_PALE,.5),vr(ul.GREEN_PALE,.5),vr(ul.BLUE_PALE,.5);vr(ul.GREEN_PALE,.5),vr(ul.BLUE_PALE,.5),vr(ul.GREEN_PALE,.5),vr(ul.BLUE_PALE,.5);var xl={exports:{}},Sl={},Cl=x,wl=Symbol.for("react.element"),El=Symbol.for("react.fragment"),Rl=Object.prototype.hasOwnProperty,Al=Cl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Pl={key:!0,ref:!0,__self:!0,__source:!0};function kl(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)Rl.call(t,n)&&!Pl.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:wl,type:e,key:i,ref:a,props:o,_owner:Al.current}}Sl.Fragment=El,Sl.jsx=kl,Sl.jsxs=kl,xl.exports=Sl;var Ml,Il=xl.exports;function Ll(){return Ll=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},Ll.apply(null,arguments)}var Dl,Tl=function(e){return y.createElement("svg",Ll({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Ml||(Ml=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function _l(){return _l=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},_l.apply(null,arguments)}var Ol=function(e){return y.createElement("svg",_l({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Dl||(Dl=y.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 ql({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Il.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 Nl(e={}){return Il.jsx(ql,{...e,children:Il.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Il.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Il.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 jl(e={}){return Il.jsx(ql,{...e,children:Il.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Il.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Il.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Il.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function zl(e={}){return Il.jsx(ql,{fontSize:"medium",...e,children:Il.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Il.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Il.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Fl(e={}){return Il.jsx(ql,{fontSize:"medium",...e,children:Il.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Il.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Il.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 $l({className:e}){return Il.jsx(ql,{fontSize:"small",className:e,children:Il.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Il.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Il.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Il.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Il.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"}),Il.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"})]})})})})})}Il.jsx(Ol,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Il.jsx(Tl,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Il.jsx(zl,{}),Il.jsx(Fl,{}),Il.jsx((function(e={}){return Il.jsx(ql,{...e,children:Il.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Il.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Il.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Il.jsx(Nl,{}),Il.jsx(jl,{}),Il.jsx(Tl,{style:{color:ul.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const Bl={black:"#000",white:"#fff"},Hl="#e57373",Wl="#ef5350",Vl="#f44336",Gl="#d32f2f",Ul="#c62828",Yl="#f3e5f5",Kl="#ce93d8",Xl="#ba68c8",Jl="#ab47bc",Zl="#9c27b0",Ql="#7b1fa2",eu="#e3f2fd",tu="#90caf9",ru="#42a5f5",nu="#1976d2",ou="#1565c0",iu="#4fc3f7",au="#29b6f6",su="#03a9f4",lu="#0288d1",uu="#01579b",cu="#81c784",du="#66bb6a",pu="#4caf50",fu="#388e3c",hu="#2e7d32",mu="#1b5e20",gu="#ffb74d",bu="#ffa726",vu="#ff9800",yu="#f57c00",xu="#e65100",Su={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 Cu(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 wu=Object.freeze({__proto__:null,default:Cu}),Eu="$$material";function Ru(){return Ru=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},Ru.apply(this,arguments)}function Au(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 Pu=function(){return Pu=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},Pu.apply(this,arguments)};function ku(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 Mu=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},Iu=wt(Mu),Lu="-ms-",Du="-moz-",Tu="-webkit-",_u="comm",Ou="rule",qu="decl",Nu="@keyframes",ju=Math.abs,zu=String.fromCharCode,Fu=Object.assign;function $u(e){return e.trim()}function Bu(e,t){return(e=t.exec(e))?e[0]:e}function Hu(e,t,r){return e.replace(t,r)}function Wu(e,t,r){return e.indexOf(t,r)}function Vu(e,t){return 0|e.charCodeAt(t)}function Gu(e,t,r){return e.slice(t,r)}function Uu(e){return e.length}function Yu(e){return e.length}function Ku(e,t){return t.push(e),e}function Xu(e,t){return e.filter((function(e){return!Bu(e,t)}))}var Ju=1,Zu=1,Qu=0,ec=0,tc=0,rc="";function nc(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ju,column:Zu,length:a,return:"",siblings:s}}function oc(e,t){return Fu(nc("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ic(e){for(;e.root;)e=oc(e.root,{children:[e]});Ku(e,e.siblings)}function ac(){return tc=ec<Qu?Vu(rc,ec++):0,Zu++,10===tc&&(Zu=1,Ju++),tc}function sc(){return Vu(rc,ec)}function lc(){return ec}function uc(e,t){return Gu(rc,e,t)}function cc(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 dc(e){return $u(uc(ec-1,hc(91===e?e+2:40===e?e+1:e)))}function pc(e){for(;(tc=sc())&&tc<33;)ac();return cc(e)>2||cc(tc)>3?"":" "}function fc(e,t){for(;--t&&ac()&&!(tc<48||tc>102||tc>57&&tc<65||tc>70&&tc<97););return uc(e,lc()+(t<6&&32==sc()&&32==ac()))}function hc(e){for(;ac();)switch(tc){case e:return ec;case 34:case 39:34!==e&&39!==e&&hc(tc);break;case 40:41===e&&hc(e);break;case 92:ac()}return ec}function mc(e,t){for(;ac()&&e+tc!==57&&(e+tc!==84||47!==sc()););return"/*"+uc(t,ec-1)+"*"+zu(47===e?e:ac())}function gc(e){for(;!cc(sc());)ac();return uc(e,ec)}function bc(e){return function(e){return rc="",e}(vc("",null,null,null,[""],e=function(e){return Ju=Zu=1,Qu=Uu(rc=e),ec=0,[]}(e),0,[0],e))}function vc(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=ac()){case 40:if(108!=h&&58==Vu(w,d-1)){-1!=Wu(w+=Hu(dc(v),"&","&\f"),"&\f",ju(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=dc(v);break;case 9:case 10:case 13:case 32:w+=pc(h);break;case 92:w+=fc(lc()-1,7);continue;case 47:switch(sc()){case 42:case 47:Ku(xc(mc(ac(),lc()),t,r,l),l);break;default:w+="/"}break;case 123*m:s[u++]=Uu(w)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=Hu(w,/\f/g,"")),f>0&&Uu(w)-d&&Ku(f>32?Sc(w+";",n,r,d-1,l):Sc(Hu(w," ","")+";",n,r,d-2,l),l);break;case 59:w+=";";default:if(Ku(C=yc(w,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)vc(w,t,C,C,x,i,d,s,S);else switch(99===p&&110===Vu(w,3)?100:p){case 100:case 108:case 109:case 115:vc(e,C,C,n&&Ku(yc(e,C,C,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:vc(w,C,C,C,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=w="",d=a;break;case 58:d=1+Uu(w),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==(tc=ec>0?Vu(rc,--ec):0,Zu--,10===tc&&(Zu=1,Ju--),tc))continue;switch(w+=zu(v),v*m){case 38:b=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(Uu(w)-1)*b,b=1;break;case 64:45===sc()&&(w+=dc(ac())),p=sc(),c=d=Uu(y=w+=gc(lc())),v++;break;case 45:45===h&&2==Uu(w)&&(m=0)}}return i}function yc(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Yu(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=Gu(e,p+1,p=ju(g=a[m])),x=e;v<h;++v)(x=$u(g>0?f[v]+" "+y:Hu(y,/&\f/g,f[v])))&&(l[b++]=x);return nc(e,t,r,0===o?Ou:s,l,u,c,d)}function xc(e,t,r,n){return nc(e,t,r,_u,zu(tc),Gu(e,2,-2),0,n)}function Sc(e,t,r,n,o){return nc(e,t,r,qu,Gu(e,0,n),Gu(e,n+1,-1),n,o)}function Cc(e,t,r){switch(function(e,t){return 45^Vu(e,0)?(((t<<2^Vu(e,0))<<2^Vu(e,1))<<2^Vu(e,2))<<2^Vu(e,3):0}(e,t)){case 5103:return Tu+"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 Tu+e+e;case 4789:return Du+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Tu+e+Du+e+Lu+e+e;case 5936:switch(Vu(e,t+11)){case 114:return Tu+e+Lu+Hu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Tu+e+Lu+Hu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Tu+e+Lu+Hu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Tu+e+Lu+e+e;case 6165:return Tu+e+Lu+"flex-"+e+e;case 5187:return Tu+e+Hu(e,/(\w+).+(:[^]+)/,Tu+"box-$1$2"+Lu+"flex-$1$2")+e;case 5443:return Tu+e+Lu+"flex-item-"+Hu(e,/flex-|-self/g,"")+(Bu(e,/flex-|baseline/)?"":Lu+"grid-row-"+Hu(e,/flex-|-self/g,""))+e;case 4675:return Tu+e+Lu+"flex-line-pack"+Hu(e,/align-content|flex-|-self/g,"")+e;case 5548:return Tu+e+Lu+Hu(e,"shrink","negative")+e;case 5292:return Tu+e+Lu+Hu(e,"basis","preferred-size")+e;case 6060:return Tu+"box-"+Hu(e,"-grow","")+Tu+e+Lu+Hu(e,"grow","positive")+e;case 4554:return Tu+Hu(e,/([^-])(transform)/g,"$1"+Tu+"$2")+e;case 6187:return Hu(Hu(Hu(e,/(zoom-|grab)/,Tu+"$1"),/(image-set)/,Tu+"$1"),e,"")+e;case 5495:case 3959:return Hu(e,/(image-set\([^]*)/,Tu+"$1$`$1");case 4968:return Hu(Hu(e,/(.+:)(flex-)?(.*)/,Tu+"box-pack:$3"+Lu+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Tu+e+e;case 4200:if(!Bu(e,/flex-|baseline/))return Lu+"grid-column-align"+Gu(e,t)+e;break;case 2592:case 3360:return Lu+Hu(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Bu(e.props,/grid-\w+-end/)}))?~Wu(e+(r=r[t].value),"span",0)?e:Lu+Hu(e,"-start","")+e+Lu+"grid-row-span:"+(~Wu(r,"span",0)?Bu(r,/\d+/):+Bu(r,/\d+/)-+Bu(e,/\d+/))+";":Lu+Hu(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Bu(e.props,/grid-\w+-start/)}))?e:Lu+Hu(Hu(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Hu(e,/(.+)-inline(.+)/,Tu+"$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(Uu(e)-1-t>6)switch(Vu(e,t+1)){case 109:if(45!==Vu(e,t+4))break;case 102:return Hu(e,/(.+:)(.+)-([^]+)/,"$1"+Tu+"$2-$3$1"+Du+(108==Vu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wu(e,"stretch",0)?Cc(Hu(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Hu(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Lu+r+":"+n+s+(o?Lu+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===Vu(e,t+6))return Hu(e,":",":"+Tu)+e;break;case 6444:switch(Vu(e,45===Vu(e,14)?18:11)){case 120:return Hu(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Tu+(45===Vu(e,14)?"inline-":"")+"box$3$1"+Tu+"$2$3$1"+Lu+"$2box$3")+e;case 100:return Hu(e,":",":"+Lu)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Hu(e,"scroll-","scroll-snap-")+e}return e}function wc(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Ec(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case qu:return e.return=e.return||e.value;case _u:return"";case Nu:return e.return=e.value+"{"+wc(e.children,n)+"}";case Ou:if(!Uu(e.value=e.props.join(",")))return""}return Uu(r=wc(e.children,n))?e.return=e.value+"{"+r+"}":""}function Rc(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case qu:return void(e.return=Cc(e.value,e.length,r));case Nu:return wc([oc(e,{value:Hu(e.value,"@","@"+Tu)})],n);case Ou:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Bu(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ic(oc(e,{props:[Hu(t,/:(read-\w+)/,":-moz-$1")]})),ic(oc(e,{props:[t]})),Fu(e,{props:Xu(r,n)});break;case"::placeholder":ic(oc(e,{props:[Hu(t,/:(plac\w+)/,":"+Tu+"input-$1")]})),ic(oc(e,{props:[Hu(t,/:(plac\w+)/,":-moz-$1")]})),ic(oc(e,{props:[Hu(t,/:(plac\w+)/,Lu+"input-$1")]})),ic(oc(e,{props:[t]})),Fu(e,{props:Xu(r,n)})}return""}))}}var Ac={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},Pc="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",kc="active",Mc="data-styled-version",Ic="6.1.18",Lc="/*!sc*/\n",Dc="undefined"!=typeof window&&"undefined"!=typeof document,Tc=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)),_c={},Oc=Object.freeze([]),qc=Object.freeze({});function Nc(e,t,r){return void 0===r&&(r=qc),e.theme!==r.theme&&e.theme||t||r.theme}var jc=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"]),zc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Fc=/(^-|-$)/g;function $c(e){return e.replace(zc,"-").replace(Fc,"")}var Bc=/(a)(d)/gi,Hc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Wc(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Hc(t%52)+r;return(Hc(t%52)+r).replace(Bc,"$1-$2")}var Vc,Gc=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Uc=function(e){return Gc(5381,e)};function Yc(e){return Wc(Uc(e)>>>0)}function Kc(e){return"string"==typeof e&&!0}var Xc="function"==typeof Symbol&&Symbol.for,Jc=Xc?Symbol.for("react.memo"):60115,Zc=Xc?Symbol.for("react.forward_ref"):60112,Qc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ed={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},td={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},rd=((Vc={})[Zc]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vc[Jc]=td,Vc);function nd(e){return("type"in(t=e)&&t.type.$$typeof)===Jc?td:"$$typeof"in e?rd[e.$$typeof]:Qc;var t}var od=Object.defineProperty,id=Object.getOwnPropertyNames,ad=Object.getOwnPropertySymbols,sd=Object.getOwnPropertyDescriptor,ld=Object.getPrototypeOf,ud=Object.prototype;function cd(e,t,r){if("string"!=typeof t){if(ud){var n=ld(t);n&&n!==ud&&cd(e,n,r)}var o=id(t);ad&&(o=o.concat(ad(t)));for(var i=nd(e),a=nd(t),s=0;s<o.length;++s){var l=o[s];if(!(l in ed||r&&r[l]||a&&l in a||i&&l in i)){var u=sd(t,l);try{od(e,l,u)}catch(e){}}}}return e}function dd(e){return"function"==typeof e}function pd(e){return"object"==typeof e&&"styledComponentId"in e}function fd(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function hd(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function md(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function gd(e,t,r){if(void 0===r&&(r=!1),!r&&!md(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=gd(e[n],t[n]);else if(md(t))for(var n in t)e[n]=gd(e[n],t[n]);return e}function bd(e,t){Object.defineProperty(e,"toString",{value:t})}function vd(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 yd=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 vd(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(Lc);return t},e}(),xd=new Map,Sd=new Map,Cd=1,wd=function(e){if(xd.has(e))return xd.get(e);for(;Sd.has(Cd);)Cd++;var t=Cd++;return xd.set(e,t),Sd.set(t,e),t},Ed=function(e,t){Cd=t+1,xd.set(e,t),Sd.set(t,e)},Rd="style[".concat(Pc,"][").concat(Mc,'="').concat(Ic,'"]'),Ad=new RegExp("^".concat(Pc,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Pd=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)},kd=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Lc),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Ad);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Ed(c,u),Pd(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Md=function(e){for(var t=document.querySelectorAll(Rd),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Pc)!==kc&&(kd(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Id=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Pc,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Pc,kc),n.setAttribute(Mc,Ic);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Ld=function(){function e(e){this.element=Id(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 vd(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}(),Dd=function(){function e(e){this.element=Id(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}(),Td=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}(),_d=Dc,Od={isServer:!Dc,useCSSOMInjection:!Tc},qd=function(){function e(e,t,r){void 0===e&&(e=qc),void 0===t&&(t={});var n=this;this.options=Pu(Pu({},Od),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Dc&&_d&&(_d=!1,Md(this)),bd(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Sd.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(Pc,".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(Lc)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return wd(e)},e.prototype.rehydrate=function(){!this.server&&Dc&&Md(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Pu(Pu({},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 Td(r):t?new Ld(r):new Dd(r)}(this.options),new yd(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(wd(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(wd(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(wd(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Nd=/&/g,jd=/^\s*\/\/.*$/gm;function zd(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=zd(e.children,t)),e}))}function Fd(e){var t,r,n,o=void 0===e?qc:e,i=o.options,a=void 0===i?qc:i,s=o.plugins,l=void 0===s?Oc: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===Ou&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Nd,r).replace(n,u))})),a.prefix&&c.push(Rc),c.push(Ec);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(jd,""),u=bc(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=zd(u,a.namespace));var d,p=[];return wc(u,function(e){var t=Yu(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||vd(15),Gc(e,t.name)}),5381).toString():"",d}var $d=new qd,Bd=Fd(),Hd=x.createContext({shouldForwardProp:void 0,styleSheet:$d,stylis:Bd});Hd.Consumer;var Wd=x.createContext(void 0);function Vd(){return S(Hd)}function Gd(e){var t=C(e.stylisPlugins),r=t[0],n=t[1],o=Vd().styleSheet,i=w((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=w((function(){return Fd({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);E((function(){Iu(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var s=w((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(Hd.Provider,{value:s},x.createElement(Wd.Provider,{value:a},e.children))}var Ud=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Bd);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,bd(this,(function(){throw vd(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Bd),this.name+e.hash},e}(),Yd=function(e){return e>="A"&&e<="Z"};function Kd(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Yd(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Xd=function(e){return null==e||!1===e||""===e},Jd=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Xd(i)&&(Array.isArray(i)&&i.isCss||dd(i)?n.push("".concat(Kd(o),":"),i,";"):md(i)?n.push.apply(n,ku(ku(["".concat(o," {")],Jd(i),!1),["}"],!1)):n.push("".concat(Kd(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Ac||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Zd(e,t,r,n){return Xd(e)?[]:pd(e)?[".".concat(e.styledComponentId)]:dd(e)?!dd(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Zd(e(t),t,r,n):e instanceof Ud?r?(e.inject(r,n),[e.getName(n)]):[e]:md(e)?Jd(e):Array.isArray(e)?Array.prototype.concat.apply(Oc,e.map((function(e){return Zd(e,t,r,n)}))):[e.toString()];var o}function Qd(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(dd(r)&&!pd(r))return!1}return!0}var ep=Uc(Ic),tp=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Qd(e),this.componentId=t,this.baseHash=Gc(ep,t),this.baseStyle=r,qd.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=fd(n,this.staticRulesId);else{var o=hd(Zd(this.rules,e,t,r)),i=Wc(Gc(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=fd(n,i),this.staticRulesId=i}else{for(var s=Gc(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=hd(Zd(c,e,t,r));s=Gc(s,d+u),l+=d}}if(l){var p=Wc(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=fd(n,p)}}return n},e}(),rp=x.createContext(void 0);rp.Consumer;var np={};function op(e,t,r){var n=pd(e),o=e,i=!Kc(e),a=t.attrs,s=void 0===a?Oc:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":$c(e);np[r]=(np[r]||0)+1;var n="".concat(r,"-").concat(Yc(Ic+r+np[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return Kc(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat($c(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 tp(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(rp),c=Vd(),d=e.shouldForwardProp||c.shouldForwardProp,p=Nc(t,u,i)||qc,f=function(e,t,r){for(var n,o=Pu(Pu({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=dd(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?fd(o[s],a[s]):"style"===s?Pu(Pu({},o[s]),a[s]):a[s]}return t.className&&(o.className=fd(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=Vd();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=fd(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Kc(h)&&!jc.has(h)?"class":"className"]=v,r&&(m.ref=r),R(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?fd(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++)gd(e,o[n],!0);return e}({},o.defaultProps,e):e}}),bd(y,(function(){return".".concat(y.styledComponentId)})),i&&cd(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function ip(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 ap=function(e){return Object.assign(e,{isCss:!0})};function sp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(dd(e)||md(e))return ap(Zd(ip(Oc,ku([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Zd(n):ap(Zd(ip(n,t)))}function lp(e,t,r){if(void 0===r&&(r=qc),!t)throw vd(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,sp.apply(void 0,ku([n],o,!1)))};return n.attrs=function(n){return lp(e,t,Pu(Pu({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return lp(e,t,Pu(Pu({},r),n))},n}var up=function(e){return lp(op,e)},cp=up;jc.forEach((function(e){cp[e]=up(e)}));var dp=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Qd(e),qd.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(hd(Zd(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&&qd.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function pp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=hd(sp.apply(void 0,ku([e],t,!1))),o=Yc(n);return new Ud(o,n)}function fp(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}fp.propTypes={children:kt.node,injectFirst:kt.bool};const hp=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=sp.apply(void 0,ku([e],t,!1)),o="sc-global-".concat(Yc(JSON.stringify(n))),i=new dp(n,o),a=function(e){var t=Vd(),r=x.useContext(rp),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,_c,r,o);else{var s=Pu(Pu({},t),{theme:Nc(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 mp(e,t){let r;return r=t?cp(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):cp(e),r}function gp(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function bp(e){return e}hp.propTypes={defaultTheme:kt.object,styles:kt.oneOfType([kt.array,kt.string,kt.object,kt.func])};var vp=Object.freeze({__proto__:null,GlobalStyles:hp,StyledEngineProvider:fp,ThemeContext:rp,css:sp,default:mp,internal_mutateStyles:gp,internal_processStyles:function(e,t){return gp(e,t)},internal_serializeStyles:bp,keyframes:pp});function yp(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 xp(e){if(y.isValidElement(e)||!yp(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=xp(e[r])})),t}function Sp(e,t,r={clone:!0}){const n=r.clone?so({},e):e;return yp(e)&&yp(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:yp(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&yp(e[o])?n[o]=Sp(e[o],t[o],r):r.clone?n[o]=yp(t[o])?xp(t[o]):t[o]:n[o]=t[o]})),n}var Cp=Object.freeze({__proto__:null,default:Sp,isPlainObject:yp});const wp=["values","unit","step"];function Ep(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=bo(e,wp),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)=>so({},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 so({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 Rp={borderRadius:4};function Ap(e,t){return t?Sp(e,t,{clone:!1}):e}const Pp={xs:0,sm:600,md:900,lg:1200,xl:1536},kp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Pp[e]}px)`};function Mp(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||kp;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||kp;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Pp).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ip(e){if("string"!=typeof e)throw new Error(Cu(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Lp=Object.freeze({__proto__:null,default:Ip});function Dp(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 Tp(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Dp(e,r)||n,t&&(o=t(o,n,e)),o}function _p(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=Dp(e.theme,n)||{};return Mp(e,i,(e=>{let n=Tp(a,o,e);return e===n&&"string"==typeof e&&(n=Tp(a,o,`${t}${"default"===e?"":Ip(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Op={m:"margin",p:"padding"},qp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Np={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jp=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Np[e])return[e];e=Np[e]}const[t,r]=e.split(""),n=Op[t],o=qp[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),zp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function $p(e,t,r,n){var o;const i=null!=(o=Dp(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 Bp(e){return $p(e,"spacing",8)}function Hp(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 Wp(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Hp(t,r),e)),{})}(jp(r),n);return Mp(e,e[r],o)}function Vp(e,t){const r=Bp(e.theme);return Object.keys(e).map((n=>Wp(e,t,n,r))).reduce(Ap,{})}function Gp(e){return Vp(e,zp)}function Up(e){return Vp(e,Fp)}function Yp(...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]?Ap(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Kp(e){return"number"!=typeof e?e:`${e}px solid`}function Xp(e,t){return _p({prop:e,themeKey:"borders",transform:t})}Gp.propTypes={},Gp.filterProps=zp,Up.propTypes={},Up.filterProps=Fp;const Jp=Xp("border",Kp),Zp=Xp("borderTop",Kp),Qp=Xp("borderRight",Kp),ef=Xp("borderBottom",Kp),tf=Xp("borderLeft",Kp),rf=Xp("borderColor"),nf=Xp("borderTopColor"),of=Xp("borderRightColor"),af=Xp("borderBottomColor"),sf=Xp("borderLeftColor"),lf=Xp("outline",Kp),uf=Xp("outlineColor"),cf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=$p(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Hp(t,e)});return Mp(e,e.borderRadius,r)}return null};cf.propTypes={},cf.filterProps=["borderRadius"],Yp(Jp,Zp,Qp,ef,tf,rf,nf,of,af,sf,cf,lf,uf);const df=e=>{if(void 0!==e.gap&&null!==e.gap){const t=$p(e.theme,"spacing",8),r=e=>({gap:Hp(t,e)});return Mp(e,e.gap,r)}return null};df.propTypes={},df.filterProps=["gap"];const pf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=$p(e.theme,"spacing",8),r=e=>({columnGap:Hp(t,e)});return Mp(e,e.columnGap,r)}return null};pf.propTypes={},pf.filterProps=["columnGap"];const ff=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=$p(e.theme,"spacing",8),r=e=>({rowGap:Hp(t,e)});return Mp(e,e.rowGap,r)}return null};ff.propTypes={},ff.filterProps=["rowGap"];function hf(e,t){return"grey"===t?t:e}Yp(df,pf,ff,_p({prop:"gridColumn"}),_p({prop:"gridRow"}),_p({prop:"gridAutoFlow"}),_p({prop:"gridAutoColumns"}),_p({prop:"gridAutoRows"}),_p({prop:"gridTemplateColumns"}),_p({prop:"gridTemplateRows"}),_p({prop:"gridTemplateAreas"}),_p({prop:"gridArea"}));function mf(e){return e<=1&&0!==e?100*e+"%":e}Yp(_p({prop:"color",themeKey:"palette",transform:hf}),_p({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:hf}),_p({prop:"backgroundColor",themeKey:"palette",transform:hf}));const gf=_p({prop:"width",transform:mf}),bf=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])||Pp[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:mf(t)}};return Mp(e,e.maxWidth,t)}return null};bf.filterProps=["maxWidth"];const vf=_p({prop:"minWidth",transform:mf}),yf=_p({prop:"height",transform:mf}),xf=_p({prop:"maxHeight",transform:mf}),Sf=_p({prop:"minHeight",transform:mf});_p({prop:"size",cssProperty:"width",transform:mf}),_p({prop:"size",cssProperty:"height",transform:mf});Yp(gf,bf,vf,yf,xf,Sf,_p({prop:"boxSizing"}));const Cf={border:{themeKey:"borders",transform:Kp},borderTop:{themeKey:"borders",transform:Kp},borderRight:{themeKey:"borders",transform:Kp},borderBottom:{themeKey:"borders",transform:Kp},borderLeft:{themeKey:"borders",transform:Kp},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Kp},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cf},color:{themeKey:"palette",transform:hf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:hf},backgroundColor:{themeKey:"palette",transform:hf},p:{style:Up},pt:{style:Up},pr:{style:Up},pb:{style:Up},pl:{style:Up},px:{style:Up},py:{style:Up},padding:{style:Up},paddingTop:{style:Up},paddingRight:{style:Up},paddingBottom:{style:Up},paddingLeft:{style:Up},paddingX:{style:Up},paddingY:{style:Up},paddingInline:{style:Up},paddingInlineStart:{style:Up},paddingInlineEnd:{style:Up},paddingBlock:{style:Up},paddingBlockStart:{style:Up},paddingBlockEnd:{style:Up},m:{style:Gp},mt:{style:Gp},mr:{style:Gp},mb:{style:Gp},ml:{style:Gp},mx:{style:Gp},my:{style:Gp},margin:{style:Gp},marginTop:{style:Gp},marginRight:{style:Gp},marginBottom:{style:Gp},marginLeft:{style:Gp},marginX:{style:Gp},marginY:{style:Gp},marginInline:{style:Gp},marginInlineStart:{style:Gp},marginInlineEnd:{style:Gp},marginBlock:{style:Gp},marginBlockStart:{style:Gp},marginBlockEnd:{style:Gp},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:df},rowGap:{style:ff},columnGap:{style:pf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mf},maxWidth:{style:bf},minWidth:{transform:mf},height:{transform:mf},maxHeight:{transform:mf},minHeight:{transform:mf},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wf(){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=Dp(r,s)||{};if(u)return u(o);return Mp(o,t,(t=>{let r=Tp(c,l,t);return t===r&&"string"==typeof t&&(r=Tp(c,l,`${e}${"default"===t?"":Ip(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:Cf;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=Ap(l,e(r,o,i,a));else{const e=Mp({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=Ap(l,e):l[r]=t({sx:o,theme:i})}else l=Ap(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 Ef=wf();function Rf(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:{}}Ef.filterProps=["sx"];const Af=["breakpoints","palette","spacing","shape"];function Pf(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=bo(e,Af),s=Ep(r),l=function(e=8){if(e.mui)return e;const t=Bp({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=Sp({breakpoints:s,direction:"ltr",components:{},palette:so({mode:"light"},n),spacing:l,shape:so({},Rp,i)},a);return u.applyStyles=Rf,u=t.reduce(((e,t)=>Sp(e,t)),u),u.unstable_sxConfig=so({},Cf,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ef({sx:e,theme:this})},u}var kf=Object.freeze({__proto__:null,default:Pf,private_createBreakpoints:Ep,unstable_applyStyles:Rf});function Mf(e=null){const t=y.useContext(rp);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const If=Pf();function Lf(e=If){return Mf(e)}function Df({styles:e,themeId:t,defaultTheme:r={}}){const n=Lf(r),o="function"==typeof e?e(t&&n[t]||n):e;return Il.jsx(hp,{styles:o})}const Tf=["sx"];function _f(e){const{sx:t}=e,r=bo(e,Tf),{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:Cf;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 yp(r)?so({},n,r):n}:so({},n,t),so({},o,{sx:i})}var Of=Object.freeze({__proto__:null,default:Ef,extendSxProp:_f,unstable_createStyleFunctionSx:wf,unstable_defaultSxConfig:Cf});const qf=e=>e,Nf=(()=>{let e=qf;return{configure(t){e=t},generate:t=>e(t),reset(){e=qf}}})();function jf(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=jf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function zf(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=jf(e))&&(n&&(n+=" "),n+=t);return n}const Ff=["className","component"];const $f={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 Bf(e,t,r="Mui"){const n=$f[t];return n?`${r}-${n}`:`${Nf.generate(e)}-${t}`}function Hf(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Bf(e,t,r)})),n}var Wf={exports:{}},Vf={},Gf=Symbol.for("react.transitional.element"),Uf=Symbol.for("react.portal"),Yf=Symbol.for("react.fragment"),Kf=Symbol.for("react.strict_mode"),Xf=Symbol.for("react.profiler"),Jf=Symbol.for("react.consumer"),Zf=Symbol.for("react.context"),Qf=Symbol.for("react.forward_ref"),eh=Symbol.for("react.suspense"),th=Symbol.for("react.suspense_list"),rh=Symbol.for("react.memo"),nh=Symbol.for("react.lazy"),oh=Symbol.for("react.offscreen"),ih=Symbol.for("react.client.reference");function ah(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Gf:switch(e=e.type){case Yf:case Xf:case Kf:case eh:case th:return e;default:switch(e=e&&e.$$typeof){case Zf:case Qf:case nh:case rh:case Jf:return e;default:return t}}case Uf:return t}}}Vf.ContextConsumer=Jf,Vf.ContextProvider=Zf,Vf.Element=Gf,Vf.ForwardRef=Qf,Vf.Fragment=Yf,Vf.Lazy=nh,Vf.Memo=rh,Vf.Portal=Uf,Vf.Profiler=Xf,Vf.StrictMode=Kf,Vf.Suspense=eh,Vf.SuspenseList=th,Vf.isContextConsumer=function(e){return ah(e)===Jf},Vf.isContextProvider=function(e){return ah(e)===Zf},Vf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Gf},Vf.isForwardRef=function(e){return ah(e)===Qf},Vf.isFragment=function(e){return ah(e)===Yf},Vf.isLazy=function(e){return ah(e)===nh},Vf.isMemo=function(e){return ah(e)===rh},Vf.isPortal=function(e){return ah(e)===Uf},Vf.isProfiler=function(e){return ah(e)===Xf},Vf.isStrictMode=function(e){return ah(e)===Kf},Vf.isSuspense=function(e){return ah(e)===eh},Vf.isSuspenseList=function(e){return ah(e)===th},Vf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Yf||e===Xf||e===Kf||e===eh||e===th||e===oh||"object"==typeof e&&null!==e&&(e.$$typeof===nh||e.$$typeof===rh||e.$$typeof===Zf||e.$$typeof===Jf||e.$$typeof===Qf||e.$$typeof===ih||void 0!==e.getModuleId)},Vf.typeOf=ah,Wf.exports=Vf;var sh=Wf.exports;const lh=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function uh(e){const t=`${e}`.match(lh);return t&&t[1]||""}function ch(e,t=""){return e.displayName||e.name||uh(e)||t}function dh(e,t,r){const n=ch(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var ph=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return ch(e,"Component");if("object"==typeof e)switch(e.$$typeof){case sh.ForwardRef:return dh(e,e.render,"ForwardRef");case sh.Memo:return dh(e,e.type,"memo");default:return}}},getFunctionName:uh});function fh(e,t){const r=so({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=so({},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]=so({},i),Object.keys(o).forEach((e=>{r[n][e]=fh(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const hh="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function mh(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var gh=Object.freeze({__proto__:null,default:mh});function bh(e){if(e.type)return e;if("#"===e.charAt(0))return bh(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(Cu(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(Cu(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function vh(e,t){return e=bh(e),t=function(e,t=0,r=1){return mh(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 yh(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function xh(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Sh(e){return e&&e.ownerDocument||document}function Ch(e){return Sh(e).defaultView||window}function wh(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Eh=0;const Rh=y["useId".toString()];function Ah(e){if(void 0!==Rh){return Rh()}return function(e){const[t,r]=y.useState(e),n=t;return y.useEffect((()=>{null==t&&(Eh+=1,r(`mui-${Eh}`))}),[t]),n}(e)}function Ph({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function kh(e){const t=y.useRef(e);return hh((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Mh(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{wh(e,t)}))}),e)}const Ih={};const Lh=[];class Dh{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Dh}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Th(){const e=function(e,t){const r=y.useRef(Ih);return r.current===Ih&&(r.current=e(t)),r}(Dh.create).current;return function(e){y.useEffect(e,Lh)}(e.disposeEffect),e}let _h=!0,Oh=!1;const qh=new Dh,Nh={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 jh(e){e.metaKey||e.altKey||e.ctrlKey||(_h=!0)}function zh(){_h=!1}function Fh(){"hidden"===this.visibilityState&&Oh&&(_h=!0)}function $h(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return _h||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Nh[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Bh(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",jh,!0),t.addEventListener("mousedown",zh,!0),t.addEventListener("pointerdown",zh,!0),t.addEventListener("touchstart",zh,!0),t.addEventListener("visibilitychange",Fh,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!$h(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Oh=!0,qh.start(100,(()=>{Oh=!1})),t.current=!1,!0)},ref:e}}function Hh(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Wh(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 Vh(e){return"string"==typeof e}function Gh(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 Uh(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 Yh=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Kh(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=bo(e,Yh),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=zf(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=so({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=so({},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=Gh(so({},o,n)),s=Uh(n),l=Uh(o),u=t(a),c=zf(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=so({},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=so({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(so({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Vh(e)?t:so({},t,{ownerState:so({},t.ownerState,r)})}(r,so({},l,{ref:Mh(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Xh(e){var t;return parseInt(y.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Jh=y.createContext(null);function Zh(){return y.useContext(Jh)}var Qh="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function em(e){const{children:t,theme:r}=e,n=Zh(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return so({},e,t)}(n,r);return null!=e&&(e[Qh]=null!==n),e}),[r,n]);return Il.jsx(Jh.Provider,{value:o,children:t})}const tm=y.createContext(),rm=y.createContext(void 0);function nm({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?fh(o.defaultProps,n):o.styleOverrides||o.variants?n:fh(o,n)}({props:e,name:t,theme:{components:y.useContext(rm)}})}function om(e,t){return Ru({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var im,am={},sm={exports:{}};(im=sm).exports=function(e){return e&&e.__esModule?e:{default:e}},im.exports.__esModule=!0,im.exports.default=im.exports;var lm=sm.exports,um=Et(wu),cm=Et(gh),dm=lm;Object.defineProperty(am,"__esModule",{value:!0});var pm=am.alpha=Rm;am.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=xm(e),a=xm(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Cm({type:"rgb",values:s})},am.colorChannel=void 0;var fm=am.darken=Am;am.decomposeColor=xm,am.emphasize=km;var hm=am.getContrastRatio=function(e,t){const r=Em(e),n=Em(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};am.getLuminance=Em,am.hexToRgb=ym,am.hslToRgb=wm;var mm=am.lighten=Pm;am.private_safeAlpha=function(e,t,r){try{return Rm(e,t)}catch(t){return e}},am.private_safeColorChannel=void 0,am.private_safeDarken=function(e,t,r){try{return Am(e,t)}catch(t){return e}},am.private_safeEmphasize=function(e,t,r){try{return km(e,t)}catch(t){return e}},am.private_safeLighten=function(e,t,r){try{return Pm(e,t)}catch(t){return e}},am.recomposeColor=Cm,am.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=xm(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 gm=dm(um),bm=dm(cm);function vm(e,t=0,r=1){return(0,bm.default)(e,t,r)}function ym(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 xm(e){if(e.type)return e;if("#"===e.charAt(0))return xm(ym(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,gm.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,gm.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Sm=e=>{const t=xm(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};am.colorChannel=Sm;function Cm(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 wm(e){e=xm(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])),Cm({type:s,values:l})}function Em(e){let t="hsl"===(e=xm(e)).type||"hsla"===e.type?xm(wm(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 Rm(e,t){return e=xm(e),t=vm(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Cm(e)}function Am(e,t){if(e=xm(e),t=vm(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 Cm(e)}function Pm(e,t){if(e=xm(e),t=vm(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 Cm(e)}function km(e,t=.15){return Em(e)>.5?Am(e,t):Pm(e,t)}am.private_safeColorChannel=(e,t)=>{try{return Sm(e)}catch(t){return e}};const Mm=["mode","contrastThreshold","tonalOffset"],Im={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:Bl.white,default:Bl.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}},Lm={text:{primary:Bl.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:Bl.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 Dm(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=mm(e.main,o):"dark"===t&&(e.dark=fm(e.main,i)))}function Tm(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Au(e,Mm),i=e.primary||function(e="light"){return"dark"===e?{main:tu,light:eu,dark:ru}:{main:nu,light:ru,dark:ou}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Kl,light:Yl,dark:Jl}:{main:Zl,light:Xl,dark:Ql}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Vl,light:Hl,dark:Gl}:{main:Gl,light:Wl,dark:Ul}}(t),l=e.info||function(e="light"){return"dark"===e?{main:au,light:iu,dark:lu}:{main:lu,light:su,dark:uu}}(t),u=e.success||function(e="light"){return"dark"===e?{main:du,light:cu,dark:fu}:{main:hu,light:pu,dark:mu}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:bu,light:gu,dark:yu}:{main:"#ed6c02",light:vu,dark:xu}}(t);function d(e){return hm(e,Lm.text.primary)>=r?Lm.text.primary:Im.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ru({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Cu(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Cu(12,t?` (${t})`:"",JSON.stringify(e.main)));return Dm(e,"light",o,n),Dm(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Lm,light:Im};return Sp(Ru({common:Ru({},Bl),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:Su,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const _m=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Om={textTransform:"uppercase"},qm='"Roboto", "Helvetica", "Arial", sans-serif';function Nm(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=qm,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Au(r,_m),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Ru({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===qm?{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,Om),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Om),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Sp(Ru({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function jm(...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 zm=["none",jm(0,2,1,-1,0,1,1,0,0,1,3,0),jm(0,3,1,-2,0,2,2,0,0,1,5,0),jm(0,3,3,-2,0,3,4,0,0,1,8,0),jm(0,2,4,-1,0,4,5,0,0,1,10,0),jm(0,3,5,-1,0,5,8,0,0,1,14,0),jm(0,3,5,-1,0,6,10,0,0,1,18,0),jm(0,4,5,-2,0,7,10,1,0,2,16,1),jm(0,5,5,-3,0,8,10,1,0,3,14,2),jm(0,5,6,-3,0,9,12,1,0,3,16,2),jm(0,6,6,-3,0,10,14,1,0,4,18,3),jm(0,6,7,-4,0,11,15,1,0,4,20,3),jm(0,7,8,-4,0,12,17,2,0,5,22,4),jm(0,7,8,-4,0,13,19,2,0,5,24,4),jm(0,7,9,-4,0,14,21,2,0,5,26,4),jm(0,8,9,-5,0,15,22,2,0,6,28,5),jm(0,8,10,-5,0,16,24,2,0,6,30,5),jm(0,8,11,-5,0,17,26,2,0,6,32,5),jm(0,9,11,-5,0,18,28,2,0,7,34,6),jm(0,9,12,-6,0,19,29,2,0,7,36,6),jm(0,10,13,-6,0,20,31,3,0,8,38,7),jm(0,10,13,-6,0,21,33,3,0,8,40,7),jm(0,10,14,-6,0,22,35,3,0,8,42,7),jm(0,11,14,-7,0,23,36,3,0,9,44,8),jm(0,11,15,-7,0,24,38,3,0,9,46,8)],Fm=["duration","easing","delay"],$m={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)"},Bm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Hm(e){return`${Math.round(e)}ms`}function Wm(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Vm(e){const t=Ru({},$m,e.easing),r=Ru({},Bm,e.duration);return Ru({getAutoHeightDuration:Wm,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Au(n,Fm),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Hm(o)} ${i} ${"string"==typeof a?a:Hm(a)}`)).join(",")}},e,{easing:t,duration:r})}const Gm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Um=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ym(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Au(e,Um);if(e.vars&&void 0===e.generateCssVars)throw new Error(Cu(18));const s=Tm(n),l=Pf(e);let u=Sp(l,{mixins:om(l.breakpoints,r),palette:s,shadows:zm.slice(),typography:Nm(s,i),transitions:Vm(o),zIndex:Ru({},Gm)});return u=Sp(u,a),u=t.reduce(((e,t)=>Sp(e,t)),u),u.unstable_sxConfig=Ru({},Cf,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ef({sx:e,theme:this})},u}const Km=Ym();function Xm(){const e=Lf(Km);return e[Eu]||e}var Jm,Zm={},Qm={exports:{}};var eg,tg={exports:{}};var rg=Et(vp),ng=Et(Cp),og=Et(Lp),ig=Et(ph),ag=Et(kf),sg=Et(Of),lg=lm;Object.defineProperty(Zm,"__esModule",{value:!0});var ug=Zm.default=function(e={}){const{themeId:t,defaultTheme:r=Sg,rootShouldForwardProp:n=xg,slotShouldForwardProp:o=xg}=e,i=e=>(0,mg.default)((0,cg.default)({},e,{theme:wg((0,cg.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,pg.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Eg(Cg(l))}=a,p=(0,dg.default)(a,vg),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,h=c||!1;let m=xg;"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,pg.default)(e,(0,cg.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,fg.isPlainObject)(e)?n=>Rg(e,(0,cg.default)({},n,{theme:wg({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=wg((0,cg.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]=Rg(r,(0,cg.default)({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=wg((0,cg.default)({},e,{defaultTheme:r,themeId:t}));return Rg({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,cg.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}};Zm.shouldForwardProp=xg,Zm.systemDefaultTheme=void 0;var cg=lg((Jm||(Jm=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}(Qm)),Qm.exports)),dg=lg((eg||(eg=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}(tg)),tg.exports)),pg=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=yg(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}(rg),fg=ng;lg(og),lg(ig);var hg=lg(ag),mg=lg(sg);const gg=["ownerState"],bg=["variants"],vg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yg(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(yg=function(e){return e?r:t})(e)}function xg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Sg=Zm.systemDefaultTheme=(0,hg.default)(),Cg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function wg({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Eg(e){return e?(t,r)=>r[e]:null}function Rg(e,t){let{ownerState:r}=t,n=(0,dg.default)(t,gg);const o="function"==typeof e?e((0,cg.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Rg(e,(0,cg.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,dg.default)(o,bg);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,cg.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,cg.default)({ownerState:r},n,r)):e.style))})),t}return o}function Ag(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Pg=e=>Ag(e)&&"classes"!==e,kg=ug({themeId:Eu,defaultTheme:Km,rootShouldForwardProp:Pg}),Mg=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ig(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=Ig(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Lg(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ig(e))&&(n&&(n+=" "),n+=t);return n}function Dg(e){return nm(e)}function Tg(e){return Bf("MuiSvgIcon",e)}Hf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _g=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Og=kg("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Ip(r.color)}`],t[`fontSize${Ip(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]}})),qg=y.forwardRef((function(e,t){const r=Dg({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=Au(r,_g),f=y.isValidElement(n)&&"svg"===n.type,h=Ru({},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 Wh({root:["root","inherit"!==t&&`color${Ip(t)}`,`fontSize${Ip(r)}`]},Tg,n)})(h);return Il.jsxs(Og,Ru({as:a,className:Lg(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?Il.jsx("title",{children:c}):null]}))}));qg.muiName="SvgIcon";var Ng=!1,jg=x.createContext(null),zg="unmounted",Fg="exited",$g="entering",Bg="entered",Hg="exiting",Wg=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=Fg,n.appearStatus=$g):o=Bg:o=t.unmountOnExit||t.mountOnEnter?zg:Fg,n.state={status:o},n.nextCallback=null,n}mo(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===zg?{status:Fg}: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!==$g&&r!==Bg&&(t=$g):r!==$g&&r!==Bg||(t=Hg)}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===$g){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===Fg&&this.setState({status:zg})},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||Ng?this.safeSetState({status:Bg},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:$g},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Bg},(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&&!Ng?(this.props.onExit(n),this.safeSetState({status:Hg},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Fg},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Fg},(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===zg)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=bo(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(jg.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Vg(){}function Gg(e,t){var r=Object.create(null);return e&&k.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&A(e)?t(e):e}(e)})),r}function Ug(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Yg(e,t,r){var n=Gg(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]=P(a,{onExited:r.bind(null,a),in:u.props.in,exit:Ug(a,"exit",e),enter:Ug(a,"enter",e)})):o[i]=P(a,{in:!1}):o[i]=P(a,{onExited:r.bind(null,a),in:!0,exit:Ug(a,"exit",e),enter:Ug(a,"enter",e)})}})),o}Wg.contextType=jg,Wg.propTypes={},Wg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vg,onEntering:Vg,onEntered:Vg,onExit:Vg,onExiting:Vg,onExited:Vg},Wg.UNMOUNTED=zg,Wg.EXITED=Fg,Wg.ENTERING=$g,Wg.ENTERED=Bg,Wg.EXITING=Hg;var Kg=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Xg=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(go(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}mo(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,Gg(r.children,(function(e){return P(e,{onExited:n.bind(null,e),in:!0,appear:Ug(e,"appear",r),enter:Ug(e,"enter",r),exit:Ug(e,"exit",r)})}))):Yg(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Gg(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=so({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=bo(e,["component","childFactory"]),o=this.state.contextValue,i=Kg(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(jg.Provider,{value:o},i):x.createElement(jg.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);Xg.propTypes={},Xg.defaultProps={component:"div",childFactory:function(e){return e}};const Jg=e=>e.scrollTop;function Zg(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 Qg(e){return Bf("MuiPaper",e)}Hf("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 eb=["className","component","elevation","square","variant"],tb=kg("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 Ru({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&&Ru({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${pm("#fff",Mg(t.elevation))}, ${pm("#fff",Mg(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),rb=y.forwardRef((function(e,t){const r=Dg({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Au(r,eb),u=Ru({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Wh({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Qg,o)})(u);return Il.jsx(tb,Ru({as:o,ownerState:u,className:Lg(c.root,n),ref:t},l))}));const nb=Hf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ob=["center","classes","className"];let ib,ab,sb,lb,ub=e=>e;const cb=pp(ib||(ib=ub`
|
|
17
|
+
function qi(e,t){let r;return r=t?Ei(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ei(e),r}function Li(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Oi(e){return e}Ti.propTypes={defaultTheme:Di.object,styles:Di.oneOfType([Di.array,Di.string,Di.object,Di.func])};var Ni=Object.freeze({__proto__:null,GlobalStyles:Ti,StyledEngineProvider:ki,ThemeContext:gi,css:Si,default:qi,internal_mutateStyles:Li,internal_processStyles:function(e,t){return Li(e,t)},internal_serializeStyles:Oi,keyframes:Pi});function _i(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 ji(e){if(y.isValidElement(e)||!_i(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=ji(e[r])})),t}function zi(e,t,r={clone:!0}){const n=r.clone?_r({},e):e;return _i(e)&&_i(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:_i(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&_i(e[o])?n[o]=zi(e[o],t[o],r):r.clone?n[o]=_i(t[o])?ji(t[o]):t[o]:n[o]=t[o]})),n}var Fi=Object.freeze({__proto__:null,default:zi,isPlainObject:_i});const Hi=["values","unit","step"];function $i(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=jr(e,Hi),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)=>_r({},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 _r({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 Bi={borderRadius:4};function Vi(e,t){return t?zi(e,t,{clone:!1}):e}const Wi={xs:0,sm:600,md:900,lg:1200,xl:1536},Ui={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Wi[e]}px)`};function Gi(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Ui;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Ui;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Wi).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Yi(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function Ki(e){if("string"!=typeof e)throw new Error(Lr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Xi=Object.freeze({__proto__:null,default:Ki});function Ji(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 Zi(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ji(e,r)||n,t&&(o=t(o,n,e)),o}function Qi(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=Ji(e.theme,n)||{};return Gi(e,i,(e=>{let n=Zi(a,o,e);return e===n&&"string"==typeof e&&(n=Zi(a,o,`${t}${"default"===e?"":Ki(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const ea={m:"margin",p:"padding"},ta={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ra={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},na=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!ra[e])return[e];e=ra[e]}const[t,r]=e.split(""),n=ea[t],o=ta[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),oa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ia=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function aa(e,t,r,n){var o;const i=null!=(o=Ji(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 sa(e){return aa(e,"spacing",8)}function la(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 ua(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=la(t,r),e)),{})}(na(r),n);return Gi(e,e[r],o)}function ca(e,t){const r=sa(e.theme);return Object.keys(e).map((n=>ua(e,t,n,r))).reduce(Vi,{})}function da(e){return ca(e,oa)}function pa(e){return ca(e,ia)}function fa(...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]?Vi(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ma(e){return"number"!=typeof e?e:`${e}px solid`}function ha(e,t){return Qi({prop:e,themeKey:"borders",transform:t})}da.propTypes={},da.filterProps=oa,pa.propTypes={},pa.filterProps=ia;const ga=ha("border",ma),ba=ha("borderTop",ma),va=ha("borderRight",ma),ya=ha("borderBottom",ma),xa=ha("borderLeft",ma),Sa=ha("borderColor"),wa=ha("borderTopColor"),Ca=ha("borderRightColor"),Ea=ha("borderBottomColor"),Ra=ha("borderLeftColor"),Pa=ha("outline",ma),Aa=ha("outlineColor"),Ia=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=aa(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:la(t,e)});return Gi(e,e.borderRadius,r)}return null};Ia.propTypes={},Ia.filterProps=["borderRadius"],fa(ga,ba,va,ya,xa,Sa,wa,Ca,Ea,Ra,Ia,Pa,Aa);const Ma=e=>{if(void 0!==e.gap&&null!==e.gap){const t=aa(e.theme,"spacing",8),r=e=>({gap:la(t,e)});return Gi(e,e.gap,r)}return null};Ma.propTypes={},Ma.filterProps=["gap"];const Da=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=aa(e.theme,"spacing",8),r=e=>({columnGap:la(t,e)});return Gi(e,e.columnGap,r)}return null};Da.propTypes={},Da.filterProps=["columnGap"];const ka=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=aa(e.theme,"spacing",8),r=e=>({rowGap:la(t,e)});return Gi(e,e.rowGap,r)}return null};ka.propTypes={},ka.filterProps=["rowGap"];function Ta(e,t){return"grey"===t?t:e}fa(Ma,Da,ka,Qi({prop:"gridColumn"}),Qi({prop:"gridRow"}),Qi({prop:"gridAutoFlow"}),Qi({prop:"gridAutoColumns"}),Qi({prop:"gridAutoRows"}),Qi({prop:"gridTemplateColumns"}),Qi({prop:"gridTemplateRows"}),Qi({prop:"gridTemplateAreas"}),Qi({prop:"gridArea"}));function qa(e){return e<=1&&0!==e?100*e+"%":e}fa(Qi({prop:"color",themeKey:"palette",transform:Ta}),Qi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ta}),Qi({prop:"backgroundColor",themeKey:"palette",transform:Ta}));const La=Qi({prop:"width",transform:qa}),Oa=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])||Wi[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:qa(t)}};return Gi(e,e.maxWidth,t)}return null};Oa.filterProps=["maxWidth"];const Na=Qi({prop:"minWidth",transform:qa}),_a=Qi({prop:"height",transform:qa}),ja=Qi({prop:"maxHeight",transform:qa}),za=Qi({prop:"minHeight",transform:qa});Qi({prop:"size",cssProperty:"width",transform:qa}),Qi({prop:"size",cssProperty:"height",transform:qa});fa(La,Oa,Na,_a,ja,za,Qi({prop:"boxSizing"}));const Fa={border:{themeKey:"borders",transform:ma},borderTop:{themeKey:"borders",transform:ma},borderRight:{themeKey:"borders",transform:ma},borderBottom:{themeKey:"borders",transform:ma},borderLeft:{themeKey:"borders",transform:ma},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ma},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ia},color:{themeKey:"palette",transform:Ta},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ta},backgroundColor:{themeKey:"palette",transform:Ta},p:{style:pa},pt:{style:pa},pr:{style:pa},pb:{style:pa},pl:{style:pa},px:{style:pa},py:{style:pa},padding:{style:pa},paddingTop:{style:pa},paddingRight:{style:pa},paddingBottom:{style:pa},paddingLeft:{style:pa},paddingX:{style:pa},paddingY:{style:pa},paddingInline:{style:pa},paddingInlineStart:{style:pa},paddingInlineEnd:{style:pa},paddingBlock:{style:pa},paddingBlockStart:{style:pa},paddingBlockEnd:{style:pa},m:{style:da},mt:{style:da},mr:{style:da},mb:{style:da},ml:{style:da},mx:{style:da},my:{style:da},margin:{style:da},marginTop:{style:da},marginRight:{style:da},marginBottom:{style:da},marginLeft:{style:da},marginX:{style:da},marginY:{style:da},marginInline:{style:da},marginInlineStart:{style:da},marginInlineEnd:{style:da},marginBlock:{style:da},marginBlockStart:{style:da},marginBlockEnd:{style:da},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:Ma},rowGap:{style:ka},columnGap:{style:Da},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qa},maxWidth:{style:Oa},minWidth:{transform:qa},height:{transform:qa},maxHeight:{transform:qa},minHeight:{transform:qa},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ha(){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=Ji(r,s)||{};if(u)return u(o);return Gi(o,t,(t=>{let r=Zi(c,l,t);return t===r&&"string"==typeof t&&(r=Zi(c,l,`${e}${"default"===t?"":Ki(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:Fa;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=Vi(u,e(r,o,i,s));else{const e=Gi({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=Vi(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=Vi(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":Yi(l,u)}:Yi(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const $a=Ha();function Ba(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:{}}$a.filterProps=["sx"];const Va=["breakpoints","palette","spacing","shape"];function Wa(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=jr(e,Va),s=$i(r),l=function(e=8){if(e.mui)return e;const t=sa({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=zi({breakpoints:s,direction:"ltr",components:{},palette:_r({mode:"light"},n),spacing:l,shape:_r({},Bi,i)},a);return u.applyStyles=Ba,u=t.reduce(((e,t)=>zi(e,t)),u),u.unstable_sxConfig=_r({},Fa,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return $a({sx:e,theme:this})},u}var Ua=Object.freeze({__proto__:null,default:Wa,private_createBreakpoints:$i,unstable_applyStyles:Ba});function Ga(e=null){const t=y.useContext(gi);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Ya=Wa();function Ka(e=Ya){return Ga(e)}function Xa(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ja({styles:e,themeId:t,defaultTheme:r={}}){const n=Ka(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>Xa("function"==typeof e?e(o):e))):Xa(i)),Qt.jsx(Ti,{styles:i})}const Za=["sx"];function Qa(e){const{sx:t}=e,r=jr(e,Za),{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:Fa;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 _i(r)?_r({},n,r):n}:_r({},n,t),_r({},o,{sx:i})}var es=Object.freeze({__proto__:null,default:$a,extendSxProp:Qa,unstable_createStyleFunctionSx:Ha,unstable_defaultSxConfig:Fa});const ts=e=>e,rs=(()=>{let e=ts;return{configure(t){e=t},generate:t=>e(t),reset(){e=ts}}})();function ns(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=ns(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function os(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ns(e))&&(n&&(n+=" "),n+=t);return n}const is=["className","component"];const as={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ss(e,t,r="Mui"){const n=as[t];return n?`${r}-${n}`:`${rs.generate(e)}-${t}`}function ls(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ss(e,t,r)})),n}var us={exports:{}},cs={},ds=Symbol.for("react.transitional.element"),ps=Symbol.for("react.portal"),fs=Symbol.for("react.fragment"),ms=Symbol.for("react.strict_mode"),hs=Symbol.for("react.profiler"),gs=Symbol.for("react.consumer"),bs=Symbol.for("react.context"),vs=Symbol.for("react.forward_ref"),ys=Symbol.for("react.suspense"),xs=Symbol.for("react.suspense_list"),Ss=Symbol.for("react.memo"),ws=Symbol.for("react.lazy"),Cs=Symbol.for("react.offscreen"),Es=Symbol.for("react.client.reference");function Rs(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ds:switch(e=e.type){case fs:case hs:case ms:case ys:case xs:return e;default:switch(e=e&&e.$$typeof){case bs:case vs:case ws:case Ss:case gs:return e;default:return t}}case ps:return t}}}cs.ContextConsumer=gs,cs.ContextProvider=bs,cs.Element=ds,cs.ForwardRef=vs,cs.Fragment=fs,cs.Lazy=ws,cs.Memo=Ss,cs.Portal=ps,cs.Profiler=hs,cs.StrictMode=ms,cs.Suspense=ys,cs.SuspenseList=xs,cs.isContextConsumer=function(e){return Rs(e)===gs},cs.isContextProvider=function(e){return Rs(e)===bs},cs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ds},cs.isForwardRef=function(e){return Rs(e)===vs},cs.isFragment=function(e){return Rs(e)===fs},cs.isLazy=function(e){return Rs(e)===ws},cs.isMemo=function(e){return Rs(e)===Ss},cs.isPortal=function(e){return Rs(e)===ps},cs.isProfiler=function(e){return Rs(e)===hs},cs.isStrictMode=function(e){return Rs(e)===ms},cs.isSuspense=function(e){return Rs(e)===ys},cs.isSuspenseList=function(e){return Rs(e)===xs},cs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===fs||e===hs||e===ms||e===ys||e===xs||e===Cs||"object"==typeof e&&null!==e&&(e.$$typeof===ws||e.$$typeof===Ss||e.$$typeof===bs||e.$$typeof===gs||e.$$typeof===vs||e.$$typeof===Es||void 0!==e.getModuleId)},cs.typeOf=Rs,us.exports=cs;var Ps=us.exports;const As=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Is(e){const t=`${e}`.match(As);return t&&t[1]||""}function Ms(e,t=""){return e.displayName||e.name||Is(e)||t}function Ds(e,t,r){const n=Ms(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var ks=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ms(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ps.ForwardRef:return Ds(e,e.render,"ForwardRef");case Ps.Memo:return Ds(e,e.type,"memo");default:return}}},getFunctionName:Is});function Ts(e,t){const r=_r({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=_r({},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]=_r({},i),Object.keys(o).forEach((e=>{r[n][e]=Ts(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const qs="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Ls(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Os=Object.freeze({__proto__:null,default:Ls});function Ns(e){if(e.type)return e;if("#"===e.charAt(0))return Ns(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(Lr(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(Lr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function _s(e,t){return e=Ns(e),t=function(e,t=0,r=1){return Ls(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 js(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function zs(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Fs(e){return e&&e.ownerDocument||document}function Hs(e){return Fs(e).defaultView||window}function $s(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Bs=0;const Vs=y["useId".toString()];function Ws(e){if(void 0!==Vs){return Vs()}return function(e){const[t,r]=y.useState(e),n=t;return y.useEffect((()=>{null==t&&(Bs+=1,r(`mui-${Bs}`))}),[t]),n}(e)}function Us({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function Gs(e){const t=y.useRef(e);return qs((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Ys(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{$s(e,t)}))}),e)}const Ks={};const Xs=[];class Js{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Js}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Zs(){const e=function(e,t){const r=y.useRef(Ks);return r.current===Ks&&(r.current=e(t)),r}(Js.create).current;return function(e){y.useEffect(e,Xs)}(e.disposeEffect),e}let Qs=!0,el=!1;const tl=new Js,rl={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 nl(e){e.metaKey||e.altKey||e.ctrlKey||(Qs=!0)}function ol(){Qs=!1}function il(){"hidden"===this.visibilityState&&el&&(Qs=!0)}function al(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Qs||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!rl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function sl(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",nl,!0),t.addEventListener("mousedown",ol,!0),t.addEventListener("pointerdown",ol,!0),t.addEventListener("touchstart",ol,!0),t.addEventListener("visibilitychange",il,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!al(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(el=!0,tl.start(100,(()=>{el=!1})),t.current=!1,!0)},ref:e}}function ll(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ul(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 cl(e){return"string"==typeof e}function dl(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 pl(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 fl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ml(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=jr(e,fl),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=os(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=_r({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=_r({},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=dl(_r({},o,n)),s=pl(n),l=pl(o),u=t(a),c=os(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=_r({},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=_r({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(_r({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||cl(e)?t:_r({},t,{ownerState:_r({},t.ownerState,r)})}(r,_r({},l,{ref:Ys(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function hl(e){var t;return parseInt(y.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const gl=y.createContext(null);function bl(){return y.useContext(gl)}var vl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function yl(e){const{children:t,theme:r}=e,n=bl(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return _r({},e,t)}(n,r);return null!=e&&(e[vl]=null!==n),e}),[r,n]);return Qt.jsx(gl.Provider,{value:o,children:t})}const xl=["value"],Sl=y.createContext();function wl(e){let{value:t}=e,r=jr(e,xl);return Qt.jsx(Sl.Provider,_r({value:null==t||t},r))}const Cl=y.createContext(void 0);function El({value:e,children:t}){return Qt.jsx(Cl.Provider,{value:e,children:t})}function Rl({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?Ts(o.defaultProps,n):o.styleOverrides||o.variants?n:Ts(o,n)}({props:e,name:t,theme:{components:y.useContext(Cl)}})}const Pl={};function Al(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?_r({},t,{[e]:i}):i;return n?()=>a:a}return _r({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Il(e){const{children:t,theme:r,themeId:n}=e,o=Ga(Pl),i=bl()||Pl,a=Al(n,o,r),s=Al(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=Ga(),r=Ws()||"",{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};`:"",qs((()=>{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?Qt.jsx(Ja,{styles:o}):null}(a);return Qt.jsx(yl,{theme:s,children:Qt.jsx(gi.Provider,{value:a,children:Qt.jsx(wl,{value:l,children:Qt.jsxs(El,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Ml(e){return Ml="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},Ml(e)}function Dl(e){var t=function(e,t){if("object"!=Ml(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Ml(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ml(t)?t:t+""}function kl(e,t){return _r({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Tl,ql={},Ll={exports:{}};(Tl=Ll).exports=function(e){return e&&e.__esModule?e:{default:e}},Tl.exports.__esModule=!0,Tl.exports.default=Tl.exports;var Ol=Ll.exports,Nl=Bt(Or),_l=Bt(Os),jl=Ol;Object.defineProperty(ql,"__esModule",{value:!0});var zl=ql.alpha=Zl;ql.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Gl(e),a=Gl(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Kl({type:"rgb",values:s})},ql.colorChannel=void 0;var Fl=ql.darken=Ql;ql.decomposeColor=Gl,ql.emphasize=tu;var Hl=ql.getContrastRatio=function(e,t){const r=Jl(e),n=Jl(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};ql.getLuminance=Jl,ql.hexToRgb=Ul,ql.hslToRgb=Xl;var $l=ql.lighten=eu;ql.private_safeAlpha=function(e,t,r){try{return Zl(e,t)}catch(t){return e}},ql.private_safeColorChannel=void 0,ql.private_safeDarken=function(e,t,r){try{return Ql(e,t)}catch(t){return e}},ql.private_safeEmphasize=function(e,t,r){try{return tu(e,t)}catch(t){return e}},ql.private_safeLighten=function(e,t,r){try{return eu(e,t)}catch(t){return e}},ql.recomposeColor=Kl,ql.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Gl(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 Bl=jl(Nl),Vl=jl(_l);function Wl(e,t=0,r=1){return(0,Vl.default)(e,t,r)}function Ul(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 Gl(e){if(e.type)return e;if("#"===e.charAt(0))return Gl(Ul(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Bl.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,Bl.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Yl=e=>{const t=Gl(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};ql.colorChannel=Yl;function Kl(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 Xl(e){e=Gl(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])),Kl({type:s,values:l})}function Jl(e){let t="hsl"===(e=Gl(e)).type||"hsla"===e.type?Gl(Xl(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 Zl(e,t){return e=Gl(e),t=Wl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Kl(e)}function Ql(e,t){if(e=Gl(e),t=Wl(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 Kl(e)}function eu(e,t){if(e=Gl(e),t=Wl(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 Kl(e)}function tu(e,t=.15){return Jl(e)>.5?Ql(e,t):eu(e,t)}ql.private_safeColorChannel=(e,t)=>{try{return Yl(e)}catch(t){return e}};const ru=["mode","contrastThreshold","tonalOffset"],nu={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:er.white,default:er.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}},ou={text:{primary:er.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:er.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 iu(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=$l(e.main,o):"dark"===t&&(e.dark=Fl(e.main,i)))}function au(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=jr(e,ru),i=e.primary||function(e="light"){return"dark"===e?{main:fr,light:pr,dark:mr}:{main:hr,light:mr,dark:gr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:sr,light:ar,dark:ur}:{main:cr,light:lr,dark:dr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:nr,light:tr,dark:or}:{main:or,light:rr,dark:ir}}(t),l=e.info||function(e="light"){return"dark"===e?{main:vr,light:br,dark:xr}:{main:xr,light:yr,dark:Sr}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Cr,light:wr,dark:Rr}:{main:Pr,light:Er,dark:Ar}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Mr,light:Ir,dark:kr}:{main:"#ed6c02",light:Dr,dark:Tr}}(t);function d(e){return Hl(e,ou.text.primary)>=r?ou.text.primary:nu.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=_r({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Lr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Lr(12,t?` (${t})`:"",JSON.stringify(e.main)));return iu(e,"light",o,n),iu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ou,light:nu};return zi(_r({common:_r({},er),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:qr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const su=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const lu={textTransform:"uppercase"},uu='"Roboto", "Helvetica", "Arial", sans-serif';function cu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=uu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=jr(r,su),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return _r({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===uu?{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,lu),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,lu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zi(_r({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function du(...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 pu=["none",du(0,2,1,-1,0,1,1,0,0,1,3,0),du(0,3,1,-2,0,2,2,0,0,1,5,0),du(0,3,3,-2,0,3,4,0,0,1,8,0),du(0,2,4,-1,0,4,5,0,0,1,10,0),du(0,3,5,-1,0,5,8,0,0,1,14,0),du(0,3,5,-1,0,6,10,0,0,1,18,0),du(0,4,5,-2,0,7,10,1,0,2,16,1),du(0,5,5,-3,0,8,10,1,0,3,14,2),du(0,5,6,-3,0,9,12,1,0,3,16,2),du(0,6,6,-3,0,10,14,1,0,4,18,3),du(0,6,7,-4,0,11,15,1,0,4,20,3),du(0,7,8,-4,0,12,17,2,0,5,22,4),du(0,7,8,-4,0,13,19,2,0,5,24,4),du(0,7,9,-4,0,14,21,2,0,5,26,4),du(0,8,9,-5,0,15,22,2,0,6,28,5),du(0,8,10,-5,0,16,24,2,0,6,30,5),du(0,8,11,-5,0,17,26,2,0,6,32,5),du(0,9,11,-5,0,18,28,2,0,7,34,6),du(0,9,12,-6,0,19,29,2,0,7,36,6),du(0,10,13,-6,0,20,31,3,0,8,38,7),du(0,10,13,-6,0,21,33,3,0,8,40,7),du(0,10,14,-6,0,22,35,3,0,8,42,7),du(0,11,14,-7,0,23,36,3,0,9,44,8),du(0,11,15,-7,0,24,38,3,0,9,46,8)],fu=["duration","easing","delay"],mu={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)"},hu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gu(e){return`${Math.round(e)}ms`}function bu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function vu(e){const t=_r({},mu,e.easing),r=_r({},hu,e.duration);return _r({getAutoHeightDuration:bu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return jr(n,fu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:gu(o)} ${i} ${"string"==typeof a?a:gu(a)}`)).join(",")}},e,{easing:t,duration:r})}const yu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},xu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Su(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=jr(e,xu);if(e.vars&&void 0===e.generateCssVars)throw new Error(Lr(18));const s=au(n),l=Wa(e);let u=zi(l,{mixins:kl(l.breakpoints,r),palette:s,shadows:pu.slice(),typography:cu(s,i),transitions:vu(o),zIndex:_r({},yu)});return u=zi(u,a),u=t.reduce(((e,t)=>zi(e,t)),u),u.unstable_sxConfig=_r({},Fa,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return $a({sx:e,theme:this})},u}const wu=Su();function Cu(){const e=Ka(wu);return e[Nr]||e}var Eu,Ru={},Pu={exports:{}};function Au(){return Eu||(Eu=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}(Pu)),Pu.exports}var Iu,Mu={exports:{}};function Du(){return Iu||(Iu=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}(Mu)),Mu.exports}var ku=Bt(Ni),Tu=Bt(Fi),qu=Bt(Xi),Lu=Bt(ks),Ou=Bt(Ua),Nu=Bt(es),_u=Ol;Object.defineProperty(Ru,"__esModule",{value:!0});var ju=Ru.default=function(e={}){const{themeId:t,defaultTheme:r=Ju,rootShouldForwardProp:n=Ku,slotShouldForwardProp:o=Ku}=e,i=e=>(0,Vu.default)((0,zu.default)({},e,{theme:Qu((0,zu.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Hu.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ec(Zu(l))}=a,p=(0,Fu.default)(a,Gu),f=s&&s.startsWith("Mui")||l?"components":"custom",m=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,h=c||!1;let g=Ku;"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,Hu.default)(e,(0,zu.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,$u.isPlainObject)(e)?n=>{const o=Qu({theme:n.theme,defaultTheme:r,themeId:t});return tc(e,(0,zu.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=Qu((0,zu.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]=tc(r,(0,zu.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!m&&l.push((e=>{var n;const o=Qu((0,zu.default)({},e,{defaultTheme:r,themeId:t}));return tc({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,zu.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}};Ru.shouldForwardProp=Ku,Ru.systemDefaultTheme=void 0;var zu=_u(Au()),Fu=_u(Du()),Hu=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Yu(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}(ku),$u=Tu;_u(qu),_u(Lu);var Bu=_u(Ou),Vu=_u(Nu);const Wu=["ownerState"],Uu=["variants"],Gu=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Yu(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Yu=function(e){return e?r:t})(e)}function Ku(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Xu(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Ju=Ru.systemDefaultTheme=(0,Bu.default)(),Zu=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Qu({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function ec(e){return e?(t,r)=>r[e]:null}function tc(e,t,r){let{ownerState:n}=t,o=(0,Fu.default)(t,Wu);const i="function"==typeof e?e((0,zu.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>tc(e,(0,zu.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Fu.default)(i,Uu);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,zu.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,zu.default)({ownerState:n},o,n)):e.style;t.push(r?Xu((0,Hu.internal_serializeStyles)(i),r):i)}})),t}return r?Xu((0,Hu.internal_serializeStyles)(i),r):i}function rc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const nc=e=>rc(e)&&"classes"!==e,oc=ju({themeId:Nr,defaultTheme:wu,rootShouldForwardProp:nc}),ic=["theme"];function ac(e){let{theme:t}=e,r=jr(e,ic);const n=t[Nr];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=_r({},n,{vars:null}):t&&!t.vars&&(o=_r({},t,{vars:null}))),Qt.jsx(Il,_r({},r,{themeId:n?Nr:void 0,theme:o}))}const sc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function lc(e){return Rl(e)}function uc(e){return ss("MuiSvgIcon",e)}ls("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],dc=oc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Ki(r.color)}`],t[`fontSize${Ki(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]}})),pc=y.forwardRef((function(e,t){const r=lc({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=jr(r,cc),f=y.isValidElement(n)&&"svg"===n.type,m=_r({},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 ul({root:["root","inherit"!==t&&`color${Ki(t)}`,`fontSize${Ki(r)}`]},uc,n)})(m);return Qt.jsxs(dc,_r({as:a,className:os(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?Qt.jsx("title",{children:c}):null]}))}));function fc(e,t){return fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fc(e,t)}function mc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fc(e,t)}pc.muiName="SvgIcon";var hc=!1,gc=x.createContext(null),bc="unmounted",vc="exited",yc="entering",xc="entered",Sc="exiting",wc=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=vc,n.appearStatus=yc):o=xc:o=t.unmountOnExit||t.mountOnEnter?bc:vc,n.state={status:o},n.nextCallback=null,n}mc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===bc?{status:vc}: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!==yc&&r!==xc&&(t=yc):r!==yc&&r!==xc||(t=Sc)}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===yc){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===vc&&this.setState({status:bc})},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||hc?this.safeSetState({status:xc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:yc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:xc},(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&&!hc?(this.props.onExit(n),this.safeSetState({status:Sc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:vc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:vc},(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===bc)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=jr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(gc.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Cc(){}function Ec(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rc(e,t){var r=Object.create(null);return e&&I.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&P(e)?t(e):e}(e)})),r}function Pc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Ac(e,t,r){var n=Rc(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]=A(a,{onExited:r.bind(null,a),in:u.props.in,exit:Pc(a,"exit",e),enter:Pc(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:r.bind(null,a),in:!0,exit:Pc(a,"exit",e),enter:Pc(a,"enter",e)})}})),o}wc.contextType=gc,wc.propTypes={},wc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cc,onEntering:Cc,onEntered:Cc,onExit:Cc,onExiting:Cc,onExited:Cc},wc.UNMOUNTED=bc,wc.EXITED=vc,wc.ENTERING=yc,wc.ENTERED=xc,wc.EXITING=Sc;var Ic=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Mc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Ec(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}mc(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,Rc(r.children,(function(e){return A(e,{onExited:n.bind(null,e),in:!0,appear:Pc(e,"appear",r),enter:Pc(e,"enter",r),exit:Pc(e,"exit",r)})}))):Ac(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Rc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=_r({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=jr(e,["component","childFactory"]),o=this.state.contextValue,i=Ic(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(gc.Provider,{value:o},i):x.createElement(gc.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);Mc.propTypes={},Mc.defaultProps={component:"div",childFactory:function(e){return e}};const Dc=e=>e.scrollTop;function kc(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 Tc(e){return ss("MuiPaper",e)}ls("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 qc=["className","component","elevation","square","variant"],Lc=oc("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 _r({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&&_r({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${zl("#fff",sc(t.elevation))}, ${zl("#fff",sc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Oc=y.forwardRef((function(e,t){const r=lc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=jr(r,qc),u=_r({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return ul({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Tc,o)})(u);return Qt.jsx(Lc,_r({as:o,ownerState:u,className:os(c.root,n),ref:t},l))}));const Nc=ls("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_c=["center","classes","className"];let jc,zc,Fc,Hc,$c=e=>e;const Bc=Pi(jc||(jc=$c`
|
|
30
18
|
0% {
|
|
31
19
|
transform: scale(0);
|
|
32
20
|
opacity: 0.1;
|
|
@@ -36,7 +24,7 @@ function mp(e,t){let r;return r=t?cp(e).withConfig({displayName:t.label,shouldFo
|
|
|
36
24
|
transform: scale(1);
|
|
37
25
|
opacity: 0.3;
|
|
38
26
|
}
|
|
39
|
-
`)),
|
|
27
|
+
`)),Vc=Pi(zc||(zc=$c`
|
|
40
28
|
0% {
|
|
41
29
|
opacity: 1;
|
|
42
30
|
}
|
|
@@ -44,7 +32,7 @@ function mp(e,t){let r;return r=t?cp(e).withConfig({displayName:t.label,shouldFo
|
|
|
44
32
|
100% {
|
|
45
33
|
opacity: 0;
|
|
46
34
|
}
|
|
47
|
-
`)),
|
|
35
|
+
`)),Wc=Pi(Fc||(Fc=$c`
|
|
48
36
|
0% {
|
|
49
37
|
transform: scale(1);
|
|
50
38
|
}
|
|
@@ -56,7 +44,7 @@ function mp(e,t){let r;return r=t?cp(e).withConfig({displayName:t.label,shouldFo
|
|
|
56
44
|
100% {
|
|
57
45
|
transform: scale(1);
|
|
58
46
|
}
|
|
59
|
-
`)),
|
|
47
|
+
`)),Uc=oc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Gc=oc((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]=y.useState(!1),p=os(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=os(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),y.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),Qt.jsx("span",{className:p,style:f,children:Qt.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Hc||(Hc=$c`
|
|
60
48
|
opacity: 0;
|
|
61
49
|
position: absolute;
|
|
62
50
|
|
|
@@ -99,9 +87,19 @@ function mp(e,t){let r;return r=t?cp(e).withConfig({displayName:t.label,shouldFo
|
|
|
99
87
|
animation-iteration-count: infinite;
|
|
100
88
|
animation-delay: 200ms;
|
|
101
89
|
}
|
|
102
|
-
`),nb.rippleVisible,cb,550,(({theme:e})=>e.transitions.easing.easeInOut),nb.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),nb.child,nb.childLeaving,db,550,(({theme:e})=>e.transitions.easing.easeInOut),nb.childPulsate,pb,(({theme:e})=>e.transitions.easing.easeInOut)),mb=y.forwardRef((function(e,t){const r=Dg({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Au(r,ob),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=Th(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,Il.jsx(hb,{classes:{ripple:Lg(o.ripple,nb.ripple),rippleVisible:Lg(o.rippleVisible,nb.rippleVisible),ripplePulsate:Lg(o.ripplePulsate,nb.ripplePulsate),child:Lg(o.child,nb.child),childLeaving:Lg(o.childLeaving,nb.childLeaving),childPulsate:Lg(o.childPulsate,nb.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.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=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.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 y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Il.jsx(fb,Ru({className:Lg(nb.root,o.root,i),ref:h},a,{children:Il.jsx(Xg,{component:null,exit:!0,children:s})}))}));function gb(e){return Bf("MuiButtonBase",e)}const bb=Hf("MuiButtonBase",["root","disabled","focusVisible"]),vb=["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"],yb=kg("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"},[`&.${bb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xb=y.forwardRef((function(e,t){const r=Dg({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:x,onKeyUp:S,onMouseDown:C,onMouseLeave:w,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:k=0,TouchRippleProps:M,touchRippleRef:I,type:L}=r,D=Au(r,vb),T=y.useRef(null),_=y.useRef(null),O=Mh(_,I),{isFocusVisibleRef:q,onFocus:N,onBlur:j,ref:z}=Bh(),[F,$]=y.useState(!1);l&&F&&$(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[B,H]=y.useState(!1);y.useEffect((()=>{H(!0)}),[]);const W=B&&!u&&!l;function V(e,t,r=c){return kh((n=>{t&&t(n);return!r&&_.current&&_.current[e](n),!0}))}y.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=kh((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=y.useRef(!1),oe=kh((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(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=kh((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),S&&S(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=Mh(t,z,T),ue=Ru({},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=Wh({root:["root",t&&"disabled",r&&"focusVisible"]},gb,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Il.jsxs(yb,Ru({as:ae,className:Lg(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?Il.jsx(mb,Ru({ref:O,center:o},M)):null]}))}));function Sb(e){return Bf("MuiTypography",e)}Hf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Cb=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wb=kg("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${Ip(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Ru({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}))),Eb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Rb={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ab=y.forwardRef((function(e,t){const r=Dg({props:e,name:"MuiTypography"}),n=(e=>Rb[e]||e)(r.color),o=_f(Ru({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Eb}=o,f=Au(o,Cb),h=Ru({},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]||Eb[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Wh({root:["root",i,"inherit"!==e.align&&`align${Ip(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Sb,a)})(h);return Il.jsx(wb,Ru({as:m,ref:t,ownerState:h,className:Lg(g.root,a)},f))}));const Pb=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=Mh(y.isValidElement(r)?Xh(r):null,t);if(hh((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),hh((()=>{if(i&&!o)return wh(t,i),()=>{wh(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return Il.jsx(y.Fragment,{children:r})}return Il.jsx(y.Fragment,{children:i?z.createPortal(r,i):i})})),kb=["onChange","maxRows","minRows","style","value"];function Mb(e){return parseInt(e,10)||0}const Ib={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Lb(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Db=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Au(e,kb),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=Mh(t,u),d=y.useRef(null),p=y.useRef(null),f=y.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=Ch(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=Mb(i.paddingBottom)+Mb(i.paddingTop),l=Mb(i.borderBottomWidth)+Mb(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=kh((()=>{const e=u.current,t=f();if(!e||!t||Lb(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),m=y.useCallback((()=>{const e=u.current,t=f();if(!e||!t||Lb(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=y.useRef(-1);hh((()=>{const e=xh(m),t=null==u?void 0:u.current;if(!t)return;const r=Ch(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]),hh((()=>{m()}));return Il.jsxs(y.Fragment,{children:[Il.jsx("textarea",Ru({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),Il.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Ru({},Ib,i,{paddingTop:0,paddingBottom:0})})]})}));function Tb({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 _b=y.createContext(void 0);function Ob(){return y.useContext(_b)}function qb(e){return Il.jsx(Df,Ru({},e,{defaultTheme:Km,themeId:Eu}))}function Nb(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function jb(e,t=!1){return e&&(Nb(e.value)&&""!==e.value||t&&Nb(e.defaultValue)&&""!==e.defaultValue)}function zb(e){return Bf("MuiInputBase",e)}const Fb=Hf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),$b=["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"],Bb=(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${Ip(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Hb=(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]},Wb=kg("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Bb})((({theme:e,ownerState:t})=>Ru({},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",[`&.${Fb.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ru({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Vb=kg("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Hb})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Ru({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 Ru({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] + .${Fb.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},[`&.${Fb.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"})})),Gb=Il.jsx(qb,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ub=y.forwardRef((function(e,t){var r;const n=Dg({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:x,minRows:S,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=Au(n,$b),F=null!=b.value?b.value:j,{current:$}=y.useRef(null!=F),B=y.useRef(),H=y.useCallback((e=>{}),[]),W=Mh(B,v,b.ref,H),[V,G]=y.useState(!1),U=Ob(),Y=Tb({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:V,y.useEffect((()=>{!U&&d&&V&&(G(!1),E&&E())}),[U,d,V,E]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{jb(e)?K&&K():X&&X()}),[K,X]);hh((()=>{$&&J({value:F})}),[F,J,$]);y.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;C&&"input"===Z&&(Q=Ru(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:x,minRows:S},Q),Z=Db);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=Ru({},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 Wh({root:["root",`color${Ip(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Ip(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"]},zb,t)})(ee),re=O.root||l.Root||Wb,ne=_.root||u.root||{},oe=O.input||l.Input||Vb;return Q=Ru({},Q,null!=(r=_.input)?r:u.input),Il.jsxs(y.Fragment,{children:[!p&&Gb,Il.jsxs(re,Ru({},ne,!Vh(re)&&{ownerState:Ru({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},z,{className:Lg(te.root,ne.className,s,L&&"MuiInputBase-readOnly"),children:[q,Il.jsx(_b.Provider,{value:null,children:Il.jsx(oe,Ru({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,!Vh(oe)&&{as:Z,ownerState:Ru({},ee,Q.ownerState)},{ref:W,className:Lg(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(Cu(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(Ru({},Y,{startAdornment:q})):null]}))]})}));function Yb(e){return Bf("MuiInput",e)}const Kb=Ru({},Fb,Hf("MuiInput",["root","underline","input"]));function Xb(e){return Bf("MuiOutlinedInput",e)}const Jb=Ru({},Fb,Hf("MuiOutlinedInput",["root","notchedOutline","input"]));function Zb(e){return Bf("MuiFilledInput",e)}const Qb=Ru({},Fb,Hf("MuiFilledInput",["root","underline","input"]));var ev=function(e,t){function r(r,n){return Il.jsx(qg,Ru({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=qg.muiName,y.memo(y.forwardRef(r))}(Il.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const tv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],rv={entering:{opacity:1},entered:{opacity:1}},nv=y.forwardRef((function(e,t){const r=Xm(),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=Wg}=e,v=Au(e,tv),x=y.useRef(null),S=Mh(x,Xh(a),t),C=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},w=C(d),E=C(((e,t)=>{Jg(e);const n=Zg({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=Zg({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 Il.jsx(b,Ru({appear:i,in:l,nodeRef:x,onEnter:E,onEntered:R,onEntering:w,onExit:P,onExited:k,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Ru({style:Ru({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},rv[e],m,a.props.style),ref:S},t))}))}));function ov(e){return Bf("MuiBackdrop",e)}Hf("MuiBackdrop",["root","invisible"]);const iv=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],av=kg("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Ru({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"}))),sv=y.forwardRef((function(e,t){var r,n,o;const i=Dg({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=nv,transitionDuration:g}=i,b=Au(i,iv),v=Ru({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Wh({root:["root",r&&"invisible"]},ov,t)})(v),x=null!=(r=f.root)?r:c.root;return Il.jsx(m,Ru({in:p,timeout:g},b,{children:Il.jsx(av,Ru({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:Lg(y.root,s,null==x?void 0:x.className),ownerState:Ru({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),lv=Hf("MuiBox",["root"]),uv=Ym(),cv=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=mp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ef);return y.forwardRef((function(e,a){const s=Lf(r),l=_f(e),{className:u,component:c="div"}=l,d=bo(l,Ff);return Il.jsx(i,so({as:c,ref:a,className:zf(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Eu,defaultTheme:uv,defaultClassName:lv.root,generateClassName:Nf.generate});function dv(e){return Bf("MuiButton",e)}const pv=Hf("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"]),fv=y.createContext({}),hv=y.createContext(void 0),mv=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],gv=e=>Ru({},"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}}),bv=kg(xb,{shouldForwardProp:e=>Pg(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ip(r.color)}`],t[`size${Ip(r.size)}`],t[`${r.variant}Size${Ip(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 Ru({},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":Ru({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pm(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})`:pm(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})`:pm(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":Ru({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${pv.focusVisible}`]:Ru({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${pv.disabled}`]:Ru({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 ${pm(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"},[`&.${pv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pv.disabled}`]:{boxShadow:"none"}})),vv=kg("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Ip(r.size)}`]]}})((({ownerState:e})=>Ru({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},gv(e)))),yv=kg("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Ip(r.size)}`]]}})((({ownerState:e})=>Ru({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},gv(e)))),xv=y.forwardRef((function(e,t){const r=y.useContext(fv),n=y.useContext(hv),o=Dg({props:fh(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,x=Au(o,mv),S=Ru({},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 Ru({},a,Wh({root:["root",i,`${i}${Ip(t)}`,`size${Ip(o)}`,`${i}Size${Ip(o)}`,`color${Ip(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ip(o)}`],endIcon:["icon","endIcon",`iconSize${Ip(o)}`]},dv,a))})(S),w=g&&Il.jsx(vv,{className:C.startIcon,ownerState:S,children:g}),E=p&&Il.jsx(yv,{className:C.endIcon,ownerState:S,children:p}),R=n||"";return Il.jsxs(bv,Ru({ownerState:S,className:Lg(r.className,C.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Lg(C.focusVisible,f),ref:t,type:b},x,{classes:C,children:[w,i,E]}))}));function Sv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Cv(e){return parseInt(Ch(e).getComputedStyle(e).paddingRight,10)||0}function wv(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&&Sv(e,o)}))}function Ev(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Rv(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Sh(e);return t.body===e?Ch(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Hh(Sh(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Cv(n)+e}px`;const t=Sh(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Cv(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Sh(n).body;else{const t=n.parentElement,r=Ch(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 Av=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Pv(e){const t=[],r=[];return Array.from(e.querySelectorAll(Av)).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 kv(){return!0}function Mv(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Pv,isEnabled:a=kv,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=Mh(Xh(t),h),g=y.useRef(null);y.useEffect((()=>{s&&h.current&&(f.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!h.current)return;const e=Sh(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]),y.useEffect((()=>{if(!s||!h.current)return;const e=Sh(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 Il.jsxs(y.Fragment,{children:[Il.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.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)}}),Il.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Iv=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&&Sv(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);wv(t,e.mount,e.modalRef,n,!0);const o=Ev(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=Ev(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Rv(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Ev(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&&Sv(e.modalRef,t),wv(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&&Sv(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Lv(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Iv,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=Mh(h,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),C=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},w=kh((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Sh(f.current).body;o.add(S(),e),h.current&&C()})),E=y.useCallback((()=>o.isTopModal(S())),[o]),R=kh((e=>{f.current=e,e&&(c&&E()?C():h.current&&Sv(h.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.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=Gh(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Ru({},r,t);return Ru({role:"presentation"},n,{onKeyDown:P(n),ref:m})},getBackdropProps:(e={})=>Ru({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:yh((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:yh((()=>{b(!0),s&&s(),i&&A()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function Dv(e){return Bf("MuiModal",e)}Hf("MuiModal",["root","hidden","backdrop"]);const Tv=["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"],_v=kg("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})=>Ru({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ov=kg(sv,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),qv=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=Dg({name:"MuiModal",props:e}),{BackdropComponent:u=Ov,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!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=Au(l,Tv),D=Ru({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:C,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:R,keepMounted:A}),{getRootProps:T,getBackdropProps:_,getTransitionProps:O,portalRef:q,isTopModal:N,exited:j,hasTransition:z}=Lv(Ru({},D,{rootRef:t})),F=Ru({},D,{exited:j}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Wh({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Dv,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:_v,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=Kh({elementType:H,externalSlotProps:V,externalForwardedProps:L,getSlotProps:T,additionalProps:{ref:t,as:m},ownerState:F,className:Lg(d,null==V?void 0:V.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),Y=Kh({elementType:W,externalSlotProps:G,additionalProps:c,getSlotProps:e=>_(Ru({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Lg(null==G?void 0:G.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:F});return A||k||z&&!j?Il.jsx(Pb,{ref:q,container:h,disablePortal:C,children:Il.jsxs(H,Ru({},U,{children:[!R&&u?Il.jsx(W,Ru({},Y)):null,Il.jsx(Mv,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:N,open:k,children:y.cloneElement(f,B)})]}))}):null}));function Nv(e){return Bf("MuiDivider",e)}const jv=Hf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),zv=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Fv=kg("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})=>Ru({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)`:pm(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})=>Ru({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Ru({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>Ru({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>Ru({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),$v=kg("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Ru({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)`}))),Bv=y.forwardRef((function(e,t){const r=Dg({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=Au(r,zv),h=Ru({},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 Wh({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"]},Nv,n)})(h);return Il.jsx(Fv,Ru({as:a,className:Lg(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Il.jsx($v,{className:m.wrapper,ownerState:h,children:o}):null}))}));Bv.muiSkipListHighlight=!0;const Hv=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Wv=kg(Wb,{shouldForwardProp:e=>Pg(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Bb(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 Ru({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}},[`&.${Qb.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Qb.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"},[`&.${Qb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qb.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(.${Qb.disabled}, .${Qb.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qb.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Ru({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}))})),Vv=kg(Vb,{name:"MuiFilledInput",slot:"Input",overridesResolver:Hb})((({theme:e,ownerState:t})=>Ru({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}))),Gv=y.forwardRef((function(e,t){var r,n,o,i;const a=Dg({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=Au(a,Hv),g=Ru({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Ru({},t,Wh({root:["root",!r&&"underline"],input:["input"]},Zb,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Sp(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Wv,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Vv;return Il.jsx(Ub,Ru({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Gv.muiName="Input";const Uv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Yv(e){return`scale(${e}, ${e**2})`}const Kv={entering:{opacity:1,transform:Yv(1)},entered:{opacity:1,transform:"none"}},Xv="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jv=y.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=Wg}=e,g=Au(e,Uv),b=Th(),v=y.useRef(),x=Xm(),S=y.useRef(null),C=Mh(S,Xh(o),t),w=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=w(u),R=w(((e,t)=>{Jg(e);const{duration:r,delay:n,easing:o}=Zg({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Xv?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}=Zg({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Xv?o:.666*o,delay:Xv?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Yv(.75),c&&c(e)})),M=w(d);return Il.jsx(m,Ru({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:E,onExit:k,onExited:M,onExiting:P,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,Ru({style:Ru({opacity:0,transform:Yv(.75),visibility:"exited"!==e||a?void 0:"hidden"},Kv[e],f,o.props.style),ref:C},t))}))}));Jv.muiSupportAuto=!0;const Zv=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Qv=kg(Wb,{shouldForwardProp:e=>Pg(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Bb(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})`),Ru({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"},[`&.${Kb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Kb.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(.${Kb.disabled}, .${Kb.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Kb.disabled}:before`]:{borderBottomStyle:"dotted"}})})),ey=kg(Vb,{name:"MuiInput",slot:"Input",overridesResolver:Hb})({}),ty=y.forwardRef((function(e,t){var r,n,o,i;const a=Dg({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=Au(a,Zv),b=(e=>{const{classes:t,disableUnderline:r}=e;return Ru({},t,Wh({root:["root",!r&&"underline"],input:["input"]},Yb,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Sp(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Qv,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:ey;return Il.jsx(Ub,Ru({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function ry(e){return Bf("MuiLink",e)}ty.muiName="Input";const ny=Hf("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),oy={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},iy=({theme:e,ownerState:t})=>{const r=(e=>oy[e]||e)(t.color),n=Dp(e,`palette.${r}`,!1)||t.color,o=Dp(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:pm(n,.4)},ay=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],sy=kg(Ab,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ip(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Ru({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Ru({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:iy({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"},[`&.${ny.focusVisible}`]:{outline:"auto"}}))),ly=y.forwardRef((function(e,t){const r=Dg({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=Au(r,ay),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=Bh(),[b,v]=y.useState(!1),x=Mh(t,g),S=Ru({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),C=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Wh({root:["root",`underline${Ip(o)}`,"button"===r&&"button",n&&"focusVisible"]},ry,t)})(S);return Il.jsx(sy,Ru({color:o,className:Lg(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:x,ownerState:S,variant:c,sx:[...Object.keys(oy).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),uy=y.createContext({});function cy(e){return Bf("MuiList",e)}Hf("MuiList",["root","padding","dense","subheader"]);const dy=["children","className","component","dense","disablePadding","subheader"],py=kg("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})=>Ru({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),fy=y.forwardRef((function(e,t){const r=Dg({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Au(r,dy),c=y.useMemo((()=>({dense:a})),[a]),d=Ru({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Wh({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},cy,t)})(d);return Il.jsx(uy.Provider,{value:c,children:Il.jsxs(py,Ru({as:i,className:Lg(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function hy(e){return Bf("MuiListItemIcon",e)}const my=Hf("MuiListItemIcon",["root","alignItemsFlexStart"]),gy=["className"],by=kg("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})=>Ru({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),vy=y.forwardRef((function(e,t){const r=Dg({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Au(r,gy),i=Ru({},r,{alignItems:y.useContext(uy).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Wh({root:["root","flex-start"===t&&"alignItemsFlexStart"]},hy,r)})(i);return Il.jsx(by,Ru({className:Lg(a.root,n),ownerState:i,ref:t},o))})),yy=Hf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),xy=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Sy(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Cy(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function wy(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 Ey(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")&&wy(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Ry=y.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=Au(e,xy),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});hh((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${Hh(Sh(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=Mh(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.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=y.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),y.cloneElement(e,t)}return e}));return Il.jsx(fy,Ru({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Sh(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Ey(t,n,l,s,Sy);else if("ArrowUp"===r)e.preventDefault(),Ey(t,n,l,s,Cy);else if("Home"===r)e.preventDefault(),Ey(t,null,l,s,Sy);else if("End"===r)e.preventDefault(),Ey(t,null,l,s,Cy);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&&wy(n,o);o.previousKeyMatched&&(l||Ey(t,n,!1,s,Sy,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Ay(e){return Bf("MuiPopover",e)}Hf("MuiPopover",["root","paper"]);const Py=["onEntering"],ky=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],My=["slotProps"];function Iy(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ly(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Dy(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Ty(e){return"function"==typeof e?e():e}const _y=kg(qv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Oy=kg(rb,{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}),qy=y.forwardRef((function(e,t){var r,n,o;const i=Dg({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:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:C=Jv,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,A=Au(i.TransitionProps,Py),P=Au(i,ky),k=null!=(r=null==x?void 0:x.paper)?r:b,M=y.useRef(),I=Mh(M,k.ref),L=Ru({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:k,transformOrigin:S,TransitionComponent:C,transitionDuration:w,TransitionProps:A}),D=(e=>{const{classes:t}=e;return Wh({root:["root"],paper:["paper"]},Ay,t)})(L),T=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=Ty(s),t=(e&&1===e.nodeType?e:Sh(M.current).body).getBoundingClientRect();return{top:t.top+Iy(t,l.vertical),left:t.left+Ly(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),_=y.useCallback((e=>({vertical:Iy(e,S.vertical),horizontal:Ly(e,S.horizontal)})),[S.horizontal,S.vertical]),O=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=_(t);if("none"===c)return{top:null,left:null,transformOrigin:Dy(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=Ch(Ty(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:Dy(r)}}),[s,c,T,_,m]),[q,N]=y.useState(g),j=y.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]);y.useEffect((()=>(R&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[s,R,j]);y.useEffect((()=>{g&&j()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),y.useEffect((()=>{if(!g)return;const e=xh((()=>{j()})),t=Ch(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?Sh(Ty(s)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:_y,B=null!=(o=null==v?void 0:v.paper)?o:Oy,H=Kh({elementType:B,externalSlotProps:Ru({},k,{style:q?k.style:Ru({},k.style,{opacity:0})}),additionalProps:{elevation:h,ref:I},ownerState:L,className:Lg(D.paper,null==k?void 0:k.className)}),W=Kh({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:L,className:Lg(D.root,p)}),{slotProps:V}=W,G=Au(W,My);return Il.jsx($,Ru({},G,!Vh($)&&{slotProps:V,disableScrollLock:R},{children:Il.jsx(C,Ru({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),j()},onExited:()=>{N(!1)},timeout:z},A,{children:Il.jsx(B,Ru({},H,{children:d}))}))}))}));function Ny(e){return Bf("MuiMenu",e)}Hf("MuiMenu",["root","paper","list"]);const jy=["onEntering"],zy=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Fy={vertical:"top",horizontal:"right"},$y={vertical:"top",horizontal:"left"},By=kg(qy,{shouldForwardProp:e=>Pg(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Hy=kg(Oy,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Wy=kg(Ry,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Vy=y.forwardRef((function(e,t){var r,n;const o=Dg({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,x=Au(o.TransitionProps,jy),S=Au(o,zy),C=(()=>{const e=y.useContext(tm);return null!=e&&e})(),w=Ru({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),E=(e=>{const{classes:t}=e;return Wh({root:["root"],paper:["paper"],list:["list"]},Ny,t)})(w),R=i&&!l&&d,A=y.useRef(null);let P=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const k=null!=(r=b.paper)?r:Hy,M=null!=(n=v.paper)?n:p,I=Kh({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[E.root,s]}),L=Kh({elementType:k,externalSlotProps:M,ownerState:w,className:E.paper});return Il.jsx(By,Ru({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Fy:$y,slots:{paper:k,root:b.root},slotProps:{root:I,paper:L},open:d,ref:t,transitionDuration:h,TransitionProps:Ru({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:w},S,{classes:f,children:Il.jsx(Wy,Ru({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===P||l),autoFocusItem:R,variant:g},u,{className:Lg(E.list,u.className),children:a}))}))}));function Gy(e){return Bf("MuiMenuItem",e)}const Uy=Hf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Yy=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ky=kg(xb,{shouldForwardProp:e=>Pg(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})=>Ru({},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"}},[`&.${Uy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pm(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Uy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pm(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Uy.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pm(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})`:pm(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Uy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Uy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jv.inset}`]:{marginLeft:52},[`& .${yy.root}`]:{marginTop:0,marginBottom:0},[`& .${yy.inset}`]:{paddingLeft:36},[`& .${my.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ru({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${my.root} svg`]:{fontSize:"1.25rem"}})))),Xy=y.forwardRef((function(e,t){const r=Dg({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=Au(r,Yy),f=y.useContext(uy),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=y.useRef(null);hh((()=>{n&&m.current&&m.current.focus()}),[n]);const g=Ru({},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 Ru({},a,Wh({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Gy,a))})(r),v=Mh(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),Il.jsx(uy.Provider,{value:h,children:Il.jsx(Ky,Ru({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Lg(b.focusVisible,l),className:Lg(b.root,d)},p,{ownerState:g,classes:b}))})}));function Jy(e){return Bf("MuiNativeSelect",e)}const Zy=Hf("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Qy=["className","disabled","error","IconComponent","inputRef","variant"],ex=({ownerState:e,theme:t})=>Ru({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ru({},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"},[`&.${Zy.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}}),tx=kg("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Pg,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Zy.multiple}`]:t.multiple}]}})(ex),rx=({ownerState:e,theme:t})=>Ru({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Zy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),nx=kg("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ip(r.variant)}`],r.open&&t.iconOpen]}})(rx),ox=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Au(e,Qy),u=Ru({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Wh({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ip(r)}`,i&&"iconOpen",n&&"disabled"]},Jy,t)})(u);return Il.jsxs(y.Fragment,{children:[Il.jsx(tx,Ru({ownerState:u,className:Lg(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:Il.jsx(nx,{as:i,ownerState:u,className:c.icon})]})}));var ix;const ax=["children","classes","className","label","notched"],sx=kg("fieldset",{shouldForwardProp:Pg})({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%"}),lx=kg("legend",{shouldForwardProp:Pg})((({ownerState:e,theme:t})=>Ru({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&&Ru({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 ux=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],cx=kg(Wb,{shouldForwardProp:e=>Pg(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Bb})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ru({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Jb.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Jb.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Jb.focused} .${Jb.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Jb.error} .${Jb.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Jb.disabled} .${Jb.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Ru({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),dx=kg((function(e){const{className:t,label:r,notched:n}=e,o=Au(e,ax),i=null!=r&&""!==r,a=Ru({},e,{notched:n,withLabel:i});return Il.jsx(sx,Ru({"aria-hidden":!0,className:t,ownerState:a},o,{children:Il.jsx(lx,{ownerState:a,children:i?Il.jsx("span",{children:r}):ix||(ix=Il.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}})),px=kg(Vb,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Hb})((({theme:e,ownerState:t})=>Ru({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}))),fx=y.forwardRef((function(e,t){var r,n,o,i,a;const s=Dg({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=Au(s,ux),b=(e=>{const{classes:t}=e;return Ru({},t,Wh({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Xb,t))})(s),v=Ob(),x=Tb({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Ru({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),C=null!=(r=null!=(n=h.root)?n:l.Root)?r:cx,w=null!=(o=null!=(i=h.input)?i:l.Input)?o:px;return Il.jsx(Ub,Ru({slots:{root:C,input:w},renderSuffix:e=>Il.jsx(dx,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Il.jsxs(y.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:Ru({},b,{notchedOutline:null})}))}));function hx(e){return Bf("MuiSelect",e)}fx.muiName="Input";const mx=Hf("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var gx;const bx=["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"],vx=kg("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${mx.select}`]:t.select},{[`&.${mx.select}`]:t[r.variant]},{[`&.${mx.error}`]:t.error},{[`&.${mx.multiple}`]:t.multiple}]}})(ex,{[`&.${mx.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yx=kg("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ip(r.variant)}`],r.open&&t.iconOpen]}})(rx),xx=kg("input",{shouldForwardProp:e=>Ag(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 Sx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Cx(e){return null==e||"string"==typeof e&&!e.trim()}const wx=y.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:x,onBlur:S,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=Au(e,bx),[_,O]=Ph({controlled:L,default:c,name:"Select"}),[q,N]=Ph({controlled:A,default:u,name:"Select"}),j=y.useRef(null),z=y.useRef(null),[F,$]=y.useState(null),{current:B}=y.useRef(null!=A),[H,W]=y.useState(),V=Mh(t,m),G=y.useCallback((e=>{z.current=e,e&&$(e)}),[]),U=null==F?void 0:F.parentNode;y.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:j.current,value:_})),[_]),y.useEffect((()=>{u&&q&&F&&!B&&(W(a?null:U.clientWidth),z.current.focus())}),[F,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Sh(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=y.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:x}}),C(o,e)}v||Y(!1,t)}},J=null!==F&&q;let Z,Q;delete T["aria-invalid"];const ee=[];let te=!1;(jb({value:_})||p)&&(k?Z=k(_):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(_))throw new Error(Cu(2));t=_.some((t=>Sx(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Sx(_,e.props.value),t&&te&&(Q=e.props.children);return y.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||(x?`mui-component-select-${x}`:void 0),ae=Ru({},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 Wh({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ip(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},hx,t)})(ae),le=Ru({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Ah();return Il.jsxs(y.Fragment,{children:[Il.jsx(vx,Ru({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&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:_,name:x}}),S(e))},onFocus:E},M,{ownerState:ae,className:Lg(M.className,se.select,l),id:ie,children:Cx(Z)?gx||(gx=Il.jsx("span",{className:"notranslate",children:""})):Z})),Il.jsx(xx,Ru({"aria-invalid":f,value:Array.isArray(_)?_.join(","):_,name:x,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)),Il.jsx(yx,{as:h,className:se.icon,ownerState:ae}),Il.jsx(Vy,Ru({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Ru({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Ru({},b.slotProps,{paper:Ru({},le,{style:Ru({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),Ex=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Rx=["root"],Ax={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Pg(e)&&"variant"!==e,slot:"Root"},Px=kg(ty,Ax)(""),kx=kg(fx,Ax)(""),Mx=kg(Gv,Ax)(""),Ix=y.forwardRef((function(e,t){const r=Dg({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=ev,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:C,SelectDisplayProps:w,variant:E="outlined"}=r,R=Au(r,Ex),A=b?ox:wx,P=Tb({props:r,muiFormControl:Ob(),states:["variant","error"]}),k=P.variant||E,M=Ru({},r,{variant:k,classes:i}),I=(e=>{const{classes:t}=e;return t})(M),L=Au(I,Rx),D=d||{standard:Il.jsx(Px,{ownerState:M}),outlined:Il.jsx(kx,{label:f,ownerState:M}),filled:Il.jsx(Mx,{ownerState:M})}[k],T=Mh(t,Xh(D));return Il.jsx(y.Fragment,{children:y.cloneElement(D,Ru({inputComponent:A,inputProps:Ru({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:x,open:S,renderValue:C,SelectDisplayProps:Ru({id:c},w)},p,{classes:p?Sp(L,p.classes):L},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===k?{notched:!0}:{},{ref:T,className:Lg(D.props.className,a,I.root)},!d&&{variant:k},R))})}));function Lx(e={}){return Il.jsx(ql,{...e,children:Il.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Il.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Il.jsx("rect",{stroke:ul.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Ix.muiName="Select";const Dx={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:hl,"& > 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 Tx=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:ul.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:ul.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Il.jsx(Tl,{"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 ${ul.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:ul.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${ul.MISC_FOCUS_BORDER}`,borderRadius:hl,backgroundColor:ul.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 ${ul.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:ul.WHITE,color:ul.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:hl},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ul.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:ul.GREYSCALE_0_15,backgroundColor:ul.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:ul.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ul.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:ul.GREEN_PALE},"&:active":{backgroundColor:ul.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ul.GREEN_PALE,boxShadow:`0 0 0 3px ${vh(ul.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:ul.BLUE_PALE},"&:active":{backgroundColor:ul.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ul.BLUE_PALE,boxShadow:`0 0 0 3px ${vh(ul.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:hl,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:ul.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${ul.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:ul.GREYSCALE_0_15,backgroundColor:ul.GREYSCALE_100_60,"&:active":{backgroundColor:ul.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:ul.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${ul.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:ul.PURPLE,"&.Mui-focusVisible":{borderColor:ul.PURPLE,boxShadow:`0 0 0 3px ${vh(ul.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:ul.GREEN,"&.Mui-focusVisible":{borderColor:ul.GREEN,boxShadow:`0 0 0 3px ${vh(ul.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:ul.BLUE,"&.Mui-focusVisible":{borderColor:ul.BLUE,boxShadow:`0 0 0 3px ${vh(ul.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:ul.ORANGE,"&.Mui-focusVisible":{borderColor:ul.ORANGE,boxShadow:`0 0 0 3px ${vh(ul.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:ul.RED,"&.Mui-focusVisible":{borderColor:ul.RED,boxShadow:`0 0 0 3px ${vh(ul.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:ul.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:ul.PURPLE_PALE},"&:active":{backgroundColor:ul.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:ul.PURPLE_PALE,boxShadow:`0 0 0 3px ${vh(ul.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:ul.GREEN_PALE},"&:active":{backgroundColor:ul.GREEN_DARK},"&.Mui-focusVisible":{borderColor:ul.GREEN_PALE,boxShadow:`0 0 0 3px ${vh(ul.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:ul.BLUE_PALE},"&:active":{backgroundColor:ul.BLUE_DARK},"&.Mui-focusVisible":{borderColor:ul.BLUE_PALE,boxShadow:`0 0 0 3px ${vh(ul.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:ul.ORANGE_PALE},"&:active":{backgroundColor:ul.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:ul.ORANGE_PALE,boxShadow:`0 0 0 3px ${vh(ul.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:ul.RED_PALE},"&:active":{backgroundColor:ul.RED_DARK},"&.Mui-focusVisible":{borderColor:ul.RED_PALE,boxShadow:`0 0 0 3px ${vh(ul.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:ul.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:ul.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:hl,boxShadow:`inset 0 0 0 2px ${ul.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Il.jsx(Ol,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:cl,borderRadius:hl,color:ul.TEXT_PRIMARY,backgroundColor:ul.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:ul.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${ul.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:ul.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:ul.GREYSCALE_0_05,color:ul.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:ul.GREEN,borderColor:ul.GREEN},"&.MuiChip-outlinedInfo":{color:ul.BLUE,borderColor:ul.BLUE},"&.MuiChip-outlinedWarning":{color:ul.ORANGE,borderColor:ul.ORANGE},"&.MuiChip-outlinedError":{color:ul.RED,borderColor:ul.RED}},outlined:{border:`solid 1px ${ul.GREYSCALE_0_15}`,backgroundColor:ul.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:hl,boxShadow:"none",backgroundColor:ul.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:ul.GREEN,borderColor:ul.GREEN},outlinedSecondary:{color:ul.BLUE,borderColor:ul.BLUE},label:{fontFamily:yl.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Il.jsx(Ol,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Il.jsx(Tl,{"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:hl},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:hl,fontSize:dl,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:ul.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${ul.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:ul.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:ul.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:ul.GREYSCALE_0_05}}},popupIndicator:{borderRadius:hl,border:`solid 1px ${ul.GREYSCALE_0_15}`,color:ul.GREYSCALE_0_60,marginRight:0,width:fl,height:fl},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${ul.GREYSCALE_0_15}`},clearIndicator:{borderRadius:hl,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:ul.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:dl}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:cl,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:ul.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:ul.GREYSCALE_25,fontSize:cl,fontFamily:yl.FONT_FAMILY,fontWeight:bl,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:ul.TEXT_PRIMARY},"&.Mui-error":{color:ul.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:ul.TEXT_SECONDARY,content:"'(optional)'",fontWeight:gl,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:ul.TEXT_SECONDARY,content:"'(required)'",fontWeight:gl,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:dl,lineHeight:"16px",backgroundColor:ul.WHITE,borderRadius:hl,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ul.GREYSCALE_0_05}`,borderColor:ul.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ul.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${ul.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${ul.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ul.RED}`,boxShadow:`0px 0px 0px 1px ${ul.RED}, inset 0 2px 0 0 ${ul.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${ul.GREYSCALE_0_10}`,borderColor:ul.GREYSCALE_0_10,backgroundColor:ul.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:ul.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:ul.GREYSCALE_0_15,borderRadius:hl,boxShadow:`inset 0 2px 0 0 ${ul.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Il.jsx(Tl,{...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:ul.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:ul.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:ul.GREYSCALE_0_03},"&:active":{backgroundColor:ul.GREYSCALE_0_10},"&:focus":{backgroundColor:ul.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${ul.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${ul.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:ul.GREYSCALE_0_30,"&:hover":{backgroundColor:ul.GREYSCALE_0_0,borderColor:ul.GREYSCALE_0_15},"& ~svg":{color:ul.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${ul.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:hl}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:ul.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${ul.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:ul.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:dl,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:cl,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:cl,fontWeight:bl,color:ul.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:bl}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${ul.GREYSCALE_0_15}, 0px 0px 0px 1px ${ul.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Il.jsx(zl,{}),checkedIcon:Il.jsx(Fl,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:ul.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${ul.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:ul.GREEN_PALE,boxShadow:`0 0 0 3px ${vh(ul.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:ul.BLUE_PALE,boxShadow:`0 0 0 3px ${vh(ul.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:ul.GREYSCALE_0_20}},"&.Mui-disabled":{fill:ul.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Il.jsx(Lx,{}),checkedIcon:Il.jsx(Nl,{}),indeterminateIcon:Il.jsx(jl,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:hl,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:ul.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:ul.GREYSCALE_0_55,color:ul.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:ul.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:ul.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:ul.GREYSCALE_0_55,"&:hover":{color:ul.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:ul.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:ul.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:dl,color:ul.TEXT_PRIMARY,lineHeight:"16px",fontWeight:bl},secondary:{fontSize:cl,color:ul.GREYSCALE_45,fontWeight:gl,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:dl,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:dl,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:ul.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:cl,borderBottom:`solid 1px ${ul.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:dl,color:ul.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:ul.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:ul.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:ul.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:ul.RED}}},"&.Mui-focusVisible":{backgroundColor:ul.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:ul.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:ul.GREEN,height:"24px","&.Mui-disabled":{color:ul.GREYSCALE_0_15}},rail:{backgroundColor:ul.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${ul.GREYSCALE_0_05}`,borderRadius:hl,boxShadow:`inset 0px 0px 0px 1px ${ul.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${ul.GREYSCALE_0_05}`,borderRadius:hl},thumb:{height:"16px",width:"16px",borderRadius:hl,backgroundColor:ul.WHITE,boxShadow:`0px 1px 2px 0px ${ul.GREYSCALE_0_15}, 0px 0px 0px 1px ${ul.GREYSCALE_0_05}`,"&:hover":{borderRadius:hl,boxShadow:`0 2px 4px 0 ${ul.GREYSCALE_0_30}, 0 0 0 1px ${ul.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${ul.GREYSCALE_0_15}, 0 0 0 1px ${ul.GREYSCALE_0_06}, 0 0 0 2px ${ul.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${ul.GREYSCALE_0_15}, 0 0 0 1px ${ul.GREYSCALE_0_06}, 0 0 0 2px ${ul.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:ul.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:ul.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:ul.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:ul.GREYSCALE_0_15},markLabel:{color:ul.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:ul.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:ul.WHITE,color:ul.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:ul.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:ul.GREEN_PALE,boxShadow:`0 0 0 3px ${vh(ul.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:ul.BLUE_PALE,boxShadow:`0 0 0 3px ${vh(ul.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:ul.GREYSCALE_0_15,borderRadius:hl},thumb:{height:"16px",width:"16px",borderRadius:hl,backgroundColor:ul.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:dl,fontWeight:bl,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${ul.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${ul.MISC_FOCUS_BORDER}`,backgroundColor:ul.GREYSCALE_0_03,borderRadius:hl},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:ul.GREYSCALE_25,"&.Mui-selected":{color:ul.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:dl,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:hl,"&:hover":{backgroundColor:ul.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 ${ul.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${ul.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:hl,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:ul.GREYSCALE_0_05},"&:hover":{backgroundColor:ul.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${ul.GREYSCALE_85}`,borderRight:`1px solid ${ul.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:bl,backgroundColor:ul.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:ul.GREYSCALE_98,borderBottom:`1px solid ${ul.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${ul.GREYSCALE_85}`,borderTop:`1px solid ${ul.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:ul.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:ul.GREYSCALE_0_05,"&:hover":{backgroundColor:ul.GREYSCALE_0_03}},"&&:hover":{backgroundColor:ul.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Il.jsx($l,{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 ${ul.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:dl,borderRadius:hl,padding:"7px 16px",border:`1px solid ${ul.GREYSCALE_0_15}`,backgroundColor:ul.GREYSCALE_100_60,color:ul.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:ul.GREYSCALE_0_10,border:`1px solid ${ul.GREYSCALE_0_30}`},"&:hover":{backgroundColor:ul.GREYSCALE_0_03,border:`1px solid ${ul.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:ul.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${ul.MISC_FOCUS_BORDER}`,border:`1px solid ${ul.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:ul.GREYSCALE_25,backgroundColor:ul.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:ul.GREYSCALE_0_10,border:`1px solid ${ul.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:cl,height:24,width:24,padding:7},sizeLarge:{fontSize:pl,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:dl,borderRadius:hl}}},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:ul.GREYSCALE_20},tooltip:{backgroundColor:ul.GREYSCALE_20,fontSize:cl,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Dx}:{}}))(t);const _x=e=>({mode:"light",primary:{ultraLight:ul.GREEN_ULTRA_LIGHT,light:ul.GREEN_PALE,main:ul.GREEN,dark:ul.GREEN_DARK,extraDark:ul.GREEN_EXTRA_DARK,contrastText:ul.WHITE},secondary:{ultraLight:ul.BLUE_ULTRA_LIGHT,light:ul.BLUE_PALE,main:ul.BLUE,dark:ul.BLUE_DARK,extraDark:ul.BLUE_EXTRA_DARK,contrastText:ul.WHITE},error:{ultraLight:ul.RED_ULTRA_LIGHT,light:ul.RED_PALE,main:ul.RED,dark:ul.RED_DARK,extraDark:ul.RED_EXTRA_DARK,contrastText:ul.WHITE},warning:{ultraLight:ul.ORANGE_ULTRA_LIGHT,light:ul.ORANGE_PALE,main:ul.ORANGE,dark:ul.ORANGE_DARK,extraDark:ul.ORANGE_EXTRA_DARK,contrastText:ul.WHITE},success:{ultraLight:ul.GREEN_ULTRA_LIGHT,light:ul.GREEN_PALE,main:ul.GREEN,dark:ul.GREEN_DARK,extraDark:ul.GREEN_EXTRA_DARK,contrastText:ul.WHITE},info:{ultraLight:ul.BLUE_ULTRA_LIGHT,light:ul.BLUE_PALE,main:ul.BLUE,dark:ul.BLUE_DARK,extraDark:ul.BLUE_EXTRA_DARK,contrastText:ul.WHITE},text:{primary:ul.TEXT_PRIMARY,secondary:ul.TEXT_SECONDARY,disabled:ul.GREYSCALE_0_30},action:{hover:ul.GREYSCALE_0_03,hoverOpacity:.03,selected:ul.GREYSCALE_0_05,selectedOpacity:.05,focus:ul.MISC_FOCUS_BORDER},amethyst:{ultraLight:ul.WHITE,main:ul.PURPLE,light:ul.PURPLE_PALE,dark:ul.PURPLE_DARK,extraDark:ul.GREYSCALE_0_0,contrastText:ul.WHITE},background:{paper:ul.WHITE,default:ul.GREYSCALE_95},divider:ul.GREYSCALE_0_15}),Ox={...ll},qx=((e="light",t=!1)=>((e,t=!1)=>({components:Tx(0,t),palette:_x(),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:dl,fontWeightLight:ml,fontWeightRegular:gl,fontWeightMedium:bl,fontWeightBold:vl,htmlFontSize:dl,fontFamily:yl.FONT_FAMILY,button:{fontWeight:bl,fontSize:dl,textTransform:"none"},body1:{fontSize:pl,lineHeight:"24px"},body2:{fontSize:dl,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:fl,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:pl,fontWeight:bl,lineHeight:"16px"},h6:{fontSize:dl,fontWeight:bl,lineHeight:"16px"},caption:{color:ul.TEXT_SECONDARY},subtitle1:{fontSize:dl,color:ul.TEXT_SECONDARY},subtitle2:{fontSize:cl,color:ul.TEXT_SECONDARY}},shape:{borderRadius:hl}}))(0,t))().palette,Nx={TEXT:qx.text.primary,DISABLED:qx.text.disabled,HOVER:qx.action.hover,WHITE:Ox.GREYSCALE_100,BORDER_LIGHT:Ox.GREYSCALE_90,BORDER_MEDIUM:Ox.GREYSCALE_85,BORDER_HEAVY:Ox.GREYSCALE_50,DARK_MODE_TEXT:Ox.GREYSCALE_95,DARK_MODE_BORDER:Ox.GREYSCALE_95,DARK_MODE_DISABLED:Ox.GREYSCALE_70,DARK_MODE_BACKGROUND:Ox.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Ox.GREYSCALE_95,SELECTED:qx.primary.main,LINK:qx.info.main},jx=(e,t=Nx.TEXT,r=Nx.WHITE)=>{const n=ee(e),o=ee(t),i=ee(r);return n.isInvalid()?t:function(e,t,r){const n=te(e,t),o=te(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},zx=e=>{const t=e.getStyle("","","dataColors.selected")||Nx.SELECTED,r=function(e,t){const r=ee("#FFFFFF"),n=ee(e),o=ee(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=te(r,n),a=te(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,Nx.TEXT);return{background:t,color:r}},Fx=(e,t)=>{const r=ee(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},$x=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},Bx=e=>{const t=ee(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Hx=(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)},Wx=e=>{e.stopPropagation(),e.preventDefault()},Vx=e=>!!e&&0===ee(e).a,Gx="#grid",Ux=(e,t,r,n=Nx.WHITE)=>e&&!Vx(e)?e:Vx(t)?r&&!Vx(r)?r:n:t,Yx=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},Kx=(e,t,r,n,o)=>{const i=Yx(".qv-object .qv-inner-object",r),a=Yx(".qv-panel-sheet",r),s=Yx(Gx,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 Bx(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ee(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=Vx(d),f=!Vx(h=p?s:d)&&jx(h,Nx.TEXT,Nx.DARK_MODE_TEXT)===K(Nx.DARK_MODE_TEXT);var h;return{color:d,headerColor:Ux(l,d,s),isDark:f}},Xx=(t,r,a,s)=>{const l=i(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o((()=>{let r;return e&&(r=new MutationObserver((e=>{i(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(r.closest(Gx),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return e((()=>({...l,background:Kx(t,l,r,a,s)})),[l.name(),r,a,s,t,u])};function Jx(t,n){const o=e((()=>({isLoading:!0})),n),[i,a]=r((async()=>{try{return await t()}finally{o.isLoading=!1}}),n);return[i,o.isLoading,a]}const Zx=3;function Qx(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 eS({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Zx}=o??{},{estimateWidth:a,measureText:s,estimateLineCount:l}=w((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=at(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=at((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Qx(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 tS,rS=F;tS=rS.createRoot,rS.hydrateRoot;const nS="Source Sans Pro, sans-serif";function oS(e,t){const[r,n]=C(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var iS={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 aS=({translator:e})=>(w((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(iS).forEach((t=>{e.add(iS[t])}))}}(e)}),[e]),e),sS="12px",lS="nebula-table-utils-head-menu-button",uS="nebula-table-utils-head-menu-wrapper",cS="nebula-table-utils-head-menu",dS="nebula-table-utils-head-menu-list-id",pS="sn-copy-cell";let fS=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 hS="nebula-table-utils-column-adjuster";let mS=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}({}),gS=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const bS={darker:.15,brighter:.3,opacity:.03},vS={darker:.3,brighter:.5,opacity:.05};let yS=function(e){return e.Cyclic="C",e}({});const xS=document.createElement("textarea");function SS(e){xS.value=e,document.body.appendChild(xS),xS.select(),xS.setSelectionRange(0,xS.value.length),document.execCommand("copy"),document.body.removeChild(xS)}xS.style.position="absolute",xS.style.left="-9999px",xS.setAttribute("readonly","");const CS=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{SS(t)})):SS(t))};function wS(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 ES,RS,AS,PS="top",kS="top-right",MS="right",IS="bottom-right",LS="bottom",DS="bottom-left",TS="left",_S="top-left";wS(wS(wS(wS(wS(wS(wS(wS(wS(wS(ES={},"equal-equal",[PS,LS]),"equal-higher",[LS,IS]),"equal-lower",[PS,kS]),"equal-void",[PS,LS]),"higher-equal",[TS,DS,PS,kS]),"higher-higher-acute",[LS,DS,TS,kS]),"higher-higher-obtuse",[LS,PS]),"higher-lower-negative",[PS,kS,MS]),"higher-lower-positive",[LS,DS,TS]),"higher-void",[PS]),wS(wS(wS(wS(wS(wS(wS(wS(wS(wS(ES,"lower-equal",[PS]),"lower-higher-negative",[PS,_S]),"lower-higher-positive",[IS]),"lower-lower-acute",[PS,_S,TS,kS,MS]),"lower-lower-obtuse",[PS,LS]),"lower-void",[PS]),"void-equal",[PS]),"void-higher",[PS,LS]),"void-lower",[PS,LS,TS]),"void-void",[PS]),wS(ES,"unclassified",[PS,LS,MS,TS,kS,IS,DS,_S]);var OS=function(){if(AS)return RS;AS=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 RS=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},RS}();function qS(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function NS(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function jS(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(OS);var zS=1/.7,FS="\\s*([+-]?\\d+)\\s*",$S="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",BS="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",HS=/^#([0-9a-f]{3,8})$/,WS=new RegExp(`^rgb\\(${FS},${FS},${FS}\\)$`),VS=new RegExp(`^rgb\\(${BS},${BS},${BS}\\)$`),GS=new RegExp(`^rgba\\(${FS},${FS},${FS},${$S}\\)$`),US=new RegExp(`^rgba\\(${BS},${BS},${BS},${$S}\\)$`),YS=new RegExp(`^hsl\\(${$S},${BS},${BS}\\)$`),KS=new RegExp(`^hsla\\(${$S},${BS},${BS},${$S}\\)$`),XS={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 JS(){return this.rgb().formatHex()}function ZS(){return this.rgb().formatRgb()}function QS(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=HS.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?eC(t):3===r?new oC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?tC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?tC(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=WS.exec(e))?new oC(t[1],t[2],t[3],1):(t=VS.exec(e))?new oC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=GS.exec(e))?tC(t[1],t[2],t[3],t[4]):(t=US.exec(e))?tC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=YS.exec(e))?cC(t[1],t[2]/100,t[3]/100,1):(t=KS.exec(e))?cC(t[1],t[2]/100,t[3]/100,t[4]):XS.hasOwnProperty(e)?eC(XS[e]):"transparent"===e?new oC(NaN,NaN,NaN,0):null}function eC(e){return new oC(e>>16&255,e>>8&255,255&e,1)}function tC(e,t,r,n){return n<=0&&(e=t=r=NaN),new oC(e,t,r,n)}function rC(e){return e instanceof jS||(e=QS(e)),e?new oC((e=e.rgb()).r,e.g,e.b,e.opacity):new oC}function nC(e,t,r,n){return 1===arguments.length?rC(e):new oC(e,t,r,null==n?1:n)}function oC(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function iC(){return`#${uC(this.r)}${uC(this.g)}${uC(this.b)}`}function aC(){const e=sC(this.opacity);return`${1===e?"rgb(":"rgba("}${lC(this.r)}, ${lC(this.g)}, ${lC(this.b)}${1===e?")":`, ${e})`}`}function sC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function lC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function uC(e){return((e=lC(e))<16?"0":"")+e.toString(16)}function cC(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new pC(e,t,r,n)}function dC(e){if(e instanceof pC)return new pC(e.h,e.s,e.l,e.opacity);if(e instanceof jS||(e=QS(e)),!e)return new pC;if(e instanceof pC)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 pC(a,s,l,e.opacity)}function pC(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function fC(e){return(e=(e||0)%360)<0?e+360:e}function hC(e){return Math.max(0,Math.min(1,e||0))}function mC(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}qS(jS,QS,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:JS,formatHex:JS,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return dC(this).formatHsl()},formatRgb:ZS,toString:ZS}),qS(oC,nC,NS(jS,{brighter(e){return e=null==e?zS:Math.pow(zS,e),new oC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new oC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new oC(lC(this.r),lC(this.g),lC(this.b),sC(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:iC,formatHex:iC,formatHex8:function(){return`#${uC(this.r)}${uC(this.g)}${uC(this.b)}${uC(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:aC,toString:aC})),qS(pC,(function(e,t,r,n){return 1===arguments.length?dC(e):new pC(e,t,r,null==n?1:n)}),NS(jS,{brighter(e){return e=null==e?zS:Math.pow(zS,e),new pC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new pC(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 oC(mC(e>=240?e-240:e+120,o,n),mC(e,o,n),mC(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new pC(fC(this.h),hC(this.s),hC(this.l),sC(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=sC(this.opacity);return`${1===e?"hsl(":"hsla("}${fC(this.h)}, ${100*hC(this.s)}%, ${100*hC(this.l)}%${1===e?")":`, ${e})`}`}}));const gC=Math.PI/180,bC=180/Math.PI,vC=4/29,yC=6/29,xC=3*yC*yC;function SC(e){if(e instanceof CC)return new CC(e.l,e.a,e.b,e.opacity);if(e instanceof PC)return kC(e);e instanceof oC||(e=rC(e));var t,r,n=AC(e.r),o=AC(e.g),i=AC(e.b),a=wC((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=wC((.4360747*n+.3850649*o+.1430804*i)/.96422),r=wC((.0139322*n+.0971045*o+.7141733*i)/.82521)),new CC(116*a-16,500*(t-a),200*(a-r),e.opacity)}function CC(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function wC(e){return e>.008856451679035631?Math.pow(e,1/3):e/xC+vC}function EC(e){return e>yC?e*e*e:xC*(e-vC)}function RC(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function AC(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function PC(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function kC(e){if(isNaN(e.h))return new CC(e.l,0,0,e.opacity);var t=e.h*gC;return new CC(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}qS(CC,(function(e,t,r,n){return 1===arguments.length?SC(e):new CC(e,t,r,null==n?1:n)}),NS(jS,{brighter(e){return new CC(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new CC(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 oC(RC(3.1338561*(t=.96422*EC(t))-1.6168667*(e=1*EC(e))-.4906146*(r=.82521*EC(r))),RC(-.9787684*t+1.9161415*e+.033454*r),RC(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),qS(PC,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof PC)return new PC(e.h,e.c,e.l,e.opacity);if(e instanceof CC||(e=SC(e)),0===e.a&&0===e.b)return new PC(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*bC;return new PC(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new PC(e,t,r,null==n?1:n)}),NS(jS,{brighter(e){return new PC(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new PC(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return kC(this).rgb()}}));var MC=e=>()=>e;function IC(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):MC(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?IC: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):MC(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=nC(e)).r,(t=nC(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=IC(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 LC="center",DC="bottom";[{key:"NoDataExist",alignment:LC,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:LC,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:LC,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:LC},{key:"DataRangeIncludingZero",alignment:DC},{key:"LimitedData",alignment:DC},{key:"NegativeOrZeroValues",alignment:DC}].reduce((function(e,t){return e[t.key]=t,e}),{});var TC,_C=["__proto__","constructor"];function OC(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!_C.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 qC(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 NC(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=zC)):void 0===t&&(t=jC);for(var r,n,o,i,a,s=new BC(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 BC(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore($C)}function jC(e){return e.children}function zC(e){return Array.isArray(e)?e[1]:null}function FC(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function $C(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function BC(e){this.data=e,this.depth=this.height=0,this.parent=null}BC.prototype=NC.prototype={constructor:BC,count:function(){return this.eachAfter(qC)},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 NC(this).eachBefore(FC)},[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)}},TC=function(e){
|
|
103
|
-
|
|
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}},TC({exports:{}});var HC={exports:{}};self,HC.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})();var WC=wt(HC.exports);const VC="qHyperCubeDef.qMeasures",GC="measures",UC="qHyperCubeDef.qDimensions",YC="dimensions",KC="qDef.representation",XC="tableRepresentation",JC="qDef.conditionalColoring",ZC="conditionalColoring",QC="qMiniChartDef",ew="miniChartDef",tw=({propertyTree:e,hyperCubePath:t})=>{const r=WC.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 OC(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),WC.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),WC.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),WC.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{WC.quarantineArrayProp({properties:e,arrayPath:UC,itemPath:KC,arrayName:YC,quarantineName:XC}),WC.quarantineArrayProp({properties:e,arrayPath:VC,itemPath:KC,arrayName:GC,quarantineName:XC}),WC.quarantineArrayProp({properties:e,arrayPath:VC,itemPath:JC,arrayName:GC,quarantineName:ZC}),WC.quarantineArrayProp({properties:e,arrayPath:VC,itemPath:QC,arrayName:GC,quarantineName:ew})})(r.properties),r};const rw=/^q[A-Z]/,nw=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],ow=e=>"object"==typeof e&&null!==e,iw=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!rw.test(e)&&!nw.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>ow(e)?iw(e,`${o}.${t}`):e)):ow(n)&&(e[r]=iw(n,o))})),e),aw=(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:gS.Pixels,pixels:e}:{type:gS.FitToContent}:i.qDef.columnWidth=e}return i},sw=({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)}iw(e.properties)}const a=WC.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(WC.conditionalShow.unquarantine(a.qProperty),i)OC(a,"qProperty.totals.show",!1),OC(a,"qProperty.usePagination",!0),OC(a,"qProperty.accessibleHeader",!0);else{WC.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{WC.unquarantineArrayProp({properties:e,arrayPath:UC,itemPath:KC,arrayName:YC,quarantineName:XC}),WC.unquarantineArrayProp({properties:e,arrayPath:VC,itemPath:KC,arrayName:GC,quarantineName:XC}),WC.unquarantineArrayProp({properties:e,arrayPath:VC,itemPath:JC,arrayName:GC,quarantineName:ZC}),WC.unquarantineArrayProp({properties:e,arrayPath:VC,itemPath:QC,arrayName:GC,quarantineName:ew})})(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=>aw(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>aw(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(OC(a,"qProperty.qHyperCubeDef.qDimensions",o),OC(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var lw={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function uw(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function cw(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 dw(e){return e>0?0:1}function pw(e){return e.translator.get("Visualizations.Descriptions.Column")}function fw(e){return{measures:{min:dw,max:1e3,description:()=>pw(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;uw(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;cw(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:dw,max:1e3,description:()=>pw(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return uw(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;cw(o,n)}}}}let hw=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}({}),mw=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const gw=e=>{switch(e?.type){case"url":return hw.Link;case"image":return hw.Image;case"indicator":return hw.Indicator;case"miniChart":return hw.MiniChart;default:return hw.Text}},bw=({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}}),vw=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>gw(e.qDef.representation)===hw.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}}}}}},yw=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:bw({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>gw(e.qDef.representation)===hw.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>gw(e.qDef.representation)===hw.Link&&e.qDef.representation?.urlPosition===mw.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>gw(e.qDef.representation)===hw.Link&&e.qDef.representation?.urlPosition===mw.Attribute},...vw(r)}},xw=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[hw.Image],i=!n?.("qMiniChartDef")&&t[hw.MiniChart],a=!n?.("tableIndicators")&&t[hw.Indicator],s=o&&t[hw.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=>gw(e.qDef.representation)===hw.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 Sw,Cw={};Sw=Cw,(()=>{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 Sw.default=n.default,n)-1===["default"].indexOf(Ze)&&(Sw[Ze]=n[Ze]);Object.defineProperty(Sw,"__esModule",{value:!0})})();var ww=wt(Cw);const Ew={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},Rw={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}},Aw=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)=>(!ww.hasActiveModifiers({measures:[e],properties:t.properties})||ww.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")}),Pw={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:gS.Auto,translation:"Common.Auto"},{value:gS.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:gS.Pixels,translation:"Object.Table.Column.Pixels"},{value:gS.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:gS.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===gS.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===gS.Percentage}},kw=()=>({...Ew,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}]},...Rw,...Pw}),Mw={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"}},Iw=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:Aw(e)}},Lw=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:Mw},presentation:{type:"items",translation:"properties.presentation",items:{...kw(),...yw(e)}}}}}),Dw=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:Iw(e)},presentation:{type:"items",translation:"properties.presentation",items:{...kw(),...xw(e,{[hw.Image]:!0,[hw.Indicator]:!0,[hw.MiniChart]:!0})}}}}}),Tw=e=>({...Lw(e),...Dw(e)}),_w=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...Tw(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}}}),Ow={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}},qw=({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},Nw=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")}),jw=(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}}}),zw=(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},Fw=({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=>zw(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ae(n).filter((e=>!a.includes(e))).map((e=>zw(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),$w=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Bw=({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=>zw(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...$w.filter((e=>!i.includes(e))).map((e=>zw(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Hw=({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:Fw({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:Bw({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:jw(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:jw(`${e}.background`,"properties.background",((t,r)=>{const n=r?Nx.WHITE:Nx.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),Ww=({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:jw(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:jw(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),Vw=(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}},Gw=e=>e.grid?.zebraStripes?.show,Uw={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)}},Yw=e=>e?.content?.hoverEffect,Kw={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:Yw,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:Yw,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},Xw=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,Jw=({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:Hw({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:Vw,disableNoneCallback:Xw}),dimensionValueSection:Hw({section:"dimensionValues",translator:t,flags:e,getThemeValue:Vw}),measureValueSection:Hw({section:"measureValues",translator:t,flags:e,getThemeValue:Vw}),totalRowSection:Hw({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:Vw,disableNoneCallback:Xw}),nullValues:Ww({section:"nullValues",fallbackBackground:Nx.NULL_VALUE_BACKGROUND,getThemeValue:Vw}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...Uw},border:jw("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??Nx.BORDER_MEDIUM)),divider:jw("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??Nx.BORDER_HEAVY))}}}},hoverEffectSection:Kw,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:Gw,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:Gw,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:Gw,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:Gw,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),Zw=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[Jw(e),Nw(e),qw(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:"-"}]},...Ow}}),Qw={uses:"sorting"},eE={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},tE=e=>({type:"items",component:"accordion",items:{data:_w(e),sorting:Qw,addOns:eE,settings:Zw(e)}});function rE(e){return{definition:tE(e),exploration:lw,data:fw(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 sw({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>tw({propertyTree:e,hyperCubePath:t})}}const nE=(t,r)=>e((()=>((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)})(t,r)),[t,r]),oE=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),iE=[];for(let e=0;e<256;++e)iE.push((e+256).toString(16).slice(1));let aE;const sE=new Uint8Array(16);var lE={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function uE(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!aE){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");aE=crypto.getRandomValues.bind(crypto)}return aE(sE)}();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(iE[e[t+0]]+iE[e[t+1]]+iE[e[t+2]]+iE[e[t+3]]+"-"+iE[e[t+4]]+iE[e[t+5]]+"-"+iE[e[t+6]]+iE[e[t+7]]+"-"+iE[e[t+8]]+iE[e[t+9]]+"-"+iE[e[t+10]]+iE[e[t+11]]+iE[e[t+12]]+iE[e[t+13]]+iE[e[t+14]]+iE[e[t+15]]).toLowerCase()}(n)}const cE=()=>{return crypto?.randomUUID?.()??(lE.randomUUID&&!e?lE.randomUUID():uE(e));var e},dE=({qLibraryId:e,cId:t})=>e??t??cE(),pE=e=>"number"==typeof e&&!Number.isNaN(+e),fE=e=>pE(e.qNum),hE=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);function mE(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 gE(e,t,r){return t=xE(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,CE()?Reflect.construct(t,r||[],xE(e).constructor):t.apply(e,r))}function bE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vE(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,RE(n.key),n)}}function yE(e,t,r){return t&&vE(e.prototype,t),r&&vE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xE(e){return xE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xE(e)}function SE(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&&wE(e,t)}function CE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(CE=function(){return!!e})()}function wE(e,t){return wE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wE(e,t)}function EE(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 mE(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)?mE(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 RE(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 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={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:kE(e),value:kE(t),useEqualSign:r}}(r,o,i))}})),t}};function kE(e){try{return decodeURIComponent(e)}catch(t){return e}}function ME(e){if(!(this instanceof ME))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 PE.fromSearchString(t.search)}}})}function IE(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}ME.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},ME.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=IE((t=e[n]).key),t.value?r+="=".concat(IE(t.value)):r+=t.useEqualSign?"=":"";return r};var LE,DE=function(){return yE((function e(t){bE(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}}])}(),TE=function(){return yE((function e(){bE(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new DE(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),_E=function(e){return e>=0&&e<=1114111},OE=function(e){return e.match(/[\s]/)},qE=function(){function e(){return bE(this,e),gE(this,e,arguments)}return SE(e,TE),yE(e,[{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())&&!OE(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return _E(a)?String.fromCharCode(a):"�"}}])}(),NE=function(){function e(t,r){bE(this,e),this._key=t,this._value=r}return yE(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}}])}(),jE=function(){function e(){bE(this,e)}return yE(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 NE.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return NE.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||NE.newInstanceIfNeeded(e,t,this._value)}}])}(),zE=function(){return yE((function e(){bE(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 jE);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),FE=function(){var e,t,r,n=[],o=[],i=new zE;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="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["¬in"]="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}(),$E=function(){function e(){return bE(this,e),gE(this,e,arguments)}return SE(e,TE),yE(e,[{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,FE.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=FE.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)&&_E(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)&&_E(n)?String.fromCharCode(n):null}}])}(),BE=function(){function e(){return bE(this,e),gE(this,e,arguments)}return SE(e,TE),yE(e,[{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),_E(o))?String.fromCharCode(o):(e.reset(),null)}}])}(),HE=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(LE=document.createElement("div"));var WE=Array.prototype.indexOf,VE=[",",".","_"," "],GE=[",",".","-","_"," "],UE={width:["%"],height:["%"]},YE={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},KE={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":YE.image,"background-color":YE.color,"border-color":YE.color,"border-image":YE.image,color:YE.color,icon:YE.image,"list-style-image":YE.image,"outline-color":YE.color},XE={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function JE(e,t,r){var n;if(t){if(WE)return WE.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 ZE(e){if(null==e)return"";var t,r=document.createTextNode(e);return LE.appendChild(r),t=LE.innerHTML,LE.removeChild(r),t}function QE(e,t,r){var n,o,i,a,s,l,u,c,d;for(e=tR(e).toLowerCase(),t=tR(t),i=0;i<XE.attr_name.length;i++)if(e.match(XE.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<XE.attr_val.length;i++)if(t.toLowerCase().match(XE.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=UE[e])||(n=GE),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]/)&&JE(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function eR(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=tR(e).toLowerCase(),t=tR(t),JE(e,XE.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<XE.css_val.length;n++)if(t.toLowerCase().indexOf(XE.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=KE[e])||(o=YE.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]/)&&JE(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function tR(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new $E,new BE,new qE];!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 rR=[],nR=0;nR<255;nR++)rR[nR]=nR>=48&&nR<=57||nR>=65&&nR<=90||nR>=97&&nR<=122?null:nR.toString(16);var oR=function(e){return ZE(e.unsafe)},iR=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]=eR(t,r[t],!0),i+=eR(t,r[t],!0),o[t]=n[t]);return e.map?o:i},aR=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]=QE(i,t[i],!0),o+=QE(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function sR(e,t){throw new Error(t)}var lR={canonicalize:tR,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===AE(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?oR(e):"css"===e.context?(null!=e.map&&"object"!==AE(e.map)&&sR(this,"Invalid parameter type"),iR(e)):"attr"===e.context?(null!=e.map&&"object"!==AE(e.map)&&sR(this,"Invalid parameter type"),aR(e)):void sR(this,"Invalid parameter type")},encodeForAttr:QE,encodeForAttr2:function(e){return QE("nonsens",e,!0)},encodeForCSS:eR,encodeForHref:function(e){tR(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new ME(e),r=ME.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+ME.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=VE),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),JE(o,t)>=0||null==rR[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:ZE,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=tR(t).toLowerCase():sR(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=EE(null!==(t=HE.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 uR=(e,t)=>t.qAttrExps?.qValues?.[e],cR=(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"}}},dR=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&lR.isSafeDataURL(t)?{type:hw.Image,url:t,text:e,imageSize:r,resolvedImagePosition:cR(n,a),labelStructure:o,imageBox:i}:{type:hw.Text,url:void 0,text:e,labelStructure:o},pR=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:hw.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:hw.MiniChart,text:n,miniChart:a}},fR=(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===mw.Attribute?void 0:r?.urlLabel},hR=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:hw.Link,url:lR.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:hw.Text,url:void 0,text:t,labelStructure:e}}},mR=({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=gw(t),d=s(e);return c===hw.Image&&u[hw.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=uR(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),dR({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 dR({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=uR(r.imageLabel??-1,e)?.qText??n;return dR({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:hw.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===hw.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===mw.Attribute){const i=fR(r.url??-1,e,t);return hR({labelStructure:n,text:o||i||"",url:i})}if(i===mw.Dimension){const i=fR(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),hR({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:hw.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===hw.Indicator&&u[hw.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:hw.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===hw.MiniChart&&u[hw.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?pR(e,t,i,d):{type:hw.Text,url:void 0,text:d,labelStructure:a}},gR=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,bR=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",vR=1e4;function yR(e,t){return[...t].reverse().find((t=>t*e<=vR))||Math.floor(vR/e)}function xR(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 SR(e,t,r,n){return t?0===r?e.totals.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function CR(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return pE(r?.qNum)}function wR(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 ER=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const RR=(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===yS.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:gS.Auto},selectionColIdx:v,isActivelySorted:f,id:dE(d),label:w,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:R.map((e=>e.id)),qAttrExprInfoIndex:oE(d),sortDirection:A&&"N"!==A?A:"A",totalInfo:SR(e,c,r,n),...!c&&{isTotalNumeric:CR(e,n)},...wR(E,h,c,o,i),representation:S,conditionalColoring:c?void 0:C,qMiniChart:m}}(e,n,o,u[n],t,r)))};const AR=(e,t)=>!(!e.snapshotData&&!t.viewState?.visibleHeight),PR=(e,t)=>void 0!==t.viewState?.usePagination?t.viewState.usePagination:!1!==e.usePagination||AR(e,t);var kR="$$material";const MR=["values","unit","step"];function IR(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=yr(e,MR),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)=>yt({},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 yt({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 LR={borderRadius:4};function DR(e,t){return t?Sp(e,t,{clone:!1}):e}const TR={xs:0,sm:600,md:900,lg:1200,xl:1536},_R={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${TR[e]}px)`};function OR(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||_R;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||_R;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||TR).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function qR(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function NR(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 jR(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:NR(e,r)||n,t&&(o=t(o,n,e)),o}function zR(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=NR(e.theme,n)||{};return OR(e,i,(e=>{let n=jR(a,o,e);return e===n&&"string"==typeof e&&(n=jR(a,o,`${t}${"default"===e?"":Ip(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const FR={m:"margin",p:"padding"},$R={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},BR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},HR=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!BR[e])return[e];e=BR[e]}const[t,r]=e.split(""),n=FR[t],o=$R[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),WR=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],VR=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function GR(e,t,r,n){var o;const i=null!=(o=NR(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 UR(e){return GR(e,"spacing",8)}function YR(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 KR(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=YR(t,r),e)),{})}(HR(r),n);return OR(e,e[r],o)}function XR(e,t){const r=UR(e.theme);return Object.keys(e).map((n=>KR(e,t,n,r))).reduce(DR,{})}function JR(e){return XR(e,WR)}function ZR(e){return XR(e,VR)}function QR(...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]?DR(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function eA(e){return"number"!=typeof e?e:`${e}px solid`}function tA(e,t){return zR({prop:e,themeKey:"borders",transform:t})}JR.propTypes={},JR.filterProps=WR,ZR.propTypes={},ZR.filterProps=VR;const rA=tA("border",eA),nA=tA("borderTop",eA),oA=tA("borderRight",eA),iA=tA("borderBottom",eA),aA=tA("borderLeft",eA),sA=tA("borderColor"),lA=tA("borderTopColor"),uA=tA("borderRightColor"),cA=tA("borderBottomColor"),dA=tA("borderLeftColor"),pA=tA("outline",eA),fA=tA("outlineColor"),hA=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=GR(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:YR(t,e)});return OR(e,e.borderRadius,r)}return null};hA.propTypes={},hA.filterProps=["borderRadius"],QR(rA,nA,oA,iA,aA,sA,lA,uA,cA,dA,hA,pA,fA);const mA=e=>{if(void 0!==e.gap&&null!==e.gap){const t=GR(e.theme,"spacing",8),r=e=>({gap:YR(t,e)});return OR(e,e.gap,r)}return null};mA.propTypes={},mA.filterProps=["gap"];const gA=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=GR(e.theme,"spacing",8),r=e=>({columnGap:YR(t,e)});return OR(e,e.columnGap,r)}return null};gA.propTypes={},gA.filterProps=["columnGap"];const bA=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=GR(e.theme,"spacing",8),r=e=>({rowGap:YR(t,e)});return OR(e,e.rowGap,r)}return null};bA.propTypes={},bA.filterProps=["rowGap"];function vA(e,t){return"grey"===t?t:e}QR(mA,gA,bA,zR({prop:"gridColumn"}),zR({prop:"gridRow"}),zR({prop:"gridAutoFlow"}),zR({prop:"gridAutoColumns"}),zR({prop:"gridAutoRows"}),zR({prop:"gridTemplateColumns"}),zR({prop:"gridTemplateRows"}),zR({prop:"gridTemplateAreas"}),zR({prop:"gridArea"}));function yA(e){return e<=1&&0!==e?100*e+"%":e}QR(zR({prop:"color",themeKey:"palette",transform:vA}),zR({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vA}),zR({prop:"backgroundColor",themeKey:"palette",transform:vA}));const xA=zR({prop:"width",transform:yA}),SA=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])||TR[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:yA(t)}};return OR(e,e.maxWidth,t)}return null};SA.filterProps=["maxWidth"];const CA=zR({prop:"minWidth",transform:yA}),wA=zR({prop:"height",transform:yA}),EA=zR({prop:"maxHeight",transform:yA}),RA=zR({prop:"minHeight",transform:yA});zR({prop:"size",cssProperty:"width",transform:yA}),zR({prop:"size",cssProperty:"height",transform:yA});QR(xA,SA,CA,wA,EA,RA,zR({prop:"boxSizing"}));const AA={border:{themeKey:"borders",transform:eA},borderTop:{themeKey:"borders",transform:eA},borderRight:{themeKey:"borders",transform:eA},borderBottom:{themeKey:"borders",transform:eA},borderLeft:{themeKey:"borders",transform:eA},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:eA},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:hA},color:{themeKey:"palette",transform:vA},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vA},backgroundColor:{themeKey:"palette",transform:vA},p:{style:ZR},pt:{style:ZR},pr:{style:ZR},pb:{style:ZR},pl:{style:ZR},px:{style:ZR},py:{style:ZR},padding:{style:ZR},paddingTop:{style:ZR},paddingRight:{style:ZR},paddingBottom:{style:ZR},paddingLeft:{style:ZR},paddingX:{style:ZR},paddingY:{style:ZR},paddingInline:{style:ZR},paddingInlineStart:{style:ZR},paddingInlineEnd:{style:ZR},paddingBlock:{style:ZR},paddingBlockStart:{style:ZR},paddingBlockEnd:{style:ZR},m:{style:JR},mt:{style:JR},mr:{style:JR},mb:{style:JR},ml:{style:JR},mx:{style:JR},my:{style:JR},margin:{style:JR},marginTop:{style:JR},marginRight:{style:JR},marginBottom:{style:JR},marginLeft:{style:JR},marginX:{style:JR},marginY:{style:JR},marginInline:{style:JR},marginInlineStart:{style:JR},marginInlineEnd:{style:JR},marginBlock:{style:JR},marginBlockStart:{style:JR},marginBlockEnd:{style:JR},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:mA},rowGap:{style:bA},columnGap:{style:gA},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:yA},maxWidth:{style:SA},minWidth:{transform:yA},height:{transform:yA},maxHeight:{transform:yA},minHeight:{transform:yA},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function PA(){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=NR(r,s)||{};if(u)return u(o);return OR(o,t,(t=>{let r=jR(c,l,t);return t===r&&"string"==typeof t&&(r=jR(c,l,`${e}${"default"===t?"":Ip(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:AA;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=DR(u,e(r,o,i,s));else{const e=OR({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=DR(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=DR(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":qR(l,u)}:qR(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const kA=PA();function MA(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:{}}kA.filterProps=["sx"];const IA=["breakpoints","palette","spacing","shape"];function LA(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=yr(e,IA),s=IR(r),l=function(e=8){if(e.mui)return e;const t=UR({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=Sp({breakpoints:s,direction:"ltr",components:{},palette:yt({mode:"light"},n),spacing:l,shape:yt({},LR,i)},a);return u.applyStyles=MA,u=t.reduce(((e,t)=>Sp(e,t)),u),u.unstable_sxConfig=yt({},AA,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return kA({sx:e,theme:this})},u}var DA=Object.freeze({__proto__:null,default:LA,private_createBreakpoints:IR,unstable_applyStyles:MA});function TA(e=null){const t=y.useContext(rp);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const _A=LA();function OA(e=_A){return TA(e)}function qA(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function NA({styles:e,themeId:t,defaultTheme:r={}}){const n=OA(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>qA("function"==typeof e?e(o):e))):qA(i)),Il.jsx(hp,{styles:i})}const jA=["sx"];function zA(e){const{sx:t}=e,r=yr(e,jA),{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:AA;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 yp(r)?yt({},n,r):n}:yt({},n,t),yt({},o,{sx:i})}var FA=Object.freeze({__proto__:null,default:kA,extendSxProp:zA,unstable_createStyleFunctionSx:PA,unstable_defaultSxConfig:AA});const $A=["className","component"];function BA(e){if(e.type)return e;if("#"===e.charAt(0))return BA(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(Cu(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(Cu(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function HA(e,t){return e=BA(e),t=function(e,t=0,r=1){return mh(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 WA=["value"],VA=y.createContext();function GA(e){let{value:t}=e,r=yr(e,WA);return Il.jsx(VA.Provider,yt({value:null==t||t},r))}const UA=y.createContext(void 0);function YA({value:e,children:t}){return Il.jsx(UA.Provider,{value:e,children:t})}function KA({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?fh(o.defaultProps,n):o.styleOverrides||o.variants?n:fh(o,n)}({props:e,name:t,theme:{components:y.useContext(UA)}})}const XA={};function JA(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?yt({},t,{[e]:i}):i;return n?()=>a:a}return yt({},t,e?{[e]:r}:r)}),[e,t,r,n])}function ZA(e){const{children:t,theme:r,themeId:n}=e,o=TA(XA),i=Zh()||XA,a=JA(n,o,r),s=JA(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=TA(),r=Ah()||"",{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};`:"",hh((()=>{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?Il.jsx(NA,{styles:o}):null}(a);return Il.jsx(em,{theme:s,children:Il.jsx(rp.Provider,{value:a,children:Il.jsx(GA,{value:l,children:Il.jsxs(YA,{value:null==a?void 0:a.components,children:[u,t]})})})})}function QA(e,t){return yt({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var eP={},tP={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(tP);var rP=tP.exports,nP=rP;Object.defineProperty(eP,"__esModule",{value:!0});var oP=eP.alpha=bP;eP.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=pP(e),a=pP(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return hP({type:"rgb",values:s})},eP.colorChannel=void 0;var iP=eP.darken=vP;eP.decomposeColor=pP,eP.emphasize=xP;var aP=eP.getContrastRatio=function(e,t){const r=gP(e),n=gP(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};eP.getLuminance=gP,eP.hexToRgb=dP,eP.hslToRgb=mP;var sP=eP.lighten=yP;eP.private_safeAlpha=function(e,t,r){try{return bP(e,t)}catch(t){return e}},eP.private_safeColorChannel=void 0,eP.private_safeDarken=function(e,t,r){try{return vP(e,t)}catch(t){return e}},eP.private_safeEmphasize=function(e,t,r){try{return xP(e,t)}catch(t){return e}},eP.private_safeLighten=function(e,t,r){try{return yP(e,t)}catch(t){return e}},eP.recomposeColor=hP,eP.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=pP(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 lP=nP(um),uP=nP(cm);function cP(e,t=0,r=1){return(0,uP.default)(e,t,r)}function dP(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 pP(e){if(e.type)return e;if("#"===e.charAt(0))return pP(dP(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,lP.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,lP.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const fP=e=>{const t=pP(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};eP.colorChannel=fP;function hP(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 mP(e){e=pP(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])),hP({type:s,values:l})}function gP(e){let t="hsl"===(e=pP(e)).type||"hsla"===e.type?pP(mP(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 bP(e,t){return e=pP(e),t=cP(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,hP(e)}function vP(e,t){if(e=pP(e),t=cP(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 hP(e)}function yP(e,t){if(e=pP(e),t=cP(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 hP(e)}function xP(e,t=.15){return gP(e)>.5?vP(e,t):yP(e,t)}eP.private_safeColorChannel=(e,t)=>{try{return fP(e)}catch(t){return e}};const SP={black:"#000",white:"#fff"},CP={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"},wP="#f3e5f5",EP="#ce93d8",RP="#ba68c8",AP="#ab47bc",PP="#9c27b0",kP="#7b1fa2",MP="#e57373",IP="#ef5350",LP="#f44336",DP="#d32f2f",TP="#c62828",_P="#ffb74d",OP="#ffa726",qP="#ff9800",NP="#f57c00",jP="#e65100",zP="#e3f2fd",FP="#90caf9",$P="#42a5f5",BP="#1976d2",HP="#1565c0",WP="#4fc3f7",VP="#29b6f6",GP="#03a9f4",UP="#0288d1",YP="#01579b",KP="#81c784",XP="#66bb6a",JP="#4caf50",ZP="#388e3c",QP="#2e7d32",ek="#1b5e20",tk=["mode","contrastThreshold","tonalOffset"],rk={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:SP.white,default:SP.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}},nk={text:{primary:SP.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:SP.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 ok(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=sP(e.main,o):"dark"===t&&(e.dark=iP(e.main,i)))}function ik(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=yr(e,tk),i=e.primary||function(e="light"){return"dark"===e?{main:FP,light:zP,dark:$P}:{main:BP,light:$P,dark:HP}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:EP,light:wP,dark:AP}:{main:PP,light:RP,dark:kP}}(t),s=e.error||function(e="light"){return"dark"===e?{main:LP,light:MP,dark:DP}:{main:DP,light:IP,dark:TP}}(t),l=e.info||function(e="light"){return"dark"===e?{main:VP,light:WP,dark:UP}:{main:UP,light:GP,dark:YP}}(t),u=e.success||function(e="light"){return"dark"===e?{main:XP,light:KP,dark:ZP}:{main:QP,light:JP,dark:ek}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:OP,light:_P,dark:NP}:{main:"#ed6c02",light:qP,dark:jP}}(t);function d(e){return aP(e,nk.text.primary)>=r?nk.text.primary:rk.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=yt({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Cu(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Cu(12,t?` (${t})`:"",JSON.stringify(e.main)));return ok(e,"light",o,n),ok(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:nk,light:rk};return Sp(yt({common:yt({},SP),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:CP,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const ak=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const sk={textTransform:"uppercase"},lk='"Roboto", "Helvetica", "Arial", sans-serif';function uk(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=lk,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=yr(r,ak),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return yt({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===lk?{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,sk),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,sk),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Sp(yt({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function ck(...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 dk=["none",ck(0,2,1,-1,0,1,1,0,0,1,3,0),ck(0,3,1,-2,0,2,2,0,0,1,5,0),ck(0,3,3,-2,0,3,4,0,0,1,8,0),ck(0,2,4,-1,0,4,5,0,0,1,10,0),ck(0,3,5,-1,0,5,8,0,0,1,14,0),ck(0,3,5,-1,0,6,10,0,0,1,18,0),ck(0,4,5,-2,0,7,10,1,0,2,16,1),ck(0,5,5,-3,0,8,10,1,0,3,14,2),ck(0,5,6,-3,0,9,12,1,0,3,16,2),ck(0,6,6,-3,0,10,14,1,0,4,18,3),ck(0,6,7,-4,0,11,15,1,0,4,20,3),ck(0,7,8,-4,0,12,17,2,0,5,22,4),ck(0,7,8,-4,0,13,19,2,0,5,24,4),ck(0,7,9,-4,0,14,21,2,0,5,26,4),ck(0,8,9,-5,0,15,22,2,0,6,28,5),ck(0,8,10,-5,0,16,24,2,0,6,30,5),ck(0,8,11,-5,0,17,26,2,0,6,32,5),ck(0,9,11,-5,0,18,28,2,0,7,34,6),ck(0,9,12,-6,0,19,29,2,0,7,36,6),ck(0,10,13,-6,0,20,31,3,0,8,38,7),ck(0,10,13,-6,0,21,33,3,0,8,40,7),ck(0,10,14,-6,0,22,35,3,0,8,42,7),ck(0,11,14,-7,0,23,36,3,0,9,44,8),ck(0,11,15,-7,0,24,38,3,0,9,46,8)],pk=["duration","easing","delay"],fk={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)"},hk={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function mk(e){return`${Math.round(e)}ms`}function gk(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function bk(e){const t=yt({},fk,e.easing),r=yt({},hk,e.duration);return yt({getAutoHeightDuration:gk,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return yr(n,pk),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:mk(o)} ${i} ${"string"==typeof a?a:mk(a)}`)).join(",")}},e,{easing:t,duration:r})}const vk={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},yk=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function xk(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=yr(e,yk);if(e.vars&&void 0===e.generateCssVars)throw new Error(Cu(18));const s=ik(n),l=LA(e);let u=Sp(l,{mixins:QA(l.breakpoints,r),palette:s,shadows:dk.slice(),typography:uk(s,i),transitions:bk(o),zIndex:yt({},vk)});return u=Sp(u,a),u=t.reduce(((e,t)=>Sp(e,t)),u),u.unstable_sxConfig=yt({},AA,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return kA({sx:e,theme:this})},u}const Sk=xk();var Ck,wk={},Ek={exports:{}};function Rk(){return Ck||(Ck=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}(Ek)),Ek.exports}var Ak,Pk={exports:{}};function kk(){return Ak||(Ak=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}(Pk)),Pk.exports}var Mk=Et(DA),Ik=Et(FA),Lk=rP;Object.defineProperty(wk,"__esModule",{value:!0});var Dk=wk.default=function(e={}){const{themeId:t,defaultTheme:r=Vk,rootShouldForwardProp:n=Hk,slotShouldForwardProp:o=Hk}=e,i=e=>(0,jk.default)((0,Tk.default)({},e,{theme:Uk((0,Tk.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Ok.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Yk(Gk(l))}=a,p=(0,_k.default)(a,$k),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=Hk;"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,Ok.default)(e,(0,Tk.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,qk.isPlainObject)(e)?n=>{const o=Uk({theme:n.theme,defaultTheme:r,themeId:t});return Kk(e,(0,Tk.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=Uk((0,Tk.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]=Kk(r,(0,Tk.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=Uk((0,Tk.default)({},e,{defaultTheme:r,themeId:t}));return Kk({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Tk.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}};wk.shouldForwardProp=Hk,wk.systemDefaultTheme=void 0;var Tk=Lk(Rk()),_k=Lk(kk()),Ok=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Bk(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}(rg),qk=ng;Lk(og),Lk(ig);var Nk=Lk(Mk),jk=Lk(Ik);const zk=["ownerState"],Fk=["variants"],$k=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Bk(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Bk=function(e){return e?r:t})(e)}function Hk(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Wk(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Vk=wk.systemDefaultTheme=(0,Nk.default)(),Gk=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Uk({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Yk(e){return e?(t,r)=>r[e]:null}function Kk(e,t,r){let{ownerState:n}=t,o=(0,_k.default)(t,zk);const i="function"==typeof e?e((0,Tk.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>Kk(e,(0,Tk.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,_k.default)(i,Fk);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Tk.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,Tk.default)({ownerState:n},o,n)):e.style;t.push(r?Wk((0,Ok.internal_serializeStyles)(i),r):i)}})),t}return r?Wk((0,Ok.internal_serializeStyles)(i),r):i}const Xk=Dk({themeId:kR,defaultTheme:Sk,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),Jk=["theme"];function Zk(e){let{theme:t}=e,r=yr(e,Jk);const n=t[kR];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=yt({},n,{vars:null}):t&&!t.vars&&(o=yt({},t,{vars:null}))),Il.jsx(ZA,yt({},r,{themeId:n?kR:void 0,theme:o}))}var Qk={exports:{}};
|
|
90
|
+
`),Nc.rippleVisible,Bc,550,(({theme:e})=>e.transitions.easing.easeInOut),Nc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Nc.child,Nc.childLeaving,Vc,550,(({theme:e})=>e.transitions.easing.easeInOut),Nc.childPulsate,Wc,(({theme:e})=>e.transitions.easing.easeInOut)),Yc=y.forwardRef((function(e,t){const r=lc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=jr(r,_c),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=Zs(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,Qt.jsx(Gc,{classes:{ripple:os(o.ripple,Nc.ripple),rippleVisible:os(o.rippleVisible,Nc.rippleVisible),ripplePulsate:os(o.ripplePulsate,Nc.ripplePulsate),child:os(o.child,Nc.child),childLeaving:os(o.childLeaving,Nc.childLeaving),childPulsate:os(o.childPulsate,Nc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.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=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.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 y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Qt.jsx(Uc,_r({className:os(Nc.root,o.root,i),ref:m},a,{children:Qt.jsx(Mc,{component:null,exit:!0,children:s})}))}));function Kc(e){return ss("MuiButtonBase",e)}const Xc=ls("MuiButtonBase",["root","disabled","focusVisible"]),Jc=["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"],Zc=oc("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"},[`&.${Xc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qc=y.forwardRef((function(e,t){const r=lc({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:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:P,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:k}=r,T=jr(r,Jc),q=y.useRef(null),L=y.useRef(null),O=Ys(L,D),{isFocusVisibleRef:N,onFocus:_,onBlur:j,ref:z}=sl(),[F,H]=y.useState(!1);l&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),q.current.focus()}})),[]);const[$,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const V=$&&!u&&!l;function W(e,t,r=c){return Gs((n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&$&&L.current.pulsate()}),[u,d,F,$]);const U=W("start",w),G=W("stop",h),Y=W("stop",g),K=W("stop",E),X=W("stop",(e=>{F&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",P),ee=W("stop",(e=>{j(e),!1===N.current&&H(!1),f&&f(e)}),!1),te=Gs((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=y.useRef(!1),oe=Gs((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(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=Gs((e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),S&&S(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=Ys(t,z,q),ue=_r({},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=ul({root:["root",t&&"disabled",r&&"focusVisible"]},Kc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Qt.jsxs(Zc,_r({as:ae,className:os(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?Qt.jsx(Yc,_r({ref:O,center:o},M)):null]}))}));function ed(e){return ss("MuiIconButton",e)}const td=ls("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),rd=["edge","children","className","color","disabled","disableFocusRipple","size"],nd=oc(Qc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Ki(r.color)}`],r.edge&&t[`edge${Ki(r.edge)}`],t[`size${Ki(r.size)}`]]}})((({theme:e,ownerState:t})=>_r({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})`:zl(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 _r({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&_r({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":_r({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:zl(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)},{[`&.${td.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),od=y.forwardRef((function(e,t){const r=lc({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=jr(r,rd),d=_r({},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 ul({root:["root",r&&"disabled","default"!==n&&`color${Ki(n)}`,o&&`edge${Ki(o)}`,`size${Ki(i)}`]},ed,t)})(d);return Qt.jsx(nd,_r({className:os(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function id(e){return ss("MuiTypography",e)}ls("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ad=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],sd=oc("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${Ki(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>_r({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}))),ld={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ud={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cd=y.forwardRef((function(e,t){const r=lc({props:e,name:"MuiTypography"}),n=(e=>ud[e]||e)(r.color),o=Qa(_r({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=ld}=o,f=jr(o,ad),m=_r({},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]||ld[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return ul({root:["root",i,"inherit"!==e.align&&`align${Ki(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},id,a)})(m);return Qt.jsx(sd,_r({as:h,ref:t,ownerState:m,className:os(g.root,a)},f))}));const dd=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=Ys(y.isValidElement(r)?hl(r):null,t);if(qs((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),qs((()=>{if(i&&!o)return $s(t,i),()=>{$s(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return Qt.jsx(y.Fragment,{children:r})}return Qt.jsx(y.Fragment,{children:i?z.createPortal(r,i):i})})),pd=["onChange","maxRows","minRows","style","value"];function fd(e){return parseInt(e,10)||0}const md={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function hd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const gd=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=jr(e,pd),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=Ys(t,u),d=y.useRef(null),p=y.useRef(null),f=y.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=Hs(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=fd(i.paddingBottom)+fd(i.paddingTop),l=fd(i.borderBottomWidth)+fd(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=Gs((()=>{const e=u.current,t=f();if(!e||!t||hd(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),h=y.useCallback((()=>{const e=u.current,t=f();if(!e||!t||hd(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=y.useRef(-1);qs((()=>{const e=zs(h),t=null==u?void 0:u.current;if(!t)return;const r=Hs(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]),qs((()=>{h()}));return Qt.jsxs(y.Fragment,{children:[Qt.jsx("textarea",_r({value:a,onChange:e=>{l||h(),r&&r(e)},ref:c,rows:o,style:i},s)),Qt.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:_r({},md,i,{paddingTop:0,paddingBottom:0})})]})}));function bd({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 vd=y.createContext(void 0);function yd(){return y.useContext(vd)}function xd(e){return Qt.jsx(Ja,_r({},e,{defaultTheme:wu,themeId:Nr}))}function Sd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function wd(e,t=!1){return e&&(Sd(e.value)&&""!==e.value||t&&Sd(e.defaultValue)&&""!==e.defaultValue)}function Cd(e){return ss("MuiInputBase",e)}const Ed=ls("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Rd=["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"],Pd=(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${Ki(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Ad=(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]},Id=oc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Pd})((({theme:e,ownerState:t})=>_r({},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",[`&.${Ed.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&_r({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Md=oc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ad})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=_r({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 _r({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] + .${Ed.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},[`&.${Ed.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"})})),Dd=Qt.jsx(xd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),kd=y.forwardRef((function(e,t){var r;const n=lc({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:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:P,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=jr(n,Rd),F=null!=b.value?b.value:j,{current:H}=y.useRef(null!=F),$=y.useRef(),B=y.useCallback((e=>{}),[]),V=Ys($,v,b.ref,B),[W,U]=y.useState(!1),G=yd(),Y=bd({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:W,y.useEffect((()=>{!G&&d&&W&&(U(!1),E&&E())}),[G,d,W,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=y.useCallback((e=>{wd(e)?K&&K():X&&X()}),[K,X]);qs((()=>{H&&J({value:F})}),[F,J,H]);y.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;w&&"input"===Z&&(Q=_r(q?{type:void 0,minRows:q,maxRows:q}:{type:void 0,maxRows:x,minRows:S},Q),Z=gd);y.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=_r({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:w,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 ul({root:["root",`color${Ki(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Ki(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"]},Cd,t)})(ee),re=O.root||l.Root||Id,ne=L.root||u.root||{},oe=O.input||l.Input||Md;return Q=_r({},Q,null!=(r=L.input)?r:u.input),Qt.jsxs(y.Fragment,{children:[!p&&Dd,Qt.jsxs(re,_r({},ne,!cl(re)&&{ownerState:_r({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),P&&P(e)}},z,{className:os(te.root,ne.className,s,k&&"MuiInputBase-readOnly"),children:[N,Qt.jsx(vd.Provider,{value:null,children:Qt.jsx(oe,_r({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:C,placeholder:D,readOnly:k,required:Y.required,rows:q,value:F,onKeyDown:I,onKeyUp:M,type:_},Q,!cl(oe)&&{as:Z,ownerState:_r({},ee,Q.ownerState)},{ref:V,className:os(te.input,Q.className,k&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(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(Lr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(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(_r({},Y,{startAdornment:N})):null]}))]})}));function Td(e){return ss("MuiInput",e)}const qd=_r({},Ed,ls("MuiInput",["root","underline","input"]));function Ld(e){return ss("MuiOutlinedInput",e)}const Od=_r({},Ed,ls("MuiOutlinedInput",["root","notchedOutline","input"]));function Nd(e){return ss("MuiFilledInput",e)}const _d=_r({},Ed,ls("MuiFilledInput",["root","underline","input"]));var jd=function(e,t){function r(r,n){return Qt.jsx(pc,_r({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=pc.muiName,y.memo(y.forwardRef(r))}(Qt.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const zd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Fd={entering:{opacity:1},entered:{opacity:1}},Hd=y.forwardRef((function(e,t){const r=Cu(),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=wc}=e,v=jr(e,zd),x=y.useRef(null),S=Ys(x,hl(a),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w(((e,t)=>{Dc(e);const n=kc({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)})),R=w(c),P=w(m),A=w((e=>{const t=kc({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=w(f);return Qt.jsx(b,_r({appear:i,in:l,nodeRef:x,onEnter:E,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:P,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,_r({style:_r({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Fd[e],h,a.props.style),ref:S},t))}))}));function $d(e){return ss("MuiBackdrop",e)}ls("MuiBackdrop",["root","invisible"]);const Bd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Vd=oc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>_r({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"}))),Wd=y.forwardRef((function(e,t){var r,n,o;const i=lc({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=Hd,transitionDuration:g}=i,b=jr(i,Bd),v=_r({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return ul({root:["root",r&&"invisible"]},$d,t)})(v),x=null!=(r=f.root)?r:c.root;return Qt.jsx(h,_r({in:p,timeout:g},b,{children:Qt.jsx(Vd,_r({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:l,className:os(y.root,s,null==x?void 0:x.className),ownerState:_r({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Ud=ls("MuiBox",["root"]),Gd=Su(),Yd=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=qi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})($a);return y.forwardRef((function(e,a){const s=Ka(r),l=Qa(e),{className:u,component:c="div"}=l,d=jr(l,is);return Qt.jsx(i,_r({as:c,ref:a,className:os(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Nr,defaultTheme:Gd,defaultClassName:Ud.root,generateClassName:rs.generate});function Kd(e){return ss("MuiButton",e)}const Xd=ls("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"]),Jd=y.createContext({}),Zd=y.createContext(void 0),Qd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ep=e=>_r({},"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}}),tp=oc(Qc,{shouldForwardProp:e=>nc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ki(r.color)}`],t[`size${Ki(r.size)}`],t[`${r.variant}Size${Ki(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 _r({},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":_r({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:zl(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})`:zl(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})`:zl(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":_r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Xd.focusVisible}`]:_r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Xd.disabled}`]:_r({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 ${zl(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"},[`&.${Xd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xd.disabled}`]:{boxShadow:"none"}})),rp=oc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Ki(r.size)}`]]}})((({ownerState:e})=>_r({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},ep(e)))),np=oc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Ki(r.size)}`]]}})((({ownerState:e})=>_r({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},ep(e)))),op=y.forwardRef((function(e,t){const r=y.useContext(Jd),n=y.useContext(Zd),o=lc({props:Ts(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,x=jr(o,Qd),S=_r({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return _r({},a,ul({root:["root",i,`${i}${Ki(t)}`,`size${Ki(o)}`,`${i}Size${Ki(o)}`,`color${Ki(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ki(o)}`],endIcon:["icon","endIcon",`iconSize${Ki(o)}`]},Kd,a))})(S),C=g&&Qt.jsx(rp,{className:w.startIcon,ownerState:S,children:g}),E=p&&Qt.jsx(np,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return Qt.jsxs(tp,_r({ownerState:S,className:os(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:os(w.focusVisible,f),ref:t,type:b},x,{classes:w,children:[C,i,E]}))}));function ip(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ap(e){return parseInt(Hs(e).getComputedStyle(e).paddingRight,10)||0}function sp(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&&ip(e,o)}))}function lp(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function up(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Fs(e);return t.body===e?Hs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ll(Fs(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ap(n)+e}px`;const t=Fs(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ap(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Fs(n).body;else{const t=n.parentElement,r=Hs(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 cp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dp(e){const t=[],r=[];return Array.from(e.querySelectorAll(cp)).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 pp(){return!0}function fp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=dp,isEnabled:a=pp,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=Ys(hl(t),m),g=y.useRef(null);y.useEffect((()=>{s&&m.current&&(f.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!m.current)return;const e=Fs(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]),y.useEffect((()=>{if(!s||!m.current)return;const e=Fs(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 Qt.jsxs(y.Fragment,{children:[Qt.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.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)}}),Qt.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const mp=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&&ip(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);sp(t,e.mount,e.modalRef,n,!0);const o=lp(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=lp(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=up(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=lp(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&&ip(e.modalRef,t),sp(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&&ip(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function hp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=mp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=Ys(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=Gs((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Fs(f.current).body;o.add(S(),e),m.current&&w()})),E=y.useCallback((()=>o.isTopModal(S())),[o]),R=Gs((e=>{f.current=e,e&&(c&&E()?w():m.current&&ip(m.current,x))})),P=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{P()}),[P]),y.useEffect((()=>{c?C():v&&i||P()}),[c,P,v,i,C]);const A=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")))},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=dl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=_r({},r,t);return _r({role:"presentation"},n,{onKeyDown:A(n),ref:h})},getBackdropProps:(e={})=>_r({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:js((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:js((()=>{b(!0),s&&s(),i&&P()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function gp(e){return ss("MuiModal",e)}ls("MuiModal",["root","hidden","backdrop"]);const bp=["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"],vp=oc("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})=>_r({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),yp=oc(Wd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),xp=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=lc({name:"MuiModal",props:e}),{BackdropComponent:u=yp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:P=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=l,k=jr(l,bp),T=_r({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:P}),{getRootProps:q,getBackdropProps:L,getTransitionProps:O,portalRef:N,isTopModal:_,exited:j,hasTransition:z}=hp(_r({},T,{rootRef:t})),F=_r({},T,{exited:j}),H=(e=>{const{open:t,exited:r,classes:n}=e;return ul({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},gp,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:vp,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=ml({elementType:B,externalSlotProps:W,externalForwardedProps:k,getSlotProps:q,additionalProps:{ref:t,as:h},ownerState:F,className:os(d,null==W?void 0:W.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=ml({elementType:V,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L(_r({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:os(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return P||I||z&&!j?Qt.jsx(dd,{ref:N,container:m,disablePortal:w,children:Qt.jsxs(B,_r({},G,{children:[!R&&u?Qt.jsx(V,_r({},Y)):null,Qt.jsx(fp,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:_,open:I,children:y.cloneElement(f,$)})]}))}):null}));function Sp(e){return ss("MuiDivider",e)}const wp=ls("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Cp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ep=oc("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})=>_r({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)`:zl(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})=>_r({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>_r({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>_r({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>_r({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Rp=oc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>_r({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)`}))),Pp=y.forwardRef((function(e,t){const r=lc({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=jr(r,Cp),m=_r({},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 ul({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"]},Sp,n)})(m);return Qt.jsx(Ep,_r({as:a,className:os(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Qt.jsx(Rp,{className:h.wrapper,ownerState:m,children:o}):null}))}));Pp.muiSkipListHighlight=!0;const Ap=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Ip=oc(Id,{shouldForwardProp:e=>nc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Pd(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 _r({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}},[`&.${_d.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${_d.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"},[`&.${_d.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_d.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(.${_d.disabled}, .${_d.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${_d.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&_r({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}))})),Mp=oc(Md,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ad})((({theme:e,ownerState:t})=>_r({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}))),Dp=y.forwardRef((function(e,t){var r,n,o,i;const a=lc({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=jr(a,Ap),g=_r({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return _r({},t,ul({root:["root",!r&&"underline"],input:["input"]},Nd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?zi(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Ip,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Mp;return Qt.jsx(kd,_r({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Dp.muiName="Input";const kp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Tp(e){return`scale(${e}, ${e**2})`}const qp={entering:{opacity:1,transform:Tp(1)},entered:{opacity:1,transform:"none"}},Lp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Op=y.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=wc}=e,g=jr(e,kp),b=Zs(),v=y.useRef(),x=Cu(),S=y.useRef(null),w=Ys(S,hl(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(u),R=C(((e,t)=>{Dc(e);const{duration:r,delay:n,easing:o}=kc({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Lp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),P=C(l),A=C(p),I=C((e=>{const{duration:t,delay:r,easing:n}=kc({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Lp?o:.666*o,delay:Lp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Tp(.75),c&&c(e)})),M=C(d);return Qt.jsx(h,_r({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:P,onEntering:E,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===m&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,_r({style:_r({opacity:0,transform:Tp(.75),visibility:"exited"!==e||a?void 0:"hidden"},qp[e],f,o.props.style),ref:w},t))}))}));Op.muiSupportAuto=!0;const Np=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],_p=oc(Id,{shouldForwardProp:e=>nc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Pd(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})`),_r({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"},[`&.${qd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${qd.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(.${qd.disabled}, .${qd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${qd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),jp=oc(Md,{name:"MuiInput",slot:"Input",overridesResolver:Ad})({}),zp=y.forwardRef((function(e,t){var r,n,o,i;const a=lc({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=jr(a,Np),b=(e=>{const{classes:t,disableUnderline:r}=e;return _r({},t,ul({root:["root",!r&&"underline"],input:["input"]},Td,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?zi(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:l.Root)?r:_p,S=null!=(o=null!=(i=m.input)?i:l.Input)?o:jp;return Qt.jsx(kd,_r({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));function Fp(e){return ss("MuiLink",e)}zp.muiName="Input";const Hp=ls("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),$p={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Bp=({theme:e,ownerState:t})=>{const r=(e=>$p[e]||e)(t.color),n=Ji(e,`palette.${r}`,!1)||t.color,o=Ji(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:zl(n,.4)},Vp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Wp=oc(cd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ki(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>_r({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&_r({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Bp({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"},[`&.${Hp.focusVisible}`]:{outline:"auto"}}))),Up=y.forwardRef((function(e,t){const r=lc({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=jr(r,Vp),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=sl(),[b,v]=y.useState(!1),x=Ys(t,g),S=_r({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return ul({root:["root",`underline${Ki(o)}`,"button"===r&&"button",n&&"focusVisible"]},Fp,t)})(S);return Qt.jsx(Wp,_r({color:o,className:os(w.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:x,ownerState:S,variant:c,sx:[...Object.keys($p).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),Gp=y.createContext({});function Yp(e){return ss("MuiList",e)}ls("MuiList",["root","padding","dense","subheader"]);const Kp=["children","className","component","dense","disablePadding","subheader"],Xp=oc("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})=>_r({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Jp=y.forwardRef((function(e,t){const r=lc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=jr(r,Kp),c=y.useMemo((()=>({dense:a})),[a]),d=_r({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ul({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Yp,t)})(d);return Qt.jsx(Gp.Provider,{value:c,children:Qt.jsxs(Xp,_r({as:i,className:os(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function Zp(e){return ss("MuiListItemIcon",e)}const Qp=ls("MuiListItemIcon",["root","alignItemsFlexStart"]),ef=["className"],tf=oc("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})=>_r({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),rf=y.forwardRef((function(e,t){const r=lc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=jr(r,ef),i=_r({},r,{alignItems:y.useContext(Gp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return ul({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Zp,r)})(i);return Qt.jsx(tf,_r({className:os(a.root,n),ownerState:i,ref:t},o))})),nf=ls("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),of=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function af(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function sf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function lf(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 uf(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")&&lf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const cf=y.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=jr(e,of),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qs((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${ll(Fs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=Ys(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.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=y.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),y.cloneElement(e,t)}return e}));return Qt.jsx(Jp,_r({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Fs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),uf(t,n,l,s,af);else if("ArrowUp"===r)e.preventDefault(),uf(t,n,l,s,sf);else if("Home"===r)e.preventDefault(),uf(t,null,l,s,af);else if("End"===r)e.preventDefault(),uf(t,null,l,s,sf);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&&lf(n,o);o.previousKeyMatched&&(l||uf(t,n,!1,s,af,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function df(e){return ss("MuiPopover",e)}ls("MuiPopover",["root","paper"]);const pf=["onEntering"],ff=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],mf=["slotProps"];function hf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function gf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function bf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function vf(e){return"function"==typeof e?e():e}const yf=oc(xp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xf=oc(Oc,{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}),Sf=y.forwardRef((function(e,t){var r,n,o;const i=lc({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:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Op,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,P=jr(i.TransitionProps,pf),A=jr(i,ff),I=null!=(r=null==x?void 0:x.paper)?r:b,M=y.useRef(),D=Ys(M,I.ref),k=_r({},i,{anchorOrigin:l,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:P}),T=(e=>{const{classes:t}=e;return ul({root:["root"],paper:["paper"]},df,t)})(k),q=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=vf(s),t=(e&&1===e.nodeType?e:Fs(M.current).body).getBoundingClientRect();return{top:t.top+hf(t,l.vertical),left:t.left+gf(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),L=y.useCallback((e=>({vertical:hf(e,S.vertical),horizontal:gf(e,S.horizontal)})),[S.horizontal,S.vertical]),O=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:bf(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=Hs(vf(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:bf(r)}}),[s,c,q,L,h]),[N,_]=y.useState(g),j=y.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]);y.useEffect((()=>(R&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[s,R,j]);y.useEffect((()=>{g&&j()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),y.useEffect((()=>{if(!g)return;const e=zs((()=>{j()})),t=Hs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,j]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?Fs(vf(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:yf,$=null!=(o=null==v?void 0:v.paper)?o:xf,B=ml({elementType:$,externalSlotProps:_r({},I,{style:N?I.style:_r({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:k,className:os(T.paper,null==I?void 0:I.className)}),V=ml({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:k,className:os(T.root,p)}),{slotProps:W}=V,U=jr(V,mf);return Qt.jsx(H,_r({},U,!cl(H)&&{slotProps:W,disableScrollLock:R},{children:Qt.jsx(w,_r({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),j()},onExited:()=>{_(!1)},timeout:z},P,{children:Qt.jsx($,_r({},B,{children:d}))}))}))}));function wf(e){return ss("MuiMenu",e)}ls("MuiMenu",["root","paper","list"]);const Cf=["onEntering"],Ef=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Rf={vertical:"top",horizontal:"right"},Pf={vertical:"top",horizontal:"left"},Af=oc(Sf,{shouldForwardProp:e=>nc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),If=oc(xf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Mf=oc(cf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Df=y.forwardRef((function(e,t){var r,n;const o=lc({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,x=jr(o.TransitionProps,Cf),S=jr(o,Ef),w=(()=>{const e=y.useContext(Sl);return null!=e&&e})(),C=_r({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),E=(e=>{const{classes:t}=e;return ul({root:["root"],paper:["paper"],list:["list"]},wf,t)})(C),R=i&&!l&&d,P=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=b.paper)?r:If,M=null!=(n=v.paper)?n:p,D=ml({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),k=ml({elementType:I,externalSlotProps:M,ownerState:C,className:E.paper});return Qt.jsx(Af,_r({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Rf:Pf,slots:{paper:I,root:b.root},slotProps:{root:D,paper:k},open:d,ref:t,transitionDuration:m,TransitionProps:_r({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),h&&h(e,t)}},x),ownerState:C},S,{classes:f,children:Qt.jsx(Mf,_r({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:g},u,{className:os(E.list,u.className),children:a}))}))}));function kf(e){return ss("MuiMenuItem",e)}const Tf=ls("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),qf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Lf=oc(Qc,{shouldForwardProp:e=>nc(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})=>_r({},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"}},[`&.${Tf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:zl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Tf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:zl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Tf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:zl(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})`:zl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Tf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Tf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wp.inset}`]:{marginLeft:52},[`& .${nf.root}`]:{marginTop:0,marginBottom:0},[`& .${nf.inset}`]:{paddingLeft:36},[`& .${Qp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&_r({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Qp.root} svg`]:{fontSize:"1.25rem"}})))),Of=y.forwardRef((function(e,t){const r=lc({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=jr(r,qf),f=y.useContext(Gp),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=y.useRef(null);qs((()=>{n&&h.current&&h.current.focus()}),[n]);const g=_r({},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 _r({},a,ul({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},kf,a))})(r),v=Ys(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),Qt.jsx(Gp.Provider,{value:m,children:Qt.jsx(Lf,_r({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:os(b.focusVisible,l),className:os(b.root,d)},p,{ownerState:g,classes:b}))})}));function Nf(e){return ss("MuiNativeSelect",e)}const _f=ls("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),jf=["className","disabled","error","IconComponent","inputRef","variant"],zf=({ownerState:e,theme:t})=>_r({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":_r({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${_f.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Ff=oc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:nc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${_f.multiple}`]:t.multiple}]}})(zf),Hf=({ownerState:e,theme:t})=>_r({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${_f.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),$f=oc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ki(r.variant)}`],r.open&&t.iconOpen]}})(Hf),Bf=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=jr(e,jf),u=_r({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ul({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ki(r)}`,i&&"iconOpen",n&&"disabled"]},Nf,t)})(u);return Qt.jsxs(y.Fragment,{children:[Qt.jsx(Ff,_r({ownerState:u,className:os(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:Qt.jsx($f,{as:i,ownerState:u,className:c.icon})]})}));var Vf;const Wf=["children","classes","className","label","notched"],Uf=oc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:nc})({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%"}),Gf=oc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:nc})((({ownerState:e,theme:t})=>_r({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&&_r({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const Yf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Kf=oc(Id,{shouldForwardProp:e=>nc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Pd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return _r({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Od.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Od.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Od.focused} .${Od.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Od.error} .${Od.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Od.disabled} .${Od.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&_r({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Xf=oc((function(e){const{className:t,label:r,notched:n}=e,o=jr(e,Wf),i=null!=r&&""!==r,a=_r({},e,{notched:n,withLabel:i});return Qt.jsx(Uf,_r({"aria-hidden":!0,className:t,ownerState:a},o,{children:Qt.jsx(Gf,{ownerState:a,children:i?Qt.jsx("span",{children:r}):Vf||(Vf=Qt.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}})),Jf=oc(Md,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ad})((({theme:e,ownerState:t})=>_r({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}))),Zf=y.forwardRef((function(e,t){var r,n,o,i,a;const s=lc({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=jr(s,Yf),b=(e=>{const{classes:t}=e;return _r({},t,ul({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ld,t))})(s),v=yd(),x=bd({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=_r({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),w=null!=(r=null!=(n=m.root)?n:l.Root)?r:Kf,C=null!=(o=null!=(i=m.input)?i:l.Input)?o:Jf;return Qt.jsx(kd,_r({slots:{root:w,input:C},renderSuffix:e=>Qt.jsx(Xf,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Qt.jsxs(y.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:_r({},b,{notchedOutline:null})}))}));function Qf(e){return ss("MuiSelect",e)}Zf.muiName="Input";const em=ls("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var tm;const rm=["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"],nm=oc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${em.select}`]:t.select},{[`&.${em.select}`]:t[r.variant]},{[`&.${em.error}`]:t.error},{[`&.${em.multiple}`]:t.multiple}]}})(zf,{[`&.${em.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),om=oc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ki(r.variant)}`],r.open&&t.iconOpen]}})(Hf),im=oc("input",{shouldForwardProp:e=>rc(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 am(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function sm(e){return null==e||"string"==typeof e&&!e.trim()}const lm=y.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:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:P,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:D,value:k,variant:T="standard"}=e,q=jr(e,rm),[L,O]=Us({controlled:k,default:c,name:"Select"}),[N,_]=Us({controlled:P,default:u,name:"Select"}),j=y.useRef(null),z=y.useRef(null),[F,H]=y.useState(null),{current:$}=y.useRef(null!=P),[B,V]=y.useState(),W=Ys(t,h),U=y.useCallback((e=>{z.current=e,e&&H(e)}),[]),G=null==F?void 0:F.parentNode;y.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:j.current,value:L})),[L]),y.useEffect((()=>{u&&N&&F&&!$&&(V(a?null:G.clientWidth),z.current.focus())}),[F,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Fs(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):C&&C(t),$||(V(a?null:G.clientWidth),_(e))},K=y.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),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),w(o,e)}v||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete q["aria-invalid"];const ee=[];let te=!1;(wd({value:L})||p)&&(I?Z=I(L):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(L))throw new Error(Lr(2));t=L.some((t=>am(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=am(L,e.props.value),t&&te&&(Q=e.props.children);return y.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||(x?`mui-component-select-${x}`:void 0),ae=_r({},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 ul({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ki(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Qf,t)})(ae),le=_r({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Ws();return Qt.jsxs(y.Fragment,{children:[Qt.jsx(nm,_r({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&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:x}}),S(e))},onFocus:E},M,{ownerState:ae,className:os(M.className,se.select,l),id:ie,children:sm(Z)?tm||(tm=Qt.jsx("span",{className:"notranslate",children:""})):Z})),Qt.jsx(im,_r({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:x,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),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},q)),Qt.jsx(om,{as:m,className:se.icon,ownerState:ae}),Qt.jsx(Df,_r({id:`menu-${x||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:_r({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:_r({},b.slotProps,{paper:_r({},le,{style:_r({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),um=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],cm=["root"],dm={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>nc(e)&&"variant"!==e,slot:"Root"},pm=oc(zp,dm)(""),fm=oc(Zf,dm)(""),mm=oc(Dp,dm)(""),hm=y.forwardRef((function(e,t){const r=lc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=jd,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=jr(r,um),P=b?Bf:lm,A=bd({props:r,muiFormControl:yd(),states:["variant","error"]}),I=A.variant||E,M=_r({},r,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(M),k=jr(D,cm),T=d||{standard:Qt.jsx(pm,{ownerState:M}),outlined:Qt.jsx(fm,{label:f,ownerState:M}),filled:Qt.jsx(mm,{ownerState:M})}[I],q=Ys(t,hl(T));return Qt.jsx(y.Fragment,{children:y.cloneElement(T,_r({inputComponent:P,inputProps:_r({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:x,open:S,renderValue:w,SelectDisplayProps:_r({id:c},C)},p,{classes:p?zi(k,p.classes):k},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===I?{notched:!0}:{},{ref:q,className:os(T.props.className,a,D.root)},!d&&{variant:I},R))})}));hm.muiName="Select";const gm=y.createContext();function bm(e){return ss("MuiTable",e)}ls("MuiTable",["root","stickyHeader"]);const vm=["className","component","padding","size","stickyHeader"],ym=oc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>_r({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":_r({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),xm="table",Sm=y.forwardRef((function(e,t){const r=lc({props:e,name:"MuiTable"}),{className:n,component:o=xm,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=jr(r,vm),u=_r({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return ul({root:["root",r&&"stickyHeader"]},bm,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return Qt.jsx(gm.Provider,{value:d,children:Qt.jsx(ym,_r({as:o,role:o===xm?null:"table",ref:t,className:os(c.root,n),ownerState:u},l))})})),wm=y.createContext();function Cm(e){return ss("MuiTableBody",e)}ls("MuiTableBody",["root"]);const Em=["className","component"],Rm=oc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Pm={variant:"body"},Am="tbody",Im=y.forwardRef((function(e,t){const r=lc({props:e,name:"MuiTableBody"}),{className:n,component:o=Am}=r,i=jr(r,Em),a=_r({},r,{component:o}),s=(e=>{const{classes:t}=e;return ul({root:["root"]},Cm,t)})(a);return Qt.jsx(wm.Provider,{value:Pm,children:Qt.jsx(Rm,_r({className:os(s.root,n),as:o,ref:t,role:o===Am?null:"rowgroup",ownerState:a},i))})}));function Mm(e){return ss("MuiTableCell",e)}const Dm=ls("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),km=["align","className","component","padding","scope","size","sortDirection","variant"],Tm=oc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ki(r.size)}`],"normal"!==r.padding&&t[`padding${Ki(r.padding)}`],"inherit"!==r.align&&t[`align${Ki(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>_r({},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?$l(zl(e.palette.divider,1),.88):Fl(zl(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",[`&.${Dm.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}))),qm=y.forwardRef((function(e,t){const r=lc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=jr(r,km),p=y.useContext(gm),f=y.useContext(wm),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=_r({},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}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return ul({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Ki(n)}`,"normal"!==o&&`padding${Ki(o)}`,`size${Ki(i)}`]},Mm,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Qt.jsx(Tm,_r({as:h,ref:t,className:os(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function Lm(e){return ss("MuiTableContainer",e)}ls("MuiTableContainer",["root"]);const Om=["className","component"],Nm=oc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),_m=y.forwardRef((function(e,t){const r=lc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=jr(r,Om),a=_r({},r,{component:o}),s=(e=>{const{classes:t}=e;return ul({root:["root"]},Lm,t)})(a);return Qt.jsx(Nm,_r({ref:t,as:o,className:os(s.root,n),ownerState:a},i))}));function jm(e){return ss("MuiTableHead",e)}ls("MuiTableHead",["root"]);const zm=["className","component"],Fm=oc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Hm={variant:"head"},$m="thead",Bm=y.forwardRef((function(e,t){const r=lc({props:e,name:"MuiTableHead"}),{className:n,component:o=$m}=r,i=jr(r,zm),a=_r({},r,{component:o}),s=(e=>{const{classes:t}=e;return ul({root:["root"]},jm,t)})(a);return Qt.jsx(wm.Provider,{value:Hm,children:Qt.jsx(Fm,_r({as:o,className:os(s.root,n),ref:t,role:o===$m?null:"rowgroup",ownerState:a},i))})}));function Vm(e){return ss("MuiTableRow",e)}const Wm=ls("MuiTableRow",["root","selected","hover","head","footer"]),Um=["className","component","hover","selected"],Gm=oc("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,[`&.${Wm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Wm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:zl(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}))`:zl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Ym="tr",Km=y.forwardRef((function(e,t){const r=lc({props:e,name:"MuiTableRow"}),{className:n,component:o=Ym,hover:i=!1,selected:a=!1}=r,s=jr(r,Um),l=y.useContext(wm),u=_r({},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 ul({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Vm,t)})(u);return Qt.jsx(Gm,_r({as:o,ref:t,className:os(c.root,n),role:o===Ym?null:"row",ownerState:u},s))}));function Xm(e){return Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Qt.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var Jm=function({fontSize:e="medium",children:t=null,className:r=""}={}){return Qt.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 Zm(e={}){return Qt.jsx(Jm,{...e,children:Qt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Qt.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Qt.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 Qm(e={}){return Qt.jsx(Jm,{fontSize:"medium",...e,children:Qt.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Qt.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Qt.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 eh(e){return Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Qt.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 th(e={}){return Qt.jsx(Jm,{...e,children:Qt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Qt.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Qt.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Qt.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function rh(e={}){return Qt.jsx(Jm,{fontSize:"medium",...e,children:Qt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Qt.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Qt.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function nh({className:e}){return Qt.jsx(Jm,{fontSize:"small",className:e,children:Qt.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Qt.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Qt.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Qt.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Qt.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"}),Qt.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 oh(e={}){return Qt.jsx(Jm,{...e,children:Qt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Qt.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Qt.jsx("rect",{stroke:kt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const ih={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:Nt,"& > 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 ah=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:kt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:kt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Qt.jsx(Xm,{"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 ${kt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`,borderRadius:Nt,backgroundColor:kt.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 ${kt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:kt.WHITE,color:kt.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:Nt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${kt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:kt.GREYSCALE_0_15,backgroundColor:kt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${kt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:kt.GREEN_PALE},"&:active":{backgroundColor:kt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:kt.GREEN_PALE,boxShadow:`0 0 0 3px ${_s(kt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:kt.BLUE_PALE},"&:active":{backgroundColor:kt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:kt.BLUE_PALE,boxShadow:`0 0 0 3px ${_s(kt.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:Nt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:kt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${kt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:kt.GREYSCALE_0_15,backgroundColor:kt.GREYSCALE_100_60,"&:active":{backgroundColor:kt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${kt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:kt.PURPLE,"&.Mui-focusVisible":{borderColor:kt.PURPLE,boxShadow:`0 0 0 3px ${_s(kt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:kt.GREEN,"&.Mui-focusVisible":{borderColor:kt.GREEN,boxShadow:`0 0 0 3px ${_s(kt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:kt.BLUE,"&.Mui-focusVisible":{borderColor:kt.BLUE,boxShadow:`0 0 0 3px ${_s(kt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:kt.ORANGE,"&.Mui-focusVisible":{borderColor:kt.ORANGE,boxShadow:`0 0 0 3px ${_s(kt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:kt.RED,"&.Mui-focusVisible":{borderColor:kt.RED,boxShadow:`0 0 0 3px ${_s(kt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:kt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:kt.PURPLE_PALE},"&:active":{backgroundColor:kt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:kt.PURPLE_PALE,boxShadow:`0 0 0 3px ${_s(kt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:kt.GREEN_PALE},"&:active":{backgroundColor:kt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:kt.GREEN_PALE,boxShadow:`0 0 0 3px ${_s(kt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:kt.BLUE_PALE},"&:active":{backgroundColor:kt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:kt.BLUE_PALE,boxShadow:`0 0 0 3px ${_s(kt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:kt.ORANGE_PALE},"&:active":{backgroundColor:kt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:kt.ORANGE_PALE,boxShadow:`0 0 0 3px ${_s(kt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:kt.RED_PALE},"&:active":{backgroundColor:kt.RED_DARK},"&.Mui-focusVisible":{borderColor:kt.RED_PALE,boxShadow:`0 0 0 3px ${_s(kt.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:kt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:kt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Nt,boxShadow:`inset 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Qt.jsx(eh,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Tt,borderRadius:Nt,color:kt.TEXT_PRIMARY,backgroundColor:kt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:kt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:kt.GREYSCALE_0_05,color:kt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:kt.GREEN,borderColor:kt.GREEN},"&.MuiChip-outlinedInfo":{color:kt.BLUE,borderColor:kt.BLUE},"&.MuiChip-outlinedWarning":{color:kt.ORANGE,borderColor:kt.ORANGE},"&.MuiChip-outlinedError":{color:kt.RED,borderColor:kt.RED}},outlined:{border:`solid 1px ${kt.GREYSCALE_0_15}`,backgroundColor:kt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Nt,boxShadow:"none",backgroundColor:kt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:kt.GREEN,borderColor:kt.GREEN},outlinedSecondary:{color:kt.BLUE,borderColor:kt.BLUE},label:{fontFamily:Ht.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Qt.jsx(eh,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Qt.jsx(Xm,{"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:Nt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Nt,fontSize:qt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:kt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${kt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:kt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:kt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:kt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Nt,border:`solid 1px ${kt.GREYSCALE_0_15}`,color:kt.GREYSCALE_0_60,marginRight:0,width:Ot,height:Ot},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${kt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Nt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:kt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:qt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Tt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:kt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:kt.GREYSCALE_25,fontSize:Tt,fontFamily:Ht.FONT_FAMILY,fontWeight:zt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:kt.TEXT_PRIMARY},"&.Mui-error":{color:kt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:kt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:jt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:kt.TEXT_SECONDARY,content:"'(required)'",fontWeight:jt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:qt,lineHeight:"16px",backgroundColor:kt.WHITE,borderRadius:Nt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kt.GREYSCALE_0_05}`,borderColor:kt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${kt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${kt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kt.RED}`,boxShadow:`0px 0px 0px 1px ${kt.RED}, inset 0 2px 0 0 ${kt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kt.GREYSCALE_0_10}`,borderColor:kt.GREYSCALE_0_10,backgroundColor:kt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:kt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:kt.GREYSCALE_0_15,borderRadius:Nt,boxShadow:`inset 0 2px 0 0 ${kt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Qt.jsx(Xm,{...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:kt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:kt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:kt.GREYSCALE_0_03},"&:active":{backgroundColor:kt.GREYSCALE_0_10},"&:focus":{backgroundColor:kt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${kt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:kt.GREYSCALE_0_30,"&:hover":{backgroundColor:kt.GREYSCALE_0_0,borderColor:kt.GREYSCALE_0_15},"& ~svg":{color:kt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${kt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Nt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${kt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:kt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:qt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Tt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Tt,fontWeight:zt,color:kt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:zt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${kt.GREYSCALE_0_15}, 0px 0px 0px 1px ${kt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Qt.jsx(rh,{}),checkedIcon:Qt.jsx(Qm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:kt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:kt.GREEN_PALE,boxShadow:`0 0 0 3px ${_s(kt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:kt.BLUE_PALE,boxShadow:`0 0 0 3px ${_s(kt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:kt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:kt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Qt.jsx(oh,{}),checkedIcon:Qt.jsx(Zm,{}),indeterminateIcon:Qt.jsx(th,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Nt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:kt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:kt.GREYSCALE_0_55,color:kt.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:kt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:kt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:kt.GREYSCALE_0_55,"&:hover":{color:kt.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:kt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:kt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:qt,color:kt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:zt},secondary:{fontSize:Tt,color:kt.GREYSCALE_45,fontWeight:jt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:qt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:qt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:kt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Tt,borderBottom:`solid 1px ${kt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:qt,color:kt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:kt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:kt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:kt.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:kt.RED}}},"&.Mui-focusVisible":{backgroundColor:kt.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:kt.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:kt.GREEN,height:"24px","&.Mui-disabled":{color:kt.GREYSCALE_0_15}},rail:{backgroundColor:kt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${kt.GREYSCALE_0_05}`,borderRadius:Nt,boxShadow:`inset 0px 0px 0px 1px ${kt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${kt.GREYSCALE_0_05}`,borderRadius:Nt},thumb:{height:"16px",width:"16px",borderRadius:Nt,backgroundColor:kt.WHITE,boxShadow:`0px 1px 2px 0px ${kt.GREYSCALE_0_15}, 0px 0px 0px 1px ${kt.GREYSCALE_0_05}`,"&:hover":{borderRadius:Nt,boxShadow:`0 2px 4px 0 ${kt.GREYSCALE_0_30}, 0 0 0 1px ${kt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${kt.GREYSCALE_0_15}, 0 0 0 1px ${kt.GREYSCALE_0_06}, 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${kt.GREYSCALE_0_15}, 0 0 0 1px ${kt.GREYSCALE_0_06}, 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:kt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:kt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:kt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:kt.GREYSCALE_0_15},markLabel:{color:kt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:kt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:kt.WHITE,color:kt.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:kt.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:kt.GREEN_PALE,boxShadow:`0 0 0 3px ${_s(kt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:kt.BLUE_PALE,boxShadow:`0 0 0 3px ${_s(kt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:kt.GREYSCALE_0_15,borderRadius:Nt},thumb:{height:"16px",width:"16px",borderRadius:Nt,backgroundColor:kt.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:qt,fontWeight:zt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${kt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`,backgroundColor:kt.GREYSCALE_0_03,borderRadius:Nt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:kt.GREYSCALE_25,"&.Mui-selected":{color:kt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:qt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Nt,"&:hover":{backgroundColor:kt.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 ${kt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${kt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Nt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:kt.GREYSCALE_0_05},"&:hover":{backgroundColor:kt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${kt.GREYSCALE_85}`,borderRight:`1px solid ${kt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:zt,backgroundColor:kt.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:kt.GREYSCALE_98,borderBottom:`1px solid ${kt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${kt.GREYSCALE_85}`,borderTop:`1px solid ${kt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:kt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:kt.GREYSCALE_0_05,"&:hover":{backgroundColor:kt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:kt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Qt.jsx(nh,{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 ${kt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:qt,borderRadius:Nt,padding:"7px 16px",border:`1px solid ${kt.GREYSCALE_0_15}`,backgroundColor:kt.GREYSCALE_100_60,color:kt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:kt.GREYSCALE_0_10,border:`1px solid ${kt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:kt.GREYSCALE_0_03,border:`1px solid ${kt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:kt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${kt.MISC_FOCUS_BORDER}`,border:`1px solid ${kt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:kt.GREYSCALE_25,backgroundColor:kt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:kt.GREYSCALE_0_10,border:`1px solid ${kt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Tt,height:24,width:24,padding:7},sizeLarge:{fontSize:Lt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:qt,borderRadius:Nt}}},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:kt.GREYSCALE_20},tooltip:{backgroundColor:kt.GREYSCALE_20,fontSize:Tt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...ih}:{}}),sh=(e,t)=>ah(t);var lh=()=>({mode:"light",primary:{ultraLight:kt.GREEN_ULTRA_LIGHT,light:kt.GREEN_PALE,main:kt.GREEN,dark:kt.GREEN_DARK,extraDark:kt.GREEN_EXTRA_DARK,contrastText:kt.WHITE},secondary:{ultraLight:kt.BLUE_ULTRA_LIGHT,light:kt.BLUE_PALE,main:kt.BLUE,dark:kt.BLUE_DARK,extraDark:kt.BLUE_EXTRA_DARK,contrastText:kt.WHITE},error:{ultraLight:kt.RED_ULTRA_LIGHT,light:kt.RED_PALE,main:kt.RED,dark:kt.RED_DARK,extraDark:kt.RED_EXTRA_DARK,contrastText:kt.WHITE},warning:{ultraLight:kt.ORANGE_ULTRA_LIGHT,light:kt.ORANGE_PALE,main:kt.ORANGE,dark:kt.ORANGE_DARK,extraDark:kt.ORANGE_EXTRA_DARK,contrastText:kt.WHITE},success:{ultraLight:kt.GREEN_ULTRA_LIGHT,light:kt.GREEN_PALE,main:kt.GREEN,dark:kt.GREEN_DARK,extraDark:kt.GREEN_EXTRA_DARK,contrastText:kt.WHITE},info:{ultraLight:kt.BLUE_ULTRA_LIGHT,light:kt.BLUE_PALE,main:kt.BLUE,dark:kt.BLUE_DARK,extraDark:kt.BLUE_EXTRA_DARK,contrastText:kt.WHITE},text:{primary:kt.TEXT_PRIMARY,secondary:kt.TEXT_SECONDARY,disabled:kt.GREYSCALE_0_30},action:{hover:kt.GREYSCALE_0_03,hoverOpacity:.03,selected:kt.GREYSCALE_0_05,selectedOpacity:.05,focus:kt.MISC_FOCUS_BORDER},amethyst:{ultraLight:kt.WHITE,main:kt.PURPLE,light:kt.PURPLE_PALE,dark:kt.PURPLE_DARK,extraDark:kt.GREYSCALE_0_0,contrastText:kt.WHITE},background:{paper:kt.WHITE,default:kt.GREYSCALE_95},divider:kt.GREYSCALE_0_15});var uh=e=>lh();var ch=(e,t=!1)=>({components:sh(0,t),palette:uh(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:qt,fontWeightLight:_t,fontWeightRegular:jt,fontWeightMedium:zt,fontWeightBold:Ft,htmlFontSize:qt,fontFamily:Ht.FONT_FAMILY,button:{fontWeight:zt,fontSize:qt,textTransform:"none"},body1:{fontSize:Lt,lineHeight:"24px"},body2:{fontSize:qt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ot,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Lt,fontWeight:zt,lineHeight:"16px"},h6:{fontSize:qt,fontWeight:zt,lineHeight:"16px"},caption:{color:kt.TEXT_SECONDARY},subtitle1:{fontSize:qt,color:kt.TEXT_SECONDARY},subtitle2:{fontSize:Tt,color:kt.TEXT_SECONDARY}},shape:{borderRadius:Nt}});const dh={...Dt};var ph={},fh={exports:{}},mh={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}(mh);var hh=mh.exports;!function(e){var t=hh.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}(fh);var gh=fh.exports,bh={};function vh(e,t){return function(){return null}}function yh(e){return e&&"object"===Ml(e)&&e.constructor===Object}function xh(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?_r({},e):e;return yh(e)&&yh(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(yh(t[o])&&o in e?n[o]=xh(e[o],t[o],r):n[o]=t[o])})),n}var Sh=(Di.element,function(){return null});Sh.isRequired=(Di.element.isRequired,function(){return null});var wh=function(){return null};var Ch={exports:{}},Eh={},Rh=60103,Ph=60106,Ah=60107,Ih=60108,Mh=60114,Dh=60109,kh=60110,Th=60112,qh=60113,Lh=60120,Oh=60115,Nh=60116,_h=60121,jh=60122,zh=60117,Fh=60129,Hh=60131;if("function"==typeof Symbol&&Symbol.for){var $h=Symbol.for;Rh=$h("react.element"),Ph=$h("react.portal"),Ah=$h("react.fragment"),Ih=$h("react.strict_mode"),Mh=$h("react.profiler"),Dh=$h("react.provider"),kh=$h("react.context"),Th=$h("react.forward_ref"),qh=$h("react.suspense"),Lh=$h("react.suspense_list"),Oh=$h("react.memo"),Nh=$h("react.lazy"),_h=$h("react.block"),jh=$h("react.server.block"),zh=$h("react.fundamental"),Fh=$h("react.debug_trace_mode"),Hh=$h("react.legacy_hidden")}function Bh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Rh:switch(e=e.type){case Ah:case Mh:case Ih:case qh:case Lh:return e;default:switch(e=e&&e.$$typeof){case kh:case Th:case Nh:case Oh:case Dh:return e;default:return t}}case Ph:return t}}}var Vh=Dh,Wh=Rh,Uh=Th,Gh=Ah,Yh=Nh,Kh=Oh,Xh=Ph,Jh=Mh,Zh=Ih,Qh=qh;Eh.ContextConsumer=kh,Eh.ContextProvider=Vh,Eh.Element=Wh,Eh.ForwardRef=Uh,Eh.Fragment=Gh,Eh.Lazy=Yh,Eh.Memo=Kh,Eh.Portal=Xh,Eh.Profiler=Jh,Eh.StrictMode=Zh,Eh.Suspense=Qh,Eh.isAsyncMode=function(){return!1},Eh.isConcurrentMode=function(){return!1},Eh.isContextConsumer=function(e){return Bh(e)===kh},Eh.isContextProvider=function(e){return Bh(e)===Dh},Eh.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Rh},Eh.isForwardRef=function(e){return Bh(e)===Th},Eh.isFragment=function(e){return Bh(e)===Ah},Eh.isLazy=function(e){return Bh(e)===Nh},Eh.isMemo=function(e){return Bh(e)===Oh},Eh.isPortal=function(e){return Bh(e)===Ph},Eh.isProfiler=function(e){return Bh(e)===Mh},Eh.isStrictMode=function(e){return Bh(e)===Ih},Eh.isSuspense=function(e){return Bh(e)===qh},Eh.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ah||e===Mh||e===Fh||e===Ih||e===qh||e===Lh||e===Hh||"object"==typeof e&&null!==e&&(e.$$typeof===Nh||e.$$typeof===Oh||e.$$typeof===Dh||e.$$typeof===kh||e.$$typeof===Th||e.$$typeof===zh||e.$$typeof===_h||e[0]===jh)},Eh.typeOf=Bh,Ch.exports=Eh;var eg=Ch.exports,tg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function rg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(tg);return t&&t[1]||""}(e)||t}function ng(e,t,r){var n=rg(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var og="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),ig=Di.oneOfType([Di.func,Di.object]),ag=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:vh,deepmerge:xh,elementAcceptingRef:Sh,elementTypeAcceptingRef:wh,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 rg(e,"Component");if("object"===Ml(e))switch(e.$$typeof){case eg.ForwardRef:return ng(e,e.render,"ForwardRef");case eg.Memo:return ng(e,e.type,"memo");default:return}}},ponyfillGlobal:og,refType:ig}),sg=Bt(ag);Object.defineProperty(bh,"__esModule",{value:!0}),bh.hexToRgb=cg,bh.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=pg(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(""))},bh.hslToRgb=dg,bh.decomposeColor=pg,bh.recomposeColor=fg,bh.getContrastRatio=function(e,t){var r=mg(e),n=mg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},bh.getLuminance=mg,bh.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return mg(e)>.5?gg(e,t):bg(e,t)},bh.fade=function(e,t){return hg(e,t)},bh.alpha=hg,bh.darken=gg,bh.lighten=bg;var lg=sg;function ug(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 cg(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 dg(e){var t=(e=pg(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])),fg({type:s,values:l})}function pg(e){if(e.type)return e;if("#"===e.charAt(0))return pg(cg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,lg.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 fg(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 mg(e){var t="hsl"===(e=pg(e)).type?pg(dg(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 hg(e,t){return e=pg(e),t=ug(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,fg(e)}function gg(e,t){if(e=pg(e),t=ug(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 fg(e)}function bg(e,t){if(e=pg(e),t=ug(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 fg(e)}var vg,yg,xg,Sg={},wg={exports:{}},Cg={exports:{}},Eg={exports:{}};function Rg(){return vg||(vg=1,function(e){var t=hh.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}(Eg)),Eg.exports}function Pg(){return yg||(yg=1,function(e){var t=hh.default,r=Rg();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Cg)),Cg.exports}function Ag(){return xg||(xg=1,function(e){var t=Pg();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}(wg)),wg.exports}var Ig,Mg={exports:{}};function Dg(){return Ig||(Ig=1,function(e){var t=Du();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}(Mg)),Mg.exports}var kg,Tg={};var qg,Lg={};var Og,Ng={},_g={};var jg,zg={};var Fg,Hg={};var $g,Bg={};var Vg,Wg={};var Ug,Gg={};var Yg,Kg={};var Xg,Jg,Zg={};function Qg(){if(Jg)return Ng;Jg=1;var e=Ol;Object.defineProperty(Ng,"__esModule",{value:!0}),Ng.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},Ng.dark=Ng.light=void 0;var t=e(Au()),r=e(Dg()),n=sg,o=e(function(){if(Og)return _g;Og=1,Object.defineProperty(_g,"__esModule",{value:!0}),_g.default=void 0;var e={black:"#000",white:"#fff"};return _g.default=e,_g}()),i=e(function(){if(jg)return zg;jg=1,Object.defineProperty(zg,"__esModule",{value:!0}),zg.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 zg.default=e,zg}()),a=e(function(){if(Fg)return Hg;Fg=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.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 Hg.default=e,Hg}()),s=e(function(){if($g)return Bg;$g=1,Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.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 Bg.default=e,Bg}()),l=e(function(){if(Vg)return Wg;Vg=1,Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.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 Wg.default=e,Wg}()),u=e(function(){if(Ug)return Gg;Ug=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.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 Gg.default=e,Gg}()),c=e(function(){if(Yg)return Kg;Yg=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.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 Kg.default=e,Kg}()),d=e(function(){if(Xg)return Zg;Xg=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.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 Zg.default=e,Zg}()),p=bh,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}};Ng.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 Ng.dark=m,Ng}var eb,tb={};var rb,nb={};var ob,ib={};var ab={};function sb(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 lb(e,t){if(e){if("string"==typeof e)return sb(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)?sb(e,t):void 0}}function ub(e){return function(e){if(Array.isArray(e))return sb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lb(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 cb(e,t){return t?xh(e,t,{clone:!1}):e}var db={xs:0,sm:600,md:960,lg:1280,xl:1920},pb={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(db[e],"px)")}};function fb(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||pb;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Ml(t)){var o=e.theme.breakpoints||pb;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function mb(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function hb(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=mb(e.theme,o)||{};return fb(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=mb(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Dl(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 gb(){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?cb(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function bb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var vb=hb({prop:"border",themeKey:"borders",transform:bb}),yb=hb({prop:"borderTop",themeKey:"borders",transform:bb}),xb=hb({prop:"borderRight",themeKey:"borders",transform:bb}),Sb=hb({prop:"borderBottom",themeKey:"borders",transform:bb}),wb=hb({prop:"borderLeft",themeKey:"borders",transform:bb}),Cb=hb({prop:"borderColor",themeKey:"palette"}),Eb=hb({prop:"borderRadius",themeKey:"shape"}),Rb=gb(vb,yb,xb,Sb,wb,Cb,Eb);function Pb(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Ab(e){var t=function(t){var r=e(t);return t.css?_r({},cb(r,e(_r({theme:t.theme},t.css))),Pb(t.css,[e.filterProps])):t.sx?_r({},cb(r,e(_r({theme:t.theme},t.sx))),Pb(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(ub(e.filterProps)),t}var Ib=gb(hb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),hb({prop:"display"}),hb({prop:"overflow"}),hb({prop:"textOverflow"}),hb({prop:"visibility"}),hb({prop:"whiteSpace"})),Mb=hb({prop:"flexBasis"}),Db=hb({prop:"flexDirection"}),kb=hb({prop:"flexWrap"}),Tb=hb({prop:"justifyContent"}),qb=hb({prop:"alignItems"}),Lb=hb({prop:"alignContent"}),Ob=hb({prop:"order"}),Nb=hb({prop:"flex"}),_b=hb({prop:"flexGrow"}),jb=hb({prop:"flexShrink"}),zb=hb({prop:"alignSelf"}),Fb=hb({prop:"justifyItems"}),Hb=hb({prop:"justifySelf"}),$b=gb(Mb,Db,kb,Tb,qb,Lb,Ob,Nb,_b,jb,zb,Fb,Hb),Bb=hb({prop:"gridGap"}),Vb=hb({prop:"gridColumnGap"}),Wb=hb({prop:"gridRowGap"}),Ub=hb({prop:"gridColumn"}),Gb=hb({prop:"gridRow"}),Yb=hb({prop:"gridAutoFlow"}),Kb=hb({prop:"gridAutoColumns"}),Xb=hb({prop:"gridAutoRows"}),Jb=hb({prop:"gridTemplateColumns"}),Zb=hb({prop:"gridTemplateRows"}),Qb=hb({prop:"gridTemplateAreas"}),ev=hb({prop:"gridArea"}),tv=gb(Bb,Vb,Wb,Ub,Gb,Yb,Kb,Xb,Jb,Zb,Qb,ev),rv=hb({prop:"color",themeKey:"palette"}),nv=hb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),ov=gb(rv,nv),iv=hb({prop:"position"}),av=hb({prop:"zIndex",themeKey:"zIndex"}),sv=hb({prop:"top"}),lv=hb({prop:"right"}),uv=hb({prop:"bottom"}),cv=hb({prop:"left"}),dv=gb(iv,av,sv,lv,uv,cv),pv=hb({prop:"boxShadow",themeKey:"shadows"});function fv(e){return e<=1?"".concat(100*e,"%"):e}var mv=hb({prop:"width",transform:fv}),hv=hb({prop:"maxWidth",transform:fv}),gv=hb({prop:"minWidth",transform:fv}),bv=hb({prop:"height",transform:fv}),vv=hb({prop:"maxHeight",transform:fv}),yv=hb({prop:"minHeight",transform:fv}),xv=hb({prop:"size",cssProperty:"width",transform:fv}),Sv=hb({prop:"size",cssProperty:"height",transform:fv}),wv=hb({prop:"boxSizing"}),Cv=gb(mv,hv,gv,bv,vv,yv,wv);function Ev(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)||lb(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 Rv={m:"margin",p:"padding"},Pv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Av={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Iv=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(!Av[e])return[e];e=Av[e]}var t=Ev(e.split(""),2),r=t[0],n=t[1],o=Rv[r],i=Pv[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Mv=["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 Dv(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 kv(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 Tv(e){var t=Dv(e.theme);return Object.keys(e).map((function(r){if(-1===Mv.indexOf(r))return null;var n=kv(Iv(r),t),o=e[r];return fb(e,o,n)})).reduce(cb,{})}Tv.propTypes={},Tv.filterProps=Mv;var qv,Lv=hb({prop:"fontFamily",themeKey:"typography"}),Ov=hb({prop:"fontSize",themeKey:"typography"}),Nv=hb({prop:"fontStyle",themeKey:"typography"}),_v=hb({prop:"fontWeight",themeKey:"typography"}),jv=hb({prop:"letterSpacing"}),zv=hb({prop:"lineHeight"}),Fv=hb({prop:"textAlign"}),Hv=gb(Lv,Ov,Nv,_v,jv,zv,Fv),$v=Object.freeze({__proto__:null,alignContent:Lb,alignItems:qb,alignSelf:zb,bgcolor:nv,border:vb,borderBottom:Sb,borderColor:Cb,borderLeft:wb,borderRadius:Eb,borderRight:xb,borderTop:yb,borders:Rb,bottom:uv,boxSizing:wv,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||pb,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(_r({theme:t.theme},t[o]))),r}),null);return cb(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(ub(e.filterProps)),t},color:rv,compose:gb,createUnarySpacing:Dv,css:function(e){return Ab(e)},display:Ib,flex:Nb,flexBasis:Mb,flexDirection:Db,flexGrow:_b,flexShrink:jb,flexWrap:kb,flexbox:$b,fontFamily:Lv,fontSize:Ov,fontStyle:Nv,fontWeight:_v,grid:tv,gridArea:ev,gridAutoColumns:Kb,gridAutoFlow:Yb,gridAutoRows:Xb,gridColumn:Ub,gridColumnGap:Vb,gridGap:Bb,gridRow:Gb,gridRowGap:Wb,gridTemplateAreas:Qb,gridTemplateColumns:Jb,gridTemplateRows:Zb,height:bv,justifyContent:Tb,justifyItems:Fb,justifySelf:Hb,left:cv,letterSpacing:jv,lineHeight:zv,maxHeight:vv,maxWidth:hv,minHeight:yv,minWidth:gv,order:Ob,palette:ov,position:iv,positions:dv,right:lv,shadows:pv,sizeHeight:Sv,sizeWidth:xv,sizing:Cv,spacing:Tv,style:hb,styleFunctionSx:Ab,textAlign:Fv,top:sv,typography:Hv,width:mv,zIndex:av}),Bv=Bt($v);var Vv,Wv={};function Uv(){if(Vv)return Wv;Vv=1;var e=Ol;Object.defineProperty(Wv,"__esModule",{value:!0}),Wv.default=Wv.duration=Wv.easing=void 0;var t=e(Dg()),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)"};Wv.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")}Wv.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 Wv.default=i,Wv}var Gv,Yv,Kv={};function Xv(){if(Yv)return Sg;Yv=1;var e=Ol;Object.defineProperty(Sg,"__esModule",{value:!0}),Sg.createMuiTheme=function(){return p.apply(void 0,arguments)},Sg.default=void 0,e(Ag());var t=e(Dg()),r=sg,n=e(function(){if(kg)return Tg;kg=1;var e=Ol;Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.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)},Tg.keys=void 0;var t=e(Au()),r=e(Dg()),n=["xs","sm","md","lg","xl"];return Tg.keys=n,Tg}()),o=e(function(){if(qg)return Lg;qg=1;var e=Ol;Object.defineProperty(Lg,"__esModule",{value:!0}),Lg.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(Ag()),r=e(Au());return Lg}()),i=e(Qg()),a=e(function(){if(eb)return tb;eb=1;var e=Ol;Object.defineProperty(tb,"__esModule",{value:!0}),tb.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(Au()),r=e(Dg()),n=sg;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 tb}()),s=e(function(){if(rb)return nb;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(",")}rb=1,Object.defineProperty(nb,"__esModule",{value:!0}),nb.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 nb.default=t,nb}()),l=e(function(){if(ob)return ib;ob=1,Object.defineProperty(ib,"__esModule",{value:!0}),ib.default=void 0;var e={borderRadius:4};return ib.default=e,ib}()),u=e(function(){if(qv)return ab;qv=1,Object.defineProperty(ab,"__esModule",{value:!0}),ab.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=Bv;return ab}()),c=e(Uv()),d=e(function(){if(Gv)return Kv;Gv=1,Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return Kv.default=e,Kv}());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 Sg.default=f,Sg}var Jv,Zv={};var Qv={},ey="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ty=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ry(){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!==ty.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[ey]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function ny(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 oy="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},iy="object"===("undefined"==typeof window?"undefined":oy(window))&&"object"===("undefined"==typeof document?"undefined":oy(document))&&9===document.nodeType;function ay(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,Dl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var sy={}.constructor;function ly(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(ly);if(e.constructor!==sy)return e;var t={};for(var r in e)t[r]=ly(e[r]);return t}function uy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=ly(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var cy=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},dy=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+=cy(e[r]," ");else t=cy(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function py(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function fy(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function my(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=py(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+=fy(p+":"+u+dy(f)+";",i))}}else for(var m in a){var h=a[m];null!=h&&(n&&(n+=l),n+=fy(m+":"+u+dy(h)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=fy(g+":"+u+dy(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),fy(""+e+u+"{"+n,--i)+fy("}",i)):n}var hy=/([[\].#*$><+~=|^:(),"'`\s])/g,gy="undefined"!=typeof CSS&&CSS.escape,by=function(e){return gy?gy(e):e.replace(hy,"\\$1")},vy=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}(),yy=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(Ec(Ec(o)),s),o.selectorText="."+by(o.id)),o}mc(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]=dy(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?_r({},e,{allowEmpty:!0}):e;return my(this.selectorText,this.style,r)},ay(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}(vy),xy={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new yy(e,t,r)}},Sy={indent:1,children:!0},wy=/@([\w-]+)/,Cy=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(wy);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Gy(_r({},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=Sy);var t=py(e).linebreak;if(null==e.indent&&(e.indent=Sy.indent),null==e.children&&(e.children=Sy.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Ey=/@container|@media|@supports\s+/,Ry={onCreateRule:function(e,t,r){return Ey.test(e)?new Cy(e,t,r):null}},Py={indent:1,children:!0},Ay=/@keyframes\s+([\w-]+)/,Iy=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Ay);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:by(a(this,i)),this.rules=new Gy(_r({},r,{parent:this})),t)this.rules.add(s,t[s],_r({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Py);var t=py(e).linebreak;if(null==e.indent&&(e.indent=Py.indent),null==e.children&&(e.children=Py.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}(),My=/@keyframes\s+/,Dy=/\$([\w-]+)/g,ky=function(e,t){return"string"==typeof e?e.replace(Dy,(function(e,r){return r in t?t[r]:e})):e},Ty=function(e,t,r){var n=e[t],o=ky(n,r);o!==n&&(e[t]=o)},qy={onCreateRule:function(e,t,r){return"string"==typeof e&&My.test(e)?new Iy(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Ty(e,"animation-name",r.keyframes),"animation"in e&&Ty(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 ky(e,n.keyframes);default:return e}}},Ly=function(e){function t(){return e.apply(this,arguments)||this}return mc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?_r({},e,{allowEmpty:!0}):e;return my(this.key,this.style,r)},t}(vy),Oy={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Ly(e,t,r):null}},Ny=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=py(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=my(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return my(this.at,this.style,e)},e}(),_y=/@font-face/,jy={onCreateRule:function(e,t,r){return _y.test(e)?new Ny(e,t,r):null}},zy=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 my(this.key,this.style,e)},e}(),Fy={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new zy(e,t,r):null}},Hy=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}(),$y={"@charset":!0,"@import":!0,"@namespace":!0},By={onCreateRule:function(e,t,r){return e in $y?new Hy(e,t,r):null}},Vy=[xy,Ry,qy,Oy,jy,Fy,By],Wy={process:!0},Uy={force:!0,process:!0},Gy=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=_r({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="."+by(this.classes[d]));var p=uy(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=_r({},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 yy?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Iy&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof yy?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Iy&&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=Wy);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,Uy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Uy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=py(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}(),Yy=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=_r({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Gy(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}(),Ky=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}(),Xy=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=jr(t,["attached"]),o=py(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},ay(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Jy=new Xy,Zy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Qy="2f1acc6c3a606b082e5eef5e54414ffb";null==Zy[Qy]&&(Zy[Qy]=0);var ex=Zy[Qy]++,tx=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")+ex+o+t:i+r.key+"-"+ex+(o?"-"+o:"")+"-"+t}},rx=function(e){var t;return function(){return t||(t=e()),t}},nx=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ox=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=dy(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},ix=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},ax=function(e,t){return e.selectorText=t,e.selectorText===t},sx=rx((function(){return document.querySelector("head")}));function lx(e){var t=Jy.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=sx(),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 ux=rx((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),cx=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]},dx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},px=function(){function e(e){this.getPropertyValue=nx,this.setProperty=ox,this.removeProperty=ix,this.setSelector=ax,this.hasInsertedRules=!1,this.cssRules=[],e&&Jy.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=ux();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=lx(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 sx().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=dx(r,t);if(!1===(o=cx(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=dx(r,t),l=cx(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 Yy&&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}(),fx=0,mx=function(){function e(e){this.id=fx++,this.version="10.10.0",this.plugins=new Ky,this.options={id:{minify:!1},createGenerateId:tx,Renderer:iy?px:null,plugins:[]},this.generateId=tx({minify:!1});for(var t=0;t<Vy.length;t++)this.plugins.use(Vy[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=_r({},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===Jy.index?0:Jy.index+1);var n=new Yy(e,_r({},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(),Jy.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=_r({},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=uy(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}(),hx=function(e){return new mx(e)},gx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function bx(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=bx(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
|
+
*/hx();var vx=Date.now(),yx="fnValues"+vx,xx="fnStyle"+ ++vx,Sx="@global",wx="@global ",Cx=function(){function e(e,t,r){for(var n in this.type="global",this.at=Sx,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new Gy(_r({},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}(),Ex=function(){function e(e,t,r){this.type="global",this.at=Sx,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,_r({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Rx=/\s*,\s*/g;function Px(e,t){for(var r=e.split(Rx),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Ax(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Sx)return new Cx(e,t,r);if("@"===e[0]&&e.substr(0,8)===wx)return new Ex(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[Sx]:null;if(o){for(var i in o)t.addRule(i,o[i],_r({},r,{selector:Px(i,e.selector)}));delete n[Sx]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Sx){var i=Px(o.substr(7),e.selector);t.addRule(i,n[o],_r({},r,{selector:i})),delete n[o]}}(e,t))}}}var Ix=/\s*,\s*/g,Mx=/&/g,Dx=/\$([\w-]+)/g;function kx(){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(Ix),n=e.split(Ix),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(Mx,a):a+" "+l}return o}function r(e,t,r){if(r)return _r({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=_r({},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(Dx,s);var m=l.key+"-"+c;"replaceRule"in u?u.replaceRule(m,n[c],_r({},a,{selector:f})):u.addRule(m,n[c],_r({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Tx=/[A-Z]/g,qx=/^ms-/,Lx={};function Ox(e){return"-"+e.toLowerCase()}function Nx(e){if(Lx.hasOwnProperty(e))return Lx[e];var t=e.replace(Tx,Ox);return Lx[e]=qx.test(t)?"-"+t:t}function _x(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Nx(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(_x):t.fallbacks=_x(e.fallbacks)),t}var jx=gx&&CSS?CSS.px:"px",zx=gx&&CSS?CSS.ms:"ms",Fx=gx&&CSS?CSS.percent:"%";function Hx(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 $x=Hx({"animation-delay":zx,"animation-duration":zx,"background-position":jx,"background-position-x":jx,"background-position-y":jx,"background-size":jx,border:jx,"border-bottom":jx,"border-bottom-left-radius":jx,"border-bottom-right-radius":jx,"border-bottom-width":jx,"border-left":jx,"border-left-width":jx,"border-radius":jx,"border-right":jx,"border-right-width":jx,"border-top":jx,"border-top-left-radius":jx,"border-top-right-radius":jx,"border-top-width":jx,"border-width":jx,"border-block":jx,"border-block-end":jx,"border-block-end-width":jx,"border-block-start":jx,"border-block-start-width":jx,"border-block-width":jx,"border-inline":jx,"border-inline-end":jx,"border-inline-end-width":jx,"border-inline-start":jx,"border-inline-start-width":jx,"border-inline-width":jx,"border-start-start-radius":jx,"border-start-end-radius":jx,"border-end-start-radius":jx,"border-end-end-radius":jx,margin:jx,"margin-bottom":jx,"margin-left":jx,"margin-right":jx,"margin-top":jx,"margin-block":jx,"margin-block-end":jx,"margin-block-start":jx,"margin-inline":jx,"margin-inline-end":jx,"margin-inline-start":jx,padding:jx,"padding-bottom":jx,"padding-left":jx,"padding-right":jx,"padding-top":jx,"padding-block":jx,"padding-block-end":jx,"padding-block-start":jx,"padding-inline":jx,"padding-inline-end":jx,"padding-inline-start":jx,"mask-position-x":jx,"mask-position-y":jx,"mask-size":jx,height:jx,width:jx,"min-height":jx,"max-height":jx,"min-width":jx,"max-width":jx,bottom:jx,left:jx,top:jx,right:jx,inset:jx,"inset-block":jx,"inset-block-end":jx,"inset-block-start":jx,"inset-inline":jx,"inset-inline-end":jx,"inset-inline-start":jx,"box-shadow":jx,"text-shadow":jx,"column-gap":jx,"column-rule":jx,"column-rule-width":jx,"column-width":jx,"font-size":jx,"font-size-delta":jx,"letter-spacing":jx,"text-decoration-thickness":jx,"text-indent":jx,"text-stroke":jx,"text-stroke-width":jx,"word-spacing":jx,motion:jx,"motion-offset":jx,outline:jx,"outline-offset":jx,"outline-width":jx,perspective:jx,"perspective-origin-x":Fx,"perspective-origin-y":Fx,"transform-origin":Fx,"transform-origin-x":Fx,"transform-origin-y":Fx,"transform-origin-z":Fx,"transition-delay":zx,"transition-duration":zx,"vertical-align":jx,"flex-basis":jx,"shape-margin":jx,size:jx,gap:jx,grid:jx,"grid-gap":jx,"row-gap":jx,"grid-row-gap":jx,"grid-column-gap":jx,"grid-template-rows":jx,"grid-template-columns":jx,"grid-auto-rows":jx,"grid-auto-columns":jx,"box-shadow-x":jx,"box-shadow-y":jx,"box-shadow-blur":jx,"box-shadow-spread":jx,"font-line-height":jx,"text-shadow-x":jx,"text-shadow-y":jx,"text-shadow-blur":jx});function Bx(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Bx(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Bx(o,t[o],r);else for(var i in t)t[i]=Bx(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||$x[e];return!a||0===t&&a===jx?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Vx(e){void 0===e&&(e={});var t=Hx(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Bx(n,e[n],t);return e},onChangeValue:function(e,r){return Bx(r,e,t)}}}var Wx="",Ux="",Gx="",Yx="",Kx=iy&&"ontouchstart"in document.documentElement;if(iy){var Xx={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Jx=document.createElement("p").style;for(var Zx in Xx)if(Zx+"Transform"in Jx){Wx=Zx,Ux=Xx[Zx];break}"Webkit"===Wx&&"msHyphens"in Jx&&(Wx="ms",Ux=Xx.ms,Yx="edge"),"Webkit"===Wx&&"-apple-trailing-word"in Jx&&(Gx="apple")}var Qx=Wx,eS=Ux,tS=Gx,rS=Yx,nS=Kx;var oS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Qx?"-webkit-"+e:eS+e)}},iS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Qx?eS+"print-"+e:e)}},aS=/[-\s]+(.)?/g;function sS(e,t){return t?t.toUpperCase():""}function lS(e){return e.replace(aS,sS)}function uS(e){return lS("-"+e)}var cS,dS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Qx){var r="mask-image";if(lS(r)in t)return e;if(Qx+uS(r)in t)return eS+e}return e}},pS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==tS||nS?e:eS+e)}},fS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:eS+e)}},mS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:eS+e)}},hS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Qx||"ms"===Qx&&"edge"!==rS?eS+e:e)}},gS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Qx||"ms"===Qx||"apple"===tS?eS+e:e)}},bS={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Qx?"WebkitColumn"+uS(e)in t&&eS+"column-"+e:"Moz"===Qx&&("page"+uS(e)in t&&"page-"+e))}},vS={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Qx)return e;var r=e.replace("-inline","");return Qx+uS(r)in t&&eS+r}},yS={supportedProperty:function(e,t){return lS(e)in t&&e}},xS={supportedProperty:function(e,t){var r=uS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Qx+r in t?eS+e:"Webkit"!==Qx&&"Webkit"+r in t&&"-webkit-"+e}},SS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Qx?""+eS+e:e)}},wS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Qx?eS+"scroll-chaining":e)}},CS={"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"},ES={supportedProperty:function(e,t){var r=CS[e];return!!r&&(Qx+uS(r)in t&&eS+r)}},RS={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"},PS=Object.keys(RS),AS=function(e){return eS+e},IS={supportedProperty:function(e,t,r){var n=r.multiple;if(PS.indexOf(e)>-1){var o=RS[e];if(!Array.isArray(o))return Qx+uS(o)in t&&eS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(Qx+uS(o[0])in t))return!1;return o.map(AS)}return!1}},MS=[oS,iS,dS,pS,fS,mS,hS,gS,bS,vS,yS,xS,SS,wS,ES,IS],DS=MS.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),kS=MS.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,ub(t.noPrefill)),e}),[]),TS={};if(iy){cS=document.createElement("p");var qS=window.getComputedStyle(document.documentElement,"");for(var LS in qS)isNaN(LS)||(TS[qS[LS]]=qS[LS]);kS.forEach((function(e){return delete TS[e]}))}function OS(e,t){if(void 0===t&&(t={}),!cS)return e;if(null!=TS[e])return TS[e];"transition"!==e&&"transform"!==e||(t[e]=e in cS.style);for(var r=0;r<DS.length&&(TS[e]=DS[r](e,cS.style,t),!TS[e]);r++);try{cS.style[e]=""}catch(e){return!1}return TS[e]}var NS,_S={},jS={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},zS=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function FS(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?OS(t):", "+OS(r);return n||(t||r)}function HS(e,t){var r=t;if(!NS||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=_S[n])return _S[n];try{NS.style[e]=r}catch(e){return _S[n]=!1,!1}if(jS[e])r=r.replace(zS,FS);else if(""===NS.style[e]&&("-ms-flex"===(r=eS+r)&&(NS.style[e]="-ms-flexbox"),NS.style[e]=r,""===NS.style[e]))return _S[n]=!1,!1;return NS.style[e]="",_S[n]=r,_S[n]}function $S(){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=OS(r);i&&i!==r&&(o=!0);var a=!1,s=HS(i,dy(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"===Qx?e:"@"+eS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return HS(t,dy(e))||e}}}function BS(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=uy(e,{},r);return n[xx]=t,n},onProcessStyle:function(e,t){if(yx in t||xx 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[yx]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[xx];i&&(o.style=i(e)||{});var a=o[yx];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Ax(),kx(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=_x(e[t]);return e}return _x(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Nx(t);return t===n?e:(r.prop(n,e),null)}},Vx(),"undefined"==typeof window?null:$S(),(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 VS(e,t){if(null==e)return{};var r,n,o=jr(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 WS(){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=_r({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}iy&&(NS=document.createElement("p"));var US=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},GS=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},YS=function(e,t,r){e.get(t).delete(r)},KS=x.createContext(null);function XS(){return x.useContext(KS)}var JS,ZS=hx(BS()),QS=ry(),ew=new Map,tw={disableGeneration:!1,generateClassName:QS,jss:ZS,sheetsCache:null,sheetsManager:ew,sheetsRegistry:null},rw=x.createContext(tw);function nw(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=VS(e,["children","injectFirst","disableGeneration"]),s=_r({},x.useContext(rw),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!JS){var l=document.head;JS=document.createComment("mui-inject-first"),l.insertBefore(JS,l.firstChild)}s.jss=hx({plugins:BS().plugins,insertionPoint:JS})}return x.createElement(rw.Provider,{value:s},t)}var ow=-1e9;var iw={};function aw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=GS(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},US(o.sheetsManager,i,n,s));var l=_r({},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=GS(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,_r({link:!1},l))).attach(),o.sheetsCache&&US(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=bx(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,_r({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=WS({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function sw(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?iw:i,s=VS(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=_r({},o);return Object.keys(i).forEach((function(e){a[e]=xh(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:ow+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=XS()||a,n=_r({},x.useContext(rw),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 aw(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=GS(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(YS(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=WS({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var lw=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 ay(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new Xy;var r=ry();return x.createElement(nw,_r({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",_r({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function uw(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=uw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function cw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=uw(e))&&(n&&(n+=" "),n+=t);return n}var dw={exports:{}},pw={},fw="function"==typeof Symbol&&Symbol.for,mw=fw?Symbol.for("react.element"):60103,hw=fw?Symbol.for("react.portal"):60106,gw=fw?Symbol.for("react.fragment"):60107,bw=fw?Symbol.for("react.strict_mode"):60108,vw=fw?Symbol.for("react.profiler"):60114,yw=fw?Symbol.for("react.provider"):60109,xw=fw?Symbol.for("react.context"):60110,Sw=fw?Symbol.for("react.async_mode"):60111,ww=fw?Symbol.for("react.concurrent_mode"):60111,Cw=fw?Symbol.for("react.forward_ref"):60112,Ew=fw?Symbol.for("react.suspense"):60113,Rw=fw?Symbol.for("react.suspense_list"):60120,Pw=fw?Symbol.for("react.memo"):60115,Aw=fw?Symbol.for("react.lazy"):60116,Iw=fw?Symbol.for("react.block"):60121,Mw=fw?Symbol.for("react.fundamental"):60117,Dw=fw?Symbol.for("react.responder"):60118,kw=fw?Symbol.for("react.scope"):60119;function Tw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case mw:switch(e=e.type){case Sw:case ww:case gw:case vw:case bw:case Ew:return e;default:switch(e=e&&e.$$typeof){case xw:case Cw:case Aw:case Pw:case yw:return e;default:return t}}case hw:return t}}}function qw(e){return Tw(e)===ww}pw.AsyncMode=Sw,pw.ConcurrentMode=ww,pw.ContextConsumer=xw,pw.ContextProvider=yw,pw.Element=mw,pw.ForwardRef=Cw,pw.Fragment=gw,pw.Lazy=Aw,pw.Memo=Pw,pw.Portal=hw,pw.Profiler=vw,pw.StrictMode=bw,pw.Suspense=Ew,pw.isAsyncMode=function(e){return qw(e)||Tw(e)===Sw},pw.isConcurrentMode=qw,pw.isContextConsumer=function(e){return Tw(e)===xw},pw.isContextProvider=function(e){return Tw(e)===yw},pw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===mw},pw.isForwardRef=function(e){return Tw(e)===Cw},pw.isFragment=function(e){return Tw(e)===gw},pw.isLazy=function(e){return Tw(e)===Aw},pw.isMemo=function(e){return Tw(e)===Pw},pw.isPortal=function(e){return Tw(e)===hw},pw.isProfiler=function(e){return Tw(e)===vw},pw.isStrictMode=function(e){return Tw(e)===bw},pw.isSuspense=function(e){return Tw(e)===Ew},pw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===gw||e===ww||e===vw||e===bw||e===Ew||e===Rw||"object"==typeof e&&null!==e&&(e.$$typeof===Aw||e.$$typeof===Pw||e.$$typeof===yw||e.$$typeof===xw||e.$$typeof===Cw||e.$$typeof===Mw||e.$$typeof===Dw||e.$$typeof===kw||e.$$typeof===Iw)},pw.typeOf=Tw,dw.exports=pw;var Lw=dw.exports,Ow={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Nw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_w={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},jw={};function zw(e){return Lw.isMemo(e)?_w:jw[e.$$typeof]||Ow}jw[Lw.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jw[Lw.Memo]=_w;var Fw=Object.defineProperty,Hw=Object.getOwnPropertyNames,$w=Object.getOwnPropertySymbols,Bw=Object.getOwnPropertyDescriptor,Vw=Object.getPrototypeOf,Ww=Object.prototype;var Uw=function e(t,r,n){if("string"!=typeof r){if(Ww){var o=Vw(r);o&&o!==Ww&&e(t,o,n)}var i=Hw(r);$w&&(i=i.concat($w(r)));for(var a=zw(t),s=zw(r),l=0;l<i.length;++l){var u=i[l];if(!(Nw[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Bw(r,u);try{Fw(t,u,c)}catch(e){}}}}return t},Gw=$t(Uw);function Yw(){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=VS(r,["innerRef"]),a=XS()||e;return x.createElement(t,_r({theme:a,ref:o||n},i))}));return Gw(r,t),r}}var Kw,Xw=Yw(),Jw=Object.freeze({__proto__:null,ServerStyleSheets:lw,StylesContext:rw,StylesProvider:nw,ThemeProvider:function(e){var t=e.children,r=e.theme,n=XS(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):_r({},e,t)}(n,r);return null!=e&&(e[ey]=null!==n),e}),[r,n]);return x.createElement(KS.Provider,{value:o},t)},createGenerateClassName:ry,createStyles:function(e){return e},getThemeProps:ny,jssPreset:BS,makeStyles:sw,mergeClasses:WS,sheetsManager:ew,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=VS(n,["name"]),a=o,s=sw("function"==typeof t?function(e){return{root:function(r){return t(_r({theme:e},r))}}}:{root:t},_r({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=VS(t,["children","className","clone","component"]),f=cw(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,_r({className:cw(l.props.className,f)},m));if("function"==typeof l)return l(_r({className:f},m));var h=d||e;return x.createElement(h,_r({ref:n,className:f},m),l)}));return Gw(l,e),l}},useTheme:XS,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=VS(t,["defaultTheme","withTheme","name"]),l=a,u=sw(e,_r({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=VS(e,["classes","innerRef"]),c=u(_r({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=XS()||n,a&&(d=ny({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,_r({ref:s||t,classes:c},d))}));return Gw(c,r),c}},withTheme:Xw,withThemeCreator:Yw}),Zw=Bt(Jw);
|
|
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 Qw,eC,tC={},rC={};function nC(){if(Qw)return rC;Qw=1;var e=Ol;Object.defineProperty(rC,"__esModule",{value:!0}),rC.default=void 0;var t=(0,e(Xv()).default)();return rC.default=t,rC}var oC,iC,aC={},sC={};function lC(){if(iC)return aC;iC=1;var e=Ol;Object.defineProperty(aC,"__esModule",{value:!0}),aC.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(Au()),r=sg,n=function(){if(oC)return sC;oC=1;var e=Ol;Object.defineProperty(sC,"__esModule",{value:!0}),sC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},sC.getUnit=r,sC.toUnitless=n,sC.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}},sC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},sC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},sC.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(Ag());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return sC}();return aC}var uC,cC={};var dC,pC={};var fC,mC={};var hC,gC={};!function(e){var t=Ol,r=gh;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=bh;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(Xv()),a=t(function(){if(Jv)return Zv;Jv=1;var e=Ol;Object.defineProperty(Zv,"__esModule",{value:!0}),Zv.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=sg,r=e(Xv());return Zv}()),s=t(function(){if(Kw)return Qv;Kw=1,Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.default=function(t){return(0,e.createStyles)(t)};var e=Zw;return Qv}()),l=t(function(){if(eC)return tC;eC=1;var e=Ol;Object.defineProperty(tC,"__esModule",{value:!0}),tC.default=void 0;var t=e(Au()),r=Zw,n=e(nC()),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 tC.default=o,tC}()),u=t(lC()),c=t(function(){if(uC)return cC;uC=1;var e=Ol;Object.defineProperty(cC,"__esModule",{value:!0}),cC.default=void 0;var t=e(Au()),r=Zw,n=e(nC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return cC.default=o,cC}()),d=Uv();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(dC)return pC;dC=1;var e=Ol;Object.defineProperty(pC,"__esModule",{value:!0}),pC.default=function(){return(0,t.useTheme)()||r.default};var t=Zw;e(x);var r=e(nC());return pC}()),f=t(function(){if(fC)return mC;fC=1;var e=Ol;Object.defineProperty(mC,"__esModule",{value:!0}),mC.default=void 0;var t=e(Au()),r=Zw,n=e(nC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return mC.default=o,mC}()),m=t(function(){if(hC)return gC;hC=1;var e=Ol;Object.defineProperty(gC,"__esModule",{value:!0}),gC.default=void 0;var t=Zw,r=e(nC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return gC.default=n,gC}()),h=Zw}(ph),ph.alpha(kt.GREYSCALE_0,.05),ph.alpha(kt.GREEN_PALE,.5),ph.alpha(kt.BLUE_PALE,.5),ph.alpha(kt.GREEN_PALE,.5),ph.alpha(kt.BLUE_PALE,.5),ph.alpha(kt.GREEN_PALE,.5),ph.alpha(kt.BLUE_PALE,.5),ph.alpha(kt.GREEN_PALE,.5),ph.alpha(kt.BLUE_PALE,.5),ph.alpha(kt.GREEN_PALE,.5),ph.alpha(kt.BLUE_PALE,.5);const bC=(e="light",t=!1)=>ch(e,t),vC=bC().palette,yC={TEXT:vC.text.primary,DISABLED:vC.text.disabled,HOVER:vC.action.hover,WHITE:dh.GREYSCALE_100,BORDER_LIGHT:dh.GREYSCALE_90,BORDER_MEDIUM:dh.GREYSCALE_85,BORDER_HEAVY:dh.GREYSCALE_50,DARK_MODE_TEXT:dh.GREYSCALE_95,DARK_MODE_BORDER:dh.GREYSCALE_95,DARK_MODE_DISABLED:dh.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:dh.GREYSCALE_95,SELECTED:vC.primary.main,LINK:vC.info.main,ERROR:vC.error.main},xC=(e,t=yC.TEXT,r=yC.WHITE)=>{const n=ee(e),o=ee(t),i=ee(r);return n.isInvalid()?t:function(e,t,r){const n=te(e,t),o=te(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},SC=e=>{const t=e.getStyle("","","dataColors.selected")||yC.SELECTED,r=function(e,t){const r=ee("#FFFFFF"),n=ee(e),o=ee(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=te(r,n),a=te(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,yC.TEXT);return{background:t,color:r}},wC=(e,t)=>{const r=ee(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},CC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},EC=e=>{const t=ee(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},RC=(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)},PC=e=>{e.stopPropagation(),e.preventDefault()},AC=e=>!!e&&0===ee(e).a,IC="#grid",MC=(e,t,r,n=yC.WHITE)=>e&&!AC(e)?e:AC(t)?r&&!AC(r)?r:n:t,DC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},kC=(e,t,r,n,o)=>{const i=DC(".qv-object .qv-inner-object",r),a=DC(".qv-panel-sheet",r),s=DC(IC,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 EC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ee(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=AC(d),f=!AC(m=p?s:d)&&xC(m,yC.TEXT,yC.DARK_MODE_TEXT)===K(yC.DARK_MODE_TEXT);var m;return{color:d,headerColor:MC(l,d,s),isDark:f}},TC=(t,r,a,s)=>{const l=i(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o((()=>{let r;return e&&(r=new MutationObserver((e=>{i(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(r.closest(IC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return e((()=>({...l,background:kC(t,l,r,a,s)})),[l.name(),r,a,s,t,u])};function qC(t,n){const o=e((()=>({isLoading:!0})),n),[i,a]=r((async()=>{try{return await t()}finally{o.isLoading=!1}}),n);return[i,o.isLoading,a]}const LC=3;function OC(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 NC({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=LC}=o??{},{estimateWidth:a,measureText:s,estimateLineCount:l}=C((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=vt(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=vt((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=OC(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 _C,jC=F;_C=jC.createRoot,jC.hydrateRoot;const zC="Source Sans Pro, sans-serif";function FC(e,t){const[r,n]=w(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var HC={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 $C=({translator:e})=>(C((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(HC).forEach((t=>{e.add(HC[t])}))}}(e)}),[e]),e),BC="12px",VC="nebula-table-utils-head-menu-button",WC="nebula-table-utils-head-menu-wrapper",UC="nebula-table-utils-head-menu",GC="nebula-table-utils-head-menu-list-id",YC="sn-copy-cell";let KC=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 XC="nebula-table-utils-column-adjuster";let JC=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}({}),ZC=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const QC={darker:.15,brighter:.3,opacity:.03},eE={darker:.3,brighter:.5,opacity:.05};let tE=function(e){return e.Cyclic="C",e}({});const rE=document.createElement("textarea");function nE(e){rE.value=e,document.body.appendChild(rE),rE.select(),rE.setSelectionRange(0,rE.value.length),document.execCommand("copy"),document.body.removeChild(rE)}rE.style.position="absolute",rE.style.left="-9999px",rE.setAttribute("readonly","");const oE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{nE(t)})):nE(t))};var iE={exports:{}};self,iE.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})();var aE=$t(iE.exports);const sE="qHyperCubeDef.qMeasures",lE="measures",uE="qHyperCubeDef.qDimensions",cE="dimensions",dE="qDef.representation",pE="tableRepresentation",fE="qDef.conditionalColoring",mE="conditionalColoring",hE="qMiniChartDef",gE="miniChartDef",bE=({propertyTree:e,hyperCubePath:t})=>{const r=aE.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 bt(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),aE.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),aE.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),aE.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{aE.quarantineArrayProp({properties:e,arrayPath:uE,itemPath:dE,arrayName:cE,quarantineName:pE}),aE.quarantineArrayProp({properties:e,arrayPath:sE,itemPath:dE,arrayName:lE,quarantineName:pE}),aE.quarantineArrayProp({properties:e,arrayPath:sE,itemPath:fE,arrayName:lE,quarantineName:mE}),aE.quarantineArrayProp({properties:e,arrayPath:sE,itemPath:hE,arrayName:lE,quarantineName:gE})})(r.properties),r};const vE=/^q[A-Z]/,yE=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],xE=e=>"object"==typeof e&&null!==e,SE=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!vE.test(e)&&!yE.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>xE(e)?SE(e,`${o}.${t}`):e)):xE(n)&&(e[r]=SE(n,o))})),e),wE=(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:ZC.Pixels,pixels:e}:{type:ZC.FitToContent}:i.qDef.columnWidth=e}return i},CE=({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)}SE(e.properties)}const a=aE.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(aE.conditionalShow.unquarantine(a.qProperty),i)bt(a,"qProperty.totals.show",!1),bt(a,"qProperty.usePagination",!0),bt(a,"qProperty.accessibleHeader",!0);else{aE.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{aE.unquarantineArrayProp({properties:e,arrayPath:uE,itemPath:dE,arrayName:cE,quarantineName:pE}),aE.unquarantineArrayProp({properties:e,arrayPath:sE,itemPath:dE,arrayName:lE,quarantineName:pE}),aE.unquarantineArrayProp({properties:e,arrayPath:sE,itemPath:fE,arrayName:lE,quarantineName:mE}),aE.unquarantineArrayProp({properties:e,arrayPath:sE,itemPath:hE,arrayName:lE,quarantineName:gE})})(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=>wE(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>wE(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(bt(a,"qProperty.qHyperCubeDef.qDimensions",o),bt(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var EE={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function RE(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function PE(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 AE(e){return e>0?0:1}function IE(e){return e.translator.get("Visualizations.Descriptions.Column")}function ME(e){return{measures:{min:AE,max:1e3,description:()=>IE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;RE(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;PE(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:AE,max:1e3,description:()=>IE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return RE(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;PE(o,n)}}}}let DE=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}({}),kE=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const TE=e=>{switch(e?.type){case"url":return DE.Link;case"image":return DE.Image;case"indicator":return DE.Indicator;case"miniChart":return DE.MiniChart;default:return DE.Text}},qE=({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}}),LE=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>TE(e.qDef.representation)===DE.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}}}}}},OE=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:qE({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>TE(e.qDef.representation)===DE.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>TE(e.qDef.representation)===DE.Link&&e.qDef.representation?.urlPosition===kE.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>TE(e.qDef.representation)===DE.Link&&e.qDef.representation?.urlPosition===kE.Attribute},...LE(r)}},NE=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[DE.Image],i=!n?.("qMiniChartDef")&&t[DE.MiniChart],a=!n?.("tableIndicators")&&t[DE.Indicator],s=o&&t[DE.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=>TE(e.qDef.representation)===DE.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 _E,jE={};_E=jE,(()=>{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 _E.default=n.default,n)-1===["default"].indexOf(Ze)&&(_E[Ze]=n[Ze]);Object.defineProperty(_E,"__esModule",{value:!0})})();var zE=$t(jE);const FE={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},HE={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}},$E=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)=>(!zE.hasActiveModifiers({measures:[e],properties:t.properties})||zE.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")}),BE={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:ZC.Auto,translation:"Common.Auto"},{value:ZC.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:ZC.Pixels,translation:"Object.Table.Column.Pixels"},{value:ZC.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:ZC.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===ZC.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===ZC.Percentage}},VE=()=>({...FE,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}]},...HE,...BE}),WE={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"}},UE=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:$E(e)}},GE=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:WE},presentation:{type:"items",translation:"properties.presentation",items:{...VE(),...OE(e)}}}}}),YE=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:UE(e)},presentation:{type:"items",translation:"properties.presentation",items:{...VE(),...NE(e,{[DE.Image]:!0,[DE.Indicator]:!0,[DE.MiniChart]:!0})}}}}}),KE=e=>({...GE(e),...YE(e)}),XE=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...KE(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}}}),JE={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}},ZE=({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},QE=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")}),eR=(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}}}),tR=(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},rR=({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=>tR(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ge(n).filter((e=>!a.includes(e))).map((e=>tR(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),nR=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],oR=({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=>tR(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...nR.filter((e=>!i.includes(e))).map((e=>tR(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),iR=({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:rR({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:oR({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:eR(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:eR(`${e}.background`,"properties.background",((t,r)=>{const n=r?yC.WHITE:yC.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),aR=({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:eR(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:eR(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),sR=(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}},lR=e=>e.grid?.zebraStripes?.show,uR={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)}},cR=e=>e?.content?.hoverEffect,dR={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:cR,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:cR,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},pR=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,fR=({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:iR({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:sR,disableNoneCallback:pR}),dimensionValueSection:iR({section:"dimensionValues",translator:t,flags:e,getThemeValue:sR}),measureValueSection:iR({section:"measureValues",translator:t,flags:e,getThemeValue:sR}),totalRowSection:iR({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:sR,disableNoneCallback:pR}),nullValues:aR({section:"nullValues",fallbackBackground:yC.NULL_VALUE_BACKGROUND,getThemeValue:sR}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...uR},border:eR("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??yC.BORDER_MEDIUM)),divider:eR("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??yC.BORDER_HEAVY))}}}},hoverEffectSection:dR,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:lR,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:lR,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:lR,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:lR,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),mR=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[fR(e),QE(e),ZE(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:"-"}]},...JE}}),hR={uses:"sorting"},gR={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},bR=e=>({type:"items",component:"accordion",items:{data:XE(e),sorting:hR,addOns:gR,settings:mR(e)}});function vR(e){return{definition:bR(e),exploration:EE,data:ME(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 CE({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>bE({propertyTree:e,hyperCubePath:t})}}const yR=(t,r)=>e((()=>((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)})(t,r)),[t,r]),xR=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),SR=[];for(let e=0;e<256;++e)SR.push((e+256).toString(16).slice(1));let wR;const CR=new Uint8Array(16);var ER={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function RR(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!wR){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");wR=crypto.getRandomValues.bind(crypto)}return wR(CR)}();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(SR[e[t+0]]+SR[e[t+1]]+SR[e[t+2]]+SR[e[t+3]]+"-"+SR[e[t+4]]+SR[e[t+5]]+"-"+SR[e[t+6]]+SR[e[t+7]]+"-"+SR[e[t+8]]+SR[e[t+9]]+"-"+SR[e[t+10]]+SR[e[t+11]]+SR[e[t+12]]+SR[e[t+13]]+SR[e[t+14]]+SR[e[t+15]]).toLowerCase()}(n)}const PR=()=>{return crypto?.randomUUID?.()??(ER.randomUUID&&!e?ER.randomUUID():RR(e));var e},AR=({qLibraryId:e,cId:t})=>e??t??PR(),IR=e=>"number"==typeof e&&!Number.isNaN(+e),MR=e=>IR(e.qNum),DR=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);var kR={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:qR(e),value:qR(t),useEqualSign:r}}(n,o,i))})),t}},TR=kR;function qR(e){try{return decodeURIComponent(e)}catch{return e}}function LR(e){if(!(this instanceof LR))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:()=>TR.fromSearchString(t.search)}})}function OR(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}LR.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},LR.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=OR(t.key),t.value?r+=`=${OR(t.value)}`:r+=t.useEqualSign?"=":"";return r};var NR=LR;var _R,jR=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}},zR=class{decode(e){let t="";const r=new jR(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},FR=e=>e>=0&&e<=1114111,HR=e=>e.match(/[\s]/),$R=class extends zR{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&&!HR(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return FR(a)?String.fromCharCode(a):"�"}},BR=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}},VR=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 BR.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return BR.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||BR.newInstanceIfNeeded(e,t,this._value)}},WR=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 VR);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},UR=(()=>{const e=[],t=[],r=new WR;let n,o,i;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="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["¬in"]="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})(),GR=class extends zR{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,UR.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=UR.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)&&FR(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)&&FR(n)?String.fromCharCode(n):null}},YR=class extends zR{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),FR(i))?String.fromCharCode(i):(e.reset(),null)}},KR=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,XR=5e6,JR=5e5,ZR=(e,t)=>{const{maxByteSizeSvg:r=JR,maxByteSizeImage:n=XR}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=KR.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&&(_R=document.createElement("div"));var QR=Array.prototype.indexOf,eP=[",",".","_"," "],tP=[",",".","-","_"," "],rP={width:["%"],height:["%"]},nP={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},oP={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":nP.image,"background-color":nP.color,"border-color":nP.color,"border-image":nP.image,color:nP.color,icon:nP.image,"list-style-image":nP.image,"outline-color":nP.color},iP={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function aP(e,t,r){let n;if(t){if(QR)return QR.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 sP(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return _R.appendChild(r),t=_R.innerHTML,_R.removeChild(r),t}function lP(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=cP(e).toLowerCase(),t=cP(t),i=0;i<iP.attr_name.length;i++)if(e.match(iP.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<iP.attr_val.length;i++)if(t.toLowerCase().match(iP.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=rP[e],n||(n=tP),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]/)&&aP(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function uP(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=cP(e).toLowerCase(),t=cP(t),aP(e,iP.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<iP.css_val.length;n++)if(t.toLowerCase().indexOf(iP.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=oP[e],o||(o=nP.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]/)&&aP(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function cP(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new GR,new YR,new $R];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 dP=[];for(let e=0;e<255;e++)dP[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var pP={html:e=>sP(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]=uP(t,r[t],!0),i+=uP(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]=lP(e,t[e],!0),o+=lP(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function fP(e,t){throw new Error(t)}var mP={canonicalize:cP,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?pP.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&fP(this,"Invalid parameter type"),pP.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&fP(this,"Invalid parameter type"),pP.attr(e)):void fP(this,"Invalid parameter type")},encodeForAttr:lP,encodeForAttr2:function(e){return lP("nonsens",e,!0)},encodeForCSS:uP,encodeForHref:function(e){cP(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new NR(e),r=NR.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+NR.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=eP),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),aP(o,t)>=0||null==dP[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:sP,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=cP(t).toLowerCase():fP(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:ZR,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 hP=(e,t)=>t.qAttrExps?.qValues?.[e],gP=(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"}}},bP=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&mP.isSafeDataURL(t)?{type:DE.Image,url:t,text:e,imageSize:r,resolvedImagePosition:gP(n,a),labelStructure:o,imageBox:i}:{type:DE.Text,url:void 0,text:e,labelStructure:o},vP=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:DE.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:DE.MiniChart,text:n,miniChart:a}},yP=(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===kE.Attribute?void 0:r?.urlLabel},xP=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:DE.Link,url:mP.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:DE.Text,url:void 0,text:t,labelStructure:e}}},SP=({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=TE(t),d=s(e);return c===DE.Image&&u[DE.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=hP(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),bP({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 bP({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=hP(r.imageLabel??-1,e)?.qText??n;return bP({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:DE.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===DE.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===kE.Attribute){const i=yP(r.url??-1,e,t);return xP({labelStructure:n,text:o||i||"",url:i})}if(i===kE.Dimension){const i=yP(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),xP({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:DE.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===DE.Indicator&&u[DE.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:DE.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===DE.MiniChart&&u[DE.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?vP(e,t,i,d):{type:DE.Text,url:void 0,text:d,labelStructure:a}},wP=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,CP=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",EP=1e4;function RP(e,t){return[...t].reverse().find((t=>t*e<=EP))||Math.floor(EP/e)}function PP(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 AP(e,t,r,n){return t?0===r?e.totals.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function IP(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return IR(r?.qNum)}function MP(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 DP=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const kP=(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===tE.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:ZC.Auto},selectionColIdx:v,isActivelySorted:f,id:AR(d),label:C,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:R.map((e=>e.id)),qAttrExprInfoIndex:xR(d),sortDirection:P&&"N"!==P?P:"A",totalInfo:AP(e,c,r,n),...!c&&{isTotalNumeric:IP(e,n)},...MP(E,m,c,o,i),representation:S,conditionalColoring:c?void 0:w,qMiniChart:h}}(e,n,o,u[n],t,r)))};const TP=(e,t)=>!(!e.snapshotData&&!t.viewState?.visibleHeight),qP=(e,t)=>void 0!==t.viewState?.usePagination?t.viewState.usePagination:!1!==e.usePagination||TP(e,t);var LP={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)}(Qk,Qk.exports);var eM=wt(Qk.exports),tM="comm",rM="rule",nM="decl",oM=Math.abs,iM=String.fromCharCode;function aM(e){return e.trim()}function sM(e,t,r){return e.replace(t,r)}function lM(e,t,r){return e.indexOf(t,r)}function uM(e,t){return 0|e.charCodeAt(t)}function cM(e,t,r){return e.slice(t,r)}function dM(e){return e.length}function pM(e,t){return t.push(e),e}var fM=1,hM=1,mM=0,gM=0,bM=0,vM="";function yM(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:fM,column:hM,length:a,return:"",siblings:s}}function xM(){return bM=gM>0?uM(vM,--gM):0,hM--,10===bM&&(hM=1,fM--),bM}function SM(){return bM=gM<mM?uM(vM,gM++):0,hM++,10===bM&&(hM=1,fM++),bM}function CM(){return uM(vM,gM)}function wM(){return gM}function EM(e,t){return cM(vM,e,t)}function RM(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 AM(e){return aM(EM(gM-1,MM(91===e?e+2:40===e?e+1:e)))}function PM(e){for(;(bM=CM())&&bM<33;)SM();return RM(e)>2||RM(bM)>3?"":" "}function kM(e,t){for(;--t&&SM()&&!(bM<48||bM>102||bM>57&&bM<65||bM>70&&bM<97););return EM(e,wM()+(t<6&&32==CM()&&32==SM()))}function MM(e){for(;SM();)switch(bM){case e:return gM;case 34:case 39:34!==e&&39!==e&&MM(bM);break;case 40:41===e&&MM(e);break;case 92:SM()}return gM}function IM(e,t){for(;SM()&&e+bM!==57&&(e+bM!==84||47!==CM()););return"/*"+EM(t,gM-1)+"*"+iM(47===e?e:SM())}function LM(e){for(;!RM(CM());)SM();return EM(e,gM)}function DM(e){return function(e){return vM="",e}(TM("",null,null,null,[""],e=function(e){return fM=hM=1,mM=dM(vM=e),gM=0,[]}(e),0,[0],e))}function TM(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=SM()){case 40:if(108!=h&&58==uM(w,d-1)){-1!=lM(w+=sM(AM(v),"&","&\f"),"&\f",oM(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=AM(v);break;case 9:case 10:case 13:case 32:w+=PM(h);break;case 92:w+=kM(wM()-1,7);continue;case 47:switch(CM()){case 42:case 47:pM(OM(IM(SM(),wM()),t,r,l),l),5!=RM(h||1)&&5!=RM(CM()||1)||!dM(w)||" "===cM(w,-1,void 0)||(w+=" ");break;default:w+="/"}break;case 123*m:s[u++]=dM(w)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=sM(w,/\f/g,"")),f>0&&(dM(w)-d||0===m&&47===h)&&pM(f>32?qM(w+";",n,r,d-1,l):qM(sM(w," ","")+";",n,r,d-2,l),l);break;case 59:w+=";";default:if(pM(C=_M(w,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)TM(w,t,C,C,x,i,d,s,S);else{switch(p){case 99:if(110===uM(w,3))break;case 108:if(97===uM(w,2))break;default:c=0;case 100:case 109:case 115:}c?TM(e,C,C,n&&pM(_M(e,C,C,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):TM(w,C,C,C,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=w="",d=a;break;case 58:d=1+dM(w),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==xM())continue;switch(w+=iM(v),v*m){case 38:b=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(dM(w)-1)*b,b=1;break;case 64:45===CM()&&(w+=AM(SM())),p=CM(),c=d=dM(y=w+=LM(wM())),v++;break;case 45:45===h&&2==dM(w)&&(m=0)}}return i}function _M(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=cM(e,p+1,p=oM(g=a[m])),x=e;v<h;++v)(x=aM(g>0?f[v]+" "+y:sM(y,/&\f/g,f[v])))&&(l[b++]=x);return yM(e,t,r,0===o?rM:s,l,u,c,d)}function OM(e,t,r,n){return yM(e,t,r,tM,iM(bM),cM(e,2,-2),0,n)}function qM(e,t,r,n,o){return yM(e,t,r,nM,cM(e,0,n),cM(e,n+1,-1),n,o)}function NM(e,t,r){switch(e.type){case"@import":case nM:case tM:return e.return=e.return||e.value;case rM:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===tM&&(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),NM);return dM(n)?e.return=e.value+"{"+n+"}":""}function jM(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===rM&&(!e.parent||"@media"===e.parent.type||e.parent.type===rM)){var o=eM.transform(NM(e));e.children=o?DM(o)[0].children:[],e.return=""}}Object.defineProperty(jM,"name",{value:"stylisRTLPlugin"});let zM=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),FM=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}({}),$M=function(e){return e.A="ascending",e.D="descending",e}({}),BM=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const HM=[0,0];function WM(e){return KA(e)}const VM=Hf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),GM=["center","classes","className"];let UM,YM,KM,XM,JM=e=>e;const ZM=pp(UM||(UM=JM`
|
|
124
|
-
0% {
|
|
125
|
-
transform: scale(0);
|
|
126
|
-
opacity: 0.1;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
100% {
|
|
130
|
-
transform: scale(1);
|
|
131
|
-
opacity: 0.3;
|
|
132
|
-
}
|
|
133
|
-
`)),QM=pp(YM||(YM=JM`
|
|
134
|
-
0% {
|
|
135
|
-
opacity: 1;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
100% {
|
|
139
|
-
opacity: 0;
|
|
140
|
-
}
|
|
141
|
-
`)),eI=pp(KM||(KM=JM`
|
|
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
|
-
`)),tI=Xk("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rI=Xk((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]=y.useState(!1),p=zf(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=zf(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),y.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),Il.jsx("span",{className:p,style:f,children:Il.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(XM||(XM=JM`
|
|
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
|
-
`),VM.rippleVisible,ZM,550,(({theme:e})=>e.transitions.easing.easeInOut),VM.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),VM.child,VM.childLeaving,QM,550,(({theme:e})=>e.transitions.easing.easeInOut),VM.childPulsate,eI,(({theme:e})=>e.transitions.easing.easeInOut)),nI=y.forwardRef((function(e,t){const r=WM({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=yr(r,GM),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=Th(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,Il.jsx(rI,{classes:{ripple:zf(o.ripple,VM.ripple),rippleVisible:zf(o.rippleVisible,VM.rippleVisible),ripplePulsate:zf(o.ripplePulsate,VM.ripplePulsate),child:zf(o.child,VM.child),childLeaving:zf(o.childLeaving,VM.childLeaving),childPulsate:zf(o.childPulsate,VM.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.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=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.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 y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Il.jsx(tI,yt({className:zf(VM.root,o.root,i),ref:h},a,{children:Il.jsx(Xg,{component:null,exit:!0,children:s})}))}));function oI(e){return Bf("MuiButtonBase",e)}const iI=Hf("MuiButtonBase",["root","disabled","focusVisible"]),aI=["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"],sI=Xk("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"},[`&.${iI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lI=y.forwardRef((function(e,t){const r=WM({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:x,onKeyUp:S,onMouseDown:C,onMouseLeave:w,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:k=0,TouchRippleProps:M,touchRippleRef:I,type:L}=r,D=yr(r,aI),T=y.useRef(null),_=y.useRef(null),O=Mh(_,I),{isFocusVisibleRef:q,onFocus:N,onBlur:j,ref:z}=Bh(),[F,$]=y.useState(!1);l&&F&&$(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[B,H]=y.useState(!1);y.useEffect((()=>{H(!0)}),[]);const W=B&&!u&&!l;function V(e,t,r=c){return kh((n=>{t&&t(n);return!r&&_.current&&_.current[e](n),!0}))}y.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=kh((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=y.useRef(!1),oe=kh((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(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=kh((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),S&&S(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=Mh(t,z,T),ue=yt({},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=Wh({root:["root",t&&"disabled",r&&"focusVisible"]},oI,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Il.jsxs(sI,yt({as:ae,className:zf(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?Il.jsx(nI,yt({ref:O,center:o},M)):null]}))}));function uI(e){return Bf("MuiIconButton",e)}const cI=Hf("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),dI=["edge","children","className","color","disabled","disableFocusRipple","size"],pI=Xk(lI,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Ip(r.color)}`],r.edge&&t[`edge${Ip(r.edge)}`],t[`size${Ip(r.size)}`]]}})((({theme:e,ownerState:t})=>yt({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})`:oP(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 yt({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&yt({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":yt({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:oP(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)},{[`&.${cI.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),fI=y.forwardRef((function(e,t){const r=WM({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=yr(r,dI),d=yt({},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 Wh({root:["root",r&&"disabled","default"!==n&&`color${Ip(n)}`,o&&`edge${Ip(o)}`,`size${Ip(i)}`]},uI,t)})(d);return Il.jsx(pI,yt({className:zf(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))})),hI=Hf("MuiBox",["root"]),mI=xk(),gI=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=mp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(kA);return y.forwardRef((function(e,a){const s=OA(r),l=zA(e),{className:u,component:c="div"}=l,d=yr(l,$A);return Il.jsx(i,yt({as:c,ref:a,className:zf(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:kR,defaultTheme:mI,defaultClassName:hI.root,generateClassName:Nf.generate}),bI=y.createContext();function vI(e){return Bf("MuiTable",e)}Hf("MuiTable",["root","stickyHeader"]);const yI=["className","component","padding","size","stickyHeader"],xI=Xk("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>yt({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":yt({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),SI="table",CI=y.forwardRef((function(e,t){const r=WM({props:e,name:"MuiTable"}),{className:n,component:o=SI,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=yr(r,yI),u=yt({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Wh({root:["root",r&&"stickyHeader"]},vI,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return Il.jsx(bI.Provider,{value:d,children:Il.jsx(xI,yt({as:o,role:o===SI?null:"table",ref:t,className:zf(c.root,n),ownerState:u},l))})})),wI=y.createContext();function EI(e){return Bf("MuiTableBody",e)}Hf("MuiTableBody",["root"]);const RI=["className","component"],AI=Xk("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),PI={variant:"body"},kI="tbody",MI=y.forwardRef((function(e,t){const r=WM({props:e,name:"MuiTableBody"}),{className:n,component:o=kI}=r,i=yr(r,RI),a=yt({},r,{component:o}),s=(e=>{const{classes:t}=e;return Wh({root:["root"]},EI,t)})(a);return Il.jsx(wI.Provider,{value:PI,children:Il.jsx(AI,yt({className:zf(s.root,n),as:o,ref:t,role:o===kI?null:"rowgroup",ownerState:a},i))})}));function II(e){return Bf("MuiTableCell",e)}const LI=Hf("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),DI=["align","className","component","padding","scope","size","sortDirection","variant"],TI=Xk("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ip(r.size)}`],"normal"!==r.padding&&t[`padding${Ip(r.padding)}`],"inherit"!==r.align&&t[`align${Ip(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>yt({},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?sP(oP(e.palette.divider,1),.88):iP(oP(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",[`&.${LI.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}))),_I=y.forwardRef((function(e,t){const r=WM({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=yr(r,DI),p=y.useContext(bI),f=y.useContext(wI),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=yt({},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}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Wh({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Ip(n)}`,"normal"!==o&&`padding${Ip(o)}`,`size${Ip(i)}`]},II,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Il.jsx(TI,yt({as:m,ref:t,className:zf(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function OI(e){return Bf("MuiTableContainer",e)}Hf("MuiTableContainer",["root"]);const qI=["className","component"],NI=Xk("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),jI=y.forwardRef((function(e,t){const r=WM({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=yr(r,qI),a=yt({},r,{component:o}),s=(e=>{const{classes:t}=e;return Wh({root:["root"]},OI,t)})(a);return Il.jsx(NI,yt({ref:t,as:o,className:zf(s.root,n),ownerState:a},i))}));function zI(e){return Bf("MuiTableHead",e)}Hf("MuiTableHead",["root"]);const FI=["className","component"],$I=Xk("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),BI={variant:"head"},HI="thead",WI=y.forwardRef((function(e,t){const r=WM({props:e,name:"MuiTableHead"}),{className:n,component:o=HI}=r,i=yr(r,FI),a=yt({},r,{component:o}),s=(e=>{const{classes:t}=e;return Wh({root:["root"]},zI,t)})(a);return Il.jsx(wI.Provider,{value:BI,children:Il.jsx($I,yt({as:o,className:zf(s.root,n),ref:t,role:o===HI?null:"rowgroup",ownerState:a},i))})}));function VI(e){return Bf("MuiTableRow",e)}const GI=Hf("MuiTableRow",["root","selected","hover","head","footer"]),UI=["className","component","hover","selected"],YI=Xk("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,[`&.${GI.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${GI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:oP(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}))`:oP(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),KI="tr",XI=y.forwardRef((function(e,t){const r=WM({props:e,name:"MuiTableRow"}),{className:n,component:o=KI,hover:i=!1,selected:a=!1}=r,s=yr(r,UI),l=y.useContext(wI),u=yt({},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 Wh({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},VI,t)})(u);return Il.jsx(YI,yt({as:o,ref:t,className:zf(c.root,n),role:o===KI?null:"row",ownerState:u},s))})),JI=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),ZI=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},QI=(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&&ee(e.localPaletteColors[t].color).blend(ee(s.color),s.t)},eL=(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:JI(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:ZI(n,t,r)})))),n},tL=(e,t,r,n)=>{const o=eL(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=QI(e,a,t);break}n=i}return r})(o,t);return a},rL=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!pE(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||!pE(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)},nL=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=rL(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||!pE(t))return 0;let a=r&&pE(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}},oL=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=nL(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 ZI(o,r.limitPaletteColorIndex,n);const a=JI(r.limitRange,t);return tL(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}},iL={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)"},aL=12,sL=14,lL=16,uL=24,cL=3,dL=300,pL=400,fL=600,hL=700,mL={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function gL(e){return Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Il.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var bL=function({fontSize:e="medium",children:t=null,className:r=""}={}){return Il.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 vL(e={}){return Il.jsx(bL,{...e,children:Il.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Il.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Il.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 yL(e={}){return Il.jsx(bL,{fontSize:"medium",...e,children:Il.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Il.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Il.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 xL(e){return Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Il.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 SL(e={}){return Il.jsx(bL,{...e,children:Il.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Il.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Il.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Il.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function CL(e={}){return Il.jsx(bL,{fontSize:"medium",...e,children:Il.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Il.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Il.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function wL({className:e}){return Il.jsx(bL,{fontSize:"small",className:e,children:Il.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Il.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Il.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Il.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Il.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"}),Il.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 EL(e={}){return Il.jsx(bL,{...e,children:Il.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Il.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Il.jsx("rect",{stroke:iL.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const RL={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:cL,"& > 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 AL=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:iL.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:iL.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Il.jsx(gL,{"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 ${iL.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:iL.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${iL.MISC_FOCUS_BORDER}`,borderRadius:cL,backgroundColor:iL.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 ${iL.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:iL.WHITE,color:iL.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:cL},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${iL.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:iL.GREYSCALE_0_15,backgroundColor:iL.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:iL.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${iL.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:iL.GREEN_PALE},"&:active":{backgroundColor:iL.GREEN_DARK},"&.Mui-focusVisible":{borderColor:iL.GREEN_PALE,boxShadow:`0 0 0 3px ${HA(iL.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:iL.BLUE_PALE},"&:active":{backgroundColor:iL.BLUE_DARK},"&.Mui-focusVisible":{borderColor:iL.BLUE_PALE,boxShadow:`0 0 0 3px ${HA(iL.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:cL,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:iL.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${iL.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:iL.GREYSCALE_0_15,backgroundColor:iL.GREYSCALE_100_60,"&:active":{backgroundColor:iL.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:iL.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${iL.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:iL.PURPLE,"&.Mui-focusVisible":{borderColor:iL.PURPLE,boxShadow:`0 0 0 3px ${HA(iL.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:iL.GREEN,"&.Mui-focusVisible":{borderColor:iL.GREEN,boxShadow:`0 0 0 3px ${HA(iL.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:iL.BLUE,"&.Mui-focusVisible":{borderColor:iL.BLUE,boxShadow:`0 0 0 3px ${HA(iL.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:iL.ORANGE,"&.Mui-focusVisible":{borderColor:iL.ORANGE,boxShadow:`0 0 0 3px ${HA(iL.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:iL.RED,"&.Mui-focusVisible":{borderColor:iL.RED,boxShadow:`0 0 0 3px ${HA(iL.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:iL.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:iL.PURPLE_PALE},"&:active":{backgroundColor:iL.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:iL.PURPLE_PALE,boxShadow:`0 0 0 3px ${HA(iL.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:iL.GREEN_PALE},"&:active":{backgroundColor:iL.GREEN_DARK},"&.Mui-focusVisible":{borderColor:iL.GREEN_PALE,boxShadow:`0 0 0 3px ${HA(iL.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:iL.BLUE_PALE},"&:active":{backgroundColor:iL.BLUE_DARK},"&.Mui-focusVisible":{borderColor:iL.BLUE_PALE,boxShadow:`0 0 0 3px ${HA(iL.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:iL.ORANGE_PALE},"&:active":{backgroundColor:iL.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:iL.ORANGE_PALE,boxShadow:`0 0 0 3px ${HA(iL.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:iL.RED_PALE},"&:active":{backgroundColor:iL.RED_DARK},"&.Mui-focusVisible":{borderColor:iL.RED_PALE,boxShadow:`0 0 0 3px ${HA(iL.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:iL.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:iL.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:cL,boxShadow:`inset 0 0 0 2px ${iL.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Il.jsx(xL,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:aL,borderRadius:cL,color:iL.TEXT_PRIMARY,backgroundColor:iL.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:iL.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${iL.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:iL.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:iL.GREYSCALE_0_05,color:iL.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:iL.GREEN,borderColor:iL.GREEN},"&.MuiChip-outlinedInfo":{color:iL.BLUE,borderColor:iL.BLUE},"&.MuiChip-outlinedWarning":{color:iL.ORANGE,borderColor:iL.ORANGE},"&.MuiChip-outlinedError":{color:iL.RED,borderColor:iL.RED}},outlined:{border:`solid 1px ${iL.GREYSCALE_0_15}`,backgroundColor:iL.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:cL,boxShadow:"none",backgroundColor:iL.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:iL.GREEN,borderColor:iL.GREEN},outlinedSecondary:{color:iL.BLUE,borderColor:iL.BLUE},label:{fontFamily:mL.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Il.jsx(xL,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Il.jsx(gL,{"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:cL},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:cL,fontSize:sL,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:iL.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${iL.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:iL.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:iL.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:iL.GREYSCALE_0_05}}},popupIndicator:{borderRadius:cL,border:`solid 1px ${iL.GREYSCALE_0_15}`,color:iL.GREYSCALE_0_60,marginRight:0,width:uL,height:uL},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${iL.GREYSCALE_0_15}`},clearIndicator:{borderRadius:cL,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:iL.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:sL}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:aL,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:iL.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:iL.GREYSCALE_25,fontSize:aL,fontFamily:mL.FONT_FAMILY,fontWeight:fL,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:iL.TEXT_PRIMARY},"&.Mui-error":{color:iL.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:iL.TEXT_SECONDARY,content:"'(optional)'",fontWeight:pL,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:iL.TEXT_SECONDARY,content:"'(required)'",fontWeight:pL,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:sL,lineHeight:"16px",backgroundColor:iL.WHITE,borderRadius:cL,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iL.GREYSCALE_0_05}`,borderColor:iL.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iL.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${iL.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${iL.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iL.RED}`,boxShadow:`0px 0px 0px 1px ${iL.RED}, inset 0 2px 0 0 ${iL.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iL.GREYSCALE_0_10}`,borderColor:iL.GREYSCALE_0_10,backgroundColor:iL.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:iL.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:iL.GREYSCALE_0_15,borderRadius:cL,boxShadow:`inset 0 2px 0 0 ${iL.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Il.jsx(gL,{...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:iL.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:iL.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:iL.GREYSCALE_0_03},"&:active":{backgroundColor:iL.GREYSCALE_0_10},"&:focus":{backgroundColor:iL.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${iL.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${iL.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:iL.GREYSCALE_0_30,"&:hover":{backgroundColor:iL.GREYSCALE_0_0,borderColor:iL.GREYSCALE_0_15},"& ~svg":{color:iL.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${iL.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:cL}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:iL.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${iL.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:iL.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:sL,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:aL,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:aL,fontWeight:fL,color:iL.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:fL}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${iL.GREYSCALE_0_15}, 0px 0px 0px 1px ${iL.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Il.jsx(CL,{}),checkedIcon:Il.jsx(yL,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:iL.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${iL.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:iL.GREEN_PALE,boxShadow:`0 0 0 3px ${HA(iL.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:iL.BLUE_PALE,boxShadow:`0 0 0 3px ${HA(iL.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:iL.GREYSCALE_0_20}},"&.Mui-disabled":{fill:iL.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Il.jsx(EL,{}),checkedIcon:Il.jsx(vL,{}),indeterminateIcon:Il.jsx(SL,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:cL,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:iL.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:iL.GREYSCALE_0_55,color:iL.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:iL.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:iL.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:iL.GREYSCALE_0_55,"&:hover":{color:iL.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:iL.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:iL.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:sL,color:iL.TEXT_PRIMARY,lineHeight:"16px",fontWeight:fL},secondary:{fontSize:aL,color:iL.GREYSCALE_45,fontWeight:pL,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:sL,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:sL,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:iL.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:aL,borderBottom:`solid 1px ${iL.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:sL,color:iL.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:iL.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:iL.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:iL.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:iL.RED}}},"&.Mui-focusVisible":{backgroundColor:iL.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:iL.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:iL.GREEN,height:"24px","&.Mui-disabled":{color:iL.GREYSCALE_0_15}},rail:{backgroundColor:iL.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${iL.GREYSCALE_0_05}`,borderRadius:cL,boxShadow:`inset 0px 0px 0px 1px ${iL.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${iL.GREYSCALE_0_05}`,borderRadius:cL},thumb:{height:"16px",width:"16px",borderRadius:cL,backgroundColor:iL.WHITE,boxShadow:`0px 1px 2px 0px ${iL.GREYSCALE_0_15}, 0px 0px 0px 1px ${iL.GREYSCALE_0_05}`,"&:hover":{borderRadius:cL,boxShadow:`0 2px 4px 0 ${iL.GREYSCALE_0_30}, 0 0 0 1px ${iL.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${iL.GREYSCALE_0_15}, 0 0 0 1px ${iL.GREYSCALE_0_06}, 0 0 0 2px ${iL.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${iL.GREYSCALE_0_15}, 0 0 0 1px ${iL.GREYSCALE_0_06}, 0 0 0 2px ${iL.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:iL.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:iL.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:iL.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:iL.GREYSCALE_0_15},markLabel:{color:iL.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:iL.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:iL.WHITE,color:iL.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:iL.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:iL.GREEN_PALE,boxShadow:`0 0 0 3px ${HA(iL.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:iL.BLUE_PALE,boxShadow:`0 0 0 3px ${HA(iL.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:iL.GREYSCALE_0_15,borderRadius:cL},thumb:{height:"16px",width:"16px",borderRadius:cL,backgroundColor:iL.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:sL,fontWeight:fL,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${iL.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${iL.MISC_FOCUS_BORDER}`,backgroundColor:iL.GREYSCALE_0_03,borderRadius:cL},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:iL.GREYSCALE_25,"&.Mui-selected":{color:iL.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:sL,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:cL,"&:hover":{backgroundColor:iL.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 ${iL.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${iL.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:cL,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:iL.GREYSCALE_0_05},"&:hover":{backgroundColor:iL.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${iL.GREYSCALE_85}`,borderRight:`1px solid ${iL.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:fL,backgroundColor:iL.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:iL.GREYSCALE_98,borderBottom:`1px solid ${iL.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${iL.GREYSCALE_85}`,borderTop:`1px solid ${iL.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:iL.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:iL.GREYSCALE_0_05,"&:hover":{backgroundColor:iL.GREYSCALE_0_03}},"&&:hover":{backgroundColor:iL.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Il.jsx(wL,{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 ${iL.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:sL,borderRadius:cL,padding:"7px 16px",border:`1px solid ${iL.GREYSCALE_0_15}`,backgroundColor:iL.GREYSCALE_100_60,color:iL.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:iL.GREYSCALE_0_10,border:`1px solid ${iL.GREYSCALE_0_30}`},"&:hover":{backgroundColor:iL.GREYSCALE_0_03,border:`1px solid ${iL.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:iL.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${iL.MISC_FOCUS_BORDER}`,border:`1px solid ${iL.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:iL.GREYSCALE_25,backgroundColor:iL.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:iL.GREYSCALE_0_10,border:`1px solid ${iL.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:aL,height:24,width:24,padding:7},sizeLarge:{fontSize:lL,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:sL,borderRadius:cL}}},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:iL.GREYSCALE_20},tooltip:{backgroundColor:iL.GREYSCALE_20,fontSize:aL,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...RL}:{}}),PL=(e,t)=>AL(t);var kL=()=>({mode:"light",primary:{ultraLight:iL.GREEN_ULTRA_LIGHT,light:iL.GREEN_PALE,main:iL.GREEN,dark:iL.GREEN_DARK,extraDark:iL.GREEN_EXTRA_DARK,contrastText:iL.WHITE},secondary:{ultraLight:iL.BLUE_ULTRA_LIGHT,light:iL.BLUE_PALE,main:iL.BLUE,dark:iL.BLUE_DARK,extraDark:iL.BLUE_EXTRA_DARK,contrastText:iL.WHITE},error:{ultraLight:iL.RED_ULTRA_LIGHT,light:iL.RED_PALE,main:iL.RED,dark:iL.RED_DARK,extraDark:iL.RED_EXTRA_DARK,contrastText:iL.WHITE},warning:{ultraLight:iL.ORANGE_ULTRA_LIGHT,light:iL.ORANGE_PALE,main:iL.ORANGE,dark:iL.ORANGE_DARK,extraDark:iL.ORANGE_EXTRA_DARK,contrastText:iL.WHITE},success:{ultraLight:iL.GREEN_ULTRA_LIGHT,light:iL.GREEN_PALE,main:iL.GREEN,dark:iL.GREEN_DARK,extraDark:iL.GREEN_EXTRA_DARK,contrastText:iL.WHITE},info:{ultraLight:iL.BLUE_ULTRA_LIGHT,light:iL.BLUE_PALE,main:iL.BLUE,dark:iL.BLUE_DARK,extraDark:iL.BLUE_EXTRA_DARK,contrastText:iL.WHITE},text:{primary:iL.TEXT_PRIMARY,secondary:iL.TEXT_SECONDARY,disabled:iL.GREYSCALE_0_30},action:{hover:iL.GREYSCALE_0_03,hoverOpacity:.03,selected:iL.GREYSCALE_0_05,selectedOpacity:.05,focus:iL.MISC_FOCUS_BORDER},amethyst:{ultraLight:iL.WHITE,main:iL.PURPLE,light:iL.PURPLE_PALE,dark:iL.PURPLE_DARK,extraDark:iL.GREYSCALE_0_0,contrastText:iL.WHITE},background:{paper:iL.WHITE,default:iL.GREYSCALE_95},divider:iL.GREYSCALE_0_15});var ML=e=>kL();var IL=(e,t=!1)=>({components:PL(0,t),palette:ML(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:sL,fontWeightLight:dL,fontWeightRegular:pL,fontWeightMedium:fL,fontWeightBold:hL,htmlFontSize:sL,fontFamily:mL.FONT_FAMILY,button:{fontWeight:fL,fontSize:sL,textTransform:"none"},body1:{fontSize:lL,lineHeight:"24px"},body2:{fontSize:sL,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:uL,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:lL,fontWeight:fL,lineHeight:"16px"},h6:{fontSize:sL,fontWeight:fL,lineHeight:"16px"},caption:{color:iL.TEXT_SECONDARY},subtitle1:{fontSize:sL,color:iL.TEXT_SECONDARY},subtitle2:{fontSize:aL,color:iL.TEXT_SECONDARY}},shape:{borderRadius:cL}}),LL={},DL={exports:{}},TL={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}(TL);var _L=TL.exports;!function(e){var t=_L.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}(DL);var OL=DL.exports,qL={},NL=Et(gr);Object.defineProperty(qL,"__esModule",{value:!0}),qL.hexToRgb=FL,qL.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=BL(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(""))},qL.hslToRgb=$L,qL.decomposeColor=BL,qL.recomposeColor=HL,qL.getContrastRatio=function(e,t){var r=WL(e),n=WL(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},qL.getLuminance=WL,qL.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return WL(e)>.5?GL(e,t):UL(e,t)},qL.fade=function(e,t){return VL(e,t)},qL.alpha=VL,qL.darken=GL,qL.lighten=UL;var jL=NL;function zL(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 FL(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 $L(e){var t=(e=BL(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])),HL({type:s,values:l})}function BL(e){if(e.type)return e;if("#"===e.charAt(0))return BL(FL(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,jL.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 HL(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 WL(e){var t="hsl"===(e=BL(e)).type?BL($L(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 VL(e,t){return e=BL(e),t=zL(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,HL(e)}function GL(e,t){if(e=BL(e),t=zL(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 HL(e)}function UL(e,t){if(e=BL(e),t=zL(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 HL(e)}var YL,KL,XL,JL={},ZL={exports:{}},QL={exports:{}},eD={exports:{}};function tD(){return YL||(YL=1,function(e){var t=_L.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}(eD)),eD.exports}function rD(){return KL||(KL=1,function(e){var t=_L.default,r=tD();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(QL)),QL.exports}function nD(){return XL||(XL=1,function(e){var t=rD();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}(ZL)),ZL.exports}var oD,iD={exports:{}};function aD(){return oD||(oD=1,function(e){var t=kk();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}(iD)),iD.exports}var sD,lD={};var uD,cD={};var dD,pD={},fD={};var hD,mD={};var gD,bD={};var vD,yD={};var xD,SD={};var CD,wD={};var ED,RD={};var AD,PD,kD={};function MD(){if(PD)return pD;PD=1;var e=rP;Object.defineProperty(pD,"__esModule",{value:!0}),pD.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},pD.dark=pD.light=void 0;var t=e(Rk()),r=e(aD()),n=NL,o=e(function(){if(dD)return fD;dD=1,Object.defineProperty(fD,"__esModule",{value:!0}),fD.default=void 0;var e={black:"#000",white:"#fff"};return fD.default=e,fD}()),i=e(function(){if(hD)return mD;hD=1,Object.defineProperty(mD,"__esModule",{value:!0}),mD.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 mD.default=e,mD}()),a=e(function(){if(gD)return bD;gD=1,Object.defineProperty(bD,"__esModule",{value:!0}),bD.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 bD.default=e,bD}()),s=e(function(){if(vD)return yD;vD=1,Object.defineProperty(yD,"__esModule",{value:!0}),yD.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 yD.default=e,yD}()),l=e(function(){if(xD)return SD;xD=1,Object.defineProperty(SD,"__esModule",{value:!0}),SD.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 SD.default=e,SD}()),u=e(function(){if(CD)return wD;CD=1,Object.defineProperty(wD,"__esModule",{value:!0}),wD.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 wD.default=e,wD}()),c=e(function(){if(ED)return RD;ED=1,Object.defineProperty(RD,"__esModule",{value:!0}),RD.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 RD.default=e,RD}()),d=e(function(){if(AD)return kD;AD=1,Object.defineProperty(kD,"__esModule",{value:!0}),kD.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 kD.default=e,kD}()),p=qL,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}};pD.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 pD.dark=h,pD}var ID,LD={};var DD,TD={};var _D,OD={};var qD,ND={},jD=Et(ro);var zD,FD={};function $D(){if(zD)return FD;zD=1;var e=rP;Object.defineProperty(FD,"__esModule",{value:!0}),FD.default=FD.duration=FD.easing=void 0;var t=e(aD()),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)"};FD.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")}FD.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 FD.default=i,FD}var BD,HD,WD={};function VD(){if(HD)return JL;HD=1;var e=rP;Object.defineProperty(JL,"__esModule",{value:!0}),JL.createMuiTheme=function(){return p.apply(void 0,arguments)},JL.default=void 0,e(nD());var t=e(aD()),r=NL,n=e(function(){if(sD)return lD;sD=1;var e=rP;Object.defineProperty(lD,"__esModule",{value:!0}),lD.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)},lD.keys=void 0;var t=e(Rk()),r=e(aD()),n=["xs","sm","md","lg","xl"];return lD.keys=n,lD}()),o=e(function(){if(uD)return cD;uD=1;var e=rP;Object.defineProperty(cD,"__esModule",{value:!0}),cD.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(nD()),r=e(Rk());return cD}()),i=e(MD()),a=e(function(){if(ID)return LD;ID=1;var e=rP;Object.defineProperty(LD,"__esModule",{value:!0}),LD.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(Rk()),r=e(aD()),n=NL;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 LD}()),s=e(function(){if(DD)return TD;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(",")}DD=1,Object.defineProperty(TD,"__esModule",{value:!0}),TD.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 TD.default=t,TD}()),l=e(function(){if(_D)return OD;_D=1,Object.defineProperty(OD,"__esModule",{value:!0}),OD.default=void 0;var e={borderRadius:4};return OD.default=e,OD}()),u=e(function(){if(qD)return ND;qD=1,Object.defineProperty(ND,"__esModule",{value:!0}),ND.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=jD;return ND}()),c=e($D()),d=e(function(){if(BD)return WD;BD=1,Object.defineProperty(WD,"__esModule",{value:!0}),WD.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return WD.default=e,WD}());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 JL.default=f,JL}var GD,UD={};var YD,KD={},XD=Et(sl);var JD,ZD,QD={},eT={};function tT(){if(JD)return eT;JD=1;var e=rP;Object.defineProperty(eT,"__esModule",{value:!0}),eT.default=void 0;var t=(0,e(VD()).default)();return eT.default=t,eT}var rT,nT,oT={},iT={};function aT(){if(nT)return oT;nT=1;var e=rP;Object.defineProperty(oT,"__esModule",{value:!0}),oT.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(Rk()),r=NL,n=function(){if(rT)return iT;rT=1;var e=rP;Object.defineProperty(iT,"__esModule",{value:!0}),iT.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},iT.getUnit=r,iT.toUnitless=n,iT.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}},iT.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},iT.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},iT.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(nD());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return iT}();return oT}var sT,lT={};var uT,cT={};var dT,pT={};var fT,hT={};!function(e){var t=rP,r=OL;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=qL;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(VD()),a=t(function(){if(GD)return UD;GD=1;var e=rP;Object.defineProperty(UD,"__esModule",{value:!0}),UD.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=NL,r=e(VD());return UD}()),s=t(function(){if(YD)return KD;YD=1,Object.defineProperty(KD,"__esModule",{value:!0}),KD.default=function(t){return(0,e.createStyles)(t)};var e=XD;return KD}()),l=t(function(){if(ZD)return QD;ZD=1;var e=rP;Object.defineProperty(QD,"__esModule",{value:!0}),QD.default=void 0;var t=e(Rk()),r=XD,n=e(tT()),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 QD.default=o,QD}()),u=t(aT()),c=t(function(){if(sT)return lT;sT=1;var e=rP;Object.defineProperty(lT,"__esModule",{value:!0}),lT.default=void 0;var t=e(Rk()),r=XD,n=e(tT()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return lT.default=o,lT}()),d=$D();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(uT)return cT;uT=1;var e=rP;Object.defineProperty(cT,"__esModule",{value:!0}),cT.default=function(){return(0,t.useTheme)()||r.default};var t=XD;e(x);var r=e(tT());return cT}()),f=t(function(){if(dT)return pT;dT=1;var e=rP;Object.defineProperty(pT,"__esModule",{value:!0}),pT.default=void 0;var t=e(Rk()),r=XD,n=e(tT()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return pT.default=o,pT}()),h=t(function(){if(fT)return hT;fT=1;var e=rP;Object.defineProperty(hT,"__esModule",{value:!0}),hT.default=void 0;var t=XD,r=e(tT()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return hT.default=n,hT}()),m=XD}(LL),LL.alpha(iL.GREYSCALE_0,.05),LL.alpha(iL.GREEN_PALE,.5),LL.alpha(iL.BLUE_PALE,.5),LL.alpha(iL.GREEN_PALE,.5),LL.alpha(iL.BLUE_PALE,.5),LL.alpha(iL.GREEN_PALE,.5),LL.alpha(iL.BLUE_PALE,.5),LL.alpha(iL.GREEN_PALE,.5),LL.alpha(iL.BLUE_PALE,.5),LL.alpha(iL.GREEN_PALE,.5),LL.alpha(iL.BLUE_PALE,.5);const mT=(e="light",t=!1)=>IL(e,t),gT=(mT().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)"),bT=4/3,vT="12px",yT="600",xT="Source Sans Pro, sans-serif",ST={height:"auto",fontSize:vT,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"}},CT={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:yT},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},wT=(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,ET=(e,t)=>e.representation.type===hw.Image&&"fitHeight"===e.representation.imageSize?wT(t,e.representation):e.align,RT=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",AT=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},PT=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,kT=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",MT=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",IT=24,LT=Xk("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),DT=Xk(gI,{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?RT(e,n):void 0}))),TT=Xk(gI,{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},[`& .${uS}`]:{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"},[`& .${uS}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),_T=Xk(gI,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),OT=Xk(gI,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),qT=Xk(fI,{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}))),NT=25e4,jT=(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(mS.PixelsMax,Math.max(mS.PixelsMin,f)),i-=n[a]};switch(s){case gS.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?mS.PixelsDefault:+e)(l),h();break;case gS.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?mS.PercentageDefault:+e)(u)/100*t,h();break;case gS.FitToContent:e.representation?.type===hw.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case gS.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(mS.AutoMinTable,e)}))}return n},zT=(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"]})},FT=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},$T=e=>e.ctrlKey||e.metaKey,BT=e=>e.shiftKey&&$T(e),HT=e=>[fS.Left,fS.Right,fS.Up,fS.Down].includes(e),WT=e=>e.shiftKey&&HT(e.key),VT=e=>(e=>HT(e)||[fS.Home,fS.End,fS.PageUp,fS.PageDown].includes(e))(e.key)&&!BT(e),GT=(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),zT(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})},UT=(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&&WT(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&WT(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===fS.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 zT(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},YT=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}},KT=(e,t)=>{switch(t.type){case FM.Select:return GT(e,t.payload);case FM.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 FM.SelectMouseUp:return((e,t)=>YT(e.isSelectMultiValues||e.firstCell!==t.cell?e:GT(e,t)))(e,t.payload);case FM.SelectMultiAdd:return UT(e,t.payload);case FM.SelectMultiEnd:return YT(e);case FM.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case FM.Clear:return e.rows.size?{...e,rows:new Map}:e;case FM.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},XT=4/3,JT=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function ZT(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const QT=(e,t)=>e?{borderBottomColor:Nx.DARK_MODE_BORDER,borderRightColor:Nx.DARK_MODE_BORDER,borderLeftColor:Nx.DARK_MODE_BORDER,borderTopColor:Nx.DARK_MODE_BORDER}:{borderLeftColor:Nx.BORDER_MEDIUM,borderRightColor:Nx.BORDER_MEDIUM,borderTopColor:Nx.BORDER_HEAVY,borderBottomColor:t?Nx.BORDER_HEAVY:Nx.BORDER_LIGHT},e_=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*XT+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},t_=e=>e.components?.find((e=>"theme"===e.key)),r_=(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:JT(r?.fontColor)?ZT(Nx.TEXT,t,r?.fontColor):i||Nx.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...QT(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function n_(e,t,r){const n=t_(e)?.header,o=r_("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ee(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=Fx(o.background??Nx.WHITE,bS),o.activeBackground=Fx(o.background??Nx.WHITE,vS),o}const o_=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in CT)(e)&&Object.assign(t,CT[e]))),t};function i_(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&&Bx(i);a&&"none"!==a&&(n[r[t]]=a),o=i?o_(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=jx(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const a_=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},s_=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=a_(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},l_=(e,t,r,n=Nx.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=s_(e,t,r);return Ux(i,o,a,n)??n},u_=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return vT}},c_=e=>e?.some((e=>"italic"===e))?"italic":"normal",d_=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?yT:"normal",p_=e=>!1===e?1:3,f_=e=>parseInt(e??ST.fontSize,10)*bT,h_=e=>e?.some((e=>"underline"===e))?"underline":"none",m_=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=t_(t)??{},p=PR(t,o)?Nx.WHITE:Nx.TRANSPARENT,f=l_(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??xT,fontSize:u_(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:c_(i?.fontStyle),fontWeight:d_(i?.fontStyle,yT),textDecoration:h_(i?.fontStyle),color:a_(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??Nx.TEXT,background:f},headerMenuHoverBackground:Fx(f,bS),headerMenuActiveBackground:Fx(f,vS),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??xT,fontSize:u_(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:c_(a?.fontStyle),fontWeight:d_(a?.fontStyle,"normal"),textDecoration:h_(a?.fontStyle),color:a_(n,a?.fontColor)??a_(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??Nx.TEXT,background:s_(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??Nx.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??xT,fontSize:u_(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:c_(s?.fontStyle),fontWeight:d_(s?.fontStyle,"normal"),textDecoration:h_(s?.fontStyle),color:a_(n,s?.fontColor)??a_(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??Nx.TEXT,background:s_(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??Nx.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??xT,fontSize:u_(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:c_(l?.fontStyle),fontWeight:d_(l?.fontStyle,yT),textDecoration:h_(l?.fontStyle),color:a_(n,l?.fontColor)??a_(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??Nx.TEXT,background:l_(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:c_(u?.fontStyle),fontWeight:d_(u?.fontStyle,"normal"),textDecoration:h_(u?.fontStyle),color:a_(n,u?.fontColor)??a_(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??Nx.TEXT,background:a_(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??Nx.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??p_(t.multiline?.wrapTextInCells),headerLineClamp:p_(t.multiline?.wrapTextInHeaders),border:a_(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?Nx.DARK_MODE_BORDER:Nx.BORDER_MEDIUM),divider:a_(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??Nx.BORDER_HEAVY,hoverColors:{color:a_(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:a_(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:a_(n,c?.zebraStripes?.color?.odd),background:a_(n,c?.zebraStripes?.background?.odd)},even:{color:a_(n,c?.zebraStripes?.color?.even),background:a_(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===a_(n,u?.background),overrideNullValueColor:void 0===a_(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:zx(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(f_(e.header.fontSize)+8,32),r=f_(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(f_(e.dimension.values.fontSize),f_(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},g_=(e,t,r,n)=>{const o=w((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=t_(e)?.content,i=r_("content",t,o);i.background=t.background.color;const a=e_(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=JT(l)||!!c,p=JT(s)||!!u,f=d||p;let h;h=JT(s)?ZT(Nx.HOVER,t,s):u||(d?"":Nx.HOVER);const m=f?ZT(jx(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=n_(e,t,!o),s=function(e,t,r){const n=t_(e)?.content,o=r_("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=n_(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},b_=new Map;const v_=I({}),y_=function(e){const t=I([()=>{},new Set]);return b_.set(e,t),({children:r,value:n})=>{const o=L(n),i=L(new Set);E((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=D((()=>o.current),[o]),s=w((()=>[a,i.current]),[a]);return Il.jsx(e.Provider,{value:n,children:Il.jsx(t.Provider,{value:s,children:r})})}}(v_),x_={rows:[],columns:[],totalsPosition:{}},S_=({app:e,children:t,tableData:r=x_,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,setPage:m,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:E})=>{const[R,A]=C(0),[P,k]=C(o||HM),[I,L]=((e,t)=>{const[r,n]=M(KT,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[D,T]=C(-1),_=g_(i,u,r,d),O=((e,t,r,n,o)=>w((()=>m_(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=eS({...n.header,fontWeight:yT},{maxNbrLinesOfText:3}).measureText,s=eS({...n.totalRow,fontWeight:yT},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=eS(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:u}=eS(n.measure.values,{maxNbrLinesOfText:3}),c=w((()=>(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+=IT),t+=IT,t+=IT,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]=C(0),[f,h]=C(!1),[m,g]=C((()=>jT(e,r,c)));oS((()=>{g(jT(e,r-d,c)),h(!1)}),[e,r,d,c]);const b=w((()=>((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=w((()=>({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:E,downloadService:x})),[e,n,i,a,s,l,u,c.active,d,p,f,h,v,y,O,E,x]);return Il.jsx(y_,{value:{headRowHeight:R,setHeadRowHeight:A,focusedCellCoord:P,setFocusedCellCoord:k,selectionState:I,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 C_(e,t){const r=function(e){return b_.get(e)}(e),[n,o]=S(r),[,i]=M((e=>e+1),0),a=L(t),s=L(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=w((()=>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 w_(e){const t=mT();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),xk({...t,direction:e})}const E_={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},R_={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},A_=kg("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":{...E_},"&::-moz-range-track":{...E_},"&::-ms-track":{...E_},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...R_},"&::-moz-range-thumb":{...R_},"&::-ms-thumb":{...R_},"&: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"}}))),P_=({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=aS({translator:c.translator}),f=L({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}};oS((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,mS.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:gS.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=>{Wx(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=>{Wx(e),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===fS.Left||e.key===fS.Right){Wx(e);const t=5,r=e.key===fS.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===fS.Space||e.key===fS.Enter?(Wx(e),s(e),l?.(!1),x()):e.key===fS.Esc&&(Wx(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return Il.jsx(A_,{style:b,hoverColor:o,isLastColumn:r,className:hS,"data-testid":hS,onMouseDown:e=>{Wx(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",C),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:gS.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Wx(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":mS.PixelsMin,"aria-valuemax":mS.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},k_=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),M_=({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},I_=kg(cv,{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"}))),L_=kg(k_,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),D_=kg(Vy)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),T_=kg(Bv)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),__=kg(Xy)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),O_=kg(Xy,{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"}))),q_=kg("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"}))),N_=kg("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),j_=kg(Ab)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),z_=kg(vy,{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}))),F_=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),$_=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?$_(t):t:e.parentElement?.children?.[0]},B_=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?B_(t):t},H_=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===fS.Down||t===fS.Up){const r=e=>t===fS.Down?$_(e):B_(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},W_=(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 V_={};const G_=({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]=C(!1),f=x.useRef(null),h=D((e=>{e.stopPropagation(),p(!1)}),[p]);return Il.jsxs(Il.Fragment,{children:[Il.jsxs(O_,{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),V_={}),a?.length&&(p(!0),V_[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:H_,children:[l?Il.jsx(q_,{direction:u,isPagination:c}):null,Il.jsxs(N_,{children:[Il.jsx(z_,{direction:u,isPagination:c,children:Il.jsx(o,{})}),Il.jsx(j_,{variant:"body2",children:n})]}),a?.length?Il.jsx(F_,{}):null]},t),a?.length?Il.jsx(X_,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:W_(a,V_),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},U_=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&Il.jsx(__,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>Il.jsx(G_,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),Y_=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[U_({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?Il.jsx(T_,{"data-testid":"group-divider",variant:"middle"}):void 0])),K_={appear:0,enter:0,exit:0},X_=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?Il.jsx(D_,{className:cS,open:t,anchorEl:e,onClose:r,transitionDuration:K_,MenuListProps:{id:dS},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:Y_({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,J_=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>D((()=>{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]),Z_=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),Q_=(e,t)=>e.some((e=>t[e]>0)),eO={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},tO=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=C(null),[a,s]=C(eO);return oS((()=>{e||(s(eO),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=Z_(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:Q_(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Q_(["qSelected"],e),canSelectPossible:Q_(["qOption"],e),canSelectAlternative:Q_(["qAlternative"],e),canSelectExcluded:Q_(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},rO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),nO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),oO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),iO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),aO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),sO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),lO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),uO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),cO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),dO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),pO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),fO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),hO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),mO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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 gO=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const bO="/qListObjectDef",vO=({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[gO.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:rO,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:iO,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:uO,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:aO,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[gO.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:cO,enabled:!0}]}]),!e.isLocked&&r[gO.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:mO,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(bO))},icon:dO,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(bO))},icon:hO,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(bO))},icon:pO,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(bO))},icon:fO,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(bO))},icon:nO,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:lO,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:sO,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[gO.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:oO,enabled:!0}]}]),f},yO=({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=sS})=>{const v=L(null),y=aS({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:C}=n,w=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=tO({open:e,headerData:n,app:w,qStateName:c?.qStateName}),A=M_({model:f,headerData:n}),P=J_({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),k=D((e=>{e.stopPropagation(),t(!1)}),[t]),M=D((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?Il.jsxs(I_,{rightAligned:"right"===C,shouldShowMenuIcon:s,className:uS,onClick:!1===g?M:void 0,ref:v,isAccessibleHeader:g,children:[s?Il.jsx(L_,{height:b,className:lS,"data-testid":lS,isInteractionsActive:i.active??!1,children:Il.jsx(k_,{})}):null,Il.jsx(X_,{open:e,anchorEl:!1===g?v.current:r.current,onClose:k,menuGroups:vO({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},xO=e=>e.isDark?{background:e.color,borderColor:Nx.DARK_MODE_BORDER,color:Nx.DARK_MODE_TEXT,disabledColor:Nx.DARK_MODE_DISABLED,iconColor:Nx.DARK_MODE_TEXT}:{background:e.color,borderColor:Nx.BORDER_MEDIUM,color:Nx.TEXT,disabledColor:Nx.DISABLED},SO=kg(cv,{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}`}))),CO=kg(Ix,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),wO=kg(xv,{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)}))),EO=kg(Ab)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),RO=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=w((()=>xO(n.background)),[n]);if(!r.active)return null;const a=o?Il.jsx(SO,{footerStyle:i,children:e}):null;return t?F.createPortal(e,t):a},AO=I({}),PO=()=>S(AO),kO=({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=w((()=>xO(p.background)),[p]),v=o?o.getBoundingClientRect().width:h.width,y=aS({translator:d}),x=w((()=>({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 Il.jsx(AO.Provider,{value:x,children:e})};let MO=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),IO=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 LO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),DO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),TO=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),_O={FirstPage:DO,PreviousPage:LO,NextPage:F_,LastPage:TO,FirstPageRTL:TO,PreviousPageRTL:F_,NextPageRTL:LO,LastPageRTL:DO},OO=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=PO(),u=r.concat("rtl"===n?"RTL":""),c=_O[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}},qO=()=>{const{pageInfo:e,width:t,interactions:r}=PO(),n=0===e.page,{IconComponent:o,styledProps:i}=OO({type:MO.FirstPage,disabledCondition:n,pageNumber:0});return t<=IO.FirstPage?null:Il.jsx(wO,{...i,disabled:!r.active,children:Il.jsx(o,{height:sS})})},NO=(e,t,r=!1)=>{r&&e.key===fS.Tab&&!e.shiftKey&&(Wx(e),Hx(e.target,t,!1))},jO=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=PO(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=OO({type:MO.LastPage,disabledCondition:a,pageNumber:r-1}),u=t.enabled?e=>{NO(e,t,n)}:void 0;return o<=IO.LastPage?null:Il.jsx(wO,{...l,onKeyDown:u,disabled:!i.active,children:Il.jsx(s,{height:sS})})},zO=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=PO(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=OO({type:MO.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>IO.FirstPage&&o>IO.LastPage)&&t.enabled?e=>{NO(e,t,n)}:void 0;return Il.jsx(wO,{...l,onKeyDown:u,disabled:!i.active,children:Il.jsx(s,{height:sS})})},FO=()=>{const{pageInfo:e,interactions:t}=PO(),r=0===e.page,{IconComponent:n,styledProps:o}=OO({type:MO.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return Il.jsx(wO,{...o,disabled:!t.active,children:Il.jsx(n,{height:sS})})},$O=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=PO(),{page:o,rowsPerPage:i}=r;if(t<=IO.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return Il.jsx(EO,{variant:"caption",dir:"ltr",children:a})},BO=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=PO(),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 Il.jsxs(Il.Fragment,{children:[Il.jsxs(EO,{variant:"caption",id:p,children:[c,":"]}),Il.jsx(CO,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},HO=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o}=PO();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>IO.RowsPerPage&&r<=100)||void 0===e.rowsPerPageOptions)return null;const i=Il.jsx(Il.Fragment,{children:e.rowsPerPageOptions.map((e=>Il.jsx("option",{value:e,children:e},e)))});return Il.jsx(BO,{name:"RowsPerPage",value:e.rowsPerPage,options:i,handleChange:e=>{o?.(+e.target.value)}})},WO=1e3,VO="…",GO=({totalPages:e,page:t})=>{const r=Math.min(e,WO),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-WO):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return Il.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(Il.jsx("option",{value:VO,disabled:!0,children:VO},"startMoreOptions")),o<e-1&&a.push(Il.jsx("option",{value:VO,disabled:!0,children:VO},"endMoreOptions")),Il.jsx(Il.Fragment,{children:a})},UO=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=PO(),{page:o}=e;if(t<=IO.SelectPage)return null;const i=Il.jsx(GO,{totalPages:r,page:o});return Il.jsx(BO,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var YO=_((e=>Il.jsxs(kO,{...e,children:[Il.jsx(HO,{}),Il.jsx(UO,{}),Il.jsx($O,{}),Il.jsx(qO,{}),Il.jsx(FO,{}),Il.jsx(zO,{}),Il.jsx(jO,{})]})));const KO=e=>Il.jsx(RO,{...e,children:Il.jsx(YO,{...e})}),XO={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},JO=Xk(gI,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),ZO=Xk("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?{...XO,whiteSpace:"nowrap",display:r?"block":void 0}:{...XO,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}));function QO(e,t){const r=L(!1);E((()=>{r.current?e():r.current=!0}),t)}const eq=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),tq=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),rq=e=>e.atTop?2:1,nq=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],oq=e=>e?.setAttribute("tabIndex","0"),iq=e=>e?.setAttribute("tabIndex","-1"),aq=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(iq)},sq=e=>{e?.focus(),oq(e)},lq=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${hS}`);sq(t)}),0)},uq=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{aq(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 fS.Down:u<s&&u++;break;case fS.Up:u>a&&u--;break;case fS.Right:if(i)break;[u,c]="rtl"===n?eq({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):tq({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case fS.Left:if(i)break;[u,c]="rtl"===n?tq({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):eq({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case fS.Home:($T(e)||i)&&(u=a),i||(c=0);break;case fS.End:($T(e)||i)&&(u=s),i||(c=l);break;case fS.PageDown:u=Math.min(s,u+10);break;case fS.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=nq(t,a);return sq(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}},cq=(e,t,r,n)=>{aq(t),r(e),n.enabled&&!n.active?n.focus?.():sq(nq(t,e))},dq=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${cS}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${BM.First}`),r=e.querySelector(`.${BM.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},pq=()=>{const{downloadService:e}=C_(v_,(e=>e.baseProps));E((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},fq=(e,t,r)=>{const{rootElement:n,keyboard:o}=C_(v_,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=C_(v_,(e=>e.tableData)),u=C_(v_,(e=>e.focusedCellCoord)),c=C_(v_,(e=>e.setFocusedCellCoord)),d=C_(v_,(e=>e.baseProps.selectionsAPI?.isModal()));QO((()=>{const r=((e,t,r=!1)=>{const n=[rq(t),e[1]];return r?n:HM})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(aq(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=nq(t,e);r.current?(sq(s),r.current=!1):oq(s),n&&(a({keys:[s?.textContent??""]}),FT(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},hq=(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])},mq=e=>{Wx(e),$T(e)&&CS(e.currentTarget)},gq=e=>{VT(e.evt)&&(Wx(e.evt),uq(e))},bq=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!VT(t))return;Wx(t);const i=((e,t)=>[e.pageRowIdx+rq(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?rq(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=uq({...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:FM.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):FT(o,a,i)})({...e,nextCell:s})},vq=e=>{const{evt:t}=e;BT(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{Wx(e);const a=Math.ceil(t/r)-1;e.key===fS.Right&&n<a?(o(),i(n+1)):e.key===fS.Left&&n>0&&(o(),i(n-1))})(e):t.key===fS.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(Wx(e),t.blur?.(!0))})(e):HT(t.key)&&Wx(t)},yq=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(zM.Disabled))return void Wx(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case fS.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{Wx(e),t.isSelectable&&r&&n({type:FM.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case fS.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{Wx(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case fS.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(Wx(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case fS.C:mq(t);break;case fS.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(Wx(e),Hx(e.currentTarget,t,e.shiftKey))})(n);break;default:bq(n)}},xq=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,Sq=(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])},Cq=e=>{const[t,r]=C(0),[n,o]=C(0),i=C_(v_,(e=>e.isAdjustingWidth)),a=D((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 Sq(e,a),{xScrollbarWidth:t,yScrollbarWidth:n}},wq=Xk("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),Eq=Xk(jI,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),Rq=Xk(CI,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),Aq=()=>Il.jsxs(Il.Fragment,{children:[Il.jsx(wq,{className:BM.First,"data-testid":BM.First,"aria-live":"polite","aria-atomic":"true"}),Il.jsx(wq,{className:BM.Second,"data-testid":BM.Second,"aria-live":"polite","aria-atomic":"true"})]}),Pq=e=>{const t=L(new Map),r=L(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=D(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=D((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return w((()=>({addTask:n,removeTask:o})),[n,o])},kq=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),Mq=()=>Pq(kq),Iq=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{E((()=>{const i=()=>{t({type:FM.Reset})},a=()=>{t({type:FM.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])},Lq=e=>{e.stopPropagation()},Dq=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:Lq,color:Nx.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),Tq=({href:e,text:t,interactions:r,color:n})=>Il.jsx(ly,{...Dq({href:e,text:t,interactions:r,color:n}),children:t}),_q=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),Oq=window.cancelIdleCallback??(e=>{clearTimeout(e)}),qq="qDimensionInfo/0",Nq="qMeasureInfo/0",jq="x",zq="y",Fq=e=>({key:"bars",type:"box",data:{extract:{field:qq,props:{start:0,end:{field:Nq}}}},settings:{major:{scale:jq},minor:{scale:zq},box:{maxWidthPx:8,fill:{fn:e}}}}),$q=e=>({key:"p",type:"point",data:{extract:{field:qq,props:{y:{field:Nq}}}},settings:{x:{scale:jq},y:{scale:zq},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),Bq=({qNum:e})=>void 0===e?0:Math.sign(e),Hq=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=$x(e,t?.negative,r),a=$x(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:qq,props:{start:0,end:{field:Nq,value:Bq}}}},settings:{major:{scale:jq},minor:{scale:zq},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}}}}},Wq=(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=$x(e,t?.main,o),l=$x(e,t?.max,s),u=$x(e,t?.min,s),c=$x(e,t?.first,s),d=$x(e,t?.last,s);return e=>{const t=zq in e.datum?zq:"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[Fq(a)];case"dots":return[$q(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:qq,props:{v:{field:Nq}}}},settings:{coordinates:{major:{scale:jq},minor:{scale:zq,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))($x(e,n?.main,e.getDataColorSpecials().primary));return r?[t,$q(a)]:[t]}case"posNeg":return[Hq(e,n)];default:return[]}},Vq=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"}),Gq=(e,t,r,n)=>({y:{data:{field:Nq},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:qq}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),Uq=B();Uq.use($),Uq.renderer.prio(["canvas"]);const Yq={resolve:()=>{},promise:{}},Kq=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=L(e.isDownloadedAsPDForImage?ht():Yq);return{addChartPromiseToQueue:D((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:D((()=>{if(null===t.current||null!==e.current)return;u();r.current=_q((()=>{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 Uq.chart({element:e,data:{type:"q",key:"qHyperCube",data:Vq(s)},settings:{scales:Gq(a,l,u,i),components:Wq(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:D((()=>{null!==r.current&&Oq(r.current),r.current=null,l()}),[r,l])}},Xq=e=>{const t=L(null),r=L(!1);return D((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(Oq(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=_q((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},Jq=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=L(null),l=L(null),u=L(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=Kq({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=D((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=Xq(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},Zq=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=Jq({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return Il.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},Qq="cell-text",eN=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=C_(v_,(e=>e.baseProps));return o?Il.jsx(ZO,{"data-testid":Qq,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):Il.jsx(ZO,{"data-testid":Qq,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},tN=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}`},rN=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},nN=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=C_(v_,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=Il.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:rN(s),objectPosition:tN(l),overflow:"hidden"}});return n?Il.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?wT(o,e):void 0},children:c}):c},oN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),iN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),aN=T(((e,t)=>Il.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:[Il.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"}),Il.jsx("use",{fillRule:"evenodd"})]}))),sN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),lN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),uN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),cN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.jsx("path",{d:"M2 7h12v2H2z"})}))),dN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),pN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),fN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),hN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),mN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),gN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),bN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),vN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),yN={m:mN,"ï":fN,R:T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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:gN,T:bN,U:vN,P:pN,Q:uN,"è":T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),"¢":sN,"©":aN,"23F4":lN,2013:hN,"&":dN,add:oN,"minus-2":cN,dot:iN},xN=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&yN[t];return o&&Il.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:Il.jsx(o,{style:{height:e}})})},SN=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=C_(v_,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=oL(e,t,i,o),d=(e=>parseInt(e||vT,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?Il.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&&xN({size:d,iconKey:f,color:p}),Il.jsx(eN,{isNumeric:!0,children:a}),"right"===h&&xN({size:d,iconKey:f,color:p})]}):xN({size:d,iconKey:f,color:p})},CN=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,wN=({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}=C_(v_,(e=>e.baseProps)),h=C_(v_,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==hw.Link||h||(m=Il.jsx(Tq,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===hw.Image)return Il.jsx(nN,{representation:t.representation,textStyle:r,maxImageHeight:CN(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!==hw.Indicator||Number.isNaN(g)?t.representation.type===hw.MiniChart&&t.representation.miniChart&&!t.isNull?Il.jsx(Zq,{height:CN(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):Il.jsx(eN,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):Il.jsx(SN,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},EN=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:FM.SelectMultiEnd})};r({type:FM.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:FM.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:FM.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),RN=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=C_(v_,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=C_(v_,(e=>e.baseProps)),u=C_(v_,(e=>e.setFocusedCellCoord)),c=C_(v_,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{yq({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===fS.Shift&&t({type:FM.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;cq([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}=EN(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},AN=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=zM.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?zM.Disabled:n.has(e.qElemNumber)?zM.Selected:zM.Possible),i},PN=(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},kN=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},MN=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return kN(t,e,n?"even":"odd")}return e},IN=(e,t)=>{const{styleService:r}=C_(v_,(e=>e.baseProps)),n=C_(v_,(t=>AN(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=MN(o,r,e),o=PN(o,r,e);const i=i_(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===zM.Selected?{...e,...r}:t===zM.Disabled?{...e,background:`${gT}, ${e.background}`}:e}(w((()=>e.isNull?o:i_(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}},LN=Xk(MI,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),DN=Xk(XI,{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}}}))),TN=Xk(_I,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...ST,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),_N=Xk(_I,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...ST,...e,fontWeight:yT,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}))),ON=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=C_(v_,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=RN(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=IN(e,r);return Il.jsx(TN,{cellStyle:f,scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${m} ${pS}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:Il.jsx(wN,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:PT(s,e.align)})})},qN=(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}),NN=()=>{const{columns:e,totalsPosition:t,rows:r}=C_(v_,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:s,direction:l}=C_(v_,(e=>e.baseProps)),u=C_(v_,(e=>e.headRowHeight)),c=C_(v_,(e=>e.setFocusedCellCoord)),d=!!o?.isModal(),p=!!s.active;return Il.jsx(XI,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return Il.jsx(_N,{totalsStyle:{...a.totalRow,...qN(a,t,!1)},headRowHeight:u,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${pS}`,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 fS.C:mq(r);break;case fS.Space:r.preventDefault();break;default:gq(e)}else Wx(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:l})},onMouseDown:()=>{cq(f,n,c,i)},children:Il.jsx(eN,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var jN=_(NN);const zN=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=C_(v_,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=C_(v_,(e=>e.baseProps)),c=C_(v_,(e=>e.selectionDispatch)),d=!!t_(l)?.content?.hoverEffect;Iq({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=D((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return Pq(t)})(t),f=Mq();return Il.jsxs(LN,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?Il.jsx(jN,{}):void 0,n.map(((e,t)=>Il.jsx(DN,{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 Il.jsx(ON,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?Il.jsx(jN,{}):void 0]})};var FN=_(zN);const $N=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,BN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),HN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),WN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),VN=Xk(_I,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...ST,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),GN=Xk("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:vT,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),UN=parseInt(vT,10)/2,YN=Xk("div")({position:"absolute",bottom:-UN,left:`calc(50% - ${UN}px)`}),KN=({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}=C_(v_,(e=>e.baseProps)),h=C_(v_,(t=>t.columnWidths[e.pageColIdx])),m=C_(v_,(e=>e.baseProps.model)),g=L(null),b=L(null),v=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=eS({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:yT});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?Il.jsx(BN,{height:vT,"data-testid":"head-cell-sort-ascending-icon"}):Il.jsx(HN,{height:vT,"data-testid":"head-cell-sort-descending-icon"}),a=r?Il.jsx(GN,{align:t,dir:o,children:i}):void 0,s=n?Il.jsx(_T,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Il.jsx(WN,{height:vT,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(e,v,f);return Il.jsxs(TT,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:AT(e,o,f),children:[S,Il.jsxs(DT,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:f,isPagination:o,children:[y,Il.jsx(eN,{forwardRef:i,isPagination:o,isHeadCell:!0,children:e.label}),x]}),t?Il.jsxs(Il.Fragment,{children:[Il.jsx(yO,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:a,anchorRef:g,menuAvailabilityFlags:{[gO.Sorting]:!0,[gO.Searching]:!0,[gO.Selections]:!0,[gO.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:lq},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:f,isPagination:o,isAccessibleHeader:!0}),Il.jsx(LT,{ref:b,direction:f,isPagination:o}),Il.jsx(LT,{ref:g,direction:f})]}):null]})},XN=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=C_(v_,(e=>e.baseProps)),c=C_(v_,(e=>e.columnWidths)),d=C_(v_,(e=>e.setColumnWidths));if(!s.active)return null;return Il.jsx(P_,{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=>{iq(e);const t=e.closest(".sn-table-cell");sq(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},JN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),ZN=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),QN=(e,t)=>e.isCyclic&&t,ej=({column:e})=>{const{direction:t,model:r,styleService:n}=C_(v_,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=M_({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return Il.jsxs(Il.Fragment,{children:[Il.jsx(qT,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,onClick:e=>{e.stopPropagation(),a(!0)},children:Il.jsx(JN,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),Il.jsx(X_,{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:ZN,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},tj=e=>e.isLocked,rj=({column:e})=>{const t=C_(v_,(e=>e.baseProps.app)),r=C_(v_,(e=>e.baseProps.layout.qStateName)),n=C_(v_,(e=>e.baseProps.styleService));return Il.jsx(qT,{hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=Z_(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:Il.jsx(WN,{height:16,"data-testid":"head-cell-lock-icon"})})},nj=({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}=C_(v_,(e=>e.baseProps)),p=C_(v_,(e=>e.baseProps.model)),f=x.useRef(null),h=x.useRef(null);return Il.jsxs(qT,{hoverBackground:d.headerMenuHoverBackground,activeBackground:d.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[Il.jsx(yO,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:o,anchorRef:f,menuAvailabilityFlags:{[gO.Sorting]:!0,[gO.Searching]:!0,[gO.Selections]:!0,[gO.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:lq},shouldShowMenuIcon:!0,model:p,direction:l,isPagination:n,isAccessibleHeader:!1,iconSize:16}),Il.jsx(LT,{ref:h,direction:l,isPagination:n}),Il.jsx(LT,{ref:f,direction:l})]})},oj=Xk(gI)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),ij=({children:e})=>{const t=x.useRef(null),[r,n]=C((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=w((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=D((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 Sq(t,i),Il.jsx(oj,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})};ij.Item=({children:e})=>e;const aj=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),sj=(e,t)=>!e.isLocked&&e.isDim&&t,lj=({column:e,open:t,setOpen:r})=>{const{embed:n,app:o,direction:i,layout:a,styleService:s}=C_(v_,(e=>e.baseProps)),l=x.useRef(null),u=D((()=>{r(!1)}),[r]),c=J_({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:l},selectionRelatedArgs:{qStateName:a.qStateName},direction:i,onPopoverClose:u});return Il.jsx(qT,{hoverBackground:s.headerMenuHoverBackground,activeBackground:s.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:Il.jsx(aj,{ref:l,height:16,"data-testid":"head-cell-search-icon"})})},uj=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),cj=T(((e,t)=>Il.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Il.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"})}))),dj=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?Il.jsx(cj,{height:vT,"data-testid":"head-cell-sort-ascending-icon"}):Il.jsx(uj,{height:vT,"data-testid":"head-cell-sort-descending-icon"});return r?Il.jsx(YN,{children:n}):void 0},pj=0,fj=1,hj=2,mj=3,gj=({column:e,open:t,setOpen:r,isPagination:n,forwardRef:o})=>{const{styleService:i}=C_(v_,(e=>e.baseProps)),a=(()=>{const e=C_(v_,(e=>e.baseProps.interactions.active)),t=C_(v_,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:s}=eS(i.header),[l,u]=x.useState(!1);return Il.jsxs(ij,{children:[Il.jsx(ij.Item,{prio:hj,minWidth:IT,children:tj(e)?Il.jsx(rj,{column:e}):null},"Lock"),Il.jsx(ij.Item,{prio:fj,minWidth:IT,children:QN(e,a)?Il.jsx(ej,{column:e}):null},"Cyclic"),Il.jsx(ij.Item,{ignore:!0,children:Il.jsx(dj,{column:e})},"Sort"),Il.jsx(ij.Item,{minWidth:s(e.label)+8,children:Il.jsx(OT,{justifyContent:e.headTextAlign,children:Il.jsx(eN,{forwardRef:o,isPagination:n,isHeadCell:!0,children:e.label})})},"Text"),Il.jsx(ij.Item,{prio:pj,minWidth:IT,children:l||sj(e,a)?Il.jsx(lj,{open:l,setOpen:u,column:e}):null},"Search"),Il.jsx(ij.Item,{prio:mj,minWidth:IT,children:a?Il.jsx(nj,{column:e,open:t,setOpen:r,isPagination:n}):null},"Menu")]})},bj=()=>{const{flags:e}=C_(v_,(e=>e.env)),t=C_(v_,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},vj=e=>e.target?.getAttribute("class")?.includes(hS),yj=({isInteractionEnabled:e,column:t})=>{const[r,n]=C(!1),{changeSortOrder:o}=C_(v_,(e=>e.baseProps)),i=C_(v_,(e=>e.isAdjustingWidth)),a=C_(v_,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||vj(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!vj(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}},xj=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=C_(v_,(e=>e.baseProps)),{columns:l,totalsPosition:u}=C_(v_,(e=>e.tableData)),c=C_(v_,(e=>e.columnWidths[t])),d=C_(v_,(e=>e.baseProps.selectionsAPI?.isModal())),p=C_(v_,(e=>e.setFocusedCellCoord)),f=C_(v_,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=yj({isInteractionEnabled:h,column:e}),x=bj(),S=x?KN:gj,C=e.isActivelySorted?$M[e.sortDirection]:void 0,w=m?dS: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 Il.jsxs(VN,{headerStyle:{...a.header,...qN(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 ${pS}`,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 fS.C:mq(r);break;case fS.Enter:case fS.Space:n?.(r);break;default:gq(e)}else Wx(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&&cq(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:[Il.jsx(S,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),Il.jsx(XN,{column:e,isLastColumn:R,setIsAdjustingWidth:v})]},e.id)},Sj=()=>{const{columns:e}=C_(v_,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=C_(v_,(e=>e.baseProps)),o=C_(v_,(e=>e.setHeadRowHeight)),i=C_(v_,(e=>e.columnWidths)),a=L(null),s=$N(r,n);return E((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),Il.jsx(WI,{style:{visibility:s?"collapse":void 0},children:Il.jsx(XI,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>Il.jsx(xj,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var Cj=_(Sj);const wj=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}=C_(v_,(e=>e.tableData)),{rootElement:f,keyboard:h,translator:m,theme:g,interactions:b,styleService:v,viewService:y,layout:x,rect:S,direction:C}=C_(v_,(e=>e.baseProps)),w=C_(v_,(e=>e.setYScrollbarWidth)),R=C_(v_,(e=>e.showRightBorder)),A=C_(v_,(e=>e.selectionDispatch)),P=C_(v_,(e=>e.baseProps.selectionsAPI?.isModal())),k=L(!1),M=L(null),I=L(null),{yScrollbarWidth:T}=Cq(M),_=`${m.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${m.get("SNTable.Accessibility.NavigationInstructions")}`,O=AR(x,y),q=O?y.scrollLeft??0:0,N=O?y.rowPartialHeight??0:0,j=D((()=>{k.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),z=D((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),F=D((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return hq(M,C,y),((e,t)=>{const{keyboard:r}=C_(v_,(e=>e.baseProps));E((()=>{const n=e.current;if(!n)return;const o=e=>{dq(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(I,k),(()=>{const{rootElement:e,keyboard:t}=C_(v_,(e=>e.baseProps)),r=C_(v_,(e=>e.focusedCellCoord));oS((()=>{const n=nq(e,r);t.active?sq(n):(n?.blur(),aq(e))}),[t.active,e])})(),fq(k,o,i),E((()=>{const e=M.current;e&&(e.scrollLeft=q,e.scrollTop=N)}),[t,l,q,N]),QO((()=>{w(T)}),[T]),QO((()=>{A({type:FM.UpdatePageRows,payload:{pageRows:d}})}),[d]),pq(),Il.jsxs(JO,{ref:I,background:g.background,dir:C,onKeyDown:e=>{vq({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:z,updateShouldRefocus:j,keyboard:h,isSelectionMode:P})},"data-testid":"sn-table",children:[Il.jsx(Aq,{}),Il.jsx(Eq,{ref:M,className:"sn-table-container",fullHeight:!!n||!b.active||!c,interactions:b,tabIndex:-1,role:"application","data-testid":"table-container",children:Il.jsxs(Rq,{stickyHeader:!0,"aria-label":_,borderRight:R?`1px solid ${v.grid.border}`:void 0,children:[Il.jsx(Cj,{}),Il.jsx(FN,{...e,updateShouldRefocus:j,tableWrapperRef:I})]})}),Il.jsx(KO,{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 Ej=_(wj),Rj=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Aj(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||Rj(n)&&Rj(o)))return!1;var n,o;return!0}function Pj(e,t){var r;void 0===t&&(t=Aj);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 kj="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Mj(e){cancelAnimationFrame(e.id)}function Ij(e,t){var r=kj();var n={id:requestAnimationFrame((function o(){kj()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var Lj=-1;function Dj(e){if(void 0===e&&(e=!1),-1===Lj||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),Lj=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Lj}var Tj=null;function _j(e){if(void 0===e&&(e=!1),null===Tj||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?Tj="positive-descending":(t.scrollLeft=1,Tj=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Tj}return Tj}var Oj=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function qj(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,go(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:go(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=Pj((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=Pj((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=Pj((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(_j()){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&&Mj(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Ij(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}mo(t,e),t.getDerivedStateFromProps=function(e,t){return Nj(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=Dj();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(_j()){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&&Mj(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?Oj: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(),A=E[0],P=E[1],k=[];if(n>0&&g)for(var M=A;M<=P;M++)for(var I=C;I<=w;I++)k.push(R(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 R(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:so({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(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}(O),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Nj=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},jj=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},zj=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},Fj=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]},$j=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?Bj(e,t,r,i,0,n):Hj(e,t,r,Math.max(0,i),n)},Bj=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=Fj(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},Hj=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&Fj(e,t,n,r).offset<o;)n+=a,a*=2;return Bj(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},Wj=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=Fj(e,t,r,i),u="column"===e?zj(t,i):jj(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}},Vj=qj({getColumnOffset:function(e,t,r){return Fj("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return $j("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=Fj("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=Fj("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:jj,getEstimatedTotalWidth:zj,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return Wj("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return Wj("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return Fj("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return $j("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=Fj("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=Fj("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}}),Gj=function(e,t){return e};function Uj(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,go(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:go(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Pj((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Pj((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=Pj((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(_j()){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&&Mj(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=Ij(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}mo(t,e),t.getDerivedStateFromProps=function(e,t){return Yj(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?Dj():0:l.scrollHeight>l.clientHeight?Dj():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(_j()){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&&Mj(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?Gj: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],A=[];if(u>0)for(var P=w;P<=E;P++)A.push(R(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 R(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:so({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(s||l||"div",{children:A,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var 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}(O),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Yj=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Kj=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]},Xj=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=Kj(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},Jj=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&Kj(e,r,t).offset<n;)r+=i,i*=2;return Xj(e,t,Math.min(r,o-1),Math.floor(r/2),n)},Zj=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},Qj=Uj({getItemOffset:function(e,t,r){return Kj(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Zj,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=Kj(e,t,o),p=Zj(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?Xj(e,t,o,0,r):Jj(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=Kj(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=Kj(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 ez(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 tz=["style"],rz=["style"];function nz(e,t){var r=e.style,n=bo(e,tz),o=t.style,i=bo(t,rz);return!ez(r,o)&&!ez(n,i)}const oz=({style:e})=>Il.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var iz=x.memo(oz,nz);const az=()=>{},sz=e=>{e.preventDefault()};const lz=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=C_(v_,(e=>e.hoverIndex===t)),d=C_(v_,(e=>e.setHoverIndex)),{interactions:p,styleService:f,direction:h}=C_(v_,(e=>e.baseProps)),m=C_(v_,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=C_(v_,(e=>e.baseProps)),r=C_(v_,(e=>e.selectionDispatch)),n="object"==typeof e,o=C_(v_,(t=>n?AN(e,t.selectionState):zM.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=EN(sz,e,r,az);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=L(null),i=r&&!r.isNumeric,a=D((r=>{const o=xq(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return Sq(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=MN(o,i,e);a=PN(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?i_(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===zM.Selected?{...s,...i.selectedColors}:n===zM.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${gT}, ${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 Il.jsx("div",{className:`sn-table-cell ${x} ${pS}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:kT(h,g.isLastColumn,m),borderLeftWidth:MT(h,g.isLastColumn,m),justifyContent:ET(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:Il.jsx(wN,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})}return Il.jsx(iz,{style:{...r,...C,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var uz=_(lz,nz);const cz=e=>{const t=L(e);return t.current=e,t},dz=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,pz=(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},fz=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},hz=(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=bR(h,e,a),w=!h&&e.qIsNull,E=w?hE(C):fE(e);f[r]={id:cE(),...e,align:ER(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)&&gR(e,h),representation:mR({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>w?C:e.qText,direction:u,enabledFeatures:{[hw.Image]:!0,[hw.Indicator]:!0,[hw.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}))}))},mz=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=C_(v_,(e=>e.env)),{direction:p}=C_(v_,(e=>e.baseProps)),f=L([]),h=D(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return hz(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=C((()=>h(n??[])));oS((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=L(new Set),n=L(new Set),o=L(new Set),i=cz(e),a=cz(t),s=w((()=>({enqueue:e=>{const t=dz(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(dz(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=D(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(fz(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=D(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(pz(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return E((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,u,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},gz=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},bz=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,vz=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=C_(v_,(e=>e.baseProps.styleService)),i=C_(v_,(e=>e.columnWidths)),{estimateLineCount:a}=eS(o.dimension.values),s=f_(o.dimension.values.fontSize),l=e||t||1===r;return D(((e,t,o)=>{if(l||e.representation.type===hw.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])},yz=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>w((()=>{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]),xz=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=C_(v_,(e=>e.baseProps)),[a,s]=C({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}=C_(v_,(e=>e.baseProps)),o=C_(v_,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;oS((()=>{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]),oS((()=>{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})=>D(((o,i,a)=>{q((()=>{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(!bz(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,gz(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})=>D(((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:vz({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),getRowHeight:D((e=>c?h:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]),totalRowHeight:yz({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,rowCount:e,viewService:r}),lineClamp:f}},Sz=(e,t)=>{N((()=>()=>{t(0)}),[e,t]);const r=D((e=>{const r=xq(e);void 0!==r&&t(r)}),[t]);Sq(e,r)};let Cz=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const wz=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>D((({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=Cz.None,i=Cz.None;return o=n>t?Cz.Down:n<t?Cz.Up:Cz.None,i=r>e?Cz.Right:r<e?Cz.Left:Cz.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===Cz.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===Cz.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===Cz.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===Cz.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]),Ez={enabled:!1},Rz=()=>{},Az={current:null};const Pz=(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=w((()=>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}},kz=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},Mz={overflow:"hidden",willChange:"auto"};var Iz=_(T(((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}=C_(v_,(e=>e.baseProps)),f=C_(v_,(e=>e.columnWidths)),h=C_(v_,(e=>e.initialDataPages)),m=L(null),g=L(null),b=L({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=L(0),y=!!t_(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:C}=Pz(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:R,setEstimatedCellHeight:A,getRowHeight:P,lineClamp:k,totalRowHeight:M}=xz({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:I,loadRows:D,loadColumns:T}=mz({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:C,columns:n,gridState:b,setEstimatedCellHeight:A}),_=wz({layout:s,loadRows:D,loadColumns:T,rowCount:x,pageInfo:o,gridState:b,viewService:c}),O=Mq(),q=w((()=>({rowsInPage:I,columns:n,isHoverEnabled:y,lineClamp:k,setMeasuredCellHeight:R,resizeObserverTaskScheduler:O})),[I,n,y,k,R,O]),z=((e,t,r)=>Math.min(e.height-t,r))(r,i,M);return N((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=C_(v_,(e=>e.baseProps)),r=C_(v_,(e=>e.selectionDispatch));E((()=>{r({type:FM.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),Iq({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:Rz,keyboard:Ez,tableWrapperRef:Az})}(I),j(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??z)-z,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,z,x]),Sz(g,a),Il.jsx(Vj,{"data-key":"body",ref:m,innerRef:g,style:Mz,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:z,rowCount:x,rowHeight:P,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:q,onItemsRendered:_,itemKey:kz,className:"sn-table-body",direction:p,children:uz})})));const Lz=({width:e,height:t,children:r})=>Il.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),Dz=(e,t)=>{const r=L(null),n=C_(v_,(e=>e.columnWidths));N((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=D((r=>{const n=xq(r);n&&t(n+9,e)}),[e,t]);return Sq(r,o),r},Tz=Xk("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}}))),_z=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=C_(v_,(e=>e.baseProps)),u=C_(v_,(e=>e.baseProps.selectionsAPI?.isModal())),c=C_(v_,(e=>e.showRightBorder)),d=C_(v_,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=yj({isInteractionEnabled:p,column:f}),y=bj(),x=Dz(e,i),S=n.length-1===e,C=y?KN:gj;return Il.jsxs(Tz,{className:`sn-table-cell ${pS}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...qN(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:kT(l,S,c),borderLeftWidth:MT(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:[Il.jsx(C,{forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),Il.jsx(XN,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},Oz=e=>{const[t,r]=C(new Map);oS((()=>{r(new Map)}),[e.length]);const n=D(((e,t)=>{r((r=>bz(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:w((()=>gz(t)),[t]),setMeasuredCellHeight:n}},qz=(e,t)=>{j(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},Nz=(e,t,r,n,o)=>{oS((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},jz={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},zz=T(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=x.useRef(null),l=L(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=C_(v_,(e=>e.baseProps)),h=C_(v_,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=Oz(n),b=$N(f,u);return qz(t,s),Nz(s,u,o,h,c),Sz(l,a),Il.jsx(Qj,{ref:s,outerRef:l,layout:"horizontal",style:{...jz,...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:_z})}));var Fz=_(zz);const $z=T(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=C_(v_,(e=>e.baseProps));return Il.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,children:r})})),Bz=({children:e,rect:t})=>{const{direction:r}=C_(v_,(e=>e.baseProps));return Il.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})},Hz=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=C_(v_,(e=>e.baseProps)),c=C_(v_,(e=>e.showRightBorder)),d=Dz(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e;return Il.jsx("div",{className:`sn-table-cell ${pS}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...qN(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:kT(u,m,c),borderLeftWidth:MT(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:Il.jsx(eN,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},Wz=T(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=L(null),l=L(null),{layout:u,theme:c,styleService:d,direction:p}=C_(v_,(e=>e.baseProps)),f=C_(v_,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=Oz(i);return qz(t,s),Nz(s,u,n,f,c),Sz(l,a),Il.jsx(Qj,{ref:s,outerRef:l,layout:"horizontal",style:jz,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:Hz})}));var Vz=_(Wz);const Gz=(e,t,r,n,o)=>D((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]),Uz=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=C_(v_,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=C_(v_,(e=>e.baseProps)),c=C_(v_,(e=>e.columnWidths)),d=C_(v_,(e=>e.setYScrollbarWidth)),p=L(null),f=L(null),h=L(null),m=L(null),{xScrollbarWidth:g,yScrollbarWidth:b}=Cq(p),v=w((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),y=w((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(v,g,b)),[v,g,b]),{rowCount:x}=Pz(i,t,y,c,0),{headerAndTotalsHeight:S,innerBodyHeight:E,setHeaderRowHeight:R,setTotalsRowHeight:A,setInnerBodyHeight:P}=(()=>{const[e,t]=C(0),[r,n]=C(0),[o,i]=C(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}=C_(v_,(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}),I=Gz(f,h,m,l,u),T=D((()=>{p.current&&(p.current.scrollTop=0)}),[p]);pq(),N((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),N((()=>{p.current&&(p.current.scrollTop=0)}),[t,x,a]),QO((()=>{d(b)}),[b]);const _=Il.jsx(Vz,{rect:y,pageInfo:t,columns:n,ref:h,totals:r,setTotalsRowHeight:A},"totals");return Il.jsx($z,{ref:p,width:v.width,height:v.height,onScroll:I,children:Il.jsx(Lz,{width:k,height:M,children:Il.jsxs(Bz,{rect:y,children:[Il.jsx(Fz,{rect:y,pageInfo:t,columns:n,ref:f,columResizeHandler:T,setHeaderRowHeight:R}),r.atTop?_:null,Il.jsx(Iz,{ref:m,rect:y,pageInfo:t,columns:n,headerAndTotalsHeight:S,setInnerBodyHeight:P}),r.atBottom?_:null]})})})};var Yz=_(Uz);const Kz=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=C_(v_,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=C_(v_,(e=>e.tableData)),c=C_(v_,(e=>e.pageInfo)),d=C_(v_,(e=>e.setPage));return Il.jsxs(JO,{"data-testid":"sn-table",background:e.background,children:[Il.jsx(Yz,{pageInfo:c}),Il.jsx(KO,{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 Xz=_(Kz);var Jz={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 Zz=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(Jz).forEach((t=>{e.add(Jz[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(`.${BM.First}`),s=e.querySelector(`.${BM.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===BM.First?(l=s,r=BM.Second):(l=a,r=BM.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(t,r))),[t,r.language()]),Qz={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},eF=e=>{const{app:r,model:i,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:h}=t(),m=PR(s,d),g=Zz(a,l),[b,v]=n(((e,t)=>AR(e,t)?{page:t.page||Qz.page,rowsPerPage:t.rowsPerPage||Qz.rowsPerPage,rowsPerPageOptions:Qz.rowsPerPageOptions}:Qz)(s,d)),[y,x]=Jx((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>vR)return n({...r,rowsPerPage:yR(d,c),page:0}),null;const g=p>10,b=xR(t,o),v=RR(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=bR(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?hE(c):fE(u);n[l]={id:cE(),...u,align:ER(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)&&gR(u,o.isDim),representation:mR({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[hw.Image]:!0,[hw.Indicator]:!0,[hw.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(i,s,b,v,d,p,!0,f):null),[s,b,i,m,f]);o((()=>{m&&e.model&&e.changeSortOrder&&y&&c&&!x&&function(e,t){const{direction:r,...n}=e,o=w_(r);t.render(Il.jsx(Gd,{stylisPlugins:"rtl"===r?[jM]:void 0,children:Il.jsx(Zk,{theme:o,children:Il.jsx(S_,{...e,children:Il.jsx(Ej,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:y,pageInfo:b,setPageInfo:v,direction:f,footerContainer:h,announce:g},u)}),[g,r,f,h,c,b,u,e,m,y,x])},tF=(t,r)=>e((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const rF=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=Jx((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(NT,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}},nF=t=>{const{layout:r,model:i,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=t,p=!PR(r,c),[f,h]=n(!1);f&&h(!1);const m=e((()=>function(e,t,r,n,o){const i=RR(e,o,n),a=xR(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(NT,s),u=s>NT&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(r,s,c,d,f)),[r,s,c,d,f]),{pageInfo:g,setPage:b}=((t,r)=>{const[o,i]=n(0),a=Math.min(NT,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/NT);e<o&&i(e)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=rF({model:i,layout:r,page:g.page,shouldRender:p});o((()=>{p&&a.active&&a.blur?.(!1)}),[a,p]),o((()=>{p&&t.model&&t.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=w_(r);t.render(Il.jsx(x.StrictMode,{children:Il.jsx(Zk,{theme:n,children:Il.jsx(S_,{...e,children:Il.jsx(Xz,{})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:m,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,t,b,p,m])},oF={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:[]};function iF(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 aF=(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]}},sF=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const lF=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||Qz.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},uF=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=xR(e,t);if(PR(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=iF(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:lF(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=aF(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=(sF(h,m,g)?d:d+1)+c;let v=p+c;const y=aF(p,o),x=y?.getBoundingClientRect();return y&&x&&(sF(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:lF(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},cF=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),dF=e=>e.getStyle("object","straightTableV2","backgroundColor");function pF(r){return{qae:{properties:{initial:oF},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>sw({...e}),exportProperties:tw,exploration:lw},ext:rE(r),component(){const n=c(),i=(t=>{const r=e((()=>tS(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(n),y=d(),x=p(),S=f(),C=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!y.snapshotData),w=h(),E=m(),R=g(),A=t(),{freeResize:P}=A,k=b(),M=e((()=>y.snapshotData?.content&&!P?{...k,...y.snapshotData.content.size}:k),[k,P,y.snapshotData?.content]),I=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(y),L=v(),D=Xx(y,n,cF,dF),T=A.direction,_=tF(y.qHyperCube,S),O=nE(y.qHyperCube,S),q=((e,t,r)=>{const[,n,o]=Jx((async()=>{const t=ae(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,nS].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})(D,y,r),N=bt(),j={app:x,layout:y,model:S,rect:M,theme:D,keyboard:R,translator:w,interactions:C,selectionsAPI:E,changeSortOrder:_,rootElement:n,embed:L,reactRoot:i,applyColumnWidths:O,isFontLoaded:q,downloadService:N,viewService:I,direction:T,env:r};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${pS}`);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()=>{CS(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h}=uF(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),u((()=>({getViewState:()=>uF(e,t,n)})),[e,t,n])})({layout:y,viewService:I,model:S,rootElement:n,contentRect:k}),nF(j),eF(j)}}}export{pF as default};
|
|
121
|
+
*/!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",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)}(LP,LP.exports);var OP=$t(LP.exports),NP="comm",_P="rule",jP="decl",zP=Math.abs,FP=String.fromCharCode;function HP(e){return e.trim()}function $P(e,t,r){return e.replace(t,r)}function BP(e,t,r){return e.indexOf(t,r)}function VP(e,t){return 0|e.charCodeAt(t)}function WP(e,t,r){return e.slice(t,r)}function UP(e){return e.length}function GP(e,t){return t.push(e),e}var YP=1,KP=1,XP=0,JP=0,ZP=0,QP="";function eA(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:YP,column:KP,length:a,return:"",siblings:s}}function tA(){return ZP=JP>0?VP(QP,--JP):0,KP--,10===ZP&&(KP=1,YP--),ZP}function rA(){return ZP=JP<XP?VP(QP,JP++):0,KP++,10===ZP&&(KP=1,YP++),ZP}function nA(){return VP(QP,JP)}function oA(){return JP}function iA(e,t){return WP(QP,e,t)}function aA(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 sA(e){return HP(iA(JP-1,cA(91===e?e+2:40===e?e+1:e)))}function lA(e){for(;(ZP=nA())&&ZP<33;)rA();return aA(e)>2||aA(ZP)>3?"":" "}function uA(e,t){for(;--t&&rA()&&!(ZP<48||ZP>102||ZP>57&&ZP<65||ZP>70&&ZP<97););return iA(e,oA()+(t<6&&32==nA()&&32==rA()))}function cA(e){for(;rA();)switch(ZP){case e:return JP;case 34:case 39:34!==e&&39!==e&&cA(ZP);break;case 40:41===e&&cA(e);break;case 92:rA()}return JP}function dA(e,t){for(;rA()&&e+ZP!==57&&(e+ZP!==84||47!==nA()););return"/*"+iA(t,JP-1)+"*"+FP(47===e?e:rA())}function pA(e){for(;!aA(nA());)rA();return iA(e,JP)}function fA(e){return function(e){return QP="",e}(mA("",null,null,null,[""],e=function(e){return YP=KP=1,XP=UP(QP=e),JP=0,[]}(e),0,[0],e))}function mA(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=rA()){case 40:if(108!=m&&58==VP(C,d-1)){-1!=BP(C+=$P(sA(v),"&","&\f"),"&\f",zP(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=sA(v);break;case 9:case 10:case 13:case 32:C+=lA(m);break;case 92:C+=uA(oA()-1,7);continue;case 47:switch(nA()){case 42:case 47:GP(gA(dA(rA(),oA()),t,r,l),l),5!=aA(m||1)&&5!=aA(nA()||1)||!UP(C)||" "===WP(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*h:s[u++]=UP(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=$P(C,/\f/g,"")),f>0&&(UP(C)-d||0===h&&47===m)&&GP(f>32?bA(C+";",n,r,d-1,l):bA($P(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(GP(w=hA(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)mA(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===VP(C,3))break;case 108:if(97===VP(C,2))break;default:c=0;case 100:case 109:case 115:}c?mA(e,w,w,n&&GP(hA(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):mA(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+UP(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==tA())continue;switch(C+=FP(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(UP(C)-1)*b,b=1;break;case 64:45===nA()&&(C+=sA(rA())),p=nA(),c=d=UP(y=C+=pA(oA())),v++;break;case 45:45===m&&2==UP(C)&&(h=0)}}return i}function hA(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=WP(e,p+1,p=zP(g=a[h])),x=e;v<m;++v)(x=HP(g>0?f[v]+" "+y:$P(y,/&\f/g,f[v])))&&(l[b++]=x);return eA(e,t,r,0===o?_P:s,l,u,c,d)}function gA(e,t,r,n){return eA(e,t,r,NP,FP(ZP),WP(e,2,-2),0,n)}function bA(e,t,r,n,o){return eA(e,t,r,jP,WP(e,0,n),WP(e,n+1,-1),n,o)}function vA(e,t,r){switch(e.type){case"@import":case jP:case NP:return e.return=e.return||e.value;case _P:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===NP&&(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),vA);return UP(n)?e.return=e.value+"{"+n+"}":""}function yA(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===_P&&(!e.parent||"@media"===e.parent.type||e.parent.type===_P)){var o=OP.transform(vA(e));e.children=o?fA(o)[0].children:[],e.return=""}}Object.defineProperty(yA,"name",{value:"stylisRTLPlugin"});let xA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),SA=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}({}),wA=function(e){return e.A="ascending",e.D="descending",e}({}),CA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const EA=[0,0],RA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),PA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},AA=(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&&ee(e.localPaletteColors[t].color).blend(ee(s.color),s.t)},IA=(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:RA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:PA(n,t,r)})))),n},MA=(e,t,r,n)=>{const o=IA(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=AA(e,a,t);break}n=i}return r})(o,t);return a},DA=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!IR(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||!IR(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)},kA=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=DA(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||!IR(t))return 0;let a=r&&IR(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}},TA=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=kA(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 PA(o,r.limitPaletteColorIndex,n);const a=RA(r.limitRange,t);return MA(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}},qA=(bC().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)"),LA=4/3,OA="12px",NA="600",_A="Source Sans Pro, sans-serif",jA={height:"auto",fontSize:OA,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"}},zA={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:NA},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},FA=(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,HA=(e,t)=>e.representation.type===DE.Image&&"fitHeight"===e.representation.imageSize?FA(t,e.representation):e.align,$A=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",BA=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},VA=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,WA=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",UA=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",GA=24,YA=oc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),KA=oc(Yd,{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?$A(e,n):void 0}))),XA=oc(Yd,{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},[`& .${WC}`]:{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"},[`& .${WC}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),JA=oc(Yd,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),ZA=oc(Yd,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),QA=oc(od,{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}))),eI=25e4,tI=(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(JC.PixelsMax,Math.max(JC.PixelsMin,f)),i-=n[a]};switch(s){case ZC.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?JC.PixelsDefault:+e)(l),m();break;case ZC.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?JC.PercentageDefault:+e)(u)/100*t,m();break;case ZC.FitToContent:e.representation?.type===DE.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),m());break;case ZC.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(JC.AutoMinTable,e)}))}return n},rI=(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"]})},nI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},oI=e=>e.ctrlKey||e.metaKey,iI=e=>e.shiftKey&&oI(e),aI=e=>[KC.Left,KC.Right,KC.Up,KC.Down].includes(e),sI=e=>e.shiftKey&&aI(e.key),lI=e=>(e=>aI(e)||[KC.Home,KC.End,KC.PageUp,KC.PageDown].includes(e))(e.key)&&!iI(e),uI=(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),rI(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})},cI=(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&&sI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&sI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===KC.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 rI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},dI=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}},pI=(e,t)=>{switch(t.type){case SA.Select:return uI(e,t.payload);case SA.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 SA.SelectMouseUp:return((e,t)=>dI(e.isSelectMultiValues||e.firstCell!==t.cell?e:uI(e,t)))(e,t.payload);case SA.SelectMultiAdd:return cI(e,t.payload);case SA.SelectMultiEnd:return dI(e);case SA.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case SA.Clear:return e.rows.size?{...e,rows:new Map}:e;case SA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},fI=4/3,mI=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function hI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const gI=(e,t)=>e?{borderBottomColor:yC.DARK_MODE_BORDER,borderRightColor:yC.DARK_MODE_BORDER,borderLeftColor:yC.DARK_MODE_BORDER,borderTopColor:yC.DARK_MODE_BORDER}:{borderLeftColor:yC.BORDER_MEDIUM,borderRightColor:yC.BORDER_MEDIUM,borderTopColor:yC.BORDER_HEAVY,borderBottomColor:t?yC.BORDER_HEAVY:yC.BORDER_LIGHT},bI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*fI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},vI=e=>e.components?.find((e=>"theme"===e.key)),yI=(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:mI(r?.fontColor)?hI(yC.TEXT,t,r?.fontColor):i||yC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...gI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function xI(e,t,r){const n=vI(e)?.header,o=yI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ee(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=wC(o.background??yC.WHITE,QC),o.activeBackground=wC(o.background??yC.WHITE,eE),o}const SI=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in zA)(e)&&Object.assign(t,zA[e]))),t};function wI(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&&EC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?SI(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=xC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const CI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},EI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=CI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},RI=(e,t,r,n=yC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=EI(e,t,r);return MC(i,o,a,n)??n},PI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return OA}},AI=e=>e?.some((e=>"italic"===e))?"italic":"normal",II=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?NA:"normal",MI=e=>!1===e?1:3,DI=e=>parseInt(e??jA.fontSize,10)*LA,kI=e=>e?.some((e=>"underline"===e))?"underline":"none",TI=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=vI(t)??{},p=qP(t,o)?yC.WHITE:yC.TRANSPARENT,f=RI(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??_A,fontSize:PI(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:AI(i?.fontStyle),fontWeight:II(i?.fontStyle,NA),textDecoration:kI(i?.fontStyle),color:CI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??yC.TEXT,background:f},headerMenuHoverBackground:wC(f,QC),headerMenuActiveBackground:wC(f,eE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??_A,fontSize:PI(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:AI(a?.fontStyle),fontWeight:II(a?.fontStyle,"normal"),textDecoration:kI(a?.fontStyle),color:CI(n,a?.fontColor)??CI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??yC.TEXT,background:EI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??yC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??_A,fontSize:PI(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:AI(s?.fontStyle),fontWeight:II(s?.fontStyle,"normal"),textDecoration:kI(s?.fontStyle),color:CI(n,s?.fontColor)??CI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??yC.TEXT,background:EI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??yC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??_A,fontSize:PI(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:AI(l?.fontStyle),fontWeight:II(l?.fontStyle,NA),textDecoration:kI(l?.fontStyle),color:CI(n,l?.fontColor)??CI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??yC.TEXT,background:RI(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:AI(u?.fontStyle),fontWeight:II(u?.fontStyle,"normal"),textDecoration:kI(u?.fontStyle),color:CI(n,u?.fontColor)??CI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??yC.TEXT,background:CI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??yC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:m??MI(t.multiline?.wrapTextInCells),headerLineClamp:MI(t.multiline?.wrapTextInHeaders),border:CI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?yC.DARK_MODE_BORDER:yC.BORDER_MEDIUM),divider:CI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??yC.BORDER_HEAVY,hoverColors:{color:CI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:CI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:CI(n,c?.zebraStripes?.color?.odd),background:CI(n,c?.zebraStripes?.background?.odd)},even:{color:CI(n,c?.zebraStripes?.color?.even),background:CI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===CI(n,u?.background),overrideNullValueColor:void 0===CI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:SC(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(DI(e.header.fontSize)+8,32),r=DI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(DI(e.dimension.values.fontSize),DI(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},qI=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=vI(e)?.content,i=yI("content",t,o);i.background=t.background.color;const a=bI(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=mI(l)||!!c,p=mI(s)||!!u,f=d||p;let m;m=mI(s)?hI(yC.HOVER,t,s):u||(d?"":yC.HOVER);const h=f?hI(xC(m),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:m,color:h}}}(e,t,r.rows.length,n),a=xI(e,t,!o),s=function(e,t,r){const n=vI(e)?.content,o=yI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=xI(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},LI=new Map;const OI=D({}),NI=function(e){const t=D([()=>{},new Set]);return LI.set(e,t),({children:r,value:n})=>{const o=k(n),i=k(new Set);E((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=T((()=>o.current),[o]),s=C((()=>[a,i.current]),[a]);return Qt.jsx(e.Provider,{value:n,children:Qt.jsx(t.Provider,{value:s,children:r})})}}(OI),_I={rows:[],columns:[],totalsPosition:{}},jI=({app:e,children:t,tableData:r=_I,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||EA),[D,k]=((e,t)=>{const[r,n]=M(pI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[T,q]=w(-1),L=qI(i,u,r,d),O=((e,t,r,n,o)=>C((()=>TI(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=NC({...n.header,fontWeight:NA},{maxNbrLinesOfText:3}).measureText,s=NC({...n.totalRow,fontWeight:NA},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=NC(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:u}=NC(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+=GA),t+=GA,t+=GA,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((()=>tI(e,r,c)));FC((()=>{g(tI(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 Qt.jsx(NI,{value:{headRowHeight:R,setHeadRowHeight:P,focusedCellCoord:A,setFocusedCellCoord:I,selectionState:D,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 zI(e,t){const r=function(e){return LI.get(e)}(e),[n,o]=S(r),[,i]=M((e=>e+1),0),a=k(t),s=k(),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 FI(e){const t=bC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Su({...t,direction:e})}const HI={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},$I={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},BI=oc("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":{...HI},"&::-moz-range-track":{...HI},"&::-ms-track":{...HI},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...$I},"&::-moz-range-thumb":{...$I},"&::-ms-thumb":{...$I},"&: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"}}))),VI=({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=$C({translator:c.translator}),f=k({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}};FC((()=>{h&&v()}),[e]);const y=e=>{const t=Math.max(e,JC.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:ZC.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=>{PC(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=>{PC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===KC.Left||e.key===KC.Right){PC(e);const t=5,r=e.key===KC.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===KC.Space||e.key===KC.Enter?(PC(e),s(e),l?.(!1),x()):e.key===KC.Esc&&(PC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return Qt.jsx(BI,{style:b,hoverColor:o,isLastColumn:r,className:XC,"data-testid":XC,onMouseDown:e=>{PC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:ZC.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(PC(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":JC.PixelsMin,"aria-valuemax":JC.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},WI=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),UI=({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},GI=oc(Yd,{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"}))),YI=oc(WI,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),KI=oc(Df)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),XI=oc(Pp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),JI=oc(Of)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),ZI=oc(Of,{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"}))),QI=oc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),eM=oc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),tM=oc(cd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),rM=oc(rf,{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}))),nM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),oM=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?oM(t):t:e.parentElement?.children?.[0]},iM=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?iM(t):t},aM=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===KC.Down||t===KC.Up){const r=e=>t===KC.Down?oM(e):iM(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},sM=(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 lM={};const uM=({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=T((e=>{e.stopPropagation(),p(!1)}),[p]);return Qt.jsxs(Qt.Fragment,{children:[Qt.jsxs(ZI,{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),lM={}),a?.length&&(p(!0),lM[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:aM,children:[l?Qt.jsx(QI,{direction:u,isPagination:c}):null,Qt.jsxs(eM,{children:[Qt.jsx(rM,{direction:u,isPagination:c,children:Qt.jsx(o,{})}),Qt.jsx(tM,{variant:"body2",children:n})]}),a?.length?Qt.jsx(nM,{}):null]},t),a?.length?Qt.jsx(fM,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:m,menuGroups:sM(a,lM),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},cM=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&Qt.jsx(JI,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>Qt.jsx(uM,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),dM=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[cM({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?Qt.jsx(XI,{"data-testid":"group-divider",variant:"middle"}):void 0])),pM={appear:0,enter:0,exit:0},fM=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?Qt.jsx(KI,{className:UC,open:t,anchorEl:e,onClose:r,transitionDuration:pM,MenuListProps:{id:GC},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:dM({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,mM=({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]),hM=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),gM=(e,t)=>e.some((e=>t[e]>0)),bM={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},vM=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=w(null),[a,s]=w(bM);return FC((()=>{e||(s(bM),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=hM(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:gM(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:gM(["qSelected"],e),canSelectPossible:gM(["qOption"],e),canSelectAlternative:gM(["qAlternative"],e),canSelectExcluded:gM(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},yM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),xM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),SM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),wM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),CM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),EM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),RM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),PM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),AM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),IM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),MM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),DM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),kM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),TM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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 qM=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const LM="/qListObjectDef",OM=({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[qM.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:yM,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:wM,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:PM,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:CM,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[qM.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:AM,enabled:!0}]}]),!e.isLocked&&r[qM.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:TM,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(LM))},icon:IM,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(LM))},icon:kM,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(LM))},icon:MM,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(LM))},icon:DM,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(LM))},icon:xM,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:RM,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:EM,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[qM.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:SM,enabled:!0}]}]),f},NM=({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=BC})=>{const v=k(null),y=$C({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=vM({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=UI({model:f,headerData:n}),A=mM({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:m}),I=T((e=>{e.stopPropagation(),t(!1)}),[t]),M=T((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?Qt.jsxs(GI,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:WC,onClick:!1===g?M:void 0,ref:v,isAccessibleHeader:g,children:[s?Qt.jsx(YI,{height:b,className:VC,"data-testid":VC,isInteractionsActive:i.active??!1,children:Qt.jsx(WI,{})}):null,Qt.jsx(fM,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:OM({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},_M=e=>e.isDark?{background:e.color,borderColor:yC.DARK_MODE_BORDER,color:yC.DARK_MODE_TEXT,disabledColor:yC.DARK_MODE_DISABLED,iconColor:yC.DARK_MODE_TEXT}:{background:e.color,borderColor:yC.BORDER_MEDIUM,color:yC.TEXT,disabledColor:yC.DISABLED},jM=oc(Yd,{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}`}))),zM=oc(hm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),FM=oc(op,{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)}))),HM=oc(cd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),$M=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>_M(n.background)),[n]);if(!r.active)return null;const a=o?Qt.jsx(jM,{footerStyle:i,children:e}):null;return t?F.createPortal(e,t):a},BM=D({}),VM=()=>S(BM),WM=({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((()=>_M(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=$C({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 Qt.jsx(BM.Provider,{value:x,children:e})};let UM=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),GM=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 YM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),KM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),XM=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),JM={FirstPage:KM,PreviousPage:YM,NextPage:nM,LastPage:XM,FirstPageRTL:XM,PreviousPageRTL:nM,NextPageRTL:YM,LastPageRTL:KM},ZM=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=VM(),u=r.concat("rtl"===n?"RTL":""),c=JM[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}},QM=()=>{const{pageInfo:e,width:t,interactions:r}=VM(),n=0===e.page,{IconComponent:o,styledProps:i}=ZM({type:UM.FirstPage,disabledCondition:n,pageNumber:0});return t<=GM.FirstPage?null:Qt.jsx(FM,{...i,disabled:!r.active,children:Qt.jsx(o,{height:BC})})},eD=(e,t,r=!1)=>{r&&e.key===KC.Tab&&!e.shiftKey&&(PC(e),RC(e.target,t,!1))},tD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=VM(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=ZM({type:UM.LastPage,disabledCondition:a,pageNumber:r-1}),u=t.enabled?e=>{eD(e,t,n)}:void 0;return o<=GM.LastPage?null:Qt.jsx(FM,{...l,onKeyDown:u,disabled:!i.active,children:Qt.jsx(s,{height:BC})})},rD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=VM(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=ZM({type:UM.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>GM.FirstPage&&o>GM.LastPage)&&t.enabled?e=>{eD(e,t,n)}:void 0;return Qt.jsx(FM,{...l,onKeyDown:u,disabled:!i.active,children:Qt.jsx(s,{height:BC})})},nD=()=>{const{pageInfo:e,interactions:t}=VM(),r=0===e.page,{IconComponent:n,styledProps:o}=ZM({type:UM.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return Qt.jsx(FM,{...o,disabled:!t.active,children:Qt.jsx(n,{height:BC})})},oD=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=VM(),{page:o,rowsPerPage:i}=r;if(t<=GM.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return Qt.jsx(HM,{variant:"caption",dir:"ltr",children:a})},iD=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=VM(),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 Qt.jsxs(Qt.Fragment,{children:[Qt.jsxs(HM,{variant:"caption",id:p,children:[c,":"]}),Qt.jsx(zM,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},aD=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o}=VM();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>GM.RowsPerPage&&r<=100)||void 0===e.rowsPerPageOptions)return null;const i=Qt.jsx(Qt.Fragment,{children:e.rowsPerPageOptions.map((e=>Qt.jsx("option",{value:e,children:e},e)))});return Qt.jsx(iD,{name:"RowsPerPage",value:e.rowsPerPage,options:i,handleChange:e=>{o?.(+e.target.value)}})},sD=1e3,lD="…",uD=({totalPages:e,page:t})=>{const r=Math.min(e,sD),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-sD):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return Qt.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(Qt.jsx("option",{value:lD,disabled:!0,children:lD},"startMoreOptions")),o<e-1&&a.push(Qt.jsx("option",{value:lD,disabled:!0,children:lD},"endMoreOptions")),Qt.jsx(Qt.Fragment,{children:a})},cD=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=VM(),{page:o}=e;if(t<=GM.SelectPage)return null;const i=Qt.jsx(uD,{totalPages:r,page:o});return Qt.jsx(iD,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var dD=L((e=>Qt.jsxs(WM,{...e,children:[Qt.jsx(aD,{}),Qt.jsx(cD,{}),Qt.jsx(oD,{}),Qt.jsx(QM,{}),Qt.jsx(nD,{}),Qt.jsx(rD,{}),Qt.jsx(tD,{})]})));const pD=e=>Qt.jsx($M,{...e,children:Qt.jsx(dD,{...e})}),fD={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},mD=oc(Yd,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),hD=oc("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?{...fD,whiteSpace:"nowrap",display:r?"block":void 0}:{...fD,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}));function gD(e,t){const r=k(!1);E((()=>{r.current?e():r.current=!0}),t)}const bD=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),vD=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),yD=e=>e.atTop?2:1,xD=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],SD=e=>e?.setAttribute("tabIndex","0"),wD=e=>e?.setAttribute("tabIndex","-1"),CD=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(wD)},ED=e=>{e?.focus(),SD(e)},RD=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${XC}`);ED(t)}),0)},PD=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{CD(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 KC.Down:u<s&&u++;break;case KC.Up:u>a&&u--;break;case KC.Right:if(i)break;[u,c]="rtl"===n?bD({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):vD({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case KC.Left:if(i)break;[u,c]="rtl"===n?vD({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):bD({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case KC.Home:(oI(e)||i)&&(u=a),i||(c=0);break;case KC.End:(oI(e)||i)&&(u=s),i||(c=l);break;case KC.PageDown:u=Math.min(s,u+10);break;case KC.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=xD(t,a);return ED(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}},AD=(e,t,r,n)=>{CD(t),r(e),n.enabled&&!n.active?n.focus?.():ED(xD(t,e))},ID=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${UC}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${CA.First}`),r=e.querySelector(`.${CA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},MD=()=>{const{downloadService:e}=zI(OI,(e=>e.baseProps));E((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},DD=(e,t,r)=>{const{rootElement:n,keyboard:o}=zI(OI,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=zI(OI,(e=>e.tableData)),u=zI(OI,(e=>e.focusedCellCoord)),c=zI(OI,(e=>e.setFocusedCellCoord)),d=zI(OI,(e=>e.baseProps.selectionsAPI?.isModal()));gD((()=>{const r=((e,t,r=!1)=>{const n=[yD(t),e[1]];return r?n:EA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(CD(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=xD(t,e);r.current?(ED(s),r.current=!1):SD(s),n&&(a({keys:[s?.textContent??""]}),nI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},kD=(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])},TD=e=>{PC(e),oI(e)&&oE(e.currentTarget)},qD=e=>{lI(e.evt)&&(PC(e.evt),PD(e))},LD=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!lI(t))return;PC(t);const i=((e,t)=>[e.pageRowIdx+yD(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?yD(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=PD({...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:SA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):nI(o,a,i)})({...e,nextCell:s})},OD=e=>{const{evt:t}=e;iI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{PC(e);const a=Math.ceil(t/r)-1;e.key===KC.Right&&n<a?(o(),i(n+1)):e.key===KC.Left&&n>0&&(o(),i(n-1))})(e):t.key===KC.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(PC(e),t.blur?.(!0))})(e):aI(t.key)&&PC(t)},ND=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(xA.Disabled))return void PC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case KC.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{PC(e),t.isSelectable&&r&&n({type:SA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case KC.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{PC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case KC.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(PC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case KC.C:TD(t);break;case KC.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(PC(e),RC(e.currentTarget,t,e.shiftKey))})(n);break;default:LD(n)}},_D=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,jD=(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])},zD=e=>{const[t,r]=w(0),[n,o]=w(0),i=zI(OI,(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 jD(e,a),{xScrollbarWidth:t,yScrollbarWidth:n}},FD=oc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),HD=oc(_m,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),$D=oc(Sm,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),BD=()=>Qt.jsxs(Qt.Fragment,{children:[Qt.jsx(FD,{className:CA.First,"data-testid":CA.First,"aria-live":"polite","aria-atomic":"true"}),Qt.jsx(FD,{className:CA.Second,"data-testid":CA.Second,"aria-live":"polite","aria-atomic":"true"})]}),VD=e=>{const t=k(new Map),r=k(null);E((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=T(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=T((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return C((()=>({addTask:n,removeTask:o})),[n,o])},WD=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),UD=()=>VD(WD),GD=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{E((()=>{const i=()=>{t({type:SA.Reset})},a=()=>{t({type:SA.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])},YD=e=>{e.stopPropagation()},KD=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:YD,color:yC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),XD=({href:e,text:t,interactions:r,color:n})=>Qt.jsx(Up,{...KD({href:e,text:t,interactions:r,color:n}),children:t}),JD=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),ZD=window.cancelIdleCallback??(e=>{clearTimeout(e)}),QD="qDimensionInfo/0",ek="qMeasureInfo/0",tk="x",rk="y",nk=e=>({key:"bars",type:"box",data:{extract:{field:QD,props:{start:0,end:{field:ek}}}},settings:{major:{scale:tk},minor:{scale:rk},box:{maxWidthPx:8,fill:{fn:e}}}}),ok=e=>({key:"p",type:"point",data:{extract:{field:QD,props:{y:{field:ek}}}},settings:{x:{scale:tk},y:{scale:rk},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),ik=({qNum:e})=>void 0===e?0:Math.sign(e),ak=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=CC(e,t?.negative,r),a=CC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:QD,props:{start:0,end:{field:ek,value:ik}}}},settings:{major:{scale:tk},minor:{scale:rk},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}}}}},sk=(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=CC(e,t?.main,o),l=CC(e,t?.max,s),u=CC(e,t?.min,s),c=CC(e,t?.first,s),d=CC(e,t?.last,s);return e=>{const t=rk in e.datum?rk:"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[nk(a)];case"dots":return[ok(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:QD,props:{v:{field:ek}}}},settings:{coordinates:{major:{scale:tk},minor:{scale:rk,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(CC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,ok(a)]:[t]}case"posNeg":return[ak(e,n)];default:return[]}},lk=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"}),uk=(e,t,r,n)=>({y:{data:{field:ek},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:QD}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),ck=$();ck.use(H),ck.renderer.prio(["canvas"]);const dk={resolve:()=>{},promise:{}},pk=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=k(e.isDownloadedAsPDForImage?Pt():dk);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=JD((()=>{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 ck.chart({element:e,data:{type:"q",key:"qHyperCube",data:lk(s)},settings:{scales:uk(a,l,u,i),components:sk(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&&ZD(r.current),r.current=null,l()}),[r,l])}},fk=e=>{const t=k(null),r=k(!1);return T((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(ZD(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=JD((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},mk=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),u=k(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=pk({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=T((e=>{e.isIntersecting?n():r()}),[n,r]);E((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}}),[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{E((()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=fk(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},hk=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=mk({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return Qt.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},gk="cell-text",bk=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=zI(OI,(e=>e.baseProps));return o?Qt.jsx(hD,{"data-testid":gk,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):Qt.jsx(hD,{"data-testid":gk,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},vk=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}`},yk=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},xk=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=zI(OI,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=Qt.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:yk(s),objectPosition:vk(l),overflow:"hidden"}});return n?Qt.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?FA(o,e):void 0},children:c}):c},Sk=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),wk=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),Ck=q(((e,t)=>Qt.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:[Qt.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"}),Qt.jsx("use",{fillRule:"evenodd"})]}))),Ek=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),Rk=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),Pk=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),Ak=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.jsx("path",{d:"M2 7h12v2H2z"})}))),Ik=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})}))),Mk=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),Dk=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),kk=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),Tk=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),qk=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),Lk=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),Ok=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),Nk=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),_k={m:Tk,"ï":Dk,R:Nk,S:qk,T:Lk,U:Ok,P:Mk,Q:Pk,"è":q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),"¢":Ek,"©":Ck,"23F4":Rk,2013:kk,"&":Ik,add:Sk,"minus-2":Ak,dot:wk},jk=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&_k[t];return o&&Qt.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:Qt.jsx(o,{style:{height:e}})})},zk=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=zI(OI,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=TA(e,t,i,o),d=(e=>parseInt(e||OA,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:m}=c||{};return l?Qt.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&&jk({size:d,iconKey:f,color:p}),Qt.jsx(bk,{isNumeric:!0,children:a}),"right"===m&&jk({size:d,iconKey:f,color:p})]}):jk({size:d,iconKey:f,color:p})},Fk=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,Hk=({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}=zI(OI,(e=>e.baseProps)),m=zI(OI,(e=>e.selectionState.api?.isActive()));let h=t.representation.text;if(t.representation.type!==DE.Link||m||(h=Qt.jsx(XD,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===DE.Image)return Qt.jsx(xk,{representation:t.representation,textStyle:r,maxImageHeight:Fk(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!==DE.Indicator||Number.isNaN(g)?t.representation.type===DE.MiniChart&&t.representation.miniChart&&!t.isNull?Qt.jsx(hk,{height:Fk(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):Qt.jsx(bk,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:h}):Qt.jsx(zk,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},$k=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:SA.SelectMultiEnd})};r({type:SA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:SA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:SA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),Bk=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=zI(OI,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=zI(OI,(e=>e.baseProps)),u=zI(OI,(e=>e.setFocusedCellCoord)),c=zI(OI,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{ND({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===KC.Shift&&t({type:SA.SelectMultiEnd})})(e,c)},m=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;AD([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}=$k(m,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:h,onMouseUp:b,onMouseOver:g}},Vk=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=xA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?xA.Disabled:n.has(e.qElemNumber)?xA.Selected:xA.Possible),i},Wk=(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},Uk=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},Gk=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return Uk(t,e,n?"even":"odd")}return e},Yk=(e,t)=>{const{styleService:r}=zI(OI,(e=>e.baseProps)),n=zI(OI,(t=>Vk(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=Gk(o,r,e),o=Wk(o,r,e);const i=wI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===xA.Selected?{...e,...r}:t===xA.Disabled?{...e,background:`${qA}, ${e.background}`}:e}(C((()=>e.isNull?o:wI(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}},Kk=oc(Im,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),Xk=oc(Km,{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}}}))),Jk=oc(qm,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...jA,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),Zk=oc(qm,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...jA,...e,fontWeight:NA,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}))),Qk=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=zI(OI,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=Bk(e,t),{cellStyle:f,representationStyle:m,cellSelectionState:h}=Yk(e,r);return Qt.jsx(Jk,{cellStyle:f,scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${YC}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:Qt.jsx(Hk,{cell:e,style:m,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:VA(s,e.align)})})},eT=(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}),tT=()=>{const{columns:e,totalsPosition:t,rows:r}=zI(OI,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:s,direction:l}=zI(OI,(e=>e.baseProps)),u=zI(OI,(e=>e.headRowHeight)),c=zI(OI,(e=>e.setFocusedCellCoord)),d=!!o?.isModal(),p=!!s.active;return Qt.jsx(Km,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return Qt.jsx(Zk,{totalsStyle:{...a.totalRow,...eT(a,t,!1)},headRowHeight:u,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${YC}`,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 KC.C:TD(r);break;case KC.Space:r.preventDefault();break;default:qD(e)}else PC(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:l})},onMouseDown:()=>{AD(f,n,c,i)},children:Qt.jsx(bk,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var rT=L(tT);const nT=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=zI(OI,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=zI(OI,(e=>e.baseProps)),c=zI(OI,(e=>e.selectionDispatch)),d=!!vI(l)?.content?.hoverEffect;GD({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 VD(t)})(t),f=UD();return Qt.jsxs(Kk,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?Qt.jsx(rT,{}):void 0,n.map(((e,t)=>Qt.jsx(Xk,{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 Qt.jsx(Qk,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?Qt.jsx(rT,{}):void 0]})};var oT=L(nT);const iT=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,aT=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),sT=oc(qm,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...jA,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),lT=oc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:OA,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),uT=parseInt(OA,10)/2,cT=oc("div")({position:"absolute",bottom:-uT,left:`calc(50% - ${uT}px)`}),dT=({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}=zI(OI,(e=>e.baseProps)),m=zI(OI,(t=>t.columnWidths[e.pageColIdx])),h=zI(OI,(e=>e.baseProps.model)),g=k(null),b=k(null),v=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=NC({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:NA});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?Qt.jsx(yM,{height:OA,"data-testid":"head-cell-sort-ascending-icon"}):Qt.jsx(wM,{height:OA,"data-testid":"head-cell-sort-descending-icon"}),a=r?Qt.jsx(lT,{align:t,dir:o,children:i}):void 0,s=n?Qt.jsx(JA,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Qt.jsx(aT,{height:OA,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(e,v,f);return Qt.jsxs(XA,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:BA(e,o,f),children:[S,Qt.jsxs(KA,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:f,isPagination:o,children:[y,Qt.jsx(bk,{forwardRef:i,isPagination:o,isHeadCell:!0,children:e.label}),x]}),t?Qt.jsxs(Qt.Fragment,{children:[Qt.jsx(NM,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:a,anchorRef:g,menuAvailabilityFlags:{[qM.Sorting]:!0,[qM.Searching]:!0,[qM.Selections]:!0,[qM.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:RD},shouldShowMenuIcon:v.shouldShowMenuIcon,model:h,direction:f,isPagination:o,isAccessibleHeader:!0}),Qt.jsx(YA,{ref:b,direction:f,isPagination:o}),Qt.jsx(YA,{ref:g,direction:f})]}):null]})},pT=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=zI(OI,(e=>e.baseProps)),c=zI(OI,(e=>e.columnWidths)),d=zI(OI,(e=>e.setColumnWidths));if(!s.active)return null;return Qt.jsx(VI,{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=>{wD(e);const t=e.closest(".sn-table-cell");ED(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},fT=q(((e,t)=>Qt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Qt.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"})}))),mT=(e,t)=>e.isCyclic&&t,hT=({column:e})=>{const{direction:t,model:r,styleService:n}=zI(OI,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=UI({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return Qt.jsxs(Qt.Fragment,{children:[Qt.jsx(QA,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,onClick:e=>{e.stopPropagation(),a(!0)},children:Qt.jsx(fT,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),Qt.jsx(fM,{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:CM,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},gT=e=>e.isLocked,bT=({column:e})=>{const t=zI(OI,(e=>e.baseProps.app)),r=zI(OI,(e=>e.baseProps.layout.qStateName)),n=zI(OI,(e=>e.baseProps.styleService));return Qt.jsx(QA,{hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=hM(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:Qt.jsx(aT,{height:16,"data-testid":"head-cell-lock-icon"})})},vT=({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}=zI(OI,(e=>e.baseProps)),p=zI(OI,(e=>e.baseProps.model)),f=x.useRef(null),m=x.useRef(null);return Qt.jsxs(QA,{hoverBackground:d.headerMenuHoverBackground,activeBackground:d.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[Qt.jsx(NM,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:o,anchorRef:f,menuAvailabilityFlags:{[qM.Sorting]:!0,[qM.Searching]:!0,[qM.Selections]:!0,[qM.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:RD},shouldShowMenuIcon:!0,model:p,direction:l,isPagination:n,isAccessibleHeader:!1,iconSize:16}),Qt.jsx(YA,{ref:m,direction:l,isPagination:n}),Qt.jsx(YA,{ref:f,direction:l})]})},yT=oc(Yd)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),xT=({children:e})=>{const t=x.useRef(null),[r,n]=w((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=C((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=T((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach((e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)})),n((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[o]);return jD(t,i),Qt.jsx(yT,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})};xT.Item=({children:e})=>e;const ST=(e,t)=>!e.isLocked&&e.isDim&&t,wT=({column:e,open:t,setOpen:r})=>{const{embed:n,app:o,direction:i,layout:a,styleService:s}=zI(OI,(e=>e.baseProps)),l=x.useRef(null),u=T((()=>{r(!1)}),[r]),c=mM({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:l},selectionRelatedArgs:{qStateName:a.qStateName},direction:i,onPopoverClose:u});return Qt.jsx(QA,{hoverBackground:s.headerMenuHoverBackground,activeBackground:s.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:Qt.jsx(AM,{ref:l,height:16,"data-testid":"head-cell-search-icon"})})},CT=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?Qt.jsx(Nk,{height:OA,"data-testid":"head-cell-sort-ascending-icon"}):Qt.jsx(qk,{height:OA,"data-testid":"head-cell-sort-descending-icon"});return r?Qt.jsx(cT,{children:n}):void 0},ET=0,RT=1,PT=2,AT=3,IT=({column:e,open:t,setOpen:r,isPagination:n,forwardRef:o})=>{const{styleService:i}=zI(OI,(e=>e.baseProps)),a=(()=>{const e=zI(OI,(e=>e.baseProps.interactions.active)),t=zI(OI,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:s}=NC(i.header),[l,u]=x.useState(!1);return Qt.jsxs(xT,{children:[Qt.jsx(xT.Item,{prio:PT,minWidth:GA,children:gT(e)?Qt.jsx(bT,{column:e}):null},"Lock"),Qt.jsx(xT.Item,{prio:RT,minWidth:GA,children:mT(e,a)?Qt.jsx(hT,{column:e}):null},"Cyclic"),Qt.jsx(xT.Item,{ignore:!0,children:Qt.jsx(CT,{column:e})},"Sort"),Qt.jsx(xT.Item,{minWidth:s(e.label)+8,children:Qt.jsx(ZA,{justifyContent:e.headTextAlign,children:Qt.jsx(bk,{forwardRef:o,isPagination:n,isHeadCell:!0,children:e.label})})},"Text"),Qt.jsx(xT.Item,{prio:ET,minWidth:GA,children:l||ST(e,a)?Qt.jsx(wT,{open:l,setOpen:u,column:e}):null},"Search"),Qt.jsx(xT.Item,{prio:AT,minWidth:GA,children:a?Qt.jsx(vT,{column:e,open:t,setOpen:r,isPagination:n}):null},"Menu")]})},MT=()=>{const{flags:e}=zI(OI,(e=>e.env)),t=zI(OI,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},DT=e=>e.target?.getAttribute("class")?.includes(XC),kT=({isInteractionEnabled:e,column:t})=>{const[r,n]=w(!1),{changeSortOrder:o}=zI(OI,(e=>e.baseProps)),i=zI(OI,(e=>e.isAdjustingWidth)),a=zI(OI,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||DT(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!DT(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}},TT=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=zI(OI,(e=>e.baseProps)),{columns:l,totalsPosition:u}=zI(OI,(e=>e.tableData)),c=zI(OI,(e=>e.columnWidths[t])),d=zI(OI,(e=>e.baseProps.selectionsAPI?.isModal())),p=zI(OI,(e=>e.setFocusedCellCoord)),f=zI(OI,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),m=!!n.active&&!d,{open:h,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=kT({isInteractionEnabled:m,column:e}),x=MT(),S=x?dT:IT,w=e.isActivelySorted?wA[e.sortDirection]:void 0,C=h?GC: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 Qt.jsxs(sT,{headerStyle:{...a.header,...eT(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 ${YC}`,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 KC.C:TD(r);break;case KC.Enter:case KC.Space:n?.(r);break;default:qD(e)}else PC(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&&AD(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:[Qt.jsx(S,{column:e,isInteractionEnabled:m,open:h,setOpen:g,isPagination:!0}),Qt.jsx(pT,{column:e,isLastColumn:R,setIsAdjustingWidth:v})]},e.id)},qT=()=>{const{columns:e}=zI(OI,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=zI(OI,(e=>e.baseProps)),o=zI(OI,(e=>e.setHeadRowHeight)),i=zI(OI,(e=>e.columnWidths)),a=k(null),s=iT(r,n);return E((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),Qt.jsx(Bm,{style:{visibility:s?"collapse":void 0},children:Qt.jsx(Km,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>Qt.jsx(TT,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var LT=L(qT);const OT=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}=zI(OI,(e=>e.tableData)),{rootElement:f,keyboard:m,translator:h,theme:g,interactions:b,styleService:v,viewService:y,layout:x,rect:S,direction:w}=zI(OI,(e=>e.baseProps)),C=zI(OI,(e=>e.setYScrollbarWidth)),R=zI(OI,(e=>e.showRightBorder)),P=zI(OI,(e=>e.selectionDispatch)),A=zI(OI,(e=>e.baseProps.selectionsAPI?.isModal())),I=k(!1),M=k(null),D=k(null),{yScrollbarWidth:q}=zD(M),L=`${h.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${h.get("SNTable.Accessibility.NavigationInstructions")}`,O=TP(x,y),N=O?y.scrollLeft??0:0,_=O?y.rowPartialHeight??0:0,j=T((()=>{I.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),z=T((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),F=T((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return kD(M,w,y),((e,t)=>{const{keyboard:r}=zI(OI,(e=>e.baseProps));E((()=>{const n=e.current;if(!n)return;const o=e=>{ID(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(D,I),(()=>{const{rootElement:e,keyboard:t}=zI(OI,(e=>e.baseProps)),r=zI(OI,(e=>e.focusedCellCoord));FC((()=>{const n=xD(e,r);t.active?ED(n):(n?.blur(),CD(e))}),[t.active,e])})(),DD(I,o,i),E((()=>{const e=M.current;e&&(e.scrollLeft=N,e.scrollTop=_)}),[t,l,N,_]),gD((()=>{C(q)}),[q]),gD((()=>{P({type:SA.UpdatePageRows,payload:{pageRows:d}})}),[d]),MD(),Qt.jsxs(mD,{ref:D,background:g.background,dir:w,onKeyDown:e=>{OD({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:z,updateShouldRefocus:j,keyboard:m,isSelectionMode:A})},"data-testid":"sn-table",children:[Qt.jsx(BD,{}),Qt.jsx(HD,{ref:M,className:"sn-table-container",fullHeight:!!n||!b.active||!c,interactions:b,tabIndex:-1,role:"application","data-testid":"table-container",children:Qt.jsxs($D,{stickyHeader:!0,"aria-label":L,borderRight:R?`1px solid ${v.grid.border}`:void 0,children:[Qt.jsx(LT,{}),Qt.jsx(oT,{...e,updateShouldRefocus:j,tableWrapperRef:D})]})}),Qt.jsx(pD,{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 NT=L(OT);function _T(){return _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},_T.apply(null,arguments)}function jT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zT(e,t){return zT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zT(e,t)}function FT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zT(e,t)}var HT=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function $T(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||HT(n)&&HT(o)))return!1;var n,o;return!0}function BT(e,t){var r;void 0===t&&(t=$T);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 VT(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 WT="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function UT(e){cancelAnimationFrame(e.id)}function GT(e,t){var r=WT();var n={id:requestAnimationFrame((function o(){WT()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var YT=-1;function KT(e){if(void 0===e&&(e=!1),-1===YT||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),YT=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return YT}var XT=null;function JT(e){if(void 0===e&&(e=!1),null===XT||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?XT="positive-descending":(t.scrollLeft=1,XT=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),XT}return XT}var ZT=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function QT(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,jT(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:jT(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=BT((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=BT((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=BT((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(JT()){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&&UT(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=GT(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}FT(t,e),t.getDerivedStateFromProps=function(e,t){return eq(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=KT();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(JT()){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&&UT(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?ZT: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:_T({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}(O),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var eq=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},tq=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},rq=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},nq=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]},oq=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?iq(e,t,r,i,0,n):aq(e,t,r,Math.max(0,i),n)},iq=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=nq(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},aq=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&nq(e,t,n,r).offset<o;)n+=a,a*=2;return iq(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},sq=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=nq(e,t,r,i),u="column"===e?rq(t,i):tq(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}},lq=QT({getColumnOffset:function(e,t,r){return nq("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return oq("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=nq("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=nq("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:tq,getEstimatedTotalWidth:rq,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return sq("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return sq("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return nq("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return oq("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=nq("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=nq("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}}),uq=function(e,t){return e};function cq(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,jT(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:jT(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=BT((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=BT((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=BT((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(JT()){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&&UT(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=GT(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}FT(t,e),t.getDerivedStateFromProps=function(e,t){return dq(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?KT():0:l.scrollHeight>l.clientHeight?KT():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(JT()){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&&UT(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?uq: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:_T({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}(O),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var dq=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},pq=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]},fq=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=pq(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},mq=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&pq(e,r,t).offset<n;)r+=i,i*=2;return fq(e,t,Math.min(r,o-1),Math.floor(r/2),n)},hq=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},gq=cq({getItemOffset:function(e,t,r){return pq(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:hq,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=pq(e,t,o),p=hq(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?fq(e,t,o,0,r):mq(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=pq(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=pq(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 bq(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 vq=["style"],yq=["style"];function xq(e,t){var r=e.style,n=VT(e,vq),o=t.style,i=VT(t,yq);return!bq(r,o)&&!bq(n,i)}const Sq=({style:e})=>Qt.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var wq=x.memo(Sq,xq);const Cq=()=>{},Eq=e=>{e.preventDefault()};const Rq=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=zI(OI,(e=>e.hoverIndex===t)),d=zI(OI,(e=>e.setHoverIndex)),{interactions:p,styleService:f,direction:m}=zI(OI,(e=>e.baseProps)),h=zI(OI,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=zI(OI,(e=>e.baseProps)),r=zI(OI,(e=>e.selectionDispatch)),n="object"==typeof e,o=zI(OI,(t=>n?Vk(e,t.selectionState):xA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=$k(Eq,e,r,Cq);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=k(null),i=r&&!r.isNumeric,a=T((r=>{const o=_D(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return jD(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=Gk(o,i,e);a=Wk(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?wI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===xA.Selected?{...s,...i.selectedColors}:n===xA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${qA}, ${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 Qt.jsx("div",{className:`sn-table-cell ${x} ${YC}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:WA(m,g.isLastColumn,h),borderLeftWidth:UA(m,g.isLastColumn,h),justifyContent:HA(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:Qt.jsx(Hk,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})}return Qt.jsx(wq,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var Pq=L(Rq,xq);const Aq=e=>{const t=k(e);return t.current=e,t},Iq=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,Mq=(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},Dq=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},kq=(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=CP(m,e,a),C=!m&&e.qIsNull,E=C?DR(w):MR(e);f[r]={id:PR(),...e,align:DP(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)&&wP(e,m),representation:SP({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[DE.Image]:!0,[DE.Indicator]:!0,[DE.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}))}))},Tq=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=zI(OI,(e=>e.env)),{direction:p}=zI(OI,(e=>e.baseProps)),f=k([]),m=T(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return kq(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[h,g]=w((()=>m(n??[])));FC((()=>{g(m(n??[]))}),[n,p]);const b=((e,t)=>{const r=k(new Set),n=k(new Set),o=k(new Set),i=Aq(e),a=Aq(t),s=C((()=>({enqueue:e=>{const t=Iq(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(Iq(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=T(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(Dq(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(Mq(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}},qq=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},Lq=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,Oq=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=zI(OI,(e=>e.baseProps.styleService)),i=zI(OI,(e=>e.columnWidths)),{estimateLineCount:a}=NC(o.dimension.values),s=DI(o.dimension.values.fontSize),l=e||t||1===r;return T(((e,t,o)=>{if(l||e.representation.type===DE.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])},Nq=({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]),_q=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=zI(OI,(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}=zI(OI,(e=>e.baseProps)),o=zI(OI,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;FC((()=>{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]),FC((()=>{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})=>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(!Lq(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,qq(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:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:Oq({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:T((e=>c?m:a.rowHeights.get(e)??u),[c,u,a.rowHeights,m]),totalRowHeight:Nq({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:r}),lineClamp:f}},jq=(e,t)=>{_((()=>()=>{t(0)}),[e,t]);const r=T((e=>{const r=_D(e);void 0!==r&&t(r)}),[t]);jD(e,r)};let zq=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const Fq=({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:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=zq.None,i=zq.None;return o=n>t?zq.Down:n<t?zq.Up:zq.None,i=r>e?zq.Right:r<e?zq.Left:zq.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===zq.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===zq.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===zq.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===zq.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]),Hq={enabled:!1},$q=()=>{},Bq={current:null};const Vq=(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}},Wq=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},Uq={overflow:"hidden",willChange:"auto"};var Gq=L(q(((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}=zI(OI,(e=>e.baseProps)),f=zI(OI,(e=>e.columnWidths)),m=zI(OI,(e=>e.initialDataPages)),h=k(null),g=k(null),b=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=k(0),y=!!vI(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=Vq(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:R,setEstimatedCellHeight:P,getRowHeight:A,lineClamp:I,totalRowHeight:M}=_q({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:h,pageInfo:o}),{rowsInPage:D,loadRows:T,loadColumns:q}=Tq({layout:s,model:l,theme:u,initialDataPages:m,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:P}),L=Fq({layout:s,loadRows:T,loadColumns:q,rowCount:x,pageInfo:o,gridState:b,viewService:c}),O=UD(),N=C((()=>({rowsInPage:D,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:R,resizeObserverTaskScheduler:O})),[D,n,y,I,R,O]),z=((e,t,r)=>Math.min(e.height-t,r))(r,i,M);return _((()=>{1===v.current&&h.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=zI(OI,(e=>e.baseProps)),r=zI(OI,(e=>e.selectionDispatch));E((()=>{r({type:SA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),GD({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:$q,keyboard:Hq,tableWrapperRef:Bq})}(D),j(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??z)-z,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,z,x]),jq(g,a),Qt.jsx(lq,{"data-key":"body",ref:h,innerRef:g,style:Uq,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:z,rowCount:x,rowHeight:A,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:N,onItemsRendered:L,itemKey:Wq,className:"sn-table-body",direction:p,children:Pq})})));const Yq=({width:e,height:t,children:r})=>Qt.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),Kq=(e,t)=>{const r=k(null),n=zI(OI,(e=>e.columnWidths));_((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=T((r=>{const n=_D(r);n&&t(n+9,e)}),[e,t]);return jD(r,o),r},Xq=oc("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}}))),Jq=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=zI(OI,(e=>e.baseProps)),u=zI(OI,(e=>e.baseProps.selectionsAPI?.isModal())),c=zI(OI,(e=>e.showRightBorder)),d=zI(OI,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=kT({isInteractionEnabled:p,column:f}),y=MT(),x=Kq(e,i),S=n.length-1===e,w=y?dT:IT;return Qt.jsxs(Xq,{className:`sn-table-cell ${YC}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...eT(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:WA(l,S,c),borderLeftWidth:UA(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:[Qt.jsx(w,{forwardRef:x,column:f,isInteractionEnabled:p,open:m,setOpen:h}),Qt.jsx(pT,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},Zq=e=>{const[t,r]=w(new Map);FC((()=>{r(new Map)}),[e.length]);const n=T(((e,t)=>{r((r=>Lq(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>qq(t)),[t]),setMeasuredCellHeight:n}},Qq=(e,t)=>{j(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},eL=(e,t,r,n,o)=>{FC((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},tL={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},rL=q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=x.useRef(null),l=k(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=zI(OI,(e=>e.baseProps)),m=zI(OI,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:g}=Zq(n),b=iT(f,u);return Qq(t,s),eL(s,u,o,m,c),jq(l,a),Qt.jsx(gq,{ref:s,outerRef:l,layout:"horizontal",style:{...tL,...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:Jq})}));var nL=L(rL);const oL=q(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=zI(OI,(e=>e.baseProps));return Qt.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,children:r})})),iL=({children:e,rect:t})=>{const{direction:r}=zI(OI,(e=>e.baseProps));return Qt.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})},aL=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=zI(OI,(e=>e.baseProps)),c=zI(OI,(e=>e.showRightBorder)),d=Kq(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:m}=n[e],h=a.qHyperCube.qSize.qcx-1===e;return Qt.jsx("div",{className:`sn-table-cell ${YC}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...eT(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:WA(u,h,c),borderLeftWidth:UA(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:Qt.jsx(bk,{forwardRef:m?void 0:d,isNumeric:m,children:p})})},sL=q(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=k(null),l=k(null),{layout:u,theme:c,styleService:d,direction:p}=zI(OI,(e=>e.baseProps)),f=zI(OI,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:h}=Zq(i);return Qq(t,s),eL(s,u,n,f,c),jq(l,a),Qt.jsx(gq,{ref:s,outerRef:l,layout:"horizontal",style:tL,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:aL})}));var lL=L(sL);const uL=(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]),cL=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=zI(OI,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=zI(OI,(e=>e.baseProps)),c=zI(OI,(e=>e.columnWidths)),d=zI(OI,(e=>e.setYScrollbarWidth)),p=k(null),f=k(null),m=k(null),h=k(null),{xScrollbarWidth:g,yScrollbarWidth:b}=zD(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}=Vq(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}=zI(OI,(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=uL(f,m,h,l,u),q=T((()=>{p.current&&(p.current.scrollTop=0)}),[p]);MD(),_((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),_((()=>{p.current&&(p.current.scrollTop=0)}),[t,x,a]),gD((()=>{d(b)}),[b]);const L=Qt.jsx(lL,{rect:y,pageInfo:t,columns:n,ref:m,totals:r,setTotalsRowHeight:P},"totals");return Qt.jsx(oL,{ref:p,width:v.width,height:v.height,onScroll:D,children:Qt.jsx(Yq,{width:I,height:M,children:Qt.jsxs(iL,{rect:y,children:[Qt.jsx(nL,{rect:y,pageInfo:t,columns:n,ref:f,columResizeHandler:q,setHeaderRowHeight:R}),r.atTop?L:null,Qt.jsx(Gq,{ref:h,rect:y,pageInfo:t,columns:n,headerAndTotalsHeight:S,setInnerBodyHeight:A}),r.atBottom?L:null]})})})};var dL=L(cL);const pL=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=zI(OI,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=zI(OI,(e=>e.tableData)),c=zI(OI,(e=>e.pageInfo)),d=zI(OI,(e=>e.setPage));return Qt.jsxs(mD,{"data-testid":"sn-table",background:e.background,children:[Qt.jsx(dL,{pageInfo:c}),Qt.jsx(pD,{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 fL=L(pL);var mL={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 hL=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(mL).forEach((t=>{e.add(mL[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(`.${CA.First}`),s=e.querySelector(`.${CA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===CA.First?(l=s,r=CA.Second):(l=a,r=CA.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(t,r))),[t,r.language()]),gL={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},bL=e=>{const{app:r,model:i,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:m}=t(),h=qP(s,d),g=hL(a,l),[b,v]=n(((e,t)=>TP(e,t)?{page:t.page||gL.page,rowsPerPage:t.rowsPerPage||gL.rowsPerPage,rowsPerPageOptions:gL.rowsPerPageOptions}:gL)(s,d)),[y,x]=qC((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>EP)return n({...r,rowsPerPage:RP(d,c),page:0}),null;const g=p>10,b=PP(t,o),v=kP(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=CP(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?DR(c):MR(u);n[l]={id:PR(),...u,align:DP(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)&&wP(u,o.isDim),representation:SP({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[DE.Image]:!0,[DE.Indicator]:!0,[DE.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(i,s,b,v,d,p,!0,f):null),[s,b,i,h,f]);o((()=>{h&&e.model&&e.changeSortOrder&&y&&c&&!x&&function(e,t){const{direction:r,...n}=e,o=FI(r);t.render(Qt.jsx(ai,{stylisPlugins:"rtl"===r?[yA]:void 0,children:Qt.jsx(ac,{theme:o,children:Qt.jsx(jI,{...e,children:Qt.jsx(NT,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:y,pageInfo:b,setPageInfo:v,direction:f,footerContainer:m,announce:g},u)}),[g,r,f,m,c,b,u,e,h,y,x])},vL=(t,r)=>e((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const yL=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=qC((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(eI,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return[...n]})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},xL=t=>{const{layout:r,model:i,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=t,p=!qP(r,c),[f,m]=n(!1);f&&m(!1);const h=e((()=>function(e,t,r,n,o){const i=kP(e,o,n),a=PP(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(eI,s),u=s>eI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(r,s,c,d,f)),[r,s,c,d,f]),{pageInfo:g,setPage:b}=((t,r)=>{const[o,i]=n(0),a=Math.min(eI,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/eI);e<o&&i(e)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=yL({model:i,layout:r,page:g.page,shouldRender:p});o((()=>{p&&a.active&&a.blur?.(!1)}),[a,p]),o((()=>{p&&t.model&&t.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=FI(r);t.render(Qt.jsx(x.StrictMode,{children:Qt.jsx(ac,{theme:n,children:Qt.jsx(jI,{...e,children:Qt.jsx(fL,{})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:h,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,t,b,p,h])},SL={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:[]};function wL(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 CL=(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]}},EL=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const RL=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||gL.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},PL=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=PP(e,t);if(qP(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=wL(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:RL(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=CL(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=(EL(m,h,g)?d:d+1)+c;let v=p+c;const y=CL(p,o),x=y?.getBoundingClientRect();return y&&x&&(EL(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:RL(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},AL=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),IL=e=>e.getStyle("object","straightTableV2","backgroundColor");function ML(r){return{qae:{properties:{initial:SL},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>CE({...e}),exportProperties:bE,exploration:EE},ext:vR(r),component(){const n=c(),i=(t=>{const r=e((()=>_C(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(n),y=d(),x=p(),S=f(),w=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!y.snapshotData),C=m(),E=h(),R=g(),P=t(),{freeResize:A}=P,I=b(),M=e((()=>y.snapshotData?.content&&!A?{...I,...y.snapshotData.content.size}:I),[I,A,y.snapshotData?.content]),D=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(y),k=v(),T=TC(y,n,AL,IL),q=P.direction,L=vL(y.qHyperCube,S),O=yR(y.qHyperCube,S),N=((e,t,r)=>{const[,n,o]=qC((async()=>{const t=ge(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,zC].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(T,y,r),_=Mt(),j={app:x,layout:y,model:S,rect:M,theme:T,keyboard:R,translator:C,interactions:w,selectionsAPI:E,changeSortOrder:L,rootElement:n,embed:k,reactRoot:i,applyColumnWidths:O,isFontLoaded:N,downloadService:_,viewService:D,direction:q,env:r};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${YC}`);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()=>{oE(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=PL(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})),u((()=>({getViewState:()=>PL(e,t,n)})),[e,t,n])})({layout:y,viewService:D,model:S,rootElement:n,contentRect:I}),xL(j),bL(j)}}}export{ML as default};
|