@nebula.js/sn-table 6.9.0 → 6.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +11 -11
- package/dist/sn-table.js +12 -12
- package/dist/sn-table.systemjs.js +11 -11
- package/package.json +4 -4
- package/sn-table-ext/dist/sn-table.js +12 -12
- package/sn-table-ext/sn-table.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.
|
|
2
|
+
* @nebula.js/sn-table v6.11.0
|
|
3
3
|
* Copyright (c) 2026 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,onContextMenu as a,onTakeSnapshot as s,useImperativeHandle as l,useStaleLayout as u,useElement as c,useApp as d,useModel as p,useInteractionState 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,{createElement as S,isValidElement as w,cloneElement as C,Children as E,useMemo as R,useState as A,useRef as P,createContext as M,useReducer as I,useEffect as k,useDebugValue as D,useCallback as T,useContext as O,forwardRef as L,memo as q,useLayoutEffect as N,useInsertionEffect as j,startTransition as _,useImperativeHandle as z,PureComponent as F}from"react";import*as H from"react-dom";import $,{flushSync as B}from"react-dom";import W from"picasso-plugin-q";import V from"picasso.js";function U(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&&U(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const Y={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function K(...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(U(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 Y}(e)){const t=Y[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function X(e){let t,r,n=0;const o="string"==typeof e?K(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 J(e){let t,r,n=0;const o="string"==typeof e?K(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 Z(e){if(U(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 Q(e,t){return U(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:Q(K(e))}function ee(e){return U(e)?1===e.a?Z(e):Q(e):ee(K(e))}const te=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function re(e){return.2126*te(e.r)+.7152*te(e.g)+.0722*te(e.b)}function ne(...e){const t=K(...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=X(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=K(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=K(...e);return t.invalid||re(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=Z(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=Q(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=ee(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(U(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?K(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}=X(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}=J(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=J(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)=>ne(o(18*e)),getDarkenedColor:(e=1)=>ne(o(18*-e))}}function oe(e,t){if(!e||!t)return;const r=re(e),n=re(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function ie(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 ae,se="top",le="top-right",ue="right",ce="bottom-right",de="bottom",pe="bottom-left",fe="left",he="top-left";ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ae={},"equal-equal",[se,de]),"equal-higher",[de,ce]),"equal-lower",[se,le]),"equal-void",[se,de]),"higher-equal",[fe,pe,se,le]),"higher-higher-acute",[de,pe,fe,le]),"higher-higher-obtuse",[de,se]),"higher-lower-negative",[se,le,ue]),"higher-lower-positive",[de,pe,fe]),"higher-void",[se]),ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ae,"lower-equal",[se]),"lower-higher-negative",[se,he]),"lower-higher-positive",[ce]),"lower-lower-acute",[se,he,fe,le,ue]),"lower-lower-obtuse",[se,de]),"lower-void",[se]),"void-equal",[se]),"void-higher",[se,de]),"void-lower",[se,de,fe]),"void-void",[se]),ie(ae,"unclassified",[se,de,ue,fe,le,ce,pe,he]);var me,ge,be=["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"],ve=["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 ye(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ve:be}var xe=function(){if(ge)return me;ge=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 me=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},me}();function Se(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function we(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}(xe);var Ee=1/.7,Re="\\s*([+-]?\\d+)\\s*",Ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Me=/^#([0-9a-f]{3,8})$/,Ie=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),ke=new RegExp(`^rgb\\(${Pe},${Pe},${Pe}\\)$`),De=new RegExp(`^rgba\\(${Re},${Re},${Re},${Ae}\\)$`),Te=new RegExp(`^rgba\\(${Pe},${Pe},${Pe},${Ae}\\)$`),Oe=new RegExp(`^hsl\\(${Ae},${Pe},${Pe}\\)$`),Le=new RegExp(`^hsla\\(${Ae},${Pe},${Pe},${Ae}\\)$`),qe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ne(){return this.rgb().formatHex()}function je(){return this.rgb().formatRgb()}function _e(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Me.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ze(t):3===r?new Be(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Fe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Fe(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=Ie.exec(e))?new Be(t[1],t[2],t[3],1):(t=ke.exec(e))?new Be(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=De.exec(e))?Fe(t[1],t[2],t[3],t[4]):(t=Te.exec(e))?Fe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oe.exec(e))?Ke(t[1],t[2]/100,t[3]/100,1):(t=Le.exec(e))?Ke(t[1],t[2]/100,t[3]/100,t[4]):qe.hasOwnProperty(e)?ze(qe[e]):"transparent"===e?new Be(NaN,NaN,NaN,0):null}function ze(e){return new Be(e>>16&255,e>>8&255,255&e,1)}function Fe(e,t,r,n){return n<=0&&(e=t=r=NaN),new Be(e,t,r,n)}function He(e){return e instanceof Ce||(e=_e(e)),e?new Be((e=e.rgb()).r,e.g,e.b,e.opacity):new Be}function $e(e,t,r,n){return 1===arguments.length?He(e):new Be(e,t,r,null==n?1:n)}function Be(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function We(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}`}function Ve(){const e=Ue(this.opacity);return`${1===e?"rgb(":"rgba("}${Ge(this.r)}, ${Ge(this.g)}, ${Ge(this.b)}${1===e?")":`, ${e})`}`}function Ue(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ge(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ye(e){return((e=Ge(e))<16?"0":"")+e.toString(16)}function Ke(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 Xe(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof Ce||(e=_e(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 Qe(e){return Math.max(0,Math.min(1,e||0))}function et(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Se(Ce,_e,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ne,formatHex:Ne,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:je,toString:je}),Se(Be,$e,we(Ce,{brighter(e){return e=null==e?Ee:Math.pow(Ee,e),new Be(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Be(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Be(Ge(this.r),Ge(this.g),Ge(this.b),Ue(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:We,formatHex:We,formatHex8:function(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}${Ye(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ve,toString:Ve})),Se(Je,(function(e,t,r,n){return 1===arguments.length?Xe(e):new Je(e,t,r,null==n?1:n)}),we(Ce,{brighter(e){return e=null==e?Ee:Math.pow(Ee,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 Be(et(e>=240?e-240:e+120,o,n),et(e,o,n),et(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Je(Ze(this.h),Qe(this.s),Qe(this.l),Ue(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=Ue(this.opacity);return`${1===e?"hsl(":"hsla("}${Ze(this.h)}, ${100*Qe(this.s)}%, ${100*Qe(this.l)}%${1===e?")":`, ${e})`}`}}));const tt=Math.PI/180,rt=180/Math.PI,nt=4/29,ot=6/29,it=3*ot*ot;function at(e){if(e instanceof st)return new st(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof Be||(e=He(e));var t,r,n=dt(e.r),o=dt(e.g),i=dt(e.b),a=lt((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=lt((.4360747*n+.3850649*o+.1430804*i)/.96422),r=lt((.0139322*n+.0971045*o+.7141733*i)/.82521)),new st(116*a-16,500*(t-a),200*(a-r),e.opacity)}function st(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function lt(e){return e>.008856451679035631?Math.pow(e,1/3):e/it+nt}function ut(e){return e>ot?e*e*e:it*(e-nt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ft(e){if(isNaN(e.h))return new st(e.l,0,0,e.opacity);var t=e.h*tt;return new st(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Se(st,(function(e,t,r,n){return 1===arguments.length?at(e):new st(e,t,r,null==n?1:n)}),we(Ce,{brighter(e){return new st(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new st(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 Be(ct(3.1338561*(t=.96422*ut(t))-1.6168667*(e=1*ut(e))-.4906146*(r=.82521*ut(r))),ct(-.9787684*t+1.9161415*e+.033454*r),ct(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Se(pt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof st||(e=at(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rt;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pt(e,t,r,null==n?1:n)}),we(Ce,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var ht=e=>()=>e;function mt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):ht(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?mt: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):ht(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=$e(e)).r,(t=$e(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=mt(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 gt="center",bt="bottom";[{key:"NoDataExist",alignment:gt,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:gt,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:gt,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:gt},{key:"DataRangeIncludingZero",alignment:bt},{key:"LimitedData",alignment:bt},{key:"NegativeOrZeroValues",alignment:bt}].reduce((function(e,t){return e[t.key]=t,e}),{});var vt,yt=["__proto__","constructor"];function xt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!yt.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 St(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function wt(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 Ct(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Rt)):void 0===t&&(t=Et);for(var r,n,o,i,a,s=new Mt(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 Mt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Pt)}function Et(e){return e.children}function Rt(e){return Array.isArray(e)?e[1]:null}function At(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 Mt(e){this.data=e,this.depth=this.height=0,this.parent=null}Mt.prototype=Ct.prototype={constructor:Mt,count:function(){return this.eachAfter(wt)},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 Ct(this).eachBefore(At)},[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)}},vt=function(e){
|
|
7
|
+
import{useMemo as e,useOptions as t,usePromise as r,useState as n,useEffect as o,useTheme as i,onContextMenu as a,HyperCubeHandler as s,onTakeSnapshot as l,useImperativeHandle as u,useStaleLayout as c,useElement as d,useApp as p,useModel as f,useInteractionState as h,useTranslator as m,useSelections as g,useKeyboard as v,useRect as b,useEmbed as y}from"@nebula.js/stardust";import*as x from"react";import S,{createElement as w,isValidElement as C,cloneElement as E,Children as R,useMemo as A,useState as P,useRef as M,createContext as I,useReducer as k,useEffect as D,useDebugValue as T,useCallback as O,useContext as L,forwardRef as q,memo as N,useLayoutEffect as _,useInsertionEffect as j,startTransition as z,useImperativeHandle as F,PureComponent as $}from"react";import*as H from"react-dom";import B,{flushSync as W}from"react-dom";import V from"picasso-plugin-q";import U from"picasso.js";function G(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function Y(e){if("object"==typeof e&&G(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const K={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 X(...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(G(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let 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 K}(e)){const t=K[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 J(e){let t,r,n=0;const o="string"==typeof e?X(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 Z(e){let t,r,n=0;const o="string"==typeof e?X(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 Q(e){if(G(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?Y(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function ee(e,t){return G(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:ee(X(e))}function te(e){return G(e)?1===e.a?Q(e):ee(e):te(X(e))}const re=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function ne(e){return.2126*re(e.r)+.7152*re(e.g)+.0722*re(e.b)}function oe(...e){const t=X(...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=J(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=X(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=X(...e);return t.invalid||ne(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=Q(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=ee(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=te(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(G(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?Y(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?X(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}=J(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}=Z(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=Z(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)=>oe(o(18*e)),getDarkenedColor:(e=1)=>oe(o(18*-e))}}function ie(e,t){if(!e||!t)return;const r=ne(e),n=ne(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function ae(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 se,le="top",ue="top-right",ce="right",de="bottom-right",pe="bottom",fe="bottom-left",he="left",me="top-left";ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(se={},"equal-equal",[le,pe]),"equal-higher",[pe,de]),"equal-lower",[le,ue]),"equal-void",[le,pe]),"higher-equal",[he,fe,le,ue]),"higher-higher-acute",[pe,fe,he,ue]),"higher-higher-obtuse",[pe,le]),"higher-lower-negative",[le,ue,ce]),"higher-lower-positive",[pe,fe,he]),"higher-void",[le]),ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(se,"lower-equal",[le]),"lower-higher-negative",[le,me]),"lower-higher-positive",[de]),"lower-lower-acute",[le,me,he,ue,ce]),"lower-lower-obtuse",[le,pe]),"lower-void",[le]),"void-equal",[le]),"void-higher",[le,pe]),"void-lower",[le,pe,he]),"void-void",[le]),ae(se,"unclassified",[le,pe,ce,he,ue,de,fe,me]);var ge,ve,be=["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"],ye=["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 xe(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ye:be}var Se=function(){if(ve)return ge;ve=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 ge=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},ge}();function we(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ce(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ee(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Se);var Re=1/.7,Ae="\\s*([+-]?\\d+)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ie=/^#([0-9a-f]{3,8})$/,ke=new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`),De=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),Te=new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${Pe}\\)$`),Oe=new RegExp(`^rgba\\(${Me},${Me},${Me},${Pe}\\)$`),Le=new RegExp(`^hsl\\(${Pe},${Me},${Me}\\)$`),qe=new RegExp(`^hsla\\(${Pe},${Me},${Me},${Pe}\\)$`),Ne={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 _e(){return this.rgb().formatHex()}function je(){return this.rgb().formatRgb()}function ze(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ie.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Fe(t):3===r?new We(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=ke.exec(e))?new We(t[1],t[2],t[3],1):(t=De.exec(e))?new We(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Te.exec(e))?$e(t[1],t[2],t[3],t[4]):(t=Oe.exec(e))?$e(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Le.exec(e))?Xe(t[1],t[2]/100,t[3]/100,1):(t=qe.exec(e))?Xe(t[1],t[2]/100,t[3]/100,t[4]):Ne.hasOwnProperty(e)?Fe(Ne[e]):"transparent"===e?new We(NaN,NaN,NaN,0):null}function Fe(e){return new We(e>>16&255,e>>8&255,255&e,1)}function $e(e,t,r,n){return n<=0&&(e=t=r=NaN),new We(e,t,r,n)}function He(e){return e instanceof Ee||(e=ze(e)),e?new We((e=e.rgb()).r,e.g,e.b,e.opacity):new We}function Be(e,t,r,n){return 1===arguments.length?He(e):new We(e,t,r,null==n?1:n)}function We(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ve(){return`#${Ke(this.r)}${Ke(this.g)}${Ke(this.b)}`}function Ue(){const e=Ge(this.opacity);return`${1===e?"rgb(":"rgba("}${Ye(this.r)}, ${Ye(this.g)}, ${Ye(this.b)}${1===e?")":`, ${e})`}`}function Ge(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ye(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ke(e){return((e=Ye(e))<16?"0":"")+e.toString(16)}function Xe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ze(e,t,r,n)}function Je(e){if(e instanceof Ze)return new Ze(e.h,e.s,e.l,e.opacity);if(e instanceof Ee||(e=ze(e)),!e)return new Ze;if(e instanceof Ze)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Ze(a,s,l,e.opacity)}function Ze(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Qe(e){return(e=(e||0)%360)<0?e+360:e}function et(e){return Math.max(0,Math.min(1,e||0))}function tt(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}we(Ee,ze,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_e,formatHex:_e,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Je(this).formatHsl()},formatRgb:je,toString:je}),we(We,Be,Ce(Ee,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(Ye(this.r),Ye(this.g),Ye(this.b),Ge(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:Ve,formatHex:Ve,formatHex8:function(){return`#${Ke(this.r)}${Ke(this.g)}${Ke(this.b)}${Ke(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ue,toString:Ue})),we(Ze,(function(e,t,r,n){return 1===arguments.length?Je(e):new Ze(e,t,r,null==n?1:n)}),Ce(Ee,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new Ze(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ze(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new We(tt(e>=240?e-240:e+120,o,n),tt(e,o,n),tt(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ze(Qe(this.h),et(this.s),et(this.l),Ge(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=Ge(this.opacity);return`${1===e?"hsl(":"hsla("}${Qe(this.h)}, ${100*et(this.s)}%, ${100*et(this.l)}%${1===e?")":`, ${e})`}`}}));const rt=Math.PI/180,nt=180/Math.PI,ot=4/29,it=6/29,at=3*it*it;function st(e){if(e instanceof lt)return new lt(e.l,e.a,e.b,e.opacity);if(e instanceof ft)return ht(e);e instanceof We||(e=He(e));var t,r,n=pt(e.r),o=pt(e.g),i=pt(e.b),a=ut((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=ut((.4360747*n+.3850649*o+.1430804*i)/.96422),r=ut((.0139322*n+.0971045*o+.7141733*i)/.82521)),new lt(116*a-16,500*(t-a),200*(a-r),e.opacity)}function lt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function ut(e){return e>.008856451679035631?Math.pow(e,1/3):e/at+ot}function ct(e){return e>it?e*e*e:at*(e-ot)}function dt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function pt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ft(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ht(e){if(isNaN(e.h))return new lt(e.l,0,0,e.opacity);var t=e.h*rt;return new lt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}we(lt,(function(e,t,r,n){return 1===arguments.length?st(e):new lt(e,t,r,null==n?1:n)}),Ce(Ee,{brighter(e){return new lt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new lt(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 We(dt(3.1338561*(t=.96422*ct(t))-1.6168667*(e=1*ct(e))-.4906146*(r=.82521*ct(r))),dt(-.9787684*t+1.9161415*e+.033454*r),dt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),we(ft,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ft)return new ft(e.h,e.c,e.l,e.opacity);if(e instanceof lt||(e=st(e)),0===e.a&&0===e.b)return new ft(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*nt;return new ft(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ft(e,t,r,null==n?1:n)}),Ce(Ee,{brighter(e){return new ft(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ft(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ht(this).rgb()}}));var mt=e=>()=>e;function gt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):mt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?gt: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):mt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Be(e)).r,(t=Be(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=gt(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 vt="center",bt="bottom";[{key:"NoDataExist",alignment:vt,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:vt,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:vt,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:vt},{key:"DataRangeIncludingZero",alignment:bt},{key:"LimitedData",alignment:bt},{key:"NegativeOrZeroValues",alignment:bt}].reduce((function(e,t){return e[t.key]=t,e}),{});var yt,xt=["__proto__","constructor"];function St(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!xt.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 wt(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 Ct(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 Et(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=At)):void 0===t&&(t=Rt);for(var r,n,o,i,a,s=new It(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 It(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Mt)}function Rt(e){return e.children}function At(e){return Array.isArray(e)?e[1]:null}function Pt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Mt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}It.prototype=Et.prototype={constructor:It,count:function(){return this.eachAfter(Ct)},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 Et(this).eachBefore(Pt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},yt=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}},vt({exports:{}});const It=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function kt(t,r){return e((()=>t),r)}const Dt={},Tt=()=>{const{viewState:n}=t(),o=(t=>{const r=e((()=>({current:Dt})),[]);return r.current=r.current===Dt?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e((()=>It()),[]),l=kt((e=>{o.current.add(e)}),[o]),u=kt(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(o.current),o.current.clear(),s()}),1e3),[s,o]);return r((async()=>{await a}),[a]),e((()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,n,l])},Ot={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"},Lt={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",...Ot,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},qt=12,Nt=14,jt=16,_t=24,zt=3,Ft=300,Ht=400,$t=600,Bt=700,Wt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ut(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 Gt={exports:{}},Yt={},Kt=x,Xt=Symbol.for("react.element"),Jt=Symbol.for("react.fragment"),Zt=Object.prototype.hasOwnProperty,Qt=Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0};function tr(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)Zt.call(t,n)&&!er.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:Xt,type:e,key:i,ref:a,props:o,_owner:Qt.current}}Yt.Fragment=Jt,Yt.jsx=tr,Yt.jsxs=tr,Gt.exports=Yt;var rr=Gt.exports;const nr={black:"#000",white:"#fff"},or="#e57373",ir="#ef5350",ar="#f44336",sr="#d32f2f",lr="#c62828",ur="#f3e5f5",cr="#ce93d8",dr="#ba68c8",pr="#ab47bc",fr="#9c27b0",hr="#7b1fa2",mr="#e3f2fd",gr="#90caf9",br="#42a5f5",vr="#1976d2",yr="#1565c0",xr="#4fc3f7",Sr="#29b6f6",wr="#03a9f4",Cr="#0288d1",Er="#01579b",Rr="#81c784",Ar="#66bb6a",Pr="#4caf50",Mr="#388e3c",Ir="#2e7d32",kr="#1b5e20",Dr="#ffb74d",Tr="#ffa726",Or="#ff9800",Lr="#f57c00",qr="#e65100",Nr={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 jr(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 _r=Object.freeze({__proto__:null,default:jr}),zr="$$material";function Fr(){return Fr=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},Fr.apply(null,arguments)}function Hr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var $r=function(){return $r=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},$r.apply(this,arguments)};function Br(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 Wr="-ms-",Vr="-moz-",Ur="-webkit-",Gr="comm",Yr="rule",Kr="decl",Xr="@import",Jr="@keyframes",Zr=Math.abs,Qr=String.fromCharCode,en=Object.assign;function tn(e){return e.trim()}function rn(e,t){return(e=t.exec(e))?e[0]:e}function nn(e,t,r){return e.replace(t,r)}function on(e,t,r){return e.indexOf(t,r)}function an(e,t){return 0|e.charCodeAt(t)}function sn(e,t,r){return e.slice(t,r)}function ln(e){return e.length}function un(e){return e.length}function cn(e,t){return t.push(e),e}function dn(e,t){return e.filter((function(e){return!rn(e,t)}))}var pn=1,fn=1,hn=0,mn=0,gn=0,bn="";function vn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:pn,column:fn,length:a,return:"",siblings:s}}function yn(e,t){return en(vn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xn(e){for(;e.root;)e=yn(e.root,{children:[e]});cn(e,e.siblings)}function Sn(){return gn=mn>0?an(bn,--mn):0,fn--,10===gn&&(fn=1,pn--),gn}function wn(){return gn=mn<hn?an(bn,mn++):0,fn++,10===gn&&(fn=1,pn++),gn}function Cn(){return an(bn,mn)}function En(){return mn}function Rn(e,t){return sn(bn,e,t)}function An(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pn(e){return tn(Rn(mn-1,kn(91===e?e+2:40===e?e+1:e)))}function Mn(e){for(;(gn=Cn())&&gn<33;)wn();return An(e)>2||An(gn)>3?"":" "}function In(e,t){for(;--t&&wn()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return Rn(e,En()+(t<6&&32==Cn()&&32==wn()))}function kn(e){for(;wn();)switch(gn){case e:return mn;case 34:case 39:34!==e&&39!==e&&kn(gn);break;case 40:41===e&&kn(e);break;case 92:wn()}return mn}function Dn(e,t){for(;wn()&&e+gn!==57&&(e+gn!==84||47!==Cn()););return"/*"+Rn(t,mn-1)+"*"+Qr(47===e?e:wn())}function Tn(e){for(;!An(Cn());)wn();return Rn(e,mn)}function On(e){return function(e){return bn="",e}(Ln("",null,null,null,[""],e=function(e){return pn=fn=1,hn=ln(bn=e),mn=0,[]}(e),0,[0],e))}function Ln(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,w=n,C=y;g;)switch(h=v,v=wn()){case 40:if(108!=h&&58==an(C,d-1)){-1!=on(C+=nn(Pn(v),"&","&\f"),"&\f",Zr(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Pn(v);break;case 9:case 10:case 13:case 32:C+=Mn(h);break;case 92:C+=In(En()-1,7);continue;case 47:switch(Cn()){case 42:case 47:cn(Nn(Dn(wn(),En()),t,r,l),l),5!=An(h||1)&&5!=An(Cn()||1)||!ln(C)||" "===sn(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=ln(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=nn(C,/\f/g,"")),f>0&&(ln(C)-d||0===m&&47===h)&&cn(f>32?jn(C+";",n,r,d-1,l):jn(nn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(cn(w=qn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)Ln(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===an(C,3))break;case 108:if(97===an(C,2))break;default:c=0;case 100:case 109:case 115:}c?Ln(e,w,w,n&&cn(qn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):Ln(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+ln(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Sn())continue;switch(C+=Qr(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(ln(C)-1)*b,b=1;break;case 64:45===Cn()&&(C+=Pn(wn())),p=Cn(),c=d=ln(y=C+=Tn(En())),v++;break;case 45:45===h&&2==ln(C)&&(m=0)}}return i}function qn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=un(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=sn(e,p+1,p=Zr(g=a[m])),x=e;v<h;++v)(x=tn(g>0?f[v]+" "+y:nn(y,/&\f/g,f[v])))&&(l[b++]=x);return vn(e,t,r,0===o?Yr:s,l,u,c,d)}function Nn(e,t,r,n){return vn(e,t,r,Gr,Qr(gn),sn(e,2,-2),0,n)}function jn(e,t,r,n,o){return vn(e,t,r,Kr,sn(e,0,n),sn(e,n+1,-1),n,o)}function _n(e,t,r){switch(function(e,t){return 45^an(e,0)?(((t<<2^an(e,0))<<2^an(e,1))<<2^an(e,2))<<2^an(e,3):0}(e,t)){case 5103:return Ur+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Ur+e+e;case 4855:return Ur+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Vr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ur+e+Vr+e+Wr+e+e;case 5936:switch(an(e,t+11)){case 114:return Ur+e+Wr+nn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ur+e+Wr+nn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ur+e+Wr+nn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ur+e+Wr+e+e;case 6165:return Ur+e+Wr+"flex-"+e+e;case 5187:return Ur+e+nn(e,/(\w+).+(:[^]+)/,Ur+"box-$1$2"+Wr+"flex-$1$2")+e;case 5443:return Ur+e+Wr+"flex-item-"+nn(e,/flex-|-self/g,"")+(rn(e,/flex-|baseline/)?"":Wr+"grid-row-"+nn(e,/flex-|-self/g,""))+e;case 4675:return Ur+e+Wr+"flex-line-pack"+nn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ur+e+Wr+nn(e,"shrink","negative")+e;case 5292:return Ur+e+Wr+nn(e,"basis","preferred-size")+e;case 6060:return Ur+"box-"+nn(e,"-grow","")+Ur+e+Wr+nn(e,"grow","positive")+e;case 4554:return Ur+nn(e,/([^-])(transform)/g,"$1"+Ur+"$2")+e;case 6187:return nn(nn(nn(e,/(zoom-|grab)/,Ur+"$1"),/(image-set)/,Ur+"$1"),e,"")+e;case 5495:case 3959:return nn(e,/(image-set\([^]*)/,Ur+"$1$`$1");case 4968:return nn(nn(e,/(.+:)(flex-)?(.*)/,Ur+"box-pack:$3"+Wr+"flex-pack:$3"),/space-between/,"justify")+Ur+e+e;case 4200:if(!rn(e,/flex-|baseline/))return Wr+"grid-column-align"+sn(e,t)+e;break;case 2592:case 3360:return Wr+nn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,rn(e.props,/grid-\w+-end/)}))?~on(e+(r=r[t].value),"span",0)?e:Wr+nn(e,"-start","")+e+Wr+"grid-row-span:"+(~on(r,"span",0)?rn(r,/\d+/):+rn(r,/\d+/)-+rn(e,/\d+/))+";":Wr+nn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return rn(e.props,/grid-\w+-start/)}))?e:Wr+nn(nn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return nn(e,/(.+)-inline(.+)/,Ur+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ln(e)-1-t>6)switch(an(e,t+1)){case 109:if(45!==an(e,t+4))break;case 102:return nn(e,/(.+:)(.+)-([^]+)/,"$1"+Ur+"$2-$3$1"+Vr+(108==an(e,t+3)?"$3":"$2-$3"))+e;case 115:return~on(e,"stretch",0)?_n(nn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return nn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Wr+r+":"+n+s+(o?Wr+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===an(e,t+6))return nn(e,":",":"+Ur)+e;break;case 6444:switch(an(e,45===an(e,14)?18:11)){case 120:return nn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ur+(45===an(e,14)?"inline-":"")+"box$3$1"+Ur+"$2$3$1"+Wr+"$2box$3")+e;case 100:return nn(e,":",":"+Wr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return nn(e,"scroll-","scroll-snap-")+e}return e}function zn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Fn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case Xr:case"@namespace":case Kr:return e.return=e.return||e.value;case Gr:return"";case Jr:return e.return=e.value+"{"+zn(e.children,n)+"}";case Yr:if(!ln(e.value=e.props.join(",")))return""}return ln(r=zn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Hn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kr:return void(e.return=_n(e.value,e.length,r));case Jr:return zn([yn(e,{value:nn(e.value,"@","@"+Ur)})],n);case Yr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(rn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xn(yn(e,{props:[nn(t,/:(read-\w+)/,":-moz-$1")]})),xn(yn(e,{props:[t]})),en(e,{props:dn(r,n)});break;case"::placeholder":xn(yn(e,{props:[nn(t,/:(plac\w+)/,":"+Ur+"input-$1")]})),xn(yn(e,{props:[nn(t,/:(plac\w+)/,":-moz-$1")]})),xn(yn(e,{props:[nn(t,/:(plac\w+)/,Wr+"input-$1")]})),xn(yn(e,{props:[t]})),en(e,{props:dn(r,n)})}return""}))}}var $n={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,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Wn="active",Vn="data-styled-version",Un="6.3.11",Gn="/*!sc*/\n",Yn="undefined"!=typeof window&&"undefined"!=typeof document,Kn=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)),Xn={};function Jn(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 Zn=new Map,Qn=new Map,eo=1,to=function(e){if(Zn.has(e))return Zn.get(e);for(;Qn.has(eo);)eo++;var t=eo++;return Zn.set(e,t),Qn.set(t,e),t},ro=function(e,t){eo=t+1,Zn.set(e,t),Qn.set(t,e)},no=Object.freeze([]),oo=Object.freeze({});function io(e,t,r){return void 0===r&&(r=oo),e.theme!==r.theme&&e.theme||t||r.theme}var ao=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),so=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,lo=/(^-|-$)/g;function uo(e){return e.replace(so,"-").replace(lo,"")}var co=/(a)(d)/gi,po=function(e){return String.fromCharCode(e+(e>25?39:97))};function fo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=po(t%52)+r;return(po(t%52)+r).replace(co,"$1-$2")}var ho,mo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},go=function(e){return mo(5381,e)};function bo(e){return fo(go(e)>>>0)}function vo(e){return"string"==typeof e&&!0}var yo="function"==typeof Symbol&&Symbol.for,xo=yo?Symbol.for("react.memo"):60115,So=yo?Symbol.for("react.forward_ref"):60112,wo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Co={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Eo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ro=((ho={})[So]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ho[xo]=Eo,ho);function Ao(e){return("type"in(t=e)&&t.type.$$typeof)===xo?Eo:"$$typeof"in e?Ro[e.$$typeof]:wo;var t}var Po=Object.defineProperty,Mo=Object.getOwnPropertyNames,Io=Object.getOwnPropertySymbols,ko=Object.getOwnPropertyDescriptor,Do=Object.getPrototypeOf,To=Object.prototype;function Oo(e,t,r){if("string"!=typeof t){if(To){var n=Do(t);n&&n!==To&&Oo(e,n,r)}var o=Mo(t);Io&&(o=o.concat(Io(t)));for(var i=Ao(e),a=Ao(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Co||r&&r[l]||a&&l in a||i&&l in i)){var u=ko(t,l);try{Po(e,l,u)}catch(e){}}}}return e}function Lo(e){return"function"==typeof e}function qo(e){return"object"==typeof e&&"styledComponentId"in e}function No(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function jo(e,t){return e.join("")}function _o(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function zo(e,t,r){if(void 0===r&&(r=!1),!r&&!_o(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=zo(e[n],t[n]);else if(_o(t))for(var n in t)e[n]=zo(e[n],t[n]);return e}function Fo(e,t){Object.defineProperty(e,"toString",{value:t})}var Ho=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,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 Jn(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=0,l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)},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);t>0&&this._cGroup>e&&(this._cIndex-=t)}},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+=this.tag.getRule(i)+Gn;return t},e}(),$o="style[".concat(Bn,"][").concat(Vn,'="').concat(Un,'"]'),Bo=new RegExp("^".concat(Bn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Wo=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},Vo=function(e){if(!e)return document;if(Wo(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(Wo(t))return t}return document},Uo=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)},Go=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Gn),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Bo);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(ro(c,u),Uo(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Yo=function(e){for(var t=Vo(e.options.target).querySelectorAll($o),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Bn)!==Wn&&(Go(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Ko=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Bn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Bn,Wn),n.setAttribute(Vn,Un);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Xo=function(){function e(e){this.element=Ko(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){var t;if(e.sheet)return e.sheet;for(var r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets,n=0,o=r.length;n<o;n++){var i=r[n];if(i.ownerNode===e)return i}throw Jn(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}(),Jo=function(){function e(e){this.element=Ko(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}(),Zo=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):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}(),Qo=Yn,ei={isServer:!Yn,useCSSOMInjection:!Kn},ti=function(){function e(e,t,r){void 0===e&&(e=oo),void 0===t&&(t={});var n=this;this.options=$r($r({},ei),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Yn&&Qo&&(Qo=!1,Yo(this)),Fo(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Qn.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o);if(void 0===i||!i.size)return"continue";var a=t.getGroup(r);if(0===a.length)return"continue";var s=Bn+".g"+r+'[id="'+o+'"]',l="";i.forEach((function(e){e.length>0&&(l+=e+",")})),n+=a+s+'{content:"'+l+'"}'+Gn},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return to(e)},e.prototype.rehydrate=function(){!this.server&&Yn&&Yo(this)},e.prototype.reconstructWithOptions=function(t,r){void 0===r&&(r=!0);var n=new e($r($r({},this.options),t),this.gs,r&&this.names||void 0);return!this.server&&Yn&&t.target!==this.options.target&&Vo(this.options.target)!==Vo(t.target)&&Yo(n),n},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 Zo(r):t?new Xo(r):new Jo(r)}(this.options),new Ho(e)));var e},e.prototype.hasNameForId=function(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n},e.prototype.registerName=function(e,t){to(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(to(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(to(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ri=/&/g,ni=47,oi=42;function ii(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,o=!1,i=0;i<t;i++){var a=e.charCodeAt(i);if(0!==n||o||a!==ni||e.charCodeAt(i+1)!==oi)if(o)a===oi&&e.charCodeAt(i+1)===ni&&(o=!1,i++);else if(34!==a&&39!==a||0!==i&&92===e.charCodeAt(i-1)){if(0===n)if(123===a)r++;else if(125===a&&--r<0)return!0}else 0===n?n=a:n===a&&(n=0);else o=!0,i++}return 0!==r||0!==n}function ai(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=ai(e.children,t)),e}))}function si(e){var t,r,n,o=void 0===e?oo:e,i=o.options,a=void 0===i?oo:i,s=o.plugins,l=void 0===s?no:s,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=l.slice();c.push((function(e){e.type===Yr&&e.value.includes("&")&&(n||(n=new RegExp("\\".concat(r,"\\b"),"g")),e.props[0]=e.props[0].replace(ri,r).replace(n,u))})),a.prefix&&c.push(Hn),c.push(Fn);var d,p=[],f=function(e){var t=un(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)}))),h=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=void 0;var l=function(e){if(!ii(e))return e;for(var t=e.length,r="",n=0,o=0,i=0,a=!1,s=0;s<t;s++){var l=e.charCodeAt(s);if(0!==i||a||l!==ni||e.charCodeAt(s+1)!==oi)if(a)l===oi&&e.charCodeAt(s+1)===ni&&(a=!1,s++);else if(34!==l&&39!==l||0!==s&&92===e.charCodeAt(s-1)){if(0===i)if(123===l)o++;else if(125===l){if(--o<0){for(var u=s+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,s=u-1,n=u;continue}0===o&&(r+=e.substring(n,s+1),n=s+1)}else 59===l&&0===o&&(r+=e.substring(n,s+1),n=s+1)}else 0===i?i=l:i===l&&(i=0);else a=!0,s++}if(n<t){var d=e.substring(n);ii(d)||(r+=d)}return r}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,r=[],n=0,o=0,i=0,a=0;o<t;){var s=e.charCodeAt(o);if(34!==s&&39!==s||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(s===ni&&o+1<t&&e.charCodeAt(o+1)===oi){for(o+=2;o+1<t&&(e.charCodeAt(o)!==oi||e.charCodeAt(o+1)!==ni);)o++;o+=2}else if(40===s&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))a=1,o++;else if(a>0)41===s?a--:40===s&&a++,o++;else if(s===oi&&o+1<t&&e.charCodeAt(o+1)===ni)o>n&&r.push(e.substring(n,o)),n=o+=2;else if(s===ni&&o+1<t&&e.charCodeAt(o+1)===ni){for(o>n&&r.push(e.substring(n,o));o<t&&10!==e.charCodeAt(o);)o++;n=o}else o++;else o++;else 0===i?i=s:i===s&&(i=0),o++}return 0===n?e:(n<t&&r.push(e.substring(n)),r.join(""))}(e)),u=On(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);return a.namespace&&(u=ai(u,a.namespace)),p=[],zn(u,f),p};return h.hash=l.length?l.reduce((function(e,t){return t.name||Jn(15),mo(e,t.name)}),5381).toString():"",h}var li=new ti,ui=si(),ci=x.createContext({shouldForwardProp:void 0,styleSheet:li,stylis:ui});ci.Consumer;var di=x.createContext(void 0);function pi(){return x.useContext(ci)}function fi(e){if(!x.useMemo)return e.children;var t=pi().styleSheet,r=x.useMemo((function(){var r=t;return e.sheet?r=e.sheet:e.target&&(r=r.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(r=r.reconstructWithOptions({useCSSOMInjection:!1})),r}),[e.disableCSSOMInjection,e.sheet,e.target,t]),n=x.useMemo((function(){return si({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})}),[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=x.useMemo((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:r,stylis:n}}),[e.shouldForwardProp,r,n]);return x.createElement(ci.Provider,{value:o},x.createElement(di.Provider,{value:n},e.children))}var hi=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ui);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,Fo(this,(function(){throw Jn(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=ui),this.name+e.hash},e}();function mi(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in $n||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var gi=function(e){return e>="A"&&e<="Z"};function bi(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;gi(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var vi=function(e){return null==e||!1===e||""===e},yi=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!vi(n)&&(Array.isArray(n)&&n.isCss||Lo(n)?t.push("".concat(bi(r),":"),n,";"):_o(n)?t.push.apply(t,Br(Br(["".concat(r," {")],yi(n),!1),["}"],!1)):t.push("".concat(bi(r),": ").concat(mi(r,n),";")))}return t};function xi(e,t,r,n,o){if(void 0===o&&(o=[]),"string"==typeof e)return e&&o.push(e),o;if(vi(e))return o;if(qo(e))return o.push(".".concat(e.styledComponentId)),o;var i;if(Lo(e))return!Lo(i=e)||i.prototype&&i.prototype.isReactComponent||!t?(o.push(e),o):xi(e(t),t,r,n,o);if(e instanceof hi)return r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o;if(_o(e)){for(var a=yi(e),s=0;s<a.length;s++)o.push(a[s]);return o}if(!Array.isArray(e))return o.push(e.toString()),o;for(s=0;s<e.length;s++)xi(e[s],t,r,n,o);return o}function Si(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Lo(r)&&!qo(r))return!1}return!0}var wi=go(Un),Ci=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Si(e),this.componentId=t,this.baseHash=mo(wi,t),this.baseStyle=r,ti.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=No(n,this.staticRulesId);else{var o=jo(xi(this.rules,e,t,r)),i=fo(mo(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=No(n,i),this.staticRulesId=i}else{for(var s=mo(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=jo(xi(c,e,t,r));s=mo(mo(s,String(u)),d),l+=d}}if(l){var p=fo(s>>>0);if(!t.hasNameForId(this.componentId,p)){var f=r(l,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}n=No(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(to(this.componentId)):""}},e}(),Ei=x.createContext(void 0);Ei.Consumer;var Ri={};function Ai(e,t,r){var n=qo(e),o=e,i=!vo(e),a=t.attrs,s=void 0===a?no:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":uo(e);Ri[r]=(Ri[r]||0)+1;var n="".concat(r,"-").concat(bo(Un+r+Ri[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return vo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(uo(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 Ci(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(Ei),c=pi(),d=e.shouldForwardProp||c.shouldForwardProp,p=io(t,u,i)||oo,f=function(e,t,r){for(var n,o=$r($r({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Lo(n=e[i])?n(o):n;for(var s in a)"className"===s?o.className=No(o.className,a[s]):"style"===s?o.style=$r($r({},o.style),a[s]):o[s]=a[s]}return"className"in t&&"string"==typeof t.className&&(o.className=No(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=pi();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=b.className,y=No(a,s);return v&&(y+=" "+v),f.className&&(y+=" "+f.className),m[vo(h)&&!ao.has(h)?"class":"className"]=y,r&&(m.ref=r),S(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?No(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++)zo(e,o[n],!0);return e}({},o.defaultProps,e):e}}),Fo(y,(function(){return".".concat(y.styledComponentId)})),i&&Oo(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Pi(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 Mi=function(e){return Object.assign(e,{isCss:!0})};function Ii(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Lo(e)||_o(e))return Mi(xi(Pi(no,Br([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?xi(n):Mi(xi(Pi(n,t)))}function ki(e,t,r){if(void 0===r&&(r=oo),!t)throw Jn(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Ii.apply(void 0,Br([n],o,!1)))};return n.attrs=function(n){return ki(e,t,$r($r({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return ki(e,t,$r($r({},r),n))},n}var Di=function(e){return ki(Ai,e)},Ti=Di;ao.forEach((function(e){Ti[e]=Di(e)}));var Oi=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Si(e),ti.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(jo(xi(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&&ti.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?r.hasNameForId(o,o)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}();function Li(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=jo(Ii.apply(void 0,Br([e],t,!1))),o=bo(n);return new hi(o,n)}var qi={exports:{}};function Ni(){}function ji(){}ji.resetWarningCache=Ni;qi.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:ji,resetWarningCache:Ni};return r.PropTypes=r,r}();var _i=Vt(qi.exports);function zi(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}zi.propTypes={children:_i.node,injectFirst:_i.bool};const Fi=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Ii.apply(void 0,Br([e],t,!1)),o="sc-global-".concat(bo(JSON.stringify(n))),i=new Oi(n,o),a=new WeakMap,s=function(e){var t=pi(),r=x.useContext(Ei),n=a.get(t.styleSheet);return void 0===n&&(n=t.styleSheet.allocateGSInstance(o),a.set(t.styleSheet,n)),("undefined"==typeof window||!t.styleSheet.server)&&l(n,e,t.styleSheet,r,t.stylis),x.useLayoutEffect((function(){return t.styleSheet.server||l(n,e,t.styleSheet,r,t.stylis),function(){var e;i.removeStyles(n,t.styleSheet),e=t.styleSheet.options.target,"undefined"!=typeof document&&(null!=e?e:document).querySelectorAll('style[data-styled-global="'.concat(o,'"]')).forEach((function(e){return e.remove()}))}}),[n,e,t.styleSheet,r,t.stylis]),null};function l(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Xn,r,o);else{var a=$r($r({},t),{theme:io(t,n,s.defaultProps)});i.renderStyles(e,a,r,o)}}return x.memo(s)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,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\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?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="",v=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-v+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}},yt({exports:{}});const kt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Dt(t,r){return e((()=>t),r)}const Tt={},Ot=()=>{const{viewState:n}=t(),o=(t=>{const r=e((()=>({current:Tt})),[]);return r.current=r.current===Tt?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e((()=>kt()),[]),l=Dt((e=>{o.current.add(e)}),[o]),u=Dt(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(o.current),o.current.clear(),s()}),1e3),[s,o]);return r((async()=>{await a}),[a]),e((()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,n,l])},Lt={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},qt={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Lt,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)"},Nt=12,_t=14,jt=16,zt=24,Ft=3,$t=300,Ht=400,Bt=600,Wt=700,Vt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gt(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 Yt={exports:{}},Kt={},Xt=S,Jt=Symbol.for("react.element"),Zt=Symbol.for("react.fragment"),Qt=Object.prototype.hasOwnProperty,er=Xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tr={key:!0,ref:!0,__self:!0,__source:!0};function rr(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)Qt.call(t,n)&&!tr.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:Jt,type:e,key:i,ref:a,props:o,_owner:er.current}}Kt.Fragment=Zt,Kt.jsx=rr,Kt.jsxs=rr,Yt.exports=Kt;var nr=Yt.exports;const or={black:"#000",white:"#fff"},ir="#e57373",ar="#ef5350",sr="#f44336",lr="#d32f2f",ur="#c62828",cr="#f3e5f5",dr="#ce93d8",pr="#ba68c8",fr="#ab47bc",hr="#9c27b0",mr="#7b1fa2",gr="#e3f2fd",vr="#90caf9",br="#42a5f5",yr="#1976d2",xr="#1565c0",Sr="#4fc3f7",wr="#29b6f6",Cr="#03a9f4",Er="#0288d1",Rr="#01579b",Ar="#81c784",Pr="#66bb6a",Mr="#4caf50",Ir="#388e3c",kr="#2e7d32",Dr="#1b5e20",Tr="#ffb74d",Or="#ffa726",Lr="#ff9800",qr="#f57c00",Nr="#e65100",_r={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 jr(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var zr=Object.freeze({__proto__:null,default:jr}),Fr="$$material";function $r(){return $r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$r.apply(null,arguments)}function Hr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var Br=function(){return Br=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},Br.apply(this,arguments)};function Wr(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 Vr="-ms-",Ur="-moz-",Gr="-webkit-",Yr="comm",Kr="rule",Xr="decl",Jr="@import",Zr="@keyframes",Qr=Math.abs,en=String.fromCharCode,tn=Object.assign;function rn(e){return e.trim()}function nn(e,t){return(e=t.exec(e))?e[0]:e}function on(e,t,r){return e.replace(t,r)}function an(e,t,r){return e.indexOf(t,r)}function sn(e,t){return 0|e.charCodeAt(t)}function ln(e,t,r){return e.slice(t,r)}function un(e){return e.length}function cn(e){return e.length}function dn(e,t){return t.push(e),e}function pn(e,t){return e.filter((function(e){return!nn(e,t)}))}var fn=1,hn=1,mn=0,gn=0,vn=0,bn="";function yn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:fn,column:hn,length:a,return:"",siblings:s}}function xn(e,t){return tn(yn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Sn(e){for(;e.root;)e=xn(e.root,{children:[e]});dn(e,e.siblings)}function wn(){return vn=gn>0?sn(bn,--gn):0,hn--,10===vn&&(hn=1,fn--),vn}function Cn(){return vn=gn<mn?sn(bn,gn++):0,hn++,10===vn&&(hn=1,fn++),vn}function En(){return sn(bn,gn)}function Rn(){return gn}function An(e,t){return ln(bn,e,t)}function Pn(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 Mn(e){return rn(An(gn-1,Dn(91===e?e+2:40===e?e+1:e)))}function In(e){for(;(vn=En())&&vn<33;)Cn();return Pn(e)>2||Pn(vn)>3?"":" "}function kn(e,t){for(;--t&&Cn()&&!(vn<48||vn>102||vn>57&&vn<65||vn>70&&vn<97););return An(e,Rn()+(t<6&&32==En()&&32==Cn()))}function Dn(e){for(;Cn();)switch(vn){case e:return gn;case 34:case 39:34!==e&&39!==e&&Dn(vn);break;case 40:41===e&&Dn(e);break;case 92:Cn()}return gn}function Tn(e,t){for(;Cn()&&e+vn!==57&&(e+vn!==84||47!==En()););return"/*"+An(t,gn-1)+"*"+en(47===e?e:Cn())}function On(e){for(;!Pn(En());)Cn();return An(e,gn)}function Ln(e){return function(e){return bn="",e}(qn("",null,null,null,[""],e=function(e){return fn=hn=1,mn=un(bn=e),gn=0,[]}(e),0,[0],e))}function qn(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,v=1,b=0,y="",x=o,S=i,w=n,C=y;g;)switch(h=b,b=Cn()){case 40:if(108!=h&&58==sn(C,d-1)){-1!=an(C+=on(Mn(b),"&","&\f"),"&\f",Qr(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Mn(b);break;case 9:case 10:case 13:case 32:C+=In(h);break;case 92:C+=kn(Rn()-1,7);continue;case 47:switch(En()){case 42:case 47:dn(_n(Tn(Cn(),Rn()),t,r,l),l),5!=Pn(h||1)&&5!=Pn(En()||1)||!un(C)||" "===ln(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=un(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=on(C,/\f/g,"")),f>0&&(un(C)-d||0===m&&47===h)&&dn(f>32?jn(C+";",n,r,d-1,l):jn(on(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(dn(w=Nn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===b)if(0===c)qn(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===sn(C,3))break;case 108:if(97===sn(C,2))break;default:c=0;case 100:case 109:case 115:}c?qn(e,w,w,n&&dn(Nn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):qn(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=v=1,y=C="",d=a;break;case 58:d=1+un(C),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==wn())continue;switch(C+=en(b),b*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(un(C)-1)*v,v=1;break;case 64:45===En()&&(C+=Mn(Cn())),p=En(),c=d=un(y=C+=On(Rn())),b++;break;case 45:45===h&&2==un(C)&&(m=0)}}return i}function Nn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=cn(f),m=0,g=0,v=0;m<n;++m)for(var b=0,y=ln(e,p+1,p=Qr(g=a[m])),x=e;b<h;++b)(x=rn(g>0?f[b]+" "+y:on(y,/&\f/g,f[b])))&&(l[v++]=x);return yn(e,t,r,0===o?Kr:s,l,u,c,d)}function _n(e,t,r,n){return yn(e,t,r,Yr,en(vn),ln(e,2,-2),0,n)}function jn(e,t,r,n,o){return yn(e,t,r,Xr,ln(e,0,n),ln(e,n+1,-1),n,o)}function zn(e,t,r){switch(function(e,t){return 45^sn(e,0)?(((t<<2^sn(e,0))<<2^sn(e,1))<<2^sn(e,2))<<2^sn(e,3):0}(e,t)){case 5103:return Gr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Gr+e+e;case 4855:return Gr+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Ur+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Gr+e+Ur+e+Vr+e+e;case 5936:switch(sn(e,t+11)){case 114:return Gr+e+Vr+on(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gr+e+Vr+on(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gr+e+Vr+on(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Gr+e+Vr+e+e;case 6165:return Gr+e+Vr+"flex-"+e+e;case 5187:return Gr+e+on(e,/(\w+).+(:[^]+)/,Gr+"box-$1$2"+Vr+"flex-$1$2")+e;case 5443:return Gr+e+Vr+"flex-item-"+on(e,/flex-|-self/g,"")+(nn(e,/flex-|baseline/)?"":Vr+"grid-row-"+on(e,/flex-|-self/g,""))+e;case 4675:return Gr+e+Vr+"flex-line-pack"+on(e,/align-content|flex-|-self/g,"")+e;case 5548:return Gr+e+Vr+on(e,"shrink","negative")+e;case 5292:return Gr+e+Vr+on(e,"basis","preferred-size")+e;case 6060:return Gr+"box-"+on(e,"-grow","")+Gr+e+Vr+on(e,"grow","positive")+e;case 4554:return Gr+on(e,/([^-])(transform)/g,"$1"+Gr+"$2")+e;case 6187:return on(on(on(e,/(zoom-|grab)/,Gr+"$1"),/(image-set)/,Gr+"$1"),e,"")+e;case 5495:case 3959:return on(e,/(image-set\([^]*)/,Gr+"$1$`$1");case 4968:return on(on(e,/(.+:)(flex-)?(.*)/,Gr+"box-pack:$3"+Vr+"flex-pack:$3"),/space-between/,"justify")+Gr+e+e;case 4200:if(!nn(e,/flex-|baseline/))return Vr+"grid-column-align"+ln(e,t)+e;break;case 2592:case 3360:return Vr+on(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,nn(e.props,/grid-\w+-end/)}))?~an(e+(r=r[t].value),"span",0)?e:Vr+on(e,"-start","")+e+Vr+"grid-row-span:"+(~an(r,"span",0)?nn(r,/\d+/):+nn(r,/\d+/)-+nn(e,/\d+/))+";":Vr+on(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return nn(e.props,/grid-\w+-start/)}))?e:Vr+on(on(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return on(e,/(.+)-inline(.+)/,Gr+"$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(un(e)-1-t>6)switch(sn(e,t+1)){case 109:if(45!==sn(e,t+4))break;case 102:return on(e,/(.+:)(.+)-([^]+)/,"$1"+Gr+"$2-$3$1"+Ur+(108==sn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~an(e,"stretch",0)?zn(on(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return on(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Vr+r+":"+n+s+(o?Vr+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===sn(e,t+6))return on(e,":",":"+Gr)+e;break;case 6444:switch(sn(e,45===sn(e,14)?18:11)){case 120:return on(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Gr+(45===sn(e,14)?"inline-":"")+"box$3$1"+Gr+"$2$3$1"+Vr+"$2box$3")+e;case 100:return on(e,":",":"+Vr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return on(e,"scroll-","scroll-snap-")+e}return e}function Fn(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 Jr:case"@namespace":case Xr:return e.return=e.return||e.value;case Yr:return"";case Zr:return e.return=e.value+"{"+Fn(e.children,n)+"}";case Kr:if(!un(e.value=e.props.join(",")))return""}return un(r=Fn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Hn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Xr:return void(e.return=zn(e.value,e.length,r));case Zr:return Fn([xn(e,{value:on(e.value,"@","@"+Gr)})],n);case Kr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(nn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Sn(xn(e,{props:[on(t,/:(read-\w+)/,":-moz-$1")]})),Sn(xn(e,{props:[t]})),tn(e,{props:pn(r,n)});break;case"::placeholder":Sn(xn(e,{props:[on(t,/:(plac\w+)/,":"+Gr+"input-$1")]})),Sn(xn(e,{props:[on(t,/:(plac\w+)/,":-moz-$1")]})),Sn(xn(e,{props:[on(t,/:(plac\w+)/,Vr+"input-$1")]})),Sn(xn(e,{props:[t]})),tn(e,{props:pn(r,n)})}return""}))}}var Bn={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,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Vn="active",Un="data-styled-version",Gn="6.3.11",Yn="/*!sc*/\n",Kn="undefined"!=typeof window&&"undefined"!=typeof document,Xn=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)),Jn={};function Zn(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 Qn=new Map,eo=new Map,to=1,ro=function(e){if(Qn.has(e))return Qn.get(e);for(;eo.has(to);)to++;var t=to++;return Qn.set(e,t),eo.set(t,e),t},no=function(e,t){to=t+1,Qn.set(e,t),eo.set(t,e)},oo=Object.freeze([]),io=Object.freeze({});function ao(e,t,r){return void 0===r&&(r=io),e.theme!==r.theme&&e.theme||t||r.theme}var so=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),lo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,uo=/(^-|-$)/g;function co(e){return e.replace(lo,"-").replace(uo,"")}var po=/(a)(d)/gi,fo=function(e){return String.fromCharCode(e+(e>25?39:97))};function ho(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=fo(t%52)+r;return(fo(t%52)+r).replace(po,"$1-$2")}var mo,go=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},vo=function(e){return go(5381,e)};function bo(e){return ho(vo(e)>>>0)}function yo(e){return"string"==typeof e&&!0}var xo="function"==typeof Symbol&&Symbol.for,So=xo?Symbol.for("react.memo"):60115,wo=xo?Symbol.for("react.forward_ref"):60112,Co={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Eo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ro={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ao=((mo={})[wo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mo[So]=Ro,mo);function Po(e){return("type"in(t=e)&&t.type.$$typeof)===So?Ro:"$$typeof"in e?Ao[e.$$typeof]:Co;var t}var Mo=Object.defineProperty,Io=Object.getOwnPropertyNames,ko=Object.getOwnPropertySymbols,Do=Object.getOwnPropertyDescriptor,To=Object.getPrototypeOf,Oo=Object.prototype;function Lo(e,t,r){if("string"!=typeof t){if(Oo){var n=To(t);n&&n!==Oo&&Lo(e,n,r)}var o=Io(t);ko&&(o=o.concat(ko(t)));for(var i=Po(e),a=Po(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Eo||r&&r[l]||a&&l in a||i&&l in i)){var u=Do(t,l);try{Mo(e,l,u)}catch(e){}}}}return e}function qo(e){return"function"==typeof e}function No(e){return"object"==typeof e&&"styledComponentId"in e}function _o(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function jo(e,t){return e.join("")}function zo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Fo(e,t,r){if(void 0===r&&(r=!1),!r&&!zo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Fo(e[n],t[n]);else if(zo(t))for(var n in t)e[n]=Fo(e[n],t[n]);return e}function $o(e,t){Object.defineProperty(e,"toString",{value:t})}var Ho=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,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 Zn(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=0,l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)},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);t>0&&this._cGroup>e&&(this._cIndex-=t)}},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+=this.tag.getRule(i)+Yn;return t},e}(),Bo="style[".concat(Wn,"][").concat(Un,'="').concat(Gn,'"]'),Wo=new RegExp("^".concat(Wn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Vo=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},Uo=function(e){if(!e)return document;if(Vo(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(Vo(t))return t}return document},Go=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)},Yo=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Yn),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Wo);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(no(c,u),Go(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Ko=function(e){for(var t=Uo(e.options.target).querySelectorAll(Bo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Wn)!==Vn&&(Yo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Xo=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Wn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Wn,Vn),n.setAttribute(Un,Gn);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Jo=function(){function e(e){this.element=Xo(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){var t;if(e.sheet)return e.sheet;for(var r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets,n=0,o=r.length;n<o;n++){var i=r[n];if(i.ownerNode===e)return i}throw Zn(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}(),Zo=function(){function e(e){this.element=Xo(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}(),Qo=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):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}(),ei=Kn,ti={isServer:!Kn,useCSSOMInjection:!Xn},ri=function(){function e(e,t,r){void 0===e&&(e=io),void 0===t&&(t={});var n=this;this.options=Br(Br({},ti),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Kn&&ei&&(ei=!1,Ko(this)),$o(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return eo.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o);if(void 0===i||!i.size)return"continue";var a=t.getGroup(r);if(0===a.length)return"continue";var s=Wn+".g"+r+'[id="'+o+'"]',l="";i.forEach((function(e){e.length>0&&(l+=e+",")})),n+=a+s+'{content:"'+l+'"}'+Yn},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return ro(e)},e.prototype.rehydrate=function(){!this.server&&Kn&&Ko(this)},e.prototype.reconstructWithOptions=function(t,r){void 0===r&&(r=!0);var n=new e(Br(Br({},this.options),t),this.gs,r&&this.names||void 0);return!this.server&&Kn&&t.target!==this.options.target&&Uo(this.options.target)!==Uo(t.target)&&Ko(n),n},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 Qo(r):t?new Jo(r):new Zo(r)}(this.options),new Ho(e)));var e},e.prototype.hasNameForId=function(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n},e.prototype.registerName=function(e,t){ro(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(ro(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ro(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ni=/&/g,oi=47,ii=42;function ai(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,o=!1,i=0;i<t;i++){var a=e.charCodeAt(i);if(0!==n||o||a!==oi||e.charCodeAt(i+1)!==ii)if(o)a===ii&&e.charCodeAt(i+1)===oi&&(o=!1,i++);else if(34!==a&&39!==a||0!==i&&92===e.charCodeAt(i-1)){if(0===n)if(123===a)r++;else if(125===a&&--r<0)return!0}else 0===n?n=a:n===a&&(n=0);else o=!0,i++}return 0!==r||0!==n}function si(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=si(e.children,t)),e}))}function li(e){var t,r,n,o=void 0===e?io:e,i=o.options,a=void 0===i?io:i,s=o.plugins,l=void 0===s?oo: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===Kr&&e.value.includes("&")&&(n||(n=new RegExp("\\".concat(r,"\\b"),"g")),e.props[0]=e.props[0].replace(ni,r).replace(n,u))})),a.prefix&&c.push(Hn),c.push($n);var d,p=[],f=function(e){var t=cn(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)}))),h=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=void 0;var l=function(e){if(!ai(e))return e;for(var t=e.length,r="",n=0,o=0,i=0,a=!1,s=0;s<t;s++){var l=e.charCodeAt(s);if(0!==i||a||l!==oi||e.charCodeAt(s+1)!==ii)if(a)l===ii&&e.charCodeAt(s+1)===oi&&(a=!1,s++);else if(34!==l&&39!==l||0!==s&&92===e.charCodeAt(s-1)){if(0===i)if(123===l)o++;else if(125===l){if(--o<0){for(var u=s+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,s=u-1,n=u;continue}0===o&&(r+=e.substring(n,s+1),n=s+1)}else 59===l&&0===o&&(r+=e.substring(n,s+1),n=s+1)}else 0===i?i=l:i===l&&(i=0);else a=!0,s++}if(n<t){var d=e.substring(n);ai(d)||(r+=d)}return r}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,r=[],n=0,o=0,i=0,a=0;o<t;){var s=e.charCodeAt(o);if(34!==s&&39!==s||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(s===oi&&o+1<t&&e.charCodeAt(o+1)===ii){for(o+=2;o+1<t&&(e.charCodeAt(o)!==ii||e.charCodeAt(o+1)!==oi);)o++;o+=2}else if(40===s&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))a=1,o++;else if(a>0)41===s?a--:40===s&&a++,o++;else if(s===ii&&o+1<t&&e.charCodeAt(o+1)===oi)o>n&&r.push(e.substring(n,o)),n=o+=2;else if(s===oi&&o+1<t&&e.charCodeAt(o+1)===oi){for(o>n&&r.push(e.substring(n,o));o<t&&10!==e.charCodeAt(o);)o++;n=o}else o++;else o++;else 0===i?i=s:i===s&&(i=0),o++}return 0===n?e:(n<t&&r.push(e.substring(n)),r.join(""))}(e)),u=Ln(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);return a.namespace&&(u=si(u,a.namespace)),p=[],Fn(u,f),p};return h.hash=l.length?l.reduce((function(e,t){return t.name||Zn(15),go(e,t.name)}),5381).toString():"",h}var ui=new ri,ci=li(),di=S.createContext({shouldForwardProp:void 0,styleSheet:ui,stylis:ci});di.Consumer;var pi=S.createContext(void 0);function fi(){return S.useContext(di)}function hi(e){if(!S.useMemo)return e.children;var t=fi().styleSheet,r=S.useMemo((function(){var r=t;return e.sheet?r=e.sheet:e.target&&(r=r.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(r=r.reconstructWithOptions({useCSSOMInjection:!1})),r}),[e.disableCSSOMInjection,e.sheet,e.target,t]),n=S.useMemo((function(){return li({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})}),[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=S.useMemo((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:r,stylis:n}}),[e.shouldForwardProp,r,n]);return S.createElement(di.Provider,{value:o},S.createElement(pi.Provider,{value:n},e.children))}var mi=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ci);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,$o(this,(function(){throw Zn(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=ci),this.name+e.hash},e}();function gi(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Bn||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var vi=function(e){return e>="A"&&e<="Z"};function bi(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;vi(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var yi=function(e){return null==e||!1===e||""===e},xi=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!yi(n)&&(Array.isArray(n)&&n.isCss||qo(n)?t.push("".concat(bi(r),":"),n,";"):zo(n)?t.push.apply(t,Wr(Wr(["".concat(r," {")],xi(n),!1),["}"],!1)):t.push("".concat(bi(r),": ").concat(gi(r,n),";")))}return t};function Si(e,t,r,n,o){if(void 0===o&&(o=[]),"string"==typeof e)return e&&o.push(e),o;if(yi(e))return o;if(No(e))return o.push(".".concat(e.styledComponentId)),o;var i;if(qo(e))return!qo(i=e)||i.prototype&&i.prototype.isReactComponent||!t?(o.push(e),o):Si(e(t),t,r,n,o);if(e instanceof mi)return r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o;if(zo(e)){for(var a=xi(e),s=0;s<a.length;s++)o.push(a[s]);return o}if(!Array.isArray(e))return o.push(e.toString()),o;for(s=0;s<e.length;s++)Si(e[s],t,r,n,o);return o}function wi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(qo(r)&&!No(r))return!1}return!0}var Ci=vo(Gn),Ei=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&wi(e),this.componentId=t,this.baseHash=go(Ci,t),this.baseStyle=r,ri.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=_o(n,this.staticRulesId);else{var o=jo(Si(this.rules,e,t,r)),i=ho(go(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=_o(n,i),this.staticRulesId=i}else{for(var s=go(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=jo(Si(c,e,t,r));s=go(go(s,String(u)),d),l+=d}}if(l){var p=ho(s>>>0);if(!t.hasNameForId(this.componentId,p)){var f=r(l,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}n=_o(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(ro(this.componentId)):""}},e}(),Ri=S.createContext(void 0);Ri.Consumer;var Ai={};function Pi(e,t,r){var n=No(e),o=e,i=!yo(e),a=t.attrs,s=void 0===a?oo:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":co(e);Ai[r]=(Ai[r]||0)+1;var n="".concat(r,"-").concat(bo(Gn+r+Ai[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return yo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(co(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 v=new Ei(r,p,n?o.componentStyle:void 0);function b(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=S.useContext(Ri),c=fi(),d=e.shouldForwardProp||c.shouldForwardProp,p=ao(t,u,i)||io,f=function(e,t,r){for(var n,o=Br(Br({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=qo(n=e[i])?n(o):n;for(var s in a)"className"===s?o.className=_o(o.className,a[s]):"style"===s?o.style=Br(Br({},o.style),a[s]):o[s]=a[s]}return"className"in t&&"string"==typeof t.className&&(o.className=_o(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 v=function(e,t){var r=fi();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),b=v.className,y=_o(a,s);return b&&(y+=" "+b),f.className&&(y+=" "+f.className),m[yo(h)&&!so.has(h)?"class":"className"]=y,r&&(m.ref=r),w(h,m)}(y,e,t)}b.displayName=d;var y=S.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?_o(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++)Fo(e,o[n],!0);return e}({},o.defaultProps,e):e}}),$o(y,(function(){return".".concat(y.styledComponentId)})),i&&Lo(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Mi(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 Ii=function(e){return Object.assign(e,{isCss:!0})};function ki(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(qo(e)||zo(e))return Ii(Si(Mi(oo,Wr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Si(n):Ii(Si(Mi(n,t)))}function Di(e,t,r){if(void 0===r&&(r=io),!t)throw Zn(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,ki.apply(void 0,Wr([n],o,!1)))};return n.attrs=function(n){return Di(e,t,Br(Br({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Di(e,t,Br(Br({},r),n))},n}var Ti=function(e){return Di(Pi,e)},Oi=Ti;so.forEach((function(e){Oi[e]=Ti(e)}));var Li=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=wi(e),ri.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(jo(Si(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&&ri.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?r.hasNameForId(o,o)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}();function qi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=jo(ki.apply(void 0,Wr([e],t,!1))),o=bo(n);return new mi(o,n)}var Ni={exports:{}};function _i(){}function ji(){}ji.resetWarningCache=_i;Ni.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:ji,resetWarningCache:_i};return r.PropTypes=r,r}();var zi=Ut(Ni.exports);function Fi(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}Fi.propTypes={children:zi.node,injectFirst:zi.bool};const $i=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ki.apply(void 0,Wr([e],t,!1)),o="sc-global-".concat(bo(JSON.stringify(n))),i=new Li(n,o),a=new WeakMap,s=function(e){var t=fi(),r=S.useContext(Ri),n=a.get(t.styleSheet);return void 0===n&&(n=t.styleSheet.allocateGSInstance(o),a.set(t.styleSheet,n)),("undefined"==typeof window||!t.styleSheet.server)&&l(n,e,t.styleSheet,r,t.stylis),S.useLayoutEffect((function(){return t.styleSheet.server||l(n,e,t.styleSheet,r,t.stylis),function(){var e;i.removeStyles(n,t.styleSheet),e=t.styleSheet.options.target,"undefined"!=typeof document&&(null!=e?e:document).querySelectorAll('style[data-styled-global="'.concat(o,'"]')).forEach((function(e){return e.remove()}))}}),[n,e,t.styleSheet,r,t.stylis]),null};function l(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Jn,r,o);else{var a=Br(Br({},t),{theme:ao(t,n,s.defaultProps)});i.renderStyles(e,a,r,o)}}return S.memo(s)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
|
|
10
10
|
/**
|
|
11
11
|
* @mui/styled-engine-sc v6.4.3
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ 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
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
function Hi(e,t){let r;return r=t?Ti(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ti(e),r}function $i(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Bi(e){return e}Fi.propTypes={defaultTheme:_i.object,styles:_i.oneOfType([_i.array,_i.string,_i.object,_i.func])};var Wi=Object.freeze({__proto__:null,GlobalStyles:Fi,StyledEngineProvider:zi,ThemeContext:Ei,css:Ii,default:Hi,internal_mutateStyles:$i,internal_processStyles:function(e,t){return $i(e,t)},internal_serializeStyles:Bi,keyframes:Li});function Vi(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 Ui(e){if(y.isValidElement(e)||!Vi(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Ui(e[r])})),t}function Gi(e,t,r={clone:!0}){const n=r.clone?Fr({},e):e;return Vi(e)&&Vi(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:Vi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Vi(e[o])?n[o]=Gi(e[o],t[o],r):r.clone?n[o]=Vi(t[o])?Ui(t[o]):t[o]:n[o]=t[o]})),n}var Yi=Object.freeze({__proto__:null,default:Gi,isPlainObject:Vi});const Ki=["values","unit","step"];function Xi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Hr(e,Ki),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)=>Fr({},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 Fr({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 Ji={borderRadius:4};function Zi(e,t){return t?Gi(e,t,{clone:!1}):e}const Qi={xs:0,sm:600,md:900,lg:1200,xl:1536},ea={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qi[e]}px)`};function ta(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ea;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||ea;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Qi).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function ra(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function na(e){if("string"!=typeof e)throw new Error(jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var oa=Object.freeze({__proto__:null,default:na});function ia(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 aa(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:ia(e,r)||n,t&&(o=t(o,n,e)),o}function sa(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=ia(e.theme,n)||{};return ta(e,i,(e=>{let n=aa(a,o,e);return e===n&&"string"==typeof e&&(n=aa(a,o,`${t}${"default"===e?"":na(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const la={m:"margin",p:"padding"},ua={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ca={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},da=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!ca[e])return[e];e=ca[e]}const[t,r]=e.split(""),n=la[t],o=ua[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),pa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ha(e,t,r,n){var o;const i=null!=(o=ia(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 ma(e){return ha(e,"spacing",8)}function ga(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 ba(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=ga(t,r),e)),{})}(da(r),n);return ta(e,e[r],o)}function va(e,t){const r=ma(e.theme);return Object.keys(e).map((n=>ba(e,t,n,r))).reduce(Zi,{})}function ya(e){return va(e,pa)}function xa(e){return va(e,fa)}function Sa(...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]?Zi(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function wa(e){return"number"!=typeof e?e:`${e}px solid`}function Ca(e,t){return sa({prop:e,themeKey:"borders",transform:t})}ya.propTypes={},ya.filterProps=pa,xa.propTypes={},xa.filterProps=fa;const Ea=Ca("border",wa),Ra=Ca("borderTop",wa),Aa=Ca("borderRight",wa),Pa=Ca("borderBottom",wa),Ma=Ca("borderLeft",wa),Ia=Ca("borderColor"),ka=Ca("borderTopColor"),Da=Ca("borderRightColor"),Ta=Ca("borderBottomColor"),Oa=Ca("borderLeftColor"),La=Ca("outline",wa),qa=Ca("outlineColor"),Na=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ha(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:ga(t,e)});return ta(e,e.borderRadius,r)}return null};Na.propTypes={},Na.filterProps=["borderRadius"],Sa(Ea,Ra,Aa,Pa,Ma,Ia,ka,Da,Ta,Oa,Na,La,qa);const ja=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ha(e.theme,"spacing",8),r=e=>({gap:ga(t,e)});return ta(e,e.gap,r)}return null};ja.propTypes={},ja.filterProps=["gap"];const _a=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ha(e.theme,"spacing",8),r=e=>({columnGap:ga(t,e)});return ta(e,e.columnGap,r)}return null};_a.propTypes={},_a.filterProps=["columnGap"];const za=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ha(e.theme,"spacing",8),r=e=>({rowGap:ga(t,e)});return ta(e,e.rowGap,r)}return null};za.propTypes={},za.filterProps=["rowGap"];function Fa(e,t){return"grey"===t?t:e}Sa(ja,_a,za,sa({prop:"gridColumn"}),sa({prop:"gridRow"}),sa({prop:"gridAutoFlow"}),sa({prop:"gridAutoColumns"}),sa({prop:"gridAutoRows"}),sa({prop:"gridTemplateColumns"}),sa({prop:"gridTemplateRows"}),sa({prop:"gridTemplateAreas"}),sa({prop:"gridArea"}));function Ha(e){return e<=1&&0!==e?100*e+"%":e}Sa(sa({prop:"color",themeKey:"palette",transform:Fa}),sa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fa}),sa({prop:"backgroundColor",themeKey:"palette",transform:Fa}));const $a=sa({prop:"width",transform:Ha}),Ba=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])||Qi[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:Ha(t)}};return ta(e,e.maxWidth,t)}return null};Ba.filterProps=["maxWidth"];const Wa=sa({prop:"minWidth",transform:Ha}),Va=sa({prop:"height",transform:Ha}),Ua=sa({prop:"maxHeight",transform:Ha}),Ga=sa({prop:"minHeight",transform:Ha});sa({prop:"size",cssProperty:"width",transform:Ha}),sa({prop:"size",cssProperty:"height",transform:Ha});Sa($a,Ba,Wa,Va,Ua,Ga,sa({prop:"boxSizing"}));const Ya={border:{themeKey:"borders",transform:wa},borderTop:{themeKey:"borders",transform:wa},borderRight:{themeKey:"borders",transform:wa},borderBottom:{themeKey:"borders",transform:wa},borderLeft:{themeKey:"borders",transform:wa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Na},color:{themeKey:"palette",transform:Fa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fa},backgroundColor:{themeKey:"palette",transform:Fa},p:{style:xa},pt:{style:xa},pr:{style:xa},pb:{style:xa},pl:{style:xa},px:{style:xa},py:{style:xa},padding:{style:xa},paddingTop:{style:xa},paddingRight:{style:xa},paddingBottom:{style:xa},paddingLeft:{style:xa},paddingX:{style:xa},paddingY:{style:xa},paddingInline:{style:xa},paddingInlineStart:{style:xa},paddingInlineEnd:{style:xa},paddingBlock:{style:xa},paddingBlockStart:{style:xa},paddingBlockEnd:{style:xa},m:{style:ya},mt:{style:ya},mr:{style:ya},mb:{style:ya},ml:{style:ya},mx:{style:ya},my:{style:ya},margin:{style:ya},marginTop:{style:ya},marginRight:{style:ya},marginBottom:{style:ya},marginLeft:{style:ya},marginX:{style:ya},marginY:{style:ya},marginInline:{style:ya},marginInlineStart:{style:ya},marginInlineEnd:{style:ya},marginBlock:{style:ya},marginBlockStart:{style:ya},marginBlockEnd:{style:ya},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:ja},rowGap:{style:za},columnGap:{style:_a},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ha},maxWidth:{style:Ba},minWidth:{transform:Ha},height:{transform:Ha},maxHeight:{transform:Ha},minHeight:{transform:Ha},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ka(){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=ia(r,s)||{};if(u)return u(o);return ta(o,t,(t=>{let r=aa(c,l,t);return t===r&&"string"==typeof t&&(r=aa(c,l,`${e}${"default"===t?"":na(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:Ya;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=Zi(u,e(r,o,i,s));else{const e=ta({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=Zi(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=Zi(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":ra(l,u)}:ra(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const Xa=Ka();function Ja(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:{}}Xa.filterProps=["sx"];const Za=["breakpoints","palette","spacing","shape"];function Qa(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Hr(e,Za),s=Xi(r),l=function(e=8){if(e.mui)return e;const t=ma({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=Gi({breakpoints:s,direction:"ltr",components:{},palette:Fr({mode:"light"},n),spacing:l,shape:Fr({},Ji,i)},a);return u.applyStyles=Ja,u=t.reduce(((e,t)=>Gi(e,t)),u),u.unstable_sxConfig=Fr({},Ya,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Xa({sx:e,theme:this})},u}var es=Object.freeze({__proto__:null,default:Qa,private_createBreakpoints:Xi,unstable_applyStyles:Ja});function ts(e=null){const t=y.useContext(Ei);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const rs=Qa();function ns(e=rs){return ts(e)}function os(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function is({styles:e,themeId:t,defaultTheme:r={}}){const n=ns(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>os("function"==typeof e?e(o):e))):os(i)),rr.jsx(Fi,{styles:i})}const as=["sx"];function ss(e){const{sx:t}=e,r=Hr(e,as),{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:Ya;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 Vi(r)?Fr({},n,r):n}:Fr({},n,t),Fr({},o,{sx:i})}var ls=Object.freeze({__proto__:null,default:Xa,extendSxProp:ss,unstable_createStyleFunctionSx:Ka,unstable_defaultSxConfig:Ya});const us=e=>e,cs=(()=>{let e=us;return{configure(t){e=t},generate:t=>e(t),reset(){e=us}}})();function ds(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=ds(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ps(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ds(e))&&(n&&(n+=" "),n+=t);return n}const fs=["className","component"];const hs={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 ms(e,t,r="Mui"){const n=hs[t];return n?`${r}-${n}`:`${cs.generate(e)}-${t}`}function gs(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ms(e,t,r)})),n}var bs={exports:{}},vs={},ys=Symbol.for("react.transitional.element"),xs=Symbol.for("react.portal"),Ss=Symbol.for("react.fragment"),ws=Symbol.for("react.strict_mode"),Cs=Symbol.for("react.profiler"),Es=Symbol.for("react.consumer"),Rs=Symbol.for("react.context"),As=Symbol.for("react.forward_ref"),Ps=Symbol.for("react.suspense"),Ms=Symbol.for("react.suspense_list"),Is=Symbol.for("react.memo"),ks=Symbol.for("react.lazy"),Ds=Symbol.for("react.offscreen"),Ts=Symbol.for("react.client.reference");function Os(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ys:switch(e=e.type){case Ss:case Cs:case ws:case Ps:case Ms:return e;default:switch(e=e&&e.$$typeof){case Rs:case As:case ks:case Is:case Es:return e;default:return t}}case xs:return t}}}vs.ContextConsumer=Es,vs.ContextProvider=Rs,vs.Element=ys,vs.ForwardRef=As,vs.Fragment=Ss,vs.Lazy=ks,vs.Memo=Is,vs.Portal=xs,vs.Profiler=Cs,vs.StrictMode=ws,vs.Suspense=Ps,vs.SuspenseList=Ms,vs.isContextConsumer=function(e){return Os(e)===Es},vs.isContextProvider=function(e){return Os(e)===Rs},vs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ys},vs.isForwardRef=function(e){return Os(e)===As},vs.isFragment=function(e){return Os(e)===Ss},vs.isLazy=function(e){return Os(e)===ks},vs.isMemo=function(e){return Os(e)===Is},vs.isPortal=function(e){return Os(e)===xs},vs.isProfiler=function(e){return Os(e)===Cs},vs.isStrictMode=function(e){return Os(e)===ws},vs.isSuspense=function(e){return Os(e)===Ps},vs.isSuspenseList=function(e){return Os(e)===Ms},vs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ss||e===Cs||e===ws||e===Ps||e===Ms||e===Ds||"object"==typeof e&&null!==e&&(e.$$typeof===ks||e.$$typeof===Is||e.$$typeof===Rs||e.$$typeof===Es||e.$$typeof===As||e.$$typeof===Ts||void 0!==e.getModuleId)},vs.typeOf=Os,bs.exports=vs;var Ls=bs.exports;const qs=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ns(e){const t=`${e}`.match(qs);return t&&t[1]||""}function js(e,t=""){return e.displayName||e.name||Ns(e)||t}function _s(e,t,r){const n=js(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var zs=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return js(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ls.ForwardRef:return _s(e,e.render,"ForwardRef");case Ls.Memo:return _s(e,e.type,"memo");default:return}}},getFunctionName:Ns});function Fs(e,t){const r=Fr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Fr({},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]=Fr({},i),Object.keys(o).forEach((e=>{r[n][e]=Fs(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Hs="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function $s(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Bs=Object.freeze({__proto__:null,default:$s});function Ws(e){if(e.type)return e;if("#"===e.charAt(0))return Ws(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(jr(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(jr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Vs(e,t){return e=Ws(e),t=function(e,t=0,r=1){return $s(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 Us(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Gs(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Ys(e){return e&&e.ownerDocument||document}function Ks(e){return Ys(e).defaultView||window}function Xs(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Js=0;const Zs=y["useId".toString()];function Qs(e){if(void 0!==Zs){return Zs()}return function(e){const[t,r]=y.useState(e),n=t;return y.useEffect((()=>{null==t&&(Js+=1,r(`mui-${Js}`))}),[t]),n}(e)}function el({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 tl(e){const t=y.useRef(e);return Hs((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function rl(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Xs(e,t)}))}),e)}const nl={};const ol=[];class il{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new il}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function al(){const e=function(e,t){const r=y.useRef(nl);return r.current===nl&&(r.current=e(t)),r}(il.create).current;return function(e){y.useEffect(e,ol)}(e.disposeEffect),e}let sl=!0,ll=!1;const ul=new il,cl={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 dl(e){e.metaKey||e.altKey||e.ctrlKey||(sl=!0)}function pl(){sl=!1}function fl(){"hidden"===this.visibilityState&&ll&&(sl=!0)}function hl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return sl||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!cl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function ml(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",dl,!0),t.addEventListener("mousedown",pl,!0),t.addEventListener("pointerdown",pl,!0),t.addEventListener("touchstart",pl,!0),t.addEventListener("visibilitychange",fl,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!hl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ll=!0,ul.start(100,(()=>{ll=!1})),t.current=!1,!0)},ref:e}}function gl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function bl(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 vl(e){return"string"==typeof e}function yl(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 xl(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 Sl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function wl(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Hr(e,Sl),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=ps(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Fr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Fr({},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=yl(Fr({},o,n)),s=xl(n),l=xl(o),u=t(a),c=ps(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=Fr({},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=Fr({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Fr({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||vl(e)?t:Fr({},t,{ownerState:Fr({},t.ownerState,r)})}(r,Fr({},l,{ref:rl(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Cl(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 El=y.createContext(null);function Rl(){return y.useContext(El)}var Al="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Pl(e){const{children:t,theme:r}=e,n=Rl(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Fr({},e,t)}(n,r);return null!=e&&(e[Al]=null!==n),e}),[r,n]);return rr.jsx(El.Provider,{value:o,children:t})}const Ml=["value"],Il=y.createContext();function kl(e){let{value:t}=e,r=Hr(e,Ml);return rr.jsx(Il.Provider,Fr({value:null==t||t},r))}const Dl=y.createContext(void 0);function Tl({value:e,children:t}){return rr.jsx(Dl.Provider,{value:e,children:t})}function Ol({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?Fs(o.defaultProps,n):o.styleOverrides||o.variants?n:Fs(o,n)}({props:e,name:t,theme:{components:y.useContext(Dl)}})}const Ll={};function ql(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Fr({},t,{[e]:i}):i;return n?()=>a:a}return Fr({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Nl(e){const{children:t,theme:r,themeId:n}=e,o=ts(Ll),i=Rl()||Ll,a=ql(n,o,r),s=ql(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=ts(),r=Qs()||"",{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};`:"",Hs((()=>{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?rr.jsx(is,{styles:o}):null}(a);return rr.jsx(Pl,{theme:s,children:rr.jsx(Ei.Provider,{value:a,children:rr.jsx(kl,{value:l,children:rr.jsxs(Tl,{value:null==a?void 0:a.components,children:[u,t]})})})})}function jl(e){return jl="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},jl(e)}function _l(e){var t=function(e,t){if("object"!=jl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=jl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==jl(t)?t:t+""}function zl(e,t){return Fr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Fl,Hl={},$l={exports:{}};(Fl=$l).exports=function(e){return e&&e.__esModule?e:{default:e}},Fl.exports.__esModule=!0,Fl.exports.default=Fl.exports;var Bl=$l.exports,Wl=Ut(_r),Vl=Ut(Bs),Ul=Bl;Object.defineProperty(Hl,"__esModule",{value:!0});var Gl=Hl.alpha=au;Hl.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=tu(e),a=tu(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return nu({type:"rgb",values:s})},Hl.colorChannel=void 0;var Yl=Hl.darken=su;Hl.decomposeColor=tu,Hl.emphasize=uu;var Kl=Hl.getContrastRatio=function(e,t){const r=iu(e),n=iu(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Hl.getLuminance=iu,Hl.hexToRgb=eu,Hl.hslToRgb=ou;var Xl=Hl.lighten=lu;Hl.private_safeAlpha=function(e,t,r){try{return au(e,t)}catch(t){return e}},Hl.private_safeColorChannel=void 0,Hl.private_safeDarken=function(e,t,r){try{return su(e,t)}catch(t){return e}},Hl.private_safeEmphasize=function(e,t,r){try{return uu(e,t)}catch(t){return e}},Hl.private_safeLighten=function(e,t,r){try{return lu(e,t)}catch(t){return e}},Hl.recomposeColor=nu,Hl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=tu(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 Jl=Ul(Wl),Zl=Ul(Vl);function Ql(e,t=0,r=1){return(0,Zl.default)(e,t,r)}function eu(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 tu(e){if(e.type)return e;if("#"===e.charAt(0))return tu(eu(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Jl.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,Jl.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const ru=e=>{const t=tu(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Hl.colorChannel=ru;function nu(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 ou(e){e=tu(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])),nu({type:s,values:l})}function iu(e){let t="hsl"===(e=tu(e)).type||"hsla"===e.type?tu(ou(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 au(e,t){return e=tu(e),t=Ql(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,nu(e)}function su(e,t){if(e=tu(e),t=Ql(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 nu(e)}function lu(e,t){if(e=tu(e),t=Ql(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 nu(e)}function uu(e,t=.15){return iu(e)>.5?su(e,t):lu(e,t)}Hl.private_safeColorChannel=(e,t)=>{try{return ru(e)}catch(t){return e}};const cu=["mode","contrastThreshold","tonalOffset"],du={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:nr.white,default:nr.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}},pu={text:{primary:nr.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:nr.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 fu(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=Xl(e.main,o):"dark"===t&&(e.dark=Yl(e.main,i)))}function hu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Hr(e,cu),i=e.primary||function(e="light"){return"dark"===e?{main:gr,light:mr,dark:br}:{main:vr,light:br,dark:yr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:cr,light:ur,dark:pr}:{main:fr,light:dr,dark:hr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:ar,light:or,dark:sr}:{main:sr,light:ir,dark:lr}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Sr,light:xr,dark:Cr}:{main:Cr,light:wr,dark:Er}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ar,light:Rr,dark:Mr}:{main:Ir,light:Pr,dark:kr}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Tr,light:Dr,dark:Lr}:{main:"#ed6c02",light:Or,dark:qr}}(t);function d(e){return Kl(e,pu.text.primary)>=r?pu.text.primary:du.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Fr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(jr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(jr(12,t?` (${t})`:"",JSON.stringify(e.main)));return fu(e,"light",o,n),fu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:pu,light:du};return Gi(Fr({common:Fr({},nr),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:Nr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const mu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const gu={textTransform:"uppercase"},bu='"Roboto", "Helvetica", "Arial", sans-serif';function vu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=bu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Hr(r,mu),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Fr({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===bu?{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,gu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,gu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gi(Fr({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function yu(...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 xu=["none",yu(0,2,1,-1,0,1,1,0,0,1,3,0),yu(0,3,1,-2,0,2,2,0,0,1,5,0),yu(0,3,3,-2,0,3,4,0,0,1,8,0),yu(0,2,4,-1,0,4,5,0,0,1,10,0),yu(0,3,5,-1,0,5,8,0,0,1,14,0),yu(0,3,5,-1,0,6,10,0,0,1,18,0),yu(0,4,5,-2,0,7,10,1,0,2,16,1),yu(0,5,5,-3,0,8,10,1,0,3,14,2),yu(0,5,6,-3,0,9,12,1,0,3,16,2),yu(0,6,6,-3,0,10,14,1,0,4,18,3),yu(0,6,7,-4,0,11,15,1,0,4,20,3),yu(0,7,8,-4,0,12,17,2,0,5,22,4),yu(0,7,8,-4,0,13,19,2,0,5,24,4),yu(0,7,9,-4,0,14,21,2,0,5,26,4),yu(0,8,9,-5,0,15,22,2,0,6,28,5),yu(0,8,10,-5,0,16,24,2,0,6,30,5),yu(0,8,11,-5,0,17,26,2,0,6,32,5),yu(0,9,11,-5,0,18,28,2,0,7,34,6),yu(0,9,12,-6,0,19,29,2,0,7,36,6),yu(0,10,13,-6,0,20,31,3,0,8,38,7),yu(0,10,13,-6,0,21,33,3,0,8,40,7),yu(0,10,14,-6,0,22,35,3,0,8,42,7),yu(0,11,14,-7,0,23,36,3,0,9,44,8),yu(0,11,15,-7,0,24,38,3,0,9,46,8)],Su=["duration","easing","delay"],wu={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)"},Cu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Eu(e){return`${Math.round(e)}ms`}function Ru(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Au(e){const t=Fr({},wu,e.easing),r=Fr({},Cu,e.duration);return Fr({getAutoHeightDuration:Ru,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Hr(n,Su),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Eu(o)} ${i} ${"string"==typeof a?a:Eu(a)}`)).join(",")}},e,{easing:t,duration:r})}const Pu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Mu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Iu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Hr(e,Mu);if(e.vars&&void 0===e.generateCssVars)throw new Error(jr(18));const s=hu(n),l=Qa(e);let u=Gi(l,{mixins:zl(l.breakpoints,r),palette:s,shadows:xu.slice(),typography:vu(s,i),transitions:Au(o),zIndex:Fr({},Pu)});return u=Gi(u,a),u=t.reduce(((e,t)=>Gi(e,t)),u),u.unstable_sxConfig=Fr({},Ya,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Xa({sx:e,theme:this})},u}const ku=Iu();function Du(){const e=ns(ku);return e[zr]||e}var Tu,Ou={},Lu={exports:{}};function qu(){return Tu||(Tu=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}(Lu)),Lu.exports}var Nu,ju={exports:{}};function _u(){return Nu||(Nu=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}(ju)),ju.exports}var zu=Ut(Wi),Fu=Ut(Yi),Hu=Ut(oa),$u=Ut(zs),Bu=Ut(es),Wu=Ut(ls),Vu=Bl;Object.defineProperty(Ou,"__esModule",{value:!0});var Uu=Ou.default=function(e={}){const{themeId:t,defaultTheme:r=ic,rootShouldForwardProp:n=nc,slotShouldForwardProp:o=nc}=e,i=e=>(0,Zu.default)((0,Gu.default)({},e,{theme:sc((0,Gu.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Ku.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=lc(ac(l))}=a,p=(0,Yu.default)(a,tc),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=nc;"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,Ku.default)(e,(0,Gu.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Xu.isPlainObject)(e)?n=>{const o=sc({theme:n.theme,defaultTheme:r,themeId:t});return uc(e,(0,Gu.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=sc((0,Gu.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]=uc(r,(0,Gu.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=sc((0,Gu.default)({},e,{defaultTheme:r,themeId:t}));return uc({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Gu.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}};Ou.shouldForwardProp=nc,Ou.systemDefaultTheme=void 0;var Gu=Vu(qu()),Yu=Vu(_u()),Ku=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=rc(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}(zu),Xu=Fu;Vu(Hu),Vu($u);var Ju=Vu(Bu),Zu=Vu(Wu);const Qu=["ownerState"],ec=["variants"],tc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rc(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(rc=function(e){return e?r:t})(e)}function nc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function oc(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const ic=Ou.systemDefaultTheme=(0,Ju.default)(),ac=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function sc({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function lc(e){return e?(t,r)=>r[e]:null}function uc(e,t,r){let{ownerState:n}=t,o=(0,Yu.default)(t,Qu);const i="function"==typeof e?e((0,Gu.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>uc(e,(0,Gu.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Yu.default)(i,ec);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Gu.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,Gu.default)({ownerState:n},o,n)):e.style;t.push(r?oc((0,Ku.internal_serializeStyles)(i),r):i)}})),t}return r?oc((0,Ku.internal_serializeStyles)(i),r):i}function cc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const dc=e=>cc(e)&&"classes"!==e,pc=Uu({themeId:zr,defaultTheme:ku,rootShouldForwardProp:dc}),fc=["theme"];function hc(e){let{theme:t}=e,r=Hr(e,fc);const n=t[zr];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Fr({},n,{vars:null}):t&&!t.vars&&(o=Fr({},t,{vars:null}))),rr.jsx(Nl,Fr({},r,{themeId:n?zr:void 0,theme:o}))}const mc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function gc(e){return Ol(e)}function bc(e){return ms("MuiSvgIcon",e)}gs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],yc=pc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${na(r.color)}`],t[`fontSize${na(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]}})),xc=y.forwardRef((function(e,t){const r=gc({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=Hr(r,vc),f=y.isValidElement(n)&&"svg"===n.type,h=Fr({},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 bl({root:["root","inherit"!==t&&`color${na(t)}`,`fontSize${na(r)}`]},bc,n)})(h);return rr.jsxs(yc,Fr({as:a,className:ps(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?rr.jsx("title",{children:c}):null]}))}));function Sc(e,t){return Sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sc(e,t)}function wc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sc(e,t)}xc.muiName="SvgIcon";var Cc=!1,Ec=x.createContext(null),Rc="unmounted",Ac="exited",Pc="entering",Mc="entered",Ic="exiting",kc=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=Ac,n.appearStatus=Pc):o=Mc:o=t.unmountOnExit||t.mountOnEnter?Rc:Ac,n.state={status:o},n.nextCallback=null,n}wc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rc?{status:Ac}: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!==Pc&&r!==Mc&&(t=Pc):r!==Pc&&r!==Mc||(t=Ic)}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===Pc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:$.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ac&&this.setState({status:Rc})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[$.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Cc?this.safeSetState({status:Mc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Pc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Mc},(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:$.findDOMNode(this);t&&!Cc?(this.props.onExit(n),this.safeSetState({status:Ic},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ac},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ac},(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:$.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===Rc)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=Hr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Ec.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Dc(){}function Tc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oc(e,t){var r=Object.create(null);return e&&E.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&w(e)?t(e):e}(e)})),r}function Lc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function qc(e,t,r){var n=Oc(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(w(a)){var s=i in t,l=i in n,u=t[i],c=w(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&w(u)&&(o[i]=C(a,{onExited:r.bind(null,a),in:u.props.in,exit:Lc(a,"exit",e),enter:Lc(a,"enter",e)})):o[i]=C(a,{in:!1}):o[i]=C(a,{onExited:r.bind(null,a),in:!0,exit:Lc(a,"exit",e),enter:Lc(a,"enter",e)})}})),o}kc.contextType=Ec,kc.propTypes={},kc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dc,onEntering:Dc,onEntered:Dc,onExit:Dc,onExiting:Dc,onExited:Dc},kc.UNMOUNTED=Rc,kc.EXITED=Ac,kc.ENTERING=Pc,kc.ENTERED=Mc,kc.EXITING=Ic;var Nc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},jc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Tc(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}wc(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,Oc(r.children,(function(e){return C(e,{onExited:n.bind(null,e),in:!0,appear:Lc(e,"appear",r),enter:Lc(e,"enter",r),exit:Lc(e,"exit",r)})}))):qc(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Oc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=Fr({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Hr(e,["component","childFactory"]),o=this.state.contextValue,i=Nc(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Ec.Provider,{value:o},i):x.createElement(Ec.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);jc.propTypes={},jc.defaultProps={component:"div",childFactory:function(e){return e}};const _c=e=>e.scrollTop;function zc(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 Fc(e){return ms("MuiPaper",e)}gs("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 Hc=["className","component","elevation","square","variant"],$c=pc("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 Fr({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&&Fr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Gl("#fff",mc(t.elevation))}, ${Gl("#fff",mc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Bc=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Hr(r,Hc),u=Fr({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return bl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Fc,o)})(u);return rr.jsx($c,Fr({as:o,ownerState:u,className:ps(c.root,n),ref:t},l))}));const Wc=gs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Vc=["center","classes","className"];let Uc,Gc,Yc,Kc,Xc=e=>e;const Jc=Li(Uc||(Uc=Xc`
|
|
17
|
+
function Hi(e,t){let r;return r=t?Oi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Oi(e),r}function Bi(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Wi(e){return e}$i.propTypes={defaultTheme:zi.object,styles:zi.oneOfType([zi.array,zi.string,zi.object,zi.func])};var Vi=Object.freeze({__proto__:null,GlobalStyles:$i,StyledEngineProvider:Fi,ThemeContext:Ri,css:ki,default:Hi,internal_mutateStyles:Bi,internal_processStyles:function(e,t){return Bi(e,t)},internal_serializeStyles:Wi,keyframes:qi});function Ui(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 Gi(e){if(x.isValidElement(e)||!Ui(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Gi(e[r])})),t}function Yi(e,t,r={clone:!0}){const n=r.clone?$r({},e):e;return Ui(e)&&Ui(t)&&Object.keys(t).forEach((o=>{x.isValidElement(t[o])?n[o]=t[o]:Ui(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ui(e[o])?n[o]=Yi(e[o],t[o],r):r.clone?n[o]=Ui(t[o])?Gi(t[o]):t[o]:n[o]=t[o]})),n}var Ki=Object.freeze({__proto__:null,default:Yi,isPlainObject:Ui});const Xi=["values","unit","step"];function Ji(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Hr(e,Xi),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 Zi={borderRadius:4};function Qi(e,t){return t?Yi(e,t,{clone:!1}):e}const ea={xs:0,sm:600,md:900,lg:1200,xl:1536},ta={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ea[e]}px)`};function ra(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ta;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||ta;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||ea).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function na(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function oa(e){if("string"!=typeof e)throw new Error(jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ia=Object.freeze({__proto__:null,default:oa});function aa(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 sa(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:aa(e,r)||n,t&&(o=t(o,n,e)),o}function la(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=aa(e.theme,n)||{};return ra(e,i,(e=>{let n=sa(a,o,e);return e===n&&"string"==typeof e&&(n=sa(a,o,`${t}${"default"===e?"":oa(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const ua={m:"margin",p:"padding"},ca={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},da={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pa=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!da[e])return[e];e=da[e]}const[t,r]=e.split(""),n=ua[t],o=ca[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),fa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ha=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ma(e,t,r,n){var o;const i=null!=(o=aa(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 ga(e){return ma(e,"spacing",8)}function va(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 ba(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=va(t,r),e)),{})}(pa(r),n);return ra(e,e[r],o)}function ya(e,t){const r=ga(e.theme);return Object.keys(e).map((n=>ba(e,t,n,r))).reduce(Qi,{})}function xa(e){return ya(e,fa)}function Sa(e){return ya(e,ha)}function wa(...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]?Qi(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Ca(e){return"number"!=typeof e?e:`${e}px solid`}function Ea(e,t){return la({prop:e,themeKey:"borders",transform:t})}xa.propTypes={},xa.filterProps=fa,Sa.propTypes={},Sa.filterProps=ha;const Ra=Ea("border",Ca),Aa=Ea("borderTop",Ca),Pa=Ea("borderRight",Ca),Ma=Ea("borderBottom",Ca),Ia=Ea("borderLeft",Ca),ka=Ea("borderColor"),Da=Ea("borderTopColor"),Ta=Ea("borderRightColor"),Oa=Ea("borderBottomColor"),La=Ea("borderLeftColor"),qa=Ea("outline",Ca),Na=Ea("outlineColor"),_a=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ma(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:va(t,e)});return ra(e,e.borderRadius,r)}return null};_a.propTypes={},_a.filterProps=["borderRadius"],wa(Ra,Aa,Pa,Ma,Ia,ka,Da,Ta,Oa,La,_a,qa,Na);const ja=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ma(e.theme,"spacing",8),r=e=>({gap:va(t,e)});return ra(e,e.gap,r)}return null};ja.propTypes={},ja.filterProps=["gap"];const za=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ma(e.theme,"spacing",8),r=e=>({columnGap:va(t,e)});return ra(e,e.columnGap,r)}return null};za.propTypes={},za.filterProps=["columnGap"];const Fa=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ma(e.theme,"spacing",8),r=e=>({rowGap:va(t,e)});return ra(e,e.rowGap,r)}return null};Fa.propTypes={},Fa.filterProps=["rowGap"];function $a(e,t){return"grey"===t?t:e}wa(ja,za,Fa,la({prop:"gridColumn"}),la({prop:"gridRow"}),la({prop:"gridAutoFlow"}),la({prop:"gridAutoColumns"}),la({prop:"gridAutoRows"}),la({prop:"gridTemplateColumns"}),la({prop:"gridTemplateRows"}),la({prop:"gridTemplateAreas"}),la({prop:"gridArea"}));function Ha(e){return e<=1&&0!==e?100*e+"%":e}wa(la({prop:"color",themeKey:"palette",transform:$a}),la({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$a}),la({prop:"backgroundColor",themeKey:"palette",transform:$a}));const Ba=la({prop:"width",transform:Ha}),Wa=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])||ea[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:Ha(t)}};return ra(e,e.maxWidth,t)}return null};Wa.filterProps=["maxWidth"];const Va=la({prop:"minWidth",transform:Ha}),Ua=la({prop:"height",transform:Ha}),Ga=la({prop:"maxHeight",transform:Ha}),Ya=la({prop:"minHeight",transform:Ha});la({prop:"size",cssProperty:"width",transform:Ha}),la({prop:"size",cssProperty:"height",transform:Ha});wa(Ba,Wa,Va,Ua,Ga,Ya,la({prop:"boxSizing"}));const Ka={border:{themeKey:"borders",transform:Ca},borderTop:{themeKey:"borders",transform:Ca},borderRight:{themeKey:"borders",transform:Ca},borderBottom:{themeKey:"borders",transform:Ca},borderLeft:{themeKey:"borders",transform:Ca},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ca},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_a},color:{themeKey:"palette",transform:$a},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$a},backgroundColor:{themeKey:"palette",transform:$a},p:{style:Sa},pt:{style:Sa},pr:{style:Sa},pb:{style:Sa},pl:{style:Sa},px:{style:Sa},py:{style:Sa},padding:{style:Sa},paddingTop:{style:Sa},paddingRight:{style:Sa},paddingBottom:{style:Sa},paddingLeft:{style:Sa},paddingX:{style:Sa},paddingY:{style:Sa},paddingInline:{style:Sa},paddingInlineStart:{style:Sa},paddingInlineEnd:{style:Sa},paddingBlock:{style:Sa},paddingBlockStart:{style:Sa},paddingBlockEnd:{style:Sa},m:{style:xa},mt:{style:xa},mr:{style:xa},mb:{style:xa},ml:{style:xa},mx:{style:xa},my:{style:xa},margin:{style:xa},marginTop:{style:xa},marginRight:{style:xa},marginBottom:{style:xa},marginLeft:{style:xa},marginX:{style:xa},marginY:{style:xa},marginInline:{style:xa},marginInlineStart:{style:xa},marginInlineEnd:{style:xa},marginBlock:{style:xa},marginBlockStart:{style:xa},marginBlockEnd:{style:xa},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:ja},rowGap:{style:Fa},columnGap:{style:za},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ha},maxWidth:{style:Wa},minWidth:{transform:Ha},height:{transform:Ha},maxHeight:{transform:Ha},minHeight:{transform:Ha},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Xa(){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=aa(r,s)||{};if(u)return u(o);return ra(o,t,(t=>{let r=sa(c,l,t);return t===r&&"string"==typeof t&&(r=sa(c,l,`${e}${"default"===t?"":oa(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:Ka;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=Qi(u,e(r,o,i,s));else{const e=ra({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=Qi(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=Qi(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":na(l,u)}:na(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const Ja=Xa();function Za(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:{}}Ja.filterProps=["sx"];const Qa=["breakpoints","palette","spacing","shape"];function es(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Hr(e,Qa),s=Ji(r),l=function(e=8){if(e.mui)return e;const t=ga({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=Yi({breakpoints:s,direction:"ltr",components:{},palette:$r({mode:"light"},n),spacing:l,shape:$r({},Zi,i)},a);return u.applyStyles=Za,u=t.reduce(((e,t)=>Yi(e,t)),u),u.unstable_sxConfig=$r({},Ka,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ja({sx:e,theme:this})},u}var ts=Object.freeze({__proto__:null,default:es,private_createBreakpoints:Ji,unstable_applyStyles:Za});function rs(e=null){const t=x.useContext(Ri);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const ns=es();function os(e=ns){return rs(e)}function is(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function as({styles:e,themeId:t,defaultTheme:r={}}){const n=os(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>is("function"==typeof e?e(o):e))):is(i)),nr.jsx($i,{styles:i})}const ss=["sx"];function ls(e){const{sx:t}=e,r=Hr(e,ss),{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:Ka;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 Ui(r)?$r({},n,r):n}:$r({},n,t),$r({},o,{sx:i})}var us=Object.freeze({__proto__:null,default:Ja,extendSxProp:ls,unstable_createStyleFunctionSx:Xa,unstable_defaultSxConfig:Ka});const cs=e=>e,ds=(()=>{let e=cs;return{configure(t){e=t},generate:t=>e(t),reset(){e=cs}}})();function ps(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=ps(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function fs(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ps(e))&&(n&&(n+=" "),n+=t);return n}const hs=["className","component"];const ms={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 gs(e,t,r="Mui"){const n=ms[t];return n?`${r}-${n}`:`${ds.generate(e)}-${t}`}function vs(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=gs(e,t,r)})),n}var bs={exports:{}},ys={},xs=Symbol.for("react.transitional.element"),Ss=Symbol.for("react.portal"),ws=Symbol.for("react.fragment"),Cs=Symbol.for("react.strict_mode"),Es=Symbol.for("react.profiler"),Rs=Symbol.for("react.consumer"),As=Symbol.for("react.context"),Ps=Symbol.for("react.forward_ref"),Ms=Symbol.for("react.suspense"),Is=Symbol.for("react.suspense_list"),ks=Symbol.for("react.memo"),Ds=Symbol.for("react.lazy"),Ts=Symbol.for("react.offscreen"),Os=Symbol.for("react.client.reference");function Ls(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case xs:switch(e=e.type){case ws:case Es:case Cs:case Ms:case Is:return e;default:switch(e=e&&e.$$typeof){case As:case Ps:case Ds:case ks:case Rs:return e;default:return t}}case Ss:return t}}}ys.ContextConsumer=Rs,ys.ContextProvider=As,ys.Element=xs,ys.ForwardRef=Ps,ys.Fragment=ws,ys.Lazy=Ds,ys.Memo=ks,ys.Portal=Ss,ys.Profiler=Es,ys.StrictMode=Cs,ys.Suspense=Ms,ys.SuspenseList=Is,ys.isContextConsumer=function(e){return Ls(e)===Rs},ys.isContextProvider=function(e){return Ls(e)===As},ys.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===xs},ys.isForwardRef=function(e){return Ls(e)===Ps},ys.isFragment=function(e){return Ls(e)===ws},ys.isLazy=function(e){return Ls(e)===Ds},ys.isMemo=function(e){return Ls(e)===ks},ys.isPortal=function(e){return Ls(e)===Ss},ys.isProfiler=function(e){return Ls(e)===Es},ys.isStrictMode=function(e){return Ls(e)===Cs},ys.isSuspense=function(e){return Ls(e)===Ms},ys.isSuspenseList=function(e){return Ls(e)===Is},ys.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ws||e===Es||e===Cs||e===Ms||e===Is||e===Ts||"object"==typeof e&&null!==e&&(e.$$typeof===Ds||e.$$typeof===ks||e.$$typeof===As||e.$$typeof===Rs||e.$$typeof===Ps||e.$$typeof===Os||void 0!==e.getModuleId)},ys.typeOf=Ls,bs.exports=ys;var qs=bs.exports;const Ns=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function _s(e){const t=`${e}`.match(Ns);return t&&t[1]||""}function js(e,t=""){return e.displayName||e.name||_s(e)||t}function zs(e,t,r){const n=js(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Fs=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return js(e,"Component");if("object"==typeof e)switch(e.$$typeof){case qs.ForwardRef:return zs(e,e.render,"ForwardRef");case qs.Memo:return zs(e,e.type,"memo");default:return}}},getFunctionName:_s});function $s(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]=$s(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Hs="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function Bs(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Ws=Object.freeze({__proto__:null,default:Bs});function Vs(e){if(e.type)return e;if("#"===e.charAt(0))return Vs(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(jr(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(jr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Us(e,t){return e=Vs(e),t=function(e,t=0,r=1){return Bs(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 Gs(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Ys(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Ks(e){return e&&e.ownerDocument||document}function Xs(e){return Ks(e).defaultView||window}function Js(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Zs=0;const Qs=x["useId".toString()];function el(e){if(void 0!==Qs){return Qs()}return function(e){const[t,r]=x.useState(e),n=t;return x.useEffect((()=>{null==t&&(Zs+=1,r(`mui-${Zs}`))}),[t]),n}(e)}function tl({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=x.useRef(void 0!==e),[i,a]=x.useState(t);return[o?e:i,x.useCallback((e=>{o||a(e)}),[])]}function rl(e){const t=x.useRef(e);return Hs((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function nl(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Js(e,t)}))}),e)}const ol={};const il=[];class al{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new al}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function sl(){const e=function(e,t){const r=x.useRef(ol);return r.current===ol&&(r.current=e(t)),r}(al.create).current;return function(e){x.useEffect(e,il)}(e.disposeEffect),e}let ll=!0,ul=!1;const cl=new al,dl={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 pl(e){e.metaKey||e.altKey||e.ctrlKey||(ll=!0)}function fl(){ll=!1}function hl(){"hidden"===this.visibilityState&&ul&&(ll=!0)}function ml(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ll||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!dl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function gl(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",pl,!0),t.addEventListener("mousedown",fl,!0),t.addEventListener("pointerdown",fl,!0),t.addEventListener("touchstart",fl,!0),t.addEventListener("visibilitychange",hl,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ml(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ul=!0,cl.start(100,(()=>{ul=!1})),t.current=!1,!0)},ref:e}}function vl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function bl(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 yl(e){return"string"==typeof e}function xl(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 Sl(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 wl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Cl(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Hr(e,wl),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=fs(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=xl($r({},o,n)),s=Sl(n),l=Sl(o),u=t(a),c=fs(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||yl(e)?t:$r({},t,{ownerState:$r({},t.ownerState,r)})}(r,$r({},l,{ref:nl(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function El(e){var t;return parseInt(x.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Rl=x.createContext(null);function Al(){return x.useContext(Rl)}var Pl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ml(e){const{children:t,theme:r}=e,n=Al(),o=x.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[Pl]=null!==n),e}),[r,n]);return nr.jsx(Rl.Provider,{value:o,children:t})}const Il=["value"],kl=x.createContext();function Dl(e){let{value:t}=e,r=Hr(e,Il);return nr.jsx(kl.Provider,$r({value:null==t||t},r))}const Tl=x.createContext(void 0);function Ol({value:e,children:t}){return nr.jsx(Tl.Provider,{value:e,children:t})}function Ll({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?$s(o.defaultProps,n):o.styleOverrides||o.variants?n:$s(o,n)}({props:e,name:t,theme:{components:x.useContext(Tl)}})}const ql={};function Nl(e,t,r,n=!1){return x.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 _l(e){const{children:t,theme:r,themeId:n}=e,o=rs(ql),i=Al()||ql,a=Nl(n,o,r),s=Nl(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=rs(),r=el()||"",{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};`:"",Hs((()=>{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?nr.jsx(as,{styles:o}):null}(a);return nr.jsx(Ml,{theme:s,children:nr.jsx(Ri.Provider,{value:a,children:nr.jsx(Dl,{value:l,children:nr.jsxs(Ol,{value:null==a?void 0:a.components,children:[u,t]})})})})}function jl(e){return jl="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},jl(e)}function zl(e){var t=function(e,t){if("object"!=jl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=jl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==jl(t)?t:t+""}function Fl(e,t){return $r({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var $l,Hl={},Bl={exports:{}};($l=Bl).exports=function(e){return e&&e.__esModule?e:{default:e}},$l.exports.__esModule=!0,$l.exports.default=$l.exports;var Wl=Bl.exports,Vl=Gt(zr),Ul=Gt(Ws),Gl=Wl;Object.defineProperty(Hl,"__esModule",{value:!0});var Yl=Hl.alpha=su;Hl.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=ru(e),a=ru(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ou({type:"rgb",values:s})},Hl.colorChannel=void 0;var Kl=Hl.darken=lu;Hl.decomposeColor=ru,Hl.emphasize=cu;var Xl=Hl.getContrastRatio=function(e,t){const r=au(e),n=au(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Hl.getLuminance=au,Hl.hexToRgb=tu,Hl.hslToRgb=iu;var Jl=Hl.lighten=uu;Hl.private_safeAlpha=function(e,t,r){try{return su(e,t)}catch(t){return e}},Hl.private_safeColorChannel=void 0,Hl.private_safeDarken=function(e,t,r){try{return lu(e,t)}catch(t){return e}},Hl.private_safeEmphasize=function(e,t,r){try{return cu(e,t)}catch(t){return e}},Hl.private_safeLighten=function(e,t,r){try{return uu(e,t)}catch(t){return e}},Hl.recomposeColor=ou,Hl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=ru(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 Zl=Gl(Vl),Ql=Gl(Ul);function eu(e,t=0,r=1){return(0,Ql.default)(e,t,r)}function tu(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 ru(e){if(e.type)return e;if("#"===e.charAt(0))return ru(tu(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Zl.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,Zl.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const nu=e=>{const t=ru(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Hl.colorChannel=nu;function ou(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 iu(e){e=ru(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])),ou({type:s,values:l})}function au(e){let t="hsl"===(e=ru(e)).type||"hsla"===e.type?ru(iu(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 su(e,t){return e=ru(e),t=eu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ou(e)}function lu(e,t){if(e=ru(e),t=eu(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 ou(e)}function uu(e,t){if(e=ru(e),t=eu(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 ou(e)}function cu(e,t=.15){return au(e)>.5?lu(e,t):uu(e,t)}Hl.private_safeColorChannel=(e,t)=>{try{return nu(e)}catch(t){return e}};const du=["mode","contrastThreshold","tonalOffset"],pu={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:or.white,default:or.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}},fu={text:{primary:or.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:or.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 hu(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=Jl(e.main,o):"dark"===t&&(e.dark=Kl(e.main,i)))}function mu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Hr(e,du),i=e.primary||function(e="light"){return"dark"===e?{main:vr,light:gr,dark:br}:{main:yr,light:br,dark:xr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:dr,light:cr,dark:fr}:{main:hr,light:pr,dark:mr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:sr,light:ir,dark:lr}:{main:lr,light:ar,dark:ur}}(t),l=e.info||function(e="light"){return"dark"===e?{main:wr,light:Sr,dark:Er}:{main:Er,light:Cr,dark:Rr}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Pr,light:Ar,dark:Ir}:{main:kr,light:Mr,dark:Dr}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Or,light:Tr,dark:qr}:{main:"#ed6c02",light:Lr,dark:Nr}}(t);function d(e){return Xl(e,fu.text.primary)>=r?fu.text.primary:pu.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(jr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(jr(12,t?` (${t})`:"",JSON.stringify(e.main)));return hu(e,"light",o,n),hu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:fu,light:pu};return Yi($r({common:$r({},or),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:_r,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const gu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const vu={textTransform:"uppercase"},bu='"Roboto", "Helvetica", "Arial", sans-serif';function yu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=bu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Hr(r,gu),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return $r({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===bu?{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,vu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,vu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yi($r({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function xu(...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 Su=["none",xu(0,2,1,-1,0,1,1,0,0,1,3,0),xu(0,3,1,-2,0,2,2,0,0,1,5,0),xu(0,3,3,-2,0,3,4,0,0,1,8,0),xu(0,2,4,-1,0,4,5,0,0,1,10,0),xu(0,3,5,-1,0,5,8,0,0,1,14,0),xu(0,3,5,-1,0,6,10,0,0,1,18,0),xu(0,4,5,-2,0,7,10,1,0,2,16,1),xu(0,5,5,-3,0,8,10,1,0,3,14,2),xu(0,5,6,-3,0,9,12,1,0,3,16,2),xu(0,6,6,-3,0,10,14,1,0,4,18,3),xu(0,6,7,-4,0,11,15,1,0,4,20,3),xu(0,7,8,-4,0,12,17,2,0,5,22,4),xu(0,7,8,-4,0,13,19,2,0,5,24,4),xu(0,7,9,-4,0,14,21,2,0,5,26,4),xu(0,8,9,-5,0,15,22,2,0,6,28,5),xu(0,8,10,-5,0,16,24,2,0,6,30,5),xu(0,8,11,-5,0,17,26,2,0,6,32,5),xu(0,9,11,-5,0,18,28,2,0,7,34,6),xu(0,9,12,-6,0,19,29,2,0,7,36,6),xu(0,10,13,-6,0,20,31,3,0,8,38,7),xu(0,10,13,-6,0,21,33,3,0,8,40,7),xu(0,10,14,-6,0,22,35,3,0,8,42,7),xu(0,11,14,-7,0,23,36,3,0,9,44,8),xu(0,11,15,-7,0,24,38,3,0,9,46,8)],wu=["duration","easing","delay"],Cu={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)"},Eu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ru(e){return`${Math.round(e)}ms`}function Au(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Pu(e){const t=$r({},Cu,e.easing),r=$r({},Eu,e.duration);return $r({getAutoHeightDuration:Au,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Hr(n,wu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ru(o)} ${i} ${"string"==typeof a?a:Ru(a)}`)).join(",")}},e,{easing:t,duration:r})}const Mu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Iu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ku(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Hr(e,Iu);if(e.vars&&void 0===e.generateCssVars)throw new Error(jr(18));const s=mu(n),l=es(e);let u=Yi(l,{mixins:Fl(l.breakpoints,r),palette:s,shadows:Su.slice(),typography:yu(s,i),transitions:Pu(o),zIndex:$r({},Mu)});return u=Yi(u,a),u=t.reduce(((e,t)=>Yi(e,t)),u),u.unstable_sxConfig=$r({},Ka,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ja({sx:e,theme:this})},u}const Du=ku();function Tu(){const e=os(Du);return e[Fr]||e}var Ou,Lu={},qu={exports:{}};function Nu(){return Ou||(Ou=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}(qu)),qu.exports}var _u,ju={exports:{}};function zu(){return _u||(_u=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}(ju)),ju.exports}var Fu=Gt(Vi),$u=Gt(Ki),Hu=Gt(ia),Bu=Gt(Fs),Wu=Gt(ts),Vu=Gt(us),Uu=Wl;Object.defineProperty(Lu,"__esModule",{value:!0});var Gu=Lu.default=function(e={}){const{themeId:t,defaultTheme:r=ac,rootShouldForwardProp:n=oc,slotShouldForwardProp:o=oc}=e,i=e=>(0,Qu.default)((0,Yu.default)({},e,{theme:lc((0,Yu.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Xu.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=uc(sc(l))}=a,p=(0,Ku.default)(a,rc),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=oc;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,Xu.default)(e,(0,Yu.default)({shouldForwardProp:g,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Ju.isPlainObject)(e)?n=>{const o=lc({theme:n.theme,defaultTheme:r,themeId:t});return cc(e,(0,Yu.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=lc((0,Yu.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]=cc(r,(0,Yu.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=lc((0,Yu.default)({},e,{defaultTheme:r,themeId:t}));return cc({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Yu.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=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(y.withConfig=v.withConfig),y}};Lu.shouldForwardProp=oc,Lu.systemDefaultTheme=void 0;var Yu=Uu(Nu()),Ku=Uu(zu()),Xu=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=nc(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}(Fu),Ju=$u;Uu(Hu),Uu(Bu);var Zu=Uu(Wu),Qu=Uu(Vu);const ec=["ownerState"],tc=["variants"],rc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nc(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(nc=function(e){return e?r:t})(e)}function oc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function ic(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const ac=Lu.systemDefaultTheme=(0,Zu.default)(),sc=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function lc({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function uc(e){return e?(t,r)=>r[e]:null}function cc(e,t,r){let{ownerState:n}=t,o=(0,Ku.default)(t,ec);const i="function"==typeof e?e((0,Yu.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>cc(e,(0,Yu.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Ku.default)(i,tc);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Yu.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,Yu.default)({ownerState:n},o,n)):e.style;t.push(r?ic((0,Xu.internal_serializeStyles)(i),r):i)}})),t}return r?ic((0,Xu.internal_serializeStyles)(i),r):i}function dc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const pc=e=>dc(e)&&"classes"!==e,fc=Gu({themeId:Fr,defaultTheme:Du,rootShouldForwardProp:pc}),hc=["theme"];function mc(e){let{theme:t}=e,r=Hr(e,hc);const n=t[Fr];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=$r({},n,{vars:null}):t&&!t.vars&&(o=$r({},t,{vars:null}))),nr.jsx(_l,$r({},r,{themeId:n?Fr:void 0,theme:o}))}const gc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function vc(e){return Ll(e)}function bc(e){return gs("MuiSvgIcon",e)}vs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],xc=fc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${oa(r.color)}`],t[`fontSize${oa(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]}})),Sc=x.forwardRef((function(e,t){const r=vc({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=Hr(r,yc),f=x.isValidElement(n)&&"svg"===n.type,h=$r({},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 bl({root:["root","inherit"!==t&&`color${oa(t)}`,`fontSize${oa(r)}`]},bc,n)})(h);return nr.jsxs(xc,$r({as:a,className:fs(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?nr.jsx("title",{children:c}):null]}))}));function wc(e,t){return wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wc(e,t)}function Cc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wc(e,t)}Sc.muiName="SvgIcon";var Ec=!1,Rc=S.createContext(null),Ac="unmounted",Pc="exited",Mc="entering",Ic="entered",kc="exiting",Dc=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=Pc,n.appearStatus=Mc):o=Ic:o=t.unmountOnExit||t.mountOnEnter?Ac:Pc,n.state={status:o},n.nextCallback=null,n}Cc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ac?{status:Pc}: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!==Mc&&r!==Ic&&(t=Mc):r!==Mc&&r!==Ic||(t=kc)}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===Mc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:B.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pc&&this.setState({status:Ac})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[B.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Ec?this.safeSetState({status:Ic},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Mc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ic},(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:B.findDOMNode(this);t&&!Ec?(this.props.onExit(n),this.safeSetState({status:kc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Pc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Pc},(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:B.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===Ac)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=Hr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Rc.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function Tc(){}function Oc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lc(e,t){var r=Object.create(null);return e&&R.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&C(e)?t(e):e}(e)})),r}function qc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Nc(e,t,r){var n=Lc(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(C(a)){var s=i in t,l=i in n,u=t[i],c=C(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&C(u)&&(o[i]=E(a,{onExited:r.bind(null,a),in:u.props.in,exit:qc(a,"exit",e),enter:qc(a,"enter",e)})):o[i]=E(a,{in:!1}):o[i]=E(a,{onExited:r.bind(null,a),in:!0,exit:qc(a,"exit",e),enter:qc(a,"enter",e)})}})),o}Dc.contextType=Rc,Dc.propTypes={},Dc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tc,onEntering:Tc,onEntered:Tc,onExit:Tc,onExiting:Tc,onExited:Tc},Dc.UNMOUNTED=Ac,Dc.EXITED=Pc,Dc.ENTERING=Mc,Dc.ENTERED=Ic,Dc.EXITING=kc;var _c=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},jc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Oc(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Cc(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,Lc(r.children,(function(e){return E(e,{onExited:n.bind(null,e),in:!0,appear:qc(e,"appear",r),enter:qc(e,"enter",r),exit:qc(e,"exit",r)})}))):Nc(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Lc(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=Hr(e,["component","childFactory"]),o=this.state.contextValue,i=_c(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(Rc.Provider,{value:o},i):S.createElement(Rc.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);jc.propTypes={},jc.defaultProps={component:"div",childFactory:function(e){return e}};const zc=e=>e.scrollTop;function Fc(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 $c(e){return gs("MuiPaper",e)}vs("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 Hc=["className","component","elevation","square","variant"],Bc=fc("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(${Yl("#fff",gc(t.elevation))}, ${Yl("#fff",gc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Wc=x.forwardRef((function(e,t){const r=vc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Hr(r,Hc),u=$r({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return bl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},$c,o)})(u);return nr.jsx(Bc,$r({as:o,ownerState:u,className:fs(c.root,n),ref:t},l))}));const Vc=vs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Uc=["center","classes","className"];let Gc,Yc,Kc,Xc,Jc=e=>e;const Zc=qi(Gc||(Gc=Jc`
|
|
18
18
|
0% {
|
|
19
19
|
transform: scale(0);
|
|
20
20
|
opacity: 0.1;
|
|
@@ -24,7 +24,7 @@ function Hi(e,t){let r;return r=t?Ti(e).withConfig({displayName:t.label,shouldFo
|
|
|
24
24
|
transform: scale(1);
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
}
|
|
27
|
-
`)),
|
|
27
|
+
`)),Qc=qi(Yc||(Yc=Jc`
|
|
28
28
|
0% {
|
|
29
29
|
opacity: 1;
|
|
30
30
|
}
|
|
@@ -32,7 +32,7 @@ function Hi(e,t){let r;return r=t?Ti(e).withConfig({displayName:t.label,shouldFo
|
|
|
32
32
|
100% {
|
|
33
33
|
opacity: 0;
|
|
34
34
|
}
|
|
35
|
-
`)),
|
|
35
|
+
`)),ed=qi(Kc||(Kc=Jc`
|
|
36
36
|
0% {
|
|
37
37
|
transform: scale(1);
|
|
38
38
|
}
|
|
@@ -44,7 +44,7 @@ function Hi(e,t){let r;return r=t?Ti(e).withConfig({displayName:t.label,shouldFo
|
|
|
44
44
|
100% {
|
|
45
45
|
transform: scale(1);
|
|
46
46
|
}
|
|
47
|
-
`)),
|
|
47
|
+
`)),td=fc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),rd=fc((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]=x.useState(!1),p=fs(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=fs(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),x.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),nr.jsx("span",{className:p,style:f,children:nr.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Xc||(Xc=Jc`
|
|
48
48
|
opacity: 0;
|
|
49
49
|
position: absolute;
|
|
50
50
|
|
|
@@ -87,19 +87,19 @@ function Hi(e,t){let r;return r=t?Ti(e).withConfig({displayName:t.label,shouldFo
|
|
|
87
87
|
animation-iteration-count: infinite;
|
|
88
88
|
animation-delay: 200ms;
|
|
89
89
|
}
|
|
90
|
-
`),Wc.rippleVisible,Jc,550,(({theme:e})=>e.transitions.easing.easeInOut),Wc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Wc.child,Wc.childLeaving,Zc,550,(({theme:e})=>e.transitions.easing.easeInOut),Wc.childPulsate,Qc,(({theme:e})=>e.transitions.easing.easeInOut)),rd=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Hr(r,Vc),[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=al(),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,rr.jsx(td,{classes:{ripple:ps(o.ripple,Wc.ripple),rippleVisible:ps(o.rippleVisible,Wc.rippleVisible),ripplePulsate:ps(o.ripplePulsate,Wc.ripplePulsate),child:ps(o.child,Wc.child),childLeaving:ps(o.childLeaving,Wc.childLeaving),childPulsate:ps(o.childPulsate,Wc.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]),rr.jsx(ed,Fr({className:ps(Wc.root,o.root,i),ref:h},a,{children:rr.jsx(jc,{component:null,exit:!0,children:s})}))}));function nd(e){return ms("MuiButtonBase",e)}const od=gs("MuiButtonBase",["root","disabled","focusVisible"]),id=["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"],ad=pc("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"},[`&.${od.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),sd=y.forwardRef((function(e,t){const r=gc({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:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:M=0,TouchRippleProps:I,touchRippleRef:k,type:D}=r,T=Hr(r,id),O=y.useRef(null),L=y.useRef(null),q=rl(L,k),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=ml(),[F,H]=y.useState(!1);l&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[$,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!l;function V(e,t,r=c){return tl((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=V("start",w),G=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",(e=>{F&&e.preventDefault(),C&&C(e)})),J=V("start",P),Z=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{_(e),!1===N.current&&H(!1),f&&f(e)}),!1),te=tl((e=>{O.current||(O.current=e.currentTarget),j(e),!0===N.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=tl((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(),h&&h(e))})),ie=tl((e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=rl(t,z,O),ue=Fr({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=bl({root:["root",t&&"disabled",r&&"focusVisible"]},nd,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return rr.jsxs(ad,Fr({as:ae,className:ps(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,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:M,type:D},se,T,{children:[i,W?rr.jsx(rd,Fr({ref:q,center:o},I)):null]}))}));function ld(e){return ms("MuiIconButton",e)}const ud=gs("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),cd=["edge","children","className","color","disabled","disableFocusRipple","size"],dd=pc(sd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${na(r.color)}`],r.edge&&t[`edge${na(r.edge)}`],t[`size${na(r.size)}`]]}})((({theme:e,ownerState:t})=>Fr({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})`:Gl(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 Fr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Fr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":Fr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gl(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)},{[`&.${ud.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),pd=y.forwardRef((function(e,t){const r=gc({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=Hr(r,cd),d=Fr({},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 bl({root:["root",r&&"disabled","default"!==n&&`color${na(n)}`,o&&`edge${na(o)}`,`size${na(i)}`]},ld,t)})(d);return rr.jsx(dd,Fr({className:ps(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function fd(e){return ms("MuiTypography",e)}gs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],md=pc("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${na(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Fr({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}))),gd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},vd=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTypography"}),n=(e=>bd[e]||e)(r.color),o=ss(Fr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=gd}=o,f=Hr(o,hd),h=Fr({},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]||gd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return bl({root:["root",i,"inherit"!==e.align&&`align${na(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},fd,a)})(h);return rr.jsx(md,Fr({as:m,ref:t,ownerState:h,className:ps(g.root,a)},f))}));const yd=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=rl(y.isValidElement(r)?Cl(r):null,t);if(Hs((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Hs((()=>{if(i&&!o)return Xs(t,i),()=>{Xs(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return rr.jsx(y.Fragment,{children:r})}return rr.jsx(y.Fragment,{children:i?H.createPortal(r,i):i})})),xd=["onChange","maxRows","minRows","style","value"];function Sd(e){return parseInt(e,10)||0}const wd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Cd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Ed=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Hr(e,xd),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=rl(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=Ks(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=Sd(i.paddingBottom)+Sd(i.paddingTop),l=Sd(i.borderBottomWidth)+Sd(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=tl((()=>{const e=u.current,t=f();if(!e||!t||Cd(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||Cd(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);Hs((()=>{const e=Gs(m),t=null==u?void 0:u.current;if(!t)return;const r=Ks(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]),Hs((()=>{m()}));return rr.jsxs(y.Fragment,{children:[rr.jsx("textarea",Fr({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),rr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Fr({},wd,i,{paddingTop:0,paddingBottom:0})})]})}));function Rd({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 Ad=y.createContext(void 0);function Pd(){return y.useContext(Ad)}function Md(e){return rr.jsx(is,Fr({},e,{defaultTheme:ku,themeId:zr}))}function Id(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function kd(e,t=!1){return e&&(Id(e.value)&&""!==e.value||t&&Id(e.defaultValue)&&""!==e.defaultValue)}function Dd(e){return ms("MuiInputBase",e)}const Td=gs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Od=["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"],Ld=(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${na(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},qd=(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]},Nd=pc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ld})((({theme:e,ownerState:t})=>Fr({},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",[`&.${Td.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Fr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),jd=pc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:qd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Fr({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 Fr({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] + .${Td.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},[`&.${Td.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"})})),_d=rr.jsx(Md,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),zd=y.forwardRef((function(e,t){var r;const n=gc({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:w=!1,name:C,onBlur:E,onChange:R,onClick:A,onFocus:P,onKeyDown:M,onKeyUp:I,placeholder:k,readOnly:D,renderSuffix:T,rows:O,slotProps:L={},slots:q={},startAdornment:N,type:j="text",value:_}=n,z=Hr(n,Od),F=null!=b.value?b.value:_,{current:H}=y.useRef(null!=F),$=y.useRef(),B=y.useCallback((e=>{}),[]),W=rl($,v,b.ref,B),[V,U]=y.useState(!1),G=Pd(),Y=Rd({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,y.useEffect((()=>{!G&&d&&V&&(U(!1),E&&E())}),[G,d,V,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=y.useCallback((e=>{kd(e)?K&&K():X&&X()}),[K,X]);Hs((()=>{H&&J({value:F})}),[F,J,H]);y.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;w&&"input"===Z&&(Q=Fr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=Ed);y.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=Fr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:N,type:j}),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 bl({root:["root",`color${na(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${na(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"]},Dd,t)})(ee),re=q.root||l.Root||Nd,ne=L.root||u.root||{},oe=q.input||l.Input||jd;return Q=Fr({},Q,null!=(r=L.input)?r:u.input),rr.jsxs(y.Fragment,{children:[!p&&_d,rr.jsxs(re,Fr({},ne,!vl(re)&&{ownerState:Fr({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),A&&A(e)}},z,{className:ps(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,rr.jsx(Ad.Provider,{value:null,children:rr.jsx(oe,Fr({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?$.current:{value:"x"})},name:C,placeholder:k,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:M,onKeyUp:I,type:j},Q,!vl(oe)&&{as:Z,ownerState:Fr({},ee,Q.ownerState)},{ref:W,className:ps(te.input,Q.className,D&&"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(jr(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),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(Fr({},Y,{startAdornment:N})):null]}))]})}));function Fd(e){return ms("MuiInput",e)}const Hd=Fr({},Td,gs("MuiInput",["root","underline","input"]));function $d(e){return ms("MuiOutlinedInput",e)}const Bd=Fr({},Td,gs("MuiOutlinedInput",["root","notchedOutline","input"]));function Wd(e){return ms("MuiFilledInput",e)}const Vd=Fr({},Td,gs("MuiFilledInput",["root","underline","input"]));var Ud=function(e,t){function r(r,n){return rr.jsx(xc,Fr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=xc.muiName,y.memo(y.forwardRef(r))}(rr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Gd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Yd={entering:{opacity:1},entered:{opacity:1}},Kd=y.forwardRef((function(e,t){const r=Du(),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=kc}=e,v=Hr(e,Gd),x=y.useRef(null),S=rl(x,Cl(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)=>{_c(e);const n=zc({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=w(c),A=w(h),P=w((e=>{const t=zc({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)})),M=w(f);return rr.jsx(b,Fr({appear:i,in:l,nodeRef:x,onEnter:E,onEntered:R,onEntering:C,onExit:P,onExited:M,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Fr({style:Fr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Yd[e],m,a.props.style),ref:S},t))}))}));function Xd(e){return ms("MuiBackdrop",e)}gs("MuiBackdrop",["root","invisible"]);const Jd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Zd=pc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Fr({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"}))),Qd=y.forwardRef((function(e,t){var r,n,o;const i=gc({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=Kd,transitionDuration:g}=i,b=Hr(i,Jd),v=Fr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return bl({root:["root",r&&"invisible"]},Xd,t)})(v),x=null!=(r=f.root)?r:c.root;return rr.jsx(m,Fr({in:p,timeout:g},b,{children:rr.jsx(Zd,Fr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:ps(y.root,s,null==x?void 0:x.className),ownerState:Fr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),ep=gs("MuiBox",["root"]),tp=Iu(),rp=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Hi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Xa);return y.forwardRef((function(e,a){const s=ns(r),l=ss(e),{className:u,component:c="div"}=l,d=Hr(l,fs);return rr.jsx(i,Fr({as:c,ref:a,className:ps(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:zr,defaultTheme:tp,defaultClassName:ep.root,generateClassName:cs.generate});function np(e){return ms("MuiButton",e)}const op=gs("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"]),ip=y.createContext({}),ap=y.createContext(void 0),sp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],lp=e=>Fr({},"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}}),up=pc(sd,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${na(r.color)}`],t[`size${na(r.size)}`],t[`${r.variant}Size${na(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 Fr({},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":Fr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gl(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})`:Gl(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})`:Gl(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":Fr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${op.focusVisible}`]:Fr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${op.disabled}`]:Fr({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 ${Gl(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"},[`&.${op.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${op.disabled}`]:{boxShadow:"none"}})),cp=pc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${na(r.size)}`]]}})((({ownerState:e})=>Fr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},lp(e)))),dp=pc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${na(r.size)}`]]}})((({ownerState:e})=>Fr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},lp(e)))),pp=y.forwardRef((function(e,t){const r=y.useContext(ip),n=y.useContext(ap),o=gc({props:Fs(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=Hr(o,sp),S=Fr({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Fr({},a,bl({root:["root",i,`${i}${na(t)}`,`size${na(o)}`,`${i}Size${na(o)}`,`color${na(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${na(o)}`],endIcon:["icon","endIcon",`iconSize${na(o)}`]},np,a))})(S),C=g&&rr.jsx(cp,{className:w.startIcon,ownerState:S,children:g}),E=p&&rr.jsx(dp,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return rr.jsxs(up,Fr({ownerState:S,className:ps(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:ps(w.focusVisible,f),ref:t,type:b},x,{classes:w,children:[C,i,E]}))}));function fp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hp(e){return parseInt(Ks(e).getComputedStyle(e).paddingRight,10)||0}function mp(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&&fp(e,o)}))}function gp(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function bp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Ys(e);return t.body===e?Ks(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=gl(Ys(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${hp(n)+e}px`;const t=Ys(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${hp(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Ys(n).body;else{const t=n.parentElement,r=Ks(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 vp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function yp(e){const t=[],r=[];return Array.from(e.querySelectorAll(vp)).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 xp(){return!0}function Sp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=yp,isEnabled:a=xp,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=rl(Cl(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=Ys(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=Ys(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 rr.jsxs(y.Fragment,{children:[rr.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)}}),rr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const wp=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&&fp(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);mp(t,e.mount,e.modalRef,n,!0);const o=gp(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=gp(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=bp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=gp(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&&fp(e.modalRef,t),mp(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&&fp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Cp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=wp,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=rl(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),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=tl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ys(f.current).body;o.add(S(),e),h.current&&w()})),E=y.useCallback((()=>o.isTopModal(S())),[o]),R=tl((e=>{f.current=e,e&&(c&&E()?w():h.current&&fp(h.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);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")))},M=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=yl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Fr({},r,t);return Fr({role:"presentation"},n,{onKeyDown:P(n),ref:m})},getBackdropProps:(e={})=>Fr({"aria-hidden":!0},e,{onClick:M(e),open:c}),getTransitionProps:()=>({onEnter:Us((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Us((()=>{b(!0),s&&s(),i&&A()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function Ep(e){return ms("MuiModal",e)}gs("MuiModal",["root","hidden","backdrop"]);const Rp=["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"],Ap=pc("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})=>Fr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Pp=pc(Qd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Mp=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=gc({name:"MuiModal",props:e}),{BackdropComponent:u=Pp,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:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:M,slotProps:I,slots:k}=l,D=Hr(l,Rp),T=Fr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:L,getTransitionProps:q,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=Cp(Fr({},T,{rootRef:t})),F=Fr({},T,{exited:_}),H=(e=>{const{open:t,exited:r,classes:n}=e;return bl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ep,n)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();$.onEnter=e,$.onExited=t}const B=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:Ap,W=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==I?void 0:I.root)?a:b.root,U=null!=(s=null==I?void 0:I.backdrop)?s:b.backdrop,G=wl({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:ps(d,null==V?void 0:V.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=wl({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L(Fr({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ps(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return A||M||z&&!_?rr.jsx(yd,{ref:N,container:h,disablePortal:w,children:rr.jsxs(B,Fr({},G,{children:[!R&&u?rr.jsx(W,Fr({},Y)):null,rr.jsx(Sp,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:j,open:M,children:y.cloneElement(f,$)})]}))}):null}));function Ip(e){return ms("MuiDivider",e)}const kp=gs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Dp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Tp=pc("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})=>Fr({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)`:Gl(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})=>Fr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Fr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>Fr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>Fr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Op=pc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Fr({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)`}))),Lp=y.forwardRef((function(e,t){const r=gc({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=Hr(r,Dp),h=Fr({},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 bl({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"]},Ip,n)})(h);return rr.jsx(Tp,Fr({as:a,className:ps(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?rr.jsx(Op,{className:m.wrapper,ownerState:h,children:o}):null}))}));Lp.muiSkipListHighlight=!0;const qp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Np=pc(Nd,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ld(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 Fr({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}},[`&.${Vd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Vd.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"},[`&.${Vd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vd.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(.${Vd.disabled}, .${Vd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Vd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Fr({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}))})),jp=pc(jd,{name:"MuiFilledInput",slot:"Input",overridesResolver:qd})((({theme:e,ownerState:t})=>Fr({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}))),_p=y.forwardRef((function(e,t){var r,n,o,i;const a=gc({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=Hr(a,qp),g=Fr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Fr({},t,bl({root:["root",!r&&"underline"],input:["input"]},Wd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Gi(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Np,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:jp;return rr.jsx(zd,Fr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));_p.muiName="Input";const zp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Fp(e){return`scale(${e}, ${e**2})`}const Hp={entering:{opacity:1,transform:Fp(1)},entered:{opacity:1,transform:"none"}},$p="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Bp=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=kc}=e,g=Hr(e,zp),b=al(),v=y.useRef(),x=Du(),S=y.useRef(null),w=rl(S,Cl(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)=>{_c(e);const{duration:r,delay:n,easing:o}=zc({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:$p?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),A=C(l),P=C(p),M=C((e=>{const{duration:t,delay:r,easing:n}=zc({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:$p?o:.666*o,delay:$p?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Fp(.75),c&&c(e)})),I=C(d);return rr.jsx(m,Fr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:E,onExit:M,onExited:I,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,Fr({style:Fr({opacity:0,transform:Fp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Hp[e],f,o.props.style),ref:w},t))}))}));Bp.muiSupportAuto=!0;const Wp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Vp=pc(Nd,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ld(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})`),Fr({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"},[`&.${Hd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hd.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(.${Hd.disabled}, .${Hd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Hd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Up=pc(jd,{name:"MuiInput",slot:"Input",overridesResolver:qd})({}),Gp=y.forwardRef((function(e,t){var r,n,o,i;const a=gc({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=Hr(a,Wp),b=(e=>{const{classes:t,disableUnderline:r}=e;return Fr({},t,bl({root:["root",!r&&"underline"],input:["input"]},Fd,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Gi(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Vp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Up;return rr.jsx(zd,Fr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function Yp(e){return ms("MuiLink",e)}Gp.muiName="Input";const Kp=gs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Xp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Jp=({theme:e,ownerState:t})=>{const r=(e=>Xp[e]||e)(t.color),n=ia(e,`palette.${r}`,!1)||t.color,o=ia(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Gl(n,.4)},Zp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Qp=pc(vd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${na(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Fr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Fr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Jp({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Kp.focusVisible}`]:{outline:"auto"}}))),ef=y.forwardRef((function(e,t){const r=gc({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=Hr(r,Zp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=ml(),[b,v]=y.useState(!1),x=rl(t,g),S=Fr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return bl({root:["root",`underline${na(o)}`,"button"===r&&"button",n&&"focusVisible"]},Yp,t)})(S);return rr.jsx(Qp,Fr({color:o,className:ps(w.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(Xp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),tf=y.createContext({});function rf(e){return ms("MuiList",e)}gs("MuiList",["root","padding","dense","subheader"]);const nf=["children","className","component","dense","disablePadding","subheader"],of=pc("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})=>Fr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),af=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Hr(r,nf),c=y.useMemo((()=>({dense:a})),[a]),d=Fr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return bl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},rf,t)})(d);return rr.jsx(tf.Provider,{value:c,children:rr.jsxs(of,Fr({as:i,className:ps(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function sf(e){return ms("MuiListItemIcon",e)}const lf=gs("MuiListItemIcon",["root","alignItemsFlexStart"]),uf=["className"],cf=pc("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})=>Fr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),df=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Hr(r,uf),i=Fr({},r,{alignItems:y.useContext(tf).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return bl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},sf,r)})(i);return rr.jsx(cf,Fr({className:ps(a.root,n),ownerState:i,ref:t},o))})),pf=gs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ff=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function hf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function mf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function gf(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 bf(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")&&gf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const vf=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=Hr(e,ff),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Hs((()=>{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=`${gl(Ys(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=rl(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 rr.jsx(af,Fr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Ys(t).activeElement;if("ArrowDown"===r)e.preventDefault(),bf(t,n,l,s,hf);else if("ArrowUp"===r)e.preventDefault(),bf(t,n,l,s,mf);else if("Home"===r)e.preventDefault(),bf(t,null,l,s,hf);else if("End"===r)e.preventDefault(),bf(t,null,l,s,mf);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&&gf(n,o);o.previousKeyMatched&&(l||bf(t,n,!1,s,hf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function yf(e){return ms("MuiPopover",e)}gs("MuiPopover",["root","paper"]);const xf=["onEntering"],Sf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],wf=["slotProps"];function Cf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ef(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Rf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Af(e){return"function"==typeof e?e():e}const Pf=pc(Mp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mf=pc(Bc,{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}),If=y.forwardRef((function(e,t){var r,n,o;const i=gc({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:w=Bp,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,A=Hr(i.TransitionProps,xf),P=Hr(i,Sf),M=null!=(r=null==x?void 0:x.paper)?r:b,I=y.useRef(),k=rl(I,M.ref),D=Fr({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:A}),T=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"]},yf,t)})(D),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=Af(s),t=(e&&1===e.nodeType?e:Ys(I.current).body).getBoundingClientRect();return{top:t.top+Cf(t,l.vertical),left:t.left+Ef(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),L=y.useCallback((e=>({vertical:Cf(e,S.vertical),horizontal:Ef(e,S.horizontal)})),[S.horizontal,S.vertical]),q=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:Rf(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Ks(Af(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:Rf(r)}}),[s,c,O,L,m]),[N,j]=y.useState(g),_=y.useCallback((()=>{const e=I.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)}),[q]);y.useEffect((()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[s,R,_]);y.useEffect((()=>{g&&_()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{_()}}:null),[g,_]),y.useEffect((()=>{if(!g)return;const e=Gs((()=>{_()})),t=Ks(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,_]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?Ys(Af(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:Pf,$=null!=(o=null==v?void 0:v.paper)?o:Mf,B=wl({elementType:$,externalSlotProps:Fr({},M,{style:N?M.style:Fr({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:D,className:ps(T.paper,null==M?void 0:M.className)}),W=wl({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:ps(T.root,p)}),{slotProps:V}=W,U=Hr(W,wf);return rr.jsx(H,Fr({},U,!vl(H)&&{slotProps:V,disableScrollLock:R},{children:rr.jsx(w,Fr({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},A,{children:rr.jsx($,Fr({},B,{children:d}))}))}))}));function kf(e){return ms("MuiMenu",e)}gs("MuiMenu",["root","paper","list"]);const Df=["onEntering"],Tf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Of={vertical:"top",horizontal:"right"},Lf={vertical:"top",horizontal:"left"},qf=pc(If,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nf=pc(Mf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),jf=pc(vf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),_f=y.forwardRef((function(e,t){var r,n;const o=gc({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=Hr(o.TransitionProps,Df),S=Hr(o,Tf),w=(()=>{const e=y.useContext(Il);return null!=e&&e})(),C=Fr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),E=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"],list:["list"]},kf,t)})(C),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 M=null!=(r=b.paper)?r:Nf,I=null!=(n=v.paper)?n:p,k=wl({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),D=wl({elementType:M,externalSlotProps:I,ownerState:C,className:E.paper});return rr.jsx(qf,Fr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Of:Lf,slots:{paper:M,root:b.root},slotProps:{root:k,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:Fr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},S,{classes:f,children:rr.jsx(jf,Fr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===P||l),autoFocusItem:R,variant:g},u,{className:ps(E.list,u.className),children:a}))}))}));function zf(e){return ms("MuiMenuItem",e)}const Ff=gs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Hf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],$f=pc(sd,{shouldForwardProp:e=>dc(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})=>Fr({},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"}},[`&.${Ff.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ff.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ff.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gl(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})`:Gl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ff.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ff.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${kp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${kp.inset}`]:{marginLeft:52},[`& .${pf.root}`]:{marginTop:0,marginBottom:0},[`& .${pf.inset}`]:{paddingLeft:36},[`& .${lf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Fr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${lf.root} svg`]:{fontSize:"1.25rem"}})))),Bf=y.forwardRef((function(e,t){const r=gc({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=Hr(r,Hf),f=y.useContext(tf),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=y.useRef(null);Hs((()=>{n&&m.current&&m.current.focus()}),[n]);const g=Fr({},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 Fr({},a,bl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},zf,a))})(r),v=rl(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),rr.jsx(tf.Provider,{value:h,children:rr.jsx($f,Fr({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:ps(b.focusVisible,l),className:ps(b.root,d)},p,{ownerState:g,classes:b}))})}));function Wf(e){return ms("MuiNativeSelect",e)}const Vf=gs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Uf=["className","disabled","error","IconComponent","inputRef","variant"],Gf=({ownerState:e,theme:t})=>Fr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Fr({},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"},[`&.${Vf.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}}),Yf=pc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:dc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Vf.multiple}`]:t.multiple}]}})(Gf),Kf=({ownerState:e,theme:t})=>Fr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Vf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Xf=pc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${na(r.variant)}`],r.open&&t.iconOpen]}})(Kf),Jf=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Hr(e,Uf),u=Fr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return bl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${na(r)}`,i&&"iconOpen",n&&"disabled"]},Wf,t)})(u);return rr.jsxs(y.Fragment,{children:[rr.jsx(Yf,Fr({ownerState:u,className:ps(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:rr.jsx(Xf,{as:i,ownerState:u,className:c.icon})]})}));var Zf;const Qf=["children","classes","className","label","notched"],eh=pc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:dc})({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%"}),th=pc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:dc})((({ownerState:e,theme:t})=>Fr({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&&Fr({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 rh=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],nh=pc(Nd,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ld})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Fr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Bd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Bd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Bd.focused} .${Bd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Bd.error} .${Bd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Bd.disabled} .${Bd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Fr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),oh=pc((function(e){const{className:t,label:r,notched:n}=e,o=Hr(e,Qf),i=null!=r&&""!==r,a=Fr({},e,{notched:n,withLabel:i});return rr.jsx(eh,Fr({"aria-hidden":!0,className:t,ownerState:a},o,{children:rr.jsx(th,{ownerState:a,children:i?rr.jsx("span",{children:r}):Zf||(Zf=rr.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}})),ih=pc(jd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:qd})((({theme:e,ownerState:t})=>Fr({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}))),ah=y.forwardRef((function(e,t){var r,n,o,i,a;const s=gc({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=Hr(s,rh),b=(e=>{const{classes:t}=e;return Fr({},t,bl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$d,t))})(s),v=Pd(),x=Rd({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Fr({},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}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:nh,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:ih;return rr.jsx(zd,Fr({slots:{root:w,input:C},renderSuffix:e=>rr.jsx(oh,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=rr.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:Fr({},b,{notchedOutline:null})}))}));function sh(e){return ms("MuiSelect",e)}ah.muiName="Input";const lh=gs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var uh;const ch=["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"],dh=pc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${lh.select}`]:t.select},{[`&.${lh.select}`]:t[r.variant]},{[`&.${lh.error}`]:t.error},{[`&.${lh.multiple}`]:t.multiple}]}})(Gf,{[`&.${lh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ph=pc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${na(r.variant)}`],r.open&&t.iconOpen]}})(Kf),fh=pc("input",{shouldForwardProp:e=>cc(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 hh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function mh(e){return null==e||"string"==typeof e&&!e.trim()}const gh=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:w,onClose:C,onFocus:E,onOpen:R,open:A,readOnly:P,renderValue:M,SelectDisplayProps:I={},tabIndex:k,value:D,variant:T="standard"}=e,O=Hr(e,ch),[L,q]=el({controlled:D,default:c,name:"Select"}),[N,j]=el({controlled:A,default:u,name:"Select"}),_=y.useRef(null),z=y.useRef(null),[F,H]=y.useState(null),{current:$}=y.useRef(null!=A),[B,W]=y.useState(),V=rl(t,m),U=y.useCallback((e=>{z.current=e,e&&H(e)}),[]),G=null==F?void 0:F.parentNode;y.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:_.current,value:L})),[L]),y.useEffect((()=>{u&&N&&F&&!$&&(W(a?null:G.clientWidth),z.current.focus())}),[F,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Ys(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),$||(W(a?null:G.clientWidth),j(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&&(q(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 O["aria-invalid"];const ee=[];let te=!1;(kd({value:L})||p)&&(M?Z=M(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(jr(2));t=L.some((t=>hh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=hh(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!==k?k:d?null:0;const ie=I.id||(x?`mui-component-select-${x}`:void 0),ae=Fr({},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 bl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${na(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},sh,t)})(ae),le=Fr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Qs();return rr.jsxs(y.Fragment,{children:[rr.jsx(dh,Fr({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(!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:L,name:x}}),S(e))},onFocus:E},I,{ownerState:ae,className:ps(I.className,se.select,l),id:ie,children:mh(Z)?uh||(uh=rr.jsx("span",{className:"notranslate",children:""})):Z})),rr.jsx(fh,Fr({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:x,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(q(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),rr.jsx(ph,{as:h,className:se.icon,ownerState:ae}),rr.jsx(_f,Fr({id:`menu-${x||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Fr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Fr({},b.slotProps,{paper:Fr({},le,{style:Fr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),bh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],vh=["root"],yh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dc(e)&&"variant"!==e,slot:"Root"},xh=pc(Gp,yh)(""),Sh=pc(ah,yh)(""),wh=pc(_p,yh)(""),Ch=y.forwardRef((function(e,t){const r=gc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=Ud,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:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Hr(r,bh),A=b?Jf:gh,P=Rd({props:r,muiFormControl:Pd(),states:["variant","error"]}),M=P.variant||E,I=Fr({},r,{variant:M,classes:i}),k=(e=>{const{classes:t}=e;return t})(I),D=Hr(k,vh),T=d||{standard:rr.jsx(xh,{ownerState:I}),outlined:rr.jsx(Sh,{label:f,ownerState:I}),filled:rr.jsx(wh,{ownerState:I})}[M],O=rl(t,Cl(T));return rr.jsx(y.Fragment,{children:y.cloneElement(T,Fr({inputComponent:A,inputProps:Fr({children:o,error:P.error,IconComponent:u,variant:M,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:w,SelectDisplayProps:Fr({id:c},C)},p,{classes:p?Gi(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===M?{notched:!0}:{},{ref:O,className:ps(T.props.className,a,k.root)},!d&&{variant:M},R))})}));Ch.muiName="Select";const Eh=y.createContext();function Rh(e){return ms("MuiTable",e)}gs("MuiTable",["root","stickyHeader"]);const Ah=["className","component","padding","size","stickyHeader"],Ph=pc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Fr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Fr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Mh="table",Ih=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTable"}),{className:n,component:o=Mh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Hr(r,Ah),u=Fr({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return bl({root:["root",r&&"stickyHeader"]},Rh,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return rr.jsx(Eh.Provider,{value:d,children:rr.jsx(Ph,Fr({as:o,role:o===Mh?null:"table",ref:t,className:ps(c.root,n),ownerState:u},l))})})),kh=y.createContext();function Dh(e){return ms("MuiTableBody",e)}gs("MuiTableBody",["root"]);const Th=["className","component"],Oh=pc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Lh={variant:"body"},qh="tbody",Nh=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableBody"}),{className:n,component:o=qh}=r,i=Hr(r,Th),a=Fr({},r,{component:o}),s=(e=>{const{classes:t}=e;return bl({root:["root"]},Dh,t)})(a);return rr.jsx(kh.Provider,{value:Lh,children:rr.jsx(Oh,Fr({className:ps(s.root,n),as:o,ref:t,role:o===qh?null:"rowgroup",ownerState:a},i))})}));function jh(e){return ms("MuiTableCell",e)}const _h=gs("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),zh=["align","className","component","padding","scope","size","sortDirection","variant"],Fh=pc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${na(r.size)}`],"normal"!==r.padding&&t[`padding${na(r.padding)}`],"inherit"!==r.align&&t[`align${na(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Fr({},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?Xl(Gl(e.palette.divider,1),.88):Yl(Gl(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",[`&.${_h.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}))),Hh=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Hr(r,zh),p=y.useContext(Eh),f=y.useContext(kh),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=Fr({},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 bl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${na(n)}`,"normal"!==o&&`padding${na(o)}`,`size${na(i)}`]},jh,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),rr.jsx(Fh,Fr({as:m,ref:t,className:ps(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function $h(e){return ms("MuiTableContainer",e)}gs("MuiTableContainer",["root"]);const Bh=["className","component"],Wh=pc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Vh=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Hr(r,Bh),a=Fr({},r,{component:o}),s=(e=>{const{classes:t}=e;return bl({root:["root"]},$h,t)})(a);return rr.jsx(Wh,Fr({ref:t,as:o,className:ps(s.root,n),ownerState:a},i))}));function Uh(e){return ms("MuiTableHead",e)}gs("MuiTableHead",["root"]);const Gh=["className","component"],Yh=pc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Kh={variant:"head"},Xh="thead",Jh=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableHead"}),{className:n,component:o=Xh}=r,i=Hr(r,Gh),a=Fr({},r,{component:o}),s=(e=>{const{classes:t}=e;return bl({root:["root"]},Uh,t)})(a);return rr.jsx(kh.Provider,{value:Kh,children:rr.jsx(Yh,Fr({as:o,className:ps(s.root,n),ref:t,role:o===Xh?null:"rowgroup",ownerState:a},i))})}));function Zh(e){return ms("MuiTableRow",e)}const Qh=gs("MuiTableRow",["root","selected","hover","head","footer"]),em=["className","component","hover","selected"],tm=pc("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,[`&.${Qh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Qh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gl(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}))`:Gl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),rm="tr",nm=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableRow"}),{className:n,component:o=rm,hover:i=!1,selected:a=!1}=r,s=Hr(r,em),l=y.useContext(kh),u=Fr({},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 bl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Zh,t)})(u);return rr.jsx(tm,Fr({as:o,ref:t,className:ps(c.root,n),role:o===rm?null:"row",ownerState:u},s))}));function om(e){return rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:rr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function im({fontSize:e="medium",children:t=null,className:r=""}={}){return rr.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 am(e={}){return rr.jsx(im,{...e,children:rr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[rr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),rr.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 sm(e={}){return rr.jsx(im,{fontSize:"medium",...e,children:rr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[rr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),rr.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 lm(e){return rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:rr.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 um(e={}){return rr.jsx(im,{...e,children:rr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[rr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),rr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function cm(e={}){return rr.jsx(im,{fontSize:"medium",...e,children:rr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:rr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function dm({className:e}){return rr.jsx(im,{fontSize:"small",className:e,children:rr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:rr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:rr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:rr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[rr.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"}),rr.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 pm(e={}){return rr.jsx(im,{...e,children:rr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:rr.jsx("rect",{stroke:Lt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const fm={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:zt,"& > 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 hm=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Lt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Lt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:rr.jsx(om,{"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 ${Lt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`,borderRadius:zt,backgroundColor:Lt.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 ${Lt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Lt.WHITE,color:Lt.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:zt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Lt.GREYSCALE_0_15,backgroundColor:Lt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Lt.GREEN_PALE},"&:active":{backgroundColor:Lt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lt.GREEN_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Lt.BLUE_PALE},"&:active":{backgroundColor:Lt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lt.BLUE_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.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:zt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Lt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Lt.GREYSCALE_0_42,backgroundColor:Lt.GREYSCALE_100_60,"&:active":{backgroundColor:Lt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Lt.PURPLE,"&.Mui-focusVisible":{borderColor:Lt.PURPLE,boxShadow:`0 0 0 3px ${Vs(Lt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Lt.GREEN,"&.Mui-focusVisible":{borderColor:Lt.GREEN,boxShadow:`0 0 0 3px ${Vs(Lt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Lt.BLUE,"&.Mui-focusVisible":{borderColor:Lt.BLUE,boxShadow:`0 0 0 3px ${Vs(Lt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Lt.ORANGE,"&.Mui-focusVisible":{borderColor:Lt.ORANGE,boxShadow:`0 0 0 3px ${Vs(Lt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Lt.RED,"&.Mui-focusVisible":{borderColor:Lt.RED,boxShadow:`0 0 0 3px ${Vs(Lt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Lt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Lt.PURPLE_PALE},"&:active":{backgroundColor:Lt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Lt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Lt.GREEN_PALE},"&:active":{backgroundColor:Lt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lt.GREEN_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Lt.BLUE_PALE},"&:active":{backgroundColor:Lt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lt.BLUE_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Lt.ORANGE_PALE},"&:active":{backgroundColor:Lt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Lt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Lt.RED_PALE},"&:active":{backgroundColor:Lt.RED_DARK},"&.Mui-focusVisible":{borderColor:Lt.RED_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.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:Lt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Lt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:zt,boxShadow:`inset 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:rr.jsx(lm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:qt,borderRadius:zt,color:Lt.TEXT_PRIMARY,backgroundColor:Lt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Lt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Lt.GREYSCALE_0_05,color:Lt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Lt.GREEN,borderColor:Lt.GREEN},"&.MuiChip-outlinedInfo":{color:Lt.BLUE,borderColor:Lt.BLUE},"&.MuiChip-outlinedWarning":{color:Lt.ORANGE,borderColor:Lt.ORANGE},"&.MuiChip-outlinedError":{color:Lt.RED,borderColor:Lt.RED}},outlined:{border:`solid 1px ${Lt.GREYSCALE_0_15}`,backgroundColor:Lt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:zt,boxShadow:"none",backgroundColor:Lt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Lt.GREEN,borderColor:Lt.GREEN},outlinedSecondary:{color:Lt.BLUE,borderColor:Lt.BLUE},label:{fontFamily:Wt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:rr.jsx(lm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:rr.jsx(om,{"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:zt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:zt,fontSize:Nt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Lt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Lt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Lt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Lt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Lt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:zt,border:`solid 1px ${Lt.GREYSCALE_0_15}`,color:Lt.GREYSCALE_0_60,marginRight:0,width:_t,height:_t},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Lt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:zt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Lt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Nt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:qt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Lt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Lt.GREYSCALE_25,fontSize:qt,fontFamily:Wt.FONT_FAMILY,fontWeight:$t,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Lt.TEXT_PRIMARY},"&.Mui-error":{color:Lt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Lt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ht,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Lt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ht,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Nt,lineHeight:"16px",backgroundColor:Lt.WHITE,borderRadius:zt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lt.GREYSCALE_0_05}`,borderColor:Lt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Lt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Lt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lt.RED}`,boxShadow:`0px 0px 0px 1px ${Lt.RED}, inset 0 2px 0 0 ${Lt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lt.GREYSCALE_0_10}`,borderColor:Lt.GREYSCALE_0_10,backgroundColor:Lt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Lt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Lt.GREYSCALE_0_15,borderRadius:zt,boxShadow:`inset 0 2px 0 0 ${Lt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>rr.jsx(om,{...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:Lt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Lt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Lt.GREYSCALE_0_03},"&:active":{backgroundColor:Lt.GREYSCALE_0_10},"&:focus":{backgroundColor:Lt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Lt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Lt.GREYSCALE_0_30,"&:hover":{backgroundColor:Lt.GREYSCALE_0_0,borderColor:Lt.GREYSCALE_0_15},"& ~svg":{color:Lt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Lt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:zt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Lt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Nt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:qt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:qt,fontWeight:$t,color:Lt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:$t}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Lt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:rr.jsx(cm,{}),checkedIcon:rr.jsx(sm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Lt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Lt.GREEN_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Lt.BLUE_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Lt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Lt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:rr.jsx(pm,{}),checkedIcon:rr.jsx(am,{}),indeterminateIcon:rr.jsx(um,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:zt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Lt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Lt.GREYSCALE_0_55,color:Lt.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:Lt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Lt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Lt.GREYSCALE_0_55,"&:hover":{color:Lt.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:Lt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Lt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Nt,color:Lt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:$t},secondary:{fontSize:qt,color:Lt.GREYSCALE_45,fontWeight:Ht,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Nt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Nt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Lt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:qt,borderBottom:`solid 1px ${Lt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Nt,color:Lt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Lt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Lt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Lt.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:Lt.RED}}},"&.Mui-focusVisible":{backgroundColor:Lt.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:Lt.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:Lt.GREEN,height:"24px","&.Mui-disabled":{color:Lt.GREYSCALE_0_15}},rail:{backgroundColor:Lt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Lt.GREYSCALE_0_05}`,borderRadius:zt,boxShadow:`inset 0px 0px 0px 1px ${Lt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Lt.GREYSCALE_0_05}`,borderRadius:zt},thumb:{height:"16px",width:"16px",borderRadius:zt,backgroundColor:Lt.WHITE,boxShadow:`0px 1px 2px 0px ${Lt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lt.GREYSCALE_0_05}`,"&:hover":{borderRadius:zt,boxShadow:`0 2px 4px 0 ${Lt.GREYSCALE_0_30}, 0 0 0 1px ${Lt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Lt.GREYSCALE_0_15}, 0 0 0 1px ${Lt.GREYSCALE_0_06}, 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Lt.GREYSCALE_0_15}, 0 0 0 1px ${Lt.GREYSCALE_0_06}, 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Lt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Lt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Lt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Lt.GREYSCALE_0_15},markLabel:{color:Lt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Lt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Lt.WHITE,color:Lt.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:Lt.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:Lt.GREEN_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Lt.BLUE_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Lt.GREYSCALE_0_15,borderRadius:zt},thumb:{height:"16px",width:"16px",borderRadius:zt,backgroundColor:Lt.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:Nt,fontWeight:$t,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Lt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`,backgroundColor:Lt.GREYSCALE_0_03,borderRadius:zt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Lt.GREYSCALE_25,"&.Mui-selected":{color:Lt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Nt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:zt,"&:hover":{backgroundColor:Lt.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 ${Lt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Lt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:zt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Lt.GREYSCALE_0_05},"&:hover":{backgroundColor:Lt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Lt.GREYSCALE_85}`,borderRight:`1px solid ${Lt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:$t,backgroundColor:Lt.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:Lt.GREYSCALE_98,borderBottom:`1px solid ${Lt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Lt.GREYSCALE_85}`,borderTop:`1px solid ${Lt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Lt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Lt.GREYSCALE_0_05,"&:hover":{backgroundColor:Lt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Lt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>rr.jsx(dm,{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 ${Lt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Nt,borderRadius:zt,padding:"7px 16px",border:`1px solid ${Lt.GREYSCALE_0_15}`,backgroundColor:Lt.GREYSCALE_100_60,color:Lt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Lt.GREYSCALE_0_10,border:`1px solid ${Lt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Lt.GREYSCALE_0_03,border:`1px solid ${Lt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Lt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Lt.MISC_FOCUS_BORDER}`,border:`1px solid ${Lt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Lt.GREYSCALE_25,backgroundColor:Lt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Lt.GREYSCALE_0_10,border:`1px solid ${Lt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:qt,height:24,width:24,padding:7},sizeLarge:{fontSize:jt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Nt,borderRadius:zt}}},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:Lt.GREYSCALE_20},tooltip:{backgroundColor:Lt.GREYSCALE_20,fontSize:qt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...fm}:{}}))(t);const mm=e=>({mode:"light",primary:{ultraLight:Lt.GREEN_ULTRA_LIGHT,light:Lt.GREEN_PALE,main:Lt.GREEN,dark:Lt.GREEN_DARK,extraDark:Lt.GREEN_EXTRA_DARK,contrastText:Lt.WHITE},secondary:{ultraLight:Lt.BLUE_ULTRA_LIGHT,light:Lt.BLUE_PALE,main:Lt.BLUE,dark:Lt.BLUE_DARK,extraDark:Lt.BLUE_EXTRA_DARK,contrastText:Lt.WHITE},error:{ultraLight:Lt.RED_ULTRA_LIGHT,light:Lt.RED_PALE,main:Lt.RED,dark:Lt.RED_DARK,extraDark:Lt.RED_EXTRA_DARK,contrastText:Lt.WHITE},warning:{ultraLight:Lt.ORANGE_ULTRA_LIGHT,light:Lt.ORANGE_PALE,main:Lt.ORANGE,dark:Lt.ORANGE_DARK,extraDark:Lt.ORANGE_EXTRA_DARK,contrastText:Lt.WHITE},success:{ultraLight:Lt.GREEN_ULTRA_LIGHT,light:Lt.GREEN_PALE,main:Lt.GREEN,dark:Lt.GREEN_DARK,extraDark:Lt.GREEN_EXTRA_DARK,contrastText:Lt.WHITE},info:{ultraLight:Lt.BLUE_ULTRA_LIGHT,light:Lt.BLUE_PALE,main:Lt.BLUE,dark:Lt.BLUE_DARK,extraDark:Lt.BLUE_EXTRA_DARK,contrastText:Lt.WHITE},text:{primary:Lt.TEXT_PRIMARY,secondary:Lt.TEXT_SECONDARY,disabled:Lt.GREYSCALE_0_30},action:{hover:Lt.GREYSCALE_0_03,hoverOpacity:.03,selected:Lt.GREYSCALE_0_05,selectedOpacity:.05,focus:Lt.MISC_FOCUS_BORDER},amethyst:{ultraLight:Lt.WHITE,main:Lt.PURPLE,light:Lt.PURPLE_PALE,dark:Lt.PURPLE_DARK,extraDark:Lt.GREYSCALE_0_0,contrastText:Lt.WHITE},background:{paper:Lt.WHITE,default:Lt.GREYSCALE_95},divider:Lt.GREYSCALE_0_15}),gm={...Ot};var bm={},vm={exports:{}},ym={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}(ym);var xm=ym.exports;!function(e){var t=xm.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}(vm);var Sm=vm.exports,wm={};function Cm(e,t){return function(){return null}}function Em(e){return e&&"object"===jl(e)&&e.constructor===Object}function Rm(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Fr({},e):e;return Em(e)&&Em(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Em(t[o])&&o in e?n[o]=Rm(e[o],t[o],r):n[o]=t[o])})),n}var Am=(_i.element,function(){return null});Am.isRequired=(_i.element.isRequired,function(){return null});var Pm=function(){return null};var Mm={exports:{}},Im={},km=60103,Dm=60106,Tm=60107,Om=60108,Lm=60114,qm=60109,Nm=60110,jm=60112,_m=60113,zm=60120,Fm=60115,Hm=60116,$m=60121,Bm=60122,Wm=60117,Vm=60129,Um=60131;if("function"==typeof Symbol&&Symbol.for){var Gm=Symbol.for;km=Gm("react.element"),Dm=Gm("react.portal"),Tm=Gm("react.fragment"),Om=Gm("react.strict_mode"),Lm=Gm("react.profiler"),qm=Gm("react.provider"),Nm=Gm("react.context"),jm=Gm("react.forward_ref"),_m=Gm("react.suspense"),zm=Gm("react.suspense_list"),Fm=Gm("react.memo"),Hm=Gm("react.lazy"),$m=Gm("react.block"),Bm=Gm("react.server.block"),Wm=Gm("react.fundamental"),Vm=Gm("react.debug_trace_mode"),Um=Gm("react.legacy_hidden")}function Ym(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case km:switch(e=e.type){case Tm:case Lm:case Om:case _m:case zm:return e;default:switch(e=e&&e.$$typeof){case Nm:case jm:case Hm:case Fm:case qm:return e;default:return t}}case Dm:return t}}}var Km=qm,Xm=km,Jm=jm,Zm=Tm,Qm=Hm,eg=Fm,tg=Dm,rg=Lm,ng=Om,og=_m;Im.ContextConsumer=Nm,Im.ContextProvider=Km,Im.Element=Xm,Im.ForwardRef=Jm,Im.Fragment=Zm,Im.Lazy=Qm,Im.Memo=eg,Im.Portal=tg,Im.Profiler=rg,Im.StrictMode=ng,Im.Suspense=og,Im.isAsyncMode=function(){return!1},Im.isConcurrentMode=function(){return!1},Im.isContextConsumer=function(e){return Ym(e)===Nm},Im.isContextProvider=function(e){return Ym(e)===qm},Im.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===km},Im.isForwardRef=function(e){return Ym(e)===jm},Im.isFragment=function(e){return Ym(e)===Tm},Im.isLazy=function(e){return Ym(e)===Hm},Im.isMemo=function(e){return Ym(e)===Fm},Im.isPortal=function(e){return Ym(e)===Dm},Im.isProfiler=function(e){return Ym(e)===Lm},Im.isStrictMode=function(e){return Ym(e)===Om},Im.isSuspense=function(e){return Ym(e)===_m},Im.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Tm||e===Lm||e===Vm||e===Om||e===_m||e===zm||e===Um||"object"==typeof e&&null!==e&&(e.$$typeof===Hm||e.$$typeof===Fm||e.$$typeof===qm||e.$$typeof===Nm||e.$$typeof===jm||e.$$typeof===Wm||e.$$typeof===$m||e[0]===Bm)},Im.typeOf=Ym,Mm.exports=Im;var ig=Mm.exports,ag=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function sg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(ag);return t&&t[1]||""}(e)||t}function lg(e,t,r){var n=sg(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var ug="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),cg=_i.oneOfType([_i.func,_i.object]),dg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Cm,deepmerge:Rm,elementAcceptingRef:Am,elementTypeAcceptingRef:Pm,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 sg(e,"Component");if("object"===jl(e))switch(e.$$typeof){case ig.ForwardRef:return lg(e,e.render,"ForwardRef");case ig.Memo:return lg(e,e.type,"memo");default:return}}},ponyfillGlobal:ug,refType:cg}),pg=Ut(dg);Object.defineProperty(wm,"__esModule",{value:!0}),wm.hexToRgb=mg,wm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=bg(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(""))},wm.hslToRgb=gg,wm.decomposeColor=bg,wm.recomposeColor=vg,wm.getContrastRatio=function(e,t){var r=yg(e),n=yg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},wm.getLuminance=yg,wm.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return yg(e)>.5?Sg(e,t):wg(e,t)},wm.fade=function(e,t){return xg(e,t)},wm.alpha=xg,wm.darken=Sg,wm.lighten=wg;var fg=pg;function hg(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 mg(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 gg(e){var t=(e=bg(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])),vg({type:s,values:l})}function bg(e){if(e.type)return e;if("#"===e.charAt(0))return bg(mg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,fg.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 vg(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 yg(e){var t="hsl"===(e=bg(e)).type?bg(gg(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 xg(e,t){return e=bg(e),t=hg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,vg(e)}function Sg(e,t){if(e=bg(e),t=hg(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 vg(e)}function wg(e,t){if(e=bg(e),t=hg(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 vg(e)}var Cg,Eg,Rg,Ag={},Pg={exports:{}},Mg={exports:{}},Ig={exports:{}};function kg(){return Cg||(Cg=1,function(e){var t=xm.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}(Ig)),Ig.exports}function Dg(){return Eg||(Eg=1,function(e){var t=xm.default,r=kg();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Mg)),Mg.exports}function Tg(){return Rg||(Rg=1,function(e){var t=Dg();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}(Pg)),Pg.exports}var Og,Lg={exports:{}};function qg(){return Og||(Og=1,function(e){var t=_u();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}(Lg)),Lg.exports}var Ng,jg={};var _g,zg={};var Fg,Hg={},$g={};var Bg,Wg={};var Vg,Ug={};var Gg,Yg={};var Kg,Xg={};var Jg,Zg={};var Qg,eb={};var tb,rb,nb={};function ob(){if(rb)return Hg;rb=1;var e=Bl;Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.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,A=e.success,P=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,M=e.type,I=void 0===M?"light":M,k=e.contrastThreshold,D=void 0===k?3:k,T=e.tonalOffset,O=void 0===T?.2:T,L=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.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 m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=q(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:I,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(P),grey:i.default,contrastThreshold:D,getContrastText:q,augmentColor:N,tonalOffset:O},j[I]),L);return _},Hg.dark=Hg.light=void 0;var t=e(qu()),r=e(qg()),n=pg,o=e(function(){if(Fg)return $g;Fg=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(Bg)return Wg;Bg=1,Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.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 Wg.default=e,Wg}()),a=e(function(){if(Vg)return Ug;Vg=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.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 Ug.default=e,Ug}()),s=e(function(){if(Gg)return Yg;Gg=1,Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.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 Yg.default=e,Yg}()),l=e(function(){if(Kg)return Xg;Kg=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.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 Xg.default=e,Xg}()),u=e(function(){if(Jg)return Zg;Jg=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.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 Zg.default=e,Zg}()),c=e(function(){if(Qg)return eb;Qg=1,Object.defineProperty(eb,"__esModule",{value:!0}),eb.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 eb.default=e,eb}()),d=e(function(){if(tb)return nb;tb=1,Object.defineProperty(nb,"__esModule",{value:!0}),nb.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 nb.default=e,nb}()),p=wm,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}};Hg.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 Hg.dark=h,Hg}var ib,ab={};var sb,lb={};var ub,cb={};var db={};function pb(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 fb(e,t){if(e){if("string"==typeof e)return pb(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)?pb(e,t):void 0}}function hb(e){return function(e){if(Array.isArray(e))return pb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fb(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 mb(e,t){return t?Rm(e,t,{clone:!1}):e}var gb={xs:0,sm:600,md:960,lg:1280,xl:1920},bb={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(gb[e],"px)")}};function vb(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||bb;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===jl(t)){var o=e.theme.breakpoints||bb;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function yb(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function xb(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=yb(e.theme,o)||{};return vb(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=yb(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=_l(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 Sb(){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?mb(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function wb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Cb=xb({prop:"border",themeKey:"borders",transform:wb}),Eb=xb({prop:"borderTop",themeKey:"borders",transform:wb}),Rb=xb({prop:"borderRight",themeKey:"borders",transform:wb}),Ab=xb({prop:"borderBottom",themeKey:"borders",transform:wb}),Pb=xb({prop:"borderLeft",themeKey:"borders",transform:wb}),Mb=xb({prop:"borderColor",themeKey:"palette"}),Ib=xb({prop:"borderRadius",themeKey:"shape"}),kb=Sb(Cb,Eb,Rb,Ab,Pb,Mb,Ib);function Db(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Tb(e){var t=function(t){var r=e(t);return t.css?Fr({},mb(r,e(Fr({theme:t.theme},t.css))),Db(t.css,[e.filterProps])):t.sx?Fr({},mb(r,e(Fr({theme:t.theme},t.sx))),Db(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(hb(e.filterProps)),t}var Ob=Sb(xb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),xb({prop:"display"}),xb({prop:"overflow"}),xb({prop:"textOverflow"}),xb({prop:"visibility"}),xb({prop:"whiteSpace"})),Lb=xb({prop:"flexBasis"}),qb=xb({prop:"flexDirection"}),Nb=xb({prop:"flexWrap"}),jb=xb({prop:"justifyContent"}),_b=xb({prop:"alignItems"}),zb=xb({prop:"alignContent"}),Fb=xb({prop:"order"}),Hb=xb({prop:"flex"}),$b=xb({prop:"flexGrow"}),Bb=xb({prop:"flexShrink"}),Wb=xb({prop:"alignSelf"}),Vb=xb({prop:"justifyItems"}),Ub=xb({prop:"justifySelf"}),Gb=Sb(Lb,qb,Nb,jb,_b,zb,Fb,Hb,$b,Bb,Wb,Vb,Ub),Yb=xb({prop:"gridGap"}),Kb=xb({prop:"gridColumnGap"}),Xb=xb({prop:"gridRowGap"}),Jb=xb({prop:"gridColumn"}),Zb=xb({prop:"gridRow"}),Qb=xb({prop:"gridAutoFlow"}),ev=xb({prop:"gridAutoColumns"}),tv=xb({prop:"gridAutoRows"}),rv=xb({prop:"gridTemplateColumns"}),nv=xb({prop:"gridTemplateRows"}),ov=xb({prop:"gridTemplateAreas"}),iv=xb({prop:"gridArea"}),av=Sb(Yb,Kb,Xb,Jb,Zb,Qb,ev,tv,rv,nv,ov,iv),sv=xb({prop:"color",themeKey:"palette"}),lv=xb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),uv=Sb(sv,lv),cv=xb({prop:"position"}),dv=xb({prop:"zIndex",themeKey:"zIndex"}),pv=xb({prop:"top"}),fv=xb({prop:"right"}),hv=xb({prop:"bottom"}),mv=xb({prop:"left"}),gv=Sb(cv,dv,pv,fv,hv,mv),bv=xb({prop:"boxShadow",themeKey:"shadows"});function vv(e){return e<=1?"".concat(100*e,"%"):e}var yv=xb({prop:"width",transform:vv}),xv=xb({prop:"maxWidth",transform:vv}),Sv=xb({prop:"minWidth",transform:vv}),wv=xb({prop:"height",transform:vv}),Cv=xb({prop:"maxHeight",transform:vv}),Ev=xb({prop:"minHeight",transform:vv}),Rv=xb({prop:"size",cssProperty:"width",transform:vv}),Av=xb({prop:"size",cssProperty:"height",transform:vv}),Pv=xb({prop:"boxSizing"}),Mv=Sb(yv,xv,Sv,wv,Cv,Ev,Pv);function Iv(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)||fb(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 kv={m:"margin",p:"padding"},Dv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ov=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(!Tv[e])return[e];e=Tv[e]}var t=Iv(e.split(""),2),r=t[0],n=t[1],o=kv[r],i=Dv[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Lv=["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 qv(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 Nv(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 jv(e){var t=qv(e.theme);return Object.keys(e).map((function(r){if(-1===Lv.indexOf(r))return null;var n=Nv(Ov(r),t),o=e[r];return vb(e,o,n)})).reduce(mb,{})}jv.propTypes={},jv.filterProps=Lv;var _v,zv=xb({prop:"fontFamily",themeKey:"typography"}),Fv=xb({prop:"fontSize",themeKey:"typography"}),Hv=xb({prop:"fontStyle",themeKey:"typography"}),$v=xb({prop:"fontWeight",themeKey:"typography"}),Bv=xb({prop:"letterSpacing"}),Wv=xb({prop:"lineHeight"}),Vv=xb({prop:"textAlign"}),Uv=Sb(zv,Fv,Hv,$v,Bv,Wv,Vv),Gv=Object.freeze({__proto__:null,alignContent:zb,alignItems:_b,alignSelf:Wb,bgcolor:lv,border:Cb,borderBottom:Ab,borderColor:Mb,borderLeft:Pb,borderRadius:Ib,borderRight:Rb,borderTop:Eb,borders:kb,bottom:hv,boxSizing:Pv,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||bb,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(Fr({theme:t.theme},t[o]))),r}),null);return mb(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(hb(e.filterProps)),t},color:sv,compose:Sb,createUnarySpacing:qv,css:function(e){return Tb(e)},display:Ob,flex:Hb,flexBasis:Lb,flexDirection:qb,flexGrow:$b,flexShrink:Bb,flexWrap:Nb,flexbox:Gb,fontFamily:zv,fontSize:Fv,fontStyle:Hv,fontWeight:$v,grid:av,gridArea:iv,gridAutoColumns:ev,gridAutoFlow:Qb,gridAutoRows:tv,gridColumn:Jb,gridColumnGap:Kb,gridGap:Yb,gridRow:Zb,gridRowGap:Xb,gridTemplateAreas:ov,gridTemplateColumns:rv,gridTemplateRows:nv,height:wv,justifyContent:jb,justifyItems:Vb,justifySelf:Ub,left:mv,letterSpacing:Bv,lineHeight:Wv,maxHeight:Cv,maxWidth:xv,minHeight:Ev,minWidth:Sv,order:Fb,palette:uv,position:cv,positions:gv,right:fv,shadows:bv,sizeHeight:Av,sizeWidth:Rv,sizing:Mv,spacing:jv,style:xb,styleFunctionSx:Tb,textAlign:Vv,top:pv,typography:Uv,width:yv,zIndex:dv}),Yv=Ut(Gv);var Kv,Xv={};function Jv(){if(Kv)return Xv;Kv=1;var e=Bl;Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.default=Xv.duration=Xv.easing=void 0;var t=e(qg()),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)"};Xv.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")}Xv.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 Xv.default=i,Xv}var Zv,Qv,ey={};function ty(){if(Qv)return Ag;Qv=1;var e=Bl;Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.createMuiTheme=function(){return p.apply(void 0,arguments)},Ag.default=void 0,e(Tg());var t=e(qg()),r=pg,n=e(function(){if(Ng)return jg;Ng=1;var e=Bl;Object.defineProperty(jg,"__esModule",{value:!0}),jg.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)},jg.keys=void 0;var t=e(qu()),r=e(qg()),n=["xs","sm","md","lg","xl"];return jg.keys=n,jg}()),o=e(function(){if(_g)return zg;_g=1;var e=Bl;Object.defineProperty(zg,"__esModule",{value:!0}),zg.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(Tg()),r=e(qu());return zg}()),i=e(ob()),a=e(function(){if(ib)return ab;ib=1;var e=Bl;Object.defineProperty(ab,"__esModule",{value:!0}),ab.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,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=f/14,M=R||function(e){return"".concat(e/C*P,"rem")},I=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},k={h1:I(m,96,1.167,-1.5),h2:I(m,60,1.2,-.5),h3:I(b,48,1.167,0),h4:I(b,34,1.235,.25),h5:I(b,24,1.334,0),h6:I(y,20,1.6,.15),subtitle1:I(b,16,1.75,.15),subtitle2:I(y,14,1.57,.1),body1:I(b,16,1.5,.15),body2:I(b,14,1.43,.15),button:I(y,14,1.75,.4,a),caption:I(b,12,1.66,.4),overline:I(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},k),A,{clone:!1})};var t=e(qu()),r=e(qg()),n=pg;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 ab}()),s=e(function(){if(sb)return lb;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(",")}sb=1,Object.defineProperty(lb,"__esModule",{value:!0}),lb.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 lb.default=t,lb}()),l=e(function(){if(ub)return cb;ub=1,Object.defineProperty(cb,"__esModule",{value:!0}),cb.default=void 0;var e={borderRadius:4};return cb.default=e,cb}()),u=e(function(){if(_v)return db;_v=1,Object.defineProperty(db,"__esModule",{value:!0}),db.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=Yv;return db}()),c=e(Jv()),d=e(function(){if(Zv)return ey;Zv=1,Object.defineProperty(ey,"__esModule",{value:!0}),ey.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return ey.default=e,ey}());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"]),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,m),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),A=arguments.length,P=new Array(A>1?A-1:0),M=1;M<A;M++)P[M-1]=arguments[M];return R=P.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return Ag.default=f,Ag}var ry,ny={};var oy={},iy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ay=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function sy(){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!==ay.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[iy]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function ly(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 uy="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},cy="object"===("undefined"==typeof window?"undefined":uy(window))&&"object"===("undefined"==typeof document?"undefined":uy(document))&&9===document.nodeType;function dy(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,_l(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var py={}.constructor;function fy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(fy);if(e.constructor!==py)return e;var t={};for(var r in e)t[r]=fy(e[r]);return t}function hy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=fy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var my=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},gy=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+=my(e[r]," ");else t=my(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function by(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function vy(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function yy(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=by(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+=vy(p+":"+u+gy(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=vy(h+":"+u+gy(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=vy(g+":"+u+gy(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),vy(""+e+u+"{"+n,--i)+vy("}",i)):n}var xy=/([[\].#*$><+~=|^:(),"'`\s])/g,Sy="undefined"!=typeof CSS&&CSS.escape,wy=function(e){return Sy?Sy(e):e.replace(xy,"\\$1")},Cy=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}(),Ey=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(Tc(Tc(o)),s),o.selectorText="."+wy(o.id)),o}wc(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]=gy(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Fr({},e,{allowEmpty:!0}):e;return yy(this.selectorText,this.style,r)},dy(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}(Cy),Ry={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Ey(e,t,r)}},Ay={indent:1,children:!0},Py=/@([\w-]+)/,My=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Py);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Zy(Fr({},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=Ay);var t=by(e).linebreak;if(null==e.indent&&(e.indent=Ay.indent),null==e.children&&(e.children=Ay.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Iy=/@container|@media|@supports\s+/,ky={onCreateRule:function(e,t,r){return Iy.test(e)?new My(e,t,r):null}},Dy={indent:1,children:!0},Ty=/@keyframes\s+([\w-]+)/,Oy=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Ty);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:wy(a(this,i)),this.rules=new Zy(Fr({},r,{parent:this})),t)this.rules.add(s,t[s],Fr({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Dy);var t=by(e).linebreak;if(null==e.indent&&(e.indent=Dy.indent),null==e.children&&(e.children=Dy.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}(),Ly=/@keyframes\s+/,qy=/\$([\w-]+)/g,Ny=function(e,t){return"string"==typeof e?e.replace(qy,(function(e,r){return r in t?t[r]:e})):e},jy=function(e,t,r){var n=e[t],o=Ny(n,r);o!==n&&(e[t]=o)},_y={onCreateRule:function(e,t,r){return"string"==typeof e&&Ly.test(e)?new Oy(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&jy(e,"animation-name",r.keyframes),"animation"in e&&jy(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 Ny(e,n.keyframes);default:return e}}},zy=function(e){function t(){return e.apply(this,arguments)||this}return wc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Fr({},e,{allowEmpty:!0}):e;return yy(this.key,this.style,r)},t}(Cy),Fy={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new zy(e,t,r):null}},Hy=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=by(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=yy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return yy(this.at,this.style,e)},e}(),$y=/@font-face/,By={onCreateRule:function(e,t,r){return $y.test(e)?new Hy(e,t,r):null}},Wy=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 yy(this.key,this.style,e)},e}(),Vy={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Wy(e,t,r):null}},Uy=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}(),Gy={"@charset":!0,"@import":!0,"@namespace":!0},Yy={onCreateRule:function(e,t,r){return e in Gy?new Uy(e,t,r):null}},Ky=[Ry,ky,_y,Fy,By,Vy,Yy],Xy={process:!0},Jy={force:!0,process:!0},Zy=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=Fr({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="."+wy(this.classes[d]));var p=hy(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=Fr({},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 Ey?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Oy&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ey?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Oy&&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=Xy);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,Jy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Jy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=by(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}(),Qy=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Fr({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Zy(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}(),ex=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}(),tx=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=Hr(t,["attached"]),o=by(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},dy(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),rx=new tx,nx="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ox="2f1acc6c3a606b082e5eef5e54414ffb";null==nx[ox]&&(nx[ox]=0);var ix=nx[ox]++,ax=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")+ix+o+t:i+r.key+"-"+ix+(o?"-"+o:"")+"-"+t}},sx=function(e){var t;return function(){return t||(t=e()),t}},lx=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ux=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=gy(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},cx=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},dx=function(e,t){return e.selectorText=t,e.selectorText===t},px=sx((function(){return document.querySelector("head")}));function fx(e){var t=rx.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=px(),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 hx=sx((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),mx=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]},gx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},bx=function(){function e(e){this.getPropertyValue=lx,this.setProperty=ux,this.removeProperty=cx,this.setSelector=dx,this.hasInsertedRules=!1,this.cssRules=[],e&&rx.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=hx();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=fx(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 px().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=gx(r,t);if(!1===(o=mx(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=gx(r,t),l=mx(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 Qy&&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}(),vx=0,yx=function(){function e(e){this.id=vx++,this.version="10.10.0",this.plugins=new ex,this.options={id:{minify:!1},createGenerateId:ax,Renderer:cy?bx:null,plugins:[]},this.generateId=ax({minify:!1});for(var t=0;t<Ky.length;t++)this.plugins.use(Ky[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=Fr({},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===rx.index?0:rx.index+1);var n=new Qy(e,Fr({},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(),rx.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=Fr({},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=hy(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}(),xx=function(e){return new yx(e)},Sx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function wx(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=wx(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
90
|
+
`),Vc.rippleVisible,Zc,550,(({theme:e})=>e.transitions.easing.easeInOut),Vc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Vc.child,Vc.childLeaving,Qc,550,(({theme:e})=>e.transitions.easing.easeInOut),Vc.childPulsate,ed,(({theme:e})=>e.transitions.easing.easeInOut)),nd=x.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Hr(r,Uc),[s,l]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=x.useRef(!1),p=sl(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,nr.jsx(rd,{classes:{ripple:fs(o.ripple,Vc.ripple),rippleVisible:fs(o.rippleVisible,Vc.rippleVisible),ripplePulsate:fs(o.ripplePulsate,Vc.ripplePulsate),child:fs(o.child,Vc.child),childLeaving:fs(o.childLeaving,Vc.childLeaving),childPulsate:fs(o.childPulsate,Vc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.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]),v=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=x.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,(()=>{b(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return x.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),nr.jsx(td,$r({className:fs(Vc.root,o.root,i),ref:h},a,{children:nr.jsx(jc,{component:null,exit:!0,children:s})}))}));function od(e){return gs("MuiButtonBase",e)}const id=vs("MuiButtonBase",["root","disabled","focusVisible"]),ad=["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"],sd=fc("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"},[`&.${id.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ld=x.forwardRef((function(e,t){const r=vc({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:v,onFocusVisible:b,onKeyDown:y,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:M=0,TouchRippleProps:I,touchRippleRef:k,type:D}=r,T=Hr(r,ad),O=x.useRef(null),L=x.useRef(null),q=nl(L,k),{isFocusVisibleRef:N,onFocus:_,onBlur:j,ref:z}=gl(),[F,$]=x.useState(!1);l&&F&&$(!1),x.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[H,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const W=H&&!u&&!l;function V(e,t,r=c){return rl((n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0}))}x.useEffect((()=>{F&&d&&!u&&H&&L.current.pulsate()}),[u,d,F,H]);const U=V("start",w),G=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",(e=>{F&&e.preventDefault(),C&&C(e)})),J=V("start",P),Z=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{j(e),!1===N.current&&$(!1),f&&f(e)}),!1),te=rl((e=>{O.current||(O.current=e.currentTarget),_(e),!0===N.current&&($(!0),b&&b(e)),v&&v(e)})),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=rl((e=>{d&&!ne.current&&F&&L.current&&" "===e.key&&(ne.current=!0,L.current.stop(e,(()=>{L.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=rl((e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=nl(t,z,O),ue=$r({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=bl({root:["root",t&&"disabled",r&&"focusVisible"]},od,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return nr.jsxs(sd,$r({as:ae,className:fs(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,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:M,type:D},se,T,{children:[i,W?nr.jsx(nd,$r({ref:q,center:o},I)):null]}))}));function ud(e){return gs("MuiIconButton",e)}const cd=vs("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),dd=["edge","children","className","color","disabled","disableFocusRipple","size"],pd=fc(ld,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${oa(r.color)}`],r.edge&&t[`edge${oa(r.edge)}`],t[`size${oa(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})`:Yl(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})`:Yl(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)},{[`&.${cd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),fd=x.forwardRef((function(e,t){const r=vc({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=Hr(r,dd),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 bl({root:["root",r&&"disabled","default"!==n&&`color${oa(n)}`,o&&`edge${oa(o)}`,`size${oa(i)}`]},ud,t)})(d);return nr.jsx(pd,$r({className:fs(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function hd(e){return gs("MuiTypography",e)}vs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const md=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],gd=fc("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${oa(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}))),vd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},yd=x.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTypography"}),n=(e=>bd[e]||e)(r.color),o=ls($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=vd}=o,f=Hr(o,md),h=$r({},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]||vd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return bl({root:["root",i,"inherit"!==e.align&&`align${oa(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},hd,a)})(h);return nr.jsx(gd,$r({as:m,ref:t,ownerState:h,className:fs(g.root,a)},f))}));const xd=x.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),s=nl(x.isValidElement(r)?El(r):null,t);if(Hs((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Hs((()=>{if(i&&!o)return Js(t,i),()=>{Js(t,null)}}),[t,i,o]),o){if(x.isValidElement(r)){const e={ref:s};return x.cloneElement(r,e)}return nr.jsx(x.Fragment,{children:r})}return nr.jsx(x.Fragment,{children:i?H.createPortal(r,i):i})})),Sd=["onChange","maxRows","minRows","style","value"];function wd(e){return parseInt(e,10)||0}const Cd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ed(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Rd=x.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Hr(e,Sd),{current:l}=x.useRef(null!=a),u=x.useRef(null),c=nl(t,u),d=x.useRef(null),p=x.useRef(null),f=x.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=Xs(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=wd(i.paddingBottom)+wd(i.paddingTop),l=wd(i.borderBottomWidth)+wd(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=rl((()=>{const e=u.current,t=f();if(!e||!t||Ed(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),m=x.useCallback((()=>{const e=u.current,t=f();if(!e||!t||Ed(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=x.useRef(-1);Hs((()=>{const e=Ys(m),t=null==u?void 0:u.current;if(!t)return;const r=Xs(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]),Hs((()=>{m()}));return nr.jsxs(x.Fragment,{children:[nr.jsx("textarea",$r({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),nr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:$r({},Cd,i,{paddingTop:0,paddingBottom:0})})]})}));function Ad({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 Pd=x.createContext(void 0);function Md(){return x.useContext(Pd)}function Id(e){return nr.jsx(as,$r({},e,{defaultTheme:Du,themeId:Fr}))}function kd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Dd(e,t=!1){return e&&(kd(e.value)&&""!==e.value||t&&kd(e.defaultValue)&&""!==e.defaultValue)}function Td(e){return gs("MuiInputBase",e)}const Od=vs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ld=["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"],qd=(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${oa(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Nd=(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]},_d=fc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qd})((({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",[`&.${Od.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%"}))),jd=fc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Nd})((({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] + .${Od.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},[`&.${Od.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"})})),zd=nr.jsx(Id,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Fd=x.forwardRef((function(e,t){var r;const n=vc({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:v={},inputRef:b,maxRows:y,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:A,onFocus:P,onKeyDown:M,onKeyUp:I,placeholder:k,readOnly:D,renderSuffix:T,rows:O,slotProps:L={},slots:q={},startAdornment:N,type:_="text",value:j}=n,z=Hr(n,Ld),F=null!=v.value?v.value:j,{current:$}=x.useRef(null!=F),H=x.useRef(),B=x.useCallback((e=>{}),[]),W=nl(H,b,v.ref,B),[V,U]=x.useState(!1),G=Md(),Y=Ad({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,x.useEffect((()=>{!G&&d&&V&&(U(!1),E&&E())}),[G,d,V,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=x.useCallback((e=>{Dd(e)?K&&K():X&&X()}),[K,X]);Hs((()=>{$&&J({value:F})}),[F,J,$]);x.useEffect((()=>{J(H.current)}),[]);let Z=g,Q=v;w&&"input"===Z&&(Q=$r(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Rd);x.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:h,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:h}=e;return bl({root:["root",`color${oa(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${oa(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"]},Td,t)})(ee),re=q.root||l.Root||_d,ne=L.root||u.root||{},oe=q.input||l.Input||jd;return Q=$r({},Q,null!=(r=L.input)?r:u.input),nr.jsxs(x.Fragment,{children:[!p&&zd,nr.jsxs(re,$r({},ne,!yl(re)&&{ownerState:$r({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:fs(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,nr.jsx(Pd.Provider,{value:null,children:nr.jsx(oe,$r({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?H.current:{value:"x"})},name:C,placeholder:k,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:M,onKeyUp:I,type:_},Q,!yl(oe)&&{as:Z,ownerState:$r({},ee,Q.ownerState)},{ref:W,className:fs(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(jr(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T($r({},Y,{startAdornment:N})):null]}))]})}));function $d(e){return gs("MuiInput",e)}const Hd=$r({},Od,vs("MuiInput",["root","underline","input"]));function Bd(e){return gs("MuiOutlinedInput",e)}const Wd=$r({},Od,vs("MuiOutlinedInput",["root","notchedOutline","input"]));function Vd(e){return gs("MuiFilledInput",e)}const Ud=$r({},Od,vs("MuiFilledInput",["root","underline","input"]));var Gd=function(e,t){function r(r,n){return nr.jsx(Sc,$r({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Sc.muiName,x.memo(x.forwardRef(r))}(nr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Yd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Kd={entering:{opacity:1},entered:{opacity:1}},Xd=x.forwardRef((function(e,t){const r=Tu(),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:v=Dc}=e,b=Hr(e,Yd),y=x.useRef(null),S=nl(y,El(a),t),w=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w(((e,t)=>{zc(e);const n=Fc({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=w(c),A=w(h),P=w((e=>{const t=Fc({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)})),M=w(f);return nr.jsx(v,$r({appear:i,in:l,nodeRef:y,onEnter:E,onEntered:R,onEntering:C,onExit:P,onExited:M,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>x.cloneElement(a,$r({style:$r({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Kd[e],m,a.props.style),ref:S},t))}))}));function Jd(e){return gs("MuiBackdrop",e)}vs("MuiBackdrop",["root","invisible"]);const Zd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Qd=fc("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"}))),ep=x.forwardRef((function(e,t){var r,n,o;const i=vc({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=Xd,transitionDuration:g}=i,v=Hr(i,Zd),b=$r({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return bl({root:["root",r&&"invisible"]},Jd,t)})(b),x=null!=(r=f.root)?r:c.root;return nr.jsx(m,$r({in:p,timeout:g},v,{children:nr.jsx(Qd,$r({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:fs(y.root,s,null==x?void 0:x.className),ownerState:$r({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),tp=vs("MuiBox",["root"]),rp=ku(),np=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Hi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ja);return x.forwardRef((function(e,a){const s=os(r),l=ls(e),{className:u,component:c="div"}=l,d=Hr(l,hs);return nr.jsx(i,$r({as:c,ref:a,className:fs(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Fr,defaultTheme:rp,defaultClassName:tp.root,generateClassName:ds.generate});function op(e){return gs("MuiButton",e)}const ip=vs("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"]),ap=x.createContext({}),sp=x.createContext(void 0),lp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],up=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}}),cp=fc(ld,{shouldForwardProp:e=>pc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${oa(r.color)}`],t[`size${oa(r.size)}`],t[`${r.variant}Size${oa(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})`:Yl(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})`:Yl(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})`:Yl(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]}),[`&.${ip.focusVisible}`]:$r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ip.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 ${Yl(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"},[`&.${ip.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ip.disabled}`]:{boxShadow:"none"}})),dp=fc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${oa(r.size)}`]]}})((({ownerState:e})=>$r({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},up(e)))),pp=fc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${oa(r.size)}`]]}})((({ownerState:e})=>$r({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},up(e)))),fp=x.forwardRef((function(e,t){const r=x.useContext(ap),n=x.useContext(sp),o=vc({props:$s(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:v,variant:b="text"}=o,y=Hr(o,lp),S=$r({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $r({},a,bl({root:["root",i,`${i}${oa(t)}`,`size${oa(o)}`,`${i}Size${oa(o)}`,`color${oa(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${oa(o)}`],endIcon:["icon","endIcon",`iconSize${oa(o)}`]},op,a))})(S),C=g&&nr.jsx(dp,{className:w.startIcon,ownerState:S,children:g}),E=p&&nr.jsx(pp,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return nr.jsxs(cp,$r({ownerState:S,className:fs(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:fs(w.focusVisible,f),ref:t,type:v},y,{classes:w,children:[C,i,E]}))}));function hp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function mp(e){return parseInt(Xs(e).getComputedStyle(e).paddingRight,10)||0}function gp(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&&hp(e,o)}))}function vp(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function bp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Ks(e);return t.body===e?Xs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=vl(Ks(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${mp(n)+e}px`;const t=Ks(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${mp(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Ks(n).body;else{const t=n.parentElement,r=Xs(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 yp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xp(e){const t=[],r=[];return Array.from(e.querySelectorAll(yp)).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 Sp(){return!0}function wp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=xp,isEnabled:a=Sp,open:s}=e,l=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=nl(El(t),h),g=x.useRef(null);x.useEffect((()=>{s&&h.current&&(f.current=!r)}),[r,s]),x.useEffect((()=>{if(!s||!h.current)return;const e=Ks(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]),x.useEffect((()=>{if(!s||!h.current)return;const e=Ks(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 v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return nr.jsxs(x.Fragment,{children:[nr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),x.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)}}),nr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const Cp=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&&hp(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);gp(t,e.mount,e.modalRef,n,!0);const o=vp(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=vp(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=bp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=vp(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&&hp(e.modalRef,t),gp(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&&hp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Ep(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Cp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=nl(h,d),[g,v]=x.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=rl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ks(f.current).body;o.add(S(),e),h.current&&w()})),E=x.useCallback((()=>o.isTopModal(S())),[o]),R=rl((e=>{f.current=e,e&&(c&&E()?w():h.current&&hp(h.current,y))})),A=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{A()}),[A]),x.useEffect((()=>{c?C():b&&i||A()}),[c,A,b,i,C]);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")))},M=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=xl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=$r({},r,t);return $r({role:"presentation"},n,{onKeyDown:P(n),ref:m})},getBackdropProps:(e={})=>$r({"aria-hidden":!0},e,{onClick:M(e),open:c}),getTransitionProps:()=>({onEnter:Gs((()=>{v(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Gs((()=>{v(!0),s&&s(),i&&A()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:b}}function Rp(e){return gs("MuiModal",e)}vs("MuiModal",["root","hidden","backdrop"]);const Ap=["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"],Pp=fc("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"}))),Mp=fc(ep,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ip=x.forwardRef((function(e,t){var r,n,o,i,a,s;const l=vc({name:"MuiModal",props:e}),{BackdropComponent:u=Mp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:M,slotProps:I,slots:k}=l,D=Hr(l,Ap),T=$r({},l,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:L,getTransitionProps:q,portalRef:N,isTopModal:_,exited:j,hasTransition:z}=Ep($r({},T,{rootRef:t})),F=$r({},T,{exited:j}),$=(e=>{const{open:t,exited:r,classes:n}=e;return bl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Rp,n)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:Pp,W=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==I?void 0:I.root)?a:v.root,U=null!=(s=null==I?void 0:I.backdrop)?s:v.backdrop,G=Cl({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:fs(d,null==V?void 0:V.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),Y=Cl({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L($r({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:fs(null==U?void 0:U.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:F});return A||M||z&&!j?nr.jsx(xd,{ref:N,container:h,disablePortal:w,children:nr.jsxs(B,$r({},G,{children:[!R&&u?nr.jsx(W,$r({},Y)):null,nr.jsx(wp,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:_,open:M,children:x.cloneElement(f,H)})]}))}):null}));function kp(e){return gs("MuiDivider",e)}const Dp=vs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Tp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Op=fc("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)`:Yl(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%"}}))),Lp=fc("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)`}))),qp=x.forwardRef((function(e,t){const r=vc({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=Hr(r,Tp),h=$r({},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 bl({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"]},kp,n)})(h);return nr.jsx(Op,$r({as:a,className:fs(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?nr.jsx(Lp,{className:m.wrapper,ownerState:h,children:o}):null}))}));qp.muiSkipListHighlight=!0;const Np=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],_p=fc(_d,{shouldForwardProp:e=>pc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...qd(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}},[`&.${Ud.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ud.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"},[`&.${Ud.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ud.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(.${Ud.disabled}, .${Ud.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ud.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}))})),jp=fc(jd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Nd})((({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}))),zp=x.forwardRef((function(e,t){var r,n,o,i;const a=vc({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=Hr(a,Np),g=$r({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,bl({root:["root",!r&&"underline"],input:["input"]},Vd,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Yi(b,null!=p?p:l):b,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:_p,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:jp;return nr.jsx(Fd,$r({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))}));zp.muiName="Input";const Fp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function $p(e){return`scale(${e}, ${e**2})`}const Hp={entering:{opacity:1,transform:$p(1)},entered:{opacity:1,transform:"none"}},Bp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wp=x.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=Dc}=e,g=Hr(e,Fp),v=sl(),b=x.useRef(),y=Tu(),S=x.useRef(null),w=nl(S,El(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)=>{zc(e);const{duration:r,delay:n,easing:o}=Fc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Bp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),A=C(l),P=C(p),M=C((e=>{const{duration:t,delay:r,easing:n}=Fc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Bp?o:.666*o,delay:Bp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=$p(.75),c&&c(e)})),I=C(d);return nr.jsx(m,$r({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:E,onExit:M,onExited:I,onExiting:P,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,$r({style:$r({opacity:0,transform:$p(.75),visibility:"exited"!==e||a?void 0:"hidden"},Hp[e],f,o.props.style),ref:w},t))}))}));Wp.muiSupportAuto=!0;const Vp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Up=fc(_d,{shouldForwardProp:e=>pc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...qd(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"},[`&.${Hd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hd.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(.${Hd.disabled}, .${Hd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Hd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Gp=fc(jd,{name:"MuiInput",slot:"Input",overridesResolver:Nd})({}),Yp=x.forwardRef((function(e,t){var r,n,o,i;const a=vc({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=Hr(a,Vp),v=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,bl({root:["root",!r&&"underline"],input:["input"]},$d,t))})(a),b={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Yi(null!=f?f:u,b):b,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Up,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Gp;return nr.jsx(Fd,$r({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));function Kp(e){return gs("MuiLink",e)}Yp.muiName="Input";const Xp=vs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Jp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Zp=({theme:e,ownerState:t})=>{const r=(e=>Jp[e]||e)(t.color),n=aa(e,`palette.${r}`,!1)||t.color,o=aa(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Yl(n,.4)},Qp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ef=fc(yd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${oa(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:Zp({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"},[`&.${Xp.focusVisible}`]:{outline:"auto"}}))),tf=x.forwardRef((function(e,t){const r=vc({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=Hr(r,Qp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=gl(),[v,b]=x.useState(!1),y=nl(t,g),S=$r({},r,{color:o,component:i,focusVisible:v,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return bl({root:["root",`underline${oa(o)}`,"button"===r&&"button",n&&"focusVisible"]},Kp,t)})(S);return nr.jsx(ef,$r({color:o,className:fs(w.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&b(!0),s&&s(e)},ref:y,ownerState:S,variant:c,sx:[...Object.keys(Jp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),rf=x.createContext({});function nf(e){return gs("MuiList",e)}vs("MuiList",["root","padding","dense","subheader"]);const of=["children","className","component","dense","disablePadding","subheader"],af=fc("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}))),sf=x.forwardRef((function(e,t){const r=vc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Hr(r,of),c=x.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 bl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},nf,t)})(d);return nr.jsx(rf.Provider,{value:c,children:nr.jsxs(af,$r({as:i,className:fs(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function lf(e){return gs("MuiListItemIcon",e)}const uf=vs("MuiListItemIcon",["root","alignItemsFlexStart"]),cf=["className"],df=fc("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}))),pf=x.forwardRef((function(e,t){const r=vc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Hr(r,cf),i=$r({},r,{alignItems:x.useContext(rf).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return bl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},lf,r)})(i);return nr.jsx(df,$r({className:fs(a.root,n),ownerState:i,ref:t},o))})),ff=vs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),hf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function mf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function gf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function vf(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 bf(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")&&vf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const yf=x.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=Hr(e,hf),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Hs((()=>{n&&p.current.focus()}),[n]),x.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${vl(Ks(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=nl(p,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.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=x.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),x.cloneElement(e,t)}return e}));return nr.jsx(sf,$r({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Ks(t).activeElement;if("ArrowDown"===r)e.preventDefault(),bf(t,n,l,s,mf);else if("ArrowUp"===r)e.preventDefault(),bf(t,n,l,s,gf);else if("Home"===r)e.preventDefault(),bf(t,null,l,s,mf);else if("End"===r)e.preventDefault(),bf(t,null,l,s,gf);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&&vf(n,o);o.previousKeyMatched&&(l||bf(t,n,!1,s,mf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function xf(e){return gs("MuiPopover",e)}vs("MuiPopover",["root","paper"]);const Sf=["onEntering"],wf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Cf=["slotProps"];function Ef(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Rf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Af(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Pf(e){return"function"==typeof e?e():e}const Mf=fc(Ip,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),If=fc(Wc,{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}),kf=x.forwardRef((function(e,t){var r,n,o;const i=vc({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:v={},slots:b,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Wp,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,A=Hr(i.TransitionProps,Sf),P=Hr(i,wf),M=null!=(r=null==y?void 0:y.paper)?r:v,I=x.useRef(),k=nl(I,M.ref),D=$r({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:A}),T=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"]},xf,t)})(D),O=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=Pf(s),t=(e&&1===e.nodeType?e:Ks(I.current).body).getBoundingClientRect();return{top:t.top+Ef(t,l.vertical),left:t.left+Rf(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),L=x.useCallback((e=>({vertical:Ef(e,S.vertical),horizontal:Rf(e,S.horizontal)})),[S.horizontal,S.vertical]),q=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:Af(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Xs(Pf(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:Af(r)}}),[s,c,O,L,m]),[N,_]=x.useState(g),j=x.useCallback((()=>{const e=I.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,_(!0)}),[q]);x.useEffect((()=>(R&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[s,R,j]);x.useEffect((()=>{g&&j()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),x.useEffect((()=>{if(!g)return;const e=Ys((()=>{j()})),t=Xs(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?Ks(Pf(s)).body:void 0),$=null!=(n=null==b?void 0:b.root)?n:Mf,H=null!=(o=null==b?void 0:b.paper)?o:If,B=Cl({elementType:H,externalSlotProps:$r({},M,{style:N?M.style:$r({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:D,className:fs(T.paper,null==M?void 0:M.className)}),W=Cl({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:fs(T.root,p)}),{slotProps:V}=W,U=Hr(W,Cf);return nr.jsx($,$r({},U,!yl($)&&{slotProps:V,disableScrollLock:R},{children:nr.jsx(w,$r({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),j()},onExited:()=>{_(!1)},timeout:z},A,{children:nr.jsx(H,$r({},B,{children:d}))}))}))}));function Df(e){return gs("MuiMenu",e)}vs("MuiMenu",["root","paper","list"]);const Tf=["onEntering"],Of=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Lf={vertical:"top",horizontal:"right"},qf={vertical:"top",horizontal:"left"},Nf=fc(kf,{shouldForwardProp:e=>pc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_f=fc(If,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),jf=fc(yf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),zf=x.forwardRef((function(e,t){var r,n;const o=vc({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:v={},slotProps:b={}}=o,y=Hr(o.TransitionProps,Tf),S=Hr(o,Of),w=(()=>{const e=x.useContext(kl);return null!=e&&e})(),C=$r({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),E=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"],list:["list"]},Df,t)})(C),R=i&&!l&&d,A=x.useRef(null);let P=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const M=null!=(r=v.paper)?r:_f,I=null!=(n=b.paper)?n:p,k=Cl({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[E.root,s]}),D=Cl({elementType:M,externalSlotProps:I,ownerState:C,className:E.paper});return nr.jsx(Nf,$r({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Lf:qf,slots:{paper:M,root:v.root},slotProps:{root:k,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:$r({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:nr.jsx(jf,$r({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===P||l),autoFocusItem:R,variant:g},u,{className:fs(E.list,u.className),children:a}))}))}));function Ff(e){return gs("MuiMenuItem",e)}const $f=vs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Hf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Bf=fc(ld,{shouldForwardProp:e=>pc(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"}},[`&.${$f.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$f.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$f.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yl(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})`:Yl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$f.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$f.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Dp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Dp.inset}`]:{marginLeft:52},[`& .${ff.root}`]:{marginTop:0,marginBottom:0},[`& .${ff.inset}`]:{paddingLeft:36},[`& .${uf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$r({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${uf.root} svg`]:{fontSize:"1.25rem"}})))),Wf=x.forwardRef((function(e,t){const r=vc({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=Hr(r,Hf),f=x.useContext(rf),h=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=x.useRef(null);Hs((()=>{n&&m.current&&m.current.focus()}),[n]);const g=$r({},r,{dense:h.dense,divider:a,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return $r({},a,bl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Ff,a))})(r),b=nl(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),nr.jsx(rf.Provider,{value:h,children:nr.jsx(Bf,$r({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:fs(v.focusVisible,l),className:fs(v.root,d)},p,{ownerState:g,classes:v}))})}));function Vf(e){return gs("MuiNativeSelect",e)}const Uf=vs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Gf=["className","disabled","error","IconComponent","inputRef","variant"],Yf=({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"},[`&.${Uf.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}}),Kf=fc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Uf.multiple}`]:t.multiple}]}})(Yf),Xf=({ownerState:e,theme:t})=>$r({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Uf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Jf=fc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${oa(r.variant)}`],r.open&&t.iconOpen]}})(Xf),Zf=x.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Hr(e,Gf),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 bl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${oa(r)}`,i&&"iconOpen",n&&"disabled"]},Vf,t)})(u);return nr.jsxs(x.Fragment,{children:[nr.jsx(Kf,$r({ownerState:u,className:fs(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:nr.jsx(Jf,{as:i,ownerState:u,className:c.icon})]})}));var Qf;const eh=["children","classes","className","label","notched"],th=fc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pc})({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%"}),rh=fc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pc})((({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 nh=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],oh=fc(_d,{shouldForwardProp:e=>pc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:qd})((({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 .${Wd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Wd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Wd.focused} .${Wd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Wd.error} .${Wd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Wd.disabled} .${Wd.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"}))})),ih=fc((function(e){const{className:t,label:r,notched:n}=e,o=Hr(e,eh),i=null!=r&&""!==r,a=$r({},e,{notched:n,withLabel:i});return nr.jsx(th,$r({"aria-hidden":!0,className:t,ownerState:a},o,{children:nr.jsx(rh,{ownerState:a,children:i?nr.jsx("span",{children:r}):Qf||(Qf=nr.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}})),ah=fc(jd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Nd})((({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}))),sh=x.forwardRef((function(e,t){var r,n,o,i,a;const s=vc({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=Hr(s,nh),v=(e=>{const{classes:t}=e;return $r({},t,bl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bd,t))})(s),b=Md(),y=Ad({props:s,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=$r({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:oh,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:ah;return nr.jsx(Fd,$r({slots:{root:w,input:C},renderSuffix:e=>nr.jsx(ih,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=nr.jsxs(x.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:$r({},v,{notchedOutline:null})}))}));function lh(e){return gs("MuiSelect",e)}sh.muiName="Input";const uh=vs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ch;const dh=["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"],ph=fc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${uh.select}`]:t.select},{[`&.${uh.select}`]:t[r.variant]},{[`&.${uh.error}`]:t.error},{[`&.${uh.multiple}`]:t.multiple}]}})(Yf,{[`&.${uh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),fh=fc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${oa(r.variant)}`],r.open&&t.iconOpen]}})(Xf),hh=fc("input",{shouldForwardProp:e=>dc(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 mh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function gh(e){return null==e||"string"==typeof e&&!e.trim()}const vh=x.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:v={},multiple:b,name:y,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:A,readOnly:P,renderValue:M,SelectDisplayProps:I={},tabIndex:k,value:D,variant:T="standard"}=e,O=Hr(e,dh),[L,q]=tl({controlled:D,default:c,name:"Select"}),[N,_]=tl({controlled:A,default:u,name:"Select"}),j=x.useRef(null),z=x.useRef(null),[F,$]=x.useState(null),{current:H}=x.useRef(null!=A),[B,W]=x.useState(),V=nl(t,m),U=x.useCallback((e=>{z.current=e,e&&$(e)}),[]),G=null==F?void 0:F.parentNode;x.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:j.current,value:L})),[L]),x.useEffect((()=>{u&&N&&F&&!H&&(W(a?null:G.clientWidth),z.current.focus())}),[F,a]),x.useEffect((()=>{i&&z.current.focus()}),[i]),x.useEffect((()=>{if(!g)return;const e=Ks(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),H||(W(a?null:G.clientWidth),_(e))},K=x.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){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&&(q(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),w(o,e)}b||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Dd({value:L})||p)&&(M?Z=M(L):te=!0);const re=K.map((e=>{if(!x.isValidElement(e))return null;let t;if(b){if(!Array.isArray(L))throw new Error(jr(2));t=L.some((t=>mh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=mh(L,e.props.value),t&&te&&(Q=e.props.children);return x.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=b?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&&H&&F&&(oe=G.clientWidth),ne=void 0!==k?k:d?null:0;const ie=I.id||(y?`mui-component-select-${y}`: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 bl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${oa(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},lh,t)})(ae),le=$r({},v.PaperProps,null==(r=v.slotProps)?void 0:r.paper),ue=el();return nr.jsxs(x.Fragment,{children:[nr.jsx(ph,$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(!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:L,name:y}}),S(e))},onFocus:E},I,{ownerState:ae,className:fs(I.className,se.select,l),id:ie,children:gh(Z)?ch||(ch=nr.jsx("span",{className:"notranslate",children:""})):Z})),nr.jsx(hh,$r({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:y,ref:j,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(q(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),nr.jsx(fh,{as:h,className:se.icon,ownerState:ae}),nr.jsx(zf,$r({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:$r({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:$r({},v.slotProps,{paper:$r({},le,{style:$r({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),bh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],yh=["root"],xh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>pc(e)&&"variant"!==e,slot:"Root"},Sh=fc(Yp,xh)(""),wh=fc(sh,xh)(""),Ch=fc(zp,xh)(""),Eh=x.forwardRef((function(e,t){const r=vc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=Gd,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Hr(r,bh),A=v?Zf:vh,P=Ad({props:r,muiFormControl:Md(),states:["variant","error"]}),M=P.variant||E,I=$r({},r,{variant:M,classes:i}),k=(e=>{const{classes:t}=e;return t})(I),D=Hr(k,yh),T=d||{standard:nr.jsx(Sh,{ownerState:I}),outlined:nr.jsx(wh,{label:f,ownerState:I}),filled:nr.jsx(Ch,{ownerState:I})}[M],O=nl(t,El(T));return nr.jsx(x.Fragment,{children:x.cloneElement(T,$r({inputComponent:A,inputProps:$r({children:o,error:P.error,IconComponent:u,variant:M,type:void 0,multiple:g},v?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:b,onOpen:y,open:S,renderValue:w,SelectDisplayProps:$r({id:c},C)},p,{classes:p?Yi(D,p.classes):D},d?d.props.inputProps:{})},(g&&v||l)&&"outlined"===M?{notched:!0}:{},{ref:O,className:fs(T.props.className,a,k.root)},!d&&{variant:M},R))})}));Eh.muiName="Select";const Rh=x.createContext();function Ah(e){return gs("MuiTable",e)}vs("MuiTable",["root","stickyHeader"]);const Ph=["className","component","padding","size","stickyHeader"],Mh=fc("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"}))),Ih="table",kh=x.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTable"}),{className:n,component:o=Ih,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Hr(r,Ph),u=$r({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return bl({root:["root",r&&"stickyHeader"]},Ah,t)})(u),d=x.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return nr.jsx(Rh.Provider,{value:d,children:nr.jsx(Mh,$r({as:o,role:o===Ih?null:"table",ref:t,className:fs(c.root,n),ownerState:u},l))})})),Dh=x.createContext();function Th(e){return gs("MuiTableBody",e)}vs("MuiTableBody",["root"]);const Oh=["className","component"],Lh=fc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),qh={variant:"body"},Nh="tbody",_h=x.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTableBody"}),{className:n,component:o=Nh}=r,i=Hr(r,Oh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return bl({root:["root"]},Th,t)})(a);return nr.jsx(Dh.Provider,{value:qh,children:nr.jsx(Lh,$r({className:fs(s.root,n),as:o,ref:t,role:o===Nh?null:"rowgroup",ownerState:a},i))})}));function jh(e){return gs("MuiTableCell",e)}const zh=vs("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Fh=["align","className","component","padding","scope","size","sortDirection","variant"],$h=fc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${oa(r.size)}`],"normal"!==r.padding&&t[`padding${oa(r.padding)}`],"inherit"!==r.align&&t[`align${oa(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?Jl(Yl(e.palette.divider,1),.88):Kl(Yl(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",[`&.${zh.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}))),Hh=x.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Hr(r,Fh),p=x.useContext(Rh),f=x.useContext(Dh),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 v=c||f&&f.variant,b=$r({},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"===v&&p&&p.stickyHeader,variant:v}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return bl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${oa(n)}`,"normal"!==o&&`padding${oa(o)}`,`size${oa(i)}`]},jh,t)})(b);let S=null;return u&&(S="asc"===u?"ascending":"descending"),nr.jsx($h,$r({as:m,ref:t,className:fs(y.root,o),"aria-sort":S,scope:g,ownerState:b},d))}));function Bh(e){return gs("MuiTableContainer",e)}vs("MuiTableContainer",["root"]);const Wh=["className","component"],Vh=fc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Uh=x.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Hr(r,Wh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return bl({root:["root"]},Bh,t)})(a);return nr.jsx(Vh,$r({ref:t,as:o,className:fs(s.root,n),ownerState:a},i))}));function Gh(e){return gs("MuiTableHead",e)}vs("MuiTableHead",["root"]);const Yh=["className","component"],Kh=fc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Xh={variant:"head"},Jh="thead",Zh=x.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTableHead"}),{className:n,component:o=Jh}=r,i=Hr(r,Yh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return bl({root:["root"]},Gh,t)})(a);return nr.jsx(Dh.Provider,{value:Xh,children:nr.jsx(Kh,$r({as:o,className:fs(s.root,n),ref:t,role:o===Jh?null:"rowgroup",ownerState:a},i))})}));function Qh(e){return gs("MuiTableRow",e)}const em=vs("MuiTableRow",["root","selected","hover","head","footer"]),tm=["className","component","hover","selected"],rm=fc("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,[`&.${em.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${em.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yl(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}))`:Yl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),nm="tr",om=x.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTableRow"}),{className:n,component:o=nm,hover:i=!1,selected:a=!1}=r,s=Hr(r,tm),l=x.useContext(Dh),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 bl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Qh,t)})(u);return nr.jsx(rm,$r({as:o,ref:t,className:fs(c.root,n),role:o===nm?null:"row",ownerState:u},s))}));function im(e){return nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:nr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function am({fontSize:e="medium",children:t=null,className:r=""}={}){return nr.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 sm(e={}){return nr.jsx(am,{...e,children:nr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[nr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),nr.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 lm(e={}){return nr.jsx(am,{fontSize:"medium",...e,children:nr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[nr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),nr.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 um(e){return nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:nr.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 cm(e={}){return nr.jsx(am,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[nr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),nr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function dm(e={}){return nr.jsx(am,{fontSize:"medium",...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:nr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function pm({className:e}){return nr.jsx(am,{fontSize:"small",className:e,children:nr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:nr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[nr.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"}),nr.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 fm(e={}){return nr.jsx(am,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("rect",{stroke:qt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const hm={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:Ft,"& > 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 mm=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:qt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:nr.jsx(im,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${qt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,borderRadius:Ft,backgroundColor:qt.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${qt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:qt.WHITE,color:qt.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Ft},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:qt.GREYSCALE_0_15,backgroundColor:qt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Us(qt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Us(qt.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ft,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:qt.GREYSCALE_0_42,backgroundColor:qt.GREYSCALE_100_60,"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:qt.PURPLE,"&.Mui-focusVisible":{borderColor:qt.PURPLE,boxShadow:`0 0 0 3px ${Us(qt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:qt.GREEN,"&.Mui-focusVisible":{borderColor:qt.GREEN,boxShadow:`0 0 0 3px ${Us(qt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:qt.BLUE,"&.Mui-focusVisible":{borderColor:qt.BLUE,boxShadow:`0 0 0 3px ${Us(qt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:qt.ORANGE,"&.Mui-focusVisible":{borderColor:qt.ORANGE,boxShadow:`0 0 0 3px ${Us(qt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:qt.RED,"&.Mui-focusVisible":{borderColor:qt.RED,boxShadow:`0 0 0 3px ${Us(qt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:qt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:qt.PURPLE_PALE},"&:active":{backgroundColor:qt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:qt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Us(qt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Us(qt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Us(qt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:qt.ORANGE_PALE},"&:active":{backgroundColor:qt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:qt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Us(qt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:qt.RED_PALE},"&:active":{backgroundColor:qt.RED_DARK},"&.Mui-focusVisible":{borderColor:qt.RED_PALE,boxShadow:`0 0 0 3px ${Us(qt.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:qt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:qt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ft,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:nr.jsx(um,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Nt,borderRadius:Ft,color:qt.TEXT_PRIMARY,backgroundColor:qt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:qt.GREYSCALE_0_05,color:qt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:qt.GREEN,borderColor:qt.GREEN},"&.MuiChip-outlinedInfo":{color:qt.BLUE,borderColor:qt.BLUE},"&.MuiChip-outlinedWarning":{color:qt.ORANGE,borderColor:qt.ORANGE},"&.MuiChip-outlinedError":{color:qt.RED,borderColor:qt.RED}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ft,boxShadow:"none",backgroundColor:qt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:qt.GREEN,borderColor:qt.GREEN},outlinedSecondary:{color:qt.BLUE,borderColor:qt.BLUE},label:{fontFamily:Vt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:nr.jsx(um,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:nr.jsx(im,{"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:Ft},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ft,fontSize:_t,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:qt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${qt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:qt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:qt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ft,border:`solid 1px ${qt.GREYSCALE_0_15}`,color:qt.GREYSCALE_0_60,marginRight:0,width:zt,height:zt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${qt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ft,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:qt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:_t}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Nt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:qt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:qt.GREYSCALE_25,fontSize:Nt,fontFamily:Vt.FONT_FAMILY,fontWeight:Bt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:qt.TEXT_PRIMARY},"&.Mui-error":{color:qt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:qt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ht,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:qt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ht,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:_t,lineHeight:"16px",backgroundColor:qt.WHITE,borderRadius:Ft,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_05}`,borderColor:qt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.RED}`,boxShadow:`0px 0px 0px 1px ${qt.RED}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_10}`,borderColor:qt.GREYSCALE_0_10,backgroundColor:qt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:qt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:qt.GREYSCALE_0_15,borderRadius:Ft,boxShadow:`inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>nr.jsx(im,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:qt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:qt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&:focus":{backgroundColor:qt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:qt.GREYSCALE_0_30,"&:hover":{backgroundColor:qt.GREYSCALE_0_0,borderColor:qt.GREYSCALE_0_15},"& ~svg":{color:qt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ft}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:qt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:_t,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Nt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Nt,fontWeight:Bt,color:qt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Bt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:nr.jsx(dm,{}),checkedIcon:nr.jsx(lm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:qt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Us(qt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Us(qt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:qt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:qt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:nr.jsx(fm,{}),checkedIcon:nr.jsx(sm,{}),indeterminateIcon:nr.jsx(cm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ft,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:qt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:qt.GREYSCALE_0_55,color:qt.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:qt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:qt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:qt.GREYSCALE_0_55,"&:hover":{color:qt.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:qt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:qt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:_t,color:qt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Bt},secondary:{fontSize:Nt,color:qt.GREYSCALE_45,fontWeight:Ht,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:_t,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:_t,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:qt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Nt,borderBottom:`solid 1px ${qt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:_t,color:qt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:qt.RED}}},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:qt.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:qt.GREEN,height:"24px","&.Mui-disabled":{color:qt.GREYSCALE_0_15}},rail:{backgroundColor:qt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:Ft,boxShadow:`inset 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:Ft},thumb:{height:"16px",width:"16px",borderRadius:Ft,backgroundColor:qt.WHITE,boxShadow:`0px 1px 2px 0px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ft,boxShadow:`0 2px 4px 0 ${qt.GREYSCALE_0_30}, 0 0 0 1px ${qt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:qt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:qt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:qt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:qt.GREYSCALE_0_15},markLabel:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:qt.WHITE,color:qt.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:qt.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${Us(qt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${Us(qt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:qt.GREYSCALE_0_15,borderRadius:Ft},thumb:{height:"16px",width:"16px",borderRadius:Ft,backgroundColor:qt.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:_t,fontWeight:Bt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${qt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,backgroundColor:qt.GREYSCALE_0_03,borderRadius:Ft},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:qt.GREYSCALE_25,"&.Mui-selected":{color:qt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:_t,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ft,"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${qt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${qt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ft,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderRight:`1px solid ${qt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Bt,backgroundColor:qt.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:qt.GREYSCALE_98,borderBottom:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderTop:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05,"&:hover":{backgroundColor:qt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:qt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>nr.jsx(pm,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${qt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:_t,borderRadius:Ft,padding:"7px 16px",border:`1px solid ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_60,color:qt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,border:`1px solid ${qt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:qt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`,border:`1px solid ${qt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:qt.GREYSCALE_25,backgroundColor:qt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Nt,height:24,width:24,padding:7},sizeLarge:{fontSize:jt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:_t,borderRadius:Ft}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:qt.GREYSCALE_20},tooltip:{backgroundColor:qt.GREYSCALE_20,fontSize:Nt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...hm}:{}}))(t);const gm=e=>({mode:"light",primary:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},secondary:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},error:{ultraLight:qt.RED_ULTRA_LIGHT,light:qt.RED_PALE,main:qt.RED,dark:qt.RED_DARK,extraDark:qt.RED_EXTRA_DARK,contrastText:qt.WHITE},warning:{ultraLight:qt.ORANGE_ULTRA_LIGHT,light:qt.ORANGE_PALE,main:qt.ORANGE,dark:qt.ORANGE_DARK,extraDark:qt.ORANGE_EXTRA_DARK,contrastText:qt.WHITE},success:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},info:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},text:{primary:qt.TEXT_PRIMARY,secondary:qt.TEXT_SECONDARY,disabled:qt.GREYSCALE_0_30},action:{hover:qt.GREYSCALE_0_03,hoverOpacity:.03,selected:qt.GREYSCALE_0_05,selectedOpacity:.05,focus:qt.MISC_FOCUS_BORDER},amethyst:{ultraLight:qt.WHITE,main:qt.PURPLE,light:qt.PURPLE_PALE,dark:qt.PURPLE_DARK,extraDark:qt.GREYSCALE_0_0,contrastText:qt.WHITE},background:{paper:qt.WHITE,default:qt.GREYSCALE_95},divider:qt.GREYSCALE_0_15}),vm={...Lt};var bm={},ym={exports:{}},xm={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}(xm);var Sm=xm.exports;!function(e){var t=Sm.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}(ym);var wm=ym.exports,Cm={};function Em(e,t){return function(){return null}}function Rm(e){return e&&"object"===jl(e)&&e.constructor===Object}function Am(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?$r({},e):e;return Rm(e)&&Rm(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Rm(t[o])&&o in e?n[o]=Am(e[o],t[o],r):n[o]=t[o])})),n}var Pm=(zi.element,function(){return null});Pm.isRequired=(zi.element.isRequired,function(){return null});var Mm=function(){return null};var Im={exports:{}},km={},Dm=60103,Tm=60106,Om=60107,Lm=60108,qm=60114,Nm=60109,_m=60110,jm=60112,zm=60113,Fm=60120,$m=60115,Hm=60116,Bm=60121,Wm=60122,Vm=60117,Um=60129,Gm=60131;if("function"==typeof Symbol&&Symbol.for){var Ym=Symbol.for;Dm=Ym("react.element"),Tm=Ym("react.portal"),Om=Ym("react.fragment"),Lm=Ym("react.strict_mode"),qm=Ym("react.profiler"),Nm=Ym("react.provider"),_m=Ym("react.context"),jm=Ym("react.forward_ref"),zm=Ym("react.suspense"),Fm=Ym("react.suspense_list"),$m=Ym("react.memo"),Hm=Ym("react.lazy"),Bm=Ym("react.block"),Wm=Ym("react.server.block"),Vm=Ym("react.fundamental"),Um=Ym("react.debug_trace_mode"),Gm=Ym("react.legacy_hidden")}function Km(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Dm:switch(e=e.type){case Om:case qm:case Lm:case zm:case Fm:return e;default:switch(e=e&&e.$$typeof){case _m:case jm:case Hm:case $m:case Nm:return e;default:return t}}case Tm:return t}}}var Xm=Nm,Jm=Dm,Zm=jm,Qm=Om,eg=Hm,tg=$m,rg=Tm,ng=qm,og=Lm,ig=zm;km.ContextConsumer=_m,km.ContextProvider=Xm,km.Element=Jm,km.ForwardRef=Zm,km.Fragment=Qm,km.Lazy=eg,km.Memo=tg,km.Portal=rg,km.Profiler=ng,km.StrictMode=og,km.Suspense=ig,km.isAsyncMode=function(){return!1},km.isConcurrentMode=function(){return!1},km.isContextConsumer=function(e){return Km(e)===_m},km.isContextProvider=function(e){return Km(e)===Nm},km.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Dm},km.isForwardRef=function(e){return Km(e)===jm},km.isFragment=function(e){return Km(e)===Om},km.isLazy=function(e){return Km(e)===Hm},km.isMemo=function(e){return Km(e)===$m},km.isPortal=function(e){return Km(e)===Tm},km.isProfiler=function(e){return Km(e)===qm},km.isStrictMode=function(e){return Km(e)===Lm},km.isSuspense=function(e){return Km(e)===zm},km.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Om||e===qm||e===Um||e===Lm||e===zm||e===Fm||e===Gm||"object"==typeof e&&null!==e&&(e.$$typeof===Hm||e.$$typeof===$m||e.$$typeof===Nm||e.$$typeof===_m||e.$$typeof===jm||e.$$typeof===Vm||e.$$typeof===Bm||e[0]===Wm)},km.typeOf=Km,Im.exports=km;var ag=Im.exports,sg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function lg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(sg);return t&&t[1]||""}(e)||t}function ug(e,t,r){var n=lg(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var cg="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),dg=zi.oneOfType([zi.func,zi.object]),pg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Em,deepmerge:Am,elementAcceptingRef:Pm,elementTypeAcceptingRef:Mm,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 lg(e,"Component");if("object"===jl(e))switch(e.$$typeof){case ag.ForwardRef:return ug(e,e.render,"ForwardRef");case ag.Memo:return ug(e,e.type,"memo");default:return}}},ponyfillGlobal:cg,refType:dg}),fg=Gt(pg);Object.defineProperty(Cm,"__esModule",{value:!0}),Cm.hexToRgb=gg,Cm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=bg(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(""))},Cm.hslToRgb=vg,Cm.decomposeColor=bg,Cm.recomposeColor=yg,Cm.getContrastRatio=function(e,t){var r=xg(e),n=xg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Cm.getLuminance=xg,Cm.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return xg(e)>.5?wg(e,t):Cg(e,t)},Cm.fade=function(e,t){return Sg(e,t)},Cm.alpha=Sg,Cm.darken=wg,Cm.lighten=Cg;var hg=fg;function mg(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 gg(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 vg(e){var t=(e=bg(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])),yg({type:s,values:l})}function bg(e){if(e.type)return e;if("#"===e.charAt(0))return bg(gg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,hg.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 yg(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 xg(e){var t="hsl"===(e=bg(e)).type?bg(vg(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 Sg(e,t){return e=bg(e),t=mg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,yg(e)}function wg(e,t){if(e=bg(e),t=mg(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 yg(e)}function Cg(e,t){if(e=bg(e),t=mg(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 yg(e)}var Eg,Rg,Ag,Pg={},Mg={exports:{}},Ig={exports:{}},kg={exports:{}};function Dg(){return Eg||(Eg=1,function(e){var t=Sm.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}(kg)),kg.exports}function Tg(){return Rg||(Rg=1,function(e){var t=Sm.default,r=Dg();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Ig)),Ig.exports}function Og(){return Ag||(Ag=1,function(e){var t=Tg();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}(Mg)),Mg.exports}var Lg,qg={exports:{}};function Ng(){return Lg||(Lg=1,function(e){var t=zu();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}(qg)),qg.exports}var _g,jg={};var zg,Fg={};var $g,Hg={},Bg={};var Wg,Vg={};var Ug,Gg={};var Yg,Kg={};var Xg,Jg={};var Zg,Qg={};var ev,tv={};var rv,nv,ov={};function iv(){if(nv)return Hg;nv=1;var e=Wl;Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,b=e.secondary,y=void 0===b?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:b,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,A=e.success,P=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,M=e.type,I=void 0===M?"light":M,k=e.contrastThreshold,D=void 0===k?3:k,T=e.tonalOffset,O=void 0===T?.2:T,L=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.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 m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=q(e.main)),e},_={dark:h,light:f},j=(0,n.deepmerge)((0,t.default)({common:o.default,type:I,primary:N(v),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(P),grey:i.default,contrastThreshold:D,getContrastText:q,augmentColor:N,tonalOffset:O},_[I]),L);return j},Hg.dark=Hg.light=void 0;var t=e(Nu()),r=e(Ng()),n=fg,o=e(function(){if($g)return Bg;$g=1,Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.default=void 0;var e={black:"#000",white:"#fff"};return Bg.default=e,Bg}()),i=e(function(){if(Wg)return Vg;Wg=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.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 Vg.default=e,Vg}()),a=e(function(){if(Ug)return Gg;Ug=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.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 Gg.default=e,Gg}()),s=e(function(){if(Yg)return Kg;Yg=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.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 Kg.default=e,Kg}()),l=e(function(){if(Xg)return Jg;Xg=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.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 Jg.default=e,Jg}()),u=e(function(){if(Zg)return Qg;Zg=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.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 Qg.default=e,Qg}()),c=e(function(){if(ev)return tv;ev=1,Object.defineProperty(tv,"__esModule",{value:!0}),tv.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 tv.default=e,tv}()),d=e(function(){if(rv)return ov;rv=1,Object.defineProperty(ov,"__esModule",{value:!0}),ov.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 ov.default=e,ov}()),p=Cm,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}};Hg.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 Hg.dark=h,Hg}var av,sv={};var lv,uv={};var cv,dv={};var pv={};function fv(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 hv(e,t){if(e){if("string"==typeof e)return fv(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)?fv(e,t):void 0}}function mv(e){return function(e){if(Array.isArray(e))return fv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hv(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 gv(e,t){return t?Am(e,t,{clone:!1}):e}var vv={xs:0,sm:600,md:960,lg:1280,xl:1920},bv={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(vv[e],"px)")}};function yv(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||bv;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===jl(t)){var o=e.theme.breakpoints||bv;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function xv(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Sv(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=xv(e.theme,o)||{};return yv(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=xv(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=zl(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 wv(){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?gv(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function Cv(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Ev=Sv({prop:"border",themeKey:"borders",transform:Cv}),Rv=Sv({prop:"borderTop",themeKey:"borders",transform:Cv}),Av=Sv({prop:"borderRight",themeKey:"borders",transform:Cv}),Pv=Sv({prop:"borderBottom",themeKey:"borders",transform:Cv}),Mv=Sv({prop:"borderLeft",themeKey:"borders",transform:Cv}),Iv=Sv({prop:"borderColor",themeKey:"palette"}),kv=Sv({prop:"borderRadius",themeKey:"shape"}),Dv=wv(Ev,Rv,Av,Pv,Mv,Iv,kv);function Tv(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Ov(e){var t=function(t){var r=e(t);return t.css?$r({},gv(r,e($r({theme:t.theme},t.css))),Tv(t.css,[e.filterProps])):t.sx?$r({},gv(r,e($r({theme:t.theme},t.sx))),Tv(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(mv(e.filterProps)),t}var Lv=wv(Sv({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Sv({prop:"display"}),Sv({prop:"overflow"}),Sv({prop:"textOverflow"}),Sv({prop:"visibility"}),Sv({prop:"whiteSpace"})),qv=Sv({prop:"flexBasis"}),Nv=Sv({prop:"flexDirection"}),_v=Sv({prop:"flexWrap"}),jv=Sv({prop:"justifyContent"}),zv=Sv({prop:"alignItems"}),Fv=Sv({prop:"alignContent"}),$v=Sv({prop:"order"}),Hv=Sv({prop:"flex"}),Bv=Sv({prop:"flexGrow"}),Wv=Sv({prop:"flexShrink"}),Vv=Sv({prop:"alignSelf"}),Uv=Sv({prop:"justifyItems"}),Gv=Sv({prop:"justifySelf"}),Yv=wv(qv,Nv,_v,jv,zv,Fv,$v,Hv,Bv,Wv,Vv,Uv,Gv),Kv=Sv({prop:"gridGap"}),Xv=Sv({prop:"gridColumnGap"}),Jv=Sv({prop:"gridRowGap"}),Zv=Sv({prop:"gridColumn"}),Qv=Sv({prop:"gridRow"}),eb=Sv({prop:"gridAutoFlow"}),tb=Sv({prop:"gridAutoColumns"}),rb=Sv({prop:"gridAutoRows"}),nb=Sv({prop:"gridTemplateColumns"}),ob=Sv({prop:"gridTemplateRows"}),ib=Sv({prop:"gridTemplateAreas"}),ab=Sv({prop:"gridArea"}),sb=wv(Kv,Xv,Jv,Zv,Qv,eb,tb,rb,nb,ob,ib,ab),lb=Sv({prop:"color",themeKey:"palette"}),ub=Sv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),cb=wv(lb,ub),db=Sv({prop:"position"}),pb=Sv({prop:"zIndex",themeKey:"zIndex"}),fb=Sv({prop:"top"}),hb=Sv({prop:"right"}),mb=Sv({prop:"bottom"}),gb=Sv({prop:"left"}),vb=wv(db,pb,fb,hb,mb,gb),bb=Sv({prop:"boxShadow",themeKey:"shadows"});function yb(e){return e<=1?"".concat(100*e,"%"):e}var xb=Sv({prop:"width",transform:yb}),Sb=Sv({prop:"maxWidth",transform:yb}),wb=Sv({prop:"minWidth",transform:yb}),Cb=Sv({prop:"height",transform:yb}),Eb=Sv({prop:"maxHeight",transform:yb}),Rb=Sv({prop:"minHeight",transform:yb}),Ab=Sv({prop:"size",cssProperty:"width",transform:yb}),Pb=Sv({prop:"size",cssProperty:"height",transform:yb}),Mb=Sv({prop:"boxSizing"}),Ib=wv(xb,Sb,wb,Cb,Eb,Rb,Mb);function kb(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)||hv(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 Db={m:"margin",p:"padding"},Tb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ob={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Lb=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(!Ob[e])return[e];e=Ob[e]}var t=kb(e.split(""),2),r=t[0],n=t[1],o=Db[r],i=Tb[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),qb=["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 Nb(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 _b(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 jb(e){var t=Nb(e.theme);return Object.keys(e).map((function(r){if(-1===qb.indexOf(r))return null;var n=_b(Lb(r),t),o=e[r];return yv(e,o,n)})).reduce(gv,{})}jb.propTypes={},jb.filterProps=qb;var zb,Fb=Sv({prop:"fontFamily",themeKey:"typography"}),$b=Sv({prop:"fontSize",themeKey:"typography"}),Hb=Sv({prop:"fontStyle",themeKey:"typography"}),Bb=Sv({prop:"fontWeight",themeKey:"typography"}),Wb=Sv({prop:"letterSpacing"}),Vb=Sv({prop:"lineHeight"}),Ub=Sv({prop:"textAlign"}),Gb=wv(Fb,$b,Hb,Bb,Wb,Vb,Ub),Yb=Object.freeze({__proto__:null,alignContent:Fv,alignItems:zv,alignSelf:Vv,bgcolor:ub,border:Ev,borderBottom:Pv,borderColor:Iv,borderLeft:Mv,borderRadius:kv,borderRight:Av,borderTop:Rv,borders:Dv,bottom:mb,boxSizing:Mb,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||bv,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 gv(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(mv(e.filterProps)),t},color:lb,compose:wv,createUnarySpacing:Nb,css:function(e){return Ov(e)},display:Lv,flex:Hv,flexBasis:qv,flexDirection:Nv,flexGrow:Bv,flexShrink:Wv,flexWrap:_v,flexbox:Yv,fontFamily:Fb,fontSize:$b,fontStyle:Hb,fontWeight:Bb,grid:sb,gridArea:ab,gridAutoColumns:tb,gridAutoFlow:eb,gridAutoRows:rb,gridColumn:Zv,gridColumnGap:Xv,gridGap:Kv,gridRow:Qv,gridRowGap:Jv,gridTemplateAreas:ib,gridTemplateColumns:nb,gridTemplateRows:ob,height:Cb,justifyContent:jv,justifyItems:Uv,justifySelf:Gv,left:gb,letterSpacing:Wb,lineHeight:Vb,maxHeight:Eb,maxWidth:Sb,minHeight:Rb,minWidth:wb,order:$v,palette:cb,position:db,positions:vb,right:hb,shadows:bb,sizeHeight:Pb,sizeWidth:Ab,sizing:Ib,spacing:jb,style:Sv,styleFunctionSx:Ov,textAlign:Ub,top:fb,typography:Gb,width:xb,zIndex:pb}),Kb=Gt(Yb);var Xb,Jb={};function Zb(){if(Xb)return Jb;Xb=1;var e=Wl;Object.defineProperty(Jb,"__esModule",{value:!0}),Jb.default=Jb.duration=Jb.easing=void 0;var t=e(Ng()),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)"};Jb.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")}Jb.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 Jb.default=i,Jb}var Qb,ey,ty={};function ry(){if(ey)return Pg;ey=1;var e=Wl;Object.defineProperty(Pg,"__esModule",{value:!0}),Pg.createMuiTheme=function(){return p.apply(void 0,arguments)},Pg.default=void 0,e(Og());var t=e(Ng()),r=fg,n=e(function(){if(_g)return jg;_g=1;var e=Wl;Object.defineProperty(jg,"__esModule",{value:!0}),jg.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)},jg.keys=void 0;var t=e(Nu()),r=e(Ng()),n=["xs","sm","md","lg","xl"];return jg.keys=n,jg}()),o=e(function(){if(zg)return Fg;zg=1;var e=Wl;Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.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(Og()),r=e(Nu());return Fg}()),i=e(iv()),a=e(function(){if(av)return sv;av=1;var e=Wl;Object.defineProperty(sv,"__esModule",{value:!0}),sv.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,v=void 0===g?400:g,b=u.fontWeightMedium,y=void 0===b?500:b,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=f/14,M=R||function(e){return"".concat(e/C*P,"rem")},I=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},k={h1:I(m,96,1.167,-1.5),h2:I(m,60,1.2,-.5),h3:I(v,48,1.167,0),h4:I(v,34,1.235,.25),h5:I(v,24,1.334,0),h6:I(y,20,1.6,.15),subtitle1:I(v,16,1.75,.15),subtitle2:I(y,14,1.57,.1),body1:I(v,16,1.5,.15),body2:I(v,14,1.43,.15),button:I(y,14,1.75,.4,a),caption:I(v,12,1.66,.4),overline:I(v,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:y,fontWeightBold:S},k),A,{clone:!1})};var t=e(Nu()),r=e(Ng()),n=fg;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 sv}()),s=e(function(){if(lv)return uv;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(",")}lv=1,Object.defineProperty(uv,"__esModule",{value:!0}),uv.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 uv.default=t,uv}()),l=e(function(){if(cv)return dv;cv=1,Object.defineProperty(dv,"__esModule",{value:!0}),dv.default=void 0;var e={borderRadius:4};return dv.default=e,dv}()),u=e(function(){if(zb)return pv;zb=1,Object.defineProperty(pv,"__esModule",{value:!0}),pv.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=Kb;return pv}()),c=e(Zb()),d=e(function(){if(Qb)return ty;Qb=1,Object.defineProperty(ty,"__esModule",{value:!0}),ty.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return ty.default=e,ty}());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,v=void 0===g?{}:g,b=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),C=(0,n.default)(f),E=(0,u.default)(b),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),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),A=arguments.length,P=new Array(A>1?A-1:0),M=1;M<A;M++)P[M-1]=arguments[M];return R=P.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return Pg.default=f,Pg}var ny,oy={};var iy={},ay="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",sy=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ly(){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!==sy.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[ay]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function uy(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 cy="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},dy="object"===("undefined"==typeof window?"undefined":cy(window))&&"object"===("undefined"==typeof document?"undefined":cy(document))&&9===document.nodeType;function py(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,zl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var fy={}.constructor;function hy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(hy);if(e.constructor!==fy)return e;var t={};for(var r in e)t[r]=hy(e[r]);return t}function my(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=hy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var gy=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},vy=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+=gy(e[r]," ");else t=gy(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function by(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function yy(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function xy(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=by(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+=yy(p+":"+u+vy(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=yy(h+":"+u+vy(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(n&&(n+=l),n+=yy(g+":"+u+vy(v)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),yy(""+e+u+"{"+n,--i)+yy("}",i)):n}var Sy=/([[\].#*$><+~=|^:(),"'`\s])/g,wy="undefined"!=typeof CSS&&CSS.escape,Cy=function(e){return wy?wy(e):e.replace(Sy,"\\$1")},Ey=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}(),Ry=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(Oc(Oc(o)),s),o.selectorText="."+Cy(o.id)),o}Cc(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]=vy(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return xy(this.selectorText,this.style,r)},py(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}(Ey),Ay={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Ry(e,t,r)}},Py={indent:1,children:!0},My=/@([\w-]+)/,Iy=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(My);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Qy($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=Py);var t=by(e).linebreak;if(null==e.indent&&(e.indent=Py.indent),null==e.children&&(e.children=Py.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),ky=/@container|@media|@supports\s+/,Dy={onCreateRule:function(e,t,r){return ky.test(e)?new Iy(e,t,r):null}},Ty={indent:1,children:!0},Oy=/@keyframes\s+([\w-]+)/,Ly=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Oy);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:Cy(a(this,i)),this.rules=new Qy($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=Ty);var t=by(e).linebreak;if(null==e.indent&&(e.indent=Ty.indent),null==e.children&&(e.children=Ty.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}(),qy=/@keyframes\s+/,Ny=/\$([\w-]+)/g,_y=function(e,t){return"string"==typeof e?e.replace(Ny,(function(e,r){return r in t?t[r]:e})):e},jy=function(e,t,r){var n=e[t],o=_y(n,r);o!==n&&(e[t]=o)},zy={onCreateRule:function(e,t,r){return"string"==typeof e&&qy.test(e)?new Ly(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&jy(e,"animation-name",r.keyframes),"animation"in e&&jy(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 _y(e,n.keyframes);default:return e}}},Fy=function(e){function t(){return e.apply(this,arguments)||this}return Cc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return xy(this.key,this.style,r)},t}(Ey),$y={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Fy(e,t,r):null}},Hy=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=by(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=xy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return xy(this.at,this.style,e)},e}(),By=/@font-face/,Wy={onCreateRule:function(e,t,r){return By.test(e)?new Hy(e,t,r):null}},Vy=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 xy(this.key,this.style,e)},e}(),Uy={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Vy(e,t,r):null}},Gy=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}(),Yy={"@charset":!0,"@import":!0,"@namespace":!0},Ky={onCreateRule:function(e,t,r){return e in Yy?new Gy(e,t,r):null}},Xy=[Ay,Dy,zy,$y,Wy,Uy,Ky],Jy={process:!0},Zy={force:!0,process:!0},Qy=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="."+Cy(this.classes[d]));var p=my(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 Ry?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ly&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ry?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ly&&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=Jy);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,Zy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Zy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=by(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}(),ex=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 Qy(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}(),tx=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}(),rx=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=Hr(t,["attached"]),o=by(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},py(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),nx=new rx,ox="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ix="2f1acc6c3a606b082e5eef5e54414ffb";null==ox[ix]&&(ox[ix]=0);var ax=ox[ix]++,sx=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")+ax+o+t:i+r.key+"-"+ax+(o?"-"+o:"")+"-"+t}},lx=function(e){var t;return function(){return t||(t=e()),t}},ux=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},cx=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=vy(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},dx=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},px=function(e,t){return e.selectorText=t,e.selectorText===t},fx=lx((function(){return document.querySelector("head")}));function hx(e){var t=nx.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=fx(),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 mx=lx((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),gx=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]},vx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},bx=function(){function e(e){this.getPropertyValue=ux,this.setProperty=cx,this.removeProperty=dx,this.setSelector=px,this.hasInsertedRules=!1,this.cssRules=[],e&&nx.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=mx();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=hx(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 fx().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=vx(r,t);if(!1===(o=gx(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=vx(r,t),l=gx(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 ex&&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}(),yx=0,xx=function(){function e(e){this.id=yx++,this.version="10.10.0",this.plugins=new tx,this.options={id:{minify:!1},createGenerateId:sx,Renderer:dy?bx:null,plugins:[]},this.generateId=sx({minify:!1});for(var t=0;t<Xy.length;t++)this.plugins.use(Xy[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===nx.index?0:nx.index+1);var n=new ex(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(),nx.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=my(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}(),Sx=function(e){return new xx(e)},wx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Cx(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=Cx(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
91
91
|
/**
|
|
92
92
|
* A better abstraction over CSS.
|
|
93
93
|
*
|
|
94
94
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
95
95
|
* @website https://github.com/cssinjs/jss
|
|
96
96
|
* @license MIT
|
|
97
|
-
*/xx();var Cx=Date.now(),Ex="fnValues"+Cx,Rx="fnStyle"+ ++Cx,Ax="@global",Px="@global ",Mx=function(){function e(e,t,r){for(var n in this.type="global",this.at=Ax,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new Zy(Fr({},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}(),Ix=function(){function e(e,t,r){this.type="global",this.at=Ax,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,Fr({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),kx=/\s*,\s*/g;function Dx(e,t){for(var r=e.split(kx),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Tx(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Ax)return new Mx(e,t,r);if("@"===e[0]&&e.substr(0,8)===Px)return new Ix(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[Ax]:null;if(o){for(var i in o)t.addRule(i,o[i],Fr({},r,{selector:Dx(i,e.selector)}));delete n[Ax]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Ax){var i=Dx(o.substr(7),e.selector);t.addRule(i,n[o],Fr({},r,{selector:i})),delete n[o]}}(e,t))}}}var Ox=/\s*,\s*/g,Lx=/&/g,qx=/\$([\w-]+)/g;function Nx(){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(Ox),n=e.split(Ox),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(Lx,a):a+" "+l}return o}function r(e,t,r){if(r)return Fr({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=Fr({},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(qx,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],Fr({},a,{selector:f})):u.addRule(h,n[c],Fr({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var jx=/[A-Z]/g,_x=/^ms-/,zx={};function Fx(e){return"-"+e.toLowerCase()}function Hx(e){if(zx.hasOwnProperty(e))return zx[e];var t=e.replace(jx,Fx);return zx[e]=_x.test(t)?"-"+t:t}function $x(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Hx(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map($x):t.fallbacks=$x(e.fallbacks)),t}var Bx=Sx&&CSS?CSS.px:"px",Wx=Sx&&CSS?CSS.ms:"ms",Vx=Sx&&CSS?CSS.percent:"%";function Ux(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 Gx=Ux({"animation-delay":Wx,"animation-duration":Wx,"background-position":Bx,"background-position-x":Bx,"background-position-y":Bx,"background-size":Bx,border:Bx,"border-bottom":Bx,"border-bottom-left-radius":Bx,"border-bottom-right-radius":Bx,"border-bottom-width":Bx,"border-left":Bx,"border-left-width":Bx,"border-radius":Bx,"border-right":Bx,"border-right-width":Bx,"border-top":Bx,"border-top-left-radius":Bx,"border-top-right-radius":Bx,"border-top-width":Bx,"border-width":Bx,"border-block":Bx,"border-block-end":Bx,"border-block-end-width":Bx,"border-block-start":Bx,"border-block-start-width":Bx,"border-block-width":Bx,"border-inline":Bx,"border-inline-end":Bx,"border-inline-end-width":Bx,"border-inline-start":Bx,"border-inline-start-width":Bx,"border-inline-width":Bx,"border-start-start-radius":Bx,"border-start-end-radius":Bx,"border-end-start-radius":Bx,"border-end-end-radius":Bx,margin:Bx,"margin-bottom":Bx,"margin-left":Bx,"margin-right":Bx,"margin-top":Bx,"margin-block":Bx,"margin-block-end":Bx,"margin-block-start":Bx,"margin-inline":Bx,"margin-inline-end":Bx,"margin-inline-start":Bx,padding:Bx,"padding-bottom":Bx,"padding-left":Bx,"padding-right":Bx,"padding-top":Bx,"padding-block":Bx,"padding-block-end":Bx,"padding-block-start":Bx,"padding-inline":Bx,"padding-inline-end":Bx,"padding-inline-start":Bx,"mask-position-x":Bx,"mask-position-y":Bx,"mask-size":Bx,height:Bx,width:Bx,"min-height":Bx,"max-height":Bx,"min-width":Bx,"max-width":Bx,bottom:Bx,left:Bx,top:Bx,right:Bx,inset:Bx,"inset-block":Bx,"inset-block-end":Bx,"inset-block-start":Bx,"inset-inline":Bx,"inset-inline-end":Bx,"inset-inline-start":Bx,"box-shadow":Bx,"text-shadow":Bx,"column-gap":Bx,"column-rule":Bx,"column-rule-width":Bx,"column-width":Bx,"font-size":Bx,"font-size-delta":Bx,"letter-spacing":Bx,"text-decoration-thickness":Bx,"text-indent":Bx,"text-stroke":Bx,"text-stroke-width":Bx,"word-spacing":Bx,motion:Bx,"motion-offset":Bx,outline:Bx,"outline-offset":Bx,"outline-width":Bx,perspective:Bx,"perspective-origin-x":Vx,"perspective-origin-y":Vx,"transform-origin":Vx,"transform-origin-x":Vx,"transform-origin-y":Vx,"transform-origin-z":Vx,"transition-delay":Wx,"transition-duration":Wx,"vertical-align":Bx,"flex-basis":Bx,"shape-margin":Bx,size:Bx,gap:Bx,grid:Bx,"grid-gap":Bx,"row-gap":Bx,"grid-row-gap":Bx,"grid-column-gap":Bx,"grid-template-rows":Bx,"grid-template-columns":Bx,"grid-auto-rows":Bx,"grid-auto-columns":Bx,"box-shadow-x":Bx,"box-shadow-y":Bx,"box-shadow-blur":Bx,"box-shadow-spread":Bx,"font-line-height":Bx,"text-shadow-x":Bx,"text-shadow-y":Bx,"text-shadow-blur":Bx});function Yx(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Yx(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Yx(o,t[o],r);else for(var i in t)t[i]=Yx(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Gx[e];return!a||0===t&&a===Bx?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Kx(e){void 0===e&&(e={});var t=Ux(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Yx(n,e[n],t);return e},onChangeValue:function(e,r){return Yx(r,e,t)}}}var Xx="",Jx="",Zx="",Qx="",eS=cy&&"ontouchstart"in document.documentElement;if(cy){var tS={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},rS=document.createElement("p").style;for(var nS in tS)if(nS+"Transform"in rS){Xx=nS,Jx=tS[nS];break}"Webkit"===Xx&&"msHyphens"in rS&&(Xx="ms",Jx=tS.ms,Qx="edge"),"Webkit"===Xx&&"-apple-trailing-word"in rS&&(Zx="apple")}var oS=Xx,iS=Jx,aS=Zx,sS=Qx,lS=eS;var uS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===oS?"-webkit-"+e:iS+e)}},cS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===oS?iS+"print-"+e:e)}},dS=/[-\s]+(.)?/g;function pS(e,t){return t?t.toUpperCase():""}function fS(e){return e.replace(dS,pS)}function hS(e){return fS("-"+e)}var mS,gS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===oS){var r="mask-image";if(fS(r)in t)return e;if(oS+hS(r)in t)return iS+e}return e}},bS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==aS||lS?e:iS+e)}},vS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:iS+e)}},yS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:iS+e)}},xS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===oS||"ms"===oS&&"edge"!==sS?iS+e:e)}},SS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===oS||"ms"===oS||"apple"===aS?iS+e:e)}},wS={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===oS?"WebkitColumn"+hS(e)in t&&iS+"column-"+e:"Moz"===oS&&("page"+hS(e)in t&&"page-"+e))}},CS={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===oS)return e;var r=e.replace("-inline","");return oS+hS(r)in t&&iS+r}},ES={supportedProperty:function(e,t){return fS(e)in t&&e}},RS={supportedProperty:function(e,t){var r=hS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:oS+r in t?iS+e:"Webkit"!==oS&&"Webkit"+r in t&&"-webkit-"+e}},AS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===oS?""+iS+e:e)}},PS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===oS?iS+"scroll-chaining":e)}},MS={"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"},IS={supportedProperty:function(e,t){var r=MS[e];return!!r&&(oS+hS(r)in t&&iS+r)}},kS={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"},DS=Object.keys(kS),TS=function(e){return iS+e},OS={supportedProperty:function(e,t,r){var n=r.multiple;if(DS.indexOf(e)>-1){var o=kS[e];if(!Array.isArray(o))return oS+hS(o)in t&&iS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(oS+hS(o[0])in t))return!1;return o.map(TS)}return!1}},LS=[uS,cS,gS,bS,vS,yS,xS,SS,wS,CS,ES,RS,AS,PS,IS,OS],qS=LS.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),NS=LS.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,hb(t.noPrefill)),e}),[]),jS={};if(cy){mS=document.createElement("p");var _S=window.getComputedStyle(document.documentElement,"");for(var zS in _S)isNaN(zS)||(jS[_S[zS]]=_S[zS]);NS.forEach((function(e){return delete jS[e]}))}function FS(e,t){if(void 0===t&&(t={}),!mS)return e;if(null!=jS[e])return jS[e];"transition"!==e&&"transform"!==e||(t[e]=e in mS.style);for(var r=0;r<qS.length&&(jS[e]=qS[r](e,mS.style,t),!jS[e]);r++);try{mS.style[e]=""}catch(e){return!1}return jS[e]}var HS,$S={},BS={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},WS=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function VS(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?FS(t):", "+FS(r);return n||(t||r)}function US(e,t){var r=t;if(!HS||"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{HS.style[e]=r}catch(e){return $S[n]=!1,!1}if(BS[e])r=r.replace(WS,VS);else if(""===HS.style[e]&&("-ms-flex"===(r=iS+r)&&(HS.style[e]="-ms-flexbox"),HS.style[e]=r,""===HS.style[e]))return $S[n]=!1,!1;return HS.style[e]="",$S[n]=r,$S[n]}function GS(){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=FS(r);i&&i!==r&&(o=!0);var a=!1,s=US(i,gy(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"===oS?e:"@"+iS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return US(t,gy(e))||e}}}function YS(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{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}}}function KS(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=hy(e,{},r);return n[Rx]=t,n},onProcessStyle:function(e,t){if(Ex in t||Rx 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[Ex]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Rx];i&&(o.style=i(e)||{});var a=o[Ex];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Tx(),Nx(),{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=Hx(t);return t===n?e:(r.prop(n,e),null)}},Kx(),"undefined"==typeof window?null:GS(),YS()]}}function XS(e,t){if(null==e)return{};var r,n,o=Hr(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 JS(){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=Fr({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}cy&&(HS=document.createElement("p"));var ZS=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},QS=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},ew=function(e,t,r){e.get(t).delete(r)},tw=x.createContext(null);function rw(){return x.useContext(tw)}var nw,ow=xx(KS()),iw=sy(),aw=new Map,sw={disableGeneration:!1,generateClassName:iw,jss:ow,sheetsCache:null,sheetsManager:aw,sheetsRegistry:null},lw=x.createContext(sw);function uw(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=XS(e,["children","injectFirst","disableGeneration"]),s=Fr({},x.useContext(lw),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!nw){var l=document.head;nw=document.createComment("mui-inject-first"),l.insertBefore(nw,l.firstChild)}s.jss=xx({plugins:KS().plugins,insertionPoint:nw})}return x.createElement(lw.Provider,{value:s},t)}var cw=-1e9;var dw={};function pw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=QS(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},ZS(o.sheetsManager,i,n,s));var l=Fr({},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=QS(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,Fr({link:!1},l))).attach(),o.sheetsCache&&ZS(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=wx(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Fr({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=JS({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function fw(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?dw:i,s=XS(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=Fr({},o);return Object.keys(i).forEach((function(e){a[e]=Rm(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:cw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=rw()||a,n=Fr({},x.useContext(lw),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 pw(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=QS(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(ew(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=JS({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var hw=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 dy(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new tx;var r=sy();return x.createElement(uw,Fr({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",Fr({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function mw(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=mw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function gw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=mw(e))&&(n&&(n+=" "),n+=t);return n}var bw={exports:{}},vw={},yw="function"==typeof Symbol&&Symbol.for,xw=yw?Symbol.for("react.element"):60103,Sw=yw?Symbol.for("react.portal"):60106,ww=yw?Symbol.for("react.fragment"):60107,Cw=yw?Symbol.for("react.strict_mode"):60108,Ew=yw?Symbol.for("react.profiler"):60114,Rw=yw?Symbol.for("react.provider"):60109,Aw=yw?Symbol.for("react.context"):60110,Pw=yw?Symbol.for("react.async_mode"):60111,Mw=yw?Symbol.for("react.concurrent_mode"):60111,Iw=yw?Symbol.for("react.forward_ref"):60112,kw=yw?Symbol.for("react.suspense"):60113,Dw=yw?Symbol.for("react.suspense_list"):60120,Tw=yw?Symbol.for("react.memo"):60115,Ow=yw?Symbol.for("react.lazy"):60116,Lw=yw?Symbol.for("react.block"):60121,qw=yw?Symbol.for("react.fundamental"):60117,Nw=yw?Symbol.for("react.responder"):60118,jw=yw?Symbol.for("react.scope"):60119;function _w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case xw:switch(e=e.type){case Pw:case Mw:case ww:case Ew:case Cw:case kw:return e;default:switch(e=e&&e.$$typeof){case Aw:case Iw:case Ow:case Tw:case Rw:return e;default:return t}}case Sw:return t}}}function zw(e){return _w(e)===Mw}vw.AsyncMode=Pw,vw.ConcurrentMode=Mw,vw.ContextConsumer=Aw,vw.ContextProvider=Rw,vw.Element=xw,vw.ForwardRef=Iw,vw.Fragment=ww,vw.Lazy=Ow,vw.Memo=Tw,vw.Portal=Sw,vw.Profiler=Ew,vw.StrictMode=Cw,vw.Suspense=kw,vw.isAsyncMode=function(e){return zw(e)||_w(e)===Pw},vw.isConcurrentMode=zw,vw.isContextConsumer=function(e){return _w(e)===Aw},vw.isContextProvider=function(e){return _w(e)===Rw},vw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===xw},vw.isForwardRef=function(e){return _w(e)===Iw},vw.isFragment=function(e){return _w(e)===ww},vw.isLazy=function(e){return _w(e)===Ow},vw.isMemo=function(e){return _w(e)===Tw},vw.isPortal=function(e){return _w(e)===Sw},vw.isProfiler=function(e){return _w(e)===Ew},vw.isStrictMode=function(e){return _w(e)===Cw},vw.isSuspense=function(e){return _w(e)===kw},vw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ww||e===Mw||e===Ew||e===Cw||e===kw||e===Dw||"object"==typeof e&&null!==e&&(e.$$typeof===Ow||e.$$typeof===Tw||e.$$typeof===Rw||e.$$typeof===Aw||e.$$typeof===Iw||e.$$typeof===qw||e.$$typeof===Nw||e.$$typeof===jw||e.$$typeof===Lw)},vw.typeOf=_w,bw.exports=vw;var Fw=bw.exports,Hw={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$w={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Bw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ww={};function Vw(e){return Fw.isMemo(e)?Bw:Ww[e.$$typeof]||Hw}Ww[Fw.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ww[Fw.Memo]=Bw;var Uw=Object.defineProperty,Gw=Object.getOwnPropertyNames,Yw=Object.getOwnPropertySymbols,Kw=Object.getOwnPropertyDescriptor,Xw=Object.getPrototypeOf,Jw=Object.prototype;var Zw=function e(t,r,n){if("string"!=typeof r){if(Jw){var o=Xw(r);o&&o!==Jw&&e(t,o,n)}var i=Gw(r);Yw&&(i=i.concat(Yw(r)));for(var a=Vw(t),s=Vw(r),l=0;l<i.length;++l){var u=i[l];if(!($w[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Kw(r,u);try{Uw(t,u,c)}catch(e){}}}}return t},Qw=Vt(Zw);function eC(){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=XS(r,["innerRef"]),a=rw()||e;return x.createElement(t,Fr({theme:a,ref:o||n},i))}));return Qw(r,t),r}}var tC,rC=eC(),nC=Object.freeze({__proto__:null,ServerStyleSheets:hw,StylesContext:lw,StylesProvider:uw,ThemeProvider:function(e){var t=e.children,r=e.theme,n=rw(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):Fr({},e,t)}(n,r);return null!=e&&(e[iy]=null!==n),e}),[r,n]);return x.createElement(tw.Provider,{value:o},t)},createGenerateClassName:sy,createStyles:function(e){return e},getThemeProps:ly,jssPreset:KS,makeStyles:fw,mergeClasses:JS,sheetsManager:aw,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=XS(n,["name"]),a=o,s=fw("function"==typeof t?function(e){return{root:function(r){return t(Fr({theme:e},r))}}}:{root:t},Fr({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=XS(t,["children","className","clone","component"]),f=gw(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,Fr({className:gw(l.props.className,f)},h));if("function"==typeof l)return l(Fr({className:f},h));var m=d||e;return x.createElement(m,Fr({ref:n,className:f},h),l)}));return Qw(l,e),l}},useTheme:rw,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=XS(t,["defaultTheme","withTheme","name"]),l=a,u=fw(e,Fr({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=XS(e,["classes","innerRef"]),c=u(Fr({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=rw()||n,a&&(d=ly({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,Fr({ref:s||t,classes:c},d))}));return Qw(c,r),c}},withTheme:rC,withThemeCreator:eC}),oC=Ut(nC);
|
|
97
|
+
*/Sx();var Ex=Date.now(),Rx="fnValues"+Ex,Ax="fnStyle"+ ++Ex,Px="@global",Mx="@global ",Ix=function(){function e(e,t,r){for(var n in this.type="global",this.at=Px,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new Qy($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}(),kx=function(){function e(e,t,r){this.type="global",this.at=Px,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}(),Dx=/\s*,\s*/g;function Tx(e,t){for(var r=e.split(Dx),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Ox(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Px)return new Ix(e,t,r);if("@"===e[0]&&e.substr(0,8)===Mx)return new kx(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[Px]:null;if(o){for(var i in o)t.addRule(i,o[i],$r({},r,{selector:Tx(i,e.selector)}));delete n[Px]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Px){var i=Tx(o.substr(7),e.selector);t.addRule(i,n[o],$r({},r,{selector:i})),delete n[o]}}(e,t))}}}var Lx=/\s*,\s*/g,qx=/&/g,Nx=/\$([\w-]+)/g;function _x(){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(Lx),n=e.split(Lx),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(qx,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(Nx,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],$r({},a,{selector:f})):u.addRule(h,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 jx=/[A-Z]/g,zx=/^ms-/,Fx={};function $x(e){return"-"+e.toLowerCase()}function Hx(e){if(Fx.hasOwnProperty(e))return Fx[e];var t=e.replace(jx,$x);return Fx[e]=zx.test(t)?"-"+t:t}function Bx(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Hx(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Bx):t.fallbacks=Bx(e.fallbacks)),t}var Wx=wx&&CSS?CSS.px:"px",Vx=wx&&CSS?CSS.ms:"ms",Ux=wx&&CSS?CSS.percent:"%";function Gx(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 Yx=Gx({"animation-delay":Vx,"animation-duration":Vx,"background-position":Wx,"background-position-x":Wx,"background-position-y":Wx,"background-size":Wx,border:Wx,"border-bottom":Wx,"border-bottom-left-radius":Wx,"border-bottom-right-radius":Wx,"border-bottom-width":Wx,"border-left":Wx,"border-left-width":Wx,"border-radius":Wx,"border-right":Wx,"border-right-width":Wx,"border-top":Wx,"border-top-left-radius":Wx,"border-top-right-radius":Wx,"border-top-width":Wx,"border-width":Wx,"border-block":Wx,"border-block-end":Wx,"border-block-end-width":Wx,"border-block-start":Wx,"border-block-start-width":Wx,"border-block-width":Wx,"border-inline":Wx,"border-inline-end":Wx,"border-inline-end-width":Wx,"border-inline-start":Wx,"border-inline-start-width":Wx,"border-inline-width":Wx,"border-start-start-radius":Wx,"border-start-end-radius":Wx,"border-end-start-radius":Wx,"border-end-end-radius":Wx,margin:Wx,"margin-bottom":Wx,"margin-left":Wx,"margin-right":Wx,"margin-top":Wx,"margin-block":Wx,"margin-block-end":Wx,"margin-block-start":Wx,"margin-inline":Wx,"margin-inline-end":Wx,"margin-inline-start":Wx,padding:Wx,"padding-bottom":Wx,"padding-left":Wx,"padding-right":Wx,"padding-top":Wx,"padding-block":Wx,"padding-block-end":Wx,"padding-block-start":Wx,"padding-inline":Wx,"padding-inline-end":Wx,"padding-inline-start":Wx,"mask-position-x":Wx,"mask-position-y":Wx,"mask-size":Wx,height:Wx,width:Wx,"min-height":Wx,"max-height":Wx,"min-width":Wx,"max-width":Wx,bottom:Wx,left:Wx,top:Wx,right:Wx,inset:Wx,"inset-block":Wx,"inset-block-end":Wx,"inset-block-start":Wx,"inset-inline":Wx,"inset-inline-end":Wx,"inset-inline-start":Wx,"box-shadow":Wx,"text-shadow":Wx,"column-gap":Wx,"column-rule":Wx,"column-rule-width":Wx,"column-width":Wx,"font-size":Wx,"font-size-delta":Wx,"letter-spacing":Wx,"text-decoration-thickness":Wx,"text-indent":Wx,"text-stroke":Wx,"text-stroke-width":Wx,"word-spacing":Wx,motion:Wx,"motion-offset":Wx,outline:Wx,"outline-offset":Wx,"outline-width":Wx,perspective:Wx,"perspective-origin-x":Ux,"perspective-origin-y":Ux,"transform-origin":Ux,"transform-origin-x":Ux,"transform-origin-y":Ux,"transform-origin-z":Ux,"transition-delay":Vx,"transition-duration":Vx,"vertical-align":Wx,"flex-basis":Wx,"shape-margin":Wx,size:Wx,gap:Wx,grid:Wx,"grid-gap":Wx,"row-gap":Wx,"grid-row-gap":Wx,"grid-column-gap":Wx,"grid-template-rows":Wx,"grid-template-columns":Wx,"grid-auto-rows":Wx,"grid-auto-columns":Wx,"box-shadow-x":Wx,"box-shadow-y":Wx,"box-shadow-blur":Wx,"box-shadow-spread":Wx,"font-line-height":Wx,"text-shadow-x":Wx,"text-shadow-y":Wx,"text-shadow-blur":Wx});function Kx(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Kx(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Kx(o,t[o],r);else for(var i in t)t[i]=Kx(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Yx[e];return!a||0===t&&a===Wx?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Xx(e){void 0===e&&(e={});var t=Gx(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Kx(n,e[n],t);return e},onChangeValue:function(e,r){return Kx(r,e,t)}}}var Jx="",Zx="",Qx="",eS="",tS=dy&&"ontouchstart"in document.documentElement;if(dy){var rS={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},nS=document.createElement("p").style;for(var oS in rS)if(oS+"Transform"in nS){Jx=oS,Zx=rS[oS];break}"Webkit"===Jx&&"msHyphens"in nS&&(Jx="ms",Zx=rS.ms,eS="edge"),"Webkit"===Jx&&"-apple-trailing-word"in nS&&(Qx="apple")}var iS=Jx,aS=Zx,sS=Qx,lS=eS,uS=tS;var cS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===iS?"-webkit-"+e:aS+e)}},dS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===iS?aS+"print-"+e:e)}},pS=/[-\s]+(.)?/g;function fS(e,t){return t?t.toUpperCase():""}function hS(e){return e.replace(pS,fS)}function mS(e){return hS("-"+e)}var gS,vS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===iS){var r="mask-image";if(hS(r)in t)return e;if(iS+mS(r)in t)return aS+e}return e}},bS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==sS||uS?e:aS+e)}},yS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:aS+e)}},xS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:aS+e)}},SS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===iS||"ms"===iS&&"edge"!==lS?aS+e:e)}},wS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===iS||"ms"===iS||"apple"===sS?aS+e:e)}},CS={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===iS?"WebkitColumn"+mS(e)in t&&aS+"column-"+e:"Moz"===iS&&("page"+mS(e)in t&&"page-"+e))}},ES={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===iS)return e;var r=e.replace("-inline","");return iS+mS(r)in t&&aS+r}},RS={supportedProperty:function(e,t){return hS(e)in t&&e}},AS={supportedProperty:function(e,t){var r=mS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:iS+r in t?aS+e:"Webkit"!==iS&&"Webkit"+r in t&&"-webkit-"+e}},PS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===iS?""+aS+e:e)}},MS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===iS?aS+"scroll-chaining":e)}},IS={"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"},kS={supportedProperty:function(e,t){var r=IS[e];return!!r&&(iS+mS(r)in t&&aS+r)}},DS={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"},TS=Object.keys(DS),OS=function(e){return aS+e},LS={supportedProperty:function(e,t,r){var n=r.multiple;if(TS.indexOf(e)>-1){var o=DS[e];if(!Array.isArray(o))return iS+mS(o)in t&&aS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(iS+mS(o[0])in t))return!1;return o.map(OS)}return!1}},qS=[cS,dS,vS,bS,yS,xS,SS,wS,CS,ES,RS,AS,PS,MS,kS,LS],NS=qS.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),_S=qS.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,mv(t.noPrefill)),e}),[]),jS={};if(dy){gS=document.createElement("p");var zS=window.getComputedStyle(document.documentElement,"");for(var FS in zS)isNaN(FS)||(jS[zS[FS]]=zS[FS]);_S.forEach((function(e){return delete jS[e]}))}function $S(e,t){if(void 0===t&&(t={}),!gS)return e;if(null!=jS[e])return jS[e];"transition"!==e&&"transform"!==e||(t[e]=e in gS.style);for(var r=0;r<NS.length&&(jS[e]=NS[r](e,gS.style,t),!jS[e]);r++);try{gS.style[e]=""}catch(e){return!1}return jS[e]}var HS,BS={},WS={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},VS=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function US(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?$S(t):", "+$S(r);return n||(t||r)}function GS(e,t){var r=t;if(!HS||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=BS[n])return BS[n];try{HS.style[e]=r}catch(e){return BS[n]=!1,!1}if(WS[e])r=r.replace(VS,US);else if(""===HS.style[e]&&("-ms-flex"===(r=aS+r)&&(HS.style[e]="-ms-flexbox"),HS.style[e]=r,""===HS.style[e]))return BS[n]=!1,!1;return HS.style[e]="",BS[n]=r,BS[n]}function YS(){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=$S(r);i&&i!==r&&(o=!0);var a=!1,s=GS(i,vy(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"===iS?e:"@"+aS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return GS(t,vy(e))||e}}}function KS(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{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}}}function XS(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=my(e,{},r);return n[Ax]=t,n},onProcessStyle:function(e,t){if(Rx in t||Ax 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[Rx]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Ax];i&&(o.style=i(e)||{});var a=o[Rx];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Ox(),_x(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Bx(e[t]);return e}return Bx(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Hx(t);return t===n?e:(r.prop(n,e),null)}},Xx(),"undefined"==typeof window?null:YS(),KS()]}}function JS(e,t){if(null==e)return{};var r,n,o=Hr(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 ZS(){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}dy&&(HS=document.createElement("p"));var QS=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},ew=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},tw=function(e,t,r){e.get(t).delete(r)},rw=S.createContext(null);function nw(){return S.useContext(rw)}var ow,iw=Sx(XS()),aw=ly(),sw=new Map,lw={disableGeneration:!1,generateClassName:aw,jss:iw,sheetsCache:null,sheetsManager:sw,sheetsRegistry:null},uw=S.createContext(lw);function cw(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=JS(e,["children","injectFirst","disableGeneration"]),s=$r({},S.useContext(uw),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!ow){var l=document.head;ow=document.createComment("mui-inject-first"),l.insertBefore(ow,l.firstChild)}s.jss=Sx({plugins:XS().plugins,insertionPoint:ow})}return S.createElement(uw.Provider,{value:s},t)}var dw=-1e9;var pw={};function fw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=ew(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},QS(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=ew(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,$r({link:!1},l))).attach(),o.sheetsCache&&QS(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Cx(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=ZS({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function hw(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?pw:i,s=JS(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]=Am(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:dw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=nw()||a,n=$r({},S.useContext(uw),s),i=S.useRef(),u=S.useRef();!function(e,t){var r,n=S.useRef([]),o=S.useMemo((function(){return{}}),t);n.current!==o&&(n.current=o,r=e()),S.useEffect((function(){return function(){r&&r()}}),[o])}((function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return fw(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=ew(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(tw(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]),S.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=ZS({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var mw=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 py(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new rx;var r=ly();return S.createElement(cw,$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 S.createElement("style",$r({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function gw(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=gw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function vw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=gw(e))&&(n&&(n+=" "),n+=t);return n}var bw={exports:{}},yw={},xw="function"==typeof Symbol&&Symbol.for,Sw=xw?Symbol.for("react.element"):60103,ww=xw?Symbol.for("react.portal"):60106,Cw=xw?Symbol.for("react.fragment"):60107,Ew=xw?Symbol.for("react.strict_mode"):60108,Rw=xw?Symbol.for("react.profiler"):60114,Aw=xw?Symbol.for("react.provider"):60109,Pw=xw?Symbol.for("react.context"):60110,Mw=xw?Symbol.for("react.async_mode"):60111,Iw=xw?Symbol.for("react.concurrent_mode"):60111,kw=xw?Symbol.for("react.forward_ref"):60112,Dw=xw?Symbol.for("react.suspense"):60113,Tw=xw?Symbol.for("react.suspense_list"):60120,Ow=xw?Symbol.for("react.memo"):60115,Lw=xw?Symbol.for("react.lazy"):60116,qw=xw?Symbol.for("react.block"):60121,Nw=xw?Symbol.for("react.fundamental"):60117,_w=xw?Symbol.for("react.responder"):60118,jw=xw?Symbol.for("react.scope"):60119;function zw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Sw:switch(e=e.type){case Mw:case Iw:case Cw:case Rw:case Ew:case Dw:return e;default:switch(e=e&&e.$$typeof){case Pw:case kw:case Lw:case Ow:case Aw:return e;default:return t}}case ww:return t}}}function Fw(e){return zw(e)===Iw}yw.AsyncMode=Mw,yw.ConcurrentMode=Iw,yw.ContextConsumer=Pw,yw.ContextProvider=Aw,yw.Element=Sw,yw.ForwardRef=kw,yw.Fragment=Cw,yw.Lazy=Lw,yw.Memo=Ow,yw.Portal=ww,yw.Profiler=Rw,yw.StrictMode=Ew,yw.Suspense=Dw,yw.isAsyncMode=function(e){return Fw(e)||zw(e)===Mw},yw.isConcurrentMode=Fw,yw.isContextConsumer=function(e){return zw(e)===Pw},yw.isContextProvider=function(e){return zw(e)===Aw},yw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Sw},yw.isForwardRef=function(e){return zw(e)===kw},yw.isFragment=function(e){return zw(e)===Cw},yw.isLazy=function(e){return zw(e)===Lw},yw.isMemo=function(e){return zw(e)===Ow},yw.isPortal=function(e){return zw(e)===ww},yw.isProfiler=function(e){return zw(e)===Rw},yw.isStrictMode=function(e){return zw(e)===Ew},yw.isSuspense=function(e){return zw(e)===Dw},yw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Cw||e===Iw||e===Rw||e===Ew||e===Dw||e===Tw||"object"==typeof e&&null!==e&&(e.$$typeof===Lw||e.$$typeof===Ow||e.$$typeof===Aw||e.$$typeof===Pw||e.$$typeof===kw||e.$$typeof===Nw||e.$$typeof===_w||e.$$typeof===jw||e.$$typeof===qw)},yw.typeOf=zw,bw.exports=yw;var $w=bw.exports,Hw={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ww={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vw={};function Uw(e){return $w.isMemo(e)?Ww:Vw[e.$$typeof]||Hw}Vw[$w.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vw[$w.Memo]=Ww;var Gw=Object.defineProperty,Yw=Object.getOwnPropertyNames,Kw=Object.getOwnPropertySymbols,Xw=Object.getOwnPropertyDescriptor,Jw=Object.getPrototypeOf,Zw=Object.prototype;var Qw=function e(t,r,n){if("string"!=typeof r){if(Zw){var o=Jw(r);o&&o!==Zw&&e(t,o,n)}var i=Yw(r);Kw&&(i=i.concat(Kw(r)));for(var a=Uw(t),s=Uw(r),l=0;l<i.length;++l){var u=i[l];if(!(Bw[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Xw(r,u);try{Gw(t,u,c)}catch(e){}}}}return t},eC=Ut(Qw);function tC(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=S.forwardRef((function(r,n){var o=r.innerRef,i=JS(r,["innerRef"]),a=nw()||e;return S.createElement(t,$r({theme:a,ref:o||n},i))}));return eC(r,t),r}}var rC,nC=tC(),oC=Object.freeze({__proto__:null,ServerStyleSheets:mw,StylesContext:uw,StylesProvider:cw,ThemeProvider:function(e){var t=e.children,r=e.theme,n=nw(),o=S.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[ay]=null!==n),e}),[r,n]);return S.createElement(rw.Provider,{value:o},t)},createGenerateClassName:ly,createStyles:function(e){return e},getThemeProps:uy,jssPreset:XS,makeStyles:hw,mergeClasses:ZS,sheetsManager:sw,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=JS(n,["name"]),a=o,s=hw("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=S.forwardRef((function(t,n){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,p=JS(t,["children","className","clone","component"]),f=vw(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 S.cloneElement(l,$r({className:vw(l.props.className,f)},h));if("function"==typeof l)return l($r({className:f},h));var m=d||e;return S.createElement(m,$r({ref:n,className:f},h),l)}));return eC(l,e),l}},useTheme:nw,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=JS(t,["defaultTheme","withTheme","name"]),l=a,u=hw(e,$r({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),c=S.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=JS(e,["classes","innerRef"]),c=u($r({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=nw()||n,a&&(d=uy({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),S.createElement(r,$r({ref:s||t,classes:c},d))}));return eC(c,r),c}},withTheme:nC,withThemeCreator:tC}),iC=Gt(oC);
|
|
98
98
|
/** @license Material-UI v4.11.5
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the MIT license found in the
|
|
101
101
|
* LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/var iC,aC,sC={},lC={};function uC(){if(iC)return lC;iC=1;var e=Bl;Object.defineProperty(lC,"__esModule",{value:!0}),lC.default=void 0;var t=(0,e(ty()).default)();return lC.default=t,lC}var cC,dC,pC={},fC={};function hC(){if(dC)return pC;dC=1;var e=Bl;Object.defineProperty(pC,"__esModule",{value:!0}),pC.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(qu()),r=pg,n=function(){if(cC)return fC;cC=1;var e=Bl;Object.defineProperty(fC,"__esModule",{value:!0}),fC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},fC.getUnit=r,fC.toUnitless=n,fC.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}},fC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},fC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},fC.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(Tg());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return fC}();return pC}var mC,gC={};var bC,vC={};var yC,xC={};var SC,wC={};!function(e){var t=Bl,r=Sm;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=wm;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(ty()),a=t(function(){if(ry)return ny;ry=1;var e=Bl;Object.defineProperty(ny,"__esModule",{value:!0}),ny.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=pg,r=e(ty());return ny}()),s=t(function(){if(tC)return oy;tC=1,Object.defineProperty(oy,"__esModule",{value:!0}),oy.default=function(t){return(0,e.createStyles)(t)};var e=oC;return oy}()),l=t(function(){if(aC)return sC;aC=1;var e=Bl;Object.defineProperty(sC,"__esModule",{value:!0}),sC.default=void 0;var t=e(qu()),r=oC,n=e(uC()),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 sC.default=o,sC}()),u=t(hC()),c=t(function(){if(mC)return gC;mC=1;var e=Bl;Object.defineProperty(gC,"__esModule",{value:!0}),gC.default=void 0;var t=e(qu()),r=oC,n=e(uC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return gC.default=o,gC}()),d=Jv();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(bC)return vC;bC=1;var e=Bl;Object.defineProperty(vC,"__esModule",{value:!0}),vC.default=function(){return(0,t.useTheme)()||r.default};var t=oC;e(x);var r=e(uC());return vC}()),f=t(function(){if(yC)return xC;yC=1;var e=Bl;Object.defineProperty(xC,"__esModule",{value:!0}),xC.default=void 0;var t=e(qu()),r=oC,n=e(uC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return xC.default=o,xC}()),h=t(function(){if(SC)return wC;SC=1;var e=Bl;Object.defineProperty(wC,"__esModule",{value:!0}),wC.default=void 0;var t=oC,r=e(uC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return wC.default=n,wC}()),m=oC}(bm),bm.alpha(Lt.GREYSCALE_0,.05),bm.alpha(Lt.GREEN_PALE,.5),bm.alpha(Lt.BLUE_PALE,.5),bm.alpha(Lt.GREEN_PALE,.5),bm.alpha(Lt.BLUE_PALE,.5),bm.alpha(Lt.GREEN_PALE,.5),bm.alpha(Lt.BLUE_PALE,.5),bm.alpha(Lt.GREEN_PALE,.5),bm.alpha(Lt.BLUE_PALE,.5),bm.alpha(Lt.GREEN_PALE,.5),bm.alpha(Lt.BLUE_PALE,.5);const CC=(e="light",t=!1)=>((e,t=!1)=>({components:hm(0,t),palette:mm(),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:Nt,fontWeightLight:Ft,fontWeightRegular:Ht,fontWeightMedium:$t,fontWeightBold:Bt,htmlFontSize:Nt,fontFamily:Wt.FONT_FAMILY,button:{fontWeight:$t,fontSize:Nt,textTransform:"none"},body1:{fontSize:jt,lineHeight:"24px"},body2:{fontSize:Nt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:_t,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:jt,fontWeight:$t,lineHeight:"16px"},h6:{fontSize:Nt,fontWeight:$t,lineHeight:"16px"},caption:{color:Lt.TEXT_SECONDARY},subtitle1:{fontSize:Nt,color:Lt.TEXT_SECONDARY},subtitle2:{fontSize:qt,color:Lt.TEXT_SECONDARY}},shape:{borderRadius:zt}}))(0,t),EC=CC().palette,RC={TEXT:EC.text.primary,DISABLED:EC.text.disabled,HOVER:EC.action.hover,WHITE:gm.GREYSCALE_100,BORDER_LIGHT:gm.GREYSCALE_90,BORDER_MEDIUM:gm.GREYSCALE_85,BORDER_HEAVY:gm.GREYSCALE_50,DARK_MODE_TEXT:gm.GREYSCALE_95,DARK_MODE_BORDER:gm.GREYSCALE_95,DARK_MODE_DISABLED:gm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:gm.GREYSCALE_95,SELECTED:EC.primary.main,LINK:EC.info.main,ERROR:EC.error.main},AC=(e,t=RC.TEXT,r=RC.WHITE)=>{const n=ne(e),o=ne(t),i=ne(r);return n.isInvalid()?t:function(e,t,r){const n=oe(e,t),o=oe(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},PC=e=>{const t=e.getStyle("","","dataColors.selected")||RC.SELECTED,r=function(e,t){const r=ne("#FFFFFF"),n=ne(e),o=ne(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=oe(r,n),a=oe(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,RC.TEXT);return{background:t,color:r}},MC=(e,t)=>{const r=ne(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},IC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},kC=e=>{const t=ne(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},DC=(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)},TC=e=>{e.stopPropagation(),e.preventDefault()},OC=e=>!!e&&0===ne(e).a,LC="#grid",qC=(e,t,r,n=RC.WHITE)=>e&&!OC(e)?e:OC(t)?r&&!OC(r)?r:n:t,NC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},jC=(e,t,r,n,o)=>{const i=NC(".qv-object .qv-inner-object",r),a=NC(".qv-panel-sheet",r),s=NC(LC,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 kC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ne(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=OC(d),f=!OC(h=p?s:d)&&AC(h,RC.TEXT,RC.DARK_MODE_TEXT)===Z(RC.DARK_MODE_TEXT);var h;return{color:d,headerColor:qC(l,d,s),isDark:f}},_C=(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(LC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return e((()=>({...l,background:jC(t,l,r,a,s)})),[l.name(),r,a,s,t,u])};const zC=3,FC=/\n/g;function HC(e,t,r){let n=0,o=e.length;if(Number.isNaN(t))return null;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}const $C=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o)=>{const{maxNbrLinesOfText:i=zC,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const s=o.measureText.bind(o),l=St((e=>{if(void 0===e)return 0;if(a){const t=e.split(FC).map((e=>s(e).width));return t.reduce(((e,t)=>t>e?t:e),0)}const t=e.replace(FC," ");return s(t).width})),u=e=>+l(e).toFixed(2),c=St((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split(FC):[e];let o=0;for(const e of n){let r=e;do{o+=1,r=HC(r,t,u)}while(null!==r&&o<i);if(o>=i)break}return o}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}};function BC({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=zC,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:u}=R((()=>$C({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})()),[r,n,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var WC,VC=$;WC=VC.createRoot,VC.hydrateRoot;const UC="Source Sans Pro, sans-serif",GC=(t,n,o)=>{const[,i,a]=function(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]}((async()=>{const e=ye(o.flags),r=t.getStyle("","","fontFamily"),n=t.getStyle("object","label.name","fontFamily"),i=t.getStyle("object","label.value","fontFamily"),a=t.getStyle("","","fontFamilies")??[];return Promise.all([...e,...a,r,n,i,UC].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[n,t,o]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function YC(e,t){const[r,n]=A(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var KC={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 XC=({translator:e})=>(R((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(KC).forEach((t=>{e.add(KC[t])}))}}(e)}),[e]),e),JC="12px",ZC="nebula-table-utils-head-menu-button",QC="nebula-table-utils-head-menu-wrapper",eE="nebula-table-utils-head-menu",tE="nebula-table-utils-head-menu-list-id",rE="sn-copy-cell";let nE=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 oE="nebula-table-utils-column-adjuster";let iE=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}({}),aE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const sE={darker:.15,brighter:.3,opacity:.03},lE={darker:.3,brighter:.5,opacity:.05};let uE=function(e){return e.Cyclic="C",e}({});const cE=document.createElement("textarea");function dE(e){cE.value=e,document.body.appendChild(cE),cE.select(),cE.setSelectionRange(0,cE.value.length),document.execCommand("copy"),document.body.removeChild(cE)}cE.style.position="absolute",cE.style.left="-9999px",cE.setAttribute("readonly","");const pE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{dE(t)})):dE(t))};function fE(e){return"init"in e}function hE(e){return!!e.write}function mE(e){return"v"in e||"e"in e}function gE(e){if("e"in e)throw e.e;if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function bE(e){return"function"==typeof(null==e?void 0:e.then)}function vE(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function yE(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])o.add(t);for(const e of t.p)o.add(e);return o}const xE=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach((e=>e(r))),null==(o=t.get(r))||o.forEach((e=>e()))};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function SE(e){return e.i||(e.i=xE()),e.r||(e.r=xE()),e.c||(e.c=xE()),e.m||(e.m=xE()),e.u||(e.u=xE()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach((e=>e()));return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const wE=(e,t,...r)=>t.read(...r),CE=(e,t,...r)=>t.write(...r),EE=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},RE=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},AE=(e,t)=>{var r;const n=BE(e),o=n[0],i=n[6],a=n[9];if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Atom is undefined or null");let s=o.get(t);return s||(s={d:new Map,p:new Set,n:0},o.set(t,s),null==(r=i.i)||r.call(i,t),null==a||a(e,t)),s},PE=e=>{const t=BE(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach((e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)})),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},ME=e=>{const t=BE(e),r=t[1],n=t[2],o=t[3],i=t[11],a=t[14],s=t[17],l=[],u=new WeakSet,c=new WeakSet,d=Array.from(o);for(;d.length;){const t=d[d.length-1],o=i(e,t);if(c.has(t))d.pop();else if(u.has(t)){if(n.get(t)===o.n)l.push([t,o]);else if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n.has(t))throw new Error("[Bug] invalidated atom exists");c.add(t),d.pop()}else{u.add(t);for(const e of yE(t,o,r))u.has(e)||d.push(e)}}for(let t=l.length-1;t>=0;--t){const[r,i]=l[t];let u=!1;for(const e of i.d.keys())if(e!==r&&o.has(e)){u=!0;break}u&&(n.set(r,i.n),a(e,r),s(e,r)),n.delete(r)}},IE=new WeakSet,kE=(e,t)=>{var r,n;const o=BE(e),i=o[1],a=o[2],s=o[3],l=o[6],u=o[7],c=o[11],d=o[12],p=o[13],f=o[14],h=o[16],m=o[17],g=o[20],b=o[26],v=c(e,t);if(mE(v)){if(i.has(t)&&a.get(t)!==v.n)return v;let r=!1;for(const[t,n]of v.d)if(f(e,t).n!==n){r=!0;break}if(!r)return v}let y=!0;const x=new Set(v.d.keys()),S=new Map,w=()=>{for(const e of x)S.has(e)||v.d.delete(e)},C=()=>{if(i.has(t)){const r=!s.size;m(e,t),r&&(p(e),d(e))}},E=r=>{var n;if(r===t){const t=c(e,r);if(!mE(t)){if(!fE(r))throw new Error("no atom init");g(e,r,r.init)}return gE(t)}const o=f(e,r);try{return gE(o)}finally{S.set(r,o.n),v.d.set(r,o.n),bE(v.v)&&vE(t,v.v,o),i.has(t)&&(null==(n=i.get(r))||n.t.add(t)),y||C()}};let R,A;const P={get signal(){return R||(R=new AbortController),R.signal},get setSelf(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(import.meta.env?import.meta.env.MODE:void 0)||hE(t)||console.warn("setSelf function cannot be used with read-only atom"),!A&&hE(t)&&(A=(...r)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&y&&console.warn("setSelf function cannot be called in sync"),!y)try{return h(e,t,...r)}finally{p(e),d(e)}}),A}},M=v.n,I=a.get(t)===M;try{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&IE.delete(e);const n=u(e,t,E,P);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&IE.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,n),bE(n)){b(e,n,(()=>null==R?void 0:R.abort()));const t=()=>{w(),C()};n.then(t,t)}else w();return null==(r=l.r)||r.call(l,t),v}catch(e){return delete v.v,v.e=e,++v.n,v}finally{y=!1,v.n!==M&&I&&(a.set(t,v.n),s.add(t),null==(n=l.c)||n.call(l,t))}},DE=(e,t)=>{const r=BE(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of yE(t,r,n)){const t=i(e,s);o.get(s)!==t.n&&(o.set(s,t.n),a.push(s))}}},TE=(e,t,...r)=>{const n=BE(e),o=n[3],i=n[6],a=n[8],s=n[11],l=n[12],u=n[13],c=n[14],d=n[15],p=n[16],f=n[17],h=n[20];let m=!0;const g=t=>gE(c(e,t)),b=(r,...n)=>{var a;const c=s(e,r);try{if(r===t){if(!fE(r))throw new Error("atom not writable");"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&IE.add(e);const t=c.n,s=n[0];return h(e,r,s),f(e,r),void(t!==c.n&&(o.add(r),d(e,r),null==(a=i.c)||a.call(i,r)))}return p(e,r,...n)}finally{m||(u(e),l(e))}};try{return a(e,t,g,b,...r)}finally{m=!1}},OE=(e,t)=>{var r;const n=BE(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},LE=(e,t)=>{var r;const n=BE(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(t,m),hE(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,t)}return m},qE=(e,t)=>{var r,n;const o=BE(e),i=o[1],a=o[5],s=o[6],l=o[11],u=o[19],c=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},NE=(e,t,r)=>{const n=BE(e),o=n[11],i=n[27],a=o(e,t),s="v"in a,l=a.v;if(bE(r))for(const n of a.d.keys())vE(t,r,o(e,n));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,bE(l)&&i(e,l))},jE=(e,t)=>gE((0,BE(e)[14])(e,t)),_E=(e,t,...r)=>{const n=BE(e),o=n[3],i=n[12],a=n[13],s=n[16],l=o.size;try{return s(e,t,...r)}finally{o.size!==l&&(a(e),i(e))}},zE=(e,t,r)=>{const n=BE(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},FE=(e,t,r)=>{const n=BE(e)[25];let o=n.get(t);if(!o){o=new Set,n.set(t,o);const e=()=>n.delete(t);t.then(e,e)}o.add(r)},HE=(e,t)=>{const r=BE(e)[25].get(t);null==r||r.forEach((e=>e()))},$E=new WeakMap,BE=e=>{const t=$E.get(e);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function WE(e){const t=BE(e),r=t[24];return r?r(t):t}let VE,UE=0;function GE(e,t){const r="atom"+ ++UE,n={toString(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=YE,n.write=KE),t&&(n.write=t),n}function YE(e){return e(this)}function KE(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function XE(){return function(...e){const t={get:e=>(0,BE(t)[21])(t,e),set:(e,...r)=>(0,BE(t)[22])(t,e,...r),sub:(e,r)=>(0,BE(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},wE,CE,EE,RE,AE,PE,ME,kE,DE,TE,OE,LE,qE,NE,jE,_E,zE,void 0,new WeakMap,FE,HE].map(((t,r)=>e[r]||t));return $E.set(t,Object.freeze(r)),t}()}const JE=M(void 0);function ZE(e){return O(JE)||(VE||(VE=XE(),"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=VE),globalThis.__JOTAI_DEFAULT_STORE__!==VE&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),VE)}function QE({children:e,store:t}){const r=P(null);return t?S(JE.Provider,{value:t},e):(null===r.current&&(r.current=XE()),S(JE.Provider,{value:r.current},e))}const eR=e=>"function"==typeof(null==e?void 0:e.then),tR=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},rR=x.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(tR(e),e)}),nR=new WeakMap,oR=(e,t,r)=>{const n=WE(e)[26];let o=nR.get(t);return o||(o=new Promise(((i,a)=>{let s=t;const l=e=>t=>{s===e&&i(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=r();eR(t)?(nR.set(t,o),s=t,t.then(l(t),u(t)),n(e,t,c)):i(t)}catch(e){a(e)}};t.then(l(t),u(t)),n(e,t,c)})),nR.set(t,o)),o};function iR(e,t){const{delay:r,unstable_promiseStatus:n=!x.use}={},o=ZE(),[[i,a,s],l]=I((t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]}),void 0,(()=>[o.get(e),o,e]));let u=i;if(a===o&&s===e||(l(),u=o.get(e)),k((()=>{const t=o.sub(e,(()=>{if(n)try{const t=o.get(e);eR(t)&&tR(oR(o,t,(()=>o.get(e))))}catch(e){}"number"!=typeof r?l():setTimeout(l,r)}));return l(),t}),[o,e,r,n]),D(u),eR(u)){const t=oR(o,u,(()=>o.get(e)));return n&&tR(t),rR(t)}return u}function aR(e,t){const r=ZE();return T(((...t)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...t)}),[r,e])}function sR(e,t){return[iR(e),aR(e)]}const lR=GE(void 0),uR=GE({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>Promise.resolve()}),cR=GE({}),dR=GE({}),pR=GE((e=>{const t=e(dR);return e=>t.flags.isEnabled(e)})),fR=GE(!1),hR=GE({qHyperCube:{qDimensionInfo:[],qSize:{qcx:0,qcy:0}}}),mR=GE((e=>e(hR).qHyperCube.qSize.qcy)),gR=GE((e=>!!e(hR).snapshotData)),bR=GE((e=>e(hR).qHyperCube.qDimensionInfo.length)),vR=GE((e=>e(hR).qStateName)),yR=GE((e=>e(hR).snapshotData)),xR=GE((e=>e(hR).usePagination)),SR=GE((e=>e(hR).accessibleHeader)),wR=GE(),CR=GE(!1),ER=GE((e=>e(wR)),((e,t,r)=>{t(wR,r),t(CR,r.isModal())})),RR=GE(),AR=GE((e=>{const t=e(RR),r=e(gR);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}}),((e,t,r)=>{t(RR,r)})),PR=GE((e=>!!e(AR).active)),MR=GE((e=>!!e(AR).passive)),IR=GE((e=>!!e(AR).select)),kR=GE((e=>!!e(AR).scroll)),DR=GE((e=>{const t=e(PR),r=e(CR);return t&&!r})),TR=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),OR=GE(),LR=GE((e=>e(OR)?.direction)),qR=GE((e=>e(OR)?.footerContainer)),NR=GE((e=>e(OR)?.viewState)),jR=GE((e=>e(OR)?.freeResize)),_R=GE((e=>{const t=e(hR),r=e(NR);return void 0!==r?.usePagination?r.usePagination:!1!==t.usePagination||TR(t,r)})),zR=GE({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),FR=GE((e=>e(zR)),((e,t,r)=>{e(_R)&&t(zR,r)})),HR=GE(),$R=GE((e=>{const t=e(HR);if(t&&"getEffectiveProperties"in t)return t})),BR={width:0,height:0,top:0,left:0},WR=GE(BR),VR=GE(BR),UR=GE((e=>e(WR)),((e,t,r)=>{const n=e(hR),o=e(jR),i=e(WR),a=n.snapshotData?.content&&!o;(i.width!==r.width||i.height!==r.height||i.top!==r.top||i.left!==r.left||a)&&(t(VR,r),t(WR,a?{...r,...n.snapshotData?.content?.size}:r))})),GR=GE({}),YR=new WeakMap,KR=GE((e=>{const t=e(GR),r=YR.get(t);if(r)return r;const n=WC(t);return YR.set(t,n),n})),XR=GE({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),JR=GE({get:e=>e,add:()=>{},language:()=>"en"});var ZR={exports:{}};self,ZR.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:()=>De});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 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=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 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),A={},P=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function I(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(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]=I(e[r||t])?i:e[t],e=e[r||t]}})),e}function T(e,t){var r=!0;if(M(e)&&M(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(P(e)&&P(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}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);T(i,a)||k(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(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]&&I(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(!I(t[0])&&I(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){I(t[o])&&!k(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=D(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 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(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(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=D(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 O=A,L=function(e,r,n){if(!e)return Promise.resolve();var o=O.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 q="accumulation";function N(e,t){var r=i(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=i(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 _={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 h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);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,_)},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(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 w.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}};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 W={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),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),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(m," / ").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 V="timeSeriesDecomposition";function U(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 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===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: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(V))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),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.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!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",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",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,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Pe.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,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 Me=Pe;function Ie(e){return Ie="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},Ie(e)}var ke={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:ke,apply:Oe,applyModifiers:Le,cleanUpMeasure:qe,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:je,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return ke[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return ke[e]&&ke[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:_e};var Te={};function Oe(){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"===Ie(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 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 Ue({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 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 h&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(ke[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=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(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"===Ie(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 qe(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 qe(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;Me.isValid(r)||Me.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(s++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,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:ke[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 ke[n.type].updateModifier&&ke[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:ke[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||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):qe(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 qe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!ke[e.type]}))}(e)?Me.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 je(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(ke[n.type]&&!n.disabled)return n}}function _e(e){var t=je(e);return!t||ke[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){ze(e).forEach((function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Me.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"===Ie(t)&&(t.disabled||!ke[t.type]&&He(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 Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(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"!==Ie(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[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"===Ie(e)&&!e.disabled&&ke[e.type]&&ke[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=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)?(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 Oe({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 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),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 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 M(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 I=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},k=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},D=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}}},O=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)}},q=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,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}},j=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))},_=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 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)}))}},$=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 M(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 M(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)?M(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 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=_({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,A=l.defaultMeasure,P=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:P}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),j({exportFormat:t,newHyperCubeDef:v}),k("qMaxStackedCells",b,v),k("qNoOfLeftDims",b,v),D("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",b,v,"S"),D("qReductionMode",b,v,"N"),D("qSortbyYValue",b,v),D("qIndentMode",b,v),D("qShowTotalsAbove",b,v),I(g,t,n),m.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:M}),p&&W(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};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},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")||w()(r.measureAxis,t.measureAxis):W(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 Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Me="measures",Ie="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:Me,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Me,quarantineName:Pe})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",Le="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const He={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},$e={hypercube:V,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:He}})(),n.default})();var QR=Vt(ZR.exports);const eA="qHyperCubeDef.qMeasures",tA="measures",rA="qHyperCubeDef.qDimensions",nA="dimensions",oA="qDef.representation",iA="tableRepresentation",aA="qDef.conditionalColoring",sA="conditionalColoring",lA="qMiniChartDef",uA="miniChartDef",cA=({propertyTree:e,hyperCubePath:t})=>{const r=QR.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 xt(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),QR.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),QR.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),QR.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{QR.quarantineArrayProp({properties:e,arrayPath:rA,itemPath:oA,arrayName:nA,quarantineName:iA}),QR.quarantineArrayProp({properties:e,arrayPath:eA,itemPath:oA,arrayName:tA,quarantineName:iA}),QR.quarantineArrayProp({properties:e,arrayPath:eA,itemPath:aA,arrayName:tA,quarantineName:sA}),QR.quarantineArrayProp({properties:e,arrayPath:eA,itemPath:lA,arrayName:tA,quarantineName:uA})})(r.properties),r};const dA=/^q[A-Z]/,pA=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],fA=e=>"object"==typeof e&&null!==e,hA=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!dA.test(e)&&!pA.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>fA(e)?hA(e,`${o}.${t}`):e)):fA(n)&&(e[r]=hA(n,o))})),e),mA=(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:aE.Pixels,pixels:e}:{type:aE.FitToContent}:i.qDef.columnWidth=e}return i},gA=({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)}hA(e.properties)}const a=QR.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(QR.conditionalShow.unquarantine(a.qProperty),i)xt(a,"qProperty.totals.show",!1),xt(a,"qProperty.usePagination",!0),xt(a,"qProperty.accessibleHeader",!0);else{QR.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{QR.unquarantineArrayProp({properties:e,arrayPath:rA,itemPath:oA,arrayName:nA,quarantineName:iA}),QR.unquarantineArrayProp({properties:e,arrayPath:eA,itemPath:oA,arrayName:tA,quarantineName:iA}),QR.unquarantineArrayProp({properties:e,arrayPath:eA,itemPath:aA,arrayName:tA,quarantineName:sA}),QR.unquarantineArrayProp({properties:e,arrayPath:eA,itemPath:lA,arrayName:tA,quarantineName:uA})})(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=>mA(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>mA(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(xt(a,"qProperty.qHyperCubeDef.qDimensions",o),xt(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var bA={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};const vA=(e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;return e.splice(r,1),r};function yA(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function xA(e){return e>0?0:1}function SA(e){return e.translator.get("Visualizations.Descriptions.Column")}function wA(e){return{measures:{min:xA,max:1e3,description:()=>SA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;yA(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties,i=(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n;vA(o,i)}},dimensions:{min:xA,max:1e3,description:()=>SA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return yA(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;vA(o,n)}}}}let CA=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}({}),EA=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const RA=e=>{switch(e?.type){case"url":return CA.Link;case"image":return CA.Image;case"indicator":return CA.Indicator;case"miniChart":return CA.MiniChart;default:return CA.Text}},AA=({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}}),PA=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>RA(e.qDef.representation)===CA.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}}}}}},MA=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:AA({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>RA(e.qDef.representation)===CA.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>RA(e.qDef.representation)===CA.Link&&e.qDef.representation?.urlPosition===EA.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>RA(e.qDef.representation)===CA.Link&&e.qDef.representation?.urlPosition===EA.Attribute},...PA(r)}},IA=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[CA.Image],i=!n?.("qMiniChartDef")&&t[CA.MiniChart],a=!n?.("tableIndicators")&&t[CA.Indicator],s=o&&t[CA.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=>RA(e.qDef.representation)===CA.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 kA,DA={};kA=DA,(()=>{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:()=>Me});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 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(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: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: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=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 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),M={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function D(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(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]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function L(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){L(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(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}M.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);L(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(M.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(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(!D(t[0])&&D(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(M.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){D(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},M.apply=function(e,t){t.forEach((function(t){var r,n,o=O(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(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(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(k(a)&&k(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(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=O(e,t.from);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},M.clone=function(e){return P({},e)},M.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},M.updateObject=function(e,t){Object.keys(e).length?M.apply(e,M.generate(e,t)):P(e,t)};const q=M;var N="accumulation";function j(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 _(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 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(_(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=j(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=j(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 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=j(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 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(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),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",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,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},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,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 Me={modifiers:Pe,apply:ke,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&Ie[e.id]&&Ie[e.id].masterItemSubscriber&&(Ie[e.id].masterItemSubscriber&&Ie[e.id].masterItemSubscriber.unsubscribe(),delete Ie[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,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: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=je(e);We({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:qe};var Ie={};function ke(){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;Ie[t.id]=Ie[t.id]||{isFirstTime:!0};var u=Ie[t.id].isFirstTime;if(Ie[t.id].isFirstTime=!1,r&&"object"===Ae(r))return De({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=Ie[t.id].lastReloadTime;if(Ie[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Oe({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 Be({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:je(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 Ue({libraryIds:n,model:t}).then((function(n){return h&&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"===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&&He(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),De({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 Ne(r).forEach((function(e){return Te(e)})),Ye({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function De(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&&!Oe({measures:t,properties:r}))return t.forEach((function(e){return Te(e)})),Promise.resolve();var l=o?void 0:Xe(r);return Ve({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&&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=Ce.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||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(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=je(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 Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({modifiers:je(e),properties:r,layout:n})}))}function Le(e){var t=je(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 qe(e){var t=Le(e);return!t||Pe[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function _e(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&&_e(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=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ae(t)&&(t.disabled||!Pe[t.type]&&_e(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)&&We({modifiers:je(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 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=q.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=Ne(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=je(t);if(We({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)?(Ie[t.id].masterItemSubscriber=Ie[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 ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ie[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in kA.default=n.default,n)-1===["default"].indexOf(Ze)&&(kA[Ze]=n[Ze]);Object.defineProperty(kA,"__esModule",{value:!0})})();var TA=Vt(DA);const OA={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},LA={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}},qA=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)=>(!TA.hasActiveModifiers({measures:[e],properties:t.properties})||TA.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")}),NA={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:aE.Auto,translation:"Common.Auto"},{value:aE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:aE.Pixels,translation:"Object.Table.Column.Pixels"},{value:aE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:aE.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===aE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===aE.Percentage}},jA=()=>({...OA,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}]},...LA,...NA}),_A={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"}},zA=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:qA(e)}},FA=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:_A},presentation:{type:"items",translation:"properties.presentation",items:{...jA(),...MA(e)}}}}}),HA=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:zA(e)},presentation:{type:"items",translation:"properties.presentation",items:{...jA(),...IA(e,{[CA.Image]:!0,[CA.Indicator]:!0,[CA.MiniChart]:!0})}}}}}),$A=e=>({...FA(e),...HA(e)}),BA=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...$A(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}}}),WA={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}},VA=({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},UA=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")}),GA=(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}}}),YA=(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},KA=({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=>YA(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ye(n).filter((e=>!a.includes(e))).map((e=>YA(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),XA=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],JA=({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=>YA(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...XA.filter((e=>!i.includes(e))).map((e=>YA(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),ZA=({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:KA({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:JA({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:GA(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:GA(`${e}.background`,"properties.background",((t,r)=>{const n=r?RC.WHITE:RC.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),QA=({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:GA(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:GA(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),eP=(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}},tP=e=>e.grid?.zebraStripes?.show,rP={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)}},nP=e=>e?.content?.hoverEffect,oP={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:nP,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:nP,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},iP=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,aP=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:ZA({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:eP,disableNoneCallback:iP}),dimensionValueSection:ZA({section:"dimensionValues",translator:t,flags:e,getThemeValue:eP}),measureValueSection:ZA({section:"measureValues",translator:t,flags:e,getThemeValue:eP}),totalRowSection:ZA({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:eP,disableNoneCallback:iP}),nullValues:QA({section:"nullValues",fallbackBackground:RC.NULL_VALUE_BACKGROUND,getThemeValue:eP}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...rP},border:GA("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??RC.BORDER_MEDIUM)),divider:GA("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??RC.BORDER_HEAVY))}}}},hoverEffectSection:oP,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:tP,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:tP,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:tP,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:tP,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),sP=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[aP(e),UA(e),VA(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:"-"}]},...WA}}),lP={uses:"sorting"},uP={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},cP=e=>({type:"items",component:"accordion",items:{data:BA(e),sorting:lP,addOns:uP,settings:sP(e)}});function dP(e){return{definition:cP(e),exploration:bA,data:wA(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 gA({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>cA({propertyTree:e,hyperCubePath:t})}}var pP={exports:{}};
|
|
102
|
+
*/var aC,sC,lC={},uC={};function cC(){if(aC)return uC;aC=1;var e=Wl;Object.defineProperty(uC,"__esModule",{value:!0}),uC.default=void 0;var t=(0,e(ry()).default)();return uC.default=t,uC}var dC,pC,fC={},hC={};function mC(){if(pC)return fC;pC=1;var e=Wl;Object.defineProperty(fC,"__esModule",{value:!0}),fC.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(Nu()),r=fg,n=function(){if(dC)return hC;dC=1;var e=Wl;Object.defineProperty(hC,"__esModule",{value:!0}),hC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},hC.getUnit=r,hC.toUnitless=n,hC.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}},hC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},hC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},hC.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(Og());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return hC}();return fC}var gC,vC={};var bC,yC={};var xC,SC={};var wC,CC={};!function(e){var t=Wl,r=wm;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=Cm;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(ry()),a=t(function(){if(ny)return oy;ny=1;var e=Wl;Object.defineProperty(oy,"__esModule",{value:!0}),oy.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=fg,r=e(ry());return oy}()),s=t(function(){if(rC)return iy;rC=1,Object.defineProperty(iy,"__esModule",{value:!0}),iy.default=function(t){return(0,e.createStyles)(t)};var e=iC;return iy}()),l=t(function(){if(sC)return lC;sC=1;var e=Wl;Object.defineProperty(lC,"__esModule",{value:!0}),lC.default=void 0;var t=e(Nu()),r=iC,n=e(cC()),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 lC.default=o,lC}()),u=t(mC()),c=t(function(){if(gC)return vC;gC=1;var e=Wl;Object.defineProperty(vC,"__esModule",{value:!0}),vC.default=void 0;var t=e(Nu()),r=iC,n=e(cC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return vC.default=o,vC}()),d=Zb();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(bC)return yC;bC=1;var e=Wl;Object.defineProperty(yC,"__esModule",{value:!0}),yC.default=function(){return(0,t.useTheme)()||r.default};var t=iC;e(S);var r=e(cC());return yC}()),f=t(function(){if(xC)return SC;xC=1;var e=Wl;Object.defineProperty(SC,"__esModule",{value:!0}),SC.default=void 0;var t=e(Nu()),r=iC,n=e(cC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return SC.default=o,SC}()),h=t(function(){if(wC)return CC;wC=1;var e=Wl;Object.defineProperty(CC,"__esModule",{value:!0}),CC.default=void 0;var t=iC,r=e(cC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return CC.default=n,CC}()),m=iC}(bm),bm.alpha(qt.GREYSCALE_0,.05),bm.alpha(qt.GREEN_PALE,.5),bm.alpha(qt.BLUE_PALE,.5),bm.alpha(qt.GREEN_PALE,.5),bm.alpha(qt.BLUE_PALE,.5),bm.alpha(qt.GREEN_PALE,.5),bm.alpha(qt.BLUE_PALE,.5),bm.alpha(qt.GREEN_PALE,.5),bm.alpha(qt.BLUE_PALE,.5),bm.alpha(qt.GREEN_PALE,.5),bm.alpha(qt.BLUE_PALE,.5);const EC=(e="light",t=!1)=>((e,t=!1)=>({components:mm(0,t),palette:gm(),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:_t,fontWeightLight:$t,fontWeightRegular:Ht,fontWeightMedium:Bt,fontWeightBold:Wt,htmlFontSize:_t,fontFamily:Vt.FONT_FAMILY,button:{fontWeight:Bt,fontSize:_t,textTransform:"none"},body1:{fontSize:jt,lineHeight:"24px"},body2:{fontSize:_t,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:zt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:jt,fontWeight:Bt,lineHeight:"16px"},h6:{fontSize:_t,fontWeight:Bt,lineHeight:"16px"},caption:{color:qt.TEXT_SECONDARY},subtitle1:{fontSize:_t,color:qt.TEXT_SECONDARY},subtitle2:{fontSize:Nt,color:qt.TEXT_SECONDARY}},shape:{borderRadius:Ft}}))(0,t),RC=EC().palette,AC={TEXT:RC.text.primary,DISABLED:RC.text.disabled,HOVER:RC.action.hover,WHITE:vm.GREYSCALE_100,BORDER_LIGHT:vm.GREYSCALE_90,BORDER_MEDIUM:vm.GREYSCALE_85,BORDER_HEAVY:vm.GREYSCALE_50,DARK_MODE_TEXT:vm.GREYSCALE_95,DARK_MODE_BORDER:vm.GREYSCALE_95,DARK_MODE_DISABLED:vm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:vm.GREYSCALE_95,SELECTED:RC.primary.main,LINK:RC.info.main,ERROR:RC.error.main},PC=(e,t=AC.TEXT,r=AC.WHITE)=>{const n=oe(e),o=oe(t),i=oe(r);return n.isInvalid()?t:function(e,t,r){const n=ie(e,t),o=ie(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},MC=e=>{const t=e.getStyle("","","dataColors.selected")||AC.SELECTED,r=function(e,t){const r=oe("#FFFFFF"),n=oe(e),o=oe(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ie(r,n),a=ie(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,AC.TEXT);return{background:t,color:r}},IC=(e,t)=>{const r=oe(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},kC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},DC=e=>{const t=oe(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},TC=(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)},OC=e=>{e.stopPropagation(),e.preventDefault()},LC=e=>!!e&&0===oe(e).a,qC="#grid",NC=(e,t,r,n=AC.WHITE)=>e&&!LC(e)?e:LC(t)?r&&!LC(r)?r:n:t,_C=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},jC=(e,t,r,n,o)=>{const i=_C(".qv-object .qv-inner-object",r),a=_C(".qv-panel-sheet",r),s=_C(qC,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 DC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=oe(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=LC(d),f=!LC(h=p?s:d)&&PC(h,AC.TEXT,AC.DARK_MODE_TEXT)===Q(AC.DARK_MODE_TEXT);var h;return{color:d,headerColor:NC(l,d,s),isDark:f}},zC=(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(qC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return e((()=>({...l,background:jC(t,l,r,a,s)})),[l.name(),r,a,s,t,u])};const FC=3,$C=/\n/g;function HC(e,t,r){let n=0,o=e.length;if(Number.isNaN(t))return null;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}const BC=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o)=>{const{maxNbrLinesOfText:i=FC,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const s=o.measureText.bind(o),l=wt((e=>{if(void 0===e)return 0;if(a){const t=e.split($C).map((e=>s(e).width));return t.reduce(((e,t)=>t>e?t:e),0)}const t=e.replace($C," ");return s(t).width})),u=e=>+l(e).toFixed(2),c=wt((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split($C):[e];let o=0;for(const e of n){let r=e;do{o+=1,r=HC(r,t,u)}while(null!==r&&o<i);if(o>=i)break}return o}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}};function WC({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=FC,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:u}=A((()=>BC({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})()),[r,n,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var VC,UC=B;VC=UC.createRoot,UC.hydrateRoot;const GC="Source Sans Pro, sans-serif",YC=(t,n,o)=>{const[,i,a]=function(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]}((async()=>{const e=xe(o.flags),r=t.getStyle("","","fontFamily"),n=t.getStyle("object","label.name","fontFamily"),i=t.getStyle("object","label.value","fontFamily"),a=t.getStyle("","","fontFamilies")??[];return Promise.all([...e,...a,r,n,i,GC].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[n,t,o]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function KC(e,t){const[r,n]=P(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var XC={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 JC=({translator:e})=>(A((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(XC).forEach((t=>{e.add(XC[t])}))}}(e)}),[e]),e),ZC="12px",QC="nebula-table-utils-head-menu-button",eE="nebula-table-utils-head-menu-wrapper",tE="nebula-table-utils-head-menu",rE="nebula-table-utils-head-menu-list-id",nE="sn-copy-cell";let oE=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 iE="nebula-table-utils-column-adjuster";let aE=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}({}),sE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const lE={darker:.15,brighter:.3,opacity:.03},uE={darker:.3,brighter:.5,opacity:.05};let cE=function(e){return e.Cyclic="C",e}({});const dE=document.createElement("textarea");function pE(e){dE.value=e,document.body.appendChild(dE),dE.select(),dE.setSelectionRange(0,dE.value.length),document.execCommand("copy"),document.body.removeChild(dE)}dE.style.position="absolute",dE.style.left="-9999px",dE.setAttribute("readonly","");const fE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{pE(t)})):pE(t))};function hE(e){return"init"in e}function mE(e){return!!e.write}function gE(e){return"v"in e||"e"in e}function vE(e){if("e"in e)throw e.e;if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function bE(e){return"function"==typeof(null==e?void 0:e.then)}function yE(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function xE(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])o.add(t);for(const e of t.p)o.add(e);return o}const SE=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach((e=>e(r))),null==(o=t.get(r))||o.forEach((e=>e()))};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function wE(e){return e.i||(e.i=SE()),e.r||(e.r=SE()),e.c||(e.c=SE()),e.m||(e.m=SE()),e.u||(e.u=SE()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach((e=>e()));return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const CE=(e,t,...r)=>t.read(...r),EE=(e,t,...r)=>t.write(...r),RE=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},AE=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},PE=(e,t)=>{var r;const n=WE(e),o=n[0],i=n[6],a=n[9];if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Atom is undefined or null");let s=o.get(t);return s||(s={d:new Map,p:new Set,n:0},o.set(t,s),null==(r=i.i)||r.call(i,t),null==a||a(e,t)),s},ME=e=>{const t=WE(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach((e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)})),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},IE=e=>{const t=WE(e),r=t[1],n=t[2],o=t[3],i=t[11],a=t[14],s=t[17],l=[],u=new WeakSet,c=new WeakSet,d=Array.from(o);for(;d.length;){const t=d[d.length-1],o=i(e,t);if(c.has(t))d.pop();else if(u.has(t)){if(n.get(t)===o.n)l.push([t,o]);else if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n.has(t))throw new Error("[Bug] invalidated atom exists");c.add(t),d.pop()}else{u.add(t);for(const e of xE(t,o,r))u.has(e)||d.push(e)}}for(let t=l.length-1;t>=0;--t){const[r,i]=l[t];let u=!1;for(const e of i.d.keys())if(e!==r&&o.has(e)){u=!0;break}u&&(n.set(r,i.n),a(e,r),s(e,r)),n.delete(r)}},kE=new WeakSet,DE=(e,t)=>{var r,n;const o=WE(e),i=o[1],a=o[2],s=o[3],l=o[6],u=o[7],c=o[11],d=o[12],p=o[13],f=o[14],h=o[16],m=o[17],g=o[20],v=o[26],b=c(e,t);if(gE(b)){if(i.has(t)&&a.get(t)!==b.n)return b;let r=!1;for(const[t,n]of b.d)if(f(e,t).n!==n){r=!0;break}if(!r)return b}let y=!0;const x=new Set(b.d.keys()),S=new Map,w=()=>{for(const e of x)S.has(e)||b.d.delete(e)},C=()=>{if(i.has(t)){const r=!s.size;m(e,t),r&&(p(e),d(e))}},E=r=>{var n;if(r===t){const t=c(e,r);if(!gE(t)){if(!hE(r))throw new Error("no atom init");g(e,r,r.init)}return vE(t)}const o=f(e,r);try{return vE(o)}finally{S.set(r,o.n),b.d.set(r,o.n),bE(b.v)&&yE(t,b.v,o),i.has(t)&&(null==(n=i.get(r))||n.t.add(t)),y||C()}};let R,A;const P={get signal(){return R||(R=new AbortController),R.signal},get setSelf(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(import.meta.env?import.meta.env.MODE:void 0)||mE(t)||console.warn("setSelf function cannot be used with read-only atom"),!A&&mE(t)&&(A=(...r)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&y&&console.warn("setSelf function cannot be called in sync"),!y)try{return h(e,t,...r)}finally{p(e),d(e)}}),A}},M=b.n,I=a.get(t)===M;try{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&kE.delete(e);const n=u(e,t,E,P);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&kE.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,n),bE(n)){v(e,n,(()=>null==R?void 0:R.abort()));const t=()=>{w(),C()};n.then(t,t)}else w();return null==(r=l.r)||r.call(l,t),b}catch(e){return delete b.v,b.e=e,++b.n,b}finally{y=!1,b.n!==M&&I&&(a.set(t,b.n),s.add(t),null==(n=l.c)||n.call(l,t))}},TE=(e,t)=>{const r=WE(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of xE(t,r,n)){const t=i(e,s);o.get(s)!==t.n&&(o.set(s,t.n),a.push(s))}}},OE=(e,t,...r)=>{const n=WE(e),o=n[3],i=n[6],a=n[8],s=n[11],l=n[12],u=n[13],c=n[14],d=n[15],p=n[16],f=n[17],h=n[20];let m=!0;const g=t=>vE(c(e,t)),v=(r,...n)=>{var a;const c=s(e,r);try{if(r===t){if(!hE(r))throw new Error("atom not writable");"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&kE.add(e);const t=c.n,s=n[0];return h(e,r,s),f(e,r),void(t!==c.n&&(o.add(r),d(e,r),null==(a=i.c)||a.call(i,r)))}return p(e,r,...n)}finally{m||(u(e),l(e))}};try{return a(e,t,g,v,...r)}finally{m=!1}},LE=(e,t)=>{var r;const n=WE(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},qE=(e,t)=>{var r;const n=WE(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(t,m),mE(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,t)}return m},NE=(e,t)=>{var r,n;const o=WE(e),i=o[1],a=o[5],s=o[6],l=o[11],u=o[19],c=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},_E=(e,t,r)=>{const n=WE(e),o=n[11],i=n[27],a=o(e,t),s="v"in a,l=a.v;if(bE(r))for(const n of a.d.keys())yE(t,r,o(e,n));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,bE(l)&&i(e,l))},jE=(e,t)=>vE((0,WE(e)[14])(e,t)),zE=(e,t,...r)=>{const n=WE(e),o=n[3],i=n[12],a=n[13],s=n[16],l=o.size;try{return s(e,t,...r)}finally{o.size!==l&&(a(e),i(e))}},FE=(e,t,r)=>{const n=WE(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},$E=(e,t,r)=>{const n=WE(e)[25];let o=n.get(t);if(!o){o=new Set,n.set(t,o);const e=()=>n.delete(t);t.then(e,e)}o.add(r)},HE=(e,t)=>{const r=WE(e)[25].get(t);null==r||r.forEach((e=>e()))},BE=new WeakMap,WE=e=>{const t=BE.get(e);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function VE(e){const t=WE(e),r=t[24];return r?r(t):t}let UE,GE=0;function YE(e,t){const r="atom"+ ++GE,n={toString(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=KE,n.write=XE),t&&(n.write=t),n}function KE(e){return e(this)}function XE(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function JE(){return function(...e){const t={get:e=>(0,WE(t)[21])(t,e),set:(e,...r)=>(0,WE(t)[22])(t,e,...r),sub:(e,r)=>(0,WE(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},CE,EE,RE,AE,PE,ME,IE,DE,TE,OE,LE,qE,NE,_E,jE,zE,FE,void 0,new WeakMap,$E,HE].map(((t,r)=>e[r]||t));return BE.set(t,Object.freeze(r)),t}()}const ZE=I(void 0);function QE(e){return L(ZE)||(UE||(UE=JE(),"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=UE),globalThis.__JOTAI_DEFAULT_STORE__!==UE&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),UE)}function eR({children:e,store:t}){const r=M(null);return t?w(ZE.Provider,{value:t},e):(null===r.current&&(r.current=JE()),w(ZE.Provider,{value:r.current},e))}const tR=e=>"function"==typeof(null==e?void 0:e.then),rR=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},nR=S.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(rR(e),e)}),oR=new WeakMap,iR=(e,t,r)=>{const n=VE(e)[26];let o=oR.get(t);return o||(o=new Promise(((i,a)=>{let s=t;const l=e=>t=>{s===e&&i(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=r();tR(t)?(oR.set(t,o),s=t,t.then(l(t),u(t)),n(e,t,c)):i(t)}catch(e){a(e)}};t.then(l(t),u(t)),n(e,t,c)})),oR.set(t,o)),o};function aR(e,t){const{delay:r,unstable_promiseStatus:n=!S.use}={},o=QE(),[[i,a,s],l]=k((t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]}),void 0,(()=>[o.get(e),o,e]));let u=i;if(a===o&&s===e||(l(),u=o.get(e)),D((()=>{const t=o.sub(e,(()=>{if(n)try{const t=o.get(e);tR(t)&&rR(iR(o,t,(()=>o.get(e))))}catch(e){}"number"!=typeof r?l():setTimeout(l,r)}));return l(),t}),[o,e,r,n]),T(u),tR(u)){const t=iR(o,u,(()=>o.get(e)));return n&&rR(t),nR(t)}return u}function sR(e,t){const r=QE();return O(((...t)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...t)}),[r,e])}function lR(e,t){return[aR(e),sR(e)]}const uR=YE(void 0),cR=YE({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>Promise.resolve()}),dR=YE({}),pR=YE({}),fR=YE((e=>{const t=e(pR);return e=>t.flags.isEnabled(e)})),hR=YE(!1),mR=YE({qHyperCube:{qDimensionInfo:[],qSize:{qcx:0,qcy:0}}}),gR=YE((e=>e(mR).qHyperCube.qSize.qcy)),vR=YE((e=>!!e(mR).snapshotData)),bR=YE((e=>e(mR).qHyperCube.qDimensionInfo.length)),yR=YE((e=>e(mR).qStateName)),xR=YE((e=>e(mR).snapshotData)),SR=YE((e=>e(mR).usePagination)),wR=YE((e=>!e(fR)("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||!1!==e(mR).accessibleHeader)),CR=YE(),ER=YE(!1),RR=YE((e=>e(CR)),((e,t,r)=>{t(CR,r),t(ER,r.isModal())})),AR=YE(),PR=YE((e=>{const t=e(AR),r=e(vR);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}}),((e,t,r)=>{t(AR,r)})),MR=YE((e=>!!e(PR).active)),IR=YE((e=>!!e(PR).passive)),kR=YE((e=>!!e(PR).select)),DR=YE((e=>!!e(PR).scroll)),TR=YE((e=>{const t=e(MR),r=e(ER);return t&&!r})),OR=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),LR=YE(),qR=YE((e=>e(LR)?.direction)),NR=YE((e=>e(LR)?.footerContainer)),_R=YE((e=>e(LR)?.viewState)),jR=YE((e=>e(LR)?.freeResize)),zR=YE((e=>{const t=e(mR),r=e(_R);return void 0!==r?.usePagination?r.usePagination:!1!==t.usePagination||OR(t,r)})),FR=YE({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),$R=YE((e=>e(FR)),((e,t,r)=>{e(zR)&&t(FR,r)})),HR=YE(),BR=YE((e=>{const t=e(HR);if(t&&"getEffectiveProperties"in t)return t})),WR={width:0,height:0,top:0,left:0},VR=YE(WR),UR=YE(WR),GR=YE((e=>e(VR)),((e,t,r)=>{const n=e(mR),o=e(jR),i=e(VR),a=n.snapshotData?.content&&!o;(i.width!==r.width||i.height!==r.height||i.top!==r.top||i.left!==r.left||a)&&(t(UR,r),t(VR,a?{...r,...n.snapshotData?.content?.size}:r))})),YR=YE({}),KR=new WeakMap,XR=YE((e=>{const t=e(YR),r=KR.get(t);if(r)return r;const n=VC(t);return KR.set(t,n),n})),JR=YE({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),ZR=YE({get:e=>e,add:()=>{},language:()=>"en"});var QR={exports:{}};self,QR.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:()=>De});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 v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("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=b(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=b(d,f),v=b(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").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=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 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),A={},P=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function I(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(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]=I(e[r||t])?i:e[t],e=e[r||t]}})),e}function T(e,t){var r=!0;if(M(e)&&M(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(P(e)&&P(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}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);T(i,a)||k(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(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]&&I(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(!I(t[0])&&I(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){I(t[o])&&!k(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=D(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 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(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(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=D(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 O=A,L=function(e,r,n){if(!e)return Promise.resolve();var o=O.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 q="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===q)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===q)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 h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);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(q))return!1;var i=N(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 H(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 W={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),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),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(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var b=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(v,b,y);v=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},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(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=$(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(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 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=$(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function U(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 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===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: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(V))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),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.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!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",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 ve="qDef.qDef",be="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",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(r(e,be,i(e,ve)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Pe.isValid(e)&&(r(e,ve,i(e,be)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,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,be),r=i(e,xe);return void 0!==t||void 0!==r}};const Me=Pe;function Ie(e){return Ie="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},Ie(e)}var ke={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:ke,apply:Oe,applyModifiers:Le,cleanUpMeasure:qe,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:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return ke[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return ke[e]&&ke[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 Oe(){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"===Ie(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 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 Ue({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 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);He(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(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(ke[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=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(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"===Ie(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 qe(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),He(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 qe(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;Me.isValid(r)||Me.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(s++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,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:ke[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 ke[n.type].updateModifier&&ke[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:ke[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)):qe(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 qe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!ke[e.type]}))}(e)?Me.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(ke[n.type]&&!n.disabled)return n}}function je(e){var t=_e(e);return!t||ke[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach((function(e){return function(e){var r=_e(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!Me.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"===Ie(t)&&(t.disabled||!ke[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 Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(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"!==Ie(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[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"===Ie(e)&&!e.disabled&&ke[e.type]&&ke[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=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)?(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 Oe({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:()=>He});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())},v=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},b=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 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 M(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 I=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},k=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},D=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}}},O=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)}},q=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,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}},_=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=[]))},$=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)}))}},H=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 M(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 M(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)?M(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 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,v({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),b({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}),v=i.getValue(n,u||"").qHyperCubeDef,b=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,A=l.defaultMeasure,P=void 0===A?O():A;b.qDimensions.length=0,b.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:b}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:b,defaultMeasure:P}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),_({exportFormat:t,newHyperCubeDef:b}),k("qMaxStackedCells",v,b),k("qNoOfLeftDims",v,b),D("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",v,b,"S"),D("qReductionMode",v,b,"N"),D("qSortbyYValue",v,b),D("qIndentMode",v,b),D("qShowTotalsAbove",v,b),I(g,t,n),m.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return B({measures:b.qMeasures,modifierTypes:M}),p&&W(m.qProperty,"storedFilters"),"S"===b.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};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},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},ve={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),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):W(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}}),be.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=ve.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=ve.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 Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Me="measures",Ie="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:Me,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Me,quarantineName:Pe})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",Le="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",je="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:je,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:je,itemPath:ze})}},He={hypercube:V,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:$e}})(),n.default})();var eA=Ut(QR.exports);const tA="qHyperCubeDef.qMeasures",rA="measures",nA="qHyperCubeDef.qDimensions",oA="dimensions",iA="qDef.representation",aA="tableRepresentation",sA="qDef.conditionalColoring",lA="conditionalColoring",uA="qMiniChartDef",cA="miniChartDef",dA=({propertyTree:e,hyperCubePath:t})=>{const r=eA.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 St(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),eA.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),eA.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),eA.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{eA.quarantineArrayProp({properties:e,arrayPath:nA,itemPath:iA,arrayName:oA,quarantineName:aA}),eA.quarantineArrayProp({properties:e,arrayPath:tA,itemPath:iA,arrayName:rA,quarantineName:aA}),eA.quarantineArrayProp({properties:e,arrayPath:tA,itemPath:sA,arrayName:rA,quarantineName:lA}),eA.quarantineArrayProp({properties:e,arrayPath:tA,itemPath:uA,arrayName:rA,quarantineName:cA})})(r.properties),r};const pA=/^q[A-Z]/,fA=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],hA=e=>"object"==typeof e&&null!==e,mA=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!pA.test(e)&&!fA.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>hA(e)?mA(e,`${o}.${t}`):e)):hA(n)&&(e[r]=mA(n,o))})),e),gA=(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:sE.Pixels,pixels:e}:{type:sE.FitToContent}:i.qDef.columnWidth=e}return i},vA=({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)}mA(e.properties)}const a=eA.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(eA.conditionalShow.unquarantine(a.qProperty),i)St(a,"qProperty.totals.show",!1),St(a,"qProperty.usePagination",!0),St(a,"qProperty.accessibleHeader",!0);else{eA.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{eA.unquarantineArrayProp({properties:e,arrayPath:nA,itemPath:iA,arrayName:oA,quarantineName:aA}),eA.unquarantineArrayProp({properties:e,arrayPath:tA,itemPath:iA,arrayName:rA,quarantineName:aA}),eA.unquarantineArrayProp({properties:e,arrayPath:tA,itemPath:sA,arrayName:rA,quarantineName:lA}),eA.unquarantineArrayProp({properties:e,arrayPath:tA,itemPath:uA,arrayName:rA,quarantineName:cA})})(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=>gA(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>gA(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(St(a,"qProperty.qHyperCubeDef.qDimensions",o),St(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var bA={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}},yA=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(yA||{}),xA=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(xA||{}),SA=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(SA||{}),wA=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(wA||{});const CA=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,EA=e=>{if(!Array.isArray(e))return"";let t="{<";const r=[];if(e.forEach((e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,n="}",o="";switch(e.type){case SA.SEARCH:o=(e=>{let t="",r="";const n=e.options?.mode;if(!n)return"";switch(n){case yA.BEGINNING_OF_WORD:t="*^",r="*";break;case yA.ENDS_WITH:t="*";break;case yA.STARTS_WITH:r="*";break;case yA.MATCHES_EXACTLY:break;case yA.CONTAINS:default:t="*",r="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${r}"`:""})(e);break;case SA.CONDITION:o=(e=>{const{options:t}=e,r=t?.mode===xA.GENERAL,n=t?.modifier?.type===wA.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!n&&(!t.firstValue?.aggregator||!t.firstValue?.field)||n&&!t.firstValue?.fixedValue||r&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";r&&n?(i=`${t.conditionField?.aggregator}(${CA(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!r&&n?(i="",a=`${t.firstValue?.fixedValue}`,s=""):r||n?(i=`${t.conditionField?.aggregator}(${CA(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${CA(t.firstValue?.field)})`):(i=`${CA(e.field)}`,a=`${t.firstValue?.aggregator}(total ${CA(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let u="";if(o.length>1){if(!n&&(!t.secondValue?.aggregator||!t.secondValue?.field)||n&&!t.secondValue?.fixedValue)return"";let e,a;r&&n?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!r&&n?(e=`${t.secondValue?.fixedValue}`,a=""):r||n?(e=`${t.secondValue?.aggregator}(${CA(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${CA(t.secondValue?.field)})`,a=` and ${i}`),u=`${a}${o[1]}${e}`}return`"${l}${u}"`})(e);break;case SA.CLEAR_SELECTION:o=`[${e.field}]=`,t="",n="";break;case SA.VALUES:default:o=e.options?.values?e.options.values.map((e=>`'${e.replace(/'/g,"''")}'`)).join(","):""}""!==o&&r.push(`${t}${o}${n}`)})),0===r.length)return;return t+=`${r.join(",")}>}`,t},RA=[];for(let e=0;e<256;++e)RA.push((e+256).toString(16).slice(1));let AA;const PA=new Uint8Array(16);var MA={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function IA(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!AA){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");AA=crypto.getRandomValues.bind(crypto)}return AA(PA)}();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(RA[e[t+0]]+RA[e[t+1]]+RA[e[t+2]]+RA[e[t+3]]+"-"+RA[e[t+4]]+RA[e[t+5]]+"-"+RA[e[t+6]]+RA[e[t+7]]+"-"+RA[e[t+8]]+RA[e[t+9]]+"-"+RA[e[t+10]]+RA[e[t+11]]+RA[e[t+12]]+RA[e[t+13]]+RA[e[t+14]]+RA[e[t+15]]).toLowerCase()}(n)}const kA=()=>crypto?.randomUUID?.()??function(e){return MA.randomUUID&&!e?MA.randomUUID():IA(e)}();class DA extends s{constructor(e){super(e)}#e(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.keys(t).length;this.hcProperties.qLayoutExclude.allColumnOrder={...t,...Object.fromEntries(e.map(((e,t)=>[e,r+t])))}}#t(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.entries(t).filter((([t])=>!e.includes(t)));this.hcProperties.qLayoutExclude.allColumnOrder=Object.fromEntries(r.map((([e],t)=>[e,t])))}async addDimensions(e,t=!1){const r=await super.addDimensions(e,t);return this.#e(r.map((e=>e.qDef.cId))),r}async removeDimensions(e,t=!1){const r=await super.removeDimensions(e,t);return this.#t(r.map((e=>e.qDef.cId))),r}async addMeasures(e,t=!1){const r=await super.addMeasures(e,t);return this.#e(r.map((e=>e.qDef.cId))),r}async removeMeasures(e,t=!1){const r=await super.removeMeasures(e,t);return this.#t(r.map((e=>e.qDef.cId))),r}async#r(e){const t=this.getMeasure(e);if(t){const r=this.getAlternativeMeasures().findIndex((t=>t.qDef.cId===e));await this.removeMeasure(r,!0),await this.addMeasure(t,!1,this.getMeasures().length)}}async#n(e){const t=this.getMeasure(e);if(t){const r=this.getMeasures().findIndex((t=>t.qDef.cId===e));await this.removeMeasure(r,!1),await this.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#o(e){const t=this.getDimension(e);if(t){const r=this.getAlternativeDimensions().findIndex((t=>t.qDef.cId===e));await this.removeDimension(r,!0),await this.reinsertDimension(t,!1,this.getDimensions().length)}}async#i(e){const t=this.getDimension(e);if(t){const r=this.getDimensions().findIndex((t=>t.qDef.cId===e));await this.removeDimension(r,!1),await this.addDimension(t,!0,this.getDimensions().length)}}#a(e){const{qDimensions:t,qMeasures:r}=this.hcProperties,n=new Map([...t,...r].map(((e,t)=>[e.qDef.cId,t])));this.hcProperties.qColumnOrder=e.reduce(((e,t)=>{const r=n.get(t);return void 0!==r?[...e,r]:e}),[])}async toggleAlternatives(e,t){await Promise.all(e.map((e=>"dimension"===e.type?e.isAlternative?this.#o(e.id):this.#i(e.id):e.isAlternative?this.#r(e.id):this.#n(e.id)))),this.#a(t)}setAllColumnOrderForColumnIds(e){const t=e.reduce(((e,t,r)=>(e[t]=r,e)),{});this.hcProperties.qLayoutExclude.allColumnOrder=t}updateColumnOrders(e){this.setAllColumnOrderForColumnIds(e),this.#a(e)}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find((t=>t.id===e))}addFilterField(e){const t=e.qTags??e.tags,r=Array.isArray(t)&&t.includes("$numeric"),n=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:n?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:kA(),isNumeric:r};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=EA(o),i}addFilters(e){const t=[];for(const r of e)t.push(this.addFilterField(r));return t}#s(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=EA(t),t}removeFilters(e){if(0===e.length)return[];let t=[];const r=[...e].sort(((e,t)=>t-e));t=this.getFilters().filter(((t,r)=>e.includes(r)));for(const e of r)this.#s(e);return t}}const TA=(e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;return e.splice(r,1),r};function OA(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function LA(e){return e>0?0:1}function qA(e){return e.translator.get("Visualizations.Descriptions.Column")}function NA(e){return{measures:{min:LA,max:1e3,description:()=>qA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;OA(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties,i=(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n;TA(o,i)}},dimensions:{min:LA,max:1e3,description:()=>qA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return OA(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;TA(o,n)}}}}let _A=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}({}),jA=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const zA=e=>{switch(e?.type){case"url":return _A.Link;case"image":return _A.Image;case"indicator":return _A.Indicator;case"miniChart":return _A.MiniChart;default:return _A.Text}},FA=({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}}),$A=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>zA(e.qDef.representation)===_A.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}}}}}},HA=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:FA({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>zA(e.qDef.representation)===_A.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>zA(e.qDef.representation)===_A.Link&&e.qDef.representation?.urlPosition===jA.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>zA(e.qDef.representation)===_A.Link&&e.qDef.representation?.urlPosition===jA.Attribute},...$A(r)}},BA=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[_A.Image],i=!n?.("qMiniChartDef")&&t[_A.MiniChart],a=!n?.("tableIndicators")&&t[_A.Indicator],s=o&&t[_A.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=>zA(e.qDef.representation)===_A.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 WA,VA={};WA=VA,(()=>{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:()=>Me});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 v(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function b(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),v=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(v,">}").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(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:v,getAboveCompSuffix:b,getAboveComp:function(e,t,r,n){return v(e,t)+r+b(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: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=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 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),M={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function D(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(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]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function L(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){L(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(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}M.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);L(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(M.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(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(!D(t[0])&&D(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(M.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){D(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},M.apply=function(e,t){t.forEach((function(t){var r,n,o=O(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(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(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(k(a)&&k(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(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=O(e,t.from);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},M.clone=function(e){return P({},e)},M.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},M.updateObject=function(e,t){Object.keys(e).length?M.apply(e,M.generate(e,t)):P(e,t)};const q=M;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 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=_(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 $="movingAverage";function H(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 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===$)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 v=t;if(E.needDimension({modifier:n,properties:o,layout:i})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},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(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=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(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($))return!1;var i=H(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),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",ve="qDef.qLabelExpression",be="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,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},getLabelRef:function(e){return s(e,we)?be:ge},getLabelExpressionRef:function(e){return s(e,we)?ye:ve}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,me,s(e,he)),a(e,be,s(e,ge)),a(e,ye,s(e,ve)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,he,s(e,me)),a(e,ge,s(e,be)),a(e,ve,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 Me={modifiers:Pe,apply:ke,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&Ie[e.id]&&Ie[e.id].masterItemSubscriber&&(Ie[e.id].masterItemSubscriber&&Ie[e.id].masterItemSubscriber.unsubscribe(),delete Ie[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,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: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);We({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:qe};var Ie={};function ke(){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;Ie[t.id]=Ie[t.id]||{isFirstTime:!0};var u=Ie[t.id].isFirstTime;if(Ie[t.id].isFirstTime=!1,r&&"object"===Ae(r))return De({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=Ie[t.id].lastReloadTime;if(Ie[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Oe({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 Be({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:_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 Ve({model:t}).then((function(o){return Ue({libraryIds:n,model:t}).then((function(n){return h&&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"===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}),De({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 Ne(r).forEach((function(e){return Te(e)})),Ye({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function De(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&&!Oe({measures:t,properties:r}))return t.forEach((function(e){return Te(e)})),Promise.resolve();var l=o?void 0:Xe(r);return Ve({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&&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=Ce.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||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(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"===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 Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({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(Pe[n.type]&&!n.disabled)return n}}function qe(e){var t=Le(e);return!t||Pe[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"===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 He(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Be(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&We({modifiers:_e(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 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=q.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=Ne(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=_e(t);if(We({modifiers:n,properties:e})){var i=He(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)?(Ie[t.id].masterItemSubscriber=Ie[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 ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ie[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in WA.default=n.default,n)-1===["default"].indexOf(Ze)&&(WA[Ze]=n[Ze]);Object.defineProperty(WA,"__esModule",{value:!0})})();var UA=Ut(VA);const GA={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},YA={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}},KA=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)=>(!UA.hasActiveModifiers({measures:[e],properties:t.properties})||UA.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")}),XA={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:sE.Auto,translation:"Common.Auto"},{value:sE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:sE.Pixels,translation:"Object.Table.Column.Pixels"},{value:sE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:sE.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===sE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===sE.Percentage}},JA=()=>({...GA,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}]},...YA,...XA}),ZA={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"}},QA=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:KA(e)}},eP=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:ZA},presentation:{type:"items",translation:"properties.presentation",items:{...JA(),...HA(e)}}}}}),tP=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:QA(e)},presentation:{type:"items",translation:"properties.presentation",items:{...JA(),...BA(e,{[_A.Image]:!0,[_A.Indicator]:!0,[_A.MiniChart]:!0})}}}}}),rP=e=>({...eP(e),...tP(e)}),nP=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...rP(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}}}),oP={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}},iP=({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},aP=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")}),sP=(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}}}),lP=(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},uP=({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=>lP(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...xe(n).filter((e=>!a.includes(e))).map((e=>lP(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),cP=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],dP=({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=>lP(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...cP.filter((e=>!i.includes(e))).map((e=>lP(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),pP=({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:uP({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:dP({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:sP(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:sP(`${e}.background`,"properties.background",((t,r)=>{const n=r?AC.WHITE:AC.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),fP=({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:sP(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:sP(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),hP=(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}},mP=e=>e.grid?.zebraStripes?.show,gP={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)}},vP=e=>e?.content?.hoverEffect,bP={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:vP,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:vP,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},yP=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,xP=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:pP({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:hP,disableNoneCallback:yP}),dimensionValueSection:pP({section:"dimensionValues",translator:t,flags:e,getThemeValue:hP}),measureValueSection:pP({section:"measureValues",translator:t,flags:e,getThemeValue:hP}),totalRowSection:pP({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:hP,disableNoneCallback:yP}),nullValues:fP({section:"nullValues",fallbackBackground:AC.NULL_VALUE_BACKGROUND,getThemeValue:hP}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...gP},border:sP("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??AC.BORDER_MEDIUM)),divider:sP("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??AC.BORDER_HEAVY))}}}},hoverEffectSection:bP,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:mP,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:mP,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:mP,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:mP,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),SP=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[xP(e),aP(e),iP(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:"-"}]},...oP}}),wP={uses:"sorting"},CP={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},EP=e=>({type:"items",component:"accordion",items:{data:nP(e),sorting:wP,addOns:CP,settings:SP(e)}});function RP(e){return{definition:EP(e),exploration:bA,data:NA(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 vA({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>dA({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:e=>new DA(e),usePropertyHandler:"sn-table-data"}}}var AP={exports:{}};
|
|
103
103
|
/*!
|
|
104
104
|
* CSSJanus. https://github.com/cssjanus/cssjanus
|
|
105
105
|
*
|
|
@@ -118,4 +118,4 @@ function Hi(e,t){let r;return r=t?Ti(e).withConfig({displayName:t.label,shouldFo
|
|
|
118
118
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
119
|
* See the License for the specific language governing permissions and
|
|
120
120
|
* limitations under the License.
|
|
121
|
-
*/!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"),w=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=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"),M=new RegExp(s+"(left)"+v,"gi"),I=new RegExp(s+"(right)"+v,"gi"),k=new RegExp(s+"(ltr)"+v,"gi"),D=new RegExp(s+"(rtl)"+v,"gi"),T=new RegExp(s+"([ns]?)e-resize","gi"),O=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"),q=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"),j=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),_=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"),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 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(k,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(M,"$1"+e).replace(I,"$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(T,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(_,G).replace(z,K).replace(F,J).replace(H,J).replace($,K).replace(B,X).replace(W,X).replace(L,"$1$2$3$8$5$6$7$4$9").replace(q,"$1$2$3$8$5$6$7$4$9").replace(N,V).replace(j,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)}(pP,pP.exports);var fP=Vt(pP.exports);function hP(e,t,r){switch(e.type){case Xr:case Kr:case Gr:return e.return=e.return||e.value;case Yr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Gr&&(e.children=e.value)}))}var n=zn(Array.prototype.concat(e.children),hP);return ln(n)?e.return=e.value+"{"+n+"}":""}function mP(e,t,r,n){if(e.type===Jr||"@supports"===e.type||e.type===Yr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Yr)){var o=fP.transform(hP(e));e.children=o?On(o)[0].children:[],e.return=""}}function gP(e,t){let r=null;const n=new Map,o=new Set;function i(o){let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!r?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}Object.defineProperty(mP,"name",{value:"stylisRTLPlugin"});const bP=gP((({options:e,...t})=>GE($C(t,e)())),((e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks));function vP(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function yP(e){const t=GE((()=>[])),r=GE((function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)}));return r.effect=e,r.INTERNAL_onInit=e=>{const n=new Set;let o,i=0,a=!1,s=!1,l=!1;function u(){if(i)return;n.clear();let t=!0;const c=o=>{if(l)return e.get(o);if(o===r){const t=h(e,o);if(!mE(t)){if(!fE(o))throw new Error("no atom init");S(e,o,o.init)}return gE(t)}const i=b(e,o);try{return gE(i)}finally{C.d.set(o,i.n),d.get(o)?.t.add(r),t?n.add(o):d.has(o)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...o)=>{const a=h(e,n);try{if(++i,n===r){if(!fE(n))throw new Error("atom not writable");const t=a.n,r=o[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),v(e,n)))}return y(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(vP())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{o?.();const e=r.effect(c,w);if("function"!=typeof e)return;o=()=>{if(!i)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,o=void 0}}}finally{t=!1,n.forEach((t=>{C.d.set(t,h(e,t).n)})),x(e,r),g(e)}}const c=WE(e),d=c[1],p=c[3],f=SE(c[6]),h=c[11],m=c[12],g=c[13],b=c[14],v=c[15],y=c[16],x=c[17],S=c[20],w=function(e,t){let r=xP.get(e);r||(r=new Set,xP.set(e,r),t.f.add((function(){for(const e of r)r.delete(e),e()})));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,(function(){p.delete(r)})),f.m.add(r,(function(){w.add(u),o&&w.delete(o)})),f.u.add(r,(function(){w.delete(u),o&&w.add(o)})),f.c.add(r,(function(){a?s=!0:w.add(u)}))},vP()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const xP=new WeakMap;class SP{#e={on:new Map,once:new Map};#t=10;#r(e){this.listenerCount(e)>this.#t&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#n(e,t,r){const n=this.#e[e].get(t)??new Set;n.add(r),this.#e[e].set(t,n),this.#r(t)}setMaxListeners(e){this.#t=e}on(e,t){this.#n("on",e,t)}once(e,t){this.#n("once",e,t)}off(e,t){this.#e.on.get(e)?.delete(t),this.#e.once.get(e)?.delete(t)}emit(e,...t){this.#e.on.get(e)?.forEach((e=>{e(...t)})),this.#e.once.get(e)?.forEach((e=>{e(...t)})),this.#e.once.delete(e)}listenerCount(e){return(this.#e.on.get(e)?.size??0)+(this.#e.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#e.on.clear(),this.#e.once.clear()):(this.#e.on.delete(e),this.#e.once.delete(e))}}const wP=GE((()=>new SP));let CP=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),EP=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}({}),RP=function(e){return e.A="ascending",e.D="descending",e}({}),AP=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const PP=[0,0],MP=e=>"number"==typeof e&&!Number.isNaN(+e),IP=e=>MP(e.qNum),kP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),DP=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),TP=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},OP=(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&&ne(e.localPaletteColors[t].color).blend(ne(s.color),s.t)},LP=(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:DP(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:TP(n,t,r)})))),n},qP=(e,t,r,n)=>{const o=LP(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=OP(e,a,t);break}n=i}return r})(o,t);return a},NP=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!MP(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||!MP(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)},jP=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=NP(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||!MP(t))return 0;let a=r&&MP(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}},_P=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=jP(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 TP(o,r.limitPaletteColorIndex,n);const a=DP(r.limitRange,t);return qP(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}},zP=(CC().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)"),FP=4/3,HP="12px",$P="600",BP="Source Sans Pro, sans-serif",WP={height:"auto",fontSize:HP,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"}},VP={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:$P},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},UP=(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,GP=(e,t)=>e.representation.type===CA.Image&&"fitHeight"===e.representation.imageSize?UP(t,e.representation):e.align,YP=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",KP=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},XP=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,JP=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",ZP=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",QP=24,eM=pc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),tM=pc(rp,{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?YP(e,n):void 0}))),rM=pc(rp,{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},[`& .${QC}`]:{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"},[`& .${QC}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),nM=pc(rp,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),oM=pc(rp,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),iM=pc(pd,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})((({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n}))),aM=GE(),sM=GE(0),lM=GE(0),uM=4/3,cM=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function dM(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const pM=(e,t)=>e?{borderBottomColor:RC.DARK_MODE_BORDER,borderRightColor:RC.DARK_MODE_BORDER,borderLeftColor:RC.DARK_MODE_BORDER,borderTopColor:RC.DARK_MODE_BORDER}:{borderLeftColor:RC.BORDER_MEDIUM,borderRightColor:RC.BORDER_MEDIUM,borderTopColor:RC.BORDER_HEAVY,borderBottomColor:t?RC.BORDER_HEAVY:RC.BORDER_LIGHT},fM=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*uM+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},hM=e=>e.components?.find((e=>"theme"===e.key)),mM=(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:cM(r?.fontColor)?dM(RC.TEXT,t,r?.fontColor):i||RC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...pM(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function gM(e,t,r){const n=hM(e)?.header,o=mM("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ne(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=MC(o.background??RC.WHITE,sE),o.activeBackground=MC(o.background??RC.WHITE,lE),o}const bM=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in VP)(e)&&Object.assign(t,VP[e]))),t};function vM(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&&kC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?bM(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=AC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const yM=[];for(let e=0;e<256;++e)yM.push((e+256).toString(16).slice(1));let xM;const SM=new Uint8Array(16);var wM={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function CM(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!xM){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");xM=crypto.getRandomValues.bind(crypto)}return xM(SM)}();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(yM[e[t+0]]+yM[e[t+1]]+yM[e[t+2]]+yM[e[t+3]]+"-"+yM[e[t+4]]+yM[e[t+5]]+"-"+yM[e[t+6]]+yM[e[t+7]]+"-"+yM[e[t+8]]+yM[e[t+9]]+"-"+yM[e[t+10]]+yM[e[t+11]]+yM[e[t+12]]+yM[e[t+13]]+yM[e[t+14]]+yM[e[t+15]]).toLowerCase()}(n)}const EM=()=>crypto?.randomUUID?.()??function(e){return wM.randomUUID&&!e?wM.randomUUID():CM(e)}();var RM={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:PM(e),value:PM(t),useEqualSign:r}}(n,o,i))})),t}},AM=RM;function PM(e){try{return decodeURIComponent(e)}catch{return e}}function MM(e){if(!(this instanceof MM))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:()=>AM.fromSearchString(t.search)}})}function IM(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}MM.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},MM.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=IM(t.key),t.value?r+=`=${IM(t.value)}`:r+=t.useEqualSign?"=":"";return r};var kM=MM;var DM,TM=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}},OM=class{decode(e){let t="";const r=new TM(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},LM=e=>e>=0&&e<=1114111,qM=e=>e.match(/[\s]/),NM=class extends OM{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&&!qM(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return LM(a)?String.fromCharCode(a):"�"}},jM=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}},_M=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 jM.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return jM.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||jM.newInstanceIfNeeded(e,t,this._value)}},zM=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 _M);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},FM=(()=>{const e=[],t=[],r=new zM;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})(),HM=class extends OM{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,FM.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=FM.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)&&LM(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)&&LM(n)?String.fromCharCode(n):null}},$M=class extends OM{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),LM(i))?String.fromCharCode(i):(e.reset(),null)}},BM=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,WM=5e6,VM=5e5,UM=(e,t)=>{const{maxByteSizeSvg:r=VM,maxByteSizeImage:n=WM}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=BM.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&&(DM=document.createElement("div"));var GM=Array.prototype.indexOf,YM=[",",".","_"," "],KM=[",",".","-","_"," "],XM={width:["%"],height:["%"]},JM={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},ZM={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":JM.image,"background-color":JM.color,"border-color":JM.color,"border-image":JM.image,color:JM.color,icon:JM.image,"list-style-image":JM.image,"outline-color":JM.color},QM={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function eI(e,t,r){let n;if(t){if(GM)return GM.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 tI(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return DM.appendChild(r),t=DM.innerHTML,DM.removeChild(r),t}function rI(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=oI(e).toLowerCase(),t=oI(t),i=0;i<QM.attr_name.length;i++)if(e.match(QM.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<QM.attr_val.length;i++)if(t.toLowerCase().match(QM.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=XM[e],n||(n=KM),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]/)&&eI(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function nI(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=oI(e).toLowerCase(),t=oI(t),eI(e,QM.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<QM.css_val.length;n++)if(t.toLowerCase().indexOf(QM.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=ZM[e],o||(o=JM.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]/)&&eI(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function oI(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new HM,new $M,new NM];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 iI=[];for(let e=0;e<255;e++)iI[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var aI={html:e=>tI(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]=nI(t,r[t],!0),i+=nI(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]=rI(e,t[e],!0),o+=rI(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function sI(e,t){throw new Error(t)}var lI={canonicalize:oI,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?aI.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&sI(this,"Invalid parameter type"),aI.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&sI(this,"Invalid parameter type"),aI.attr(e)):void sI(this,"Invalid parameter type")},encodeForAttr:rI,encodeForAttr2:function(e){return rI("nonsens",e,!0)},encodeForCSS:nI,encodeForHref:function(e){oI(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new kM(e),r=kM.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+kM.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=YM),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),eI(o,t)>=0||null==iI[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:tI,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=oI(t).toLowerCase():sI(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:UM,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 uI=(e,t)=>t.qAttrExps?.qValues?.[e],cI=(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"}}},dI=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!lI.isSafeDataURL(t))?{type:CA.Text,url:void 0,text:e,labelStructure:o}:{type:CA.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:cI(n,a),labelStructure:o,imageBox:i},pI=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:CA.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:CA.MiniChart,text:n,miniChart:a}},fI=(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===EA.Attribute?void 0:r?.urlLabel},hI=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:CA.Link,url:lI.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:CA.Text,url:void 0,text:t,labelStructure:e}}},mI=({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=RA(t),d=s(e);return c===CA.Image&&u[CA.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=uI(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),dI({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 dI({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=uI(r.imageLabel??-1,e)?.qText??n;return dI({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:CA.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===CA.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===EA.Attribute){const i=fI(r.url??-1,e,t);return hI({labelStructure:n,text:o||i||"",url:i})}if(i===EA.Dimension){const i=fI(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),hI({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:CA.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===CA.Indicator&&u[CA.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:CA.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===CA.MiniChart&&u[CA.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?pI(e,t,i,d):{type:CA.Text,url:void 0,text:d,labelStructure:a}};import.meta.env&&import.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},t){var r;let n,o;const i={getItem:(r,i)=>{var a,s;const l=e=>{if(n!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}n=e}return o},u=null!=(s=null==(a=e())?void 0:a.getItem(r))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let a;try{a=null==(r=e())?void 0:r.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),a&&(i.subscribe=(s=a,(e,t,r)=>s(e,(e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)}))))}();const gI=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),bI=new WeakMap,vI=()=>{};function yI(e,t=vI){return((e,t,r)=>{const n=gI((()=>new WeakMap),bI,t);return gI(e,n,r)})((()=>{const r=new WeakMap,n=new WeakMap,o=GE(0),i=GE([]);i.INTERNAL_onInit=e=>{e.set(i,[()=>e.set(o,(e=>e+1))])},"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(o.debugPrivate=!0,i.debugPrivate=!0);const a=GE((s=>{let l;s(o);try{l=s(a)}catch(e){}const u=s(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then((e=>{n.set(u,e);const[t]=s(i);t()}),(e=>{r.set(u,e);const[t]=s(i);t()})),r.has(u))throw r.get(u);return n.has(u)?{p:u,v:n.get(u)}:l&&"v"in l?{p:u,f:t(l.v),v:l.v}:{p:u,f:t()}}));return a.init=void 0,"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(a.debugPrivate=!0),GE((e=>{const t=e(a);return"f"in t?t.f:t.v}),((t,r,...n)=>r(e,...n)))}),e,t)}const xI=GE((e=>{const t=e(NR),r=e(yR);return e(xR),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}})),SI=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),wI=({cId:e})=>e??EM(),CI=1e4;function EI(e,t){return[...t].reverse().find((t=>t*e<=CI))||Math.floor(CI/e)}function RI(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function AI(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function PI(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return MP(r?.qNum)}function MI(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 II=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const kI=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce(((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e}),{visible:[],hiddenDim:[],hiddenMea:[]});return o.map(((e,t)=>{const r=e<n,o=(r?i:a).filter((t=>t<e)).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}}))})(n.length===a?n:Array.from(Array(a).keys()),o,i);return s.map((n=>function(e,t,r,n){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,{colIdx:s,pageColIdx:l,visibleDimInfoIdx:u,visibleMeasureInfoIdx:c}=t,d=o.length,p=s<d,f=p?o[s]:i[s-d],h=p&&o[s].qGrouping===uE.Cyclic,m=s===a[0];let g,b,v="",y=!1,x=-1,S=0,w=[];const{representation:C,conditionalColoring:E}=f;if(p&&void 0!==u){const e=f;v=e.qGroupFieldDefs[e.qGroupPos],S=e.qGroupPos,w=e.qGroupFallbackTitles,y=e.qLocked??!1,x=u,({qDimensionType:g}=e)}else({qMiniChart:b}=f);const{qFallbackTitle:R,textAlign:A,qAttrExprInfo:P,qSortIndicator:M,qReverseSort:I,qApprMaxGlyphCount:k,columnWidth:D,qLibraryId:T}=f;return{isDim:p,isCyclic:h,isLocked:y,fieldId:v,colIdx:s,qLibraryId:T,pageColIdx:l,qApprMaxGlyphCount:k,qReverseSort:I,columnWidth:D??{type:aE.Auto},selectionColIdx:x,isActivelySorted:m,id:wI(f),label:R,groupDimensionPos:S,groupDimensionLabels:w,qAttrExprInfoIDs:P.map((e=>e.id)),qAttrExprInfoIndex:SI(f),sortDirection:M&&"N"!==M?M:"A",totalInfo:AI(e,p,l,c??-1),...!p&&{isTotalNumeric:PI(e,c??-1)},...MI(A,g,p,r,n),representation:C,conditionalColoring:p?void 0:E,qMiniChart:b}}(e,n,t,r)))},DI=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",TI=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,OI={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},LI=GE((e=>{const t=e(qI),r=e(hR),n=e(xI),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>CI?{...t,rowsPerPage:EI(l,t.rowsPerPageOptions),page:0}:t})),qI=GE(OI),NI=GE((e=>{const t=e(hR),r=e(NR),n=e(xI);return TR(t,r)?{page:n.page||OI.page,rowsPerPage:n.rowsPerPage||OI.rowsPerPage,rowsPerPageOptions:OI.rowsPerPageOptions}:e(LI)}),((e,t,r)=>{t(qI,(e=>({...e,...r})))})),jI=!0,_I=GE((async e=>{const t=e(hR),r=e(NR),n=e(LR),{page:o,rowsPerPage:i}=e(NI),a=e(xI),s=e(HR),l=e(dR),u=e(gR),c=t.qHyperCube.qSize.qcx,d=t.qHyperCube.qSize.qcy,p=Math.ceil(d/i),f=a.visibleTop??o*i,h=a.visibleHeight??Math.min(i,d-f),m=d>10,g=RI(t,r),b=kI(t,jI,n),v=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(s,t,{qLeft:0,qTop:f,qHeight:h,qWidth:c});u||(a.qTop=f,a.qHeight=h,a.rowsPerPage=i,a.page=o);const y=v.at(0)?.qMatrix.map(((e,r)=>{const o=[];return b.forEach(((i,a)=>{const s=e[a],u=DI(i.isDim,s,t),c=!i.isDim&&s.qIsNull,d=c?kP(u):IP(s);o[a]={id:EM(),...s,align:II(d,i.bodyTextAlign,n,jI),rowIdx:r+f,colIdx:i.colIdx,pageRowIdx:r,pageColIdx:a,selectionColIdx:i.selectionColIdx,isSelectable:i.isDim&&!i.isLocked,isLastRow:r===h-1,isNumeric:d,isNull:(!c||!d)&&TI(s,i.isDim),representation:mI({cell:s,representationProperties:i.representation,attrExprInfoIndex:i.qAttrExprInfoIndex,env:l,conditionalColoring:i.conditionalColoring,miniChartOnMeasure:i.qMiniChart,getText:()=>c?u:s.qText,direction:n,enabledFeatures:{[CA.Image]:!0,[CA.Indicator]:!0,[CA.MiniChart]:!0}})}})),o}))??[];return{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:m,totalsPosition:g,columns:b,rows:y}})),zI=yI(_I,(e=>e)),FI=25e4,HI=GE((e=>{const t=e(hR),r=e(NR),n=e(AR),o=e(LR),i=kI(t,false,o),a=RI(t,r),s=t.qHyperCube.qSize.qcy,l=Math.min(FI,s),u=s>FI&&!!n.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}})),$I={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},BI=GE(),WI=GE((e=>{const t=e(_R),r=e(BI);return r||(t?e(zI)??$I:e(HI))})),VI=GE((e=>e(WI).totalsPosition)),UI=GE((e=>e(WI).columns)),GI=GE((e=>e(WI).rows)),YI=GE((e=>e(WI).totalRowCount)),KI=GE((e=>e(WI).totalColumnCount)),XI=GE((e=>e(WI).paginationNeeded)),JI=GE((e=>{const t=e(GR),r=e(XR),n=e(hR),o=e(VI),i=e(GI),a=o.atTop,s=function(e,t,r,n){const o=hM(e)?.content,i=mM("content",t,o);i.background=t.background.color;const a=fM(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=cM(l)||!!c,p=cM(s)||!!u,f=d||p;let h;h=cM(s)?dM(RC.HOVER,t,s):u||(d?"":RC.HOVER);const m=f?dM(AC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=gM(n,r,!a),u=function(e,t,r){const n=hM(e)?.content,o=mM("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=gM(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:u}})),ZI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},QI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=ZI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},ek=(e,t,r,n=RC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=QI(e,t,r);return qC(i,o,a,n)??n},tk=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return HP}},rk=e=>e?.some((e=>"italic"===e))?"italic":"normal",nk=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?$P:"normal",ok=e=>!1===e?1:3,ik=e=>parseInt(e??WP.fontSize,10)*FP,ak=e=>e?.some((e=>"underline"===e))?"underline":"none",sk=GE((e=>{const t=e(NR),r=e(_R),n=e(XR),o=e(hR),i=e(JI),{header:a,dimensionValues:s,measureValues:l,totalValues:u,nullValues:c,grid:d,content:p}=hM(o)??{},f=r?RC.WHITE:RC.TRANSPARENT,h=ek(n,a,"object.straightTableV2.dimension.label.name.backgroundColor",f),m=t?.maxLineCount??p?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),g={header:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??BP,fontSize:tk(a?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:rk(a?.fontStyle),fontWeight:nk(a?.fontStyle,$P),textDecoration:ak(a?.fontStyle),color:ZI(n,a?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??RC.TEXT,background:h},headerMenuHoverBackground:MC(h,sE),headerMenuActiveBackground:MC(h,lE),dimension:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??BP,fontSize:tk(s?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:rk(s?.fontStyle),fontWeight:nk(s?.fontStyle,"normal"),textDecoration:ak(s?.fontStyle),color:ZI(n,s?.fontColor)??ZI(n,p?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??RC.TEXT,background:QI(n,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??RC.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??BP,fontSize:tk(l?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:rk(l?.fontStyle),fontWeight:nk(l?.fontStyle,"normal"),textDecoration:ak(l?.fontStyle),color:ZI(n,l?.fontColor)??ZI(n,p?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??RC.TEXT,background:QI(n,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??RC.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??BP,fontSize:tk(u?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:rk(u?.fontStyle),fontWeight:nk(u?.fontStyle,$P),textDecoration:ak(u?.fontStyle),color:ZI(n,u?.fontColor)??ZI(n,p?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??RC.TEXT,background:ek(n,u,"object.straightTableV2.total.label.value.backgroundColor",f)},nullValues:{fontStyle:rk(c?.fontStyle),fontWeight:nk(c?.fontStyle,"normal"),textDecoration:ak(c?.fontStyle),color:ZI(n,c?.fontColor)??ZI(n,p?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??RC.TEXT,background:ZI(n,c?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??RC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:m??ok(o.multiline?.wrapTextInCells),headerLineClamp:ok(o.multiline?.wrapTextInHeaders),border:ZI(n,d?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?RC.DARK_MODE_BORDER:RC.BORDER_MEDIUM),divider:ZI(n,d?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??RC.BORDER_HEAVY,hoverColors:{color:ZI(n,p?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:ZI(n,p?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!d?.zebraStripes?.show,odd:{color:ZI(n,d?.zebraStripes?.color?.odd),background:ZI(n,d?.zebraStripes?.background?.odd)},even:{color:ZI(n,d?.zebraStripes?.color?.even),background:ZI(n,d?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===ZI(n,c?.background),overrideNullValueColor:void 0===ZI(n,c?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:PC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:m},{headerMinRowHeight:b,totalRowLineHeight:v,totalRowMinHeight:y,contentLineHeight:x,contentMinRowHeight:S}=(e=>{const t=Math.max(ik(e.header.fontSize)+8,32),r=ik(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(ik(e.dimension.values.fontSize),ik(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)}})(g);return g.headerMinRowHeight=b,g.totalRowLineHeight=v,g.totalRowMinHeight=y,g.contentLineHeight=x,g.contentMinRowHeight=S,g})),lk=(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(iE.PixelsMax,Math.max(iE.PixelsMin,f)),i-=n[a]};switch(s){case aE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?iE.PixelsDefault:+e)(l),h();break;case aE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?iE.PercentageDefault:+e)(u)/100*t,h();break;case aE.FitToContent:e.representation?.type===CA.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case aE.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(iE.AutoMinTable,e)}))}return n},uk=GE((e=>{const t=e(sk),r=e(WI).totalsPosition,n=e(SR),{measureText:o}=e(bP({...t.header,fontWeight:$P})),{measureText:i}=e(bP({...t.totalRow,fontWeight:$P})),{estimateWidth:a}=e(bP(t.dimension.values)),{estimateWidth:s}=e(bP(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,u,c,d,p)=>{let f=0;if(n){const t=4;let r=25;r+=t+24,u&&(r+=20+t),c&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=QP),t+=QP,t+=QP,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}})),ck=GE(null),dk=GE((e=>{const t=e(WI),r=e(UR).width,n=e(lM),o=e(uk);return lk(t.columns,r-n,o)})),pk=GE((e=>e(ck)??e(dk)),((e,t,r)=>{t(ck,r)})),fk=yP((e=>{const t=e(wP);!1===e(aM)&&t.emit("done-adjusting-column-width")})),hk=yP(((e,t)=>{e(hR),t(ck,null)})),mk=({children:e})=>(iR(hk),iR(fk),e);function gk(e){const t=CC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Iu({...t,direction:e})}const bk={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},vk={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},yk=pc("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":{...bk},"&::-moz-range-track":{...bk},"&::-ms-track":{...bk},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...vk},"&::-moz-range-thumb":{...vk},"&::-ms-thumb":{...vk},"&: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"}}))),xk=({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=XC({translator:c.translator}),f=P({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}};YC((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,iE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:aE.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{TC(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=>{TC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===nE.Left||e.key===nE.Right){TC(e);const t=5,r=e.key===nE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===nE.Space||e.key===nE.Enter?(TC(e),s(e),l?.(!1),x()):e.key===nE.Esc&&(TC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return rr.jsx(yk,{style:b,hoverColor:o,isLastColumn:r,className:oE,"data-testid":oE,onMouseDown:e=>{TC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:aE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(TC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":iE.PixelsMin,"aria-valuemax":iE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},Sk=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),wk=({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},Ck=pc(rp,{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"}))),Ek=pc(Sk,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),Rk=pc(_f)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Ak=pc(Lp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),Pk=pc(Bf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),Mk=pc(Bf,{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"}))),Ik=pc("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"}))),kk=pc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),Dk=pc(vd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),Tk=pc(df,{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}))),Ok=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),Lk=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?Lk(t):t:e.parentElement?.children?.[0]},qk=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?qk(t):t},Nk=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===nE.Down||t===nE.Up){const r=e=>t===nE.Down?Lk(e):qk(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},jk=(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 _k={};const zk=({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]=A(!1),f=x.useRef(null),h=T((e=>{e.stopPropagation(),p(!1)}),[p]);return rr.jsxs(rr.Fragment,{children:[rr.jsxs(Mk,{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),_k={}),a?.length&&(p(!0),_k[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:Nk,children:[l?rr.jsx(Ik,{direction:u,isPagination:c}):null,rr.jsxs(kk,{children:[rr.jsx(Tk,{direction:u,isPagination:c,children:rr.jsx(o,{})}),rr.jsx(Dk,{variant:"body2",children:n})]}),a?.length?rr.jsx(Ok,{}):null]},t),a?.length?rr.jsx(Bk,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:jk(a,_k),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},Fk=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&rr.jsx(Pk,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>rr.jsx(zk,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),Hk=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[Fk({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?rr.jsx(Ak,{"data-testid":"group-divider",variant:"middle"}):void 0])),$k={appear:0,enter:0,exit:0},Bk=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?rr.jsx(Rk,{className:eE,open:t,anchorEl:e,onClose:r,transitionDuration:$k,MenuListProps:{id:tE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:Hk({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,Wk=({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]),Vk=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),Uk=(e,t)=>e.some((e=>t[e]>0)),Gk={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Yk=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=A(null),[a,s]=A(Gk);return YC((()=>{e||(s(Gk),i(null))}),[e]),k((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=Vk(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:Uk(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Uk(["qSelected"],e),canSelectPossible:Uk(["qOption"],e),canSelectAlternative:Uk(["qAlternative"],e),canSelectExcluded:Uk(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Kk=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),Xk=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})}))),Jk=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),Zk=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),Qk=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})}))),eD=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),tD=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),rD=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),nD=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),oD=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),iD=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),aD=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),sD=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),lD=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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 uD=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const cD="/qListObjectDef",dD=({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[uD.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:Kk,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:Zk,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:rD,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Qk,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[uD.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:nD,enabled:!0}]}]),!e.isLocked&&r[uD.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:lD,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(cD))},icon:oD,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(cD))},icon:sD,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(cD))},icon:iD,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(cD))},icon:aD,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(cD))},icon:Xk,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:tD,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:eD,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[uD.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:Jk,enabled:!0}]}]),f},pD=({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=JC})=>{const v=P(null),y=XC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=Yk({open:e,headerData:n,app:C,qStateName:c?.qStateName}),A=wk({model:f,headerData:n}),M=Wk({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=T((e=>{e.stopPropagation(),t(!1)}),[t]),k=T((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?rr.jsxs(Ck,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:QC,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?rr.jsx(Ek,{height:b,className:ZC,"data-testid":ZC,isInteractionsActive:i.active??!1,children:rr.jsx(Sk,{})}):null,rr.jsx(Bk,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:dD({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:M,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},fD=e=>e.isDark?{background:e.color,borderColor:RC.DARK_MODE_BORDER,color:RC.DARK_MODE_TEXT,disabledColor:RC.DARK_MODE_DISABLED,iconColor:RC.DARK_MODE_TEXT}:{background:e.color,borderColor:RC.BORDER_MEDIUM,color:RC.TEXT,disabledColor:RC.DISABLED},hD=pc(rp,{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}`}))),mD=pc(Ch,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),gD=pc(pp,{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)}))),bD=pc(vd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),vD=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=R((()=>fD(n.background)),[n]);if(!r.active)return null;const a=o?rr.jsx(hD,{footerStyle:i,children:e}):null;return t?$.createPortal(e,t):a},yD=M({}),xD=()=>O(yD),SD=({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,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=R((()=>fD(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=XC({translator:d}),S=R((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g})),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return rr.jsx(yD.Provider,{value:S,children:e})};let wD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),CD=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 ED=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),RD=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),AD=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),PD={FirstPage:RD,PreviousPage:ED,NextPage:Ok,LastPage:AD,FirstPageRTL:AD,PreviousPageRTL:Ok,NextPageRTL:ED,LastPageRTL:RD},MD=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=xD(),u=r.concat("rtl"===n?"RTL":""),c=PD[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}},ID=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=xD(),o=0===e.page,{IconComponent:i,styledProps:a}=MD({type:wD.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||CD.FirstPage)?null:rr.jsx(gD,{...a,disabled:!r.active,children:rr.jsx(i,{height:JC})})},kD=(e,t,r=!1)=>{r&&e.key===nE.Tab&&!e.shiftKey&&(TC(e),DC(e.target,t,!1))},DD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=xD(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=MD({type:wD.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{kD(e,t,n)}:void 0;return o<=(a?.lastPage||CD.LastPage)?null:rr.jsx(gD,{...u,onKeyDown:c,disabled:!i.active,children:rr.jsx(l,{height:JC})})},TD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=xD(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=MD({type:wD.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>CD.FirstPage&&o>CD.LastPage)&&t.enabled?e=>{kD(e,t,n)}:void 0;return rr.jsx(gD,{...l,onKeyDown:u,disabled:!i.active,children:rr.jsx(s,{height:JC})})},OD=()=>{const{pageInfo:e,interactions:t}=xD(),r=0===e.page,{IconComponent:n,styledProps:o}=MD({type:wD.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return rr.jsx(gD,{...o,disabled:!t.active,children:rr.jsx(n,{height:JC})})},LD=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=xD(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||CD.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return rr.jsx(bD,{variant:"caption",dir:"ltr",children:s})},qD=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=xD(),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 rr.jsxs(rr.Fragment,{children:[rr.jsxs(bD,{variant:"caption",id:p,children:[c,":"]}),rr.jsx(mD,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},ND=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=xD();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||CD.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=rr.jsx(rr.Fragment,{children:e.rowsPerPageOptions.map((e=>rr.jsx("option",{value:e,children:e},e)))});return rr.jsx(qD,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},jD=1e3,_D="…",zD=({totalPages:e,page:t})=>{const r=Math.min(e,jD),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-jD):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return rr.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(rr.jsx("option",{value:_D,disabled:!0,children:_D},"startMoreOptions")),o<e-1&&a.push(rr.jsx("option",{value:_D,disabled:!0,children:_D},"endMoreOptions")),rr.jsx(rr.Fragment,{children:a})},FD=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=xD(),{page:i}=e;if(t<=(o?.selectPage||CD.SelectPage))return null;const a=rr.jsx(zD,{totalPages:r,page:i});return rr.jsx(qD,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var HD=q((e=>rr.jsxs(SD,{...e,children:[rr.jsx(ND,{}),rr.jsx(FD,{}),rr.jsx(LD,{}),rr.jsx(ID,{}),rr.jsx(OD,{}),rr.jsx(TD,{}),rr.jsx(DD,{})]})));const $D=e=>rr.jsx(vD,{...e,children:rr.jsx(HD,{...e})}),BD=(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"]})},WD=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},VD=e=>e.ctrlKey||e.metaKey,UD=e=>e.shiftKey&&VD(e),GD=e=>[nE.Left,nE.Right,nE.Up,nE.Down].includes(e),YD=e=>e.shiftKey&&GD(e.key),KD=e=>(e=>GD(e)||[nE.Home,nE.End,nE.PageUp,nE.PageDown].includes(e))(e.key)&&!UD(e),XD=(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),BD(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})},JD=(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&&YD(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&YD(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===nE.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 BD(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},ZD=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}},QD=(e,t)=>{switch(t.type){case EP.Select:return XD(e,t.payload);case EP.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 EP.SelectMouseUp:return((e,t)=>ZD(e.isSelectMultiValues||e.firstCell!==t.cell?e:XD(e,t)))(e,t.payload);case EP.SelectMultiAdd:return JD(e,t.payload);case EP.SelectMultiEnd:return ZD(e);case EP.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case EP.Clear:return e.rows.size?{...e,rows:new Map}:e;case EP.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},eT=GE((e=>{const t=e(ER);return function(e,t){return GE(e,(function(e,r,n){r(this,t(e(this),n))}))}({pageRows:e(WI).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},QD)})),tT=GE((e=>e(e(eT))),((e,t,r)=>{t(e(eT),r)})),rT=gP((e=>GE((t=>{const{colIdx:r,rows:n,api:o}=t(tT);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?CP.Disabled:n.has(e.qElemNumber)?CP.Selected:CP.Possible:CP.Inactive}))),((e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx)),nT=GE((e=>{const t=e(pk),r=e(UR).width,n=e(lM);return t.length>0&&t.reduce(((e,t)=>e+t))+n<r}));var oT=Symbol.for("preact-signals");function iT(){if(cT>1)cT--;else{for(var e,t=!1;void 0!==uT;){var r=uT;for(uT=void 0,dT++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&gT(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(dT=0,cT--,t)throw e}}function aT(e){if(cT>0)return e();cT++;try{return e()}finally{iT()}}var sT=void 0;function lT(e){var t=sT;sT=void 0;try{return e()}finally{sT=t}}var uT=void 0,cT=0,dT=0,pT=0;function fT(e){if(void 0!==sT){var t=e.n;if(void 0===t||t.t!==sT)return t={i:0,S:e,p:sT.s,n:void 0,t:sT,e:void 0,x:void 0,r:t},void 0!==sT.s&&(sT.s.n=t),sT.s=t,e.n=t,32&sT.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=sT.s,t.n=void 0,sT.s.n=t,sT.s=t),t}}function hT(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function mT(e,t){return new hT(e,t)}function gT(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function bT(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function vT(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function yT(e,t){hT.call(this,void 0),this.x=e,this.s=void 0,this.g=pT-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function xT(e,t){return new yT(e,t)}function ST(e){var t=e.u;if(e.u=void 0,"function"==typeof t){cT++;var r=sT;sT=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,wT(e),t}finally{sT=r,iT()}}}function wT(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ST(e)}function CT(e){if(sT!==this)throw new Error("Out-of-order effect");vT(this),sT=e,this.f&=-2,8&this.f&&wT(this),iT()}function ET(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function RT(e,t){var r=new ET(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}hT.prototype.brand=oT,hT.prototype.h=function(){return!0},hT.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:lT((function(){var e;null==(e=t.W)||e.call(t)})))},hT.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&lT((function(){var e;null==(e=t.Z)||e.call(t)})))}},hT.prototype.subscribe=function(e){var t=this;return RT((function(){var r=t.value,n=sT;sT=void 0;try{e(r)}finally{sT=n}}),{name:"sub"})},hT.prototype.valueOf=function(){return this.value},hT.prototype.toString=function(){return this.value+""},hT.prototype.toJSON=function(){return this.value},hT.prototype.peek=function(){var e=sT;sT=void 0;try{return this.value}finally{sT=e}},Object.defineProperty(hT.prototype,"value",{get:function(){var e=fT(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(dT>100)throw new Error("Cycle detected");this.v=e,this.i++,pT++,cT++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{iT()}}}}),yT.prototype=new hT,yT.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===pT)return!0;if(this.g=pT,this.f|=1,this.i>0&&!gT(this))return this.f&=-2,!0;var e=sT;try{bT(this),sT=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return sT=e,vT(this),this.f&=-2,!0},yT.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}hT.prototype.S.call(this,e)},yT.prototype.U=function(e){if(void 0!==this.t&&(hT.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},yT.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(yT.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=fT(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),ET.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},ET.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ST(this),bT(this),cT++;var e=sT;return sT=this,CT.bind(this,e)},ET.prototype.N=function(){2&this.f||(this.f|=2,this.o=uT,uT=this)},ET.prototype.d=function(){this.f|=8,1&this.f||wT(this)},ET.prototype.dispose=function(){this.d()};var AT,PT,MT,IT,kT,DT,TT,OT,LT,qT,NT,jT,_T,zT,FT,HT,$T,BT,WT,VT,UT=Object.create,GT=Object.defineProperty,YT=Object.defineProperties,KT=Object.getOwnPropertyDescriptor,XT=Object.getOwnPropertyDescriptors,JT=Object.getOwnPropertySymbols,ZT=Object.prototype.hasOwnProperty,QT=Object.prototype.propertyIsEnumerable,eO=e=>{throw TypeError(e)},tO=(e,t,r)=>t in e?GT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rO=(e,t)=>GT(e,"name",{value:t,configurable:!0}),nO=["class","method","getter","setter","accessor","field","value","get","set"],oO=e=>void 0!==e&&"function"!=typeof e?eO("Function expected"):e,iO=(e,t,r,n,o)=>({kind:nO[e],name:t,metadata:n,addInitializer:e=>r._?eO("Already initialized"):o.push(oO(e||null))}),aO=(e,t)=>{return tO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},sO=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},lO=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=nO[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&KT(d<4?o:{get[r](){return dO(this,i)},set[r](e){return fO(this,i,e)}},r));d?f&&d<4&&rO(i,(d>2?"set ":d>1?"get ":"")+r):rO(o,r);for(var y=n.length-1;y>=0;y--)u=iO(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>cO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?dO:hO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>fO(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?oO(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?eO("Object expected"):(oO(a=s.get)&&(v.get=a),oO(a=s.set)&&(v.set=a),oO(a=s.init)&&g.unshift(a));return d||aO(e,o),v&>(o,r,v),f?4^d?i:v:o},uO=(e,t,r)=>t.has(e)||eO("Cannot "+r),cO=(e,t)=>Object(t)!==t?eO('Cannot use the "in" operator on this value'):e.has(t),dO=(e,t,r)=>(uO(e,t,"read from private field"),r?r.call(e):t.get(e)),pO=(e,t,r)=>t.has(e)?eO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),fO=(e,t,r,n)=>(uO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),hO=(e,t,r)=>(uO(e,t,"access private method"),r);function mO(e,t){if(t){let r;return xT((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return xT(e)}function gO(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some(((e,r)=>!gO(e,t[r])))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some((r=>!gO(e[r],t[r])));return!o}return!1}function bO({get:e},t){return{init:e=>mT(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function vO(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=mO(e.bind(this)),r.set(this,t)),t.value}}function yO(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>YT(e,XT(t)))(((e,t)=>{for(var r in t||(t={}))ZT.call(t,r)&&tO(e,r,t[r]);if(JT)for(var r of JT(t))QT.call(t,r)&&tO(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function xO(...e){const t=e.map((e=>RT(e)));return()=>t.forEach((e=>e()))}DT=[bO],kT=[bO],IT=[bO],MT=[yO()],PT=[yO()],AT=[yO()];var SO,wO=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,sO(TT,5,this),pO(this,jT),pO(this,OT,sO(TT,8,this)),sO(TT,11,this),pO(this,_T,sO(TT,12,this)),sO(TT,15,this),pO(this,$T,sO(TT,16,this)),sO(TT,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return dO(this,jT,WT)}get initial(){return dO(this,jT,qT)}get previous(){return dO(this,jT,FT)}set current(e){const t=lT((()=>dO(this,jT,WT)));e&&t&&this.equals(t,e)||aT((()=>{dO(this,jT,qT)||fO(this,jT,e,NT),fO(this,jT,t,HT),fO(this,jT,e,VT)}))}reset(e=this.defaultValue){aT((()=>{fO(this,jT,void 0,HT),fO(this,jT,e,NT),fO(this,jT,e,VT)}))}};function CO(e){return lT((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}TT=[,,,UT(null)],OT=new WeakMap,jT=new WeakSet,_T=new WeakMap,$T=new WeakMap,LT=lO(TT,20,"#initial",DT,jT,OT),qT=LT.get,NT=LT.set,zT=lO(TT,20,"#previous",kT,jT,_T),FT=zT.get,HT=zT.set,BT=lO(TT,20,"#current",IT,jT,$T),WT=BT.get,VT=BT.set,lO(TT,2,"current",MT,wO),lO(TT,2,"initial",PT,wO),lO(TT,2,"previous",AT,wO),aO(TT,wO);SO=new WeakMap;var EO,RO,AO,PO,MO,IO=Object.create,kO=Object.defineProperty,DO=Object.getOwnPropertyDescriptor,TO=Object.getOwnPropertySymbols,OO=Object.prototype.hasOwnProperty,LO=Object.prototype.propertyIsEnumerable,qO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),NO=e=>{throw TypeError(e)},jO=Math.pow,_O=(e,t,r)=>t in e?kO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zO=["class","method","getter","setter","accessor","field","value","get","set"],FO=e=>void 0!==e&&"function"!=typeof e?NO("Function expected"):e,HO=(e,t,r,n,o)=>({kind:zO[e],name:t,metadata:n,addInitializer:e=>r._?NO("Already initialized"):o.push(FO(e||null))}),$O=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=zO[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,DO(o,r)),h=n.length-1;h>=0;h--)(l=HO(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,FO(a)&&(f[d]=a);return f&&kO(o,r,f),o},BO=(e,t,r)=>t.has(e)||NO("Cannot "+r),WO=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},VO=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))OO.call(t,r)&&_O(e,r,t[r]);if(TO)for(var r of TO(t))LO.call(t,r)&&_O(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new WO((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return WO.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var UO,GO=class extends(AO=wO,RO=[vO],EO=[vO],AO){constructor(e){var t,r,n;super(WO.from(e),((e,t)=>WO.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(MO,5,this),t=this,n=0,(r=PO).has(t)?NO("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return WO.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=WO.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(BO(a=this,s=PO,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);aT((()=>{((e,t,r)=>{BO(e,t,"write to private field"),t.set(e,r)})(this,PO,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(WO.from(e)),this.velocity={x:0,y:0}}};function YO({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(jO(n,2)+jO(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}MO=(e=>{var t;return[,,,IO(null!=(t=null==e?void 0:e[qO("metadata")])?t:null)]})(AO),PO=new WeakMap,$O(MO,2,"delta",RO,GO),$O(MO,2,"direction",EO,GO),UO=MO,_O(GO,qO("metadata"),UO[3]);var KO,XO,JO,ZO,QO=(e=>(e.Horizontal="x",e.Vertical="y",e))(QO||{}),eL=Object.values(QO),tL=Object.create,rL=Object.defineProperty,nL=Object.defineProperties,oL=Object.getOwnPropertyDescriptor,iL=Object.getOwnPropertyDescriptors,aL=Object.getOwnPropertySymbols,sL=Object.prototype.hasOwnProperty,lL=Object.prototype.propertyIsEnumerable,uL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),cL=e=>{throw TypeError(e)},dL=(e,t,r)=>t in e?rL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pL=(e,t)=>{for(var r in t||(t={}))sL.call(t,r)&&dL(e,r,t[r]);if(aL)for(var r of aL(t))lL.call(t,r)&&dL(e,r,t[r]);return e},fL=(e,t)=>nL(e,iL(t)),hL=(e,t)=>rL(e,"name",{value:t,configurable:!0}),mL=(e,t)=>{var r={};for(var n in e)sL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&aL)for(var n of aL(e))t.indexOf(n)<0&&lL.call(e,n)&&(r[n]=e[n]);return r},gL=e=>{var t;return[,,,tL(null!=(t=null==e?void 0:e[uL("metadata")])?t:null)]},bL=["class","method","getter","setter","accessor","field","value","get","set"],vL=e=>void 0!==e&&"function"!=typeof e?cL("Function expected"):e,yL=(e,t,r,n,o)=>({kind:bL[e],name:t,metadata:n,addInitializer:e=>r._?cL("Already initialized"):o.push(vL(e||null))}),xL=(e,t)=>dL(t,uL("metadata"),e[3]),SL=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},wL=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=bL[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&oL(d<4?o:{get[r](){return RL(this,i)},set[r](e){return PL(this,i,e)}},r));d?f&&d<4&&hL(i,(d>2?"set ":d>1?"get ":"")+r):hL(o,r);for(var y=n.length-1;y>=0;y--)u=yL(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>EL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?RL:ML)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>PL(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?vL(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?cL("Object expected"):(vL(a=s.get)&&(v.get=a),vL(a=s.set)&&(v.set=a),vL(a=s.init)&&g.unshift(a));return d||xL(e,o),v&&rL(o,r,v),f?4^d?i:v:o},CL=(e,t,r)=>t.has(e)||cL("Cannot "+r),EL=(e,t)=>Object(t)!==t?cL('Cannot use the "in" operator on this value'):e.has(t),RL=(e,t,r)=>(CL(e,t,"read from private field"),r?r.call(e):t.get(e)),AL=(e,t,r)=>t.has(e)?cL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),PL=(e,t,r,n)=>(CL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ML=(e,t,r)=>(CL(e,t,"access private method"),r);function IL(e,t){return{plugin:e,options:t}}function kL(e){return t=>IL(e,t)}function DL(e){return"function"==typeof e?{plugin:e,options:void 0}:e}KO=[bO];var TL=class{constructor(e,t){this.manager=e,this.options=t,AL(this,JO,SL(XO,8,this,!1)),SL(XO,11,this),AL(this,ZO,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return lT((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=RT(e.bind(this));return RL(this,ZO).add(t),t}destroy(){RL(this,ZO).forEach((e=>e()))}static configure(e){return IL(this,e)}};XO=gL(null),JO=new WeakMap,ZO=new WeakMap,wL(XO,4,"disabled",KO,TL,JO),xL(XO,TL);var OL,LL=class extends TL{},qL=class{constructor(e){this.manager=e,this.instances=new Map,AL(this,OL,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(DL).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of RL(this,OL))if(!r.includes(e)){if(e.prototype instanceof LL)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);PL(this,OL,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function NL(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}OL=new WeakMap;var jL,_L,zL=[],FL=class extends TL{constructor(e){super(e),AL(this,jL),AL(this,_L),this.computeCollisions=this.computeCollisions.bind(this),PL(this,_L,mT(zL)),this.destroy=xO((()=>{const e=this.computeCollisions(),t=lT((()=>this.manager.dragOperation.position.current));if(e!==zL){const e=RL(this,jL);if(PL(this,jL,t),e&&t.x==e.x&&t.y==e.y)return}else PL(this,jL,void 0);RL(this,_L).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){lT((()=>{e?RL(this,_L).value=this.computeCollisions():PL(this,jL,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return zL;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=lT((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?zL:(s.sort(NL),s)}get collisions(){return RL(this,_L).value}};jL=new WeakMap,_L=new WeakMap;var HL=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},$L=class extends HL{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function BL(e,t=!0){let r=!1;return fL(pL({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var WL,VL,UL,GL,YL,KL,XL,JL,ZL,QL=class extends LL{constructor(e){super(e);let t=[];this.destroy=xO((()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())}),(()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=BL({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map((({id:e})=>e)).join("")===t.map((({id:e})=>e)).join(""))(o,t))return;t=o;const[a]=o;lT((()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then((()=>{r.enable()})))}))}))}},eq=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(eq||{}),tq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(tq||{});XL=[bO],KL=[vO],YL=[vO],GL=[vO],UL=[vO],VL=[vO],WL=[vO];var rq=class{constructor(){SL(JL,5,this),AL(this,ZL,SL(JL,8,this,"idle")),SL(JL,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};JL=gL(null),ZL=new WeakMap,wL(JL,4,"value",XL,rq,ZL),wL(JL,2,"current",KL,rq),wL(JL,2,"idle",YL,rq),wL(JL,2,"initializing",GL,rq),wL(JL,2,"initialized",UL,rq),wL(JL,2,"dragging",VL,rq),wL(JL,2,"dropped",WL,rq),xL(JL,rq);var nq,oq,iq,aq,sq,lq,uq,cq,dq,pq=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return lT((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=BL({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return lT((()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;aT((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=BL({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then((()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))})),r)}))}move(e){return lT((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=BL({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask((()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l}))}))}stop(e={}){return lT((()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then((()=>{n.status.set("dropped");const e=lT((()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)})),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=RT((()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())}))}else this.manager.renderer.rendering.then(t)}))};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise(((t,r)=>{e.resume=t,e.abort=r})),e}}),i?i.then(a).catch((()=>n.reset())):a()}))}};aq=[bO],iq=[bO],oq=[bO],nq=[bO];var fq=class{constructor(e,t){AL(this,lq,SL(sq,8,this)),SL(sq,11,this),AL(this,uq,SL(sq,12,this)),SL(sq,15,this),AL(this,cq,SL(sq,16,this)),SL(sq,19,this),AL(this,dq,SL(sq,20,this)),SL(sq,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};sq=gL(null),lq=new WeakMap,uq=new WeakMap,cq=new WeakMap,dq=new WeakMap,wL(sq,4,"manager",aq,fq,lq),wL(sq,4,"id",iq,fq,uq),wL(sq,4,"data",oq,fq,cq),wL(sq,4,"disabled",nq,fq,dq),xL(sq,fq);var hq,mq,gq,bq,vq,yq,xq,Sq,wq,Cq,Eq,Rq,Aq,Pq,Mq,Iq,kq,Dq,Tq,Oq,Lq,qq,Nq,jq,_q=class{constructor(){this.map=mT(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=xO(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},zq=class extends(xq=fq,yq=[bO],vq=[bO],bq=[bO],gq=[vO],mq=[vO],hq=[vO],xq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=mL(r,["modifiers","type","sensors"]);super(a,t),SL(Sq,5,this),AL(this,wq,SL(Sq,8,this)),SL(Sq,11,this),AL(this,Cq,SL(Sq,12,this)),SL(Sq,15,this),AL(this,Eq,SL(Sq,16,this,this.isDragSource?"dragging":"idle")),SL(Sq,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};Sq=gL(xq),wq=new WeakMap,Cq=new WeakMap,Eq=new WeakMap,wL(Sq,4,"type",yq,zq,wq),wL(Sq,4,"modifiers",vq,zq,Cq),wL(Sq,4,"status",bq,zq,Eq),wL(Sq,2,"isDropping",gq,zq),wL(Sq,2,"isDragging",mq,zq),wL(Sq,2,"isDragSource",hq,zq),xL(Sq,zq);var Fq=class extends(Dq=fq,kq=[bO],Iq=[bO],Mq=[bO],Pq=[bO],Aq=[bO],Rq=[vO],Dq){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(mL(r,["accept","collisionDetector","collisionPriority","type"]),t),SL(Tq,5,this),AL(this,Oq,SL(Tq,8,this)),SL(Tq,11,this),AL(this,Lq,SL(Tq,12,this)),SL(Tq,15,this),AL(this,qq,SL(Tq,16,this)),SL(Tq,19,this),AL(this,Nq,SL(Tq,20,this)),SL(Tq,23,this),AL(this,jq,SL(Tq,24,this)),SL(Tq,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};Tq=gL(Dq),Oq=new WeakMap,Lq=new WeakMap,qq=new WeakMap,Nq=new WeakMap,jq=new WeakMap,wL(Tq,4,"accept",kq,Fq,Oq),wL(Tq,4,"type",Iq,Fq,Lq),wL(Tq,4,"collisionDetector",Mq,Fq,qq),wL(Tq,4,"collisionPriority",Pq,Fq,Nq),wL(Tq,4,"shape",Aq,Fq,jq),wL(Tq,2,"isDropTarget",Rq,Fq),xL(Tq,Fq);var Hq,$q=class extends TL{constructor(e,t){super(e,t),this.manager=e,this.options=t}},Bq=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},Wq=class{constructor(e){this.options=e,AL(this,Hq)}set controller(e){PL(this,Hq,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=RL(this,Hq))||t.activate(e)}};Hq=new WeakMap;var Vq,Uq,Gq,Yq,Kq,Xq,Jq,Zq,Qq,eN,tN,rN,nN,oN,iN,aN,sN,lN,uN,cN=class extends TL{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},dN=class{constructor(e){this.draggables=new _q,this.droppables=new _q,this.plugins=new qL(e),this.sensors=new qL(e),this.modifiers=new qL(e)}register(e,t){if(e instanceof zq)return this.draggables.register(e.id,e);if(e instanceof Fq)return this.droppables.register(e.id,e);if(e.prototype instanceof cN)return this.modifiers.register(e,t);if(e.prototype instanceof $q)return this.sensors.register(e,t);if(e.prototype instanceof TL)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof fq)return e instanceof zq?this.draggables.unregister(e.id,e):e instanceof Fq?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof cN)return this.modifiers.unregister(e);if(e.prototype instanceof $q)return this.sensors.unregister(e);if(e.prototype instanceof TL)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};Qq=[vO],Zq=[bO],Jq=[bO],Xq=[bO],Kq=[bO],Yq=[bO],Gq=[vO],Uq=[vO],Vq=[vO];var pN=class{constructor(e){SL(nN,5,this),AL(this,eN),AL(this,tN),AL(this,rN,new wO(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new rq,AL(this,oN,SL(nN,8,this,!1)),SL(nN,11,this),AL(this,iN,SL(nN,12,this,null)),SL(nN,15,this),AL(this,aN,SL(nN,16,this,null)),SL(nN,19,this),AL(this,sN,SL(nN,20,this,null)),SL(nN,23,this),AL(this,lN,SL(nN,24,this,[])),SL(nN,27,this),this.position=new GO({x:0,y:0}),AL(this,uN,{x:0,y:0}),PL(this,eN,e)}get shape(){const{current:e,initial:t,previous:r}=RL(this,rN);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?RL(this,rN).current=e:RL(this,rN).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=RL(this,eN).registry.draggables.get(t);return r&&PL(this,tN,r),null!=(e=null!=r?r:RL(this,tN))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=RL(this,eN).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(fL(pL({},this.snapshot()),{transform:r}));return PL(this,uN,r),r}snapshot(){return lT((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:RL(this,uN),shape:this.shape?CO(this.shape):null,position:CO(this.position),status:CO(this.status),canceled:this.canceled})))}reset(){aT((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,RL(this,rN).reset(),this.position.reset({x:0,y:0}),PL(this,uN,{x:0,y:0}),this.modifiers=[]}))}};nN=gL(null),eN=new WeakMap,tN=new WeakMap,rN=new WeakMap,oN=new WeakMap,iN=new WeakMap,aN=new WeakMap,sN=new WeakMap,lN=new WeakMap,uN=new WeakMap,wL(nN,2,"shape",Qq,pN),wL(nN,4,"canceled",Zq,pN,oN),wL(nN,4,"activatorEvent",Jq,pN,iN),wL(nN,4,"sourceIdentifier",Xq,pN,aN),wL(nN,4,"targetIdentifier",Kq,pN,sN),wL(nN,4,"modifiers",Yq,pN,lN),wL(nN,2,"source",Gq,pN),wL(nN,2,"target",Uq,pN),wL(nN,2,"transform",Vq,pN),xL(nN,pN);var fN={get rendering(){return Promise.resolve()}};function hN(e,t){return"function"==typeof e?e(t):null!=e?e:t}var mN=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach((e=>e.destroy())),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=hN(r.plugins,[]),o=hN(r.sensors,[]),i=hN(r.modifiers,[]),a=null!=(t=r.renderer)?t:fN,s=new $L(this),l=new dN(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new pq(this),this.dragOperation=new pN(this),this.collisionObserver=new FL(this),this.plugins=[QL,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=xO((()=>{var e,t,r;const n=lT((()=>this.dragOperation.modifiers)),o=this.modifiers;for(const e of n)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map((e=>{const{plugin:t,options:r}=DL(e);return new t(this,r)})))?r:o}));this.destroy=()=>{c(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},gN=e=>{throw TypeError(e)},bN=(e,t,r)=>t.has(e)||gN("Cannot "+r),vN=(e,t,r)=>(bN(e,t,"read from private field"),t.get(e)),yN=(e,t,r)=>t.has(e)?gN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),xN=(e,t,r,n)=>(bN(e,t,"write to private field"),t.set(e,r),r),SN=(e,t,r)=>(bN(e,t,"access private method"),r);function wN(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function CN(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(wN(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function EN(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function RN(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function AN(e){return"nodeType"in e}function PN(e){var t,r,n;return e?RN(e)?e:AN(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function MN(e){const{Document:t}=PN(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function IN(e){return!(!e||RN(e))&&(e instanceof PN(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function kN(e){return e instanceof PN(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function DN(e){return e?RN(e)?e.document:AN(e)?MN(e)?e:IN(e)||kN(e)?e.ownerDocument:document:document:document}function TN(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function ON(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!TN(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,b=r*g,v=r*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function LN(e){return{x:e.clientX,y:e.clientY}}var qN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function NN(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...NN(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...NN(o.document,t))}}catch(e){}return r}function jN(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function _N(){var e,t;const r=jN()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function zN(e){return!(!e||!AN(e))&&e instanceof PN(e).ShadowRoot}function FN(e){if(e&&AN(e)){let t=e.getRootNode();if(zN(t))return t;if(t instanceof Document)return t}return DN(e)}function HN(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function $N(e){return"value"in e}function BN(e){return"CANVAS"===e.tagName}function WN(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return WN(e,{x:t-o,y:r-i})}}return n}var VN=new WeakMap;var UN=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function GN(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function YN(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}((()=>{e.apply(a,i),o=r()}),t-(r()-o))):(e.apply(a,i),o=r())}}var KN,XN=qN?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},JN=class extends XN{constructor(e){super((t=>{vN(this,KN)?e(t,this):xN(this,KN,!0)})),yN(this,KN,!1)}};KN=new WeakMap;var ZN,QN,ej,tj,rj,nj,oj,ij,aj,sj,lj,uj=Array.from({length:100},((e,t)=>t/100)),cj=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,yN(this,aj),this.disconnect=()=>{var e,t,r;xN(this,oj,!0),null==(e=vN(this,ej))||e.disconnect(),null==(t=vN(this,tj))||t.disconnect(),vN(this,rj).disconnect(),null==(r=vN(this,nj))||r.remove()},yN(this,ZN,!0),yN(this,QN),yN(this,ej),yN(this,tj),yN(this,rj),yN(this,nj),yN(this,oj,!1),yN(this,ij,YN((()=>{var e,t,r;const{element:n}=this;if(null==(e=vN(this,tj))||e.disconnect(),vN(this,oj)||!vN(this,ZN)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=ON(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,xN(this,tj,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:VO.intersectionRatio(r,ON(n)))&&vN(this,ij).call(this)}),{threshold:uj,rootMargin:m,root:o})),vN(this,tj).observe(n),SN(this,aj,sj).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),xN(this,ZN,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=ON(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(xN(this,nj,document.createElement("div")),vN(this,nj).style.background="rgba(0,0,0,0.15)",vN(this,nj).style.position="fixed",vN(this,nj).style.pointerEvents="none",o.body.appendChild(vN(this,nj))),xN(this,rj,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=vN(this,ZN);xN(this,ZN,a),(s||l)&&(u&&!a?(null==(r=vN(this,tj))||r.disconnect(),this.callback(null),null==(n=vN(this,ej))||n.disconnect(),xN(this,ej,void 0),vN(this,nj)&&(vN(this,nj).style.visibility="hidden")):vN(this,ij).call(this),a&&!vN(this,ej)&&(xN(this,ej,new JN(vN(this,ij))),vN(this,ej).observe(e)))}),{threshold:uj,root:o})),vN(this,ZN)&&!r.skipInitial&&this.callback(this.boundingClientRect),vN(this,rj).observe(e)}};ZN=new WeakMap,QN=new WeakMap,ej=new WeakMap,tj=new WeakMap,rj=new WeakMap,nj=new WeakMap,oj=new WeakMap,ij=new WeakMap,aj=new WeakSet,sj=function(){vN(this,oj)||(SN(this,aj,lj).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,vN(this,QN))||(this.callback(this.boundingClientRect),xN(this,QN,this.boundingClientRect)))},lj=function(){if(vN(this,nj)){const{top:e,left:t,width:r,height:n}=ON(this.element);vN(this,nj).style.overflow="hidden",vN(this,nj).style.visibility="visible",vN(this,nj).style.top=`${Math.floor(e)}px`,vN(this,nj).style.left=`${Math.floor(t)}px`,vN(this,nj).style.width=`${Math.floor(r)}px`,vN(this,nj).style.height=`${Math.floor(n)}px`}};var dj,pj,fj,hj,mj=new WeakMap,gj=new WeakMap;function bj(e,t){let r=mj.get(e);if(!r){const t=new cj(e,(t=>{const r=mj.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),mj.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(mj.delete(e),r.disconnect())}}var vj=class{constructor(e,t,r){this.callback=t,yN(this,dj),yN(this,pj,!1),yN(this,fj),yN(this,hj,YN((e=>{if(!vN(this,pj)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of vN(this,fj))if(e.target.contains(t)){this.callback(vN(this,dj).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=GN(e);for(;r;)t.add(r),r=GN(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=bj(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!gj.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",(e=>t.forEach((t=>t(e)))),{capture:!0,passive:!0,signal:e.signal}),gj.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=gj.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),gj.delete(n))}):()=>{}}(e,vN(this,hj));xN(this,fj,n),xN(this,dj,new cj(e,t,r)),this.disconnect=()=>{vN(this,pj)||(xN(this,pj,!0),o(),i(),vN(this,dj).disconnect())}}};function yj(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function xj(e){try{yj(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function Sj(e){return!(!qN||!e)&&e===DN(e).scrollingElement}function wj(e){var t,r;const n=PN(e),o=Sj(e)?function(e){var t,r,n,o;const{documentElement:i}=DN(e),a=PN(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):EN(e),i=n.visualViewport,a=Sj(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function Cj(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=wj(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}dj=new WeakMap,pj=new WeakMap,fj=new WeakMap,hj=new WeakMap;var Ej=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}},Rj=new Ej((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),Aj=new Ej((e=>setTimeout(e,50))),Pj=new Map,Mj=Pj.clear.bind(Pj);function Ij(e,t=!1){if(!t)return kj(e);let r=Pj.get(e);return r||(r=kj(e),Pj.set(e,r),Aj.schedule(Mj),r)}function kj(e){return PN(e).getComputedStyle(e)}var Dj={excludeElement:!0,escapeShadowDOM:!0};function Tj(e,t=Dj){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(MN(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&zN(a))return t(a.host);if(!IN(a))return kN(a)?t(a.parentElement):i;if(i.has(a))return i;const s=Ij(a,!0);if(n&&a===e||function(e,t=Ij(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,s)&&i.add(a),function(e,t=Ij(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function Oj(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=GN(e);for(;n;){if(n===t)return r;const e=EN(n),{x:o,y:i}=Lj(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=GN(n)}return r}function Lj(e,t=EN(e)){const r=Math.round(t.width),n=Math.round(t.height);if(IN(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=Ij(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function qj(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function Nj(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=qj(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var jj=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(jj||{}),_j={x:.2,y:.2},zj={x:10,y:10};function Fj(e,t,r,n=25,o=_j,i=zj){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=wj(e),f=Oj(e),h=Nj(Ij(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new VO(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return(!u||g&&!c)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function Hj(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!IN(e))return e.scrollIntoView();var n=function(e){const[t]=Tj(e,{limit:1});return null!=t?t:null}(e);if(!IN(n))return;const o=Ij(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function $j({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function Bj(e,t=Ij(e).translate,r=!0){if(r){const t=CN(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=qj(e);if(t)return t}}}if(t){const e=qj(t);if(e)return e}return{x:0,y:0,z:0}}var Wj=new Ej((e=>setTimeout(e,0))),Vj=new Map,Uj=Vj.clear.bind(Vj);function Gj(e,t){const r=function(e){const t=e.ownerDocument;let r=Vj.get(t);if(r)return r;r=t.getAnimations(),Vj.set(t,r),Wj.schedule(Uj);const n=r.filter((t=>wN(t.effect)&&t.effect.target===e));return Vj.set(e,n),r}(e).filter((e=>{var r,n;if(wN(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some((e=>{for(const r of t.properties)if(e[r])return!0}))}})).map((e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0}));if(r.length>0)return()=>r.forEach((e=>null==e?void 0:e()))}var Yj=class extends VO{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=Oj(e),ignoreTransforms:s,getBoundingClientRect:l=EN}=t,u=Gj(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||jN())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=Ij(e),b=Nj(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=wN(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=Nj({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function Kj(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var Xj=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(Kj(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(Kj(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(Kj(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function Jj(e){return!!e&&(e instanceof PN(e).Element||AN(e)&&e.nodeType===Node.ELEMENT_NODE)}function Zj(e){if(!e)return!1;const{KeyboardEvent:t}=PN(e.target);return e instanceof t}var Qj={};function e_(e){const t=null==Qj[e]?0:Qj[e]+1;return Qj[e]=t,`${e}-${t}`}var t_=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/WO.distance(t.shape.center,r),type:tq.PointerIntersection,priority:eq.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=WO.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:tq.ShapeIntersection,priority:eq.Normal}}return null})(e)},r_=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?VO.from(n.current.boundingRectangle).corners:void 0,a=VO.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+WO.distance(WO.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)}),0),s=a/4;return{id:r.id,value:1/s,type:tq.Collision,priority:eq.Normal}},n_=Object.create,o_=Object.defineProperty,i_=Object.defineProperties,a_=Object.getOwnPropertyDescriptor,s_=Object.getOwnPropertyDescriptors,l_=Object.getOwnPropertySymbols,u_=Object.prototype.hasOwnProperty,c_=Object.prototype.propertyIsEnumerable,d_=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),p_=e=>{throw TypeError(e)},f_=(e,t,r)=>t in e?o_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h_=(e,t)=>{for(var r in t||(t={}))u_.call(t,r)&&f_(e,r,t[r]);if(l_)for(var r of l_(t))c_.call(t,r)&&f_(e,r,t[r]);return e},m_=(e,t)=>i_(e,s_(t)),g_=(e,t)=>o_(e,"name",{value:t,configurable:!0}),b_=(e,t)=>{var r={};for(var n in e)u_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&l_)for(var n of l_(e))t.indexOf(n)<0&&c_.call(e,n)&&(r[n]=e[n]);return r},v_=e=>{var t;return[,,,n_(null!=(t=null==e?void 0:e[d_("metadata")])?t:null)]},y_=["class","method","getter","setter","accessor","field","value","get","set"],x_=e=>void 0!==e&&"function"!=typeof e?p_("Function expected"):e,S_=(e,t,r,n,o)=>({kind:y_[e],name:t,metadata:n,addInitializer:e=>r._?p_("Already initialized"):o.push(x_(e||null))}),w_=(e,t)=>f_(t,d_("metadata"),e[3]),C_=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},E_=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=y_[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&a_(d<4?o:{get[r](){return P_(this,i)},set[r](e){return I_(this,i,e)}},r));d?f&&d<4&&g_(i,(d>2?"set ":d>1?"get ":"")+r):g_(o,r);for(var y=n.length-1;y>=0;y--)u=S_(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>A_(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?P_:k_)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>I_(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?x_(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?p_("Object expected"):(x_(a=s.get)&&(v.get=a),x_(a=s.set)&&(v.set=a),x_(a=s.init)&&g.unshift(a));return d||w_(e,o),v&&o_(o,r,v),f?4^d?i:v:o},R_=(e,t,r)=>t.has(e)||p_("Cannot "+r),A_=(e,t)=>Object(t)!==t?p_('Cannot use the "in" operator on this value'):e.has(t),P_=(e,t,r)=>(R_(e,t,"read from private field"),r?r.call(e):t.get(e)),M_=(e,t,r)=>t.has(e)?p_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),I_=(e,t,r,n)=>(R_(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),k_=(e,t,r)=>(R_(e,t,"access private method"),r),D_="button",T_="draggable",O_="dnd-kit-description",L_="dnd-kit-announcement",q_={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},N_={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function j_(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var __=["dragover","dragmove"],z_=class extends TL{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=O_,announcement:o=L_}={},announcements:i=N_,screenReaderInstructions:a=q_,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:e_(n),u=r?`${o}-${r}`:e_(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>Rj.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map((([e,t])=>this.manager.monitor.addEventListener(e,((r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,__.includes(e)?g():(m(),g.cancel()))})))),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect((()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(v),j_(r)&&!jN()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",D_))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",T_))),r.hasAttribute("aria-describedby")||y.add((()=>r.setAttribute("aria-describedby",l)));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add((()=>r.setAttribute(e,n)))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add((()=>r.setAttribute("aria-disabled",e)))}}y.size>0&&Rj.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var F_,H_,$_,B_,W_,V_,U_,G_,Y_,K_,X_,J_,Z_,Q_=new Map,ez=class extends(W_=LL,B_=[bO],$_=[vO],H_=[vO],F_=[vO],W_){constructor(e){super(e),C_(U_,5,this),M_(this,Y_),M_(this,V_,new Set),M_(this,G_,C_(U_,8,this,new Set)),C_(U_,11,this),this.registerEffect(k_(this,Y_,K_))}register(e){return P_(this,V_).add(e),()=>{P_(this,V_).delete(e)}}addRoot(e){return lT((()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t})),()=>{lT((()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t}))}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return FN(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return FN(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter((e=>null!=e));return new Set([...e,...this.additionalRoots])}return new Set}};U_=v_(W_),V_=new WeakMap,G_=new WeakMap,Y_=new WeakSet,K_=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of P_(this,V_))t.push(k_(this,Y_,X_).call(this,r,e));return()=>{for(const e of t)e()}},X_=function(e,t){let r=Q_.get(e);r||(r=new Map,Q_.set(e,r));let n=r.get(t);if(!n){const o=MN(e)?k_(this,Y_,J_).call(this,e,r,t):k_(this,Y_,Z_).call(this,e,r,t);if(!o)return()=>{};n=o,r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},J_=function(e,t,r){const n=e.createElement("style");n.textContent=r,e.head.prepend(n);const o=new MutationObserver((t=>{for(const r of t)for(const t of Array.from(r.removedNodes))if(t===n)return void e.head.prepend(n)}));return o.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{o.disconnect(),n.remove(),t.delete(r),0===t.size&&Q_.delete(e)}}},Z_=function(e,t,r){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const n=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=n?n:{};if(!o)return null;const i=new o;return i.replaceSync(r),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var n;if(zN(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(r),0===t.size&&Q_.delete(e)}}},E_(U_,4,"additionalRoots",B_,ez,G_),E_(U_,2,"sourceRoot",$_,ez),E_(U_,2,"targetRoot",H_,ez),E_(U_,2,"roots",F_,ez),w_(U_,ez);var tz="data-dnd-",rz=`${tz}dropping`,nz="--dnd-",oz=`${tz}dragging`,iz=`${tz}placeholder`,az=[oz,iz,"popover","aria-pressed","aria-grabbing"],sz=["view-transition-name"],lz=`\n :is(:root,:host) [${oz}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${nz}top, 0px) !important;\n left: var(${nz}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${nz}width, auto);\n max-width: var(${nz}width, auto);\n height: var(${nz}height, auto);\n max-height: var(${nz}height, auto);\n transition: var(${nz}transition) !important;\n }\n\n :is(:root,:host) [${iz}] {\n transition: none;\n }\n\n :is(:root,:host) [${iz}='hidden'] {\n visibility: hidden;\n }\n\n [${oz}] * {\n pointer-events: none !important;\n }\n\n [${oz}]:not([${rz}]) {\n translate: var(${nz}translate) !important;\n }\n\n [${oz}][style*='${nz}scale'] {\n scale: var(${nz}scale) !important;\n transform-origin: var(${nz}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${oz}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${oz}]::backdrop, [${tz}overlay]:not([${oz}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function uz(e,t="hidden"){return lT((()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${tz}${e_("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach(((e,t)=>{const r=n[t];if($N(e)&&$N(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),BN(e)&&BN(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}})),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),VN.set(a,i),r.push((()=>{VN.delete(a),n.proxy=void 0}))}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(iz,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function cz(e,t){return e===t||GN(e)===GN(t)}function dz(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&Jj(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>xj(t)))}function pz(e){return"TR"===e.tagName}var fz,hz,mz,gz,bz,vz,yz,xz=250,Sz="ease";var wz=class extends(hz=TL,fz=[bO],hz){constructor(e,t){super(e,t),M_(this,bz),M_(this,gz,C_(mz,8,this)),C_(mz,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(ez),n=null==r?void 0:r.register(lz);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(k_(this,bz,vz).bind(this,r)),this.registerEffect(k_(this,bz,yz))}};mz=v_(hz),gz=new WeakMap,bz=new WeakSet,vz=function(e){const{overlay:t}=this;if(!t||!e)return;const r=FN(t);return r?e.addRoot(r):void 0},yz=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=Oj(f),m=Oj(c),g=!cz(c,f),b=new Yj(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=b;g&&(x/=v,S/=y);const E=new Xj(f),{transition:R,translate:A,boxSizing:P,paddingBlockStart:M,paddingBlockEnd:I,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=Ij(c),N="clone"===d,j="content-box"===P,_=j?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=j?parseInt(M)+parseInt(I)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:uz(l,N?"clone":"hidden"),H=lT((()=>Zj(o.dragOperation.activatorEvent)));if("none"!==A){const e=qj(A);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=lT((()=>s.current));p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,B=w*h.scaleY+h.y,W=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:W,y:B},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=$;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-W,U=p.coordinates.y-B,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(oz,"true");const Z=lT((()=>a.transform)),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,re=_N();if(E.set({width:x-_,height:S-z,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${v} ${y}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},nz),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;yj(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),xj(f),f.addEventListener("beforetoggle",dz));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver((()=>{var e,t;const r=new Yj(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=_N();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},nz),null==(t=se.getElementMutationObserver())||t.takeRecords(),pz(se.element)&&pz(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map((e=>e.style.width)));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new Yj(se.feedbackElement)})));var se;const le=new Yj(f);lT((()=>a.shape=le));const ue=PN(f),ce=e=>{this.manager.actions.stop({event:e})},de=HN(ue);H&&ue.addEventListener("resize",ce),"idle"===lT((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),F&&(ae.observe(F),ne=function(e,t,r){const n=new MutationObserver((n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||az.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(Kj(e)&&Kj(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(sz.includes(e)||e.startsWith(nz))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)}));return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),oe=function(e,t,r){const n=new MutationObserver((n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void xj(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void xj(r)}}));return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!H||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;IN(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),yj(f)&&(f.removeEventListener("beforetoggle",dz),f.removeAttribute("popover")),f.removeAttribute(oz),E.reset(),ie&&pz(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},me=null==i?void 0:i.dropAnimation,ge=this,be=xO((()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=lT((()=>a.modifiers)),l=lT((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=H&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},nz),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=WO.delta(o,i);a.shape=VO.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new Yj(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then((()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then((()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}const{duration:a=xz,easing:s=Sz}=null!=i?i:{};xj(e.feedbackElement);const[,l]=null!=(t=CN(e.feedbackElement,(e=>"translate"in e)))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:cz(e.feedbackElement,u)?null:void 0},d=new Yj(e.feedbackElement,c),p=null!=(n=qj(Ij(e.feedbackElement).translate))?n:e.translate,f=new Yj(u,c),h=VO.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},nz),e.feedbackElement.setAttribute(rz,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),$j({element:e.feedbackElement,keyframes:m_(h_(h_({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:HN(PN(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then((()=>{e.feedbackElement.removeAttribute(rz),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}({element:c,feedbackElement:f,placeholder:F,translate:t,moved:r,transition:R,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})}))}}));return()=>{he(),be()}},E_(mz,4,"overlay",fz,wz,gz),w_(mz,wz),wz.configure=kL(wz);var Cz,Ez,Rz,Az,Pz,Mz,Iz,kz=wz,Dz=!0;Rz=[bO],Az=jj.Forward,Cz=[bO],Ez=jj.Reverse;var Tz=class{constructor(){M_(this,Mz,C_(Pz,8,this,Dz)),C_(Pz,11,this),M_(this,Iz,C_(Pz,12,this,Dz)),C_(Pz,15,this)}isLocked(e){return e!==jj.Idle&&(null==e?this[jj.Forward]===Dz&&this[jj.Reverse]===Dz:this[e]===Dz)}unlock(e){e!==jj.Idle&&(this[e]=false)}};Pz=v_(null),Mz=new WeakMap,Iz=new WeakMap,E_(Pz,4,Az,Rz,Tz,Mz),E_(Pz,4,Ez,Cz,Tz,Iz),w_(Pz,Tz);var Oz,Lz,qz,Nz,jz,_z,zz=[jj.Forward,jj.Reverse],Fz=class{constructor(){this.x=new Tz,this.y=new Tz}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Hz=class extends TL{constructor(e){super(e);const t=mT(new Fz);let r=null;this.signal=t,RT((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new Fz);const{delta:o}=e.dragOperation.position;if(r){const e={x:$z(o.x,r.x),y:$z(o.y,r.y)},n=t.peek();aT((()=>{for(const t of eL)for(const r of zz)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function $z(e,t){return Math.sign(e-t)}var Bz=class extends(Lz=LL,Oz=[bO],Lz){constructor(e){super(e),M_(this,Nz,C_(qz,8,this,!1)),C_(qz,11,this),M_(this,jz),M_(this,_z,(()=>{if(!P_(this,jz))return;const{element:e,by:t}=P_(this,jz);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)})),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return I_(this,jz,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:Wz(n.x),y:Wz(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=Cj(e,n);if(r.x||r.y){const{speed:r,direction:s}=Fj(e,o,i);if(a)for(const e of eL)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=P_(this,jz))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return I_(this,jz,{element:e,by:{x:a,y:l}}),Rj.schedule(P_(this,_z)),!0}}}}}return I_(this,jz,void 0),!1};let t=null,r=null;const n=mO((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=WN(FN(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=mO((()=>{const t=n.value,{documentElement:o}=DN(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=Tj(n,{excludeElement:!1});return r=e,e}}if(t){const e=Tj(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),gO);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new Hz(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&Zj(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function Wz(e){return e>0?jj.Forward:e<0?jj.Reverse:jj.Idle}qz=v_(Lz),Nz=new WeakMap,jz=new WeakMap,_z=new WeakMap,E_(qz,4,"autoScrolling",Oz,Bz,Nz),w_(qz,Bz);var Vz,Uz=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}}((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),Gz=class extends TL{constructor(e,t){super(e);const r=e.registry.plugins.get(Bz);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=RT((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>Uz.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},Yz={capture:!0,passive:!0},Kz=class extends LL{constructor(e){super(e),M_(this,Vz),this.handleScroll=()=>{null==P_(this,Vz)&&I_(this,Vz,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),I_(this,Vz,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=RT((()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,Yz),()=>{o.removeEventListener("scroll",this.handleScroll,Yz)}}}))}};Vz=new WeakMap;function Xz(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var Jz,Zz=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),Qz=class extends $q{constructor(e,t){super(e),this.manager=e,this.options=t,M_(this,Jz,[]),this.listeners=new UN,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!Jj(e.target))return;if(t.disabled)return;const{keyboardCodes:n=Zz.keyboardCodes,preventActivation:o=Zz.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=RT((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{Zj(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}));return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),Hj(n);const{center:o}=new Yj(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=DN(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];P_(this,Jz).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=Zz.keyboardCodes}=null!=r?r:{};if(rF(e,[...n.end,...n.cancel])){e.preventDefault();const t=rF(e,n.cancel);this.handleEnd(e,t)}else rF(e,n.up)?this.handleMove("up",e):rF(e,n.down)&&this.handleMove("down",e),rF(e,n.left)?this.handleMove("left",e):rF(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:Zz.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(Gz);!1===(null==e?void 0:e.disabled)&&(e.disable(),P_(this,Jz).push((()=>{e.enable()})))}cleanup(){P_(this,Jz).forEach((e=>e())),I_(this,Jz,[])}destroy(){this.cleanup(),this.listeners.clear()}};Jz=new WeakMap,Qz.configure=kL(Qz),Qz.defaults=Zz;var eF,tF=Qz;function rF(e,t){return t.includes(e.code)}var nF,oF;eF=new WeakMap;nF=new WeakMap,oF=new WeakMap;var iF=class{};iF.Delay=class extends Wq{constructor(){super(...arguments),M_(this,nF),M_(this,oF)}onEvent(e){switch(e.type){case"pointerdown":I_(this,oF,LN(e)),I_(this,nF,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!P_(this,oF))return;const{x:t,y:r}=LN(e);YO({x:t-P_(this,oF).x,y:r-P_(this,oF).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){P_(this,nF)&&(clearTimeout(P_(this,nF)),I_(this,oF,void 0),I_(this,nF,void 0))}},iF.Distance=class extends Wq{constructor(){super(...arguments),M_(this,eF)}onEvent(e){switch(e.type){case"pointerdown":I_(this,eF,LN(e));break;case"pointermove":if(!P_(this,eF))return;const{x:t,y:r}=LN(e),n={x:t-P_(this,eF).x,y:r-P_(this,eF).y},{tolerance:o}=this.options;if(o&&YO(n,o))return void this.abort();YO(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){I_(this,eF,void 0)}};var aF,sF=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!Jj(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new iF.Delay({value:250,tolerance:5})]:function(e){if(!Jj(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new iF.Delay({value:200,tolerance:0})]:[new iF.Delay({value:200,tolerance:10}),new iF.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!Jj(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),lF=class extends $q{constructor(e,t){super(e),this.manager=e,this.options=t,M_(this,aF,new Set),this.listeners=new UN,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=sF.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=RT((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=PN(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(fF(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()}));return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!Jj(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=sF.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=IN(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=Oj(t.element),{x:s,y:l}=LN(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new Bq(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=NN(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:cF,options:{capture:!0}}]);P_(this,aF).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=LN(e),n=Oj(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,Rj.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=DN(t.target).body;o.setPointerCapture(t.pointerId);const i=Jj(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:cF,options:{passive:!1}},{type:"click",listener:cF},{type:"contextmenu",listener:cF},{type:"keydown",listener:this.handleKeyDown}]);P_(this,aF).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},P_(this,aF).forEach((e=>e())),P_(this,aF).clear()}destroy(){this.cleanup(),this.listeners.clear()}};aF=new WeakMap,lF.configure=kL(lF),lF.defaults=sF;var uF=lF;function cF(e){e.preventDefault()}function dF(){}var pF=new WeakSet;function fF(e){e&&!pF.has(e)&&(e.addEventListener("touchmove",dF,{capture:!1,passive:!1}),pF.add(e))}var hF,mF,gF,bF,vF,yF,xF,SF,wF,CF,EF,RF,AF,PF,MF,IF,kF,DF,TF={modifiers:[],plugins:[z_,Gz,class extends TL{constructor(e,t){super(e,t),this.manager=e;const r=mO((()=>{var e;return DN(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=RT((()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}}))}},kz,class extends TL{constructor(e,t){super(e,t),this.manager=e,this.destroy=RT((()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),Xz(),document.addEventListener("selectionchange",Xz,{capture:!0}),()=>{document.removeEventListener("selectionchange",Xz,{capture:!0}),e.remove()}}}))}}],sensors:[uF,tF]},OF=class extends mN{constructor(e={}){const t=hN(e.plugins,TF.plugins),r=hN(e.sensors,TF.sensors),n=hN(e.modifiers,TF.modifiers);super(m_(h_({},e),{plugins:[Kz,Bz,ez,...t],sensors:r,modifiers:n}))}},LF=class extends(bF=zq,gF=[bO],mF=[bO],hF=[bO],bF){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=b_(r,["element","effects","handle","feedback"]);super(h_({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(DL))?t:[...r.sensors]).map((e=>{const t=e instanceof $q?e:r.registry.register(e.plugin),n=e instanceof $q?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),M_(this,yF,C_(vF,8,this)),C_(vF,11,this),M_(this,xF,C_(vF,12,this)),C_(vF,15,this),M_(this,SF,C_(vF,16,this)),C_(vF,19,this),this.element=n,this.handle=i,this.feedback=a}};vF=v_(bF),yF=new WeakMap,xF=new WeakMap,SF=new WeakMap,E_(vF,4,"handle",gF,LF,yF),E_(vF,4,"element",mF,LF,xF),E_(vF,4,"feedback",hF,LF,SF),w_(vF,LF);var qF=class extends(EF=Fq,CF=[bO],wF=[bO],EF){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=b_(r,["element","effects"]);const{collisionDetector:a=t_}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new Yj(r),o=lT((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=mT(!1);super(m_(h_({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new vj(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),M_(this,kF),M_(this,AF,C_(RF,8,this)),C_(RF,11,this),M_(this,DF,C_(RF,12,this)),C_(RF,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){I_(this,kF,e,IF)}get element(){var e;return null!=(e=this.proxy)?e:P_(this,kF,MF)}};function NF(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}RF=v_(EF),AF=new WeakMap,kF=new WeakSet,DF=new WeakMap,PF=E_(RF,20,"#element",CF,kF,AF),MF=PF.get,IF=PF.set,E_(RF,4,"proxy",wF,qF,DF),w_(RF,qF);var jF="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?N:k;function _F(){const e=A(0)[1];return T((()=>{e((e=>e+1))}),[e])}function zF(e,t=[],r=!1){const n=P(e);return n.current=e,function(e,t=!1){const r=P(e.peek()),n=P(!1),o=_F();return jF((()=>RT((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?B(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(R((()=>mO((()=>n.current()))),t),r)}function FF(e,t){const r=P(new Map),n=_F();return jF((()=>{if(e)return RT((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=lT((()=>n[1])),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?B(n):n())}));r.current.clear()}),[e]),R((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function HF(e,t){e()}function $F(e){const t=P(e);return jF((()=>{t.current=e}),[e]),t}function BF(e,t,r=k,n=Object.is){const o=P(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function WF(e,t){const r=P(NF(e));jF((()=>{const n=NF(e);n!==r.current&&(r.current=n,t(n))}))}var VF=Object.getOwnPropertySymbols,UF=Object.prototype.hasOwnProperty,GF=Object.prototype.propertyIsEnumerable,YF=M(new OF),KF=q(L((({children:e},t)=>{const[r,n]=A(0),o=P(null),i=P(null),a=R((()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise((e=>{i.current=e}))),_((()=>{e(),n((e=>e+1))}))}})),[]);return jF((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),z(t,(()=>a)),null}))),XF=[void 0,gO];function JF(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)UF.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&VF)for(var n of VF(e))t.indexOf(n)<0&&GF.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=P(null),{plugins:d,modifiers:p,sensors:f}=u,h=hN(d,TF.plugins),m=hN(f,TF.sensors),g=hN(p,TF.modifiers),b=$F(o),v=$F(i),y=$F(s),x=$F(a),S=$F(l),w=$F(n),C=function(e){const t=P(null);t.current||(t.current=e());return j((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new OF(u)}));return k((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=b.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)})),r.addEventListener("dragover",(e=>{const r=y.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragmove",(e=>{const r=x.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragend",(e=>{const r=S.current;r&&t((()=>r(e,C)))})),r.addEventListener("collision",(e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)}))];return()=>n.forEach((e=>e()))}),[C]),BF(h,(()=>C&&(C.plugins=h)),...XF),BF(m,(()=>C&&(C.sensors=m)),...XF),BF(g,(()=>C&&(C.modifiers=g)),...XF),rr.jsxs(YF.Provider,{value:C,children:[rr.jsx(KF,{ref:c,children:r}),r]})}function ZF(){return O(YF)}function QF({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=P(null),l=ZF(),u=null!=(a=zF((()=>null==l?void 0:l.dragOperation.source),[l]).value)?a:null,c="function"==typeof i?i(u):i;k((()=>{if(!s.current||!l||c)return;const e=l.plugins.find((e=>e instanceof kz));return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0}),[l,c]),k((()=>{if(!l)return;const e=l.plugins.find((e=>e instanceof kz));return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0}),[l,r]);const d=R((()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?eH:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})}),[l]);return rr.jsx(YF.Provider,{value:d,children:S(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return rr.jsx(tH,{source:u,children:e});return e}())})}function eH(){return()=>{}}function tH({children:e,source:t}){return e(FF(t))}var rH,nH,oH,iH,aH,sH=Object.create,lH=Object.defineProperty,uH=Object.getOwnPropertyDescriptor,cH=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),dH=e=>{throw TypeError(e)},pH=["class","method","getter","setter","accessor","field","value","get","set"],fH=e=>void 0!==e&&"function"!=typeof e?dH("Function expected"):e,hH=(e,t,r,n,o)=>({kind:pH[e],name:t,metadata:n,addInitializer:e=>r._?dH("Already initialized"):o.push(fH(e||null))}),mH=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=pH[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,uH(o,r)),h=n.length-1;h>=0;h--)(l=hH(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,fH(a)&&(f[d]=a);return f&&lH(o,r,f),o},gH=(e,t,r)=>t.has(e)||dH("Cannot "+r),bH=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},vH=class extends(oH=wO,nH=[vO],rH=[vO],oH){constructor(e){var t,r,n;super(bH.from(e),((e,t)=>bH.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(aH,5,this),t=this,n=0,(r=iH).has(t)?dH("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return bH.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=bH.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(gH(a=this,s=iH,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);aT((()=>{((e,t,r)=>{gH(e,t,"write to private field"),t.set(e,r)})(this,iH,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(bH.from(e)),this.velocity={x:0,y:0}}};aH=(e=>{var t;return[,,,sH(null!=(t=null==e?void 0:e[cH("metadata")])?t:null)]})(oH),iH=new WeakMap,mH(aH,2,"delta",nH,vH),mH(aH,2,"direction",rH,vH),((e,t)=>{((e,t,r)=>{t in e?lH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,cH("metadata"),e[3])})(aH,vH);var yH=(e=>(e.Horizontal="x",e.Vertical="y",e))(yH||{});function xH(e){const t=ZF();k((()=>{if(!t)return;const r=Object.entries(e).reduce(((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e}),[]);return()=>r.forEach((e=>null==e?void 0:e()))}),[t,e])}Object.values(yH);const SH=()=>{const[e,t]=A(!1);return xH({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?rr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},wH=(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}),CH=()=>{const e=iR(pR),t=iR(hR);return!e("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},EH=GE((e=>{const t=e(bR),r=e($R);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,u=o?i:i-t,c=await r.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()}),r.applyPatches(p,!0)}})),RH=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),AH=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),PH=e=>e.atTop?2:1,MH=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],IH=e=>e?.setAttribute("tabIndex","0"),kH=e=>e?.setAttribute("tabIndex","-1"),DH=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(kH)},TH=e=>{e?.focus(),IH(e)},OH=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${oE}`);TH(t)}),0)},LH=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{DH(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 nE.Down:u<s&&u++;break;case nE.Up:u>a&&u--;break;case nE.Right:if(i)break;[u,c]="rtl"===n?RH({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):AH({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case nE.Left:if(i)break;[u,c]="rtl"===n?AH({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):RH({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case nE.Home:(VD(e)||i)&&(u=a),i||(c=0);break;case nE.End:(VD(e)||i)&&(u=s),i||(c=l);break;case nE.PageDown:u=Math.min(s,u+10);break;case nE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=MH(t,a);return TH(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}},qH=(e,t,r,n)=>{DH(t),r(e),n.enabled&&!n.active?n.focus?.():TH(MH(t,e))},NH=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${eE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${AP.First}`),r=e.querySelector(`.${AP.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},jH=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),_H=pc(Hh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...WP,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),zH=pc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:HP,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),FH=parseInt(HP,10)/2,HH=pc("div")({position:"absolute",bottom:-FH,left:`calc(50% - ${FH}px)`}),$H={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},BH=pc(rp)({height:"100%"}),WH=pc("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?{...$H,whiteSpace:"nowrap",display:r?"block":void 0}:{...$H,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),VH=pc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),UH="cell-text",GH=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const a=iR(sk);return o?rr.jsx(WH,{"data-testid":UH,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):rr.jsx(WH,{"data-testid":UH,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},YH=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=iR(vR),l=iR(EH),u=iR(LR),c=iR(AR),d=iR(cR),p=iR(JR),f=iR(lR),h=iR(pk)[t.pageColIdx],m=iR(HR),g=P(null),b=P(null),v=(({column:e,columnWidth:t})=>{const r=iR(sk),{measureText:n}=BC({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:$P});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,u=t-25,c=s?20:0,d=l?20:0;let p=n(e.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}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?rr.jsx(Kk,{height:HP,"data-testid":"head-cell-sort-ascending-icon"}):rr.jsx(Zk,{height:HP,"data-testid":"head-cell-sort-descending-icon"}),a=r?rr.jsx(zH,{align:t,dir:o,children:i}):void 0,s=n?rr.jsx(nM,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:rr.jsx(jH,{height:HP,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,u);return rr.jsxs(rM,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:KP(t,i,u),children:[S,rr.jsxs(tM,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,rr.jsx(GH,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?rr.jsxs(rr.Fragment,{children:[rr.jsx(pD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[uD.Sorting]:!0,[uD.Searching]:!0,[uD.Selections]:!0,[uD.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:OH},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),rr.jsx(eM,{ref:b,direction:u,isPagination:i}),rr.jsx(eM,{ref:g,direction:u})]}):null]})},KH=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),XH=(e,t)=>e.isCyclic&&t,JH=({column:e})=>{const t=iR(sk),r=iR(LR),n=iR(HR),o=x.useRef(null),[i,a]=x.useState(!1),s=wk({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return rr.jsxs(rr.Fragment,{children:[rr.jsx(iM,{hoverBackground:t.headerMenuHoverBackground,activeBackground:t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:rr.jsx(KH,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),rr.jsx(Bk,{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:Qk,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},ZH=e=>e.isLocked,QH=({column:e})=>{const t=iR(lR),r=iR(vR),n=iR(sk);return rr.jsx(iM,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=Vk(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:rr.jsx(jH,{height:16,"data-testid":"head-cell-lock-icon"})})},e$=({column:e,open:t,setOpen:r,isPagination:n})=>{const o=iR(sk),i=iR(vR),a=iR(LR),s=iR(AR),l=iR(cR),u=iR(JR),c=iR(lR),d=iR(HR),p=iR(EH),f=x.useRef(null),h=x.useRef(null);return rr.jsxs(iM,{tabIndex:-1,hoverBackground:o.headerMenuHoverBackground,activeBackground:o.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[rr.jsx(pD,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:u,anchorRef:f,menuAvailabilityFlags:{[uD.Sorting]:!0,[uD.Searching]:!0,[uD.Selections]:!0,[uD.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:s,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),p?.(e,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:h},selectionRelatedArgs:{app:c,qStateName:i},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:OH},shouldShowMenuIcon:!0,model:d,direction:a,isPagination:n,isAccessibleHeader:!1,iconSize:16}),rr.jsx(eM,{ref:h,direction:a,isPagination:n}),rr.jsx(eM,{ref:f,direction:a})]})},t$=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,r$=(e,t)=>{const r=P(t);r.current=t,N((()=>{if(!e.current)return()=>{};const t=new ResizeObserver((e=>{r.current(e)}));return t.observe(e.current),()=>{t.disconnect()}}),[e])},n$=pc(rp)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),o$=({children:e})=>{const t=x.useRef(null),[r,n]=A((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=R((()=>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 r$(t,i),rr.jsx(n$,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})},i$=({children:e})=>e,a$=(e,t)=>!e.isLocked&&e.isDim&&t,s$=({column:e,open:t,setOpen:r})=>{const n=iR(sk),o=iR(vR),i=iR(LR),a=iR(cR);iR(lR);const s=x.useRef(null),l=T((()=>{r(!1)}),[r]),u=Wk({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return rr.jsx(iM,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:rr.jsx(nD,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},l$=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),u$=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),c$=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?rr.jsx(u$,{height:HP,"data-testid":"head-cell-sort-ascending-icon"}):rr.jsx(l$,{height:HP,"data-testid":"head-cell-sort-descending-icon"});return r?rr.jsx(HH,{children:n}):void 0},d$=0,p$=1,f$=2,h$=3,m$=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i}=e,a=iR(sk),s=iR(DR),{measureText:l}=BC(a.header),[u,c]=x.useState(!1);return rr.jsxs(o$,{children:[rr.jsx(i$,{prio:f$,minWidth:QP,children:ZH(t)?rr.jsx(QH,{column:t}):null},"Lock"),rr.jsx(i$,{prio:p$,minWidth:QP,children:XH(t,s)?rr.jsx(JH,{column:t}):null},"Cyclic"),rr.jsx(i$,{ignore:!0,children:rr.jsx(c$,{column:t})},"Sort"),rr.jsx(i$,{minWidth:l(t.label)+8,children:rr.jsx(oM,{justifyContent:t.headTextAlign,children:rr.jsx(GH,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),rr.jsx(i$,{prio:d$,minWidth:QP,children:u||a$(t,s)?rr.jsx(s$,{open:u,setOpen:c,column:t}):null},"Search"),rr.jsx(i$,{prio:h$,minWidth:QP,children:s?rr.jsx(e$,{column:t,open:r,setOpen:n,isPagination:o}):null},"Menu")]})},g$=pc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),b$=()=>{},v$=({column:e,isPagination:t})=>{const r=iR(sk),n=iR(LR),o=iR(nT),i=iR(VI),a=!1,s=CH()?YH:m$;return rr.jsx(g$,{className:"sn-table-cell",applicableStyle:{...r.header,...wH(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:JP(n,a,o),borderLeftWidth:ZP(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:r.header.background,children:rr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:b$})})},y$=({isPagination:e})=>{const t=iR(UI),[r,n]=A();xH({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?rr.jsx(QF,{children:rr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:rr.jsx(v$,{column:o,isPagination:e})})}):null},x$=[uF.configure({activationConstraints:[new iF.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],S$=TF.plugins.filter((e=>e!==z_)),w$=({children:e})=>{const t=iR($R),r=iR(UI);return rr.jsx(JF,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e)return;const o=t.findIndex((e=>e.id===r)),i=t.findIndex((e=>e.id===n)),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map((e=>e.colIdx)).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:x$,plugins:S$,children:e})};function C$(e,t){const r=P(!1);k((()=>{r.current?e():r.current=!0}),t)}const E$=GE(PP),R$=gP((e=>GE((t=>{const[r,n]=t(E$);return 0===r&&n===e})))),A$=()=>{const e=iR(uR);k((()=>{e.notifyIsDoneRendering()}))};var P$={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 M$=GE((e=>{const t=e(JR),r=e(GR);let n;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(P$).forEach((t=>{e.add(P$[t])}))}(t),({keys:e,politeness:o="polite"})=>{const i=e.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=r.querySelector(`.${AP.First}`),s=r.querySelector(`.${AP.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;n===AP.First?(l=s,n=AP.Second):(l=a,n=AP.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})),I$=(e,t)=>{const r=iR(M$),n=iR(GR),o=iR(KI),i=iR(YI),a=iR(GI),s=iR(VI),[l,u]=sR(E$),c=iR(CR),d=iR(FR);C$((()=>{const t=((e,t,r=!1)=>{const n=[PH(t),e[1]];return r?n:PP})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(DH(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=MH(t,e);r.current?(TH(s),r.current=!1):IH(s),n&&(a({keys:[s?.textContent??""]}),WD(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:r})}),[a.length,i,o,t])},k$=e=>{const t=iR(LR),r=iR(xI);k((()=>{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])},D$=e=>{TC(e),VD(e)&&pE(e.currentTarget)},T$=e=>{KD(e.evt)&&(TC(e.evt),LH(e))},O$=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!KD(t))return;TC(t);const i=((e,t)=>[e.pageRowIdx+PH(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?PH(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=LH({...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:EP.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):WD(o,a,i)})({...e,nextCell:s})},L$=e=>{const{evt:t}=e;UD(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{TC(e);const a=Math.ceil(t/r)-1;e.key===nE.Right&&n<a?(o(),i(n+1)):e.key===nE.Left&&n>0&&(o(),i(n-1))})(e):t.key===nE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(TC(e),t.blur?.(!0))})(e):GD(t.key)&&TC(t)},q$=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(CP.Disabled))return void TC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case nE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{TC(e),t.isSelectable&&r&&n({type:EP.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case nE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{TC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case nE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(TC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case nE.C:D$(t);break;case nE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(TC(e),DC(e.currentTarget,t,e.shiftKey))})(n);break;default:O$(n)}},N$=e=>{const t=iR(aM),r=aR(sM),n=aR(lM),o=iR(wP),i=P();r$(e,(a=>{const s=()=>{if(e.current){const e=a.at(0)?.borderBoxSize.at(0)?.inlineSize??0,t=a.at(0)?.borderBoxSize.at(0)?.blockSize??0,o=a.at(0)?.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.at(0)?.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()})),k((()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}}),[o])},j$=pc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),_$=pc(Vh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),z$=pc(Ih,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),F$=()=>rr.jsxs(rr.Fragment,{children:[rr.jsx(j$,{className:AP.First,"data-testid":AP.First,"aria-live":"polite","aria-atomic":"true"}),rr.jsx(j$,{className:AP.Second,"data-testid":AP.Second,"aria-live":"polite","aria-atomic":"true"})]}),H$=e=>{const t=P(new Map),r=P(null);k((()=>{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 R((()=>({addTask:n,removeTask:o})),[n,o])},$$=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),B$=()=>H$($$),W$=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=iR(ER),n=iR(FR),o=aR(tT);k((()=>{const i=()=>{o({type:EP.Reset})},a=()=>{o({type:EP.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}}),[r,n,o,e,t])},V$=e=>{e.stopPropagation()},U$=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:V$,color:RC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),G$=({href:e,text:t,interactions:r,color:n})=>rr.jsx(ef,{...U$({href:e,text:t,interactions:r,color:n}),children:t}),Y$=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),K$=window.cancelIdleCallback??(e=>{clearTimeout(e)}),X$="qDimensionInfo/0",J$="qMeasureInfo/0",Z$="x",Q$="y",eB=e=>({key:"bars",type:"box",data:{extract:{field:X$,props:{start:0,end:{field:J$}}}},settings:{major:{scale:Z$},minor:{scale:Q$},box:{maxWidthPx:8,fill:{fn:e}}}}),tB=e=>({key:"p",type:"point",data:{extract:{field:X$,props:{y:{field:J$}}}},settings:{x:{scale:Z$},y:{scale:Q$},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),rB=({qNum:e})=>void 0===e?0:Math.sign(e),nB=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=IC(e,t?.negative,r),a=IC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:X$,props:{start:0,end:{field:J$,value:rB}}}},settings:{major:{scale:Z$},minor:{scale:Q$},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}}}}},oB=(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=IC(e,t?.main,o),l=IC(e,t?.max,s),u=IC(e,t?.min,s),c=IC(e,t?.first,s),d=IC(e,t?.last,s);return e=>{const t=Q$ in e.datum?Q$:"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[eB(a)];case"dots":return[tB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:X$,props:{v:{field:J$}}}},settings:{coordinates:{major:{scale:Z$},minor:{scale:Q$,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(IC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,tB(a)]:[t]}case"posNeg":return[nB(e,n)];default:return[]}},iB=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"}),aB=(e,t,r,n)=>({y:{data:{field:J$},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:X$}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),sB=V();sB.use(W),sB.renderer.prio(["canvas"]);const lB={resolve:()=>{},promise:{}},uB=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=P(e.isDownloadedAsPDForImage?It():lB);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=Y$((()=>{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 sB.chart({element:e,data:{type:"q",key:"qHyperCube",data:iB(s)},settings:{scales:aB(a,l,u,i),components:oB(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&&K$(r.current),r.current=null,l()}),[r,l])}},cB=e=>{const t=P(null),r=P(!1);return T((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(K$(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=Y$((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},dB=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=P(null),l=P(null),u=P(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=uB({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]);k((()=>{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})=>{k((()=>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=cB(t);k((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},pB=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=dB({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return rr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},fB=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}`},hB=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},mB=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=iR(LR),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=rr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:hB(s),objectPosition:fB(l),overflow:"hidden"}});return n?rr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?UP(o,e):void 0},children:c}):c},gB=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),bB=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),vB=L(((e,t)=>rr.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:[rr.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"}),rr.jsx("use",{fillRule:"evenodd"})]}))),yB=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),xB=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),SB=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),wB=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M2 7.5h12v1H2z"})}))),CB=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),EB=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),RB=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),AB=L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),PB={m:L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":RB,R:u$,S:l$,T:L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})}))),U:L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})}))),P:EB,Q:SB,"è":L(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.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"})}))),"¢":yB,"©":vB,"23F4":xB,2013:AB,"&":CB,add:gB,"minus-2":wB,dot:bB},MB=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&PB[t];return o&&rr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:rr.jsx(o,{style:{height:e}})})},IB=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=iR(sk),o=iR(LR),i=iR(XR),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=_P(e,t,o,i),d=(e=>parseInt(e||HP,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?rr.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&&MB({size:d,iconKey:f,color:p}),rr.jsx(GH,{isNumeric:!0,children:a}),"right"===h&&MB({size:d,iconKey:f,color:p})]}):MB({size:d,iconKey:f,color:p})},kB=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,DB=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=iR(sk),u=iR(uR),c=iR(hR),d=iR(XR),p=iR(LR),f=iR(AR),h=iR(CR);if(t.representation.type===CA.Image&&!t.representation.url?.trim())return null;if(t.representation.type===CA.Image)return rr.jsx(mB,{representation:t.representation,textStyle:r,maxImageHeight:kB(l,o),wrapInContainer:!n});let m=t.representation.text;t.representation.type!==CA.Link||h||(m=rr.jsx(G$,{href:t.representation.url,text:t.representation.text,interactions:f,color:r.cellForegroundColor}));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!==CA.Indicator||Number.isNaN(g)?t.representation.type===CA.MiniChart&&t.representation.miniChart&&!t.isNull?rr.jsx(pB,{height:kB(l,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:d,isSnapshot:!!c.snapshotData,direction:p,downloadService:u}):rr.jsx(GH,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):rr.jsx(IB,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},TB=()=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:rr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),OB=pc("div")({"& path":{stroke:"none !important"}}),LB=({children:e,cellSelectionState:t})=>t===CP.Selected?rr.jsxs(VH,{children:[e,rr.jsx(OB,{children:rr.jsx(TB,{})})]}):e,qB=e=>{const t=function(){const e=ZF(),t=zF((()=>null==e?void 0:e.dragOperation.source),[e]),r=zF((()=>null==e?void 0:e.dragOperation.target),[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},NB=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:EP.SelectMultiEnd})};r({type:EP.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:EP.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:EP.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),jB=e=>{const t=iR(XI),r=iR(VI),n=iR(M$),o=iR(GR),i=iR(LR),a=aR(E$),s=aR(tT),l=iR(FR),u=iR(IR),c=iR(ER),d=d=>{q$({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===nE.Shift&&t({type:EP.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;qH([s,a],t,r,n)})(e,o,a,l,r)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=NB(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},_B=e=>{k((()=>()=>{rT.remove(e)}),[e])},zB=(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},FB=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},HB=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return FB(t,e,n?"even":"odd")}return e},$B=(e,t)=>{const r=iR(sk),n=iR(rT(e));_B(e);let o=t.isDim?r.dimension.values:r.measure.values;o=HB(o,r,e),o=zB(o,r,e);const i=vM(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===CP.Selected?{...e,...r}:t===CP.Disabled?{...e,background:`${zP}, ${e.background}`}:e}(R((()=>e.isNull?o:vM(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}},BB=pc(Nh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),WB=pc(nm,{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}}}))),VB=pc(Hh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...WP,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),UB=pc(Hh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...WP,...e,fontWeight:$P,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0}))),GB=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=iR(LR),a=iR(AR),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=jB(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=$B(e,t),m=qB(t.id);return rr.jsx(VB,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${rE}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:rr.jsx(LB,{cellSelectionState:h,children:rr.jsx(DB,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:XP(i,e.align)})})})},YB=GE(0),KB=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=iR(sk),i=iR(MR),a=iR(YB),s=qB(e.id);return rr.jsx(UB,{totalsStyle:{...o.totalRow,...wH(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${rE}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:rr.jsx(GH,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},XB=()=>{const e=iR(VI),t=iR(UI),r=iR(GI),n=iR(GR),o=iR(PR),i=iR(LR),a=aR(E$),s=iR(CR),l=iR(FR);return rr.jsx(nm,{className:"sn-table-row sn-table-totals-row",children:t.map(((t,u)=>{const c=[e.atTop?1:r.length+1,u];return rr.jsx(KB,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case nE.C:D$(r);break;case nE.Space:r.preventDefault();break;default:T$(e)}else TC(r)})({evt:e,rootElement:n,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{qH(c,n,a,l)}},t.id)}))})};var JB=q(XB);const ZB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=iR(GI),n=iR(VI),o=iR(UI),i=iR(sk),a=iR(hR),s=!!hM(a)?.content?.hoverEffect;W$({updateShouldRefocus:e,tableWrapperRef:t});const l=(e=>{const t=T((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return H$(t)})(t),u=B$();return rr.jsxs(BB,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?rr.jsx(JB,{}):void 0,r.map(((e,t)=>rr.jsx(WB,{hoverColors:i.grid.hoverColors,hover:s,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:i.contentMinRowHeight,children:o.map(((t,r)=>{const{id:n}=t,o=e[r];return rr.jsx(GB,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:l,resizeObserverTaskScheduler:u},n)}))},`row-${t}`))),n.atBottom?rr.jsx(JB,{}):void 0]})};var QB=q(ZB);const eW=(e,t)=>!!e?.skipHeader||!!t.hideHeader,tW=GE((e=>{const t=e(hR),r=e(HR);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}})),rW=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=iR(tW),s=iR(LR),l=iR(PR),u=iR(JR),[c,d]=sR(pk);if(!l)return null;return rr.jsx(xk,{columnWidth:c.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{kH(e);const t=e.closest(".sn-table-cell");TH(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},nW=e=>e.target?.getAttribute("class")?.includes(oE),oW=({isInteractionEnabled:e,column:t})=>{const[r,n]=A(!1),o=iR(EH),i=iR(aM);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||nW(t)||i||n(!0)},toggleSortOrder:r=>{e&&!nW(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var iW=Object.defineProperty,aW=Object.defineProperties,sW=Object.getOwnPropertyDescriptors,lW=Object.getOwnPropertySymbols,uW=Object.prototype.hasOwnProperty,cW=Object.prototype.propertyIsEnumerable,dW=(e,t,r)=>t in e?iW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pW=(e,t)=>{for(var r in t||(t={}))uW.call(t,r)&&dW(e,r,t[r]);if(lW)for(var r of lW(t))cW.call(t,r)&&dW(e,r,t[r]);return e},fW=(e,t)=>aW(e,sW(t)),hW=class extends cN{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return fW(pW({},e),{[t]:r})}};hW.configure=kL(hW);var mW=hW;mW.configure({axis:"x",value:0}),mW.configure({axis:"y",value:0});var gW=class extends cN{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return fW(pW({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};gW.configure=kL(gW);var bW=class extends cN{constructor(e,t){super(e,t),this.boundingRectangle=mT(null),this.destroy=RT((()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=EN(r)},i=()=>{n||(n=setTimeout((()=>{o(),n=void 0}),25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}}))}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=pW({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new VO(l,u,s,a),r,n);return c}};bW.configure=kL(bW);var vW=bW,yW=Object.create,xW=Object.defineProperty,SW=Object.defineProperties,wW=Object.getOwnPropertyDescriptor,CW=Object.getOwnPropertyDescriptors,EW=Object.getOwnPropertySymbols,RW=Object.prototype.hasOwnProperty,AW=Object.prototype.propertyIsEnumerable,PW=e=>{throw TypeError(e)},MW=(e,t,r)=>t in e?xW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,IW=(e,t)=>{for(var r in t||(t={}))RW.call(t,r)&&MW(e,r,t[r]);if(EW)for(var r of EW(t))AW.call(t,r)&&MW(e,r,t[r]);return e},kW=(e,t)=>SW(e,CW(t)),DW=["class","method","getter","setter","accessor","field","value","get","set"],TW=e=>void 0!==e&&"function"!=typeof e?PW("Function expected"):e,OW=(e,t,r,n,o)=>({kind:DW[e],name:t,metadata:n,addInitializer:e=>r._?PW("Already initialized"):o.push(TW(e||null))}),LW=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},qW=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=DW[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,wW({get[r](){return jW(this,i)},set[r](e){return zW(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=OW(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},u),l._=1,void 0===s?TW(s)&&(g[f]=s):"object"!=typeof s||null===s?PW("Object expected"):(TW(a=s.get)&&(g.get=a),TW(a=s.set)&&(g.set=a),TW(a=s.init)&&h.unshift(a));return g&&xW(o,r,g),o},NW=(e,t,r)=>t.has(e)||PW("Cannot "+r),jW=(e,t,r)=>(NW(e,t,"read from private field"),t.get(e)),_W=(e,t,r)=>t.has(e)?PW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zW=(e,t,r,n)=>(NW(e,t,"write to private field"),t.set(e,r),r);function FW(e){return e instanceof gV||e instanceof mV}var HW=Object.defineProperty,$W=Object.defineProperties,BW=Object.getOwnPropertyDescriptors,WW=Object.getOwnPropertySymbols,VW=Object.prototype.hasOwnProperty,UW=Object.prototype.propertyIsEnumerable,GW=(e,t,r)=>t in e?HW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,YW=(e,t)=>{for(var r in t||(t={}))VW.call(t,r)&&GW(e,r,t[r]);if(WW)for(var r of WW(t))UW.call(t,r)&&GW(e,r,t[r]);return e},KW=(e,t)=>$W(e,BW(t));function XW(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function JW(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function ZW(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex((e=>u(e,a.id))),o=e.findIndex((e=>u(e,s.id)));if(-1===n||-1===o){if(JW(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex((e=>u(e,a.id))),-1!==f&&(d=e)),-1===h&&(h=t.findIndex((e=>u(e,s.id))),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&JW(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return KW(YW({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return KW(YW({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&JW(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return KW(YW({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return KW(YW({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return KW(YW({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return KW(YW({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,XW)}var QW="__default__";function eV(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function tV(e,t){return e.index-t.index}function rV(e){return Array.from(e).sort(tV)}var nV,oV,iV,aV,sV,lV,uV,cV,dV=[class extends TL{constructor(e){super(e);const t=RT((()=>{const{dragOperation:t}=e;if(Zj(t.activatorEvent)&&FW(t.source)&&t.status.initialized){const t=e.registry.plugins.get(Bz);if(t)return t.disable(),()=>t.enable()}})),r=e.monitor.addEventListener("dragmove",((e,t)=>{queueMicrotask((()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!Zj(e.nativeEvent))return;if(!FW(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];aT((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&FW(e)||!e.element)continue;let r=e.shape;const n=new Yj(e.element,{getBoundingClientRect:e=>ON(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push((()=>e.shape=r))))}})),e.preventDefault(),o.disable();const f=o.computeCollisions(d,r_);aT((()=>p.forEach((e=>e()))));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then((()=>{const{source:e,target:t,shape:i}=r;if(!e||!FW(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;Hj(c);const d=new Yj(c);if(!d)return;const p=VO.delta(d,VO.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then((()=>o.enable())):o.enable()}))}))}));this.destroy=()=>{r(),t()}}},class extends TL{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof gV){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(rV(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!FW(o)||!FW(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask((()=>{e.defaultPrevented||r.renderer.rendering.then((()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=rV(l),g=s?m:rV(u),b=null!=(c=o.sortable.group)?c:QW,v=null!=(d=i.sortable.group)?d:QW,y={[b]:m,[v]:g},x=ZW(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),eV(f,S,h,w),aT((()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e})),r.actions.setDropTarget(o.id).then((()=>r.collisionObserver.enable()))}))}))})),e.monitor.addEventListener("dragend",((e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;FW(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask((()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=rV(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(eV(r,i.index,a,o.index),aT((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}})))}))})))}))];this.destroy=()=>{for(const e of r)e()}}}],pV={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},fV=new class{constructor(){pO(this,SO,new WeakMap)}get(e,t){var r;return e?null==(r=dO(this,SO).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return dO(this,SO).has(e)||dO(this,SO).set(e,new Map),null==(n=dO(this,SO).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=dO(this,SO).get(e))?void 0:t.clear():void 0}};oV=[bO],nV=[bO];var hV=class{constructor(e,t){_W(this,aV,LW(iV,8,this)),LW(iV,11,this),_W(this,sV),_W(this,lV),_W(this,uV,LW(iV,12,this)),LW(iV,15,this),_W(this,cV),this.register=()=>(aT((()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)})),()=>this.unregister()),this.unregister=()=>{aT((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{aT((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=pV,plugins:u=dV}=r,c=((e,t)=>{var r={};for(var n in e)RW.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&EW)for(var n of EW(e))t.indexOf(n)<0&&AW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new gV(c,t,this),this.draggable=new mV(kW(IW({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&fV.clear(this.manager),(null==n?void 0:n.dragging)&&fV.set(this.manager,this.id,lT((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=jW(this,lV),o=jW(this,sV);e===n&&t===o||(zW(this,lV,e),zW(this,sV,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),zW(this,cV,c.element),this.manager=t,this.index=i,zW(this,lV,i),this.group=o,zW(this,sV,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=fV.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=fV.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){lT((()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then((()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=Ij(n),l=Bj(n,s,!1),u=Bj(n,s);if(i||a){const r=HN(PN(n))?kW(IW({},t),{duration:0}):t;$j({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}}))}))}get manager(){return this.draggable.manager}set manager(e){aT((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){aT((()=>{const t=jW(this,cV),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),zW(this,cV,e)}))}get element(){var e,t;const r=jW(this,cV);if(r)return null!=(t=null!=(e=VN.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){aT((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){aT((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){aT((()=>{this.droppable.id=e,this.draggable.id=e}))}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:t_}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){aT((()=>{this.droppable.type=e,this.draggable.type=e}))}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};iV=[,,,yW(null)],aV=new WeakMap,sV=new WeakMap,lV=new WeakMap,uV=new WeakMap,cV=new WeakMap,qW(iV,4,"index",oV,hV,aV),qW(iV,4,"group",nV,hV,uV),((e,t)=>{return MW(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(iV,hV);var mV=class extends LF{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},gV=class extends qF{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},bV=Object.defineProperty,vV=Object.defineProperties,yV=Object.getOwnPropertyDescriptors,xV=Object.getOwnPropertySymbols,SV=Object.prototype.hasOwnProperty,wV=Object.prototype.propertyIsEnumerable,CV=(e,t,r)=>t in e?bV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,EV=(e,t)=>{for(var r in t||(t={}))SV.call(t,r)&&CV(e,r,t[r]);if(xV)for(var r of xV(t))wV.call(t,r)&&CV(e,r,t[r]);return e};function RV(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=EV(EV({},pV),e.transition),b=function(e){var t;const r=null!=(t=ZF())?t:void 0,[n]=A((()=>e(r)));return n.manager!==r&&(n.manager=r),jF(n.register,[r,n]),n}((t=>new hV(((e,t)=>vV(e,yV(t)))(EV({},e),{transition:g,register:!1,handle:NF(s),element:NF(a),target:NF(h),feedback:d}),t))),v=FF(b,AV);return BF(o,(()=>b.id=o)),jF((()=>{aT((()=>{b.group=u,b.index=l}))}),[b,u,l]),BF(m,(()=>b.type=m)),BF(t,(()=>b.accept=t),void 0,gO),BF(i,(()=>i&&(b.data=i))),BF(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),HF),WF(s,(e=>b.handle=e)),WF(a,(e=>b.element=e)),WF(h,(e=>b.target=e)),BF(c,(()=>b.disabled=!0===c)),BF(f,(()=>b.sensors=f)),BF(r,(()=>b.collisionDetector=r)),BF(n,(()=>b.collisionPriority=n)),BF(d,(()=>b.feedback=null!=d?d:"default")),BF(g,(()=>b.transition=g),void 0,gO),BF(p,(()=>b.modifiers=p),void 0,gO),BF(e.alignment,(()=>b.alignment=e.alignment)),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:T((e=>{b.handle=null!=e?e:void 0}),[b]),ref:T((e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)}),[b]),sourceRef:T((e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)}),[b]),targetRef:T((e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)}),[b])}}function AV(e,t,r){return!("isDragSource"!==e||r||!t)}const PV=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/WO.distance(r.shape.center,s),type:tq.Collision,priority:eq.Normal}:null},MV=[vW.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],IV=(e,t)=>{const r=iR(LR),n=iR(pR),o=!iR(DR)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return RV({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:MV,data:e,feedback:"clone",collisionDetector:PV({invert:"rtl"===r})})},kV=({column:e,columnIndex:t,columnsLength:r})=>{const n=iR(sk),o=iR(GR),i=iR(LR),a=iR(AR),s=iR(UI),l=iR(VI),u=iR(pk)[t],c=aR(E$),d=iR(R$(t)),p=iR(DR),f=iR(FR),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=oW({isInteractionEnabled:p,column:e}),v=aR(aM),{ref:y,isDragging:x}=IV(e,t),S=qB(e.id),w=CH(),C=w?YH:m$,E=e.isActivelySorted?RP[e.sortDirection]:void 0,R=h?tE:void 0,A=h?"true":void 0,P=t===r-1,M=[0,e.pageColIdx],I={width:u,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return rr.jsxs(_H,{"data-dragging":x,ref:y,headerStyle:{...n.header,...wH(n,l,!0),opacity:S},background:w&&h?n.headerMenuActiveBackground:n.header.background,hoverBackground:n.headerMenuHoverBackground,interactions:a,style:I,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${rE}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case nE.C:D$(r);break;case nE.Enter:case nE.Space:n?.(r);break;default:T$(e)}else TC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&qH(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[rr.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0}),rr.jsx(rW,{column:e,isLastColumn:P,setIsAdjustingWidth:v})]},e.id)},DV=()=>{const e=iR(UI),t=iR(sk),r=iR(hR),n=iR(NR),o=aR(YB),i=iR(pk),a=P(null),s=eW(n,r);return k((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),rr.jsx(Jh,{style:{visibility:s?"collapse":void 0},children:rr.jsx(nm,{ref:a,className:"sn-table-row sn-table-head-row",style:{position:"sticky",top:0},children:e.map(((t,r)=>rr.jsx(kV,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var TV=q(DV);const OV=()=>{const e=iR(M$),[t,r]=sR(NI),{page:n,rowsPerPage:o}=t,i=iR(qR),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=iR(WI),p=iR(sk),f=iR(xI),h=iR(hR),m=iR(XR),g=iR(UR),b=iR(GR),v=iR(NR),y=iR(LR),x=iR(AR),S=iR(JR),w=iR(nT),C=aR(tT),E=iR(CR),R=iR(FR),A=P(!1),M=P(null),I=P(null),D=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,O=TR(h,v),L=O?f.scrollLeft??0:0,q=O?f.rowPartialHeight??0:0,N=T((()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),j=T((n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})}),[t,r,l,e]),_=T((n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})}),[e,t,r]);return k$(M),((e,t)=>{const r=iR(FR);k((()=>{const n=e.current;if(!n)return;const o=e=>{NH(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(I,A),(()=>{const e=iR(GR),t=iR(FR),r=iR(E$);YC((()=>{const n=MH(e,r);t.active?TH(n):(n?.blur(),DH(e))}),[t.active,e])})(),I$(A,n),k((()=>{const e=M.current;e&&(e.scrollLeft=L,e.scrollTop=q)}),[t,s,L,q]),C$((()=>{C({type:EP.UpdatePageRows,payload:{pageRows:c}})}),[c]),A$(),N$(M),rr.jsxs(w$,{children:[rr.jsxs(BH,{ref:I,dir:y,onKeyDown:e=>{L$({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[rr.jsx(F$,{}),rr.jsxs(_$,{ref:M,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[rr.jsxs(z$,{stickyHeader:!0,"aria-label":D,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[rr.jsx(TV,{}),rr.jsx(QB,{updateShouldRefocus:N,tableWrapperRef:I})]}),rr.jsx(SH,{})]}),rr.jsx($D,{footerContainer:i,pageInfo:t,paginationNeeded:u,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),rr.jsx(y$,{isPagination:!0})]})};var LV=q(OV);const qV=GE(0),NV=GE((e=>{const t=e(mR);return Math.min(FI,t)})),jV=GE((e=>{const t=e(mR);return t===FI?0:Math.floor(t/FI)})),_V=GE((e=>{const t=e(qV),r=e(jV);return Math.min(t,r)})),zV=GE((e=>({page:e(_V),rowsPerPage:e(NV),rowsPerPageOptions:[]})),((e,t,r)=>{const n=e(jV);t(qV,Math.max(0,Math.min(r,n)))}));function FV(){return FV=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},FV.apply(null,arguments)}function HV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $V(e,t){return $V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$V(e,t)}function BV(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$V(e,t)}var WV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function VV(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||WV(n)&&WV(o)))return!1;var n,o;return!0}function UV(e,t){var r;void 0===t&&(t=VV);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 GV(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 YV="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function KV(e){cancelAnimationFrame(e.id)}function XV(e,t){var r=YV();var n={id:requestAnimationFrame((function o(){YV()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var JV=-1;function ZV(e){if(void 0===e&&(e=!1),-1===JV||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),JV=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return JV}var QV=null;function eU(e){if(void 0===e&&(e=!1),null===QV||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?QV="positive-descending":(t.scrollLeft=1,QV=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),QV}return QV}var tU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function rU(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,HV(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:HV(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=UV((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=UV((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=UV((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(eU()){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&&KV(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=XV(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}BV(t,e),t.getDerivedStateFromProps=function(e,t){return nU(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=ZV();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(eU()){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&&KV(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?tU:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],R=this._getVerticalRangeToRender(),A=R[0],P=R[1],M=[];if(n>0&&g)for(var I=A;I<=P;I++)for(var k=C;k<=E;k++)M.push(S(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:FV({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},S(u||c||"div",{children:M,ref:l,style:{height:D,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],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}(F),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var nU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},oU=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},iU=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},aU=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]},sU=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?lU(e,t,r,i,0,n):uU(e,t,r,Math.max(0,i),n)},lU=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=aU(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},uU=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&aU(e,t,n,r).offset<o;)n+=a,a*=2;return lU(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},cU=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=aU(e,t,r,i),u="column"===e?iU(t,i):oU(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}},dU=rU({getColumnOffset:function(e,t,r){return aU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return sU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=aU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=aU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:oU,getEstimatedTotalWidth:iU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return cU("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return cU("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return aU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return sU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=aU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=aU("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}}),pU=function(e,t){return e};function fU(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,HV(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:HV(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=UV((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=UV((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=UV((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(eU()){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&&KV(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=XV(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}BV(t,e),t.getDerivedStateFromProps=function(e,t){return hU(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?ZV():0:l.scrollHeight>l.clientHeight?ZV():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(eU()){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&&KV(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?pU: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,w=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],A=[];if(u>0)for(var P=E;P<=R;P++)A.push(S(t,{data:c,key:p(P,c),index:P,isScrolling:b?y:void 0,style:this._getItemStyle(P)}));var M=n(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:FV({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},S(s||l||"div",{children:A,ref:a,style:{height:x?"100%":M,pointerEvents:y?"none":void 0,width:x?M:"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}(F),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var hU=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},mU=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]},gU=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=mU(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},bU=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&mU(e,r,t).offset<n;)r+=i,i*=2;return gU(e,t,Math.min(r,o-1),Math.floor(r/2),n)},vU=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},yU=fU({getItemOffset:function(e,t,r){return mU(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:vU,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=mU(e,t,o),p=vU(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?gU(e,t,o,0,r):bU(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=mU(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=mU(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 xU(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 SU=["style"],wU=["style"];function CU(e,t){var r=e.style,n=GV(e,SU),o=t.style,i=GV(t,wU);return!xU(r,o)&&!xU(n,i)}const EU=GE(-1),RU=gP((e=>GE((t=>t(EU)===e)))),AU=({style:e})=>rr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var PU=x.memo(AU,CU);const MU=()=>{},IU=e=>{e.preventDefault()};const kU=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=iR(RU(t)),d=aR(EU),p=iR(sk),f=iR(LR),h=iR(MR),m=iR(nT),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const t="object"==typeof e,r=iR(IR),n=aR(tT),o=iR(rT(e));if(_B(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=NB(IU,e,n,MU);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=P(null),i=r&&!r.isNumeric,a=T((r=>{const o=t$(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return r$(o,a),o})(t,e,g,s),w=i[e]?.isDim?p.dimension.values:p.measure.values,C=qB(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=HB(o,i,e);a=zB(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?vM(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===CP.Selected?{...s,...i.selectedColors}:n===CP.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${zP}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,p),o={rowindex:t,columnindex:e};return rr.jsx("div",{className:`sn-table-cell ${x} ${rE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:p.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:JP(f,g.isLastColumn,m),borderLeftWidth:ZP(f,g.isLastColumn,m),justifyContent:GP(g,f),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:h?g.representation.text:void 0,...o,children:rr.jsx(LB,{cellSelectionState:x,children:rr.jsx(DB,{forwardRef:p.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return rr.jsx(PU,{style:{...r,...w,borderColor:p.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var DU=q(kU,CU);const TU=yI(GE((async e=>{const t=e(hR),r=e(HR),n=e(zV).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(FI,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]}))),OU=e=>{const t=P(e);return t.current=e,t},LU=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,qU=(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},NU=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},jU=(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],w=DI(h,e,a),C=!h&&e.qIsNull,E=C?kP(w):IP(e);f[r]={id:EM(),...e,align:II(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:(!C||!E)&&TI(e,h),representation:mI({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[CA.Image]:!0,[CA.Indicator]:!0,[CA.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}))}))},_U=({rowCount:e,visibleRowCount:t,visibleColumnCount:r,gridState:n,setEstimatedCellHeight:o})=>{const i=iR(hR),a=iR(XR),s=iR(HR),l=iR(dR),u=iR(LR),c=iR(zV),d=iR(TU),p=iR(UI),f=P([]),h=T(((t,r)=>{const n=Array.isArray(r)?r.slice(0,e):(e=>Array(e).fill(void 0))(e);return jU(t,c,n,p,i,l,o,u),f.current=n,n}),[e,c,p,i,l,o,u]),[m,g]=A((()=>h(d??[])));YC((()=>{g(h(d??[]))}),[d,u]);const b=((e,t)=>{const r=P(new Set),n=P(new Set),o=P(new Set),i=OU(e),a=OU(t),s=R((()=>({enqueue:e=>{const t=LU(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(LU(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=>s&&"getHyperCubeData"in s?s.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>h(e,t)))})),v=T(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(NU(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 o=t;o<t+n;o++){const t=Math.max(0,o-c.page*c.rowsPerPage);if(qU(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,c]);return k((()=>{const{qcx:e,qcy:o}=i.qHyperCube.qSize,a=n.current.overscanRowStartIndex,s=n.current.overscanColumnStartIndex,l=a+c.page*c.rowsPerPage,u=e-s,d=c.rowsPerPage-a,p=Math.min(100,u,e,r+5),f=Math.min(100,d,o,t+25);return y(s,l,p,f),()=>{b.clear()}}),[i,t,r,c,b,y,n,a]),{rowsInPage:m,loadRows:y,loadColumns:v}},zU=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},FU=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,HU=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=iR(sk),i=iR(pk),{estimateLineCount:a}=BC(o.dimension.values),s=ik(o.dimension.values.fontSize),l=e||t||1===r;return T(((e,t,o)=>{if(l||e.representation.type===CA.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])},$U=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=iR(xI);N((()=>{const i=e?n:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return Math.ceil(r)})(r.rowHeights);o.estimatedRowHeight=Math.max(i,t)}),[e,t,r,n,o])},BU=({rowCount:e,isSnapshot:t,gridRef:r})=>{const n=iR(sk),[o,i]=A({rowHeights:new Map,cellHeightsInGrid:new Map}),a=n.contentLineHeight,s=n.contentMinRowHeight,l=!!n.contentStaticLineCount,u=Math.max(8e6/e,s)-9,c=u+9,d=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(u/a))),p=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:d,lineHeight:a,isStaticNbrOfLines:l});(({gridRef:e,setState:t})=>{const r=iR(hR),n=iR(zV),o=iR(pk),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;YC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),YC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:r,setState:i});const f=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>T(((o,i,a)=>{_((()=>{e((e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!FU(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,zU(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[e,r,t,n]))({maxCellHeight:c,minRowHeight:s,setState:i,gridRef:r}),h=(({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:l,lineClamp:d,setCellHeight:f}),m=HU({isSnapshot:t,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),g=T((e=>l?p??s:o.rowHeights.get(e)??s),[l,s,o.rowHeights,p]);return $U({isStaticNbrOfLines:l,minRowHeight:s,state:o,staticRowHeight:p}),{setMeasuredCellHeight:h,setEstimatedCellHeight:m,getRowHeight:g,lineClamp:d}},WU=(e,t)=>{N((()=>()=>{t(0)}),[e,t]);const r=T((e=>{const r=t$(e);void 0!==r&&t(r)}),[t]);r$(e,r)};let VU=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const UU=({loadRows:e,loadColumns:t,rowCount:r,gridState:n})=>{const o=iR(xI),i=iR(hR),a=iR(zV);return T((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=VU.None,i=VU.None;return o=n>t?VU.Down:n<t?VU.Up:VU.None,i=r>e?VU.Right:r<e?VU.Left:VU.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,u);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=u,n.current.overscanRowStopIndex=c,u>r)return;const b=s,v=u+a.page*a.rowsPerPage,y=l-s+1,x=c-u+1;if(o.visibleLeft=d,o.visibleWidth=p-d+1,o.visibleTop=f+a.page*a.rowsPerPage,o.visibleHeight=h-f+1,o.page=a.page,o.rowsPerPage=a.rowsPerPage,m===VU.Down){const t=x+25;e(b,v,y,u+t>r?r-u:t)}else if(m===VU.Up){const t=x+25,r=a.page*a.rowsPerPage,n=Math.max(r,v-25);e(b,n,y,t)}if(g===VU.Right){const e=i.qHyperCube.qSize.qcx-b,r=y+5,n=Math.min(e,r);t(b,v,n,x)}else if(g===VU.Left){const e=Math.max(0,b-5),r=Math.min(i.qHyperCube.qSize.qcx,y+5);t(e,v,r,x)}}),[n,r,a.page,a.rowsPerPage,o,e,i.qHyperCube.qSize.qcx,t])},GU=()=>{},YU={current:null};const KU=(e,t)=>{const r=iR(zV),n=iR(hR),o=iR(pk),i=Math.min(r.rowsPerPage,n.qHyperCube.qSize.qcy-r.page*r.rowsPerPage),a=Math.min(i,Math.ceil(e.height/t)),s=R((()=>o.reduce(((t,r)=>t.width<e.width?{width:t.width+r,count:t.count+1}:t),{count:0,width:0})),[e,o]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},XU=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},JU={overflow:"hidden",willChange:"auto"};var ZU=q(L(((e,t)=>{const{columns:r,setInnerBodyHeight:n,bodyHeight:o,stickyContainerRect:i}=e,a=iR(sk),s=iR(xI),l=iR(hR),u=iR(LR),c=iR(pk),d=P(null),p=P(null),f=P({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),h=P(0),m=!!hM(l)?.content?.hoverEffect,{rowCount:g,visibleRowCount:b,visibleColumnCount:v}=KU(i,a.contentMinRowHeight),{setMeasuredCellHeight:y,setEstimatedCellHeight:x,getRowHeight:S,lineClamp:w}=BU({rowCount:g,isSnapshot:!!l.snapshotData,gridRef:d}),{rowsInPage:C,loadRows:E,loadColumns:A}=_U({rowCount:g,visibleRowCount:b,visibleColumnCount:v,gridState:f,setEstimatedCellHeight:x}),M=UU({loadRows:E,loadColumns:A,rowCount:g,gridState:f}),I=B$(),D=R((()=>({rowsInPage:C,columns:r,isHoverEnabled:m,lineClamp:w,setMeasuredCellHeight:y,resizeObserverTaskScheduler:I})),[C,r,m,w,y,I]);return N((()=>{1===h.current&&d.current?.scrollToItem({rowIndex:g-1,align:"start"})})),function(e){const t=aR(tT);k((()=>{t({type:EP.UpdatePageRows,payload:{pageRows:e}})}),[t,e]),W$({updateShouldRefocus:GU,tableWrapperRef:YU})}(C),z(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(p.current?.clientHeight??o)-o,n=Math.round(r*e);h.current=e,1===h.current?(d.current?.scrollToItem({rowIndex:g-1,align:"start"}),d.current?.scrollTo({scrollLeft:t})):d.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[p,o,g]),WU(p,n),rr.jsx(dU,{"data-key":"body",ref:d,innerRef:p,style:JU,columnCount:r.length,columnWidth:e=>c[e],height:o,rowCount:g,rowHeight:S,estimatedRowHeight:s.estimatedRowHeight,width:i.width,itemData:D,onItemsRendered:M,itemKey:XU,className:"sn-table-body",direction:u,children:DU})})));const QU=({width:e,height:t,children:r})=>rr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),eG=(e,t)=>{const r=P(null),n=iR(pk);N((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=T((r=>{const n=t$(r);n&&t(n+9,e)}),[e,t]);return r$(r,o),r},tG=pc("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}}))),rG=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,a=iR(sk),s=iR(LR),l=iR(AR),u=iR(nT),c=aR(aM),d=iR(VI),p=iR(DR),f=n[e],{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=oW({isInteractionEnabled:p,column:f}),v=CH(),y=eG(e,i),x=n.length-1===e,S=v?YH:m$,{ref:w,isDragging:C}=IV(f,e),E=qB(f.id);return rr.jsxs(tG,{"data-dragging":C,ref:w,className:`sn-table-cell ${rE}`,title:l.passive?f.label:void 0,onClick:v?g:b,applicableStyle:{...a.header,...wH(a,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:JP(s,x,u),borderLeftWidth:ZP(s,x,u),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",opacity:E},interactions:l,hoverBackground:a.headerMenuHoverBackground,background:v&&h?a.headerMenuActiveBackground:a.header.background,children:[rr.jsx(S,{forwardRef:y,column:f,isInteractionEnabled:p,open:h,setOpen:m}),rr.jsx(rW,{column:f,isLastColumn:x,onColumnResize:o,setIsAdjustingWidth:c})]})},nG=e=>{const[t,r]=A(new Map);YC((()=>{r(new Map)}),[e.length]);const n=T(((e,t)=>{r((r=>FU(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:R((()=>zU(t)),[t]),setMeasuredCellHeight:n}},oG=(e,t)=>{z(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},iG=e=>{const t=iR(XR),r=iR(hR),n=iR(zV),o=iR(pk);YC((()=>{e.current?.resetAfterIndex(0,!1)}),[r,n,e,o,t])},aG={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},sG=L(((e,t)=>{const{stickyContainerRect:r,columns:n,columResizeHandler:o,setHeaderRowHeight:i}=e,a=x.useRef(null),s=P(null),l=iR(sk),u=iR(hR),c=iR(NR),d=iR(LR),p=iR(pk),{rowHeight:f,setMeasuredCellHeight:h}=nG(n),m=eW(c,u);return oG(t,a),iG(a),WU(s,i),rr.jsx(yU,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...aG,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l.headerMinRowHeight),width:r.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:o,setMeasuredCellHeight:h},direction:d,children:rG})}));var lG=q(sG);const uG=L(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,a=iR(LR),s=iR(kR);return rr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:s?"auto":"hidden",width:n,height:o},onScroll:i,dir:a,tabIndex:-1,children:r})})),cG=({children:e,stickyContainerRect:t})=>{const r=iR(LR);return rr.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})},dG=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,a=iR(sk),s=iR(hR),l=iR(LR),u=iR(MR),c=iR(nT),d=eG(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=s.qHyperCube.qSize.qcx-1===e,g=qB(n[e].id);return rr.jsx("div",{className:`sn-table-cell ${rE}`,title:u?p:void 0,style:{...t,...a.totalRow,...wH(a,o,!1),background:a.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:JP(l,m,c),borderLeftWidth:ZP(l,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:rr.jsx(GH,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},pG=L(((e,t)=>{const{stickyContainerRect:r,totals:n,columns:o,setTotalsRowHeight:i}=e,a=P(null),s=P(null),l=iR(sk),u=iR(LR),c=iR(hR),d=iR(pk),{rowHeight:p,setMeasuredCellHeight:f}=nG(o);return oG(t,a),iG(a),WU(s,i),rr.jsx(yU,{ref:a,outerRef:s,layout:"horizontal",style:aG,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l.totalRowMinHeight),width:r.width,itemData:{columns:o,totals:n,setMeasuredCellHeight:f},direction:u,children:dG})}));var fG=q(pG);const hG=(e,t,r)=>{const n=iR(LR),o=iR(xI);return 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,n),c=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=c,o.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[o,r,e,t,n])},mG=()=>{const e=iR(VI),t=iR(UI),r=iR(XI),n=iR(zV),o=iR(XR),i=iR(UR),a=P(null),s=P(null),l=P(null),u=P(null),c=R((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(i,r)),[i,r]),d=iR(lM),p=iR(sM),f=R((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(c,p,d)),[c,p,d]),{rowCount:h}=KU(f,0),{headerAndTotalsHeight:m,innerBodyHeight:g,setHeaderRowHeight:b,setTotalsRowHeight:v,setInnerBodyHeight:y}=(()=>{const[e,t]=A(0),[r,n]=A(0),[o,i]=A(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:x,height:S}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n})=>{const o=iR(sk),i=iR(pk),a=e+t;let s=r*o.contentMinRowHeight+t;return a<2*n.height&&(s=a),{width:i.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:g,headerAndTotalsHeight:m,rowCount:h,stickyContainerRect:f}),w=hG(s,l,u),C=((e,t,r)=>Math.min(e.height-t,r))(f,m,g),E=T((()=>{a.current&&(a.current.scrollTop=0)}),[a]);A$(),N((()=>{a.current&&(a.current.scrollLeft=0,a.current.scrollTop=0)}),[t.length]),N((()=>{a.current&&(a.current.scrollTop=0)}),[n,h,o]),N$(a);const M=rr.jsx(fG,{stickyContainerRect:f,columns:t,ref:l,totals:e,setTotalsRowHeight:v},"totals");return rr.jsxs(w$,{children:[rr.jsx(uG,{ref:a,width:c.width,height:c.height,onScroll:w,children:rr.jsxs(QU,{width:x,height:S,children:[rr.jsxs(cG,{stickyContainerRect:f,children:[rr.jsx(lG,{stickyContainerRect:f,columns:t,ref:s,columResizeHandler:E,setHeaderRowHeight:b}),e.atTop?M:null,rr.jsx(ZU,{ref:u,stickyContainerRect:f,columns:t,setInnerBodyHeight:y,bodyHeight:C}),e.atBottom?M:null]}),rr.jsx(SH,{})]})}),rr.jsx(y$,{isPagination:!1})]})};var gG=q(mG);var bG=q((()=>{const e=iR(hR),t=iR(UR),r=iR(AR),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=iR(WI),s=iR(XR),l=iR(JR),u=iR(FR),[c,d]=sR(zV);return rr.jsxs(BH,{"data-testid":"sn-table",children:[rr.jsx(gG,{}),rr.jsx($D,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:u,translator:l,theme:s,interactions:r,rect:t,layout:e})]})}));const vG=e=>{const t=e.get(HR),r=e.get(_R),n=e.get(fR),i=e.get(LR);o((()=>{n&&t&&(r?function(e){const t=e.get(LR),r=e.get(KR),n=gk(t);r.render(rr.jsx(fi,{stylisPlugins:"rtl"===t?[mP]:void 0,children:rr.jsx(hc,{theme:n,children:rr.jsx(QE,{store:e,children:rr.jsx(mk,{children:rr.jsx(LV,{})})})})}))}(e):function(e){const t=e.get(LR),r=e.get(KR),n=gk(t);r.render(rr.jsx(x.StrictMode,{children:rr.jsx(hc,{theme:n,children:rr.jsx(QE,{store:e,children:rr.jsx(mk,{children:rr.jsx(bG,{})})})})}))}(e))}),[n,r,e,t,i])};function yG(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 xG=(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]}},SG=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const wG=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||OI.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},CG=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=RI(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=yG(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:wG(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=xG(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=(SG(h,m,g)?d:d+1)+c;let v=p+c;const y=xG(p,o),x=y?.getBoundingClientRect();return y&&x&&(SG(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:wG(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},EG={version:JSON.stringify("6.9.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:[]};const RG=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),AG=e=>e.getStyle("object","straightTableV2","backgroundColor");function PG(r){return{qae:{properties:{initial:EG},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>gA({...e}),exportProperties:cA,exploration:bA},ext:dP(r),component(){const n=u(),i=e((()=>XE()),[!1!==n.usePagination]);i.set(dR,r);const y=c();i.set(GR,y),i.set(hR,n),i.set(lR,d()),i.set(HR,p()),i.set(AR,f()),i.set(JR,h()),i.set(ER,m()),i.set(OR,t()),i.set(FR,g()),i.set(UR,b()),i.set(cR,v());const x=_C(n,y,RG,AG);i.set(XR,x),i.set(fR,GC(x,n,r)),i.set(uR,Tt()),(e=>{const t=e.get(KR);o((()=>()=>{t.unmount()}),[t])})(i),a?.(((e,t)=>{const r=t.target,n=r?.closest(`.${rE}`);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()=>{pE(n)}})})),(({store:e})=>{const t=e.get(hR),r=e.get(HR),n=e.get(GR),o=e.get(VR),i=e.get(NR),a=e.get(_R);s((async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get(xI),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=CG(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l})),l((()=>({getViewState:()=>CG(t,e.get(xI),n,i,a)})),[t,e,n,a])})({store:i}),vG(i)}}}export{PG 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.,%-]+\\))",h="(?:[!#$%&*-~]|"+r+"|"+u+")*?",m="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",v="(?!"+h+a+"\\))",b="(?="+h+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"),A=new RegExp(s+"(left)"+m+v+g,"gi"),P=new RegExp(s+"(right)"+m+v+g,"gi"),M=new RegExp(s+"(left)"+b,"gi"),I=new RegExp(s+"(right)"+b,"gi"),k=new RegExp(s+"(ltr)"+b,"gi"),D=new RegExp(s+"(rtl)"+b,"gi"),T=new RegExp(s+"([ns]?)e-resize","gi"),O=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"),q=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"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=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 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(k,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(M,"$1"+e).replace(I,"$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(T,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(j,G).replace(z,K).replace(F,J).replace($,J).replace(H,K).replace(B,X).replace(W,X).replace(L,"$1$2$3$8$5$6$7$4$9").replace(q,"$1$2$3$8$5$6$7$4$9").replace(N,V).replace(_,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)}(AP,AP.exports);var PP=Ut(AP.exports);function MP(e,t,r){switch(e.type){case Jr:case Xr:case Yr:return e.return=e.return||e.value;case Kr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Yr&&(e.children=e.value)}))}var n=Fn(Array.prototype.concat(e.children),MP);return un(n)?e.return=e.value+"{"+n+"}":""}function IP(e,t,r,n){if(e.type===Zr||"@supports"===e.type||e.type===Kr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Kr)){var o=PP.transform(MP(e));e.children=o?Ln(o)[0].children:[],e.return=""}}function kP(e,t){let r=null;const n=new Map,o=new Set;function i(o){let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!r?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}Object.defineProperty(IP,"name",{value:"stylisRTLPlugin"});const DP=kP((({options:e,...t})=>YE(BC(t,e)())),((e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks));function TP(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function OP(e){const t=YE((()=>[])),r=YE((function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)}));return r.effect=e,r.INTERNAL_onInit=e=>{const n=new Set;let o,i=0,a=!1,s=!1,l=!1;function u(){if(i)return;n.clear();let t=!0;const c=o=>{if(l)return e.get(o);if(o===r){const t=h(e,o);if(!gE(t)){if(!hE(o))throw new Error("no atom init");S(e,o,o.init)}return vE(t)}const i=v(e,o);try{return vE(i)}finally{C.d.set(o,i.n),d.get(o)?.t.add(r),t?n.add(o):d.has(o)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...o)=>{const a=h(e,n);try{if(++i,n===r){if(!hE(n))throw new Error("atom not writable");const t=a.n,r=o[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),b(e,n)))}return y(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(TP())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{o?.();const e=r.effect(c,w);if("function"!=typeof e)return;o=()=>{if(!i)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,o=void 0}}}finally{t=!1,n.forEach((t=>{C.d.set(t,h(e,t).n)})),x(e,r),g(e)}}const c=VE(e),d=c[1],p=c[3],f=wE(c[6]),h=c[11],m=c[12],g=c[13],v=c[14],b=c[15],y=c[16],x=c[17],S=c[20],w=function(e,t){let r=LP.get(e);r||(r=new Set,LP.set(e,r),t.f.add((function(){for(const e of r)r.delete(e),e()})));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,(function(){p.delete(r)})),f.m.add(r,(function(){w.add(u),o&&w.delete(o)})),f.u.add(r,(function(){w.delete(u),o&&w.add(o)})),f.c.add(r,(function(){a?s=!0:w.add(u)}))},TP()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const LP=new WeakMap;class qP{#l={on:new Map,once:new Map};#u=10;#c(e){this.listenerCount(e)>this.#u&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#d(e,t,r){const n=this.#l[e].get(t)??new Set;n.add(r),this.#l[e].set(t,n),this.#c(t)}setMaxListeners(e){this.#u=e}on(e,t){this.#d("on",e,t)}once(e,t){this.#d("once",e,t)}off(e,t){this.#l.on.get(e)?.delete(t),this.#l.once.get(e)?.delete(t)}emit(e,...t){this.#l.on.get(e)?.forEach((e=>{e(...t)})),this.#l.once.get(e)?.forEach((e=>{e(...t)})),this.#l.once.delete(e)}listenerCount(e){return(this.#l.on.get(e)?.size??0)+(this.#l.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#l.on.clear(),this.#l.once.clear()):(this.#l.on.delete(e),this.#l.once.delete(e))}}const NP=YE((()=>new qP));let _P=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),jP=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}({}),zP=function(e){return e.A="ascending",e.D="descending",e}({}),FP=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const $P=[0,0],HP=e=>"number"==typeof e&&!Number.isNaN(+e),BP=e=>HP(e.qNum),WP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),VP=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),UP=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},GP=(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&&oe(e.localPaletteColors[t].color).blend(oe(s.color),s.t)},YP=(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:VP(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:UP(n,t,r)})))),n},KP=(e,t,r,n)=>{const o=YP(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=GP(e,a,t);break}n=i}return r})(o,t);return a},XP=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!HP(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||!HP(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)},JP=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=XP(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||!HP(t))return 0;let a=r&&HP(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}},ZP=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=JP(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 UP(o,r.limitPaletteColorIndex,n);const a=VP(r.limitRange,t);return KP(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}},QP=(EC().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)"),eM=4/3,tM="12px",rM="600",nM="Source Sans Pro, sans-serif",oM={height:"auto",fontSize:tM,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"}},iM={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:rM},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},aM=(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,sM=(e,t)=>e.representation.type===_A.Image&&"fitHeight"===e.representation.imageSize?aM(t,e.representation):e.align,lM=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",uM=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},cM=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,dM=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",pM=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",fM=24,hM=fc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),mM=fc(np,{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?lM(e,n):void 0}))),gM=fc(np,{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},[`& .${eE}`]:{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"},[`& .${eE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),vM=fc(np,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),bM=fc(np,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),yM=fc(fd,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})((({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n}))),xM=YE(),SM=YE(0),wM=YE(0),CM=4/3,EM=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function RM(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const AM=(e,t)=>e?{borderBottomColor:AC.DARK_MODE_BORDER,borderRightColor:AC.DARK_MODE_BORDER,borderLeftColor:AC.DARK_MODE_BORDER,borderTopColor:AC.DARK_MODE_BORDER}:{borderLeftColor:AC.BORDER_MEDIUM,borderRightColor:AC.BORDER_MEDIUM,borderTopColor:AC.BORDER_HEAVY,borderBottomColor:t?AC.BORDER_HEAVY:AC.BORDER_LIGHT},PM=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*CM+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},MM=e=>e.components?.find((e=>"theme"===e.key)),IM=(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:EM(r?.fontColor)?RM(AC.TEXT,t,r?.fontColor):i||AC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...AM(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function kM(e,t,r){const n=MM(e)?.header,o=IM("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=oe(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=IC(o.background??AC.WHITE,lE),o.activeBackground=IC(o.background??AC.WHITE,uE),o}const DM=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in iM)(e)&&Object.assign(t,iM[e]))),t};function TM(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&&DC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?DM(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=PC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}var OM={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:qM(e),value:qM(t),useEqualSign:r}}(n,o,i))})),t}},LM=OM;function qM(e){try{return decodeURIComponent(e)}catch{return e}}function NM(e){if(!(this instanceof NM))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:()=>LM.fromSearchString(t.search)}})}function _M(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}NM.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},NM.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=_M(t.key),t.value?r+=`=${_M(t.value)}`:r+=t.useEqualSign?"=":"";return r};var jM=NM;var zM,FM=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}},$M=class{decode(e){let t="";const r=new FM(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},HM=e=>e>=0&&e<=1114111,BM=e=>e.match(/[\s]/),WM=class extends $M{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&&!BM(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return HM(a)?String.fromCharCode(a):"�"}},VM=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}},UM=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 VM.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return VM.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||VM.newInstanceIfNeeded(e,t,this._value)}},GM=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 UM);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},YM=(()=>{const e=[],t=[],r=new GM;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})(),KM=class extends $M{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,YM.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=YM.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)&&HM(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)&&HM(n)?String.fromCharCode(n):null}},XM=class extends $M{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),HM(i))?String.fromCharCode(i):(e.reset(),null)}},JM=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,ZM=5e6,QM=5e5,eI=(e,t)=>{const{maxByteSizeSvg:r=QM,maxByteSizeImage:n=ZM}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=JM.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&&(zM=document.createElement("div"));var tI=Array.prototype.indexOf,rI=[",",".","_"," "],nI=[",",".","-","_"," "],oI={width:["%"],height:["%"]},iI={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},aI={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":iI.image,"background-color":iI.color,"border-color":iI.color,"border-image":iI.image,color:iI.color,icon:iI.image,"list-style-image":iI.image,"outline-color":iI.color},sI={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function lI(e,t,r){let n;if(t){if(tI)return tI.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 uI(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return zM.appendChild(r),t=zM.innerHTML,zM.removeChild(r),t}function cI(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=pI(e).toLowerCase(),t=pI(t),i=0;i<sI.attr_name.length;i++)if(e.match(sI.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<sI.attr_val.length;i++)if(t.toLowerCase().match(sI.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=oI[e],n||(n=nI),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]/)&&lI(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function dI(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=pI(e).toLowerCase(),t=pI(t),lI(e,sI.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<sI.css_val.length;n++)if(t.toLowerCase().indexOf(sI.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=aI[e],o||(o=iI.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]/)&&lI(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function pI(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new KM,new XM,new WM];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 fI=[];for(let e=0;e<255;e++)fI[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var hI={html:e=>uI(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]=dI(t,r[t],!0),i+=dI(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]=cI(e,t[e],!0),o+=cI(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function mI(e,t){throw new Error(t)}var gI={canonicalize:pI,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?hI.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&mI(this,"Invalid parameter type"),hI.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&mI(this,"Invalid parameter type"),hI.attr(e)):void mI(this,"Invalid parameter type")},encodeForAttr:cI,encodeForAttr2:function(e){return cI("nonsens",e,!0)},encodeForCSS:dI,encodeForHref:function(e){pI(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new jM(e),r=jM.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+jM.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=rI),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),lI(o,t)>=0||null==fI[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:uI,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=pI(t).toLowerCase():mI(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:eI,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 vI=(e,t)=>t.qAttrExps?.qValues?.[e],bI=(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"}}},yI=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!gI.isSafeDataURL(t))?{type:_A.Text,url:void 0,text:e,labelStructure:o}:{type:_A.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:bI(n,a),labelStructure:o,imageBox:i},xI=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:_A.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:_A.MiniChart,text:n,miniChart:a}},SI=(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===jA.Attribute?void 0:r?.urlLabel},wI=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:_A.Link,url:gI.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:_A.Text,url:void 0,text:t,labelStructure:e}}},CI=({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=zA(t),d=s(e);return c===_A.Image&&u[_A.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=vI(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),yI({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 yI({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=vI(r.imageLabel??-1,e)?.qText??n;return yI({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:_A.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===_A.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===jA.Attribute){const i=SI(r.url??-1,e,t);return wI({labelStructure:n,text:o||i||"",url:i})}if(i===jA.Dimension){const i=SI(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),wI({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:_A.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===_A.Indicator&&u[_A.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:_A.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===_A.MiniChart&&u[_A.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?xI(e,t,i,d):{type:_A.Text,url:void 0,text:d,labelStructure:a}};import.meta.env&&import.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},t){var r;let n,o;const i={getItem:(r,i)=>{var a,s;const l=e=>{if(n!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}n=e}return o},u=null!=(s=null==(a=e())?void 0:a.getItem(r))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let a;try{a=null==(r=e())?void 0:r.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),a&&(i.subscribe=(s=a,(e,t,r)=>s(e,(e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)}))))}();const EI=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),RI=new WeakMap,AI=()=>{};function PI(e,t=AI){return((e,t,r)=>{const n=EI((()=>new WeakMap),RI,t);return EI(e,n,r)})((()=>{const r=new WeakMap,n=new WeakMap,o=YE(0),i=YE([]);i.INTERNAL_onInit=e=>{e.set(i,[()=>e.set(o,(e=>e+1))])},"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(o.debugPrivate=!0,i.debugPrivate=!0);const a=YE((s=>{let l;s(o);try{l=s(a)}catch(e){}const u=s(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then((e=>{n.set(u,e);const[t]=s(i);t()}),(e=>{r.set(u,e);const[t]=s(i);t()})),r.has(u))throw r.get(u);return n.has(u)?{p:u,v:n.get(u)}:l&&"v"in l?{p:u,f:t(l.v),v:l.v}:{p:u,f:t()}}));return a.init=void 0,"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(a.debugPrivate=!0),YE((e=>{const t=e(a);return"f"in t?t.f:t.v}),((t,r,...n)=>r(e,...n)))}),e,t)}const MI=YE((e=>{const t=e(_R),r=e(xR);return e(SR),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}})),II=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),kI=({cId:e})=>e??kA(),DI=1e4;function TI(e,t){return[...t].reverse().find((t=>t*e<=DI))||Math.floor(DI/e)}function OI(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function LI(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function qI(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return HP(r?.qNum)}function NI(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 _I=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const jI=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce(((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e}),{visible:[],hiddenDim:[],hiddenMea:[]});return o.map(((e,t)=>{const r=e<n,o=(r?i:a).filter((t=>t<e)).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}}))})(n.length===a?n:Array.from(Array(a).keys()),o,i);return s.map((n=>function(e,t,r,n){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,{colIdx:s,pageColIdx:l,visibleDimInfoIdx:u,visibleMeasureInfoIdx:c}=t,d=o.length,p=s<d,f=p?o[s]:i[s-d],h=p&&o[s].qGrouping===cE.Cyclic,m=s===a[0];let g,v,b="",y=!1,x=-1,S=0,w=[];const{representation:C,conditionalColoring:E}=f;if(p&&void 0!==u){const e=f;b=e.qGroupFieldDefs[e.qGroupPos],S=e.qGroupPos,w=e.qGroupFallbackTitles,y=e.qLocked??!1,x=u,({qDimensionType:g}=e)}else({qMiniChart:v}=f);const{qFallbackTitle:R,textAlign:A,qAttrExprInfo:P,qSortIndicator:M,qReverseSort:I,qApprMaxGlyphCount:k,columnWidth:D,qLibraryId:T}=f;return{isDim:p,isCyclic:h,isLocked:y,fieldId:b,colIdx:s,qLibraryId:T,pageColIdx:l,qApprMaxGlyphCount:k,qReverseSort:I,columnWidth:D??{type:sE.Auto},selectionColIdx:x,isActivelySorted:m,id:kI(f),label:R,groupDimensionPos:S,groupDimensionLabels:w,qAttrExprInfoIDs:P.map((e=>e.id)),qAttrExprInfoIndex:II(f),sortDirection:M&&"N"!==M?M:"A",totalInfo:LI(e,p,l,c??-1),...!p&&{isTotalNumeric:qI(e,c??-1)},...NI(A,g,p,r,n),representation:C,conditionalColoring:p?void 0:E,qMiniChart:v}}(e,n,t,r)))},zI=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",FI=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,$I={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},HI=YE((e=>{const t=e(BI),r=e(mR),n=e(MI),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>DI?{...t,rowsPerPage:TI(l,t.rowsPerPageOptions),page:0}:t})),BI=YE($I),WI=YE((e=>{const t=e(mR),r=e(_R),n=e(MI);return OR(t,r)?{page:n.page||$I.page,rowsPerPage:n.rowsPerPage||$I.rowsPerPage,rowsPerPageOptions:$I.rowsPerPageOptions}:e(HI)}),((e,t,r)=>{t(BI,(e=>({...e,...r})))})),VI=!0,UI=YE((async e=>{const t=e(mR),r=e(_R),n=e(qR),{page:o,rowsPerPage:i}=e(WI),a=e(MI),s=e(HR),l=e(pR),u=e(vR),c=t.qHyperCube.qSize.qcx,d=t.qHyperCube.qSize.qcy,p=Math.ceil(d/i),f=a.visibleTop??o*i,h=a.visibleHeight??Math.min(i,d-f),m=d>10,g=OI(t,r),v=jI(t,VI,n),b=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(s,t,{qLeft:0,qTop:f,qHeight:h,qWidth:c});u||(a.qTop=f,a.qHeight=h,a.rowsPerPage=i,a.page=o);const y=b.at(0)?.qMatrix.map(((e,r)=>{const o=[];return v.forEach(((i,a)=>{const s=e[a],u=zI(i.isDim,s,t),c=!i.isDim&&s.qIsNull,d=c?WP(u):BP(s);o[a]={id:kA(),...s,align:_I(d,i.bodyTextAlign,n,VI),rowIdx:r+f,colIdx:i.colIdx,pageRowIdx:r,pageColIdx:a,selectionColIdx:i.selectionColIdx,isSelectable:i.isDim&&!i.isLocked,isLastRow:r===h-1,isNumeric:d,isNull:(!c||!d)&&FI(s,i.isDim),representation:CI({cell:s,representationProperties:i.representation,attrExprInfoIndex:i.qAttrExprInfoIndex,env:l,conditionalColoring:i.conditionalColoring,miniChartOnMeasure:i.qMiniChart,getText:()=>c?u:s.qText,direction:n,enabledFeatures:{[_A.Image]:!0,[_A.Indicator]:!0,[_A.MiniChart]:!0}})}})),o}))??[];return{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:m,totalsPosition:g,columns:v,rows:y}})),GI=PI(UI,(e=>e)),YI=25e4,KI=YE((e=>{const t=e(mR),r=e(_R),n=e(PR),o=e(qR),i=jI(t,false,o),a=OI(t,r),s=t.qHyperCube.qSize.qcy,l=Math.min(YI,s),u=s>YI&&!!n.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}})),XI={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},JI=YE(),ZI=YE((e=>{const t=e(zR),r=e(JI);return r||(t?e(GI)??XI:e(KI))})),QI=YE((e=>e(ZI).totalsPosition)),ek=YE((e=>e(ZI).columns)),tk=YE((e=>e(ZI).rows)),rk=YE((e=>e(ZI).totalRowCount)),nk=YE((e=>e(ZI).totalColumnCount)),ok=YE((e=>e(ZI).paginationNeeded)),ik=YE((e=>{const t=e(YR),r=e(JR),n=e(mR),o=e(QI),i=e(tk),a=o.atTop,s=function(e,t,r,n){const o=MM(e)?.content,i=IM("content",t,o);i.background=t.background.color;const a=PM(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=EM(l)||!!c,p=EM(s)||!!u,f=d||p;let h;h=EM(s)?RM(AC.HOVER,t,s):u||(d?"":AC.HOVER);const m=f?RM(PC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=kM(n,r,!a),u=function(e,t,r){const n=MM(e)?.content,o=IM("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=kM(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:u}})),ak=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},sk=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=ak(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},lk=(e,t,r,n=AC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=sk(e,t,r);return NC(i,o,a,n)??n},uk=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return tM}},ck=e=>e?.some((e=>"italic"===e))?"italic":"normal",dk=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?rM:"normal",pk=e=>!1===e?1:3,fk=e=>parseInt(e??oM.fontSize,10)*eM,hk=e=>e?.some((e=>"underline"===e))?"underline":"none",mk=YE((e=>{const t=e(_R),r=e(zR),n=e(JR),o=e(mR),i=e(ik),{header:a,dimensionValues:s,measureValues:l,totalValues:u,nullValues:c,grid:d,content:p}=MM(o)??{},f=r?AC.WHITE:AC.TRANSPARENT,h=lk(n,a,"object.straightTableV2.dimension.label.name.backgroundColor",f),m=t?.maxLineCount??p?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),g={header:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??nM,fontSize:uk(a?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:ck(a?.fontStyle),fontWeight:dk(a?.fontStyle,rM),textDecoration:hk(a?.fontStyle),color:ak(n,a?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??AC.TEXT,background:h},headerMenuHoverBackground:IC(h,lE),headerMenuActiveBackground:IC(h,uE),dimension:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??nM,fontSize:uk(s?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:ck(s?.fontStyle),fontWeight:dk(s?.fontStyle,"normal"),textDecoration:hk(s?.fontStyle),color:ak(n,s?.fontColor)??ak(n,p?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??AC.TEXT,background:sk(n,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??AC.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??nM,fontSize:uk(l?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:ck(l?.fontStyle),fontWeight:dk(l?.fontStyle,"normal"),textDecoration:hk(l?.fontStyle),color:ak(n,l?.fontColor)??ak(n,p?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??AC.TEXT,background:sk(n,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??AC.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??nM,fontSize:uk(u?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:ck(u?.fontStyle),fontWeight:dk(u?.fontStyle,rM),textDecoration:hk(u?.fontStyle),color:ak(n,u?.fontColor)??ak(n,p?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??AC.TEXT,background:lk(n,u,"object.straightTableV2.total.label.value.backgroundColor",f)},nullValues:{fontStyle:ck(c?.fontStyle),fontWeight:dk(c?.fontStyle,"normal"),textDecoration:hk(c?.fontStyle),color:ak(n,c?.fontColor)??ak(n,p?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??AC.TEXT,background:ak(n,c?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??AC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:m??pk(o.multiline?.wrapTextInCells),headerLineClamp:pk(o.multiline?.wrapTextInHeaders),border:ak(n,d?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?AC.DARK_MODE_BORDER:AC.BORDER_MEDIUM),divider:ak(n,d?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??AC.BORDER_HEAVY,hoverColors:{color:ak(n,p?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:ak(n,p?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!d?.zebraStripes?.show,odd:{color:ak(n,d?.zebraStripes?.color?.odd),background:ak(n,d?.zebraStripes?.background?.odd)},even:{color:ak(n,d?.zebraStripes?.color?.even),background:ak(n,d?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===ak(n,c?.background),overrideNullValueColor:void 0===ak(n,c?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:MC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:m},{headerMinRowHeight:v,totalRowLineHeight:b,totalRowMinHeight:y,contentLineHeight:x,contentMinRowHeight:S}=(e=>{const t=Math.max(fk(e.header.fontSize)+8,32),r=fk(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(fk(e.dimension.values.fontSize),fk(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)}})(g);return g.headerMinRowHeight=v,g.totalRowLineHeight=b,g.totalRowMinHeight=y,g.contentLineHeight=x,g.contentMinRowHeight=S,g})),gk=(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(aE.PixelsMax,Math.max(aE.PixelsMin,f)),i-=n[a]};switch(s){case sE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?aE.PixelsDefault:+e)(l),h();break;case sE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?aE.PercentageDefault:+e)(u)/100*t,h();break;case sE.FitToContent:e.representation?.type===_A.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case sE.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(aE.AutoMinTable,e)}))}return n},vk=YE((e=>{const t=e(mk),r=e(ZI).totalsPosition,n=e(wR),{measureText:o}=e(DP({...t.header,fontWeight:rM})),{measureText:i}=e(DP({...t.totalRow,fontWeight:rM})),{estimateWidth:a}=e(DP(t.dimension.values)),{estimateWidth:s}=e(DP(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,u,c,d,p)=>{let f=0;if(n){const t=4;let r=25;r+=t+24,u&&(r+=20+t),c&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=fM),t+=fM,t+=fM,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}})),bk=YE(null),yk=YE((e=>{const t=e(ZI),r=e(GR).width,n=e(wM),o=e(vk);return gk(t.columns,r-n,o)})),xk=YE((e=>e(bk)??e(yk)),((e,t,r)=>{t(bk,r)})),Sk=OP((e=>{const t=e(NP);!1===e(xM)&&t.emit("done-adjusting-column-width")})),wk=OP(((e,t)=>{e(mR),t(bk,null)})),Ck=({children:e})=>(aR(wk),aR(Sk),e);function Ek(e){const t=EC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),ku({...t,direction:e})}const Rk={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},Ak={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Pk=fc("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":{...Rk},"&::-moz-range-track":{...Rk},"&::-ms-track":{...Rk},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...Ak},"&::-moz-range-thumb":{...Ak},"&::-ms-thumb":{...Ak},"&: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"}}))),Mk=({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=JC({translator:c.translator}),f=M({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",v={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},b=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};KC((()=>{m&&b()}),[e]);const y=e=>{const t=Math.max(e,aE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:sE.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{OC(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=>{OC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===oE.Left||e.key===oE.Right){OC(e);const t=5,r=e.key===oE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===oE.Space||e.key===oE.Enter?(OC(e),s(e),l?.(!1),x()):e.key===oE.Esc&&(OC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return nr.jsx(Pk,{style:v,hoverColor:o,isLastColumn:r,className:iE,"data-testid":iE,onMouseDown:e=>{OC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:sE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(OC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),b(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":aE.PixelsMin,"aria-valuemax":aE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},Ik=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),kk=({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},Dk=fc(np,{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"}))),Tk=fc(Ik,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),Ok=fc(zf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Lk=fc(qp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),qk=fc(Wf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),Nk=fc(Wf,{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"}))),_k=fc("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"}))),jk=fc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),zk=fc(yd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),Fk=fc(pf,{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}))),$k=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),Hk=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?Hk(t):t:e.parentElement?.children?.[0]},Bk=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?Bk(t):t},Wk=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===oE.Down||t===oE.Up){const r=e=>t===oE.Down?Hk(e):Bk(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},Vk=(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 Uk={};const Gk=({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]=P(!1),f=S.useRef(null),h=O((e=>{e.stopPropagation(),p(!1)}),[p]);return nr.jsxs(nr.Fragment,{children:[nr.jsxs(Nk,{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),Uk={}),a?.length&&(p(!0),Uk[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:Wk,children:[l?nr.jsx(_k,{direction:u,isPagination:c}):null,nr.jsxs(jk,{children:[nr.jsx(Fk,{direction:u,isPagination:c,children:nr.jsx(o,{})}),nr.jsx(zk,{variant:"body2",children:n})]}),a?.length?nr.jsx($k,{}):null]},t),a?.length?nr.jsx(Jk,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:Vk(a,Uk),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},Yk=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&nr.jsx(qk,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>nr.jsx(Gk,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),Kk=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[Yk({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?nr.jsx(Lk,{"data-testid":"group-divider",variant:"middle"}):void 0])),Xk={appear:0,enter:0,exit:0},Jk=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?nr.jsx(Ok,{className:tE,open:t,anchorEl:e,onClose:r,transitionDuration:Xk,MenuListProps:{id:rE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:Kk({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,Zk=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>O((()=>{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]),Qk=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),eD=(e,t)=>e.some((e=>t[e]>0)),tD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},rD=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=P(null),[a,s]=P(tD);return KC((()=>{e||(s(tD),i(null))}),[e]),D((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=Qk(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:eD(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:eD(["qSelected"],e),canSelectPossible:eD(["qOption"],e),canSelectAlternative:eD(["qAlternative"],e),canSelectExcluded:eD(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},nD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})}))),oD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})}))),iD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})}))),aD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})}))),sD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})}))),lD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})}))),uD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})}))),cD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})}))),dD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),pD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})}))),fD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),hD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),mD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),gD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})})));let vD=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const bD="/qListObjectDef",yD=({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[vD.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:nD,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:aD,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:cD,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:sD,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[vD.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:dD,enabled:!0}]}]),!e.isLocked&&r[vD.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:gD,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(bD))},icon:pD,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(bD))},icon:mD,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(bD))},icon:fD,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(bD))},icon:hD,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(bD))},icon:oD,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:uD,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:lD,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[vD.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:iD,enabled:!0}]}]),f},xD=({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:v=ZC})=>{const b=M(null),y=JC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=rD({open:e,headerData:n,app:C,qStateName:c?.qStateName}),A=kk({model:f,headerData:n}),P=Zk({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=O((e=>{e.stopPropagation(),t(!1)}),[t]),k=O((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?nr.jsxs(Dk,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:eE,onClick:!1===g?k:void 0,ref:b,isAccessibleHeader:g,children:[s?nr.jsx(Tk,{height:v,className:QC,"data-testid":QC,isInteractionsActive:i.active??!1,children:nr.jsx(Ik,{})}):null,nr.jsx(Jk,{open:e,anchorEl:!1===g?b.current:r.current,onClose:I,menuGroups:yD({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},SD=e=>e.isDark?{background:e.color,borderColor:AC.DARK_MODE_BORDER,color:AC.DARK_MODE_TEXT,disabledColor:AC.DARK_MODE_DISABLED,iconColor:AC.DARK_MODE_TEXT}:{background:e.color,borderColor:AC.BORDER_MEDIUM,color:AC.TEXT,disabledColor:AC.DISABLED},wD=fc(np,{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}`}))),CD=fc(Eh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),ED=fc(fp,{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)}))),RD=fc(yd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),AD=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A((()=>SD(n.background)),[n]);if(!r.active)return null;const a=o?nr.jsx(wD,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},PD=I({}),MD=()=>L(PD),ID=({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,visibilityThreshold:g})=>{const v=(e=>!e.enabled||e.active)(c)?0:-1,b=A((()=>SD(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=JC({translator:d}),S=A((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:v,width:y,visibilityThreshold:g})),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,b,v,y,g]);return nr.jsx(PD.Provider,{value:S,children:e})};let kD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),DD=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 TD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),OD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),LD=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),qD={FirstPage:OD,PreviousPage:TD,NextPage:$k,LastPage:LD,FirstPageRTL:LD,PreviousPageRTL:$k,NextPageRTL:TD,LastPageRTL:OD},ND=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=MD(),u=r.concat("rtl"===n?"RTL":""),c=qD[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}},_D=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=MD(),o=0===e.page,{IconComponent:i,styledProps:a}=ND({type:kD.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||DD.FirstPage)?null:nr.jsx(ED,{...a,disabled:!r.active,children:nr.jsx(i,{height:ZC})})},jD=(e,t,r=!1)=>{r&&e.key===oE.Tab&&!e.shiftKey&&(OC(e),TC(e.target,t,!1))},zD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=MD(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=ND({type:kD.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{jD(e,t,n)}:void 0;return o<=(a?.lastPage||DD.LastPage)?null:nr.jsx(ED,{...u,onKeyDown:c,disabled:!i.active,children:nr.jsx(l,{height:ZC})})},FD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=MD(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=ND({type:kD.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>DD.FirstPage&&o>DD.LastPage)&&t.enabled?e=>{jD(e,t,n)}:void 0;return nr.jsx(ED,{...l,onKeyDown:u,disabled:!i.active,children:nr.jsx(s,{height:ZC})})},$D=()=>{const{pageInfo:e,interactions:t}=MD(),r=0===e.page,{IconComponent:n,styledProps:o}=ND({type:kD.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return nr.jsx(ED,{...o,disabled:!t.active,children:nr.jsx(n,{height:ZC})})},HD=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=MD(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||DD.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return nr.jsx(RD,{variant:"caption",dir:"ltr",children:s})},BD=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=MD(),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 nr.jsxs(nr.Fragment,{children:[nr.jsxs(RD,{variant:"caption",id:p,children:[c,":"]}),nr.jsx(CD,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},WD=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=MD();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||DD.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=nr.jsx(nr.Fragment,{children:e.rowsPerPageOptions.map((e=>nr.jsx("option",{value:e,children:e},e)))});return nr.jsx(BD,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},VD=1e3,UD="…",GD=({totalPages:e,page:t})=>{const r=Math.min(e,VD),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-VD):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return nr.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(nr.jsx("option",{value:UD,disabled:!0,children:UD},"startMoreOptions")),o<e-1&&a.push(nr.jsx("option",{value:UD,disabled:!0,children:UD},"endMoreOptions")),nr.jsx(nr.Fragment,{children:a})},YD=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=MD(),{page:i}=e;if(t<=(o?.selectPage||DD.SelectPage))return null;const a=nr.jsx(GD,{totalPages:r,page:i});return nr.jsx(BD,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var KD=N((e=>nr.jsxs(ID,{...e,children:[nr.jsx(WD,{}),nr.jsx(YD,{}),nr.jsx(HD,{}),nr.jsx(_D,{}),nr.jsx($D,{}),nr.jsx(FD,{}),nr.jsx(zD,{})]})));const XD=e=>nr.jsx(AD,{...e,children:nr.jsx(KD,{...e})}),JD=(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"]})},ZD=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},QD=e=>e.ctrlKey||e.metaKey,eT=e=>e.shiftKey&&QD(e),tT=e=>[oE.Left,oE.Right,oE.Up,oE.Down].includes(e),rT=e=>e.shiftKey&&tT(e.key),nT=e=>(e=>tT(e)||[oE.Home,oE.End,oE.PageUp,oE.PageDown].includes(e))(e.key)&&!eT(e),oT=(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),JD(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})},iT=(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&&rT(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&rT(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===oE.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 JD(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},aT=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}},sT=(e,t)=>{switch(t.type){case jP.Select:return oT(e,t.payload);case jP.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 jP.SelectMouseUp:return((e,t)=>aT(e.isSelectMultiValues||e.firstCell!==t.cell?e:oT(e,t)))(e,t.payload);case jP.SelectMultiAdd:return iT(e,t.payload);case jP.SelectMultiEnd:return aT(e);case jP.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case jP.Clear:return e.rows.size?{...e,rows:new Map}:e;case jP.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},lT=YE((e=>{const t=e(RR);return function(e,t){return YE(e,(function(e,r,n){r(this,t(e(this),n))}))}({pageRows:e(ZI).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},sT)})),uT=YE((e=>e(e(lT))),((e,t,r)=>{t(e(lT),r)})),cT=kP((e=>YE((t=>{const{colIdx:r,rows:n,api:o}=t(uT);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?_P.Disabled:n.has(e.qElemNumber)?_P.Selected:_P.Possible:_P.Inactive}))),((e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx)),dT=YE((e=>{const t=e(xk),r=e(GR).width,n=e(wM);return t.length>0&&t.reduce(((e,t)=>e+t))+n<r}));var pT=Symbol.for("preact-signals");function fT(){if(bT>1)bT--;else{for(var e,t=!1;void 0!==vT;){var r=vT;for(vT=void 0,yT++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&ET(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(yT=0,bT--,t)throw e}}function hT(e){if(bT>0)return e();bT++;try{return e()}finally{fT()}}var mT=void 0;function gT(e){var t=mT;mT=void 0;try{return e()}finally{mT=t}}var vT=void 0,bT=0,yT=0,xT=0;function ST(e){if(void 0!==mT){var t=e.n;if(void 0===t||t.t!==mT)return t={i:0,S:e,p:mT.s,n:void 0,t:mT,e:void 0,x:void 0,r:t},void 0!==mT.s&&(mT.s.n=t),mT.s=t,e.n=t,32&mT.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=mT.s,t.n=void 0,mT.s.n=t,mT.s=t),t}}function wT(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function CT(e,t){return new wT(e,t)}function ET(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function RT(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function AT(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function PT(e,t){wT.call(this,void 0),this.x=e,this.s=void 0,this.g=xT-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function MT(e,t){return new PT(e,t)}function IT(e){var t=e.u;if(e.u=void 0,"function"==typeof t){bT++;var r=mT;mT=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,kT(e),t}finally{mT=r,fT()}}}function kT(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,IT(e)}function DT(e){if(mT!==this)throw new Error("Out-of-order effect");AT(this),mT=e,this.f&=-2,8&this.f&&kT(this),fT()}function TT(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function OT(e,t){var r=new TT(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}wT.prototype.brand=pT,wT.prototype.h=function(){return!0},wT.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:gT((function(){var e;null==(e=t.W)||e.call(t)})))},wT.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&gT((function(){var e;null==(e=t.Z)||e.call(t)})))}},wT.prototype.subscribe=function(e){var t=this;return OT((function(){var r=t.value,n=mT;mT=void 0;try{e(r)}finally{mT=n}}),{name:"sub"})},wT.prototype.valueOf=function(){return this.value},wT.prototype.toString=function(){return this.value+""},wT.prototype.toJSON=function(){return this.value},wT.prototype.peek=function(){var e=mT;mT=void 0;try{return this.value}finally{mT=e}},Object.defineProperty(wT.prototype,"value",{get:function(){var e=ST(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(yT>100)throw new Error("Cycle detected");this.v=e,this.i++,xT++,bT++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{fT()}}}}),PT.prototype=new wT,PT.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===xT)return!0;if(this.g=xT,this.f|=1,this.i>0&&!ET(this))return this.f&=-2,!0;var e=mT;try{RT(this),mT=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return mT=e,AT(this),this.f&=-2,!0},PT.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}wT.prototype.S.call(this,e)},PT.prototype.U=function(e){if(void 0!==this.t&&(wT.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},PT.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(PT.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=ST(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),TT.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},TT.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,IT(this),RT(this),bT++;var e=mT;return mT=this,DT.bind(this,e)},TT.prototype.N=function(){2&this.f||(this.f|=2,this.o=vT,vT=this)},TT.prototype.d=function(){this.f|=8,1&this.f||kT(this)},TT.prototype.dispose=function(){this.d()};var LT,qT,NT,_T,jT,zT,FT,$T,HT,BT,WT,VT,UT,GT,YT,KT,XT,JT,ZT,QT,eO=Object.create,tO=Object.defineProperty,rO=Object.defineProperties,nO=Object.getOwnPropertyDescriptor,oO=Object.getOwnPropertyDescriptors,iO=Object.getOwnPropertySymbols,aO=Object.prototype.hasOwnProperty,sO=Object.prototype.propertyIsEnumerable,lO=e=>{throw TypeError(e)},uO=(e,t,r)=>t in e?tO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cO=(e,t)=>tO(e,"name",{value:t,configurable:!0}),dO=["class","method","getter","setter","accessor","field","value","get","set"],pO=e=>void 0!==e&&"function"!=typeof e?lO("Function expected"):e,fO=(e,t,r,n,o)=>({kind:dO[e],name:t,metadata:n,addInitializer:e=>r._?lO("Already initialized"):o.push(pO(e||null))}),hO=(e,t)=>{return uO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},mO=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},gO=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=dO[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&nO(d<4?o:{get[r](){return yO(this,i)},set[r](e){return SO(this,i,e)}},r));d?f&&d<4&&cO(i,(d>2?"set ":d>1?"get ":"")+r):cO(o,r);for(var y=n.length-1;y>=0;y--)u=fO(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>bO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?yO:wO)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>SO(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?pO(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?lO("Object expected"):(pO(a=s.get)&&(b.get=a),pO(a=s.set)&&(b.set=a),pO(a=s.init)&&g.unshift(a));return d||hO(e,o),b&&tO(o,r,b),f?4^d?i:b:o},vO=(e,t,r)=>t.has(e)||lO("Cannot "+r),bO=(e,t)=>Object(t)!==t?lO('Cannot use the "in" operator on this value'):e.has(t),yO=(e,t,r)=>(vO(e,t,"read from private field"),r?r.call(e):t.get(e)),xO=(e,t,r)=>t.has(e)?lO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),SO=(e,t,r,n)=>(vO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),wO=(e,t,r)=>(vO(e,t,"access private method"),r);function CO(e,t){if(t){let r;return MT((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return MT(e)}function EO(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some(((e,r)=>!EO(e,t[r])))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some((r=>!EO(e[r],t[r])));return!o}return!1}function RO({get:e},t){return{init:e=>CT(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function AO(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=CO(e.bind(this)),r.set(this,t)),t.value}}function PO(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>rO(e,oO(t)))(((e,t)=>{for(var r in t||(t={}))aO.call(t,r)&&uO(e,r,t[r]);if(iO)for(var r of iO(t))sO.call(t,r)&&uO(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function MO(...e){const t=e.map((e=>OT(e)));return()=>t.forEach((e=>e()))}zT=[RO],jT=[RO],_T=[RO],NT=[PO()],qT=[PO()],LT=[PO()];var IO,kO=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,mO(FT,5,this),xO(this,VT),xO(this,$T,mO(FT,8,this)),mO(FT,11,this),xO(this,UT,mO(FT,12,this)),mO(FT,15,this),xO(this,XT,mO(FT,16,this)),mO(FT,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return yO(this,VT,ZT)}get initial(){return yO(this,VT,BT)}get previous(){return yO(this,VT,YT)}set current(e){const t=gT((()=>yO(this,VT,ZT)));e&&t&&this.equals(t,e)||hT((()=>{yO(this,VT,BT)||SO(this,VT,e,WT),SO(this,VT,t,KT),SO(this,VT,e,QT)}))}reset(e=this.defaultValue){hT((()=>{SO(this,VT,void 0,KT),SO(this,VT,e,WT),SO(this,VT,e,QT)}))}};function DO(e){return gT((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}FT=[,,,eO(null)],$T=new WeakMap,VT=new WeakSet,UT=new WeakMap,XT=new WeakMap,HT=gO(FT,20,"#initial",zT,VT,$T),BT=HT.get,WT=HT.set,GT=gO(FT,20,"#previous",jT,VT,UT),YT=GT.get,KT=GT.set,JT=gO(FT,20,"#current",_T,VT,XT),ZT=JT.get,QT=JT.set,gO(FT,2,"current",NT,kO),gO(FT,2,"initial",qT,kO),gO(FT,2,"previous",LT,kO),hO(FT,kO);IO=new WeakMap;var TO,OO,LO,qO,NO,_O=Object.create,jO=Object.defineProperty,zO=Object.getOwnPropertyDescriptor,FO=Object.getOwnPropertySymbols,$O=Object.prototype.hasOwnProperty,HO=Object.prototype.propertyIsEnumerable,BO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),WO=e=>{throw TypeError(e)},VO=Math.pow,UO=(e,t,r)=>t in e?jO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,GO=["class","method","getter","setter","accessor","field","value","get","set"],YO=e=>void 0!==e&&"function"!=typeof e?WO("Function expected"):e,KO=(e,t,r,n,o)=>({kind:GO[e],name:t,metadata:n,addInitializer:e=>r._?WO("Already initialized"):o.push(YO(e||null))}),XO=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=GO[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,zO(o,r)),h=n.length-1;h>=0;h--)(l=KO(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,YO(a)&&(f[d]=a);return f&&jO(o,r,f),o},JO=(e,t,r)=>t.has(e)||WO("Cannot "+r),ZO=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},QO=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))$O.call(t,r)&&UO(e,r,t[r]);if(FO)for(var r of FO(t))HO.call(t,r)&&UO(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new ZO((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return ZO.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var eL,tL=class extends(LO=kO,OO=[AO],TO=[AO],LO){constructor(e){var t,r,n;super(ZO.from(e),((e,t)=>ZO.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(NO,5,this),t=this,n=0,(r=qO).has(t)?WO("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return ZO.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=ZO.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(JO(a=this,s=qO,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);hT((()=>{((e,t,r)=>{JO(e,t,"write to private field"),t.set(e,r)})(this,qO,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(ZO.from(e)),this.velocity={x:0,y:0}}};function rL({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(VO(n,2)+VO(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}NO=(e=>{var t;return[,,,_O(null!=(t=null==e?void 0:e[BO("metadata")])?t:null)]})(LO),qO=new WeakMap,XO(NO,2,"delta",OO,tL),XO(NO,2,"direction",TO,tL),eL=NO,UO(tL,BO("metadata"),eL[3]);var nL,oL,iL,aL,sL=(e=>(e.Horizontal="x",e.Vertical="y",e))(sL||{}),lL=Object.values(sL),uL=Object.create,cL=Object.defineProperty,dL=Object.defineProperties,pL=Object.getOwnPropertyDescriptor,fL=Object.getOwnPropertyDescriptors,hL=Object.getOwnPropertySymbols,mL=Object.prototype.hasOwnProperty,gL=Object.prototype.propertyIsEnumerable,vL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),bL=e=>{throw TypeError(e)},yL=(e,t,r)=>t in e?cL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xL=(e,t)=>{for(var r in t||(t={}))mL.call(t,r)&&yL(e,r,t[r]);if(hL)for(var r of hL(t))gL.call(t,r)&&yL(e,r,t[r]);return e},SL=(e,t)=>dL(e,fL(t)),wL=(e,t)=>cL(e,"name",{value:t,configurable:!0}),CL=(e,t)=>{var r={};for(var n in e)mL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&hL)for(var n of hL(e))t.indexOf(n)<0&&gL.call(e,n)&&(r[n]=e[n]);return r},EL=e=>{var t;return[,,,uL(null!=(t=null==e?void 0:e[vL("metadata")])?t:null)]},RL=["class","method","getter","setter","accessor","field","value","get","set"],AL=e=>void 0!==e&&"function"!=typeof e?bL("Function expected"):e,PL=(e,t,r,n,o)=>({kind:RL[e],name:t,metadata:n,addInitializer:e=>r._?bL("Already initialized"):o.push(AL(e||null))}),ML=(e,t)=>yL(t,vL("metadata"),e[3]),IL=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},kL=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=RL[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&pL(d<4?o:{get[r](){return OL(this,i)},set[r](e){return qL(this,i,e)}},r));d?f&&d<4&&wL(i,(d>2?"set ":d>1?"get ":"")+r):wL(o,r);for(var y=n.length-1;y>=0;y--)u=PL(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>TL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?OL:NL)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>qL(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?AL(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?bL("Object expected"):(AL(a=s.get)&&(b.get=a),AL(a=s.set)&&(b.set=a),AL(a=s.init)&&g.unshift(a));return d||ML(e,o),b&&cL(o,r,b),f?4^d?i:b:o},DL=(e,t,r)=>t.has(e)||bL("Cannot "+r),TL=(e,t)=>Object(t)!==t?bL('Cannot use the "in" operator on this value'):e.has(t),OL=(e,t,r)=>(DL(e,t,"read from private field"),r?r.call(e):t.get(e)),LL=(e,t,r)=>t.has(e)?bL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),qL=(e,t,r,n)=>(DL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),NL=(e,t,r)=>(DL(e,t,"access private method"),r);function _L(e,t){return{plugin:e,options:t}}function jL(e){return t=>_L(e,t)}function zL(e){return"function"==typeof e?{plugin:e,options:void 0}:e}nL=[RO];var FL=class{constructor(e,t){this.manager=e,this.options=t,LL(this,iL,IL(oL,8,this,!1)),IL(oL,11,this),LL(this,aL,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return gT((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=OT(e.bind(this));return OL(this,aL).add(t),t}destroy(){OL(this,aL).forEach((e=>e()))}static configure(e){return _L(this,e)}};oL=EL(null),iL=new WeakMap,aL=new WeakMap,kL(oL,4,"disabled",nL,FL,iL),ML(oL,FL);var $L,HL=class extends FL{},BL=class{constructor(e){this.manager=e,this.instances=new Map,LL(this,$L,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(zL).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of OL(this,$L))if(!r.includes(e)){if(e.prototype instanceof HL)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);qL(this,$L,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function WL(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}$L=new WeakMap;var VL,UL,GL=[],YL=class extends FL{constructor(e){super(e),LL(this,VL),LL(this,UL),this.computeCollisions=this.computeCollisions.bind(this),qL(this,UL,CT(GL)),this.destroy=MO((()=>{const e=this.computeCollisions(),t=gT((()=>this.manager.dragOperation.position.current));if(e!==GL){const e=OL(this,VL);if(qL(this,VL,t),e&&t.x==e.x&&t.y==e.y)return}else qL(this,VL,void 0);OL(this,UL).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){gT((()=>{e?OL(this,UL).value=this.computeCollisions():qL(this,VL,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return GL;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=gT((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?GL:(s.sort(WL),s)}get collisions(){return OL(this,UL).value}};VL=new WeakMap,UL=new WeakMap;var KL=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},XL=class extends KL{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function JL(e,t=!0){let r=!1;return SL(xL({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var ZL,QL,eq,tq,rq,nq,oq,iq,aq,sq=class extends HL{constructor(e){super(e);let t=[];this.destroy=MO((()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())}),(()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=JL({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map((({id:e})=>e)).join("")===t.map((({id:e})=>e)).join(""))(o,t))return;t=o;const[a]=o;gT((()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then((()=>{r.enable()})))}))}))}},lq=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(lq||{}),uq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(uq||{});oq=[RO],nq=[AO],rq=[AO],tq=[AO],eq=[AO],QL=[AO],ZL=[AO];var cq=class{constructor(){IL(iq,5,this),LL(this,aq,IL(iq,8,this,"idle")),IL(iq,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};iq=EL(null),aq=new WeakMap,kL(iq,4,"value",oq,cq,aq),kL(iq,2,"current",nq,cq),kL(iq,2,"idle",rq,cq),kL(iq,2,"initializing",tq,cq),kL(iq,2,"initialized",eq,cq),kL(iq,2,"dragging",QL,cq),kL(iq,2,"dropped",ZL,cq),ML(iq,cq);var dq,pq,fq,hq,mq,gq,vq,bq,yq,xq=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return gT((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=JL({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return gT((()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;hT((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=JL({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then((()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))})),r)}))}move(e){return gT((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=JL({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask((()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l}))}))}stop(e={}){return gT((()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then((()=>{n.status.set("dropped");const e=gT((()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)})),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=OT((()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())}))}else this.manager.renderer.rendering.then(t)}))};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise(((t,r)=>{e.resume=t,e.abort=r})),e}}),i?i.then(a).catch((()=>n.reset())):a()}))}};hq=[RO],fq=[RO],pq=[RO],dq=[RO];var Sq=class{constructor(e,t){LL(this,gq,IL(mq,8,this)),IL(mq,11,this),LL(this,vq,IL(mq,12,this)),IL(mq,15,this),LL(this,bq,IL(mq,16,this)),IL(mq,19,this),LL(this,yq,IL(mq,20,this)),IL(mq,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};mq=EL(null),gq=new WeakMap,vq=new WeakMap,bq=new WeakMap,yq=new WeakMap,kL(mq,4,"manager",hq,Sq,gq),kL(mq,4,"id",fq,Sq,vq),kL(mq,4,"data",pq,Sq,bq),kL(mq,4,"disabled",dq,Sq,yq),ML(mq,Sq);var wq,Cq,Eq,Rq,Aq,Pq,Mq,Iq,kq,Dq,Tq,Oq,Lq,qq,Nq,_q,jq,zq,Fq,$q,Hq,Bq,Wq,Vq,Uq=class{constructor(){this.map=CT(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=MO(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},Gq=class extends(Mq=Sq,Pq=[RO],Aq=[RO],Rq=[RO],Eq=[AO],Cq=[AO],wq=[AO],Mq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=CL(r,["modifiers","type","sensors"]);super(a,t),IL(Iq,5,this),LL(this,kq,IL(Iq,8,this)),IL(Iq,11,this),LL(this,Dq,IL(Iq,12,this)),IL(Iq,15,this),LL(this,Tq,IL(Iq,16,this,this.isDragSource?"dragging":"idle")),IL(Iq,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};Iq=EL(Mq),kq=new WeakMap,Dq=new WeakMap,Tq=new WeakMap,kL(Iq,4,"type",Pq,Gq,kq),kL(Iq,4,"modifiers",Aq,Gq,Dq),kL(Iq,4,"status",Rq,Gq,Tq),kL(Iq,2,"isDropping",Eq,Gq),kL(Iq,2,"isDragging",Cq,Gq),kL(Iq,2,"isDragSource",wq,Gq),ML(Iq,Gq);var Yq=class extends(zq=Sq,jq=[RO],_q=[RO],Nq=[RO],qq=[RO],Lq=[RO],Oq=[AO],zq){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(CL(r,["accept","collisionDetector","collisionPriority","type"]),t),IL(Fq,5,this),LL(this,$q,IL(Fq,8,this)),IL(Fq,11,this),LL(this,Hq,IL(Fq,12,this)),IL(Fq,15,this),LL(this,Bq,IL(Fq,16,this)),IL(Fq,19,this),LL(this,Wq,IL(Fq,20,this)),IL(Fq,23,this),LL(this,Vq,IL(Fq,24,this)),IL(Fq,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};Fq=EL(zq),$q=new WeakMap,Hq=new WeakMap,Bq=new WeakMap,Wq=new WeakMap,Vq=new WeakMap,kL(Fq,4,"accept",jq,Yq,$q),kL(Fq,4,"type",_q,Yq,Hq),kL(Fq,4,"collisionDetector",Nq,Yq,Bq),kL(Fq,4,"collisionPriority",qq,Yq,Wq),kL(Fq,4,"shape",Lq,Yq,Vq),kL(Fq,2,"isDropTarget",Oq,Yq),ML(Fq,Yq);var Kq,Xq=class extends FL{constructor(e,t){super(e,t),this.manager=e,this.options=t}},Jq=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},Zq=class{constructor(e){this.options=e,LL(this,Kq)}set controller(e){qL(this,Kq,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=OL(this,Kq))||t.activate(e)}};Kq=new WeakMap;var Qq,eN,tN,rN,nN,oN,iN,aN,sN,lN,uN,cN,dN,pN,fN,hN,mN,gN,vN,bN=class extends FL{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},yN=class{constructor(e){this.draggables=new Uq,this.droppables=new Uq,this.plugins=new BL(e),this.sensors=new BL(e),this.modifiers=new BL(e)}register(e,t){if(e instanceof Gq)return this.draggables.register(e.id,e);if(e instanceof Yq)return this.droppables.register(e.id,e);if(e.prototype instanceof bN)return this.modifiers.register(e,t);if(e.prototype instanceof Xq)return this.sensors.register(e,t);if(e.prototype instanceof FL)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof Sq)return e instanceof Gq?this.draggables.unregister(e.id,e):e instanceof Yq?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof bN)return this.modifiers.unregister(e);if(e.prototype instanceof Xq)return this.sensors.unregister(e);if(e.prototype instanceof FL)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};sN=[AO],aN=[RO],iN=[RO],oN=[RO],nN=[RO],rN=[RO],tN=[AO],eN=[AO],Qq=[AO];var xN=class{constructor(e){IL(dN,5,this),LL(this,lN),LL(this,uN),LL(this,cN,new kO(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new cq,LL(this,pN,IL(dN,8,this,!1)),IL(dN,11,this),LL(this,fN,IL(dN,12,this,null)),IL(dN,15,this),LL(this,hN,IL(dN,16,this,null)),IL(dN,19,this),LL(this,mN,IL(dN,20,this,null)),IL(dN,23,this),LL(this,gN,IL(dN,24,this,[])),IL(dN,27,this),this.position=new tL({x:0,y:0}),LL(this,vN,{x:0,y:0}),qL(this,lN,e)}get shape(){const{current:e,initial:t,previous:r}=OL(this,cN);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?OL(this,cN).current=e:OL(this,cN).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=OL(this,lN).registry.draggables.get(t);return r&&qL(this,uN,r),null!=(e=null!=r?r:OL(this,uN))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=OL(this,lN).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(SL(xL({},this.snapshot()),{transform:r}));return qL(this,vN,r),r}snapshot(){return gT((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:OL(this,vN),shape:this.shape?DO(this.shape):null,position:DO(this.position),status:DO(this.status),canceled:this.canceled})))}reset(){hT((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,OL(this,cN).reset(),this.position.reset({x:0,y:0}),qL(this,vN,{x:0,y:0}),this.modifiers=[]}))}};dN=EL(null),lN=new WeakMap,uN=new WeakMap,cN=new WeakMap,pN=new WeakMap,fN=new WeakMap,hN=new WeakMap,mN=new WeakMap,gN=new WeakMap,vN=new WeakMap,kL(dN,2,"shape",sN,xN),kL(dN,4,"canceled",aN,xN,pN),kL(dN,4,"activatorEvent",iN,xN,fN),kL(dN,4,"sourceIdentifier",oN,xN,hN),kL(dN,4,"targetIdentifier",nN,xN,mN),kL(dN,4,"modifiers",rN,xN,gN),kL(dN,2,"source",tN,xN),kL(dN,2,"target",eN,xN),kL(dN,2,"transform",Qq,xN),ML(dN,xN);var SN={get rendering(){return Promise.resolve()}};function wN(e,t){return"function"==typeof e?e(t):null!=e?e:t}var CN=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach((e=>e.destroy())),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=wN(r.plugins,[]),o=wN(r.sensors,[]),i=wN(r.modifiers,[]),a=null!=(t=r.renderer)?t:SN,s=new XL(this),l=new yN(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new xq(this),this.dragOperation=new xN(this),this.collisionObserver=new YL(this),this.plugins=[sq,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=MO((()=>{var e,t,r;const n=gT((()=>this.dragOperation.modifiers)),o=this.modifiers;for(const e of n)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map((e=>{const{plugin:t,options:r}=zL(e);return new t(this,r)})))?r:o}));this.destroy=()=>{c(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},EN=e=>{throw TypeError(e)},RN=(e,t,r)=>t.has(e)||EN("Cannot "+r),AN=(e,t,r)=>(RN(e,t,"read from private field"),t.get(e)),PN=(e,t,r)=>t.has(e)?EN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),MN=(e,t,r,n)=>(RN(e,t,"write to private field"),t.set(e,r),r),IN=(e,t,r)=>(RN(e,t,"access private method"),r);function kN(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function DN(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(kN(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function TN(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function ON(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function LN(e){return"nodeType"in e}function qN(e){var t,r,n;return e?ON(e)?e:LN(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function NN(e){const{Document:t}=qN(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function _N(e){return!(!e||ON(e))&&(e instanceof qN(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function jN(e){return e instanceof qN(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function zN(e){return e?ON(e)?e.document:LN(e)?NN(e)?e:_N(e)||jN(e)?e.ownerDocument:document:document:document}function FN(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function $N(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!FN(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,v=r*g,b=r*m;return l={top:Math.max(l.top,f-v),right:Math.min(l.right,h+m+b),bottom:Math.min(l.bottom,f+g+v),left:Math.max(l.left,h-b),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function HN(e){return{x:e.clientX,y:e.clientY}}var BN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function WN(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...WN(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...WN(o.document,t))}}catch(e){}return r}function VN(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function UN(){var e,t;const r=VN()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function GN(e){return!(!e||!LN(e))&&e instanceof qN(e).ShadowRoot}function YN(e){if(e&&LN(e)){let t=e.getRootNode();if(GN(t))return t;if(t instanceof Document)return t}return zN(e)}function KN(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function XN(e){return"value"in e}function JN(e){return"CANVAS"===e.tagName}function ZN(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return ZN(e,{x:t-o,y:r-i})}}return n}var QN=new WeakMap;var e_=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function t_(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function r_(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}((()=>{e.apply(a,i),o=r()}),t-(r()-o))):(e.apply(a,i),o=r())}}var n_,o_=BN?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},i_=class extends o_{constructor(e){super((t=>{AN(this,n_)?e(t,this):MN(this,n_,!0)})),PN(this,n_,!1)}};n_=new WeakMap;var a_,s_,l_,u_,c_,d_,p_,f_,h_,m_,g_,v_=Array.from({length:100},((e,t)=>t/100)),b_=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,PN(this,h_),this.disconnect=()=>{var e,t,r;MN(this,p_,!0),null==(e=AN(this,l_))||e.disconnect(),null==(t=AN(this,u_))||t.disconnect(),AN(this,c_).disconnect(),null==(r=AN(this,d_))||r.remove()},PN(this,a_,!0),PN(this,s_),PN(this,l_),PN(this,u_),PN(this,c_),PN(this,d_),PN(this,p_,!1),PN(this,f_,r_((()=>{var e,t,r;const{element:n}=this;if(null==(e=AN(this,u_))||e.disconnect(),AN(this,p_)||!AN(this,a_)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=$N(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,MN(this,u_,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:QO.intersectionRatio(r,$N(n)))&&AN(this,f_).call(this)}),{threshold:v_,rootMargin:m,root:o})),AN(this,u_).observe(n),IN(this,h_,m_).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),MN(this,a_,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=$N(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(MN(this,d_,document.createElement("div")),AN(this,d_).style.background="rgba(0,0,0,0.15)",AN(this,d_).style.position="fixed",AN(this,d_).style.pointerEvents="none",o.body.appendChild(AN(this,d_))),MN(this,c_,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=AN(this,a_);MN(this,a_,a),(s||l)&&(u&&!a?(null==(r=AN(this,u_))||r.disconnect(),this.callback(null),null==(n=AN(this,l_))||n.disconnect(),MN(this,l_,void 0),AN(this,d_)&&(AN(this,d_).style.visibility="hidden")):AN(this,f_).call(this),a&&!AN(this,l_)&&(MN(this,l_,new i_(AN(this,f_))),AN(this,l_).observe(e)))}),{threshold:v_,root:o})),AN(this,a_)&&!r.skipInitial&&this.callback(this.boundingClientRect),AN(this,c_).observe(e)}};a_=new WeakMap,s_=new WeakMap,l_=new WeakMap,u_=new WeakMap,c_=new WeakMap,d_=new WeakMap,p_=new WeakMap,f_=new WeakMap,h_=new WeakSet,m_=function(){AN(this,p_)||(IN(this,h_,g_).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,AN(this,s_))||(this.callback(this.boundingClientRect),MN(this,s_,this.boundingClientRect)))},g_=function(){if(AN(this,d_)){const{top:e,left:t,width:r,height:n}=$N(this.element);AN(this,d_).style.overflow="hidden",AN(this,d_).style.visibility="visible",AN(this,d_).style.top=`${Math.floor(e)}px`,AN(this,d_).style.left=`${Math.floor(t)}px`,AN(this,d_).style.width=`${Math.floor(r)}px`,AN(this,d_).style.height=`${Math.floor(n)}px`}};var y_,x_,S_,w_,C_=new WeakMap,E_=new WeakMap;function R_(e,t){let r=C_.get(e);if(!r){const t=new b_(e,(t=>{const r=C_.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),C_.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(C_.delete(e),r.disconnect())}}var A_=class{constructor(e,t,r){this.callback=t,PN(this,y_),PN(this,x_,!1),PN(this,S_),PN(this,w_,r_((e=>{if(!AN(this,x_)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of AN(this,S_))if(e.target.contains(t)){this.callback(AN(this,y_).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=t_(e);for(;r;)t.add(r),r=t_(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=R_(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!E_.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",(e=>t.forEach((t=>t(e)))),{capture:!0,passive:!0,signal:e.signal}),E_.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=E_.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),E_.delete(n))}):()=>{}}(e,AN(this,w_));MN(this,S_,n),MN(this,y_,new b_(e,t,r)),this.disconnect=()=>{AN(this,x_)||(MN(this,x_,!0),o(),i(),AN(this,y_).disconnect())}}};function P_(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function M_(e){try{P_(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function I_(e){return!(!BN||!e)&&e===zN(e).scrollingElement}function k_(e){var t,r;const n=qN(e),o=I_(e)?function(e){var t,r,n,o;const{documentElement:i}=zN(e),a=qN(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):TN(e),i=n.visualViewport,a=I_(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function D_(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=k_(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}y_=new WeakMap,x_=new WeakMap,S_=new WeakMap,w_=new WeakMap;var T_=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}},O_=new T_((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),L_=new T_((e=>setTimeout(e,50))),q_=new Map,N_=q_.clear.bind(q_);function __(e,t=!1){if(!t)return j_(e);let r=q_.get(e);return r||(r=j_(e),q_.set(e,r),L_.schedule(N_),r)}function j_(e){return qN(e).getComputedStyle(e)}var z_={excludeElement:!0,escapeShadowDOM:!0};function F_(e,t=z_){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(NN(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&GN(a))return t(a.host);if(!_N(a))return jN(a)?t(a.parentElement):i;if(i.has(a))return i;const s=__(a,!0);if(n&&a===e||function(e,t=__(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,s)&&i.add(a),function(e,t=__(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function $_(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=t_(e);for(;n;){if(n===t)return r;const e=TN(n),{x:o,y:i}=H_(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=t_(n)}return r}function H_(e,t=TN(e)){const r=Math.round(t.width),n=Math.round(t.height);if(_N(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=__(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function B_(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function W_(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=B_(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,v=null!=(r=null==f?void 0:f.y)?r:1,b=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:b+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:v*C}}var V_=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(V_||{}),U_={x:.2,y:.2},G_={x:10,y:10};function Y_(e,t,r,n=25,o=U_,i=G_){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=k_(e),f=$_(e),h=W_(__(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new QO(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),b={x:0,y:0},y={x:0,y:0},x=v.height*o.y,S=v.width*o.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x?(b.y=g?1:-1,y.y=n*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x&&(b.y=g?-1:1,y.y=n*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y?(b.x=m?-1:1,y.x=n*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y&&(b.x=m?1:-1,y.x=n*Math.abs((v.left+S-a)/S)),{direction:b,speed:y}}function K_(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!_N(e))return e.scrollIntoView();var n=function(e){const[t]=F_(e,{limit:1});return null!=t?t:null}(e);if(!_N(n))return;const o=__(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function X_({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function J_(e,t=__(e).translate,r=!0){if(r){const t=DN(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=B_(e);if(t)return t}}}if(t){const e=B_(t);if(e)return e}return{x:0,y:0,z:0}}var Z_=new T_((e=>setTimeout(e,0))),Q_=new Map,ej=Q_.clear.bind(Q_);function tj(e,t){const r=function(e){const t=e.ownerDocument;let r=Q_.get(t);if(r)return r;r=t.getAnimations(),Q_.set(t,r),Z_.schedule(ej);const n=r.filter((t=>kN(t.effect)&&t.effect.target===e));return Q_.set(e,n),r}(e).filter((e=>{var r,n;if(kN(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some((e=>{for(const r of t.properties)if(e[r])return!0}))}})).map((e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0}));if(r.length>0)return()=>r.forEach((e=>null==e?void 0:e()))}var rj=class extends QO{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=$_(e),ignoreTransforms:s,getBoundingClientRect:l=TN}=t,u=tj(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||VN())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=__(e),v=W_(g),b={x:null!=(r=null==v?void 0:v.scaleX)?r:1,y:null!=(n=null==v?void 0:v.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=kN(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=W_({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),v&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,v,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,b.x=y.scaleX,b.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=b,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function nj(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var oj=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(nj(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(nj(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(nj(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function ij(e){return!!e&&(e instanceof qN(e).Element||LN(e)&&e.nodeType===Node.ELEMENT_NODE)}function aj(e){if(!e)return!1;const{KeyboardEvent:t}=qN(e.target);return e instanceof t}var sj={};function lj(e){const t=null==sj[e]?0:sj[e]+1;return sj[e]=t,`${e}-${t}`}var uj=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/ZO.distance(t.shape.center,r),type:uq.PointerIntersection,priority:lq.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=ZO.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:uq.ShapeIntersection,priority:lq.Normal}}return null})(e)},cj=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?QO.from(n.current.boundingRectangle).corners:void 0,a=QO.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+ZO.distance(ZO.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)}),0),s=a/4;return{id:r.id,value:1/s,type:uq.Collision,priority:lq.Normal}},dj=Object.create,pj=Object.defineProperty,fj=Object.defineProperties,hj=Object.getOwnPropertyDescriptor,mj=Object.getOwnPropertyDescriptors,gj=Object.getOwnPropertySymbols,vj=Object.prototype.hasOwnProperty,bj=Object.prototype.propertyIsEnumerable,yj=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),xj=e=>{throw TypeError(e)},Sj=(e,t,r)=>t in e?pj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wj=(e,t)=>{for(var r in t||(t={}))vj.call(t,r)&&Sj(e,r,t[r]);if(gj)for(var r of gj(t))bj.call(t,r)&&Sj(e,r,t[r]);return e},Cj=(e,t)=>fj(e,mj(t)),Ej=(e,t)=>pj(e,"name",{value:t,configurable:!0}),Rj=(e,t)=>{var r={};for(var n in e)vj.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&gj)for(var n of gj(e))t.indexOf(n)<0&&bj.call(e,n)&&(r[n]=e[n]);return r},Aj=e=>{var t;return[,,,dj(null!=(t=null==e?void 0:e[yj("metadata")])?t:null)]},Pj=["class","method","getter","setter","accessor","field","value","get","set"],Mj=e=>void 0!==e&&"function"!=typeof e?xj("Function expected"):e,Ij=(e,t,r,n,o)=>({kind:Pj[e],name:t,metadata:n,addInitializer:e=>r._?xj("Already initialized"):o.push(Mj(e||null))}),kj=(e,t)=>Sj(t,yj("metadata"),e[3]),Dj=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},Tj=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=Pj[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&hj(d<4?o:{get[r](){return qj(this,i)},set[r](e){return _j(this,i,e)}},r));d?f&&d<4&&Ej(i,(d>2?"set ":d>1?"get ":"")+r):Ej(o,r);for(var y=n.length-1;y>=0;y--)u=Ij(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>Lj(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?qj:jj)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>_j(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?Mj(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?xj("Object expected"):(Mj(a=s.get)&&(b.get=a),Mj(a=s.set)&&(b.set=a),Mj(a=s.init)&&g.unshift(a));return d||kj(e,o),b&&pj(o,r,b),f?4^d?i:b:o},Oj=(e,t,r)=>t.has(e)||xj("Cannot "+r),Lj=(e,t)=>Object(t)!==t?xj('Cannot use the "in" operator on this value'):e.has(t),qj=(e,t,r)=>(Oj(e,t,"read from private field"),r?r.call(e):t.get(e)),Nj=(e,t,r)=>t.has(e)?xj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_j=(e,t,r,n)=>(Oj(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),jj=(e,t,r)=>(Oj(e,t,"access private method"),r),zj="button",Fj="draggable",$j="dnd-kit-description",Hj="dnd-kit-announcement",Bj={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},Wj={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function Vj(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var Uj=["dragover","dragmove"],Gj=class extends FL{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=$j,announcement:o=Hj}={},announcements:i=Wj,screenReaderInstructions:a=Bj,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:lj(n),u=r?`${o}-${r}`:lj(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>O_.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),v=Object.entries(i).map((([e,t])=>this.manager.monitor.addEventListener(e,((r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,Uj.includes(e)?g():(m(),g.cancel()))})))),b=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect((()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(b),Vj(r)&&!VN()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",zj))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",Fj))),r.hasAttribute("aria-describedby")||y.add((()=>r.setAttribute("aria-describedby",l)));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add((()=>r.setAttribute(e,n)))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add((()=>r.setAttribute("aria-disabled",e)))}}y.size>0&&O_.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach((e=>e()))}}};var Yj,Kj,Xj,Jj,Zj,Qj,ez,tz,rz,nz,oz,iz,az,sz=new Map,lz=class extends(Zj=HL,Jj=[RO],Xj=[AO],Kj=[AO],Yj=[AO],Zj){constructor(e){super(e),Dj(ez,5,this),Nj(this,rz),Nj(this,Qj,new Set),Nj(this,tz,Dj(ez,8,this,new Set)),Dj(ez,11,this),this.registerEffect(jj(this,rz,nz))}register(e){return qj(this,Qj).add(e),()=>{qj(this,Qj).delete(e)}}addRoot(e){return gT((()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t})),()=>{gT((()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t}))}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return YN(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return YN(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter((e=>null!=e));return new Set([...e,...this.additionalRoots])}return new Set}};ez=Aj(Zj),Qj=new WeakMap,tz=new WeakMap,rz=new WeakSet,nz=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of qj(this,Qj))t.push(jj(this,rz,oz).call(this,r,e));return()=>{for(const e of t)e()}},oz=function(e,t){let r=sz.get(e);r||(r=new Map,sz.set(e,r));let n=r.get(t);if(!n){const o=NN(e)?jj(this,rz,iz).call(this,e,r,t):jj(this,rz,az).call(this,e,r,t);if(!o)return()=>{};n=o,r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},iz=function(e,t,r){const n=e.createElement("style");n.textContent=r,e.head.prepend(n);const o=new MutationObserver((t=>{for(const r of t)for(const t of Array.from(r.removedNodes))if(t===n)return void e.head.prepend(n)}));return o.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{o.disconnect(),n.remove(),t.delete(r),0===t.size&&sz.delete(e)}}},az=function(e,t,r){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const n=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=n?n:{};if(!o)return null;const i=new o;return i.replaceSync(r),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var n;if(GN(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(r),0===t.size&&sz.delete(e)}}},Tj(ez,4,"additionalRoots",Jj,lz,tz),Tj(ez,2,"sourceRoot",Xj,lz),Tj(ez,2,"targetRoot",Kj,lz),Tj(ez,2,"roots",Yj,lz),kj(ez,lz);var uz="data-dnd-",cz=`${uz}dropping`,dz="--dnd-",pz=`${uz}dragging`,fz=`${uz}placeholder`,hz=[pz,fz,"popover","aria-pressed","aria-grabbing"],mz=["view-transition-name"],gz=`\n :is(:root,:host) [${pz}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${dz}top, 0px) !important;\n left: var(${dz}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${dz}width, auto);\n max-width: var(${dz}width, auto);\n height: var(${dz}height, auto);\n max-height: var(${dz}height, auto);\n transition: var(${dz}transition) !important;\n }\n\n :is(:root,:host) [${fz}] {\n transition: none;\n }\n\n :is(:root,:host) [${fz}='hidden'] {\n visibility: hidden;\n }\n\n [${pz}] * {\n pointer-events: none !important;\n }\n\n [${pz}]:not([${cz}]) {\n translate: var(${dz}translate) !important;\n }\n\n [${pz}][style*='${dz}scale'] {\n scale: var(${dz}scale) !important;\n transform-origin: var(${dz}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${pz}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${pz}]::backdrop, [${uz}overlay]:not([${pz}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function vz(e,t="hidden"){return gT((()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${uz}${lj("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach(((e,t)=>{const r=n[t];if(XN(e)&&XN(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),JN(e)&&JN(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}})),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),QN.set(a,i),r.push((()=>{QN.delete(a),n.proxy=void 0}))}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(fz,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function bz(e,t){return e===t||t_(e)===t_(t)}function yz(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&ij(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>M_(t)))}function xz(e){return"TR"===e.tagName}var Sz,wz,Cz,Ez,Rz,Az,Pz,Mz=250,Iz="ease";var kz=class extends(wz=FL,Sz=[RO],wz){constructor(e,t){super(e,t),Nj(this,Rz),Nj(this,Ez,Dj(Cz,8,this)),Dj(Cz,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(lz),n=null==r?void 0:r.register(gz);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(jj(this,Rz,Az).bind(this,r)),this.registerEffect(jj(this,Rz,Pz))}};Cz=Aj(wz),Ez=new WeakMap,Rz=new WeakSet,Az=function(e){const{overlay:t}=this;if(!t||!e)return;const r=YN(t);return r?e.addRoot(r):void 0},Pz=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=$_(f),m=$_(c),g=!bz(c,f),v=new rj(c,{frameTransform:g?m:null,ignoreTransforms:!g}),b=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=v;g&&(x/=b,S/=y);const E=new oj(f),{transition:R,translate:A,boxSizing:P,paddingBlockStart:M,paddingBlockEnd:I,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=__(c),N="clone"===d,_="content-box"===P,j=_?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=_?parseInt(M)+parseInt(I)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:vz(l,N?"clone":"hidden"),$=gT((()=>aj(o.dragOperation.activatorEvent)));if("none"!==A){const e=B_(A);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=gT((()=>s.current));p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:H}=p,B=w*h.scaleY+h.y,W=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:W,y:B},1!==b||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=H;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-W,U=p.coordinates.y-B,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*H.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*H.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(pz,"true");const Z=gT((()=>a.transform)),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,re=UN();if(E.set({width:x-j,height:S-z,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${b} ${y}`:"","transform-origin":`${100*H.x}% ${100*H.y}%`},dz),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;P_(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),M_(f),f.addEventListener("beforetoggle",yz));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:H,width:x,height:S,top:w,left:C,widthOffset:j,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver((()=>{var e,t;const r=new rj(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=UN();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},dz),null==(t=se.getElementMutationObserver())||t.takeRecords(),xz(se.element)&&xz(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map((e=>e.style.width)));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new rj(se.feedbackElement)})));var se;const le=new rj(f);gT((()=>a.shape=le));const ue=qN(f),ce=e=>{this.manager.actions.stop({event:e})},de=KN(ue);$&&ue.addEventListener("resize",ce),"idle"===gT((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),F&&(ae.observe(F),ne=function(e,t,r){const n=new MutationObserver((n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||hz.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(nj(e)&&nj(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(mz.includes(e)||e.startsWith(dz))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)}));return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),oe=function(e,t,r){const n=new MutationObserver((n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void M_(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void M_(r)}}));return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!$||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;_N(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),P_(f)&&(f.removeEventListener("beforetoggle",yz),f.removeAttribute("popover")),f.removeAttribute(pz),E.reset(),ie&&xz(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},me=null==i?void 0:i.dropAnimation,ge=this,ve=MO((()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=gT((()=>a.modifiers)),l=gT((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=$&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},dz),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=ZO.delta(o,i);a.shape=QO.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new rj(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then((()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then((()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}const{duration:a=Mz,easing:s=Iz}=null!=i?i:{};M_(e.feedbackElement);const[,l]=null!=(t=DN(e.feedbackElement,(e=>"translate"in e)))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:bz(e.feedbackElement,u)?null:void 0},d=new rj(e.feedbackElement,c),p=null!=(n=B_(__(e.feedbackElement).translate))?n:e.translate,f=new rj(u,c),h=QO.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,v=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},b=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},dz),e.feedbackElement.setAttribute(cz,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),X_({element:e.feedbackElement,keyframes:Cj(wj(wj({},v),b),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:KN(qN(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then((()=>{e.feedbackElement.removeAttribute(cz),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}({element:c,feedbackElement:f,placeholder:F,translate:t,moved:r,transition:R,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})}))}}));return()=>{he(),ve()}},Tj(Cz,4,"overlay",Sz,kz,Ez),kj(Cz,kz),kz.configure=jL(kz);var Dz,Tz,Oz,Lz,qz,Nz,_z,jz=kz,zz=!0;Oz=[RO],Lz=V_.Forward,Dz=[RO],Tz=V_.Reverse;var Fz=class{constructor(){Nj(this,Nz,Dj(qz,8,this,zz)),Dj(qz,11,this),Nj(this,_z,Dj(qz,12,this,zz)),Dj(qz,15,this)}isLocked(e){return e!==V_.Idle&&(null==e?this[V_.Forward]===zz&&this[V_.Reverse]===zz:this[e]===zz)}unlock(e){e!==V_.Idle&&(this[e]=false)}};qz=Aj(null),Nz=new WeakMap,_z=new WeakMap,Tj(qz,4,Lz,Oz,Fz,Nz),Tj(qz,4,Tz,Dz,Fz,_z),kj(qz,Fz);var $z,Hz,Bz,Wz,Vz,Uz,Gz=[V_.Forward,V_.Reverse],Yz=class{constructor(){this.x=new Fz,this.y=new Fz}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Kz=class extends FL{constructor(e){super(e);const t=CT(new Yz);let r=null;this.signal=t,OT((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new Yz);const{delta:o}=e.dragOperation.position;if(r){const e={x:Xz(o.x,r.x),y:Xz(o.y,r.y)},n=t.peek();hT((()=>{for(const t of lL)for(const r of Gz)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function Xz(e,t){return Math.sign(e-t)}var Jz=class extends(Hz=HL,$z=[RO],Hz){constructor(e){super(e),Nj(this,Wz,Dj(Bz,8,this,!1)),Dj(Bz,11,this),Nj(this,Vz),Nj(this,Uz,(()=>{if(!qj(this,Vz))return;const{element:e,by:t}=qj(this,Vz);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)})),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return _j(this,Vz,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:Zz(n.x),y:Zz(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=D_(e,n);if(r.x||r.y){const{speed:r,direction:s}=Y_(e,o,i);if(a)for(const e of lL)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=qj(this,Vz))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return _j(this,Vz,{element:e,by:{x:a,y:l}}),O_.schedule(qj(this,Uz)),!0}}}}}return _j(this,Vz,void 0),!1};let t=null,r=null;const n=CO((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=ZN(YN(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=CO((()=>{const t=n.value,{documentElement:o}=zN(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=F_(n,{excludeElement:!1});return r=e,e}}if(t){const e=F_(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),EO);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new Kz(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&aj(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function Zz(e){return e>0?V_.Forward:e<0?V_.Reverse:V_.Idle}Bz=Aj(Hz),Wz=new WeakMap,Vz=new WeakMap,Uz=new WeakMap,Tj(Bz,4,"autoScrolling",$z,Jz,Wz),kj(Bz,Jz);var Qz,eF=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}}((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),tF=class extends FL{constructor(e,t){super(e);const r=e.registry.plugins.get(Jz);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=OT((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>eF.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},rF={capture:!0,passive:!0},nF=class extends HL{constructor(e){super(e),Nj(this,Qz),this.handleScroll=()=>{null==qj(this,Qz)&&_j(this,Qz,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),_j(this,Qz,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=OT((()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,rF),()=>{o.removeEventListener("scroll",this.handleScroll,rF)}}}))}};Qz=new WeakMap;function oF(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var iF,aF=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),sF=class extends Xq{constructor(e,t){super(e),this.manager=e,this.options=t,Nj(this,iF,[]),this.listeners=new e_,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!ij(e.target))return;if(t.disabled)return;const{keyboardCodes:n=aF.keyboardCodes,preventActivation:o=aF.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=OT((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{aj(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}));return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),K_(n);const{center:o}=new rj(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=zN(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];qj(this,iF).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=aF.keyboardCodes}=null!=r?r:{};if(cF(e,[...n.end,...n.cancel])){e.preventDefault();const t=cF(e,n.cancel);this.handleEnd(e,t)}else cF(e,n.up)?this.handleMove("up",e):cF(e,n.down)&&this.handleMove("down",e),cF(e,n.left)?this.handleMove("left",e):cF(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:aF.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(tF);!1===(null==e?void 0:e.disabled)&&(e.disable(),qj(this,iF).push((()=>{e.enable()})))}cleanup(){qj(this,iF).forEach((e=>e())),_j(this,iF,[])}destroy(){this.cleanup(),this.listeners.clear()}};iF=new WeakMap,sF.configure=jL(sF),sF.defaults=aF;var lF,uF=sF;function cF(e,t){return t.includes(e.code)}var dF,pF;lF=new WeakMap;dF=new WeakMap,pF=new WeakMap;var fF=class{};fF.Delay=class extends Zq{constructor(){super(...arguments),Nj(this,dF),Nj(this,pF)}onEvent(e){switch(e.type){case"pointerdown":_j(this,pF,HN(e)),_j(this,dF,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!qj(this,pF))return;const{x:t,y:r}=HN(e);rL({x:t-qj(this,pF).x,y:r-qj(this,pF).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){qj(this,dF)&&(clearTimeout(qj(this,dF)),_j(this,pF,void 0),_j(this,dF,void 0))}},fF.Distance=class extends Zq{constructor(){super(...arguments),Nj(this,lF)}onEvent(e){switch(e.type){case"pointerdown":_j(this,lF,HN(e));break;case"pointermove":if(!qj(this,lF))return;const{x:t,y:r}=HN(e),n={x:t-qj(this,lF).x,y:r-qj(this,lF).y},{tolerance:o}=this.options;if(o&&rL(n,o))return void this.abort();rL(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){_j(this,lF,void 0)}};var hF,mF=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!ij(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new fF.Delay({value:250,tolerance:5})]:function(e){if(!ij(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new fF.Delay({value:200,tolerance:0})]:[new fF.Delay({value:200,tolerance:10}),new fF.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!ij(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),gF=class extends Xq{constructor(e,t){super(e),this.manager=e,this.options=t,Nj(this,hF,new Set),this.listeners=new e_,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=mF.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=OT((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=qN(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(SF(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()}));return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!ij(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=mF.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=_N(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=$_(t.element),{x:s,y:l}=HN(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new Jq(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=WN(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:bF,options:{capture:!0}}]);qj(this,hF).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=HN(e),n=$_(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,O_.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=zN(t.target).body;o.setPointerCapture(t.pointerId);const i=ij(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:bF,options:{passive:!1}},{type:"click",listener:bF},{type:"contextmenu",listener:bF},{type:"keydown",listener:this.handleKeyDown}]);qj(this,hF).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},qj(this,hF).forEach((e=>e())),qj(this,hF).clear()}destroy(){this.cleanup(),this.listeners.clear()}};hF=new WeakMap,gF.configure=jL(gF),gF.defaults=mF;var vF=gF;function bF(e){e.preventDefault()}function yF(){}var xF=new WeakSet;function SF(e){e&&!xF.has(e)&&(e.addEventListener("touchmove",yF,{capture:!1,passive:!1}),xF.add(e))}var wF,CF,EF,RF,AF,PF,MF,IF,kF,DF,TF,OF,LF,qF,NF,_F,jF,zF,FF={modifiers:[],plugins:[Gj,tF,class extends FL{constructor(e,t){super(e,t),this.manager=e;const r=CO((()=>{var e;return zN(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=OT((()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}}))}},jz,class extends FL{constructor(e,t){super(e,t),this.manager=e,this.destroy=OT((()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),oF(),document.addEventListener("selectionchange",oF,{capture:!0}),()=>{document.removeEventListener("selectionchange",oF,{capture:!0}),e.remove()}}}))}}],sensors:[vF,uF]},$F=class extends CN{constructor(e={}){const t=wN(e.plugins,FF.plugins),r=wN(e.sensors,FF.sensors),n=wN(e.modifiers,FF.modifiers);super(Cj(wj({},e),{plugins:[nF,Jz,lz,...t],sensors:r,modifiers:n}))}},HF=class extends(RF=Gq,EF=[RO],CF=[RO],wF=[RO],RF){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=Rj(r,["element","effects","handle","feedback"]);super(wj({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(zL))?t:[...r.sensors]).map((e=>{const t=e instanceof Xq?e:r.registry.register(e.plugin),n=e instanceof Xq?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),Nj(this,PF,Dj(AF,8,this)),Dj(AF,11,this),Nj(this,MF,Dj(AF,12,this)),Dj(AF,15,this),Nj(this,IF,Dj(AF,16,this)),Dj(AF,19,this),this.element=n,this.handle=i,this.feedback=a}};AF=Aj(RF),PF=new WeakMap,MF=new WeakMap,IF=new WeakMap,Tj(AF,4,"handle",EF,HF,PF),Tj(AF,4,"element",CF,HF,MF),Tj(AF,4,"feedback",wF,HF,IF),kj(AF,HF);var BF=class extends(TF=Yq,DF=[RO],kF=[RO],TF){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=Rj(r,["element","effects"]);const{collisionDetector:a=uj}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new rj(r),o=gT((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=CT(!1);super(Cj(wj({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new A_(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),Nj(this,jF),Nj(this,LF,Dj(OF,8,this)),Dj(OF,11,this),Nj(this,zF,Dj(OF,12,this)),Dj(OF,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){_j(this,jF,e,_F)}get element(){var e;return null!=(e=this.proxy)?e:qj(this,jF,NF)}};function WF(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}OF=Aj(TF),LF=new WeakMap,jF=new WeakSet,zF=new WeakMap,qF=Tj(OF,20,"#element",DF,jF,LF),NF=qF.get,_F=qF.set,Tj(OF,4,"proxy",kF,BF,zF),kj(OF,BF);var VF="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_:D;function UF(){const e=P(0)[1];return O((()=>{e((e=>e+1))}),[e])}function GF(e,t=[],r=!1){const n=M(e);return n.current=e,function(e,t=!1){const r=M(e.peek()),n=M(!1),o=UF();return VF((()=>OT((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?W(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(A((()=>CO((()=>n.current()))),t),r)}function YF(e,t){const r=M(new Map),n=UF();return VF((()=>{if(e)return OT((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=gT((()=>n[1])),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?W(n):n())}));r.current.clear()}),[e]),A((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function KF(e,t){e()}function XF(e){const t=M(e);return VF((()=>{t.current=e}),[e]),t}function JF(e,t,r=D,n=Object.is){const o=M(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function ZF(e,t){const r=M(WF(e));VF((()=>{const n=WF(e);n!==r.current&&(r.current=n,t(n))}))}var QF=Object.getOwnPropertySymbols,e$=Object.prototype.hasOwnProperty,t$=Object.prototype.propertyIsEnumerable,r$=I(new $F),n$=N(q((({children:e},t)=>{const[r,n]=P(0),o=M(null),i=M(null),a=A((()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise((e=>{i.current=e}))),z((()=>{e(),n((e=>e+1))}))}})),[]);return VF((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),F(t,(()=>a)),null}))),o$=[void 0,EO];function i$(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)e$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&QF)for(var n of QF(e))t.indexOf(n)<0&&t$.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=M(null),{plugins:d,modifiers:p,sensors:f}=u,h=wN(d,FF.plugins),m=wN(f,FF.sensors),g=wN(p,FF.modifiers),v=XF(o),b=XF(i),y=XF(s),x=XF(a),S=XF(l),w=XF(n),C=function(e){const t=M(null);t.current||(t.current=e());return j((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new $F(u)}));return D((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=v.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=b.current)?void 0:t.call(b,e,C)})),r.addEventListener("dragover",(e=>{const r=y.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragmove",(e=>{const r=x.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragend",(e=>{const r=S.current;r&&t((()=>r(e,C)))})),r.addEventListener("collision",(e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)}))];return()=>n.forEach((e=>e()))}),[C]),JF(h,(()=>C&&(C.plugins=h)),...o$),JF(m,(()=>C&&(C.sensors=m)),...o$),JF(g,(()=>C&&(C.modifiers=g)),...o$),nr.jsxs(r$.Provider,{value:C,children:[nr.jsx(n$,{ref:c,children:r}),r]})}function a$(){return L(r$)}function s$({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=M(null),l=a$(),u=null!=(a=GF((()=>null==l?void 0:l.dragOperation.source),[l]).value)?a:null,c="function"==typeof i?i(u):i;D((()=>{if(!s.current||!l||c)return;const e=l.plugins.find((e=>e instanceof jz));return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0}),[l,c]),D((()=>{if(!l)return;const e=l.plugins.find((e=>e instanceof jz));return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0}),[l,r]);const d=A((()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?l$:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})}),[l]);return nr.jsx(r$.Provider,{value:d,children:w(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return nr.jsx(u$,{source:u,children:e});return e}())})}function l$(){return()=>{}}function u$({children:e,source:t}){return e(YF(t))}var c$,d$,p$,f$,h$,m$=Object.create,g$=Object.defineProperty,v$=Object.getOwnPropertyDescriptor,b$=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),y$=e=>{throw TypeError(e)},x$=["class","method","getter","setter","accessor","field","value","get","set"],S$=e=>void 0!==e&&"function"!=typeof e?y$("Function expected"):e,w$=(e,t,r,n,o)=>({kind:x$[e],name:t,metadata:n,addInitializer:e=>r._?y$("Already initialized"):o.push(S$(e||null))}),C$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=x$[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,v$(o,r)),h=n.length-1;h>=0;h--)(l=w$(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,S$(a)&&(f[d]=a);return f&&g$(o,r,f),o},E$=(e,t,r)=>t.has(e)||y$("Cannot "+r),R$=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},A$=class extends(p$=kO,d$=[AO],c$=[AO],p$){constructor(e){var t,r,n;super(R$.from(e),((e,t)=>R$.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(h$,5,this),t=this,n=0,(r=f$).has(t)?y$("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return R$.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=R$.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(E$(a=this,s=f$,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);hT((()=>{((e,t,r)=>{E$(e,t,"write to private field"),t.set(e,r)})(this,f$,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(R$.from(e)),this.velocity={x:0,y:0}}};h$=(e=>{var t;return[,,,m$(null!=(t=null==e?void 0:e[b$("metadata")])?t:null)]})(p$),f$=new WeakMap,C$(h$,2,"delta",d$,A$),C$(h$,2,"direction",c$,A$),((e,t)=>{((e,t,r)=>{t in e?g$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,b$("metadata"),e[3])})(h$,A$);var P$=(e=>(e.Horizontal="x",e.Vertical="y",e))(P$||{});function M$(e){const t=a$();D((()=>{if(!t)return;const r=Object.entries(e).reduce(((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e}),[]);return()=>r.forEach((e=>null==e?void 0:e()))}),[t,e])}Object.values(P$);const I$=()=>{const[e,t]=P(!1);return M$({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?nr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},k$=(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}),D$=YE((e=>{const t=e(bR),r=e(BR);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,u=o?i:i-t,c=await r.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()}),r.applyPatches(p,!0)}})),T$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),O$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),L$=e=>e.atTop?2:1,q$=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],N$=e=>e?.setAttribute("tabIndex","0"),_$=e=>e?.setAttribute("tabIndex","-1"),j$=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(_$)},z$=e=>{e?.focus(),N$(e)},F$=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${iE}`);z$(t)}),0)},$$=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{j$(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 oE.Down:u<s&&u++;break;case oE.Up:u>a&&u--;break;case oE.Right:if(i)break;[u,c]="rtl"===n?T$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):O$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case oE.Left:if(i)break;[u,c]="rtl"===n?O$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):T$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case oE.Home:(QD(e)||i)&&(u=a),i||(c=0);break;case oE.End:(QD(e)||i)&&(u=s),i||(c=l);break;case oE.PageDown:u=Math.min(s,u+10);break;case oE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=q$(t,a);return z$(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}},H$=(e,t,r,n)=>{j$(t),r(e),n.enabled&&!n.active?n.focus?.():z$(q$(t,e))},B$=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${tE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${FP.First}`),r=e.querySelector(`.${FP.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},W$=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})}))),V$=fc(Hh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...oM,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),U$=fc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:tM,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),G$=parseInt(tM,10)/2,Y$=fc("div")({position:"absolute",bottom:-G$,left:`calc(50% - ${G$}px)`}),K$={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},X$=fc(np)({height:"100%"}),J$=fc("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?{...K$,whiteSpace:"nowrap",display:r?"block":void 0}:{...K$,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),Z$=fc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),Q$="cell-text",eH=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const a=aR(mk);return o?nr.jsx(J$,{"data-testid":Q$,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):nr.jsx(J$,{"data-testid":Q$,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},tH=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=aR(yR),l=aR(D$),u=aR(qR),c=aR(PR),d=aR(dR),p=aR(ZR),f=aR(uR),h=aR(xk)[t.pageColIdx],m=aR(HR),g=M(null),v=M(null),b=(({column:e,columnWidth:t})=>{const r=aR(mk),{measureText:n}=WC({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:rM});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,u=t-25,c=s?20:0,d=l?20:0;let p=n(e.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}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?nr.jsx(nD,{height:tM,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(aD,{height:tM,"data-testid":"head-cell-sort-descending-icon"}),a=r?nr.jsx(U$,{align:t,dir:o,children:i}):void 0,s=n?nr.jsx(vM,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:nr.jsx(W$,{height:tM,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,b,u);return nr.jsxs(gM,{shouldShowMenuIcon:b.shouldShowMenuIcon,shouldShowLockIcon:b.shouldShowLockIcon,alignment:uM(t,i,u),children:[S,nr.jsxs(mM,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,nr.jsx(eH,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?nr.jsxs(nr.Fragment,{children:[nr.jsx(xD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[vD.Sorting]:!0,[vD.Searching]:!0,[vD.Selections]:!0,[vD.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:v},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:F$},shouldShowMenuIcon:b.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),nr.jsx(hM,{ref:v,direction:u,isPagination:i}),nr.jsx(hM,{ref:g,direction:u})]}):null]})},rH=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})}))),nH=(e,t)=>e.isCyclic&&t,oH=({column:e})=>{const t=aR(mk),r=aR(qR),n=aR(HR),o=S.useRef(null),[i,a]=S.useState(!1),s=kk({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return nr.jsxs(nr.Fragment,{children:[nr.jsx(yM,{hoverBackground:t.headerMenuHoverBackground,activeBackground:t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:nr.jsx(rH,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),nr.jsx(Jk,{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:sD,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},iH=e=>e.isLocked,aH=({column:e})=>{const t=aR(uR),r=aR(yR),n=aR(mk);return nr.jsx(yM,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=Qk(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:nr.jsx(W$,{height:16,"data-testid":"head-cell-lock-icon"})})},sH=({column:e,open:t,setOpen:r,isPagination:n})=>{const o=aR(mk),i=aR(yR),a=aR(qR),s=aR(PR),l=aR(dR),u=aR(ZR),c=aR(uR),d=aR(HR),p=aR(D$),f=S.useRef(null),h=S.useRef(null);return nr.jsxs(yM,{tabIndex:-1,hoverBackground:o.headerMenuHoverBackground,activeBackground:o.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[nr.jsx(xD,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:u,anchorRef:f,menuAvailabilityFlags:{[vD.Sorting]:!0,[vD.Searching]:!0,[vD.Selections]:!0,[vD.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:s,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),p?.(e,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:h},selectionRelatedArgs:{app:c,qStateName:i},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:F$},shouldShowMenuIcon:!0,model:d,direction:a,isPagination:n,isAccessibleHeader:!1,iconSize:16}),nr.jsx(hM,{ref:h,direction:a,isPagination:n}),nr.jsx(hM,{ref:f,direction:a})]})},lH=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,uH=(e,t)=>{const r=M(t);r.current=t,_((()=>{if(!e.current)return()=>{};const t=new ResizeObserver((e=>{r.current(e)}));return t.observe(e.current),()=>{t.disconnect()}}),[e])},cH=fc(np)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),dH=({children:e})=>{const t=S.useRef(null),[r,n]=P((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=A((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=O((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 uH(t,i),nr.jsx(cH,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})},pH=({children:e})=>e,fH=(e,t)=>!e.isLocked&&e.isDim&&t,hH=({column:e,open:t,setOpen:r})=>{const n=aR(mk),o=aR(yR),i=aR(qR),a=aR(dR);aR(uR);const s=S.useRef(null),l=O((()=>{r(!1)}),[r]),u=Zk({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return nr.jsx(yM,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:nr.jsx(dD,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},mH=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})}))),gH=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})}))),vH=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?nr.jsx(gH,{height:tM,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(mH,{height:tM,"data-testid":"head-cell-sort-descending-icon"});return r?nr.jsx(Y$,{children:n}):void 0},bH=0,yH=1,xH=2,SH=3,wH=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i}=e,a=aR(mk),s=aR(TR),{measureText:l}=WC(a.header),[u,c]=S.useState(!1);return nr.jsxs(dH,{children:[nr.jsx(pH,{prio:xH,minWidth:fM,children:iH(t)?nr.jsx(aH,{column:t}):null},"Lock"),nr.jsx(pH,{prio:yH,minWidth:fM,children:nH(t,s)?nr.jsx(oH,{column:t}):null},"Cyclic"),nr.jsx(pH,{ignore:!0,children:nr.jsx(vH,{column:t})},"Sort"),nr.jsx(pH,{minWidth:l(t.label)+8,children:nr.jsx(bM,{justifyContent:t.headTextAlign,children:nr.jsx(eH,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),nr.jsx(pH,{prio:bH,minWidth:fM,children:u||fH(t,s)?nr.jsx(hH,{open:u,setOpen:c,column:t}):null},"Search"),nr.jsx(pH,{prio:SH,minWidth:fM,children:s?nr.jsx(sH,{column:t,open:r,setOpen:n,isPagination:o}):null},"Menu")]})},CH=fc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),EH=()=>{},RH=({column:e,isPagination:t})=>{const r=aR(mk),n=aR(qR),o=aR(dT),i=aR(QI),a=!1,s=aR(wR)?tH:wH;return nr.jsx(CH,{className:"sn-table-cell",applicableStyle:{...r.header,...k$(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:dM(n,a,o),borderLeftWidth:pM(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:r.header.background,children:nr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:EH})})},AH=({isPagination:e})=>{const t=aR(ek),[r,n]=P();M$({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?nr.jsx(s$,{children:nr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:nr.jsx(RH,{column:o,isPagination:e})})}):null},PH=[vF.configure({activationConstraints:[new fF.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],MH=FF.plugins.filter((e=>e!==Gj)),IH=({children:e})=>{const t=aR(BR),r=aR(ek);return nr.jsx(i$,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e)return;const o=t.findIndex((e=>e.id===r)),i=t.findIndex((e=>e.id===n)),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map((e=>e.colIdx)).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:PH,plugins:MH,children:e})};function kH(e,t){const r=M(!1);D((()=>{r.current?e():r.current=!0}),t)}const DH=YE($P),TH=kP((e=>YE((t=>{const[r,n]=t(DH);return 0===r&&n===e})))),OH=()=>{const e=aR(cR);D((()=>{e.notifyIsDoneRendering()}))};var LH={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 qH=YE((e=>{const t=e(ZR),r=e(YR);let n;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(LH).forEach((t=>{e.add(LH[t])}))}(t),({keys:e,politeness:o="polite"})=>{const i=e.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=r.querySelector(`.${FP.First}`),s=r.querySelector(`.${FP.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;n===FP.First?(l=s,n=FP.Second):(l=a,n=FP.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})),NH=(e,t)=>{const r=aR(qH),n=aR(YR),o=aR(nk),i=aR(rk),a=aR(tk),s=aR(QI),[l,u]=lR(DH),c=aR(ER),d=aR($R);kH((()=>{const t=((e,t,r=!1)=>{const n=[L$(t),e[1]];return r?n:$P})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(j$(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=q$(t,e);r.current?(z$(s),r.current=!1):N$(s),n&&(a({keys:[s?.textContent??""]}),ZD(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:r})}),[a.length,i,o,t])},_H=e=>{const t=aR(qR),r=aR(MI);D((()=>{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])},jH=e=>{OC(e),QD(e)&&fE(e.currentTarget)},zH=e=>{nT(e.evt)&&(OC(e.evt),$$(e))},FH=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!nT(t))return;OC(t);const i=((e,t)=>[e.pageRowIdx+L$(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?L$(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=$$({...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:jP.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):ZD(o,a,i)})({...e,nextCell:s})},$H=e=>{const{evt:t}=e;eT(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{OC(e);const a=Math.ceil(t/r)-1;e.key===oE.Right&&n<a?(o(),i(n+1)):e.key===oE.Left&&n>0&&(o(),i(n-1))})(e):t.key===oE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(OC(e),t.blur?.(!0))})(e):tT(t.key)&&OC(t)},HH=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(_P.Disabled))return void OC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case oE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{OC(e),t.isSelectable&&r&&n({type:jP.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case oE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{OC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case oE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(OC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case oE.C:jH(t);break;case oE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(OC(e),TC(e.currentTarget,t,e.shiftKey))})(n);break;default:FH(n)}},BH=e=>{const t=aR(xM),r=sR(SM),n=sR(wM),o=aR(NP),i=M();uH(e,(a=>{const s=()=>{if(e.current){const e=a.at(0)?.borderBoxSize.at(0)?.inlineSize??0,t=a.at(0)?.borderBoxSize.at(0)?.blockSize??0,o=a.at(0)?.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.at(0)?.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()})),D((()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}}),[o])},WH=fc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),VH=fc(Uh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),UH=fc(kh,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),GH=()=>nr.jsxs(nr.Fragment,{children:[nr.jsx(WH,{className:FP.First,"data-testid":FP.First,"aria-live":"polite","aria-atomic":"true"}),nr.jsx(WH,{className:FP.Second,"data-testid":FP.Second,"aria-live":"polite","aria-atomic":"true"})]}),YH=e=>{const t=M(new Map),r=M(null);D((()=>{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=O(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=O((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return A((()=>({addTask:n,removeTask:o})),[n,o])},KH=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),XH=()=>YH(KH),JH=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=aR(RR),n=aR($R),o=sR(uT);D((()=>{const i=()=>{o({type:jP.Reset})},a=()=>{o({type:jP.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}}),[r,n,o,e,t])},ZH=e=>{e.stopPropagation()},QH=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:ZH,color:AC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),eB=({href:e,text:t,interactions:r,color:n})=>nr.jsx(tf,{...QH({href:e,text:t,interactions:r,color:n}),children:t}),tB=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),rB=window.cancelIdleCallback??(e=>{clearTimeout(e)}),nB="qDimensionInfo/0",oB="qMeasureInfo/0",iB="x",aB="y",sB=e=>({key:"bars",type:"box",data:{extract:{field:nB,props:{start:0,end:{field:oB}}}},settings:{major:{scale:iB},minor:{scale:aB},box:{maxWidthPx:8,fill:{fn:e}}}}),lB=e=>({key:"p",type:"point",data:{extract:{field:nB,props:{y:{field:oB}}}},settings:{x:{scale:iB},y:{scale:aB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),uB=({qNum:e})=>void 0===e?0:Math.sign(e),cB=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=kC(e,t?.negative,r),a=kC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:nB,props:{start:0,end:{field:oB,value:uB}}}},settings:{major:{scale:iB},minor:{scale:aB},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}}}}},dB=(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=kC(e,t?.main,o),l=kC(e,t?.max,s),u=kC(e,t?.min,s),c=kC(e,t?.first,s),d=kC(e,t?.last,s);return e=>{const t=aB in e.datum?aB:"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[sB(a)];case"dots":return[lB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:nB,props:{v:{field:oB}}}},settings:{coordinates:{major:{scale:iB},minor:{scale:aB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(kC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,lB(a)]:[t]}case"posNeg":return[cB(e,n)];default:return[]}},pB=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"}),fB=(e,t,r,n)=>({y:{data:{field:oB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:nB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),hB=U();hB.use(V),hB.renderer.prio(["canvas"]);const mB={resolve:()=>{},promise:{}},gB=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=M(e.isDownloadedAsPDForImage?kt():mB);return{addChartPromiseToQueue:O((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:O((()=>{if(null===t.current||null!==e.current)return;u();r.current=tB((()=>{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 hB.chart({element:e,data:{type:"q",key:"qHyperCube",data:pB(s)},settings:{scales:fB(a,l,u,i),components:dB(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:O((()=>{null!==r.current&&rB(r.current),r.current=null,l()}),[r,l])}},vB=e=>{const t=M(null),r=M(!1);return O((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(rB(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=tB((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},bB=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=M(null),l=M(null),u=M(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=gB({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=O((e=>{e.isIntersecting?n():r()}),[n,r]);D((()=>{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})=>{D((()=>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=vB(t);D((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},yB=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=bB({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return nr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},xB=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}`},SB=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},wB=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=aR(qR),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=nr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:SB(s),objectPosition:xB(l),overflow:"hidden"}});return n?nr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?aM(o,e):void 0},children:c}):c},CB=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),EB=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),RB=q(((e,t)=>nr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[nr.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),nr.jsx("use",{fillRule:"evenodd"})]}))),AB=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})}))),PB=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})}))),MB=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})}))),IB=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M2 7.5h12v1H2z"})}))),kB=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})}))),DB=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),TB=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})}))),OB=q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})}))),LB={m:q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":TB,R:gH,S:mH,T:q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})}))),U:q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})}))),P:DB,Q:MB,"è":q(((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})}))),"¢":AB,"©":RB,"23F4":PB,2013:OB,"&":kB,add:CB,"minus-2":IB,dot:EB},qB=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&LB[t];return o&&nr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:nr.jsx(o,{style:{height:e}})})},NB=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=aR(mk),o=aR(qR),i=aR(JR),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=ZP(e,t,o,i),d=(e=>parseInt(e||tM,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?nr.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&&qB({size:d,iconKey:f,color:p}),nr.jsx(eH,{isNumeric:!0,children:a}),"right"===h&&qB({size:d,iconKey:f,color:p})]}):qB({size:d,iconKey:f,color:p})},_B=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,jB=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=aR(mk),u=aR(cR),c=aR(mR),d=aR(JR),p=aR(qR),f=aR(PR),h=aR(ER);if(t.representation.type===_A.Image&&!t.representation.url?.trim())return null;if(t.representation.type===_A.Image)return nr.jsx(wB,{representation:t.representation,textStyle:r,maxImageHeight:_B(l,o),wrapInContainer:!n});let m=t.representation.text;t.representation.type!==_A.Link||h||(m=nr.jsx(eB,{href:t.representation.url,text:t.representation.text,interactions:f,color:r.cellForegroundColor}));const g="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==_A.Indicator||Number.isNaN(g)?t.representation.type===_A.MiniChart&&t.representation.miniChart&&!t.isNull?nr.jsx(yB,{height:_B(l,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:d,isSnapshot:!!c.snapshotData,direction:p,downloadService:u}):nr.jsx(eH,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):nr.jsx(NB,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},zB=()=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:nr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),FB=fc("div")({"& path":{stroke:"none !important"}}),$B=({children:e,cellSelectionState:t})=>t===_P.Selected?nr.jsxs(Z$,{children:[e,nr.jsx(FB,{children:nr.jsx(zB,{})})]}):e,HB=e=>{const t=function(){const e=a$(),t=GF((()=>null==e?void 0:e.dragOperation.source),[e]),r=GF((()=>null==e?void 0:e.dragOperation.target),[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},BB=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:jP.SelectMultiEnd})};r({type:jP.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:jP.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:jP.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),WB=e=>{const t=aR(ok),r=aR(QI),n=aR(qH),o=aR(YR),i=aR(qR),a=sR(DH),s=sR(uT),l=aR($R),u=aR(kR),c=aR(RR),d=d=>{HH({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===oE.Shift&&t({type:jP.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;H$([s,a],t,r,n)})(e,o,a,l,r)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=BB(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},VB=e=>{D((()=>()=>{cT.remove(e)}),[e])},UB=(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},GB=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},YB=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return GB(t,e,n?"even":"odd")}return e},KB=(e,t)=>{const r=aR(mk),n=aR(cT(e));VB(e);let o=t.isDim?r.dimension.values:r.measure.values;o=YB(o,r,e),o=UB(o,r,e);const i=TM(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===_P.Selected?{...e,...r}:t===_P.Disabled?{...e,background:`${QP}, ${e.background}`}:e}(A((()=>e.isNull?o:TM(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}},XB=fc(_h,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),JB=fc(om,{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}}}))),ZB=fc(Hh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...oM,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),QB=fc(Hh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...oM,...e,fontWeight:rM,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0}))),eW=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=aR(qR),a=aR(PR),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=WB(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=KB(e,t),m=HB(t.id);return nr.jsx(ZB,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${nE}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:nr.jsx($B,{cellSelectionState:h,children:nr.jsx(jB,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:cM(i,e.align)})})})},tW=YE(0),rW=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=aR(mk),i=aR(IR),a=aR(tW),s=HB(e.id);return nr.jsx(QB,{totalsStyle:{...o.totalRow,...k$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${nE}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:nr.jsx(eH,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},nW=()=>{const e=aR(QI),t=aR(ek),r=aR(tk),n=aR(YR),o=aR(MR),i=aR(qR),a=sR(DH),s=aR(ER),l=aR($R);return nr.jsx(om,{className:"sn-table-row sn-table-totals-row",children:t.map(((t,u)=>{const c=[e.atTop?1:r.length+1,u];return nr.jsx(rW,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case oE.C:jH(r);break;case oE.Space:r.preventDefault();break;default:zH(e)}else OC(r)})({evt:e,rootElement:n,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{H$(c,n,a,l)}},t.id)}))})};var oW=N(nW);const iW=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=aR(tk),n=aR(QI),o=aR(ek),i=aR(mk),a=aR(mR),s=!!MM(a)?.content?.hoverEffect;JH({updateShouldRefocus:e,tableWrapperRef:t});const l=(e=>{const t=O((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return YH(t)})(t),u=XH();return nr.jsxs(XB,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?nr.jsx(oW,{}):void 0,r.map(((e,t)=>nr.jsx(JB,{hoverColors:i.grid.hoverColors,hover:s,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:i.contentMinRowHeight,children:o.map(((t,r)=>{const{id:n}=t,o=e[r];return nr.jsx(eW,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:l,resizeObserverTaskScheduler:u},n)}))},`row-${t}`))),n.atBottom?nr.jsx(oW,{}):void 0]})};var aW=N(iW);const sW=(e,t)=>!!e?.skipHeader||!!t.hideHeader,lW=YE((e=>{const t=e(mR),r=e(HR);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}})),uW=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=aR(lW),s=aR(qR),l=aR(MR),u=aR(ZR),[c,d]=lR(xk);if(!l)return null;return nr.jsx(Mk,{columnWidth:c.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{_$(e);const t=e.closest(".sn-table-cell");z$(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},cW=e=>e.target?.getAttribute("class")?.includes(iE),dW=({isInteractionEnabled:e,column:t})=>{const[r,n]=P(!1),o=aR(D$),i=aR(xM);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||cW(t)||i||n(!0)},toggleSortOrder:r=>{e&&!cW(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var pW=Object.defineProperty,fW=Object.defineProperties,hW=Object.getOwnPropertyDescriptors,mW=Object.getOwnPropertySymbols,gW=Object.prototype.hasOwnProperty,vW=Object.prototype.propertyIsEnumerable,bW=(e,t,r)=>t in e?pW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yW=(e,t)=>{for(var r in t||(t={}))gW.call(t,r)&&bW(e,r,t[r]);if(mW)for(var r of mW(t))vW.call(t,r)&&bW(e,r,t[r]);return e},xW=(e,t)=>fW(e,hW(t)),SW=class extends bN{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return xW(yW({},e),{[t]:r})}};SW.configure=jL(SW);var wW=SW;wW.configure({axis:"x",value:0}),wW.configure({axis:"y",value:0});var CW=class extends bN{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return xW(yW({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};CW.configure=jL(CW);var EW=class extends bN{constructor(e,t){super(e,t),this.boundingRectangle=CT(null),this.destroy=OT((()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=TN(r)},i=()=>{n||(n=setTimeout((()=>{o(),n=void 0}),25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}}))}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=yW({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new QO(l,u,s,a),r,n);return c}};EW.configure=jL(EW);var RW=EW,AW=Object.create,PW=Object.defineProperty,MW=Object.defineProperties,IW=Object.getOwnPropertyDescriptor,kW=Object.getOwnPropertyDescriptors,DW=Object.getOwnPropertySymbols,TW=Object.prototype.hasOwnProperty,OW=Object.prototype.propertyIsEnumerable,LW=e=>{throw TypeError(e)},qW=(e,t,r)=>t in e?PW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,NW=(e,t)=>{for(var r in t||(t={}))TW.call(t,r)&&qW(e,r,t[r]);if(DW)for(var r of DW(t))OW.call(t,r)&&qW(e,r,t[r]);return e},_W=(e,t)=>MW(e,kW(t)),jW=["class","method","getter","setter","accessor","field","value","get","set"],zW=e=>void 0!==e&&"function"!=typeof e?LW("Function expected"):e,FW=(e,t,r,n,o)=>({kind:jW[e],name:t,metadata:n,addInitializer:e=>r._?LW("Already initialized"):o.push(zW(e||null))}),$W=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},HW=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=jW[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,IW({get[r](){return WW(this,i)},set[r](e){return UW(this,i,e)}},r)),v=n.length-1;v>=0;v--)(u=FW(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[v])({get:g.get,set:g.set},u),l._=1,void 0===s?zW(s)&&(g[f]=s):"object"!=typeof s||null===s?LW("Object expected"):(zW(a=s.get)&&(g.get=a),zW(a=s.set)&&(g.set=a),zW(a=s.init)&&h.unshift(a));return g&&PW(o,r,g),o},BW=(e,t,r)=>t.has(e)||LW("Cannot "+r),WW=(e,t,r)=>(BW(e,t,"read from private field"),t.get(e)),VW=(e,t,r)=>t.has(e)?LW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),UW=(e,t,r,n)=>(BW(e,t,"write to private field"),t.set(e,r),r);function GW(e){return e instanceof CV||e instanceof wV}var YW=Object.defineProperty,KW=Object.defineProperties,XW=Object.getOwnPropertyDescriptors,JW=Object.getOwnPropertySymbols,ZW=Object.prototype.hasOwnProperty,QW=Object.prototype.propertyIsEnumerable,eV=(e,t,r)=>t in e?YW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tV=(e,t)=>{for(var r in t||(t={}))ZW.call(t,r)&&eV(e,r,t[r]);if(JW)for(var r of JW(t))QW.call(t,r)&&eV(e,r,t[r]);return e},rV=(e,t)=>KW(e,XW(t));function nV(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function oV(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function iV(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex((e=>u(e,a.id))),o=e.findIndex((e=>u(e,s.id)));if(-1===n||-1===o){if(oV(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex((e=>u(e,a.id))),-1!==f&&(d=e)),-1===h&&(h=t.findIndex((e=>u(e,s.id))),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&oV(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return rV(tV({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return rV(tV({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&oV(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return rV(tV({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return rV(tV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return rV(tV({},e),{[d]:r(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,b=e[d][f];return rV(tV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),b,...e[p].slice(h+v)]})}(e,t,nV)}var aV="__default__";function sV(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function lV(e,t){return e.index-t.index}function uV(e){return Array.from(e).sort(lV)}var cV,dV,pV,fV,hV,mV,gV,vV,bV=[class extends FL{constructor(e){super(e);const t=OT((()=>{const{dragOperation:t}=e;if(aj(t.activatorEvent)&&GW(t.source)&&t.status.initialized){const t=e.registry.plugins.get(Jz);if(t)return t.disable(),()=>t.enable()}})),r=e.monitor.addEventListener("dragmove",((e,t)=>{queueMicrotask((()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!aj(e.nativeEvent))return;if(!GW(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];hT((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&GW(e)||!e.element)continue;let r=e.shape;const n=new rj(e.element,{getBoundingClientRect:e=>$N(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push((()=>e.shape=r))))}})),e.preventDefault(),o.disable();const f=o.computeCollisions(d,cj);hT((()=>p.forEach((e=>e()))));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;n.setDropTarget(m).then((()=>{const{source:e,target:t,shape:i}=r;if(!e||!GW(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||v!==s,c=u?l:null==t?void 0:t.element;if(!c)return;K_(c);const d=new rj(c);if(!d)return;const p=QO.delta(d,QO.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then((()=>o.enable())):o.enable()}))}))}));this.destroy=()=>{r(),t()}}},class extends FL{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof CV){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(uV(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!GW(o)||!GW(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask((()=>{e.defaultPrevented||r.renderer.rendering.then((()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=uV(l),g=s?m:uV(u),v=null!=(c=o.sortable.group)?c:aV,b=null!=(d=i.sortable.group)?d:aV,y={[v]:m,[b]:g},x=iV(y,e);if(y===x)return;const S=x[b].indexOf(o.sortable),w=x[b].indexOf(i.sortable);r.collisionObserver.disable(),sV(f,S,h,w),hT((()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[b].entries())t.group=i.sortable.group,t.index=e})),r.actions.setDropTarget(o.id).then((()=>r.collisionObserver.enable()))}))}))})),e.monitor.addEventListener("dragend",((e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;GW(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask((()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=uV(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(sV(r,i.index,a,o.index),hT((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}})))}))})))}))];this.destroy=()=>{for(const e of r)e()}}}],yV={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},xV=new class{constructor(){xO(this,IO,new WeakMap)}get(e,t){var r;return e?null==(r=yO(this,IO).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return yO(this,IO).has(e)||yO(this,IO).set(e,new Map),null==(n=yO(this,IO).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=yO(this,IO).get(e))?void 0:t.clear():void 0}};dV=[RO],cV=[RO];var SV=class{constructor(e,t){VW(this,fV,$W(pV,8,this)),$W(pV,11,this),VW(this,hV),VW(this,mV),VW(this,gV,$W(pV,12,this)),$W(pV,15,this),VW(this,vV),this.register=()=>(hT((()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)})),()=>this.unregister()),this.unregister=()=>{hT((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{hT((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=yV,plugins:u=bV}=r,c=((e,t)=>{var r={};for(var n in e)TW.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&DW)for(var n of DW(e))t.indexOf(n)<0&&OW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new CV(c,t,this),this.draggable=new wV(_W(NW({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&xV.clear(this.manager),(null==n?void 0:n.dragging)&&xV.set(this.manager,this.id,gT((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=WW(this,mV),o=WW(this,hV);e===n&&t===o||(UW(this,mV,e),UW(this,hV,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),UW(this,vV,c.element),this.manager=t,this.index=i,UW(this,mV,i),this.group=o,UW(this,hV,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=xV.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=xV.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){gT((()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then((()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=__(n),l=J_(n,s,!1),u=J_(n,s);if(i||a){const r=KN(qN(n))?_W(NW({},t),{duration:0}):t;X_({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}}))}))}get manager(){return this.draggable.manager}set manager(e){hT((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){hT((()=>{const t=WW(this,vV),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),UW(this,vV,e)}))}get element(){var e,t;const r=WW(this,vV);if(r)return null!=(t=null!=(e=QN.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){hT((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){hT((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){hT((()=>{this.droppable.id=e,this.draggable.id=e}))}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:uj}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){hT((()=>{this.droppable.type=e,this.draggable.type=e}))}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};pV=[,,,AW(null)],fV=new WeakMap,hV=new WeakMap,mV=new WeakMap,gV=new WeakMap,vV=new WeakMap,HW(pV,4,"index",dV,SV,fV),HW(pV,4,"group",cV,SV,gV),((e,t)=>{return qW(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(pV,SV);var wV=class extends HF{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},CV=class extends BF{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},EV=Object.defineProperty,RV=Object.defineProperties,AV=Object.getOwnPropertyDescriptors,PV=Object.getOwnPropertySymbols,MV=Object.prototype.hasOwnProperty,IV=Object.prototype.propertyIsEnumerable,kV=(e,t,r)=>t in e?EV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,DV=(e,t)=>{for(var r in t||(t={}))MV.call(t,r)&&kV(e,r,t[r]);if(PV)for(var r of PV(t))IV.call(t,r)&&kV(e,r,t[r]);return e};function TV(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=DV(DV({},yV),e.transition),v=function(e){var t;const r=null!=(t=a$())?t:void 0,[n]=P((()=>e(r)));return n.manager!==r&&(n.manager=r),VF(n.register,[r,n]),n}((t=>new SV(((e,t)=>RV(e,AV(t)))(DV({},e),{transition:g,register:!1,handle:WF(s),element:WF(a),target:WF(h),feedback:d}),t))),b=YF(v,OV);return JF(o,(()=>v.id=o)),VF((()=>{hT((()=>{v.group=u,v.index=l}))}),[v,u,l]),JF(m,(()=>v.type=m)),JF(t,(()=>v.accept=t),void 0,EO),JF(i,(()=>i&&(v.data=i))),JF(l,(()=>{var e;(null==(e=v.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&v.refreshShape()}),KF),ZF(s,(e=>v.handle=e)),ZF(a,(e=>v.element=e)),ZF(h,(e=>v.target=e)),JF(c,(()=>v.disabled=!0===c)),JF(f,(()=>v.sensors=f)),JF(r,(()=>v.collisionDetector=r)),JF(n,(()=>v.collisionPriority=n)),JF(d,(()=>v.feedback=null!=d?d:"default")),JF(g,(()=>v.transition=g),void 0,EO),JF(p,(()=>v.modifiers=p),void 0,EO),JF(e.alignment,(()=>v.alignment=e.alignment)),{sortable:b,get isDragging(){return b.isDragging},get isDropping(){return b.isDropping},get isDragSource(){return b.isDragSource},get isDropTarget(){return b.isDropTarget},handleRef:O((e=>{v.handle=null!=e?e:void 0}),[v]),ref:O((e=>{var t,r;(e||!(null==(t=v.element)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.element=null!=e?e:void 0)}),[v]),sourceRef:O((e=>{var t,r;(e||!(null==(t=v.source)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.source=null!=e?e:void 0)}),[v]),targetRef:O((e=>{var t,r;(e||!(null==(t=v.target)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.target=null!=e?e:void 0)}),[v])}}function OV(e,t,r){return!("isDragSource"!==e||r||!t)}const LV=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/ZO.distance(r.shape.center,s),type:uq.Collision,priority:lq.Normal}:null},qV=[RW.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],NV=(e,t)=>{const r=aR(qR),n=aR(fR),o=!aR(TR)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return TV({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:qV,data:e,feedback:"clone",collisionDetector:LV({invert:"rtl"===r})})},_V=({column:e,columnIndex:t,columnsLength:r})=>{const n=aR(mk),o=aR(YR),i=aR(qR),a=aR(PR),s=aR(ek),l=aR(QI),u=aR(xk)[t],c=sR(DH),d=aR(TH(t)),p=aR(TR),f=aR($R),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:v}=dW({isInteractionEnabled:p,column:e}),b=sR(xM),{ref:y,isDragging:x}=NV(e,t),S=HB(e.id),w=aR(wR),C=w?tH:wH,E=e.isActivelySorted?zP[e.sortDirection]:void 0,R=h?rE:void 0,A=h?"true":void 0,P=t===r-1,M=[0,e.pageColIdx],I={width:u,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return nr.jsxs(V$,{"data-dragging":x,ref:y,headerStyle:{...n.header,...k$(n,l,!0),opacity:S},background:w&&h?n.headerMenuActiveBackground:n.header.background,hoverBackground:n.headerMenuHoverBackground,interactions:a,style:I,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${nE}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case oE.C:jH(r);break;case oE.Enter:case oE.Space:n?.(r);break;default:zH(e)}else OC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&H$(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:v,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[nr.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0}),nr.jsx(uW,{column:e,isLastColumn:P,setIsAdjustingWidth:b})]},e.id)},jV=()=>{const e=aR(ek),t=aR(mk),r=aR(mR),n=aR(_R),o=sR(tW),i=aR(xk),a=M(null),s=sW(n,r);return D((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),nr.jsx(Zh,{style:{visibility:s?"collapse":void 0},children:nr.jsx(om,{ref:a,className:"sn-table-row sn-table-head-row",style:{position:"sticky",top:0},children:e.map(((t,r)=>nr.jsx(_V,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var zV=N(jV);const FV=()=>{const e=aR(qH),[t,r]=lR(WI),{page:n,rowsPerPage:o}=t,i=aR(NR),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=aR(ZI),p=aR(mk),f=aR(MI),h=aR(mR),m=aR(JR),g=aR(GR),v=aR(YR),b=aR(_R),y=aR(qR),x=aR(PR),S=aR(ZR),w=aR(dT),C=sR(uT),E=aR(ER),R=aR($R),A=M(!1),P=M(null),I=M(null),k=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=OR(h,b),L=T?f.scrollLeft??0:0,q=T?f.rowPartialHeight??0:0,N=O((()=>{A.current=v.getElementsByTagName("table")[0].contains(document.activeElement)}),[v]),_=O((n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})}),[t,r,l,e]),j=O((n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})}),[e,t,r]);return _H(P),((e,t)=>{const r=aR($R);D((()=>{const n=e.current;if(!n)return;const o=e=>{B$(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(I,A),(()=>{const e=aR(YR),t=aR($R),r=aR(DH);KC((()=>{const n=q$(e,r);t.active?z$(n):(n?.blur(),j$(e))}),[t.active,e])})(),NH(A,n),D((()=>{const e=P.current;e&&(e.scrollLeft=L,e.scrollTop=q)}),[t,s,L,q]),kH((()=>{C({type:jP.UpdatePageRows,payload:{pageRows:c}})}),[c]),OH(),BH(P),nr.jsxs(IH,{children:[nr.jsxs(X$,{ref:I,dir:y,onKeyDown:e=>{$H({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:_,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[nr.jsx(GH,{}),nr.jsxs(VH,{ref:P,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[nr.jsxs(UH,{stickyHeader:!0,"aria-label":k,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[nr.jsx(zV,{}),nr.jsx(aW,{updateShouldRefocus:N,tableWrapperRef:I})]}),nr.jsx(I$,{})]}),nr.jsx(XD,{footerContainer:i,pageInfo:t,paginationNeeded:u,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:_,handleChangeRowsPerPage:j,isSelectionMode:E,direction:y})]}),nr.jsx(AH,{isPagination:!0})]})};var $V=N(FV);const HV=YE(0),BV=YE((e=>{const t=e(gR);return Math.min(YI,t)})),WV=YE((e=>{const t=e(gR);return t===YI?0:Math.floor(t/YI)})),VV=YE((e=>{const t=e(HV),r=e(WV);return Math.min(t,r)})),UV=YE((e=>({page:e(VV),rowsPerPage:e(BV),rowsPerPageOptions:[]})),((e,t,r)=>{const n=e(WV);t(HV,Math.max(0,Math.min(r,n)))}));function GV(){return GV=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},GV.apply(null,arguments)}function YV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KV(e,t){return KV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KV(e,t)}function XV(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,KV(e,t)}var JV=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ZV(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||JV(n)&&JV(o)))return!1;var n,o;return!0}function QV(e,t){var r;void 0===t&&(t=ZV);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 eU(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 tU="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function rU(e){cancelAnimationFrame(e.id)}function nU(e,t){var r=tU();var n={id:requestAnimationFrame((function o(){tU()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var oU=-1;function iU(e){if(void 0===e&&(e=!1),-1===oU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),oU=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return oU}var aU=null;function sU(e){if(void 0===e&&(e=!1),null===aU||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?aU="positive-descending":(t.scrollLeft=1,aU=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),aU}return aU}var lU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function uU(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,YV(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:YV(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=QV((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=QV((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=QV((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(sU()){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&&rU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=nU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}XV(t,e),t.getDerivedStateFromProps=function(e,t){return cU(e,t),g(e),null};var v=t.prototype;return v.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)},v.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,v=iU();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 b=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?v:0,x=b>d?v: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})},v.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()},v.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(sU()){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()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&rU(this._resetIsScrollingTimeoutId)},v.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?lU:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],P=R[1],M=[];if(n>0&&g)for(var I=A;I<=P;I++)for(var k=C;k<=E;k++)M.push(w(t,{columnIndex:k,data:d,isScrolling:b?x:void 0,key:f({columnIndex:k,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:GV({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},w(u||c||"div",{children:M,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},v._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,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._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]},v._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}($),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var cU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},dU=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},pU=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},fU=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]},hU=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?mU(e,t,r,i,0,n):gU(e,t,r,Math.max(0,i),n)},mU=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=fU(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},gU=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&fU(e,t,n,r).offset<o;)n+=a,a*=2;return mU(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},vU=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=fU(e,t,r,i),u="column"===e?pU(t,i):dU(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}},bU=uU({getColumnOffset:function(e,t,r){return fU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return hU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=fU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=fU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:dU,getEstimatedTotalWidth:pU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return vU("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return vU("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return fU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return hU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=fU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=fU("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}}),yU=function(e,t){return e};function xU(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,YV(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:YV(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=QV((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=QV((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=QV((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(sU()){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&&rU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=nU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}XV(t,e),t.getDerivedStateFromProps=function(e,t){return SU(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?iU():0:l.scrollHeight>l.clientHeight?iU():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(sU()){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&&rU(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?yU:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],A=[];if(u>0)for(var P=E;P<=R;P++)A.push(w(t,{data:c,key:p(P,c),index:P,isScrolling:v?y:void 0,style:this._getItemStyle(P)}));var M=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:GV({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":M,pointerEvents:y?"none":void 0,width:x?M:"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}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var SU=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},wU=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]},CU=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=wU(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},EU=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&wU(e,r,t).offset<n;)r+=i,i*=2;return CU(e,t,Math.min(r,o-1),Math.floor(r/2),n)},RU=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},AU=xU({getItemOffset:function(e,t,r){return wU(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:RU,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=wU(e,t,o),p=RU(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?CU(e,t,o,0,r):EU(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=wU(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=wU(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 PU(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 MU=["style"],IU=["style"];function kU(e,t){var r=e.style,n=eU(e,MU),o=t.style,i=eU(t,IU);return!PU(r,o)&&!PU(n,i)}const DU=YE(-1),TU=kP((e=>YE((t=>t(DU)===e)))),OU=({style:e})=>nr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var LU=S.memo(OU,kU);const qU=()=>{},NU=e=>{e.preventDefault()};const _U=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=aR(TU(t)),d=sR(DU),p=aR(mk),f=aR(qR),h=aR(IR),m=aR(dT),g=o[t]?.[e],{handleMouseDown:v,handleMouseOver:b,handleMouseUp:y,cellSelectionState:x}=function(e){const t="object"==typeof e,r=aR(kR),n=sR(uT),o=aR(cT(e));if(VB(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=BB(NU,e,n,qU);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=M(null),i=r&&!r.isNumeric,a=O((r=>{const o=lH(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return uH(o,a),o})(t,e,g,s),w=i[e]?.isDim?p.dimension.values:p.measure.values,C=HB(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=YB(o,i,e);a=UB(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?TM(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===_P.Selected?{...s,...i.selectedColors}:n===_P.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${QP}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,p),o={rowindex:t,columnindex:e};return nr.jsx("div",{className:`sn-table-cell ${x} ${nE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:p.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:dM(f,g.isLastColumn,m),borderLeftWidth:pM(f,g.isLastColumn,m),justifyContent:sM(g,f),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:v,onMouseUp:y,onMouseOver:b,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:h?g.representation.text:void 0,...o,children:nr.jsx($B,{cellSelectionState:x,children:nr.jsx(jB,{forwardRef:p.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return nr.jsx(LU,{style:{...r,...w,borderColor:p.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var jU=N(_U,kU);const zU=PI(YE((async e=>{const t=e(mR),r=e(HR),n=e(UV).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(YI,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]}))),FU=e=>{const t=M(e);return t.current=e,t},$U=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,HU=(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},BU=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},WU=(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:v,qAttrExprInfoIndex:b,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=zI(h,e,a),C=!h&&e.qIsNull,E=C?WP(w):BP(e);f[r]={id:kA(),...e,align:_I(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:v,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&FI(e,h),representation:CI({cell:e,representationProperties:y,attrExprInfoIndex:b,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[_A.Image]:!0,[_A.Indicator]:!0,[_A.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}))}))},VU=({rowCount:e,visibleRowCount:t,visibleColumnCount:r,gridState:n,setEstimatedCellHeight:o})=>{const i=aR(mR),a=aR(JR),s=aR(HR),l=aR(pR),u=aR(qR),c=aR(UV),d=aR(zU),p=aR(ek),f=M([]),h=O(((t,r)=>{const n=Array.isArray(r)?r.slice(0,e):(e=>Array(e).fill(void 0))(e);return WU(t,c,n,p,i,l,o,u),f.current=n,n}),[e,c,p,i,l,o,u]),[m,g]=P((()=>h(d??[])));KC((()=>{g(h(d??[]))}),[d,u]);const v=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=FU(e),a=FU(t),s=A((()=>({enqueue:e=>{const t=$U(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($U(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=>s&&"getHyperCubeData"in s?s.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>h(e,t)))})),b=O(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(BU(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};v.enqueue(e)}}),[f,v]),y=O(((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-c.page*c.rowsPerPage);if(HU(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};v.enqueue(t)}}}),[f,v,c]);return D((()=>{const{qcx:e,qcy:o}=i.qHyperCube.qSize,a=n.current.overscanRowStartIndex,s=n.current.overscanColumnStartIndex,l=a+c.page*c.rowsPerPage,u=e-s,d=c.rowsPerPage-a,p=Math.min(100,u,e,r+5),f=Math.min(100,d,o,t+25);return y(s,l,p,f),()=>{v.clear()}}),[i,t,r,c,v,y,n,a]),{rowsInPage:m,loadRows:y,loadColumns:b}},UU=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},GU=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,YU=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=aR(mk),i=aR(xk),{estimateLineCount:a}=WC(o.dimension.values),s=fk(o.dimension.values.fontSize),l=e||t||1===r;return O(((e,t,o)=>{if(l||e.representation.type===_A.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])},KU=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=aR(MI);_((()=>{const i=e?n:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return Math.ceil(r)})(r.rowHeights);o.estimatedRowHeight=Math.max(i,t)}),[e,t,r,n,o])},XU=({rowCount:e,isSnapshot:t,gridRef:r})=>{const n=aR(mk),[o,i]=P({rowHeights:new Map,cellHeightsInGrid:new Map}),a=n.contentLineHeight,s=n.contentMinRowHeight,l=!!n.contentStaticLineCount,u=Math.max(8e6/e,s)-9,c=u+9,d=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(u/a))),p=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:d,lineHeight:a,isStaticNbrOfLines:l});(({gridRef:e,setState:t})=>{const r=aR(mR),n=aR(UV),o=aR(xk),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;KC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),KC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:r,setState:i});const f=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>O(((o,i,a)=>{z((()=>{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(!GU(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,UU(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[e,r,t,n]))({maxCellHeight:c,minRowHeight:s,setState:i,gridRef:r}),h=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),m=YU({isSnapshot:t,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),g=O((e=>l?p??s:o.rowHeights.get(e)??s),[l,s,o.rowHeights,p]);return KU({isStaticNbrOfLines:l,minRowHeight:s,state:o,staticRowHeight:p}),{setMeasuredCellHeight:h,setEstimatedCellHeight:m,getRowHeight:g,lineClamp:d}},JU=(e,t)=>{_((()=>()=>{t(0)}),[e,t]);const r=O((e=>{const r=lH(e);void 0!==r&&t(r)}),[t]);uH(e,r)};let ZU=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const QU=({loadRows:e,loadColumns:t,rowCount:r,gridState:n})=>{const o=aR(MI),i=aR(mR),a=aR(UV);return O((({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=ZU.None,i=ZU.None;return o=n>t?ZU.Down:n<t?ZU.Up:ZU.None,i=r>e?ZU.Right:r<e?ZU.Left:ZU.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,u);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=u,n.current.overscanRowStopIndex=c,u>r)return;const v=s,b=u+a.page*a.rowsPerPage,y=l-s+1,x=c-u+1;if(o.visibleLeft=d,o.visibleWidth=p-d+1,o.visibleTop=f+a.page*a.rowsPerPage,o.visibleHeight=h-f+1,o.page=a.page,o.rowsPerPage=a.rowsPerPage,m===ZU.Down){const t=x+25;e(v,b,y,u+t>r?r-u:t)}else if(m===ZU.Up){const t=x+25,r=a.page*a.rowsPerPage,n=Math.max(r,b-25);e(v,n,y,t)}if(g===ZU.Right){const e=i.qHyperCube.qSize.qcx-v,r=y+5,n=Math.min(e,r);t(v,b,n,x)}else if(g===ZU.Left){const e=Math.max(0,v-5),r=Math.min(i.qHyperCube.qSize.qcx,y+5);t(e,b,r,x)}}),[n,r,a.page,a.rowsPerPage,o,e,i.qHyperCube.qSize.qcx,t])},eG=()=>{},tG={current:null};const rG=(e,t)=>{const r=aR(UV),n=aR(mR),o=aR(xk),i=Math.min(r.rowsPerPage,n.qHyperCube.qSize.qcy-r.page*r.rowsPerPage),a=Math.min(i,Math.ceil(e.height/t)),s=A((()=>o.reduce(((t,r)=>t.width<e.width?{width:t.width+r,count:t.count+1}:t),{count:0,width:0})),[e,o]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},nG=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},oG={overflow:"hidden",willChange:"auto"};var iG=N(q(((e,t)=>{const{columns:r,setInnerBodyHeight:n,bodyHeight:o,stickyContainerRect:i}=e,a=aR(mk),s=aR(MI),l=aR(mR),u=aR(qR),c=aR(xk),d=M(null),p=M(null),f=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),h=M(0),m=!!MM(l)?.content?.hoverEffect,{rowCount:g,visibleRowCount:v,visibleColumnCount:b}=rG(i,a.contentMinRowHeight),{setMeasuredCellHeight:y,setEstimatedCellHeight:x,getRowHeight:S,lineClamp:w}=XU({rowCount:g,isSnapshot:!!l.snapshotData,gridRef:d}),{rowsInPage:C,loadRows:E,loadColumns:R}=VU({rowCount:g,visibleRowCount:v,visibleColumnCount:b,gridState:f,setEstimatedCellHeight:x}),P=QU({loadRows:E,loadColumns:R,rowCount:g,gridState:f}),I=XH(),k=A((()=>({rowsInPage:C,columns:r,isHoverEnabled:m,lineClamp:w,setMeasuredCellHeight:y,resizeObserverTaskScheduler:I})),[C,r,m,w,y,I]);return _((()=>{1===h.current&&d.current?.scrollToItem({rowIndex:g-1,align:"start"})})),function(e){const t=sR(uT);D((()=>{t({type:jP.UpdatePageRows,payload:{pageRows:e}})}),[t,e]),JH({updateShouldRefocus:eG,tableWrapperRef:tG})}(C),F(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(p.current?.clientHeight??o)-o,n=Math.round(r*e);h.current=e,1===h.current?(d.current?.scrollToItem({rowIndex:g-1,align:"start"}),d.current?.scrollTo({scrollLeft:t})):d.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[p,o,g]),JU(p,n),nr.jsx(bU,{"data-key":"body",ref:d,innerRef:p,style:oG,columnCount:r.length,columnWidth:e=>c[e],height:o,rowCount:g,rowHeight:S,estimatedRowHeight:s.estimatedRowHeight,width:i.width,itemData:k,onItemsRendered:P,itemKey:nG,className:"sn-table-body",direction:u,children:jU})})));const aG=({width:e,height:t,children:r})=>nr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),sG=(e,t)=>{const r=M(null),n=aR(xk);_((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=O((r=>{const n=lH(r);n&&t(n+9,e)}),[e,t]);return uH(r,o),r},lG=fc("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}}))),uG=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,a=aR(mk),s=aR(qR),l=aR(PR),u=aR(dT),c=sR(xM),d=aR(QI),p=aR(TR),f=n[e],{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:v}=dW({isInteractionEnabled:p,column:f}),b=aR(wR),y=sG(e,i),x=n.length-1===e,S=b?tH:wH,{ref:w,isDragging:C}=NV(f,e),E=HB(f.id);return nr.jsxs(lG,{"data-dragging":C,ref:w,className:`sn-table-cell ${nE}`,title:l.passive?f.label:void 0,onClick:b?g:v,applicableStyle:{...a.header,...k$(a,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:dM(s,x,u),borderLeftWidth:pM(s,x,u),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",opacity:E},interactions:l,hoverBackground:a.headerMenuHoverBackground,background:b&&h?a.headerMenuActiveBackground:a.header.background,children:[nr.jsx(S,{forwardRef:y,column:f,isInteractionEnabled:p,open:h,setOpen:m}),nr.jsx(uW,{column:f,isLastColumn:x,onColumnResize:o,setIsAdjustingWidth:c})]})},cG=e=>{const[t,r]=P(new Map);KC((()=>{r(new Map)}),[e.length]);const n=O(((e,t)=>{r((r=>GU(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:A((()=>UU(t)),[t]),setMeasuredCellHeight:n}},dG=(e,t)=>{F(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},pG=e=>{const t=aR(JR),r=aR(mR),n=aR(UV),o=aR(xk);KC((()=>{e.current?.resetAfterIndex(0,!1)}),[r,n,e,o,t])},fG={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},hG=q(((e,t)=>{const{stickyContainerRect:r,columns:n,columResizeHandler:o,setHeaderRowHeight:i}=e,a=S.useRef(null),s=M(null),l=aR(mk),u=aR(mR),c=aR(_R),d=aR(qR),p=aR(xk),{rowHeight:f,setMeasuredCellHeight:h}=cG(n),m=sW(c,u);return dG(t,a),pG(a),JU(s,i),nr.jsx(AU,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...fG,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l.headerMinRowHeight),width:r.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:o,setMeasuredCellHeight:h},direction:d,children:uG})}));var mG=N(hG);const gG=q(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,a=aR(qR),s=aR(DR);return nr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:s?"auto":"hidden",width:n,height:o},onScroll:i,dir:a,tabIndex:-1,children:r})})),vG=({children:e,stickyContainerRect:t})=>{const r=aR(qR);return nr.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})},bG=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,a=aR(mk),s=aR(mR),l=aR(qR),u=aR(IR),c=aR(dT),d=sG(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=s.qHyperCube.qSize.qcx-1===e,g=HB(n[e].id);return nr.jsx("div",{className:`sn-table-cell ${nE}`,title:u?p:void 0,style:{...t,...a.totalRow,...k$(a,o,!1),background:a.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:dM(l,m,c),borderLeftWidth:pM(l,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:nr.jsx(eH,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},yG=q(((e,t)=>{const{stickyContainerRect:r,totals:n,columns:o,setTotalsRowHeight:i}=e,a=M(null),s=M(null),l=aR(mk),u=aR(qR),c=aR(mR),d=aR(xk),{rowHeight:p,setMeasuredCellHeight:f}=cG(o);return dG(t,a),pG(a),JU(s,i),nr.jsx(AU,{ref:a,outerRef:s,layout:"horizontal",style:fG,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l.totalRowMinHeight),width:r.width,itemData:{columns:o,totals:n,setMeasuredCellHeight:f},direction:u,children:bG})}));var xG=N(yG);const SG=(e,t,r)=>{const n=aR(qR),o=aR(MI);return O((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,n),c=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=c,o.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[o,r,e,t,n])},wG=()=>{const e=aR(QI),t=aR(ek),r=aR(ok),n=aR(UV),o=aR(JR),i=aR(GR),a=M(null),s=M(null),l=M(null),u=M(null),c=A((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(i,r)),[i,r]),d=aR(wM),p=aR(SM),f=A((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(c,p,d)),[c,p,d]),{rowCount:h}=rG(f,0),{headerAndTotalsHeight:m,innerBodyHeight:g,setHeaderRowHeight:v,setTotalsRowHeight:b,setInnerBodyHeight:y}=(()=>{const[e,t]=P(0),[r,n]=P(0),[o,i]=P(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:x,height:S}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n})=>{const o=aR(mk),i=aR(xk),a=e+t;let s=r*o.contentMinRowHeight+t;return a<2*n.height&&(s=a),{width:i.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:g,headerAndTotalsHeight:m,rowCount:h,stickyContainerRect:f}),w=SG(s,l,u),C=((e,t,r)=>Math.min(e.height-t,r))(f,m,g),E=O((()=>{a.current&&(a.current.scrollTop=0)}),[a]);OH(),_((()=>{a.current&&(a.current.scrollLeft=0,a.current.scrollTop=0)}),[t.length]),_((()=>{a.current&&(a.current.scrollTop=0)}),[n,h,o]),BH(a);const R=nr.jsx(xG,{stickyContainerRect:f,columns:t,ref:l,totals:e,setTotalsRowHeight:b},"totals");return nr.jsxs(IH,{children:[nr.jsx(gG,{ref:a,width:c.width,height:c.height,onScroll:w,children:nr.jsxs(aG,{width:x,height:S,children:[nr.jsxs(vG,{stickyContainerRect:f,children:[nr.jsx(mG,{stickyContainerRect:f,columns:t,ref:s,columResizeHandler:E,setHeaderRowHeight:v}),e.atTop?R:null,nr.jsx(iG,{ref:u,stickyContainerRect:f,columns:t,setInnerBodyHeight:y,bodyHeight:C}),e.atBottom?R:null]}),nr.jsx(I$,{})]})}),nr.jsx(AH,{isPagination:!1})]})};var CG=N(wG);var EG=N((()=>{const e=aR(mR),t=aR(GR),r=aR(PR),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=aR(ZI),s=aR(JR),l=aR(ZR),u=aR($R),[c,d]=lR(UV);return nr.jsxs(X$,{"data-testid":"sn-table",children:[nr.jsx(CG,{}),nr.jsx(XD,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:u,translator:l,theme:s,interactions:r,rect:t,layout:e})]})}));const RG=e=>{const t=e.get(HR),r=e.get(zR),n=e.get(hR),i=e.get(qR);o((()=>{n&&t&&(r?function(e){const t=e.get(qR),r=e.get(XR),n=Ek(t);r.render(nr.jsx(hi,{stylisPlugins:"rtl"===t?[IP]:void 0,children:nr.jsx(mc,{theme:n,children:nr.jsx(eR,{store:e,children:nr.jsx(Ck,{children:nr.jsx($V,{})})})})}))}(e):function(e){const t=e.get(qR),r=e.get(XR),n=Ek(t);r.render(nr.jsx(S.StrictMode,{children:nr.jsx(mc,{theme:n,children:nr.jsx(eR,{store:e,children:nr.jsx(Ck,{children:nr.jsx(EG,{})})})})}))}(e))}),[n,r,e,t,i])};function AG(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 PG=(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]}},MG=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const IG=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||$I.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},kG=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=OI(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=AG(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:IG(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=PG(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,v=(MG(h,m,g)?d:d+1)+c;let b=p+c;const y=PG(p,o),x=y?.getBoundingClientRect();return y&&x&&(MG(x,m,g)||(b=p-1+c)),{visibleRowStartIndex:v,visibleRowEndIndex:b}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:IG(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},DG={version:JSON.stringify("6.11.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:[]};const TG=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),OG=e=>e.getStyle("object","straightTableV2","backgroundColor");function LG(r){return{qae:{properties:{initial:DG},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>vA({...e}),exportProperties:dA,exploration:bA},ext:RP(r),component(){const n=c(),i=e((()=>JE()),[!1!==n.usePagination]);i.set(pR,r);const s=d();i.set(YR,s),i.set(mR,n),i.set(uR,p()),i.set(HR,f()),i.set(PR,h()),i.set(ZR,m()),i.set(RR,g()),i.set(LR,t()),i.set($R,v()),i.set(GR,b()),i.set(dR,y());const x=zC(n,s,TG,OG);i.set(JR,x),i.set(hR,YC(x,n,r)),i.set(cR,Ot()),(e=>{const t=e.get(XR);o((()=>()=>{t.unmount()}),[t])})(i),a?.(((e,t)=>{const r=t.target,n=r?.closest(`.${nE}`);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()=>{fE(n)}})})),(({store:e})=>{const t=e.get(mR),r=e.get(HR),n=e.get(YR),o=e.get(UR),i=e.get(_R),a=e.get(zR);l((async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get(MI),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:v}=kG(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:v,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l})),u((()=>({getViewState:()=>kG(t,e.get(MI),n,i,a)})),[t,e,n,a])})({store:i}),RG(i)}}}export{LG as default};
|