UNPKG

@nebula.js/sn-table

Version:

Display several measure values for each dimension value. Show the totals for each measure. Sort columns and rows alphabetically or numerically. Change sorting during analysis. Chart exploration allows for adding and removing columns in analysis.

9 lines (8 loc) 839 kB
/* * @nebula.js/sn-table v5.0.0 * Copyright (c) 2025 QlikTech International AB * Released under the MIT license. */ 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 E,useEffect as w,createElement as R,isValidElement as A,cloneElement as k,Children as P,useReducer as I,createContext as L,useRef as M,useCallback as _,forwardRef as D,memo as T,useLayoutEffect as O,PureComponent as q,startTransition 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 G(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 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 V(...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 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 U(e){let t,r,n=0;const o="string"==typeof e?V(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?V(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?G(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(V(e))}function J(e){return H(e)?1===e.a?K(e):X(e):J(V(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=V(...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=V(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=V(...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?G(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?V(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 Ee(){return this.rgb().formatHex()}function we(){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 Le(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ke(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ke(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ge.exec(e))?new Le(t[1],t[2],t[3],1):(t=be.exec(e))?new Le(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ve.exec(e))?ke(t[1],t[2],t[3],t[4]):(t=ye.exec(e))?ke(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 Le(NaN,NaN,NaN,0):null}function Ae(e){return new Le(e>>16&255,e>>8&255,255&e,1)}function ke(e,t,r,n){return n<=0&&(e=t=r=NaN),new Le(e,t,r,n)}function Pe(e){return e instanceof ce||(e=Re(e)),e?new Le((e=e.rgb()).r,e.g,e.b,e.opacity):new Le}function Ie(e,t,r,n){return 1===arguments.length?Pe(e):new Le(e,t,r,null==n?1:n)}function Le(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Me(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function _e(){const e=De(this.opacity);return`${1===e?"rgb(":"rgba("}${Te(this.r)}, ${Te(this.g)}, ${Te(this.b)}${1===e?")":`, ${e})`}`}function De(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Te(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=Te(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:Ee,formatHex:Ee,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ne(this).formatHsl()},formatRgb:we,toString:we}),le(Le,Ie,ue(ce,{brighter(e){return e=null==e?de:Math.pow(de,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Le(Te(this.r),Te(this.g),Te(this.b),De(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:Me,formatHex:Me,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:_e,toString:_e})),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 Le($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),De(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=De(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,Ge=4/29,We=6/29,Ve=3*We*We;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 Le||(e=Pe(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/Ve+Ge}function Xe(e){return e>We?e*e*e:Ve*(e-Ge)}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 Le(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=Ie(e)).r,(t=Ie(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){ /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */ 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!==n,{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 Et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wt(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 kt(){}kt.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:kt,resetWarningCache:At};return r.PropTypes=r,r}();var Pt=Et(Rt.exports),It=(Pt.element,function(){return null});It.isRequired=(Pt.element.isRequired,function(){return null});var Lt=function(){return null};function Mt(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 _t(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 Dt={exports:{}},Tt={},Ot=60103,qt=60106,Nt=60107,jt=60108,zt=60114,Ft=60109,$t=60110,Bt=60112,Ht=60113,Gt=60120,Wt=60115,Vt=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"),Gt=Zt("react.suspense_list"),Wt=Zt("react.memo"),Vt=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 Gt:return e;default:switch(e=e&&e.$$typeof){case $t:case Bt:case Vt:case Wt:case Ft:return e;default:return t}}case qt:return t}}}var er=Ft,tr=Ot,rr=Bt,nr=Nt,or=Vt,ir=Wt,ar=qt,sr=zt,lr=jt,ur=Ht;Tt.ContextConsumer=$t,Tt.ContextProvider=er,Tt.Element=tr,Tt.ForwardRef=rr,Tt.Fragment=nr,Tt.Lazy=or,Tt.Memo=ir,Tt.Portal=ar,Tt.Profiler=sr,Tt.StrictMode=lr,Tt.Suspense=ur,Tt.isAsyncMode=function(){return!1},Tt.isConcurrentMode=function(){return!1},Tt.isContextConsumer=function(e){return Qt(e)===$t},Tt.isContextProvider=function(e){return Qt(e)===Ft},Tt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ot},Tt.isForwardRef=function(e){return Qt(e)===Bt},Tt.isFragment=function(e){return Qt(e)===Nt},Tt.isLazy=function(e){return Qt(e)===Vt},Tt.isMemo=function(e){return Qt(e)===Wt},Tt.isPortal=function(e){return Qt(e)===qt},Tt.isProfiler=function(e){return Qt(e)===zt},Tt.isStrictMode=function(e){return Qt(e)===jt},Tt.isSuspense=function(e){return Qt(e)===Ht},Tt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Nt||e===zt||e===Xt||e===jt||e===Ht||e===Gt||e===Jt||"object"==typeof e&&null!==e&&(e.$$typeof===Vt||e.$$typeof===Wt||e.$$typeof===Ft||e.$$typeof===$t||e.$$typeof===Bt||e.$$typeof===Kt||e.$$typeof===Ut||e[0]===Yt)},Tt.typeOf=Qt,Dt.exports=Tt;var cr=Dt.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=Pt.oneOfType([Pt.func,Pt.object]),gr=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:vt,deepmerge:Ct,elementAcceptingRef:It,elementTypeAcceptingRef:Lt,exactProp:function(e){return e},formatMuiErrorMessage:_t,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(_t(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(t.includes(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],t.includes(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 Er(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 wr(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 kr(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 Pr(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Ir(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Pr(e.theme,o)||{};return kr(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Pr(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Mt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)}))};return a.propTypes={},a.filterProps=[t],a}function Lr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce((function(t,r){var n=r(e);return n?wr(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function Mr(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var _r=Ir({prop:"border",themeKey:"borders",transform:Mr}),Dr=Ir({prop:"borderTop",themeKey:"borders",transform:Mr}),Tr=Ir({prop:"borderRight",themeKey:"borders",transform:Mr}),Or=Ir({prop:"borderBottom",themeKey:"borders",transform:Mr}),qr=Ir({prop:"borderLeft",themeKey:"borders",transform:Mr}),Nr=Ir({prop:"borderColor",themeKey:"palette"}),jr=Ir({prop:"borderRadius",themeKey:"shape"}),zr=Lr(_r,Dr,Tr,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({},wr(r,e(yt({theme:t.theme},t.css))),Fr(t.css,[e.filterProps])):t.sx?yt({},wr(r,e(yt({theme:t.theme},t.sx))),Fr(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(Er(e.filterProps)),t}var Br=Lr(Ir({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Ir({prop:"display"}),Ir({prop:"overflow"}),Ir({prop:"textOverflow"}),Ir({prop:"visibility"}),Ir({prop:"whiteSpace"})),Hr=Ir({prop:"flexBasis"}),Gr=Ir({prop:"flexDirection"}),Wr=Ir({prop:"flexWrap"}),Vr=Ir({prop:"justifyContent"}),Ur=Ir({prop:"alignItems"}),Yr=Ir({prop:"alignContent"}),Kr=Ir({prop:"order"}),Xr=Ir({prop:"flex"}),Jr=Ir({prop:"flexGrow"}),Zr=Ir({prop:"flexShrink"}),Qr=Ir({prop:"alignSelf"}),en=Ir({prop:"justifyItems"}),tn=Ir({prop:"justifySelf"}),rn=Lr(Hr,Gr,Wr,Vr,Ur,Yr,Kr,Xr,Jr,Zr,Qr,en,tn),nn=Ir({prop:"gridGap"}),on=Ir({prop:"gridColumnGap"}),an=Ir({prop:"gridRowGap"}),sn=Ir({prop:"gridColumn"}),ln=Ir({prop:"gridRow"}),un=Ir({prop:"gridAutoFlow"}),cn=Ir({prop:"gridAutoColumns"}),dn=Ir({prop:"gridAutoRows"}),pn=Ir({prop:"gridTemplateColumns"}),fn=Ir({prop:"gridTemplateRows"}),hn=Ir({prop:"gridTemplateAreas"}),mn=Ir({prop:"gridArea"}),gn=Lr(nn,on,an,sn,ln,un,cn,dn,pn,fn,hn,mn),bn=Ir({prop:"color",themeKey:"palette"}),vn=Ir({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),yn=Lr(bn,vn),xn=Ir({prop:"position"}),Sn=Ir({prop:"zIndex",themeKey:"zIndex"}),Cn=Ir({prop:"top"}),En=Ir({prop:"right"}),wn=Ir({prop:"bottom"}),Rn=Ir({prop:"left"}),An=Lr(xn,Sn,Cn,En,wn,Rn),kn=Ir({prop:"boxShadow",themeKey:"shadows"});function Pn(e){return e<=1?"".concat(100*e,"%"):e}var In=Ir({prop:"width",transform:Pn}),Ln=Ir({prop:"maxWidth",transform:Pn}),Mn=Ir({prop:"minWidth",transform:Pn}),_n=Ir({prop:"height",transform:Pn}),Dn=Ir({prop:"maxHeight",transform:Pn}),Tn=Ir({prop:"minHeight",transform:Pn}),On=Ir({prop:"size",cssProperty:"width",transform:Pn}),qn=Ir({prop:"size",cssProperty:"height",transform:Pn}),Nn=Ir({prop:"boxSizing"}),jn=Lr(In,Ln,Mn,_n,Dn,Tn,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]})),Gn=["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 Wn(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 Vn(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=Wn(e.theme);return Object.keys(e).map((function(r){if(-1===Gn.indexOf(r))return null;var n=Vn(Hn(r),t),o=e[r];return kr(e,o,n)})).reduce(wr,{})}Un.propTypes={},Un.filterProps=Gn;var Yn=Ir({prop:"fontFamily",themeKey:"typography"}),Kn=Ir({prop:"fontSize",themeKey:"typography"}),Xn=Ir({prop:"fontStyle",themeKey:"typography"}),Jn=Ir({prop:"fontWeight",themeKey:"typography"}),Zn=Ir({prop:"letterSpacing"}),Qn=Ir({prop:"lineHeight"}),eo=Ir({prop:"textAlign"}),to=Lr(Yn,Kn,Xn,Jn,Zn,Qn,eo),ro=Object.freeze({__proto__:null,alignContent:Yr,alignItems:Ur,alignSelf:Qr,bgcolor:vn,border:_r,borderBottom:Or,borderColor:Nr,borderLeft:qr,borderRadius:jr,borderRight:Tr,borderTop:Dr,borders:zr,bottom:wn,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 wr(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Er(e.filterProps)),t},color:bn,compose:Lr,createUnarySpacing:Wn,css:function(e){return $r(e)},display:Br,flex:Xr,flexBasis:Hr,flexDirection:Gr,flexGrow:Jr,flexShrink:Zr,flexWrap:Wr,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:_n,justifyContent:Vr,justifyItems:en,justifySelf:tn,left:Rn,letterSpacing:Zn,lineHeight:Qn,maxHeight:Dn,maxWidth:Ln,minHeight:Tn,minWidth:Mn,order:Kr,palette:yn,position:xn,positions:An,right:En,shadows:kn,sizeHeight:qn,sizeWidth:On,sizing:jn,spacing:Un,style:Ir,styleFunctionSx:$r,textAlign:eo,top:Cn,typography:to,width:In,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}var so="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},lo="object"===("undefined"==typeof window?"undefined":so(window))&&"object"===("undefined"==typeof document?"undefined":so(document))&&9===document.nodeType;function uo(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,Mt(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function co(e,t){return co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},co(e,t)}function po(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,co(e,t)}function fo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ho={}.constructor;function mo(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(mo);if(e.constructor!==ho)return e;var t={};for(var r in e)t[r]=mo(e[r]);return t}function go(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=mo(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var bo=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},vo=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+=bo(e[r]," ");else t=bo(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function yo(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function xo(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function So(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=yo(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+=xo(p+":"+u+vo(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=xo(h+":"+u+vo(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=xo(g+":"+u+vo(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),xo(""+e+u+"{"+n,--i)+xo("}",i)):n}var Co=/([[\].#*$><+~=|^:(),"'`\s])/g,Eo="undefined"!=typeof CSS&&CSS.escape,wo=function(e){return Eo?Eo(e):e.replace(Co,"\\$1")},Ro=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?dele