@nebula.js/sn-table 6.5.3 → 6.5.5
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 +14 -14
- package/dist/sn-table.systemjs.js +10 -10
- package/package.json +12 -12
- package/sn-table-ext/dist/sn-table.js +14 -14
- package/sn-table-ext/sn-table.qext +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.5.
|
|
2
|
+
* @nebula.js/sn-table v6.5.5
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],(function(e,t){"use strict";var r,n,o,i,a,s,l,u,c,d,p,f,h,m,g,b,v,y,x,S,w,C,E,R,P,A,I,M,k,D,T,O,L,q,N,j,_,z,F,H,$,W,B,V,U,G;return{setters:[function(e){r=e.useMemo,n=e.useOptions,o=e.usePromise,i=e.useState,a=e.useEffect,s=e.useTheme,l=e.useInteractionState,u=e.onContextMenu,c=e.onTakeSnapshot,d=e.useImperativeHandle,p=e.useElement,f=e.useStaleLayout,h=e.useApp,m=e.useModel,g=e.useTranslator,b=e.useSelections,v=e.useKeyboard,y=e.useRect,x=e.useEmbed},function(e){S=e.default,w=e.createElement,C=e,E=e.isValidElement,R=e.cloneElement,P=e.Children,A=e.useMemo,I=e.useState,M=e.useRef,k=e.createContext,D=e.useReducer,T=e.useEffect,O=e.useDebugValue,L=e.useContext,q=e.useCallback,N=e.useLayoutEffect,j=e.forwardRef,_=e.memo,z=e.useInsertionEffect,F=e.startTransition,H=e.useImperativeHandle,$=e.PureComponent},function(e){W=e.default,B=e,V=e.flushSync},function(e){U=e.default},function(e){G=e.default}],execute:function(){function Y(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function K(e){if("object"==typeof e&&Y(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}e("default",(function(e){return{qae:DV(),ext:EP(e),component(){const t=r((()=>ZE()),[]),o=p(),i=PV(o),a=f();t.set(uR,h());const s=m(),l=QC(!!a.snapshotData);t.set(cR,g());const c=b(),d=v(),S=n(),{freeResize:w}=S,C=y(),E=r((()=>a.snapshotData?.content&&!w?{...C,...a.snapshotData.content.size}:C),[C,w,a.snapshotData?.content]),R=_V(a),P=x(),A=HC(a,o,zV,FV),I=S.direction,M=AV(a.qHyperCube,s),k=RP(a.qHyperCube,s),D=KC(A,a,e),T=Lt(),O=r((()=>new eE),[]),L={layout:a,model:s,rect:E,theme:A,keyboard:d,interactions:l,selectionsAPI:c,changeSortOrder:M,rootElement:o,embed:P,reactRoot:i,applyColumnWidths:k,isFontLoaded:D,downloadService:T,viewService:R,direction:I,env:e,eventEmitter:O};u?.(((e,t)=>{const r=t.target,n=r?.closest(`.${aE}`);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()=>{gE(n)}})})),jV({layout:a,viewService:R,model:s,rootElement:o,contentRect:C}),MV(L,t),RV(L,t)}}}));const X={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 J(...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(Y(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 X}(e)){const t=X[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 Z(e){let t,r,n=0;const o="string"==typeof e?J(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 Q(e){let t,r,n=0;const o="string"==typeof e?J(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 ee(e){if(Y(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?K(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function te(e,t){return Y(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:te(J(e))}function re(e){return Y(e)?1===e.a?ee(e):te(e):re(J(e))}const ne=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function oe(e){return.2126*ne(e.r)+.7152*ne(e.g)+.0722*ne(e.b)}function ie(...e){const t=J(...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=Z(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=J(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=J(...e);return t.invalid||oe(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=ee(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=te(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=re(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(Y(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?K(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?J(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}=Z(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}=Q(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=Q(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)=>ie(o(18*e)),getDarkenedColor:(e=1)=>ie(o(18*-e))}}function ae(e,t){if(!e||!t)return;const r=oe(e),n=oe(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function se(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 le,ue="top",ce="top-right",de="right",pe="bottom-right",fe="bottom",he="bottom-left",me="left",ge="top-left";se(se(se(se(se(se(se(se(se(se(le={},"equal-equal",[ue,fe]),"equal-higher",[fe,pe]),"equal-lower",[ue,ce]),"equal-void",[ue,fe]),"higher-equal",[me,he,ue,ce]),"higher-higher-acute",[fe,he,me,ce]),"higher-higher-obtuse",[fe,ue]),"higher-lower-negative",[ue,ce,de]),"higher-lower-positive",[fe,he,me]),"higher-void",[ue]),se(se(se(se(se(se(se(se(se(se(le,"lower-equal",[ue]),"lower-higher-negative",[ue,ge]),"lower-higher-positive",[pe]),"lower-lower-acute",[ue,ge,me,ce,de]),"lower-lower-obtuse",[ue,fe]),"lower-void",[ue]),"void-equal",[ue]),"void-higher",[ue,fe]),"void-lower",[ue,fe,me]),"void-void",[ue]),se(le,"unclassified",[ue,fe,de,me,ce,pe,he,ge]);var be,ve,ye=["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"],xe=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Se(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?xe:ye}var we=function(){if(ve)return be;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 be=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},be}();function Ce(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ee(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Re(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(we);var Pe=1/.7,Ae="\\s*([+-]?\\d+)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ke=/^#([0-9a-f]{3,8})$/,De=new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`),Te=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),Oe=new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${Ie}\\)$`),Le=new RegExp(`^rgba\\(${Me},${Me},${Me},${Ie}\\)$`),qe=new RegExp(`^hsl\\(${Ie},${Me},${Me}\\)$`),Ne=new RegExp(`^hsla\\(${Ie},${Me},${Me},${Ie}\\)$`),je={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 ze(){return this.rgb().formatRgb()}function Fe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ke.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?He(t):3===r?new Ve(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=De.exec(e))?new Ve(t[1],t[2],t[3],1):(t=Te.exec(e))?new Ve(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Oe.exec(e))?$e(t[1],t[2],t[3],t[4]):(t=Le.exec(e))?$e(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=qe.exec(e))?Je(t[1],t[2]/100,t[3]/100,1):(t=Ne.exec(e))?Je(t[1],t[2]/100,t[3]/100,t[4]):je.hasOwnProperty(e)?He(je[e]):"transparent"===e?new Ve(NaN,NaN,NaN,0):null}function He(e){return new Ve(e>>16&255,e>>8&255,255&e,1)}function $e(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ve(e,t,r,n)}function We(e){return e instanceof Re||(e=Fe(e)),e?new Ve((e=e.rgb()).r,e.g,e.b,e.opacity):new Ve}function Be(e,t,r,n){return 1===arguments.length?We(e):new Ve(e,t,r,null==n?1:n)}function Ve(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ue(){return`#${Xe(this.r)}${Xe(this.g)}${Xe(this.b)}`}function Ge(){const e=Ye(this.opacity);return`${1===e?"rgb(":"rgba("}${Ke(this.r)}, ${Ke(this.g)}, ${Ke(this.b)}${1===e?")":`, ${e})`}`}function Ye(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ke(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xe(e){return((e=Ke(e))<16?"0":"")+e.toString(16)}function Je(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Qe(e,t,r,n)}function Ze(e){if(e instanceof Qe)return new Qe(e.h,e.s,e.l,e.opacity);if(e instanceof Re||(e=Fe(e)),!e)return new Qe;if(e instanceof Qe)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 Qe(a,s,l,e.opacity)}function Qe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function et(e){return(e=(e||0)%360)<0?e+360:e}function tt(e){return Math.max(0,Math.min(1,e||0))}function rt(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ce(Re,Fe,{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 Ze(this).formatHsl()},formatRgb:ze,toString:ze}),Ce(Ve,Be,Ee(Re,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ve(Ke(this.r),Ke(this.g),Ke(this.b),Ye(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:Ue,formatHex:Ue,formatHex8:function(){return`#${Xe(this.r)}${Xe(this.g)}${Xe(this.b)}${Xe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ge,toString:Ge})),Ce(Qe,(function(e,t,r,n){return 1===arguments.length?Ze(e):new Qe(e,t,r,null==n?1:n)}),Ee(Re,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new Qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Qe(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 Ve(rt(e>=240?e-240:e+120,o,n),rt(e,o,n),rt(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Qe(et(this.h),tt(this.s),tt(this.l),Ye(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=Ye(this.opacity);return`${1===e?"hsl(":"hsla("}${et(this.h)}, ${100*tt(this.s)}%, ${100*tt(this.l)}%${1===e?")":`, ${e})`}`}}));const nt=Math.PI/180,ot=180/Math.PI,it=4/29,at=6/29,st=3*at*at;function lt(e){if(e instanceof ut)return new ut(e.l,e.a,e.b,e.opacity);if(e instanceof ht)return mt(e);e instanceof Ve||(e=We(e));var t,r,n=ft(e.r),o=ft(e.g),i=ft(e.b),a=ct((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=ct((.4360747*n+.3850649*o+.1430804*i)/.96422),r=ct((.0139322*n+.0971045*o+.7141733*i)/.82521)),new ut(116*a-16,500*(t-a),200*(a-r),e.opacity)}function ut(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function ct(e){return e>.008856451679035631?Math.pow(e,1/3):e/st+it}function dt(e){return e>at?e*e*e:st*(e-it)}function pt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ft(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ht(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function mt(e){if(isNaN(e.h))return new ut(e.l,0,0,e.opacity);var t=e.h*nt;return new ut(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ce(ut,(function(e,t,r,n){return 1===arguments.length?lt(e):new ut(e,t,r,null==n?1:n)}),Ee(Re,{brighter(e){return new ut(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ut(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 Ve(pt(3.1338561*(t=.96422*dt(t))-1.6168667*(e=1*dt(e))-.4906146*(r=.82521*dt(r))),pt(-.9787684*t+1.9161415*e+.033454*r),pt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ce(ht,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ht)return new ht(e.h,e.c,e.l,e.opacity);if(e instanceof ut||(e=lt(e)),0===e.a&&0===e.b)return new ht(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ot;return new ht(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ht(e,t,r,null==n?1:n)}),Ee(Re,{brighter(e){return new ht(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ht(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return mt(this).rgb()}}));var gt=e=>()=>e;function bt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):gt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?bt: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):gt(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=bt(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",yt="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:yt},{key:"LimitedData",alignment:yt},{key:"NegativeOrZeroValues",alignment:yt}].reduce((function(e,t){return e[t.key]=t,e}),{});var xt,St=["__proto__","constructor"];function wt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!St.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 Ct(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 Et(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 Rt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=At)):void 0===t&&(t=Pt);for(var r,n,o,i,a,s=new kt(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 kt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Mt)}function Pt(e){return e.children}function At(e){return Array.isArray(e)?e[1]:null}function It(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 kt(e){this.data=e,this.depth=this.height=0,this.parent=null}kt.prototype=Rt.prototype={constructor:kt,count:function(){return this.eachAfter(Et)},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 Rt(this).eachBefore(It)},[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)}},xt=function(e){
|
|
7
|
+
System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],(function(e,t){"use strict";var r,n,o,i,a,s,l,u,c,d,p,f,h,m,g,b,v,y,x,S,w,C,E,R,P,A,I,M,k,D,T,O,L,q,N,j,_,z,F,H,$,W,B,V,U,G;return{setters:[function(e){r=e.useMemo,n=e.useOptions,o=e.usePromise,i=e.useState,a=e.useEffect,s=e.useTheme,l=e.useInteractionState,u=e.onContextMenu,c=e.onTakeSnapshot,d=e.useImperativeHandle,p=e.useElement,f=e.useStaleLayout,h=e.useApp,m=e.useModel,g=e.useTranslator,b=e.useSelections,v=e.useKeyboard,y=e.useRect,x=e.useEmbed},function(e){S=e.default,w=e.createElement,C=e,E=e.isValidElement,R=e.cloneElement,P=e.Children,A=e.useMemo,I=e.useState,M=e.useRef,k=e.createContext,D=e.useReducer,T=e.useEffect,O=e.useDebugValue,L=e.useContext,q=e.useCallback,N=e.useLayoutEffect,j=e.forwardRef,_=e.memo,z=e.useInsertionEffect,F=e.startTransition,H=e.useImperativeHandle,$=e.PureComponent},function(e){W=e.default,B=e,V=e.flushSync},function(e){U=e.default},function(e){G=e.default}],execute:function(){function Y(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function K(e){if("object"==typeof e&&Y(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}e("default",(function(e){return{qae:XV(),ext:EP(e),component(){const t=r((()=>ZE()),[]),o=p(),i=VV(o),a=f();t.set(uR,h());const s=m(),l=QC(!!a.snapshotData);t.set(cR,g());const c=b(),d=v(),S=n(),{freeResize:w}=S,C=y(),E=r((()=>a.snapshotData?.content&&!w?{...C,...a.snapshotData.content.size}:C),[C,w,a.snapshotData?.content]),R=nU(a),P=x(),A=HC(a,o,oU,iU),I=S.direction,M=UV(a.qHyperCube,s),k=RP(a.qHyperCube,s),D=KC(A,a,e),T=Lt(),O=r((()=>new eE),[]),L={layout:a,model:s,rect:E,theme:A,keyboard:d,interactions:l,selectionsAPI:c,changeSortOrder:M,rootElement:o,embed:P,reactRoot:i,applyColumnWidths:k,isFontLoaded:D,downloadService:T,viewService:R,direction:I,env:e,eventEmitter:O};u?.(((e,t)=>{const r=t.target,n=r?.closest(`.${aE}`);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()=>{gE(n)}})})),rU({layout:a,viewService:R,model:s,rootElement:o,contentRect:C}),YV(L,t),BV(L,t)}}}));const X={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 J(...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(Y(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 X}(e)){const t=X[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 Z(e){let t,r,n=0;const o="string"==typeof e?J(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 Q(e){let t,r,n=0;const o="string"==typeof e?J(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 ee(e){if(Y(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?K(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function te(e,t){return Y(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:te(J(e))}function re(e){return Y(e)?1===e.a?ee(e):te(e):re(J(e))}const ne=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function oe(e){return.2126*ne(e.r)+.7152*ne(e.g)+.0722*ne(e.b)}function ie(...e){const t=J(...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=Z(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=J(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=J(...e);return t.invalid||oe(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=ee(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=te(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=re(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(Y(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?K(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?J(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}=Z(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}=Q(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=Q(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)=>ie(o(18*e)),getDarkenedColor:(e=1)=>ie(o(18*-e))}}function ae(e,t){if(!e||!t)return;const r=oe(e),n=oe(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function se(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 le,ue="top",ce="top-right",de="right",pe="bottom-right",fe="bottom",he="bottom-left",me="left",ge="top-left";se(se(se(se(se(se(se(se(se(se(le={},"equal-equal",[ue,fe]),"equal-higher",[fe,pe]),"equal-lower",[ue,ce]),"equal-void",[ue,fe]),"higher-equal",[me,he,ue,ce]),"higher-higher-acute",[fe,he,me,ce]),"higher-higher-obtuse",[fe,ue]),"higher-lower-negative",[ue,ce,de]),"higher-lower-positive",[fe,he,me]),"higher-void",[ue]),se(se(se(se(se(se(se(se(se(se(le,"lower-equal",[ue]),"lower-higher-negative",[ue,ge]),"lower-higher-positive",[pe]),"lower-lower-acute",[ue,ge,me,ce,de]),"lower-lower-obtuse",[ue,fe]),"lower-void",[ue]),"void-equal",[ue]),"void-higher",[ue,fe]),"void-lower",[ue,fe,me]),"void-void",[ue]),se(le,"unclassified",[ue,fe,de,me,ce,pe,he,ge]);var be,ve,ye=["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"],xe=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Se(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?xe:ye}var we=function(){if(ve)return be;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 be=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},be}();function Ce(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ee(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Re(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(we);var Pe=1/.7,Ae="\\s*([+-]?\\d+)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ke=/^#([0-9a-f]{3,8})$/,De=new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`),Te=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),Oe=new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${Ie}\\)$`),Le=new RegExp(`^rgba\\(${Me},${Me},${Me},${Ie}\\)$`),qe=new RegExp(`^hsl\\(${Ie},${Me},${Me}\\)$`),Ne=new RegExp(`^hsla\\(${Ie},${Me},${Me},${Ie}\\)$`),je={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 ze(){return this.rgb().formatRgb()}function Fe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ke.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?He(t):3===r?new Ve(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=De.exec(e))?new Ve(t[1],t[2],t[3],1):(t=Te.exec(e))?new Ve(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Oe.exec(e))?$e(t[1],t[2],t[3],t[4]):(t=Le.exec(e))?$e(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=qe.exec(e))?Je(t[1],t[2]/100,t[3]/100,1):(t=Ne.exec(e))?Je(t[1],t[2]/100,t[3]/100,t[4]):je.hasOwnProperty(e)?He(je[e]):"transparent"===e?new Ve(NaN,NaN,NaN,0):null}function He(e){return new Ve(e>>16&255,e>>8&255,255&e,1)}function $e(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ve(e,t,r,n)}function We(e){return e instanceof Re||(e=Fe(e)),e?new Ve((e=e.rgb()).r,e.g,e.b,e.opacity):new Ve}function Be(e,t,r,n){return 1===arguments.length?We(e):new Ve(e,t,r,null==n?1:n)}function Ve(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ue(){return`#${Xe(this.r)}${Xe(this.g)}${Xe(this.b)}`}function Ge(){const e=Ye(this.opacity);return`${1===e?"rgb(":"rgba("}${Ke(this.r)}, ${Ke(this.g)}, ${Ke(this.b)}${1===e?")":`, ${e})`}`}function Ye(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ke(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xe(e){return((e=Ke(e))<16?"0":"")+e.toString(16)}function Je(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Qe(e,t,r,n)}function Ze(e){if(e instanceof Qe)return new Qe(e.h,e.s,e.l,e.opacity);if(e instanceof Re||(e=Fe(e)),!e)return new Qe;if(e instanceof Qe)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 Qe(a,s,l,e.opacity)}function Qe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function et(e){return(e=(e||0)%360)<0?e+360:e}function tt(e){return Math.max(0,Math.min(1,e||0))}function rt(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ce(Re,Fe,{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 Ze(this).formatHsl()},formatRgb:ze,toString:ze}),Ce(Ve,Be,Ee(Re,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ve(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ve(Ke(this.r),Ke(this.g),Ke(this.b),Ye(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:Ue,formatHex:Ue,formatHex8:function(){return`#${Xe(this.r)}${Xe(this.g)}${Xe(this.b)}${Xe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ge,toString:Ge})),Ce(Qe,(function(e,t,r,n){return 1===arguments.length?Ze(e):new Qe(e,t,r,null==n?1:n)}),Ee(Re,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new Qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Qe(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 Ve(rt(e>=240?e-240:e+120,o,n),rt(e,o,n),rt(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Qe(et(this.h),tt(this.s),tt(this.l),Ye(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=Ye(this.opacity);return`${1===e?"hsl(":"hsla("}${et(this.h)}, ${100*tt(this.s)}%, ${100*tt(this.l)}%${1===e?")":`, ${e})`}`}}));const nt=Math.PI/180,ot=180/Math.PI,it=4/29,at=6/29,st=3*at*at;function lt(e){if(e instanceof ut)return new ut(e.l,e.a,e.b,e.opacity);if(e instanceof ht)return mt(e);e instanceof Ve||(e=We(e));var t,r,n=ft(e.r),o=ft(e.g),i=ft(e.b),a=ct((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=ct((.4360747*n+.3850649*o+.1430804*i)/.96422),r=ct((.0139322*n+.0971045*o+.7141733*i)/.82521)),new ut(116*a-16,500*(t-a),200*(a-r),e.opacity)}function ut(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function ct(e){return e>.008856451679035631?Math.pow(e,1/3):e/st+it}function dt(e){return e>at?e*e*e:st*(e-it)}function pt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ft(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ht(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function mt(e){if(isNaN(e.h))return new ut(e.l,0,0,e.opacity);var t=e.h*nt;return new ut(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ce(ut,(function(e,t,r,n){return 1===arguments.length?lt(e):new ut(e,t,r,null==n?1:n)}),Ee(Re,{brighter(e){return new ut(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ut(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 Ve(pt(3.1338561*(t=.96422*dt(t))-1.6168667*(e=1*dt(e))-.4906146*(r=.82521*dt(r))),pt(-.9787684*t+1.9161415*e+.033454*r),pt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ce(ht,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ht)return new ht(e.h,e.c,e.l,e.opacity);if(e instanceof ut||(e=lt(e)),0===e.a&&0===e.b)return new ht(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ot;return new ht(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ht(e,t,r,null==n?1:n)}),Ee(Re,{brighter(e){return new ht(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ht(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return mt(this).rgb()}}));var gt=e=>()=>e;function bt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):gt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?bt: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):gt(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=bt(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",yt="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:yt},{key:"LimitedData",alignment:yt},{key:"NegativeOrZeroValues",alignment:yt}].reduce((function(e,t){return e[t.key]=t,e}),{});var xt,St=["__proto__","constructor"];function wt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!St.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 Ct(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 Et(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 Rt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=At)):void 0===t&&(t=Pt);for(var r,n,o,i,a,s=new kt(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 kt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Mt)}function Pt(e){return e.children}function At(e){return Array.isArray(e)?e[1]:null}function It(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 kt(e){this.data=e,this.depth=this.height=0,this.parent=null}kt.prototype=Rt.prototype={constructor:kt,count:function(){return this.eachAfter(Et)},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 Rt(this).eachBefore(It)},[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)}},xt=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}},xt({exports:{}});const Dt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Tt(e,t){return r((()=>e),t)}const Ot={},Lt=()=>{const{viewState:e}=n(),t=(e=>{const t=r((()=>({current:Ot})),[]);return t.current=t.current===Ot?e:t.current,t})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=r((()=>Dt()),[]),l=Tt((e=>{i&&t.current.add(e)}),[t]),u=Tt(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(t.current),t.current.clear(),s()}),1e3),[s,t]);return o((async()=>{i&&await a}),[a,i]),r((()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,e,l])},qt={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"},Nt={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",...qt,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)"},jt=12,_t=14,zt=16,Ft=24,Ht=3,$t=300,Wt=400,Bt=600,Vt=700,Ut={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yt(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 Kt={exports:{}},Xt={},Jt=S,Zt=Symbol.for("react.element"),Qt=Symbol.for("react.fragment"),er=Object.prototype.hasOwnProperty,tr=Jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0};function nr(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)er.call(t,n)&&!rr.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:Zt,type:e,key:i,ref:a,props:o,_owner:tr.current}}Xt.Fragment=Qt,Xt.jsx=nr,Xt.jsxs=nr,Kt.exports=Xt;var or=Kt.exports;const ir={black:"#000",white:"#fff"},ar="#e57373",sr="#ef5350",lr="#f44336",ur="#d32f2f",cr="#c62828",dr="#f3e5f5",pr="#ce93d8",fr="#ba68c8",hr="#ab47bc",mr="#9c27b0",gr="#7b1fa2",br="#e3f2fd",vr="#90caf9",yr="#42a5f5",xr="#1976d2",Sr="#1565c0",wr="#4fc3f7",Cr="#29b6f6",Er="#03a9f4",Rr="#0288d1",Pr="#01579b",Ar="#81c784",Ir="#66bb6a",Mr="#4caf50",kr="#388e3c",Dr="#2e7d32",Tr="#1b5e20",Or="#ffb74d",Lr="#ffa726",qr="#ff9800",Nr="#f57c00",jr="#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 zr(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 Fr=Object.freeze({__proto__:null,default:zr}),Hr="$$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 Wr(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 Vr(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 Ur="-ms-",Gr="-moz-",Yr="-webkit-",Kr="comm",Xr="rule",Jr="decl",Zr="@import",Qr="@keyframes",en=Math.abs,tn=String.fromCharCode,rn=Object.assign;function nn(e){return e.trim()}function on(e,t){return(e=t.exec(e))?e[0]:e}function an(e,t,r){return e.replace(t,r)}function sn(e,t,r){return e.indexOf(t,r)}function ln(e,t){return 0|e.charCodeAt(t)}function un(e,t,r){return e.slice(t,r)}function cn(e){return e.length}function dn(e){return e.length}function pn(e,t){return t.push(e),e}function fn(e,t){return e.filter((function(e){return!on(e,t)}))}var hn=1,mn=1,gn=0,bn=0,vn=0,yn="";function xn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:hn,column:mn,length:a,return:"",siblings:s}}function Sn(e,t){return rn(xn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function wn(e){for(;e.root;)e=Sn(e.root,{children:[e]});pn(e,e.siblings)}function Cn(){return vn=bn>0?ln(yn,--bn):0,mn--,10===vn&&(mn=1,hn--),vn}function En(){return vn=bn<gn?ln(yn,bn++):0,mn++,10===vn&&(mn=1,hn++),vn}function Rn(){return ln(yn,bn)}function Pn(){return bn}function An(e,t){return un(yn,e,t)}function In(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 nn(An(bn-1,Tn(91===e?e+2:40===e?e+1:e)))}function kn(e){for(;(vn=Rn())&&vn<33;)En();return In(e)>2||In(vn)>3?"":" "}function Dn(e,t){for(;--t&&En()&&!(vn<48||vn>102||vn>57&&vn<65||vn>70&&vn<97););return An(e,Pn()+(t<6&&32==Rn()&&32==En()))}function Tn(e){for(;En();)switch(vn){case e:return bn;case 34:case 39:34!==e&&39!==e&&Tn(vn);break;case 40:41===e&&Tn(e);break;case 92:En()}return bn}function On(e,t){for(;En()&&e+vn!==57&&(e+vn!==84||47!==Rn()););return"/*"+An(t,bn-1)+"*"+tn(47===e?e:En())}function Ln(e){for(;!In(Rn());)En();return An(e,bn)}function qn(e){return function(e){return yn="",e}(Nn("",null,null,null,[""],e=function(e){return hn=mn=1,gn=cn(yn=e),bn=0,[]}(e),0,[0],e))}function Nn(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=En()){case 40:if(108!=h&&58==ln(C,d-1)){-1!=sn(C+=an(Mn(v),"&","&\f"),"&\f",en(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Mn(v);break;case 9:case 10:case 13:case 32:C+=kn(h);break;case 92:C+=Dn(Pn()-1,7);continue;case 47:switch(Rn()){case 42:case 47:pn(_n(On(En(),Pn()),t,r,l),l),5!=In(h||1)&&5!=In(Rn()||1)||!cn(C)||" "===un(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=cn(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=an(C,/\f/g,"")),f>0&&(cn(C)-d||0===m&&47===h)&&pn(f>32?zn(C+";",n,r,d-1,l):zn(an(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(pn(w=jn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)Nn(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===ln(C,3))break;case 108:if(97===ln(C,2))break;default:c=0;case 100:case 109:case 115:}c?Nn(e,w,w,n&&pn(jn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):Nn(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+cn(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Cn())continue;switch(C+=tn(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(cn(C)-1)*b,b=1;break;case 64:45===Rn()&&(C+=Mn(En())),p=Rn(),c=d=cn(y=C+=Ln(Pn())),v++;break;case 45:45===h&&2==cn(C)&&(m=0)}}return i}function jn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=dn(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=un(e,p+1,p=en(g=a[m])),x=e;v<h;++v)(x=nn(g>0?f[v]+" "+y:an(y,/&\f/g,f[v])))&&(l[b++]=x);return xn(e,t,r,0===o?Xr:s,l,u,c,d)}function _n(e,t,r,n){return xn(e,t,r,Kr,tn(vn),un(e,2,-2),0,n)}function zn(e,t,r,n,o){return xn(e,t,r,Jr,un(e,0,n),un(e,n+1,-1),n,o)}function Fn(e,t,r){switch(function(e,t){return 45^ln(e,0)?(((t<<2^ln(e,0))<<2^ln(e,1))<<2^ln(e,2))<<2^ln(e,3):0}(e,t)){case 5103:return Yr+"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 Yr+e+e;case 4855:return Yr+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Gr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yr+e+Gr+e+Ur+e+e;case 5936:switch(ln(e,t+11)){case 114:return Yr+e+Ur+an(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yr+e+Ur+an(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yr+e+Ur+an(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Yr+e+Ur+e+e;case 6165:return Yr+e+Ur+"flex-"+e+e;case 5187:return Yr+e+an(e,/(\w+).+(:[^]+)/,Yr+"box-$1$2"+Ur+"flex-$1$2")+e;case 5443:return Yr+e+Ur+"flex-item-"+an(e,/flex-|-self/g,"")+(on(e,/flex-|baseline/)?"":Ur+"grid-row-"+an(e,/flex-|-self/g,""))+e;case 4675:return Yr+e+Ur+"flex-line-pack"+an(e,/align-content|flex-|-self/g,"")+e;case 5548:return Yr+e+Ur+an(e,"shrink","negative")+e;case 5292:return Yr+e+Ur+an(e,"basis","preferred-size")+e;case 6060:return Yr+"box-"+an(e,"-grow","")+Yr+e+Ur+an(e,"grow","positive")+e;case 4554:return Yr+an(e,/([^-])(transform)/g,"$1"+Yr+"$2")+e;case 6187:return an(an(an(e,/(zoom-|grab)/,Yr+"$1"),/(image-set)/,Yr+"$1"),e,"")+e;case 5495:case 3959:return an(e,/(image-set\([^]*)/,Yr+"$1$`$1");case 4968:return an(an(e,/(.+:)(flex-)?(.*)/,Yr+"box-pack:$3"+Ur+"flex-pack:$3"),/space-between/,"justify")+Yr+e+e;case 4200:if(!on(e,/flex-|baseline/))return Ur+"grid-column-align"+un(e,t)+e;break;case 2592:case 3360:return Ur+an(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,on(e.props,/grid-\w+-end/)}))?~sn(e+(r=r[t].value),"span",0)?e:Ur+an(e,"-start","")+e+Ur+"grid-row-span:"+(~sn(r,"span",0)?on(r,/\d+/):+on(r,/\d+/)-+on(e,/\d+/))+";":Ur+an(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return on(e.props,/grid-\w+-start/)}))?e:Ur+an(an(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return an(e,/(.+)-inline(.+)/,Yr+"$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(cn(e)-1-t>6)switch(ln(e,t+1)){case 109:if(45!==ln(e,t+4))break;case 102:return an(e,/(.+:)(.+)-([^]+)/,"$1"+Yr+"$2-$3$1"+Gr+(108==ln(e,t+3)?"$3":"$2-$3"))+e;case 115:return~sn(e,"stretch",0)?Fn(an(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return an(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Ur+r+":"+n+s+(o?Ur+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===ln(e,t+6))return an(e,":",":"+Yr)+e;break;case 6444:switch(ln(e,45===ln(e,14)?18:11)){case 120:return an(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Yr+(45===ln(e,14)?"inline-":"")+"box$3$1"+Yr+"$2$3$1"+Ur+"$2box$3")+e;case 100:return an(e,":",":"+Ur)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return an(e,"scroll-","scroll-snap-")+e}return e}function Hn(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 Zr:case"@namespace":case Jr:return e.return=e.return||e.value;case Kr:return"";case Qr:return e.return=e.value+"{"+Hn(e.children,n)+"}";case Xr:if(!cn(e.value=e.props.join(",")))return""}return cn(r=Hn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Wn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Jr:return void(e.return=Fn(e.value,e.length,r));case Qr:return Hn([Sn(e,{value:an(e.value,"@","@"+Yr)})],n);case Xr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(on(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":wn(Sn(e,{props:[an(t,/:(read-\w+)/,":-moz-$1")]})),wn(Sn(e,{props:[t]})),rn(e,{props:fn(r,n)});break;case"::placeholder":wn(Sn(e,{props:[an(t,/:(plac\w+)/,":"+Yr+"input-$1")]})),wn(Sn(e,{props:[an(t,/:(plac\w+)/,":-moz-$1")]})),wn(Sn(e,{props:[an(t,/:(plac\w+)/,Ur+"input-$1")]})),wn(Sn(e,{props:[t]})),rn(e,{props:fn(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},Vn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Un="active",Gn="data-styled-version",Yn="6.3.8",Kn="/*!sc*/\n",Xn="undefined"!=typeof window&&"undefined"!=typeof document,Jn=void 0===S.createContext,Zn=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)),Qn={},eo=Object.freeze([]),to=Object.freeze({});function ro(e,t,r){return void 0===r&&(r=to),e.theme!==r.theme&&e.theme||t||r.theme}var no=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"]),oo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,io=/(^-|-$)/g;function ao(e){return e.replace(oo,"-").replace(io,"")}var so=/(a)(d)/gi,lo=function(e){return String.fromCharCode(e+(e>25?39:97))};function uo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=lo(t%52)+r;return(lo(t%52)+r).replace(so,"$1-$2")}var co,po=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},fo=function(e){return po(5381,e)};function ho(e){return uo(fo(e)>>>0)}function mo(e){return"string"==typeof e&&!0}var go="function"==typeof Symbol&&Symbol.for,bo=go?Symbol.for("react.memo"):60115,vo=go?Symbol.for("react.forward_ref"):60112,yo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},So={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wo=((co={})[vo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},co[bo]=So,co);function Co(e){return("type"in(t=e)&&t.type.$$typeof)===bo?So:"$$typeof"in e?wo[e.$$typeof]:yo;var t}var Eo=Object.defineProperty,Ro=Object.getOwnPropertyNames,Po=Object.getOwnPropertySymbols,Ao=Object.getOwnPropertyDescriptor,Io=Object.getPrototypeOf,Mo=Object.prototype;function ko(e,t,r){if("string"!=typeof t){if(Mo){var n=Io(t);n&&n!==Mo&&ko(e,n,r)}var o=Ro(t);Po&&(o=o.concat(Po(t)));for(var i=Co(e),a=Co(t),s=0;s<o.length;++s){var l=o[s];if(!(l in xo||r&&r[l]||a&&l in a||i&&l in i)){var u=Ao(t,l);try{Eo(e,l,u)}catch(e){}}}}return e}function Do(e){return"function"==typeof e}function To(e){return"object"==typeof e&&"styledComponentId"in e}function Oo(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Lo(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function qo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function No(e,t,r){if(void 0===r&&(r=!1),!r&&!qo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=No(e[n],t[n]);else if(qo(t))for(var n in t)e[n]=No(e[n],t[n]);return e}function jo(e,t){Object.defineProperty(e,"toString",{value:t})}function _o(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 zo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw _o(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Kn);return t},e}(),Fo=new Map,Ho=new Map,$o=1,Wo=function(e){if(Fo.has(e))return Fo.get(e);for(;Ho.has($o);)$o++;var t=$o++;return Fo.set(e,t),Ho.set(t,e),t},Bo=function(e,t){$o=t+1,Fo.set(e,t),Ho.set(t,e)},Vo="style[".concat(Vn,"][").concat(Gn,'="').concat(Yn,'"]'),Uo=new RegExp("^".concat(Vn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),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(Kn),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Uo);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Bo(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=document.querySelectorAll(Vo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Vn)!==Un&&(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(Vn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Vn,Un),n.setAttribute(Gn,Yn);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){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw _o(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&&(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=Xn,ti={isServer:!Xn,useCSSOMInjection:!Zn},ri=function(){function e(e,t,r){void 0===e&&(e=to),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&&Xn&&ei&&(ei=!1,Ko(this)),jo(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Ho.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(Vn,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(Kn)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Wo(e)},e.prototype.rehydrate=function(){!this.server&&Xn&&Ko(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Br(Br({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Qo(r):t?new Jo(r):new Zo(r)}(this.options),new zo(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Wo(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Wo(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Wo(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ni=/&/g,oi=47;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!==oi||42!==e.charCodeAt(i+1))if(o)42===a&&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 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?to:e,i=o.options,a=void 0===i?to:i,s=o.plugins,l=void 0===s?eo: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===Xr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(ni,r).replace(n,u))})),a.prefix&&c.push(Wn),c.push($n);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var l=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!==oi||42!==e.charCodeAt(s+1))if(a)42===l&&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);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(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)===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=qn(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=ai(u,a.namespace));var d,p=[];return Hn(u,function(e){var t=dn(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||_o(15),po(e,t.name)}),5381).toString():"",d}var li=new ri,ui=si(),ci={shouldForwardProp:void 0,styleSheet:li,stylis:ui},di=Jn?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(ci)}}:S.createContext(ci);di.Consumer;var pi=Jn?{Provider:function(e){return e.children}}:S.createContext(void 0);function fi(){return Jn?ci:S.useContext(di)}function hi(e){if(Jn||!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 si({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=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,jo(this,(function(){throw _o(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=ui),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 bi=function(e){return e>="A"&&e<="Z"};function vi(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;bi(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||Do(n)?t.push("".concat(vi(r),":"),n,";"):qo(n)?t.push.apply(t,Vr(Vr(["".concat(r," {")],xi(n),!1),["}"],!1)):t.push("".concat(vi(r),": ").concat(gi(r,n),";")))}return t};function Si(e,t,r,n){return yi(e)?[]:To(e)?[".".concat(e.styledComponentId)]:Do(e)?!Do(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Si(e(t),t,r,n):e instanceof mi?r?(e.inject(r,n),[e.getName(n)]):[e]:qo(e)?xi(e):Array.isArray(e)?Array.prototype.concat.apply(eo,e.map((function(e){return Si(e,t,r,n)}))):[e.toString()];var o}function wi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Do(r)&&!To(r))return!1}return!0}var Ci=fo(Yn),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=po(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=Oo(n,this.staticRulesId);else{var o=Lo(Si(this.rules,e,t,r)),i=uo(po(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=Oo(n,i),this.staticRulesId=i}else{for(var s=po(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=Lo(Si(c,e,t,r));s=po(s,d+u),l+=d}}if(l){var p=uo(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=Oo(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(Wo(this.componentId)):""}},e}(),Ri=Jn?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:S.createContext(void 0);Ri.Consumer;var Pi={};function Ai(e,t,r){var n=To(e),o=e,i=!mo(e),a=t.attrs,s=void 0===a?eo:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":ao(e);Pi[r]=(Pi[r]||0)+1;var n="".concat(r,"-").concat(ho(Yn+r+Pi[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return mo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(ao(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 Ei(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=Jn?void 0:S.useContext(Ri),c=fi(),d=e.shouldForwardProp||c.shouldForwardProp,p=ro(t,u,i)||to,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=Do(n=e[i])?n(o):n;for(var s in a)"className"===s?o.className=Oo(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=Oo(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=fi();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=b.className,y=b.css,x=Oo(a,s);v&&(x+=" "+v),f.className&&(x+=" "+f.className),m[mo(h)&&!no.has(h)?"class":"className"]=x,r&&(m.ref=r);var C=w(h,m);return Jn&&y?S.createElement(S.Fragment,null,S.createElement("style",{precedence:"styled-components",href:"sc-".concat(s,"-").concat(v),children:y}),C):C}(y,e,t)}v.displayName=d;var y=S.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?Oo(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++)No(e,o[n],!0);return e}({},o.defaultProps,e):e}}),jo(y,(function(){return".".concat(y.styledComponentId)})),i&&ko(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Ii(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 ki(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Do(e)||qo(e))return Mi(Si(Ii(eo,Vr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Si(n):Mi(Si(Ii(n,t)))}function Di(e,t,r){if(void 0===r&&(r=to),!t)throw _o(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,Vr([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(Ai,e)},Oi=Ti;no.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(Lo(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=Lo(ki.apply(void 0,Vr([e],t,!1))),o=ho(n);return new mi(o,n)}var Ni={exports:{}};function ji(){}function _i(){}_i.resetWarningCache=ji;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:_i,resetWarningCache:ji};return r.PropTypes=r,r}();var zi=Gt(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 Hi=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ki.apply(void 0,Vr([e],t,!1)),o="sc-global-".concat(ho(JSON.stringify(n))),i=new Li(n,o),a=new WeakMap,s=function(e){var t=fi(),r=Jn?void 0:S.useContext(Ri),n=a.get(t.styleSheet);if(void 0===n&&(n=t.styleSheet.allocateGSInstance(o),a.set(t.styleSheet,n)),("undefined"==typeof window||!t.styleSheet.server)&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Qn,r,o);else{var a=Br(Br({},t),{theme:ro(t,n,s.defaultProps)});i.renderStyles(e,a,r,o)}}(n,e,t.styleSheet,r,t.stylis),!Jn){var l=S.useRef(!0);S.useLayoutEffect((function(){return l.current=!1,function(){l.current=!0,queueMicrotask((function(){l.current&&(i.removeStyles(n,t.styleSheet),"undefined"!=typeof document&&document.querySelectorAll('style[data-styled-global="'.concat(o,'"]')).forEach((function(e){return e.remove()})))}))}}),[n,t.styleSheet])}if(Jn){var u=o+n,c="undefined"==typeof window?t.styleSheet.getTag().getGroup(Wo(u)):"";if(c){var d="".concat(o,"-").concat(n);return S.createElement("style",{key:d,"data-styled-global":o,precedence:"styled-components",href:d,children:c})}}return null};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}));
|
|
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}},xt({exports:{}});const Dt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Tt(e,t){return r((()=>e),t)}const Ot={},Lt=()=>{const{viewState:e}=n(),t=(e=>{const t=r((()=>({current:Ot})),[]);return t.current=t.current===Ot?e:t.current,t})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=r((()=>Dt()),[]),l=Tt((e=>{t.current.add(e)}),[t]),u=Tt(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(t.current),t.current.clear(),s()}),1e3),[s,t]);return o((async()=>{await a}),[a]),r((()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,e,l])},qt={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"},Nt={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",...qt,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)"},jt=12,_t=14,zt=16,Ft=24,Ht=3,$t=300,Wt=400,Bt=600,Vt=700,Ut={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Yt(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 Kt={exports:{}},Xt={},Jt=S,Zt=Symbol.for("react.element"),Qt=Symbol.for("react.fragment"),er=Object.prototype.hasOwnProperty,tr=Jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0};function nr(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)er.call(t,n)&&!rr.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:Zt,type:e,key:i,ref:a,props:o,_owner:tr.current}}Xt.Fragment=Qt,Xt.jsx=nr,Xt.jsxs=nr,Kt.exports=Xt;var or=Kt.exports;const ir={black:"#000",white:"#fff"},ar="#e57373",sr="#ef5350",lr="#f44336",ur="#d32f2f",cr="#c62828",dr="#f3e5f5",pr="#ce93d8",fr="#ba68c8",hr="#ab47bc",mr="#9c27b0",gr="#7b1fa2",br="#e3f2fd",vr="#90caf9",yr="#42a5f5",xr="#1976d2",Sr="#1565c0",wr="#4fc3f7",Cr="#29b6f6",Er="#03a9f4",Rr="#0288d1",Pr="#01579b",Ar="#81c784",Ir="#66bb6a",Mr="#4caf50",kr="#388e3c",Dr="#2e7d32",Tr="#1b5e20",Or="#ffb74d",Lr="#ffa726",qr="#ff9800",Nr="#f57c00",jr="#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 zr(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 Fr=Object.freeze({__proto__:null,default:zr}),Hr="$$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 Wr(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 Vr(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 Ur="-ms-",Gr="-moz-",Yr="-webkit-",Kr="comm",Xr="rule",Jr="decl",Zr="@import",Qr="@keyframes",en=Math.abs,tn=String.fromCharCode,rn=Object.assign;function nn(e){return e.trim()}function on(e,t){return(e=t.exec(e))?e[0]:e}function an(e,t,r){return e.replace(t,r)}function sn(e,t,r){return e.indexOf(t,r)}function ln(e,t){return 0|e.charCodeAt(t)}function un(e,t,r){return e.slice(t,r)}function cn(e){return e.length}function dn(e){return e.length}function pn(e,t){return t.push(e),e}function fn(e,t){return e.filter((function(e){return!on(e,t)}))}var hn=1,mn=1,gn=0,bn=0,vn=0,yn="";function xn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:hn,column:mn,length:a,return:"",siblings:s}}function Sn(e,t){return rn(xn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function wn(e){for(;e.root;)e=Sn(e.root,{children:[e]});pn(e,e.siblings)}function Cn(){return vn=bn>0?ln(yn,--bn):0,mn--,10===vn&&(mn=1,hn--),vn}function En(){return vn=bn<gn?ln(yn,bn++):0,mn++,10===vn&&(mn=1,hn++),vn}function Rn(){return ln(yn,bn)}function Pn(){return bn}function An(e,t){return un(yn,e,t)}function In(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 nn(An(bn-1,Tn(91===e?e+2:40===e?e+1:e)))}function kn(e){for(;(vn=Rn())&&vn<33;)En();return In(e)>2||In(vn)>3?"":" "}function Dn(e,t){for(;--t&&En()&&!(vn<48||vn>102||vn>57&&vn<65||vn>70&&vn<97););return An(e,Pn()+(t<6&&32==Rn()&&32==En()))}function Tn(e){for(;En();)switch(vn){case e:return bn;case 34:case 39:34!==e&&39!==e&&Tn(vn);break;case 40:41===e&&Tn(e);break;case 92:En()}return bn}function On(e,t){for(;En()&&e+vn!==57&&(e+vn!==84||47!==Rn()););return"/*"+An(t,bn-1)+"*"+tn(47===e?e:En())}function Ln(e){for(;!In(Rn());)En();return An(e,bn)}function qn(e){return function(e){return yn="",e}(Nn("",null,null,null,[""],e=function(e){return hn=mn=1,gn=cn(yn=e),bn=0,[]}(e),0,[0],e))}function Nn(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=En()){case 40:if(108!=h&&58==ln(C,d-1)){-1!=sn(C+=an(Mn(v),"&","&\f"),"&\f",en(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Mn(v);break;case 9:case 10:case 13:case 32:C+=kn(h);break;case 92:C+=Dn(Pn()-1,7);continue;case 47:switch(Rn()){case 42:case 47:pn(_n(On(En(),Pn()),t,r,l),l),5!=In(h||1)&&5!=In(Rn()||1)||!cn(C)||" "===un(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=cn(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=an(C,/\f/g,"")),f>0&&(cn(C)-d||0===m&&47===h)&&pn(f>32?zn(C+";",n,r,d-1,l):zn(an(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(pn(w=jn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)Nn(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===ln(C,3))break;case 108:if(97===ln(C,2))break;default:c=0;case 100:case 109:case 115:}c?Nn(e,w,w,n&&pn(jn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):Nn(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+cn(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Cn())continue;switch(C+=tn(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(cn(C)-1)*b,b=1;break;case 64:45===Rn()&&(C+=Mn(En())),p=Rn(),c=d=cn(y=C+=Ln(Pn())),v++;break;case 45:45===h&&2==cn(C)&&(m=0)}}return i}function jn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=dn(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=un(e,p+1,p=en(g=a[m])),x=e;v<h;++v)(x=nn(g>0?f[v]+" "+y:an(y,/&\f/g,f[v])))&&(l[b++]=x);return xn(e,t,r,0===o?Xr:s,l,u,c,d)}function _n(e,t,r,n){return xn(e,t,r,Kr,tn(vn),un(e,2,-2),0,n)}function zn(e,t,r,n,o){return xn(e,t,r,Jr,un(e,0,n),un(e,n+1,-1),n,o)}function Fn(e,t,r){switch(function(e,t){return 45^ln(e,0)?(((t<<2^ln(e,0))<<2^ln(e,1))<<2^ln(e,2))<<2^ln(e,3):0}(e,t)){case 5103:return Yr+"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 Yr+e+e;case 4855:return Yr+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Gr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yr+e+Gr+e+Ur+e+e;case 5936:switch(ln(e,t+11)){case 114:return Yr+e+Ur+an(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yr+e+Ur+an(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yr+e+Ur+an(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Yr+e+Ur+e+e;case 6165:return Yr+e+Ur+"flex-"+e+e;case 5187:return Yr+e+an(e,/(\w+).+(:[^]+)/,Yr+"box-$1$2"+Ur+"flex-$1$2")+e;case 5443:return Yr+e+Ur+"flex-item-"+an(e,/flex-|-self/g,"")+(on(e,/flex-|baseline/)?"":Ur+"grid-row-"+an(e,/flex-|-self/g,""))+e;case 4675:return Yr+e+Ur+"flex-line-pack"+an(e,/align-content|flex-|-self/g,"")+e;case 5548:return Yr+e+Ur+an(e,"shrink","negative")+e;case 5292:return Yr+e+Ur+an(e,"basis","preferred-size")+e;case 6060:return Yr+"box-"+an(e,"-grow","")+Yr+e+Ur+an(e,"grow","positive")+e;case 4554:return Yr+an(e,/([^-])(transform)/g,"$1"+Yr+"$2")+e;case 6187:return an(an(an(e,/(zoom-|grab)/,Yr+"$1"),/(image-set)/,Yr+"$1"),e,"")+e;case 5495:case 3959:return an(e,/(image-set\([^]*)/,Yr+"$1$`$1");case 4968:return an(an(e,/(.+:)(flex-)?(.*)/,Yr+"box-pack:$3"+Ur+"flex-pack:$3"),/space-between/,"justify")+Yr+e+e;case 4200:if(!on(e,/flex-|baseline/))return Ur+"grid-column-align"+un(e,t)+e;break;case 2592:case 3360:return Ur+an(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,on(e.props,/grid-\w+-end/)}))?~sn(e+(r=r[t].value),"span",0)?e:Ur+an(e,"-start","")+e+Ur+"grid-row-span:"+(~sn(r,"span",0)?on(r,/\d+/):+on(r,/\d+/)-+on(e,/\d+/))+";":Ur+an(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return on(e.props,/grid-\w+-start/)}))?e:Ur+an(an(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return an(e,/(.+)-inline(.+)/,Yr+"$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(cn(e)-1-t>6)switch(ln(e,t+1)){case 109:if(45!==ln(e,t+4))break;case 102:return an(e,/(.+:)(.+)-([^]+)/,"$1"+Yr+"$2-$3$1"+Gr+(108==ln(e,t+3)?"$3":"$2-$3"))+e;case 115:return~sn(e,"stretch",0)?Fn(an(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return an(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Ur+r+":"+n+s+(o?Ur+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===ln(e,t+6))return an(e,":",":"+Yr)+e;break;case 6444:switch(ln(e,45===ln(e,14)?18:11)){case 120:return an(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Yr+(45===ln(e,14)?"inline-":"")+"box$3$1"+Yr+"$2$3$1"+Ur+"$2box$3")+e;case 100:return an(e,":",":"+Ur)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return an(e,"scroll-","scroll-snap-")+e}return e}function Hn(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 Zr:case"@namespace":case Jr:return e.return=e.return||e.value;case Kr:return"";case Qr:return e.return=e.value+"{"+Hn(e.children,n)+"}";case Xr:if(!cn(e.value=e.props.join(",")))return""}return cn(r=Hn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Wn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Jr:return void(e.return=Fn(e.value,e.length,r));case Qr:return Hn([Sn(e,{value:an(e.value,"@","@"+Yr)})],n);case Xr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(on(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":wn(Sn(e,{props:[an(t,/:(read-\w+)/,":-moz-$1")]})),wn(Sn(e,{props:[t]})),rn(e,{props:fn(r,n)});break;case"::placeholder":wn(Sn(e,{props:[an(t,/:(plac\w+)/,":"+Yr+"input-$1")]})),wn(Sn(e,{props:[an(t,/:(plac\w+)/,":-moz-$1")]})),wn(Sn(e,{props:[an(t,/:(plac\w+)/,Ur+"input-$1")]})),wn(Sn(e,{props:[t]})),rn(e,{props:fn(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},Vn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Un="active",Gn="data-styled-version",Yn="6.3.9",Kn="/*!sc*/\n",Xn="undefined"!=typeof window&&"undefined"!=typeof document,Jn=void 0===S.createContext,Zn=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)),Qn={},eo=Object.freeze([]),to=Object.freeze({});function ro(e,t,r){return void 0===r&&(r=to),e.theme!==r.theme&&e.theme||t||r.theme}var no=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"]),oo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,io=/(^-|-$)/g;function ao(e){return e.replace(oo,"-").replace(io,"")}var so=/(a)(d)/gi,lo=function(e){return String.fromCharCode(e+(e>25?39:97))};function uo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=lo(t%52)+r;return(lo(t%52)+r).replace(so,"$1-$2")}var co,po=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},fo=function(e){return po(5381,e)};function ho(e){return uo(fo(e)>>>0)}function mo(e){return"string"==typeof e&&!0}var go="function"==typeof Symbol&&Symbol.for,bo=go?Symbol.for("react.memo"):60115,vo=go?Symbol.for("react.forward_ref"):60112,yo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},So={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wo=((co={})[vo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},co[bo]=So,co);function Co(e){return("type"in(t=e)&&t.type.$$typeof)===bo?So:"$$typeof"in e?wo[e.$$typeof]:yo;var t}var Eo=Object.defineProperty,Ro=Object.getOwnPropertyNames,Po=Object.getOwnPropertySymbols,Ao=Object.getOwnPropertyDescriptor,Io=Object.getPrototypeOf,Mo=Object.prototype;function ko(e,t,r){if("string"!=typeof t){if(Mo){var n=Io(t);n&&n!==Mo&&ko(e,n,r)}var o=Ro(t);Po&&(o=o.concat(Po(t)));for(var i=Co(e),a=Co(t),s=0;s<o.length;++s){var l=o[s];if(!(l in xo||r&&r[l]||a&&l in a||i&&l in i)){var u=Ao(t,l);try{Eo(e,l,u)}catch(e){}}}}return e}function Do(e){return"function"==typeof e}function To(e){return"object"==typeof e&&"styledComponentId"in e}function Oo(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Lo(e,t){return e.join("")}function qo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function No(e,t,r){if(void 0===r&&(r=!1),!r&&!qo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=No(e[n],t[n]);else if(qo(t))for(var n in t)e[n]=No(e[n],t[n]);return e}function jo(e,t){Object.defineProperty(e,"toString",{value:t})}function _o(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 zo=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 _o(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)+Kn;return t},e}(),Fo=new Map,Ho=new Map,$o=1,Wo=function(e){if(Fo.has(e))return Fo.get(e);for(;Ho.has($o);)$o++;var t=$o++;return Fo.set(e,t),Ho.set(t,e),t},Bo=function(e,t){$o=t+1,Fo.set(e,t),Ho.set(t,e)},Vo="style[".concat(Vn,"][").concat(Gn,'="').concat(Yn,'"]'),Uo=new RegExp("^".concat(Vn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Go=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},Yo=function(e){if(!e)return document;if(Go(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(Go(t))return t}return document},Ko=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)},Xo=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Kn),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Uo);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Bo(c,u),Ko(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Jo=function(e){for(var t=Yo(e.options.target).querySelectorAll(Vo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Vn)!==Un&&(Xo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Zo=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Vn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Vn,Un),n.setAttribute(Gn,Yn);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Qo=function(){function e(e){this.element=Zo(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 _o(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}(),ei=function(){function e(e){this.element=Zo(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}(),ti=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}(),ri=Xn,ni={isServer:!Xn,useCSSOMInjection:!Zn},oi=function(){function e(e,t,r){void 0===e&&(e=to),void 0===t&&(t={});var n=this;this.options=Br(Br({},ni),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Xn&&ri&&(ri=!1,Jo(this)),jo(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Ho.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=Vn+".g"+r+'[id="'+o+'"]',l="";i.forEach((function(e){e.length>0&&(l+=e+",")})),n+=a+s+'{content:"'+l+'"}'+Kn},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Wo(e)},e.prototype.rehydrate=function(){!this.server&&Xn&&Jo(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&&Xn&&t.target!==this.options.target&&Yo(this.options.target)!==Yo(t.target)&&Jo(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 ti(r):t?new Qo(r):new ei(r)}(this.options),new zo(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){Wo(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(Wo(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Wo(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ii=/&/g,ai=47,si=42;function li(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!==ai||e.charCodeAt(i+1)!==si)if(o)a===si&&e.charCodeAt(i+1)===ai&&(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 ui(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=ui(e.children,t)),e}))}function ci(e){var t,r,n,o=void 0===e?to:e,i=o.options,a=void 0===i?to:i,s=o.plugins,l=void 0===s?eo: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===Xr&&e.value.includes("&")&&(n||(n=new RegExp("\\".concat(r,"\\b"),"g")),e.props[0]=e.props[0].replace(ii,r).replace(n,u))})),a.prefix&&c.push(Wn),c.push($n);var d,p=[],f=function(e){var t=dn(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(!li(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!==ai||e.charCodeAt(s+1)!==si)if(a)l===si&&e.charCodeAt(s+1)===ai&&(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);li(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===ai&&o+1<t&&e.charCodeAt(o+1)===si){for(o+=2;o+1<t&&(e.charCodeAt(o)!==si||e.charCodeAt(o+1)!==ai);)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===si&&o+1<t&&e.charCodeAt(o+1)===ai)o>n&&r.push(e.substring(n,o)),n=o+=2;else if(s===ai&&o+1<t&&e.charCodeAt(o+1)===ai){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=qn(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);return a.namespace&&(u=ui(u,a.namespace)),p=[],Hn(u,f),p};return h.hash=l.length?l.reduce((function(e,t){return t.name||_o(15),po(e,t.name)}),5381).toString():"",h}var di=new oi,pi=ci(),fi={shouldForwardProp:void 0,styleSheet:di,stylis:pi},hi=Jn?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(fi)}}:S.createContext(fi);hi.Consumer;var mi=Jn?{Provider:function(e){return e.children}}:S.createContext(void 0);function gi(){return Jn?fi:S.useContext(hi)}function bi(e){if(Jn||!S.useMemo)return e.children;var t=gi().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 ci({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(hi.Provider,{value:o},S.createElement(mi.Provider,{value:n},e.children))}var vi=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=pi);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,jo(this,(function(){throw _o(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=pi),this.name+e.hash},e}();function yi(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 xi=function(e){return e>="A"&&e<="Z"};function Si(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;xi(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var wi=function(e){return null==e||!1===e||""===e},Ci=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!wi(n)&&(Array.isArray(n)&&n.isCss||Do(n)?t.push("".concat(Si(r),":"),n,";"):qo(n)?t.push.apply(t,Vr(Vr(["".concat(r," {")],Ci(n),!1),["}"],!1)):t.push("".concat(Si(r),": ").concat(yi(r,n),";")))}return t};function Ei(e,t,r,n,o){if(void 0===o&&(o=[]),"string"==typeof e)return e&&o.push(e),o;if(wi(e))return o;if(To(e))return o.push(".".concat(e.styledComponentId)),o;var i;if(Do(e))return!Do(i=e)||i.prototype&&i.prototype.isReactComponent||!t?(o.push(e),o):Ei(e(t),t,r,n,o);if(e instanceof vi)return r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o;if(qo(e)){for(var a=Ci(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++)Ei(e[s],t,r,n,o);return o}function Ri(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Do(r)&&!To(r))return!1}return!0}var Pi=fo(Yn),Ai=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Ri(e),this.componentId=t,this.baseHash=po(Pi,t),this.baseStyle=r,oi.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=Oo(n,this.staticRulesId);else{var o=Lo(Ei(this.rules,e,t,r)),i=uo(po(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=Oo(n,i),this.staticRulesId=i}else{for(var s=po(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=Lo(Ei(c,e,t,r));s=po(po(s,String(u)),d),l+=d}}if(l){var p=uo(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=Oo(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(Wo(this.componentId)):""}},e}(),Ii=Jn?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:S.createContext(void 0);Ii.Consumer;var Mi={};function ki(e,t,r){var n=To(e),o=e,i=!mo(e),a=t.attrs,s=void 0===a?eo:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":ao(e);Mi[r]=(Mi[r]||0)+1;var n="".concat(r,"-").concat(ho(Yn+r+Mi[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return mo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(ao(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 Ai(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=Jn?void 0:S.useContext(Ii),c=gi(),d=e.shouldForwardProp||c.shouldForwardProp,p=ro(t,u,i)||(Jn?void 0:to),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=Do(n=e[i])?n(o):n;for(var s in a)"className"===s?o.className=Oo(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=Oo(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=gi();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=b.className,y=b.css,x=Oo(a,s);v&&(x+=" "+v),f.className&&(x+=" "+f.className),m[mo(h)&&!no.has(h)?"class":"className"]=x,r&&(m.ref=r);var C=w(h,m);return Jn&&y?S.createElement(S.Fragment,null,S.createElement("style",{precedence:"styled-components",href:"sc-".concat(s,"-").concat(v),children:y}),C):C}(y,e,t)}v.displayName=d;var y=S.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?Oo(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++)No(e,o[n],!0);return e}({},o.defaultProps,e):e}}),jo(y,(function(){return".".concat(y.styledComponentId)})),i&&ko(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Di(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 Ti=function(e){return Object.assign(e,{isCss:!0})};function Oi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Do(e)||qo(e))return Ti(Ei(Di(eo,Vr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ei(n):Ti(Ei(Di(n,t)))}function Li(e,t,r){if(void 0===r&&(r=to),!t)throw _o(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Oi.apply(void 0,Vr([n],o,!1)))};return n.attrs=function(n){return Li(e,t,Br(Br({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Li(e,t,Br(Br({},r),n))},n}var qi=function(e){return Li(ki,e)},Ni=qi;no.forEach((function(e){Ni[e]=qi(e)}));var ji=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ri(e),oi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Lo(Ei(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&&oi.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 _i(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Lo(Oi.apply(void 0,Vr([e],t,!1))),o=ho(n);return new vi(o,n)}var zi={exports:{}};function Fi(){}function Hi(){}Hi.resetWarningCache=Fi;zi.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:Hi,resetWarningCache:Fi};return r.PropTypes=r,r}();var $i=Gt(zi.exports);function Wi(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}Wi.propTypes={children:$i.node,injectFirst:$i.bool};const Bi=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Oi.apply(void 0,Vr([e],t,!1)),o="sc-global-".concat(ho(JSON.stringify(n))),i=new ji(n,o),a=new WeakMap,s=function(e){var t=gi(),r=Jn?void 0:S.useContext(Ii),n=a.get(t.styleSheet);if(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),Jn||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]),Jn){var s=o+n,u="undefined"==typeof window?t.styleSheet.getTag().getGroup(Wo(s)):"";if(u)return S.createElement("style",{key:"".concat(o,"-").concat(n),"data-styled-global":o,children:u})}return null};function l(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Qn,r,o);else{var a=Br(Br({},t),{theme:ro(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 $i(e,t){let r;return r=t?Oi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Oi(e),r}function Wi(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Bi(e){return e}Hi.propTypes={defaultTheme:zi.object,styles:zi.oneOfType([zi.array,zi.string,zi.object,zi.func])};var Vi=Object.freeze({__proto__:null,GlobalStyles:Hi,StyledEngineProvider:Fi,ThemeContext:Ri,css:ki,default:$i,internal_mutateStyles:Wi,internal_processStyles:function(e,t){return Wi(e,t)},internal_serializeStyles:Bi,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(C.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=>{C.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=Wr(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(zr(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 ba(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 va(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=ba(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=>va(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),Pa=Ea("borderTop",Ca),Aa=Ea("borderRight",Ca),Ia=Ea("borderBottom",Ca),Ma=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"),ja=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ma(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:ba(t,e)});return ra(e,e.borderRadius,r)}return null};ja.propTypes={},ja.filterProps=["borderRadius"],wa(Ra,Pa,Aa,Ia,Ma,ka,Da,Ta,Oa,La,ja,qa,Na);const _a=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ma(e.theme,"spacing",8),r=e=>({gap:ba(t,e)});return ra(e,e.gap,r)}return null};_a.propTypes={},_a.filterProps=["gap"];const za=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ma(e.theme,"spacing",8),r=e=>({columnGap:ba(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:ba(t,e)});return ra(e,e.rowGap,r)}return null};Fa.propTypes={},Fa.filterProps=["rowGap"];function Ha(e,t){return"grey"===t?t:e}wa(_a,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 $a(e){return e<=1&&0!==e?100*e+"%":e}wa(la({prop:"color",themeKey:"palette",transform:Ha}),la({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ha}),la({prop:"backgroundColor",themeKey:"palette",transform:Ha}));const Wa=la({prop:"width",transform:$a}),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])||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:$a(t)}};return ra(e,e.maxWidth,t)}return null};Ba.filterProps=["maxWidth"];const Va=la({prop:"minWidth",transform:$a}),Ua=la({prop:"height",transform:$a}),Ga=la({prop:"maxHeight",transform:$a}),Ya=la({prop:"minHeight",transform:$a});la({prop:"size",cssProperty:"width",transform:$a}),la({prop:"size",cssProperty:"height",transform:$a});wa(Wa,Ba,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:ja},color:{themeKey:"palette",transform:Ha},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ha},backgroundColor:{themeKey:"palette",transform:Ha},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:_a},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:$a},maxWidth:{style:Ba},minWidth:{transform:$a},height:{transform:$a},maxHeight:{transform:$a},minHeight:{transform:$a},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=Wr(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=C.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)),or.jsx(Hi,{styles:i})}const ss=["sx"];function ls(e){const{sx:t}=e,r=Wr(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 bs(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=gs(e,t,r)})),n}var vs={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"),Ps=Symbol.for("react.context"),As=Symbol.for("react.forward_ref"),Is=Symbol.for("react.suspense"),Ms=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 Is:case Ms:return e;default:switch(e=e&&e.$$typeof){case Ps:case As:case Ds:case ks:case Rs:return e;default:return t}}case Ss:return t}}}ys.ContextConsumer=Rs,ys.ContextProvider=Ps,ys.Element=xs,ys.ForwardRef=As,ys.Fragment=ws,ys.Lazy=Ds,ys.Memo=ks,ys.Portal=Ss,ys.Profiler=Es,ys.StrictMode=Cs,ys.Suspense=Is,ys.SuspenseList=Ms,ys.isContextConsumer=function(e){return Ls(e)===Rs},ys.isContextProvider=function(e){return Ls(e)===Ps},ys.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===xs},ys.isForwardRef=function(e){return Ls(e)===As},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)===Is},ys.isSuspenseList=function(e){return Ls(e)===Ms},ys.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ws||e===Es||e===Cs||e===Is||e===Ms||e===Ts||"object"==typeof e&&null!==e&&(e.$$typeof===Ds||e.$$typeof===ks||e.$$typeof===Ps||e.$$typeof===Rs||e.$$typeof===As||e.$$typeof===Os||void 0!==e.getModuleId)},ys.typeOf=Ls,vs.exports=ys;var qs=vs.exports;const Ns=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function js(e){const t=`${e}`.match(Ns);return t&&t[1]||""}function _s(e,t=""){return e.displayName||e.name||js(e)||t}function zs(e,t,r){const n=_s(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 _s(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:js});function Hs(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]=Hs(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const $s="undefined"!=typeof window?C.useLayoutEffect:C.useEffect;function Ws(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:Ws});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(zr(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(zr(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 Ws(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=C["useId".toString()];function el(e){if(void 0!==Qs){return Qs()}return function(e){const[t,r]=C.useState(e),n=t;return C.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}=C.useRef(void 0!==e),[i,a]=C.useState(t);return[o?e:i,C.useCallback((e=>{o||a(e)}),[])]}function rl(e){const t=C.useRef(e);return $s((()=>{t.current=e})),C.useRef(((...e)=>(0,t.current)(...e))).current}function nl(...e){return C.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=C.useRef(ol);return r.current===ol&&(r.current=e(t)),r}(al.create).current;return function(e){C.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=C.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=C.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 bl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function vl(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=Wr(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(C.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Rl=C.createContext(null);function Pl(){return C.useContext(Rl)}var Al="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Il(e){const{children:t,theme:r}=e,n=Pl(),o=C.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[Al]=null!==n),e}),[r,n]);return or.jsx(Rl.Provider,{value:o,children:t})}const Ml=["value"],kl=C.createContext();function Dl(e){let{value:t}=e,r=Wr(e,Ml);return or.jsx(kl.Provider,$r({value:null==t||t},r))}const Tl=C.createContext(void 0);function Ol({value:e,children:t}){return or.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?Hs(o.defaultProps,n):o.styleOverrides||o.variants?n:Hs(o,n)}({props:e,name:t,theme:{components:C.useContext(Tl)}})}const ql={};function Nl(e,t,r,n=!1){return C.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 jl(e){const{children:t,theme:r,themeId:n}=e,o=rs(ql),i=Pl()||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};`:"",$s((()=>{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?or.jsx(as,{styles:o}):null}(a);return or.jsx(Il,{theme:s,children:or.jsx(Ri.Provider,{value:a,children:or.jsx(Dl,{value:l,children:or.jsxs(Ol,{value:null==a?void 0:a.components,children:[u,t]})})})})}function _l(e){return _l="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},_l(e)}function zl(e){var t=function(e,t){if("object"!=_l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=_l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==_l(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 Hl={},$l={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}($l);var Wl=$l.exports,Bl=Yt(Fr),Vl=Yt(Bs),Ul=Wl;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(Bl),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:ir.white,default:ir.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:ir.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:ir.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=Wr(e,cu),i=e.primary||function(e="light"){return"dark"===e?{main:vr,light:br,dark:yr}:{main:xr,light:yr,dark:Sr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:pr,light:dr,dark:hr}:{main:mr,light:fr,dark:gr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:lr,light:ar,dark:ur}:{main:ur,light:sr,dark:cr}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Cr,light:wr,dark:Rr}:{main:Rr,light:Er,dark:Pr}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ir,light:Ar,dark:kr}:{main:Dr,light:Mr,dark:Tr}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Lr,light:Or,dark:Nr}:{main:"#ed6c02",light:qr,dark:jr}}(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=$r({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(zr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(zr(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 Yi($r({common:$r({},ir),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 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=Wr(r,mu),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,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 Yi($r({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 Pu(e){const t=$r({},wu,e.easing),r=$r({},Cu,e.duration);return $r({getAutoHeightDuration:Ru,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Wr(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 Au={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 Mu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Wr(e,Iu);if(e.vars&&void 0===e.generateCssVars)throw new Error(zr(18));const s=hu(n),l=es(e);let u=Yi(l,{mixins:Fl(l.breakpoints,r),palette:s,shadows:xu.slice(),typography:vu(s,i),transitions:Pu(o),zIndex:$r({},Au)});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 ku=Mu();function Du(){const e=os(ku);return e[Hr]||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=Yt(Vi),Fu=Yt(Ki),Hu=Yt(ia),$u=Yt(Fs),Wu=Yt(ts),Bu=Yt(us),Vu=Wl;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(Wu),Zu=Vu(Bu);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:Hr,defaultTheme:ku,rootShouldForwardProp:dc}),fc=["theme"];function hc(e){let{theme:t}=e,r=Wr(e,fc);const n=t[Hr];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=$r({},n,{vars:null}):t&&!t.vars&&(o=$r({},t,{vars:null}))),or.jsx(jl,$r({},r,{themeId:n?Hr: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 Ll(e)}function bc(e){return gs("MuiSvgIcon",e)}bs("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${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]}})),xc=C.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=Wr(r,vc),f=C.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 vl({root:["root","inherit"!==t&&`color${oa(t)}`,`fontSize${oa(r)}`]},bc,n)})(h);return or.jsxs(yc,$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?or.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=S.createContext(null),Rc="unmounted",Pc="exited",Ac="entering",Ic="entered",Mc="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=Pc,n.appearStatus=Ac):o=Ic:o=t.unmountOnExit||t.mountOnEnter?Rc:Pc,n.state={status:o},n.nextCallback=null,n}wc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rc?{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!==Ac&&r!==Ic&&(t=Ac):r!==Ac&&r!==Ic||(t=Mc)}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===Ac){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:W.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:Rc})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[W.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Cc?this.safeSetState({status:Ic},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Ac},(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:W.findDOMNode(this);t&&!Cc?(this.props.onExit(n),this.safeSetState({status:Mc},(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:W.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=Wr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Ec.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.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&&P.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&E(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(E(a)){var s=i in t,l=i in n,u=t[i],c=E(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&E(u)&&(o[i]=R(a,{onExited:r.bind(null,a),in:u.props.in,exit:Lc(a,"exit",e),enter:Lc(a,"enter",e)})):o[i]=R(a,{in:!1}):o[i]=R(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=Pc,kc.ENTERING=Ac,kc.ENTERED=Ic,kc.EXITING=Mc;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 R(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=$r({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Wr(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?S.createElement(Ec.Provider,{value:o},i):S.createElement(Ec.Provider,{value:o},S.createElement(t,n,i))},t}(S.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 gs("MuiPaper",e)}bs("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 $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(${Gl("#fff",mc(t.elevation))}, ${Gl("#fff",mc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Wc=C.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=Wr(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 vl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Fc,o)})(u);return or.jsx($c,$r({as:o,ownerState:u,className:fs(c.root,n),ref:t},l))}));const Bc=bs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Vc=["center","classes","className"];let Uc,Gc,Yc,Kc,Xc=e=>e;const Jc=qi(Uc||(Uc=Xc`
|
|
17
|
+
function Vi(e,t){let r;return r=t?Ni(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ni(e),r}function Ui(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Gi(e){return e}Bi.propTypes={defaultTheme:$i.object,styles:$i.oneOfType([$i.array,$i.string,$i.object,$i.func])};var Yi=Object.freeze({__proto__:null,GlobalStyles:Bi,StyledEngineProvider:Wi,ThemeContext:Ii,css:Oi,default:Vi,internal_mutateStyles:Ui,internal_processStyles:function(e,t){return Ui(e,t)},internal_serializeStyles:Gi,keyframes:_i});function Ki(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 Xi(e){if(C.isValidElement(e)||!Ki(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Xi(e[r])})),t}function Ji(e,t,r={clone:!0}){const n=r.clone?$r({},e):e;return Ki(e)&&Ki(t)&&Object.keys(t).forEach((o=>{C.isValidElement(t[o])?n[o]=t[o]:Ki(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ki(e[o])?n[o]=Ji(e[o],t[o],r):r.clone?n[o]=Ki(t[o])?Xi(t[o]):t[o]:n[o]=t[o]})),n}var Zi=Object.freeze({__proto__:null,default:Ji,isPlainObject:Ki});const Qi=["values","unit","step"];function ea(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Wr(e,Qi),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 ta={borderRadius:4};function ra(e,t){return t?Ji(e,t,{clone:!1}):e}const na={xs:0,sm:600,md:900,lg:1200,xl:1536},oa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${na[e]}px)`};function ia(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||oa;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||oa;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||na).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function aa(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function sa(e){if("string"!=typeof e)throw new Error(zr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var la=Object.freeze({__proto__:null,default:sa});function ua(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 ca(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:ua(e,r)||n,t&&(o=t(o,n,e)),o}function da(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=ua(e.theme,n)||{};return ia(e,i,(e=>{let n=ca(a,o,e);return e===n&&"string"==typeof e&&(n=ca(a,o,`${t}${"default"===e?"":sa(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const pa={m:"margin",p:"padding"},fa={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ha={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ma=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!ha[e])return[e];e=ha[e]}const[t,r]=e.split(""),n=pa[t],o=fa[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ga=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ba=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function va(e,t,r,n){var o;const i=null!=(o=ua(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 ya(e){return va(e,"spacing",8)}function xa(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 Sa(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=xa(t,r),e)),{})}(ma(r),n);return ia(e,e[r],o)}function wa(e,t){const r=ya(e.theme);return Object.keys(e).map((n=>Sa(e,t,n,r))).reduce(ra,{})}function Ca(e){return wa(e,ga)}function Ea(e){return wa(e,ba)}function Ra(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?ra(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Pa(e){return"number"!=typeof e?e:`${e}px solid`}function Aa(e,t){return da({prop:e,themeKey:"borders",transform:t})}Ca.propTypes={},Ca.filterProps=ga,Ea.propTypes={},Ea.filterProps=ba;const Ia=Aa("border",Pa),Ma=Aa("borderTop",Pa),ka=Aa("borderRight",Pa),Da=Aa("borderBottom",Pa),Ta=Aa("borderLeft",Pa),Oa=Aa("borderColor"),La=Aa("borderTopColor"),qa=Aa("borderRightColor"),Na=Aa("borderBottomColor"),ja=Aa("borderLeftColor"),_a=Aa("outline",Pa),za=Aa("outlineColor"),Fa=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=va(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:xa(t,e)});return ia(e,e.borderRadius,r)}return null};Fa.propTypes={},Fa.filterProps=["borderRadius"],Ra(Ia,Ma,ka,Da,Ta,Oa,La,qa,Na,ja,Fa,_a,za);const Ha=e=>{if(void 0!==e.gap&&null!==e.gap){const t=va(e.theme,"spacing",8),r=e=>({gap:xa(t,e)});return ia(e,e.gap,r)}return null};Ha.propTypes={},Ha.filterProps=["gap"];const $a=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=va(e.theme,"spacing",8),r=e=>({columnGap:xa(t,e)});return ia(e,e.columnGap,r)}return null};$a.propTypes={},$a.filterProps=["columnGap"];const Wa=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=va(e.theme,"spacing",8),r=e=>({rowGap:xa(t,e)});return ia(e,e.rowGap,r)}return null};Wa.propTypes={},Wa.filterProps=["rowGap"];function Ba(e,t){return"grey"===t?t:e}Ra(Ha,$a,Wa,da({prop:"gridColumn"}),da({prop:"gridRow"}),da({prop:"gridAutoFlow"}),da({prop:"gridAutoColumns"}),da({prop:"gridAutoRows"}),da({prop:"gridTemplateColumns"}),da({prop:"gridTemplateRows"}),da({prop:"gridTemplateAreas"}),da({prop:"gridArea"}));function Va(e){return e<=1&&0!==e?100*e+"%":e}Ra(da({prop:"color",themeKey:"palette",transform:Ba}),da({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ba}),da({prop:"backgroundColor",themeKey:"palette",transform:Ba}));const Ua=da({prop:"width",transform:Va}),Ga=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])||na[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:Va(t)}};return ia(e,e.maxWidth,t)}return null};Ga.filterProps=["maxWidth"];const Ya=da({prop:"minWidth",transform:Va}),Ka=da({prop:"height",transform:Va}),Xa=da({prop:"maxHeight",transform:Va}),Ja=da({prop:"minHeight",transform:Va});da({prop:"size",cssProperty:"width",transform:Va}),da({prop:"size",cssProperty:"height",transform:Va});Ra(Ua,Ga,Ya,Ka,Xa,Ja,da({prop:"boxSizing"}));const Za={border:{themeKey:"borders",transform:Pa},borderTop:{themeKey:"borders",transform:Pa},borderRight:{themeKey:"borders",transform:Pa},borderBottom:{themeKey:"borders",transform:Pa},borderLeft:{themeKey:"borders",transform:Pa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fa},color:{themeKey:"palette",transform:Ba},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ba},backgroundColor:{themeKey:"palette",transform:Ba},p:{style:Ea},pt:{style:Ea},pr:{style:Ea},pb:{style:Ea},pl:{style:Ea},px:{style:Ea},py:{style:Ea},padding:{style:Ea},paddingTop:{style:Ea},paddingRight:{style:Ea},paddingBottom:{style:Ea},paddingLeft:{style:Ea},paddingX:{style:Ea},paddingY:{style:Ea},paddingInline:{style:Ea},paddingInlineStart:{style:Ea},paddingInlineEnd:{style:Ea},paddingBlock:{style:Ea},paddingBlockStart:{style:Ea},paddingBlockEnd:{style:Ea},m:{style:Ca},mt:{style:Ca},mr:{style:Ca},mb:{style:Ca},ml:{style:Ca},mx:{style:Ca},my:{style:Ca},margin:{style:Ca},marginTop:{style:Ca},marginRight:{style:Ca},marginBottom:{style:Ca},marginLeft:{style:Ca},marginX:{style:Ca},marginY:{style:Ca},marginInline:{style:Ca},marginInlineStart:{style:Ca},marginInlineEnd:{style:Ca},marginBlock:{style:Ca},marginBlockStart:{style:Ca},marginBlockEnd:{style:Ca},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ha},rowGap:{style:Wa},columnGap:{style:$a},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Va},maxWidth:{style:Ga},minWidth:{transform:Va},height:{transform:Va},maxHeight:{transform:Va},minHeight:{transform:Va},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Qa(){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=ua(r,s)||{};if(u)return u(o);return ia(o,t,(t=>{let r=ca(c,l,t);return t===r&&"string"==typeof t&&(r=ca(c,l,`${e}${"default"===t?"":sa(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:Za;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=ra(u,e(r,o,i,s));else{const e=ia({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=ra(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=ra(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":aa(l,u)}:aa(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const es=Qa();function ts(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:{}}es.filterProps=["sx"];const rs=["breakpoints","palette","spacing","shape"];function ns(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Wr(e,rs),s=ea(r),l=function(e=8){if(e.mui)return e;const t=ya({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=Ji({breakpoints:s,direction:"ltr",components:{},palette:$r({mode:"light"},n),spacing:l,shape:$r({},ta,i)},a);return u.applyStyles=ts,u=t.reduce(((e,t)=>Ji(e,t)),u),u.unstable_sxConfig=$r({},Za,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return es({sx:e,theme:this})},u}var os=Object.freeze({__proto__:null,default:ns,private_createBreakpoints:ea,unstable_applyStyles:ts});function is(e=null){const t=C.useContext(Ii);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const as=ns();function ss(e=as){return is(e)}function ls(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function us({styles:e,themeId:t,defaultTheme:r={}}){const n=ss(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>ls("function"==typeof e?e(o):e))):ls(i)),or.jsx(Bi,{styles:i})}const cs=["sx"];function ds(e){const{sx:t}=e,r=Wr(e,cs),{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:Za;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 Ki(r)?$r({},n,r):n}:$r({},n,t),$r({},o,{sx:i})}var ps=Object.freeze({__proto__:null,default:es,extendSxProp:ds,unstable_createStyleFunctionSx:Qa,unstable_defaultSxConfig:Za});const fs=e=>e,hs=(()=>{let e=fs;return{configure(t){e=t},generate:t=>e(t),reset(){e=fs}}})();function ms(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=ms(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gs(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ms(e))&&(n&&(n+=" "),n+=t);return n}const bs=["className","component"];const vs={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 ys(e,t,r="Mui"){const n=vs[t];return n?`${r}-${n}`:`${hs.generate(e)}-${t}`}function xs(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ys(e,t,r)})),n}var Ss={exports:{}},ws={},Cs=Symbol.for("react.transitional.element"),Es=Symbol.for("react.portal"),Rs=Symbol.for("react.fragment"),Ps=Symbol.for("react.strict_mode"),As=Symbol.for("react.profiler"),Is=Symbol.for("react.consumer"),Ms=Symbol.for("react.context"),ks=Symbol.for("react.forward_ref"),Ds=Symbol.for("react.suspense"),Ts=Symbol.for("react.suspense_list"),Os=Symbol.for("react.memo"),Ls=Symbol.for("react.lazy"),qs=Symbol.for("react.offscreen"),Ns=Symbol.for("react.client.reference");function js(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Cs:switch(e=e.type){case Rs:case As:case Ps:case Ds:case Ts:return e;default:switch(e=e&&e.$$typeof){case Ms:case ks:case Ls:case Os:case Is:return e;default:return t}}case Es:return t}}}ws.ContextConsumer=Is,ws.ContextProvider=Ms,ws.Element=Cs,ws.ForwardRef=ks,ws.Fragment=Rs,ws.Lazy=Ls,ws.Memo=Os,ws.Portal=Es,ws.Profiler=As,ws.StrictMode=Ps,ws.Suspense=Ds,ws.SuspenseList=Ts,ws.isContextConsumer=function(e){return js(e)===Is},ws.isContextProvider=function(e){return js(e)===Ms},ws.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Cs},ws.isForwardRef=function(e){return js(e)===ks},ws.isFragment=function(e){return js(e)===Rs},ws.isLazy=function(e){return js(e)===Ls},ws.isMemo=function(e){return js(e)===Os},ws.isPortal=function(e){return js(e)===Es},ws.isProfiler=function(e){return js(e)===As},ws.isStrictMode=function(e){return js(e)===Ps},ws.isSuspense=function(e){return js(e)===Ds},ws.isSuspenseList=function(e){return js(e)===Ts},ws.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Rs||e===As||e===Ps||e===Ds||e===Ts||e===qs||"object"==typeof e&&null!==e&&(e.$$typeof===Ls||e.$$typeof===Os||e.$$typeof===Ms||e.$$typeof===Is||e.$$typeof===ks||e.$$typeof===Ns||void 0!==e.getModuleId)},ws.typeOf=js,Ss.exports=ws;var _s=Ss.exports;const zs=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Fs(e){const t=`${e}`.match(zs);return t&&t[1]||""}function Hs(e,t=""){return e.displayName||e.name||Fs(e)||t}function $s(e,t,r){const n=Hs(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Ws=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Hs(e,"Component");if("object"==typeof e)switch(e.$$typeof){case _s.ForwardRef:return $s(e,e.render,"ForwardRef");case _s.Memo:return $s(e,e.type,"memo");default:return}}},getFunctionName:Fs});function Bs(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]=Bs(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Vs="undefined"!=typeof window?C.useLayoutEffect:C.useEffect;function Us(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Gs=Object.freeze({__proto__:null,default:Us});function Ys(e){if(e.type)return e;if("#"===e.charAt(0))return Ys(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(zr(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(zr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Ks(e,t){return e=Ys(e),t=function(e,t=0,r=1){return Us(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 Xs(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Js(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Zs(e){return e&&e.ownerDocument||document}function Qs(e){return Zs(e).defaultView||window}function el(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let tl=0;const rl=C["useId".toString()];function nl(e){if(void 0!==rl){return rl()}return function(e){const[t,r]=C.useState(e),n=t;return C.useEffect((()=>{null==t&&(tl+=1,r(`mui-${tl}`))}),[t]),n}(e)}function ol({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=C.useRef(void 0!==e),[i,a]=C.useState(t);return[o?e:i,C.useCallback((e=>{o||a(e)}),[])]}function il(e){const t=C.useRef(e);return Vs((()=>{t.current=e})),C.useRef(((...e)=>(0,t.current)(...e))).current}function al(...e){return C.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{el(e,t)}))}),e)}const sl={};const ll=[];class ul{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ul}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function cl(){const e=function(e,t){const r=C.useRef(sl);return r.current===sl&&(r.current=e(t)),r}(ul.create).current;return function(e){C.useEffect(e,ll)}(e.disposeEffect),e}let dl=!0,pl=!1;const fl=new ul,hl={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 ml(e){e.metaKey||e.altKey||e.ctrlKey||(dl=!0)}function gl(){dl=!1}function bl(){"hidden"===this.visibilityState&&pl&&(dl=!0)}function vl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return dl||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!hl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function yl(){const e=C.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ml,!0),t.addEventListener("mousedown",gl,!0),t.addEventListener("pointerdown",gl,!0),t.addEventListener("touchstart",gl,!0),t.addEventListener("visibilitychange",bl,!0))}),[]),t=C.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!vl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(pl=!0,fl.start(100,(()=>{pl=!1})),t.current=!1,!0)},ref:e}}function xl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Sl(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 wl(e){return"string"==typeof e}function Cl(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 El(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 Rl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Pl(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Wr(e,Rl),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=gs(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=Cl($r({},o,n)),s=El(n),l=El(o),u=t(a),c=gs(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||wl(e)?t:$r({},t,{ownerState:$r({},t.ownerState,r)})}(r,$r({},l,{ref:al(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Al(e){var t;return parseInt(C.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Il=C.createContext(null);function Ml(){return C.useContext(Il)}var kl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Dl(e){const{children:t,theme:r}=e,n=Ml(),o=C.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[kl]=null!==n),e}),[r,n]);return or.jsx(Il.Provider,{value:o,children:t})}const Tl=["value"],Ol=C.createContext();function Ll(e){let{value:t}=e,r=Wr(e,Tl);return or.jsx(Ol.Provider,$r({value:null==t||t},r))}const ql=C.createContext(void 0);function Nl({value:e,children:t}){return or.jsx(ql.Provider,{value:e,children:t})}function jl({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?Bs(o.defaultProps,n):o.styleOverrides||o.variants?n:Bs(o,n)}({props:e,name:t,theme:{components:C.useContext(ql)}})}const _l={};function zl(e,t,r,n=!1){return C.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 Fl(e){const{children:t,theme:r,themeId:n}=e,o=is(_l),i=Ml()||_l,a=zl(n,o,r),s=zl(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=is(),r=nl()||"",{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};`:"",Vs((()=>{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?or.jsx(us,{styles:o}):null}(a);return or.jsx(Dl,{theme:s,children:or.jsx(Ii.Provider,{value:a,children:or.jsx(Ll,{value:l,children:or.jsxs(Nl,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Hl(e){return Hl="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},Hl(e)}function $l(e){var t=function(e,t){if("object"!=Hl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Hl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Hl(t)?t:t+""}function Wl(e,t){return $r({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Bl={},Vl={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Vl);var Ul=Vl.exports,Gl=Yt(Fr),Yl=Yt(Gs),Kl=Ul;Object.defineProperty(Bl,"__esModule",{value:!0});var Xl=Bl.alpha=uu;Bl.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=ou(e),a=ou(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return au({type:"rgb",values:s})},Bl.colorChannel=void 0;var Jl=Bl.darken=cu;Bl.decomposeColor=ou,Bl.emphasize=pu;var Zl=Bl.getContrastRatio=function(e,t){const r=lu(e),n=lu(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Bl.getLuminance=lu,Bl.hexToRgb=nu,Bl.hslToRgb=su;var Ql=Bl.lighten=du;Bl.private_safeAlpha=function(e,t,r){try{return uu(e,t)}catch(t){return e}},Bl.private_safeColorChannel=void 0,Bl.private_safeDarken=function(e,t,r){try{return cu(e,t)}catch(t){return e}},Bl.private_safeEmphasize=function(e,t,r){try{return pu(e,t)}catch(t){return e}},Bl.private_safeLighten=function(e,t,r){try{return du(e,t)}catch(t){return e}},Bl.recomposeColor=au,Bl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=ou(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 eu=Kl(Gl),tu=Kl(Yl);function ru(e,t=0,r=1){return(0,tu.default)(e,t,r)}function nu(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 ou(e){if(e.type)return e;if("#"===e.charAt(0))return ou(nu(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,eu.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,eu.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const iu=e=>{const t=ou(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Bl.colorChannel=iu;function au(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 su(e){e=ou(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])),au({type:s,values:l})}function lu(e){let t="hsl"===(e=ou(e)).type||"hsla"===e.type?ou(su(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 uu(e,t){return e=ou(e),t=ru(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,au(e)}function cu(e,t){if(e=ou(e),t=ru(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 au(e)}function du(e,t){if(e=ou(e),t=ru(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 au(e)}function pu(e,t=.15){return lu(e)>.5?cu(e,t):du(e,t)}Bl.private_safeColorChannel=(e,t)=>{try{return iu(e)}catch(t){return e}};const fu=["mode","contrastThreshold","tonalOffset"],hu={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:ir.white,default:ir.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}},mu={text:{primary:ir.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:ir.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 gu(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=Ql(e.main,o):"dark"===t&&(e.dark=Jl(e.main,i)))}function bu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Wr(e,fu),i=e.primary||function(e="light"){return"dark"===e?{main:vr,light:br,dark:yr}:{main:xr,light:yr,dark:Sr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:pr,light:dr,dark:hr}:{main:mr,light:fr,dark:gr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:lr,light:ar,dark:ur}:{main:ur,light:sr,dark:cr}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Cr,light:wr,dark:Rr}:{main:Rr,light:Er,dark:Pr}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ir,light:Ar,dark:kr}:{main:Dr,light:Mr,dark:Tr}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Lr,light:Or,dark:Nr}:{main:"#ed6c02",light:qr,dark:jr}}(t);function d(e){return Zl(e,mu.text.primary)>=r?mu.text.primary:hu.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(zr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(zr(12,t?` (${t})`:"",JSON.stringify(e.main)));return gu(e,"light",o,n),gu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:mu,light:hu};return Ji($r({common:$r({},ir),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 vu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const yu={textTransform:"uppercase"},xu='"Roboto", "Helvetica", "Arial", sans-serif';function Su(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=xu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Wr(r,vu),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===xu?{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,yu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,yu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ji($r({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function wu(...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 Cu=["none",wu(0,2,1,-1,0,1,1,0,0,1,3,0),wu(0,3,1,-2,0,2,2,0,0,1,5,0),wu(0,3,3,-2,0,3,4,0,0,1,8,0),wu(0,2,4,-1,0,4,5,0,0,1,10,0),wu(0,3,5,-1,0,5,8,0,0,1,14,0),wu(0,3,5,-1,0,6,10,0,0,1,18,0),wu(0,4,5,-2,0,7,10,1,0,2,16,1),wu(0,5,5,-3,0,8,10,1,0,3,14,2),wu(0,5,6,-3,0,9,12,1,0,3,16,2),wu(0,6,6,-3,0,10,14,1,0,4,18,3),wu(0,6,7,-4,0,11,15,1,0,4,20,3),wu(0,7,8,-4,0,12,17,2,0,5,22,4),wu(0,7,8,-4,0,13,19,2,0,5,24,4),wu(0,7,9,-4,0,14,21,2,0,5,26,4),wu(0,8,9,-5,0,15,22,2,0,6,28,5),wu(0,8,10,-5,0,16,24,2,0,6,30,5),wu(0,8,11,-5,0,17,26,2,0,6,32,5),wu(0,9,11,-5,0,18,28,2,0,7,34,6),wu(0,9,12,-6,0,19,29,2,0,7,36,6),wu(0,10,13,-6,0,20,31,3,0,8,38,7),wu(0,10,13,-6,0,21,33,3,0,8,40,7),wu(0,10,14,-6,0,22,35,3,0,8,42,7),wu(0,11,14,-7,0,23,36,3,0,9,44,8),wu(0,11,15,-7,0,24,38,3,0,9,46,8)],Eu=["duration","easing","delay"],Ru={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)"},Pu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Au(e){return`${Math.round(e)}ms`}function Iu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Mu(e){const t=$r({},Ru,e.easing),r=$r({},Pu,e.duration);return $r({getAutoHeightDuration:Iu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Wr(n,Eu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Au(o)} ${i} ${"string"==typeof a?a:Au(a)}`)).join(",")}},e,{easing:t,duration:r})}const ku={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Du=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Tu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Wr(e,Du);if(e.vars&&void 0===e.generateCssVars)throw new Error(zr(18));const s=bu(n),l=ns(e);let u=Ji(l,{mixins:Wl(l.breakpoints,r),palette:s,shadows:Cu.slice(),typography:Su(s,i),transitions:Mu(o),zIndex:$r({},ku)});return u=Ji(u,a),u=t.reduce(((e,t)=>Ji(e,t)),u),u.unstable_sxConfig=$r({},Za,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return es({sx:e,theme:this})},u}const Ou=Tu();function Lu(){const e=ss(Ou);return e[Hr]||e}var qu,Nu={},ju={exports:{}};function _u(){return qu||(qu=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}(ju)),ju.exports}var zu,Fu={exports:{}};function Hu(){return zu||(zu=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}(Fu)),Fu.exports}var $u=Yt(Yi),Wu=Yt(Zi),Bu=Yt(la),Vu=Yt(Ws),Uu=Yt(os),Gu=Yt(ps),Yu=Ul;Object.defineProperty(Nu,"__esModule",{value:!0});var Ku=Nu.default=function(e={}){const{themeId:t,defaultTheme:r=lc,rootShouldForwardProp:n=ac,slotShouldForwardProp:o=ac}=e,i=e=>(0,tc.default)((0,Xu.default)({},e,{theme:cc((0,Xu.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Zu.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=dc(uc(l))}=a,p=(0,Ju.default)(a,oc),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=ac;"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,Zu.default)(e,(0,Xu.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Qu.isPlainObject)(e)?n=>{const o=cc({theme:n.theme,defaultTheme:r,themeId:t});return pc(e,(0,Xu.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=cc((0,Xu.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]=pc(r,(0,Xu.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=cc((0,Xu.default)({},e,{defaultTheme:r,themeId:t}));return pc({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Xu.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}};Nu.shouldForwardProp=ac,Nu.systemDefaultTheme=void 0;var Xu=Yu(_u()),Ju=Yu(Hu()),Zu=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=ic(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}($u),Qu=Wu;Yu(Bu),Yu(Vu);var ec=Yu(Uu),tc=Yu(Gu);const rc=["ownerState"],nc=["variants"],oc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ic(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(ic=function(e){return e?r:t})(e)}function ac(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function sc(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const lc=Nu.systemDefaultTheme=(0,ec.default)(),uc=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function cc({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function dc(e){return e?(t,r)=>r[e]:null}function pc(e,t,r){let{ownerState:n}=t,o=(0,Ju.default)(t,rc);const i="function"==typeof e?e((0,Xu.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>pc(e,(0,Xu.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Ju.default)(i,nc);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Xu.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,Xu.default)({ownerState:n},o,n)):e.style;t.push(r?sc((0,Zu.internal_serializeStyles)(i),r):i)}})),t}return r?sc((0,Zu.internal_serializeStyles)(i),r):i}function fc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const hc=e=>fc(e)&&"classes"!==e,mc=Ku({themeId:Hr,defaultTheme:Ou,rootShouldForwardProp:hc}),gc=["theme"];function bc(e){let{theme:t}=e,r=Wr(e,gc);const n=t[Hr];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=$r({},n,{vars:null}):t&&!t.vars&&(o=$r({},t,{vars:null}))),or.jsx(Fl,$r({},r,{themeId:n?Hr:void 0,theme:o}))}const vc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function yc(e){return jl(e)}function xc(e){return ys("MuiSvgIcon",e)}xs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Sc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],wc=mc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${sa(r.color)}`],t[`fontSize${sa(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]}})),Cc=C.forwardRef((function(e,t){const r=yc({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=Wr(r,Sc),f=C.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 Sl({root:["root","inherit"!==t&&`color${sa(t)}`,`fontSize${sa(r)}`]},xc,n)})(h);return or.jsxs(wc,$r({as:a,className:gs(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?or.jsx("title",{children:c}):null]}))}));function Ec(e,t){return Ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ec(e,t)}function Rc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ec(e,t)}Cc.muiName="SvgIcon";var Pc=!1,Ac=S.createContext(null),Ic="unmounted",Mc="exited",kc="entering",Dc="entered",Tc="exiting",Oc=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=Mc,n.appearStatus=kc):o=Dc:o=t.unmountOnExit||t.mountOnEnter?Ic:Mc,n.state={status:o},n.nextCallback=null,n}Rc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ic?{status:Mc}: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!==kc&&r!==Dc&&(t=kc):r!==kc&&r!==Dc||(t=Tc)}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===kc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:W.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Mc&&this.setState({status:Ic})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[W.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Pc?this.safeSetState({status:Dc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:kc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Dc},(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:W.findDOMNode(this);t&&!Pc?(this.props.onExit(n),this.safeSetState({status:Tc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Mc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Mc},(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:W.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===Ic)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=Wr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Ac.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function Lc(){}function qc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nc(e,t){var r=Object.create(null);return e&&P.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&E(e)?t(e):e}(e)})),r}function jc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function _c(e,t,r){var n=Nc(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(E(a)){var s=i in t,l=i in n,u=t[i],c=E(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&E(u)&&(o[i]=R(a,{onExited:r.bind(null,a),in:u.props.in,exit:jc(a,"exit",e),enter:jc(a,"enter",e)})):o[i]=R(a,{in:!1}):o[i]=R(a,{onExited:r.bind(null,a),in:!0,exit:jc(a,"exit",e),enter:jc(a,"enter",e)})}})),o}Oc.contextType=Ac,Oc.propTypes={},Oc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lc,onEntering:Lc,onEntered:Lc,onExit:Lc,onExiting:Lc,onExited:Lc},Oc.UNMOUNTED=Ic,Oc.EXITED=Mc,Oc.ENTERING=kc,Oc.ENTERED=Dc,Oc.EXITING=Tc;var zc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Fc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(qc(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Rc(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,Nc(r.children,(function(e){return R(e,{onExited:n.bind(null,e),in:!0,appear:jc(e,"appear",r),enter:jc(e,"enter",r),exit:jc(e,"exit",r)})}))):_c(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Nc(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=Wr(e,["component","childFactory"]),o=this.state.contextValue,i=zc(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(Ac.Provider,{value:o},i):S.createElement(Ac.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);Fc.propTypes={},Fc.defaultProps={component:"div",childFactory:function(e){return e}};const Hc=e=>e.scrollTop;function $c(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 Wc(e){return ys("MuiPaper",e)}xs("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 Bc=["className","component","elevation","square","variant"],Vc=mc("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(${Xl("#fff",vc(t.elevation))}, ${Xl("#fff",vc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Uc=C.forwardRef((function(e,t){const r=yc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Wr(r,Bc),u=$r({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Sl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Wc,o)})(u);return or.jsx(Vc,$r({as:o,ownerState:u,className:gs(c.root,n),ref:t},l))}));const Gc=xs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Yc=["center","classes","className"];let Kc,Xc,Jc,Zc,Qc=e=>e;const ed=_i(Kc||(Kc=Qc`
|
|
18
18
|
0% {
|
|
19
19
|
transform: scale(0);
|
|
20
20
|
opacity: 0.1;
|
|
@@ -24,7 +24,7 @@ function $i(e,t){let r;return r=t?Oi(e).withConfig({displayName:t.label,shouldFo
|
|
|
24
24
|
transform: scale(1);
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
}
|
|
27
|
-
`)),
|
|
27
|
+
`)),td=_i(Xc||(Xc=Qc`
|
|
28
28
|
0% {
|
|
29
29
|
opacity: 1;
|
|
30
30
|
}
|
|
@@ -32,7 +32,7 @@ function $i(e,t){let r;return r=t?Oi(e).withConfig({displayName:t.label,shouldFo
|
|
|
32
32
|
100% {
|
|
33
33
|
opacity: 0;
|
|
34
34
|
}
|
|
35
|
-
`)),
|
|
35
|
+
`)),rd=_i(Jc||(Jc=Qc`
|
|
36
36
|
0% {
|
|
37
37
|
transform: scale(1);
|
|
38
38
|
}
|
|
@@ -44,7 +44,7 @@ function $i(e,t){let r;return r=t?Oi(e).withConfig({displayName:t.label,shouldFo
|
|
|
44
44
|
100% {
|
|
45
45
|
transform: scale(1);
|
|
46
46
|
}
|
|
47
|
-
`)),
|
|
47
|
+
`)),nd=mc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),od=mc((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]=C.useState(!1),p=gs(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=gs(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),C.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),or.jsx("span",{className:p,style:f,children:or.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Zc||(Zc=Qc`
|
|
48
48
|
opacity: 0;
|
|
49
49
|
position: absolute;
|
|
50
50
|
|
|
@@ -87,7 +87,7 @@ function $i(e,t){let r;return r=t?Oi(e).withConfig({displayName:t.label,shouldFo
|
|
|
87
87
|
animation-iteration-count: infinite;
|
|
88
88
|
animation-delay: 200ms;
|
|
89
89
|
}
|
|
90
|
-
`),Bc.rippleVisible,Jc,550,(({theme:e})=>e.transitions.easing.easeInOut),Bc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Bc.child,Bc.childLeaving,Zc,550,(({theme:e})=>e.transitions.easing.easeInOut),Bc.childPulsate,Qc,(({theme:e})=>e.transitions.easing.easeInOut)),rd=C.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Wr(r,Vc),[s,l]=C.useState([]),u=C.useRef(0),c=C.useRef(null);C.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=C.useRef(!1),p=sl(),f=C.useRef(null),h=C.useRef(null),m=C.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,or.jsx(td,{classes:{ripple:fs(o.ripple,Bc.ripple),rippleVisible:fs(o.rippleVisible,Bc.rippleVisible),ripplePulsate:fs(o.ripplePulsate,Bc.ripplePulsate),child:fs(o.child,Bc.child),childLeaving:fs(o.childLeaving,Bc.childLeaving),childPulsate:fs(o.childPulsate,Bc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=C.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=C.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=C.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 C.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),or.jsx(ed,$r({className:fs(Bc.root,o.root,i),ref:h},a,{children:or.jsx(jc,{component:null,exit:!0,children:s})}))}));function nd(e){return gs("MuiButtonBase",e)}const od=bs("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=C.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:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:R,onTouchMove:P,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:k,type:D}=r,T=Wr(r,id),O=C.useRef(null),L=C.useRef(null),q=nl(L,k),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=gl(),[F,H]=C.useState(!1);l&&F&&H(!1),C.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[$,W]=C.useState(!1);C.useEffect((()=>{W(!0)}),[]);const B=$&&!u&&!l;function V(e,t,r=c){return rl((n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0}))}C.useEffect((()=>{F&&d&&!u&&$&&L.current.pulsate()}),[u,d,F,$]);const U=V("start",S),G=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),J=V("start",A),Z=V("stop",R),Q=V("stop",P),ee=V("stop",(e=>{_(e),!1===N.current&&H(!1),f&&f(e)}),!1),te=rl((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=C.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)}))),x&&x(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:I,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=vl({root:["root",t&&"disabled",r&&"focusVisible"]},nd,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return or.jsxs(ad,$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:I,type:D},se,T,{children:[i,B?or.jsx(rd,$r({ref:q,center:o},M)):null]}))}));function ld(e){return gs("MuiIconButton",e)}const ud=bs("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${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})`: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 $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})`: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=C.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=Wr(r,cd),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 vl({root:["root",r&&"disabled","default"!==n&&`color${oa(n)}`,o&&`edge${oa(o)}`,`size${oa(i)}`]},ld,t)})(d);return or.jsx(dd,$r({className:fs(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function fd(e){return gs("MuiTypography",e)}bs("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${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}))),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=C.forwardRef((function(e,t){const r=gc({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=gd}=o,f=Wr(o,hd),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]||gd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return vl({root:["root",i,"inherit"!==e.align&&`align${oa(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},fd,a)})(h);return or.jsx(md,$r({as:m,ref:t,ownerState:h,className:fs(g.root,a)},f))}));const yd=C.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=C.useState(null),s=nl(C.isValidElement(r)?El(r):null,t);if($s((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),$s((()=>{if(i&&!o)return Js(t,i),()=>{Js(t,null)}}),[t,i,o]),o){if(C.isValidElement(r)){const e={ref:s};return C.cloneElement(r,e)}return or.jsx(C.Fragment,{children:r})}return or.jsx(C.Fragment,{children:i?B.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=C.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Wr(e,xd),{current:l}=C.useRef(null!=a),u=C.useRef(null),c=nl(t,u),d=C.useRef(null),p=C.useRef(null),f=C.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=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=rl((()=>{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=C.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=C.useRef(-1);$s((()=>{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]),$s((()=>{m()}));return or.jsxs(C.Fragment,{children:[or.jsx("textarea",$r({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),or.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:$r({},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 Pd=C.createContext(void 0);function Ad(){return C.useContext(Pd)}function Id(e){return or.jsx(as,$r({},e,{defaultTheme:ku,themeId:Hr}))}function Md(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function kd(e,t=!1){return e&&(Md(e.value)&&""!==e.value||t&&Md(e.defaultValue)&&""!==e.defaultValue)}function Dd(e){return gs("MuiInputBase",e)}const Td=bs("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${oa(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})=>$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",[`&.${Td.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=pc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:qd})((({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] + .${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=or.jsx(Id,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),zd=C.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:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:R,onClick:P,onFocus:A,onKeyDown:I,onKeyUp:M,placeholder:k,readOnly:D,renderSuffix:T,rows:O,slotProps:L={},slots:q={},startAdornment:N,type:j="text",value:_}=n,z=Wr(n,Od),F=null!=b.value?b.value:_,{current:H}=C.useRef(null!=F),$=C.useRef(),W=C.useCallback((e=>{}),[]),B=nl($,v,b.ref,W),[V,U]=C.useState(!1),G=Ad(),Y=Rd({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,C.useEffect((()=>{!G&&d&&V&&(U(!1),E&&E())}),[G,d,V,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=C.useCallback((e=>{kd(e)?K&&K():X&&X()}),[K,X]);$s((()=>{H&&J({value:F})}),[F,J,H]);C.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;S&&"input"===Z&&(Q=$r(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Q),Z=Ed);C.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:S,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 vl({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"]},Dd,t)})(ee),re=q.root||l.Root||Nd,ne=L.root||u.root||{},oe=q.input||l.Input||jd;return Q=$r({},Q,null!=(r=L.input)?r:u.input),or.jsxs(C.Fragment,{children:[!p&&_d,or.jsxs(re,$r({},ne,!yl(re)&&{ownerState:$r({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),P&&P(e)}},z,{className:fs(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,or.jsx(Pd.Provider,{value:null,children:or.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?$.current:{value:"x"})},name:w,placeholder:k,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:I,onKeyUp:M,type:j},Q,!yl(oe)&&{as:Z,ownerState:$r({},ee,Q.ownerState)},{ref:B,className:fs(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(zr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T($r({},Y,{startAdornment:N})):null]}))]})}));function Fd(e){return gs("MuiInput",e)}const Hd=$r({},Td,bs("MuiInput",["root","underline","input"]));function $d(e){return gs("MuiOutlinedInput",e)}const Wd=$r({},Td,bs("MuiOutlinedInput",["root","notchedOutline","input"]));function Bd(e){return gs("MuiFilledInput",e)}const Vd=$r({},Td,bs("MuiFilledInput",["root","underline","input"]));var Ud=function(e,t){function r(r,n){return or.jsx(xc,$r({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=xc.muiName,C.memo(C.forwardRef(r))}(or.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=C.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=Wr(e,Gd),y=C.useRef(null),x=nl(y,El(a),t),S=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},w=S(d),E=S(((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=S(c),P=S(h),A=S((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)})),I=S(f);return or.jsx(b,$r({appear:i,in:l,nodeRef:y,onEnter:E,onEntered:R,onEntering:w,onExit:A,onExited:I,onExiting:P,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>C.cloneElement(a,$r({style:$r({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Yd[e],m,a.props.style),ref:x},t))}))}));function Xd(e){return gs("MuiBackdrop",e)}bs("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})=>$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"}))),Qd=C.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=Wr(i,Jd),v=$r({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return vl({root:["root",r&&"invisible"]},Xd,t)})(v),x=null!=(r=f.root)?r:c.root;return or.jsx(m,$r({in:p,timeout:g},b,{children:or.jsx(Zd,$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({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),ep=bs("MuiBox",["root"]),tp=Mu(),rp=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=$i("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ja);return C.forwardRef((function(e,a){const s=os(r),l=ls(e),{className:u,component:c="div"}=l,d=Wr(l,hs);return or.jsx(i,$r({as:c,ref:a,className:fs(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Hr,defaultTheme:tp,defaultClassName:ep.root,generateClassName:ds.generate});function np(e){return gs("MuiButton",e)}const op=bs("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=C.createContext({}),ap=C.createContext(void 0),sp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],lp=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}}),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}${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})`: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":$r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${op.focusVisible}`]:$r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${op.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 ${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${oa(r.size)}`]]}})((({ownerState:e})=>$r({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${oa(r.size)}`]]}})((({ownerState:e})=>$r({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},lp(e)))),pp=C.forwardRef((function(e,t){const r=C.useContext(ip),n=C.useContext(ap),o=gc({props:Hs(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Wr(o,sp),x=$r({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $r({},a,vl({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)}`]},np,a))})(x),w=g&&or.jsx(cp,{className:S.startIcon,ownerState:x,children:g}),E=p&&or.jsx(dp,{className:S.endIcon,ownerState:x,children:p}),R=n||"";return or.jsxs(up,$r({ownerState:x,className:fs(r.className,S.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:fs(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[w,i,E]}))}));function fp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hp(e){return parseInt(Xs(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=Ks(e);return t.body===e?Xs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=bl(Ks(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${hp(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=`${hp(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 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=C.useRef(!1),u=C.useRef(null),c=C.useRef(null),d=C.useRef(null),p=C.useRef(null),f=C.useRef(!1),h=C.useRef(null),m=nl(El(t),h),g=C.useRef(null);C.useEffect((()=>{s&&h.current&&(f.current=!r)}),[r,s]),C.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]),C.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 b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return or.jsxs(C.Fragment,{children:[or.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),C.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)}}),or.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=C.useRef({}),f=C.useRef(null),h=C.useRef(null),m=nl(h,d),[g,b]=C.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},w=rl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ks(f.current).body;o.add(x(),e),h.current&&S()})),E=C.useCallback((()=>o.isTopModal(x())),[o]),R=rl((e=>{f.current=e,e&&(c&&E()?S():h.current&&fp(h.current,y))})),P=C.useCallback((()=>{o.remove(x(),y)}),[y,o]);C.useEffect((()=>()=>{P()}),[P]),C.useEffect((()=>{c?w():v&&i||P()}),[c,P,v,i,w]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=xl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=$r({},r,t);return $r({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>$r({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Gs((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Gs((()=>{b(!0),s&&s(),i&&P()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function Ep(e){return gs("MuiModal",e)}bs("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"],Pp=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})=>$r({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ap=pc(Qd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ip=C.forwardRef((function(e,t){var r,n,o,i,a,s;const l=gc({name:"MuiModal",props:e}),{BackdropComponent:u=Ap,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:P=!1,onBackdropClick:A,open:I,slotProps:M,slots:k}=l,D=Wr(l,Rp),T=$r({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:R,keepMounted:P}),{getRootProps:O,getBackdropProps:L,getTransitionProps:q,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=Cp($r({},T,{rootRef:t})),F=$r({},T,{exited:_}),H=(e=>{const{open:t,exited:r,classes:n}=e;return vl({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 W=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:Pp,B=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==M?void 0:M.root)?a:b.root,U=null!=(s=null==M?void 0:M.backdrop)?s:b.backdrop,G=Cl({elementType:W,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:fs(d,null==V?void 0:V.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=Cl({elementType:B,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L($r({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:fs(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return P||I||z&&!_?or.jsx(yd,{ref:N,container:h,disablePortal:S,children:or.jsxs(W,$r({},G,{children:[!R&&u?or.jsx(B,$r({},Y)):null,or.jsx(Sp,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:j,open:I,children:C.cloneElement(f,$)})]}))}):null}));function Mp(e){return gs("MuiDivider",e)}const kp=bs("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})=>$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)`: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})=>$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%"}}))),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})=>$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)`}))),Lp=C.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=Wr(r,Dp),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 vl({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"]},Mp,n)})(h);return or.jsx(Tp,$r({as:a,className:fs(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?or.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 $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}},[`&.${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&&$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=pc(jd,{name:"MuiFilledInput",slot:"Input",overridesResolver:qd})((({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}))),_p=C.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=Wr(a,qp),g=$r({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,vl({root:["root",!r&&"underline"],input:["input"]},Bd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Yi(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 or.jsx(zd,$r({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),Wp=C.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=Wr(e,zp),b=sl(),v=C.useRef(),y=Du(),x=C.useRef(null),S=nl(x,El(o),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},E=w(u),R=w(((e,t)=>{_c(e);const{duration:r,delay:n,easing:o}=zc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:$p?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),P=w(l),A=w(p),I=w((e=>{const{duration:t,delay:r,easing:n}=zc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.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)})),M=w(d);return or.jsx(m,$r({appear:n,in:a,nodeRef:x,onEnter:R,onEntered:P,onEntering:E,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>C.cloneElement(o,$r({style:$r({opacity:0,transform:Fp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Hp[e],f,o.props.style),ref:S},t))}))}));Wp.muiSupportAuto=!0;const Bp=["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})`),$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"}})})),Up=pc(jd,{name:"MuiInput",slot:"Input",overridesResolver:qd})({}),Gp=C.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=Wr(a,Bp),b=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,vl({root:["root",!r&&"underline"],input:["input"]},Fd,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Yi(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 or.jsx(zd,$r({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function Yp(e){return gs("MuiLink",e)}Gp.muiName="Input";const Kp=bs("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=aa(e,`palette.${r}`,!1)||t.color,o=aa(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${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: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=C.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=Wr(r,Zp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=gl(),[b,v]=C.useState(!1),y=nl(t,g),x=$r({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return vl({root:["root",`underline${oa(o)}`,"button"===r&&"button",n&&"focusVisible"]},Yp,t)})(x);return or.jsx(Qp,$r({color:o,className:fs(S.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(Xp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),tf=C.createContext({});function rf(e){return gs("MuiList",e)}bs("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})=>$r({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),af=C.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=Wr(r,nf),c=C.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 vl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},rf,t)})(d);return or.jsx(tf.Provider,{value:c,children:or.jsxs(of,$r({as:i,className:fs(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function sf(e){return gs("MuiListItemIcon",e)}const lf=bs("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})=>$r({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),df=C.forwardRef((function(e,t){const r=gc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Wr(r,uf),i=$r({},r,{alignItems:C.useContext(tf).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return vl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},sf,r)})(i);return or.jsx(cf,$r({className:fs(a.root,n),ownerState:i,ref:t},o))})),pf=bs("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=C.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=Wr(e,ff),p=C.useRef(null),f=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$s((()=>{n&&p.current.focus()}),[n]),C.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${bl(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;C.Children.forEach(i,((e,t)=>{C.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=C.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),C.cloneElement(e,t)}return e}));return or.jsx(af,$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,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 gs("MuiPopover",e)}bs("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 Pf(e){return"function"==typeof e?e():e}const Af=pc(Ip,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),If=pc(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}),Mf=C.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:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Wp,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,P=Wr(i.TransitionProps,xf),A=Wr(i,Sf),I=null!=(r=null==y?void 0:y.paper)?r:b,M=C.useRef(),k=nl(M,I.ref),D=$r({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:P}),T=(e=>{const{classes:t}=e;return vl({root:["root"],paper:["paper"]},yf,t)})(D),O=C.useCallback((()=>{if("anchorPosition"===c)return u;const e=Pf(s),t=(e&&1===e.nodeType?e:Ks(M.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=C.useCallback((e=>({vertical:Cf(e,x.vertical),horizontal:Ef(e,x.horizontal)})),[x.horizontal,x.vertical]),q=C.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=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:Rf(r)}}),[s,c,O,L,m]),[N,j]=C.useState(g),_=C.useCallback((()=>{const e=M.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]);C.useEffect((()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[s,R,_]);C.useEffect((()=>{g&&_()})),C.useImperativeHandle(a,(()=>g?{updatePosition:()=>{_()}}:null),[g,_]),C.useEffect((()=>{if(!g)return;const e=Ys((()=>{_()})),t=Xs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,_]);let z=w;"auto"!==w||S.muiSupportAuto||(z=void 0);const F=f||(s?Ks(Pf(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:Af,$=null!=(o=null==v?void 0:v.paper)?o:If,W=Cl({elementType:$,externalSlotProps:$r({},I,{style:N?I.style:$r({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:D,className:fs(T.paper,null==I?void 0:I.className)}),B=Cl({elementType:H,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:fs(T.root,p)}),{slotProps:V}=B,U=Wr(B,wf);return or.jsx(H,$r({},U,!yl(H)&&{slotProps:V,disableScrollLock:R},{children:or.jsx(S,$r({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},P,{children:or.jsx($,$r({},W,{children:d}))}))}))}));function kf(e){return gs("MuiMenu",e)}bs("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(Mf,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nf=pc(If,{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=C.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,y=Wr(o.TransitionProps,Df),x=Wr(o,Tf),S=(()=>{const e=C.useContext(kl);return null!=e&&e})(),w=$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 vl({root:["root"],paper:["paper"],list:["list"]},kf,t)})(w),R=i&&!l&&d,P=C.useRef(null);let A=-1;C.Children.map(a,((e,t)=>{C.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=b.paper)?r:Nf,M=null!=(n=v.paper)?n:p,k=Cl({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[E.root,s]}),D=Cl({elementType:I,externalSlotProps:M,ownerState:w,className:E.paper});return or.jsx(qf,$r({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Of:Lf,slots:{paper:I,root:b.root},slotProps:{root:k,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:$r({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:or.jsx(jf,$r({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:g},u,{className:fs(E.list,u.className),children:a}))}))}));function zf(e){return gs("MuiMenuItem",e)}const Ff=bs("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})=>$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"}},[`&.${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&&$r({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${lf.root} svg`]:{fontSize:"1.25rem"}})))),Wf=C.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=Wr(r,Hf),f=C.useContext(tf),h=C.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=C.useRef(null);$s((()=>{n&&m.current&&m.current.focus()}),[n]);const g=$r({},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 $r({},a,vl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},zf,a))})(r),v=nl(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),or.jsx(tf.Provider,{value:h,children:or.jsx($f,$r({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:fs(b.focusVisible,l),className:fs(b.root,d)},p,{ownerState:g,classes:b}))})}));function Bf(e){return gs("MuiNativeSelect",e)}const Vf=bs("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})=>$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"},[`&.${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})=>$r({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${oa(r.variant)}`],r.open&&t.iconOpen]}})(Kf),Jf=C.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Wr(e,Uf),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 vl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${oa(r)}`,i&&"iconOpen",n&&"disabled"]},Bf,t)})(u);return or.jsxs(C.Fragment,{children:[or.jsx(Yf,$r({ownerState:u,className:fs(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:or.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})=>$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 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 $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"}))})),oh=pc((function(e){const{className:t,label:r,notched:n}=e,o=Wr(e,Qf),i=null!=r&&""!==r,a=$r({},e,{notched:n,withLabel:i});return or.jsx(eh,$r({"aria-hidden":!0,className:t,ownerState:a},o,{children:or.jsx(th,{ownerState:a,children:i?or.jsx("span",{children:r}):Zf||(Zf=or.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})=>$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}))),ah=C.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=Wr(s,rh),b=(e=>{const{classes:t}=e;return $r({},t,vl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$d,t))})(s),v=Ad(),y=Rd({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=$r({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(r=null!=(n=h.root)?n:l.Root)?r:nh,w=null!=(o=null!=(i=h.input)?i:l.Input)?o:ih;return or.jsx(zd,$r({slots:{root:S,input:w},renderSuffix:e=>or.jsx(oh,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=or.jsxs(C.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({},b,{notchedOutline:null})}))}));function sh(e){return gs("MuiSelect",e)}ah.muiName="Input";const lh=bs("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${oa(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=C.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:w,onFocus:E,onOpen:R,open:P,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:k,value:D,variant:T="standard"}=e,O=Wr(e,ch),[L,q]=tl({controlled:D,default:c,name:"Select"}),[N,j]=tl({controlled:P,default:u,name:"Select"}),_=C.useRef(null),z=C.useRef(null),[F,H]=C.useState(null),{current:$}=C.useRef(null!=P),[W,B]=C.useState(),V=nl(t,m),U=C.useCallback((e=>{z.current=e,e&&H(e)}),[]),G=null==F?void 0:F.parentNode;C.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:_.current,value:L})),[L]),C.useEffect((()=>{u&&N&&F&&!$&&(B(a?null:G.clientWidth),z.current.focus())}),[F,a]),C.useEffect((()=>{i&&z.current.focus()}),[i]),C.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):w&&w(t),$||(B(a?null:G.clientWidth),j(e))},K=C.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),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),S(o,e)}v||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(kd({value:L})||p)&&(I?Z=I(L):te=!0);const re=K.map((e=>{if(!C.isValidElement(e))return null;let t;if(v){if(!Array.isArray(L))throw new Error(zr(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 C.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=W;!a&&$&&F&&(oe=G.clientWidth),ne=void 0!==k?k:d?null:0;const ie=M.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 vl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${oa(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},sh,t)})(ae),le=$r({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=el();return or.jsxs(C.Fragment,{children:[or.jsx(dh,$r({ref:U,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:y}}),x(e))},onFocus:E},M,{ownerState:ae,className:fs(M.className,se.select,l),id:ie,children:mh(Z)?uh||(uh=or.jsx("span",{className:"notranslate",children:""})):Z})),or.jsx(fh,$r({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(q(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),or.jsx(ph,{as:h,className:se.icon,ownerState:ae}),or.jsx(_f,$r({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:$r({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:$r({},b.slotProps,{paper:$r({},le,{style:$r({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),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=C.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:y,open:x,renderValue:S,SelectDisplayProps:w,variant:E="outlined"}=r,R=Wr(r,bh),P=b?Jf:gh,A=Rd({props:r,muiFormControl:Ad(),states:["variant","error"]}),I=A.variant||E,M=$r({},r,{variant:I,classes:i}),k=(e=>{const{classes:t}=e;return t})(M),D=Wr(k,vh),T=d||{standard:or.jsx(xh,{ownerState:M}),outlined:or.jsx(Sh,{label:f,ownerState:M}),filled:or.jsx(wh,{ownerState:M})}[I],O=nl(t,El(T));return or.jsx(C.Fragment,{children:C.cloneElement(T,$r({inputComponent:P,inputProps:$r({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:$r({id:c},w)},p,{classes:p?Yi(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===I?{notched:!0}:{},{ref:O,className:fs(T.props.className,a,k.root)},!d&&{variant:I},R))})}));Ch.muiName="Select";const Eh=C.createContext();function Rh(e){return gs("MuiTable",e)}bs("MuiTable",["root","stickyHeader"]);const Ph=["className","component","padding","size","stickyHeader"],Ah=pc("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",Mh=C.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTable"}),{className:n,component:o=Ih,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Wr(r,Ph),u=$r({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return vl({root:["root",r&&"stickyHeader"]},Rh,t)})(u),d=C.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return or.jsx(Eh.Provider,{value:d,children:or.jsx(Ah,$r({as:o,role:o===Ih?null:"table",ref:t,className:fs(c.root,n),ownerState:u},l))})})),kh=C.createContext();function Dh(e){return gs("MuiTableBody",e)}bs("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=C.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableBody"}),{className:n,component:o=qh}=r,i=Wr(r,Th),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return vl({root:["root"]},Dh,t)})(a);return or.jsx(kh.Provider,{value:Lh,children:or.jsx(Oh,$r({className:fs(s.root,n),as:o,ref:t,role:o===qh?null:"rowgroup",ownerState:a},i))})}));function jh(e){return gs("MuiTableCell",e)}const _h=bs("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${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?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=C.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=Wr(r,zh),p=C.useContext(Eh),f=C.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=$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"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return vl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${oa(n)}`,"normal"!==o&&`padding${oa(o)}`,`size${oa(i)}`]},jh,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),or.jsx(Fh,$r({as:m,ref:t,className:fs(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));function $h(e){return gs("MuiTableContainer",e)}bs("MuiTableContainer",["root"]);const Wh=["className","component"],Bh=pc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Vh=C.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Wr(r,Wh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return vl({root:["root"]},$h,t)})(a);return or.jsx(Bh,$r({ref:t,as:o,className:fs(s.root,n),ownerState:a},i))}));function Uh(e){return gs("MuiTableHead",e)}bs("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=C.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableHead"}),{className:n,component:o=Xh}=r,i=Wr(r,Gh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return vl({root:["root"]},Uh,t)})(a);return or.jsx(kh.Provider,{value:Kh,children:or.jsx(Yh,$r({as:o,className:fs(s.root,n),ref:t,role:o===Xh?null:"rowgroup",ownerState:a},i))})}));function Zh(e){return gs("MuiTableRow",e)}const Qh=bs("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=C.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableRow"}),{className:n,component:o=rm,hover:i=!1,selected:a=!1}=r,s=Wr(r,em),l=C.useContext(kh),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 vl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Zh,t)})(u);return or.jsx(tm,$r({as:o,ref:t,className:fs(c.root,n),role:o===rm?null:"row",ownerState:u},s))}));function om(e){return or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:or.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var im=function({fontSize:e="medium",children:t=null,className:r=""}={}){return or.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 or.jsx(im,{...e,children:or.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[or.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),or.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 or.jsx(im,{fontSize:"medium",...e,children:or.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[or.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),or.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 or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:or.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 or.jsx(im,{...e,children:or.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:or.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[or.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),or.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function cm(e={}){return or.jsx(im,{fontSize:"medium",...e,children:or.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:or.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:or.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function dm({className:e}){return or.jsx(im,{fontSize:"small",className:e,children:or.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:or.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:or.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:or.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[or.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"}),or.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 or.jsx(im,{...e,children:or.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:or.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:or.jsx("rect",{stroke:Nt.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:Ht,"& > 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=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Nt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Nt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:or.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 ${Nt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`,borderRadius:Ht,backgroundColor:Nt.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 ${Nt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Nt.WHITE,color:Nt.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:Ht},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Nt.GREYSCALE_0_15,backgroundColor:Nt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Nt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Nt.GREEN_PALE},"&:active":{backgroundColor:Nt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Nt.GREEN_PALE,boxShadow:`0 0 0 3px ${Us(Nt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Nt.BLUE_PALE},"&:active":{backgroundColor:Nt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Nt.BLUE_PALE,boxShadow:`0 0 0 3px ${Us(Nt.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:Ht,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Nt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Nt.GREYSCALE_0_42,backgroundColor:Nt.GREYSCALE_100_60,"&:active":{backgroundColor:Nt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Nt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Nt.PURPLE,"&.Mui-focusVisible":{borderColor:Nt.PURPLE,boxShadow:`0 0 0 3px ${Us(Nt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Nt.GREEN,"&.Mui-focusVisible":{borderColor:Nt.GREEN,boxShadow:`0 0 0 3px ${Us(Nt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Nt.BLUE,"&.Mui-focusVisible":{borderColor:Nt.BLUE,boxShadow:`0 0 0 3px ${Us(Nt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Nt.ORANGE,"&.Mui-focusVisible":{borderColor:Nt.ORANGE,boxShadow:`0 0 0 3px ${Us(Nt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Nt.RED,"&.Mui-focusVisible":{borderColor:Nt.RED,boxShadow:`0 0 0 3px ${Us(Nt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Nt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Nt.PURPLE_PALE},"&:active":{backgroundColor:Nt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Nt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Us(Nt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Nt.GREEN_PALE},"&:active":{backgroundColor:Nt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Nt.GREEN_PALE,boxShadow:`0 0 0 3px ${Us(Nt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Nt.BLUE_PALE},"&:active":{backgroundColor:Nt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Nt.BLUE_PALE,boxShadow:`0 0 0 3px ${Us(Nt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Nt.ORANGE_PALE},"&:active":{backgroundColor:Nt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Nt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Us(Nt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Nt.RED_PALE},"&:active":{backgroundColor:Nt.RED_DARK},"&.Mui-focusVisible":{borderColor:Nt.RED_PALE,boxShadow:`0 0 0 3px ${Us(Nt.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:Nt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Nt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ht,boxShadow:`inset 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:or.jsx(lm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:jt,borderRadius:Ht,color:Nt.TEXT_PRIMARY,backgroundColor:Nt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Nt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Nt.GREYSCALE_0_05,color:Nt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Nt.GREEN,borderColor:Nt.GREEN},"&.MuiChip-outlinedInfo":{color:Nt.BLUE,borderColor:Nt.BLUE},"&.MuiChip-outlinedWarning":{color:Nt.ORANGE,borderColor:Nt.ORANGE},"&.MuiChip-outlinedError":{color:Nt.RED,borderColor:Nt.RED}},outlined:{border:`solid 1px ${Nt.GREYSCALE_0_15}`,backgroundColor:Nt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ht,boxShadow:"none",backgroundColor:Nt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Nt.GREEN,borderColor:Nt.GREEN},outlinedSecondary:{color:Nt.BLUE,borderColor:Nt.BLUE},label:{fontFamily:Ut.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:or.jsx(lm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:or.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:Ht},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ht,fontSize:_t,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Nt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Nt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Nt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Nt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Nt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ht,border:`solid 1px ${Nt.GREYSCALE_0_15}`,color:Nt.GREYSCALE_0_60,marginRight:0,width:Ft,height:Ft},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Nt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ht,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Nt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:_t}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:jt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Nt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Nt.GREYSCALE_25,fontSize:jt,fontFamily:Ut.FONT_FAMILY,fontWeight:Bt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Nt.TEXT_PRIMARY},"&.Mui-error":{color:Nt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Nt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Wt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Nt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Wt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:_t,lineHeight:"16px",backgroundColor:Nt.WHITE,borderRadius:Ht,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nt.GREYSCALE_0_05}`,borderColor:Nt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Nt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Nt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nt.RED}`,boxShadow:`0px 0px 0px 1px ${Nt.RED}, inset 0 2px 0 0 ${Nt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nt.GREYSCALE_0_10}`,borderColor:Nt.GREYSCALE_0_10,backgroundColor:Nt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Nt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Nt.GREYSCALE_0_15,borderRadius:Ht,boxShadow:`inset 0 2px 0 0 ${Nt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>or.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:Nt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Nt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Nt.GREYSCALE_0_03},"&:active":{backgroundColor:Nt.GREYSCALE_0_10},"&:focus":{backgroundColor:Nt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Nt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Nt.GREYSCALE_0_30,"&:hover":{backgroundColor:Nt.GREYSCALE_0_0,borderColor:Nt.GREYSCALE_0_15},"& ~svg":{color:Nt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Nt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ht}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Nt.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:jt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:jt,fontWeight:Bt,color:Nt.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 ${Nt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Nt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:or.jsx(cm,{}),checkedIcon:or.jsx(sm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Nt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Nt.GREEN_PALE,boxShadow:`0 0 0 3px ${Us(Nt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Nt.BLUE_PALE,boxShadow:`0 0 0 3px ${Us(Nt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Nt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Nt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:or.jsx(pm,{}),checkedIcon:or.jsx(am,{}),indeterminateIcon:or.jsx(um,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ht,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Nt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Nt.GREYSCALE_0_55,color:Nt.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:Nt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Nt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Nt.GREYSCALE_0_55,"&:hover":{color:Nt.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:Nt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Nt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:_t,color:Nt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Bt},secondary:{fontSize:jt,color:Nt.GREYSCALE_45,fontWeight:Wt,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:Nt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:jt,borderBottom:`solid 1px ${Nt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:_t,color:Nt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Nt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Nt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Nt.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:Nt.RED}}},"&.Mui-focusVisible":{backgroundColor:Nt.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:Nt.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:Nt.GREEN,height:"24px","&.Mui-disabled":{color:Nt.GREYSCALE_0_15}},rail:{backgroundColor:Nt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Nt.GREYSCALE_0_05}`,borderRadius:Ht,boxShadow:`inset 0px 0px 0px 1px ${Nt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Nt.GREYSCALE_0_05}`,borderRadius:Ht},thumb:{height:"16px",width:"16px",borderRadius:Ht,backgroundColor:Nt.WHITE,boxShadow:`0px 1px 2px 0px ${Nt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Nt.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ht,boxShadow:`0 2px 4px 0 ${Nt.GREYSCALE_0_30}, 0 0 0 1px ${Nt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Nt.GREYSCALE_0_15}, 0 0 0 1px ${Nt.GREYSCALE_0_06}, 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Nt.GREYSCALE_0_15}, 0 0 0 1px ${Nt.GREYSCALE_0_06}, 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Nt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Nt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Nt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Nt.GREYSCALE_0_15},markLabel:{color:Nt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Nt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Nt.WHITE,color:Nt.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:Nt.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:Nt.GREEN_PALE,boxShadow:`0 0 0 3px ${Us(Nt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Nt.BLUE_PALE,boxShadow:`0 0 0 3px ${Us(Nt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Nt.GREYSCALE_0_15,borderRadius:Ht},thumb:{height:"16px",width:"16px",borderRadius:Ht,backgroundColor:Nt.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 ${Nt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`,backgroundColor:Nt.GREYSCALE_0_03,borderRadius:Ht},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Nt.GREYSCALE_25,"&.Mui-selected":{color:Nt.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:Ht,"&:hover":{backgroundColor:Nt.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 ${Nt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Nt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ht,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Nt.GREYSCALE_0_05},"&:hover":{backgroundColor:Nt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Nt.GREYSCALE_85}`,borderRight:`1px solid ${Nt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Bt,backgroundColor:Nt.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:Nt.GREYSCALE_98,borderBottom:`1px solid ${Nt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Nt.GREYSCALE_85}`,borderTop:`1px solid ${Nt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Nt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Nt.GREYSCALE_0_05,"&:hover":{backgroundColor:Nt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Nt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>or.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 ${Nt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:_t,borderRadius:Ht,padding:"7px 16px",border:`1px solid ${Nt.GREYSCALE_0_15}`,backgroundColor:Nt.GREYSCALE_100_60,color:Nt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Nt.GREYSCALE_0_10,border:`1px solid ${Nt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Nt.GREYSCALE_0_03,border:`1px solid ${Nt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Nt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Nt.MISC_FOCUS_BORDER}`,border:`1px solid ${Nt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Nt.GREYSCALE_25,backgroundColor:Nt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Nt.GREYSCALE_0_10,border:`1px solid ${Nt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:jt,height:24,width:24,padding:7},sizeLarge:{fontSize:zt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:_t,borderRadius:Ht}}},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:Nt.GREYSCALE_20},tooltip:{backgroundColor:Nt.GREYSCALE_20,fontSize:jt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...fm}:{}}),mm=(e,t)=>hm(t);var gm=()=>({mode:"light",primary:{ultraLight:Nt.GREEN_ULTRA_LIGHT,light:Nt.GREEN_PALE,main:Nt.GREEN,dark:Nt.GREEN_DARK,extraDark:Nt.GREEN_EXTRA_DARK,contrastText:Nt.WHITE},secondary:{ultraLight:Nt.BLUE_ULTRA_LIGHT,light:Nt.BLUE_PALE,main:Nt.BLUE,dark:Nt.BLUE_DARK,extraDark:Nt.BLUE_EXTRA_DARK,contrastText:Nt.WHITE},error:{ultraLight:Nt.RED_ULTRA_LIGHT,light:Nt.RED_PALE,main:Nt.RED,dark:Nt.RED_DARK,extraDark:Nt.RED_EXTRA_DARK,contrastText:Nt.WHITE},warning:{ultraLight:Nt.ORANGE_ULTRA_LIGHT,light:Nt.ORANGE_PALE,main:Nt.ORANGE,dark:Nt.ORANGE_DARK,extraDark:Nt.ORANGE_EXTRA_DARK,contrastText:Nt.WHITE},success:{ultraLight:Nt.GREEN_ULTRA_LIGHT,light:Nt.GREEN_PALE,main:Nt.GREEN,dark:Nt.GREEN_DARK,extraDark:Nt.GREEN_EXTRA_DARK,contrastText:Nt.WHITE},info:{ultraLight:Nt.BLUE_ULTRA_LIGHT,light:Nt.BLUE_PALE,main:Nt.BLUE,dark:Nt.BLUE_DARK,extraDark:Nt.BLUE_EXTRA_DARK,contrastText:Nt.WHITE},text:{primary:Nt.TEXT_PRIMARY,secondary:Nt.TEXT_SECONDARY,disabled:Nt.GREYSCALE_0_30},action:{hover:Nt.GREYSCALE_0_03,hoverOpacity:.03,selected:Nt.GREYSCALE_0_05,selectedOpacity:.05,focus:Nt.MISC_FOCUS_BORDER},amethyst:{ultraLight:Nt.WHITE,main:Nt.PURPLE,light:Nt.PURPLE_PALE,dark:Nt.PURPLE_DARK,extraDark:Nt.GREYSCALE_0_0,contrastText:Nt.WHITE},background:{paper:Nt.WHITE,default:Nt.GREYSCALE_95},divider:Nt.GREYSCALE_0_15});var bm=e=>gm();var vm=(e,t=!1)=>({components:mm(0,t),palette:bm(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:_t,fontWeightLight:$t,fontWeightRegular:Wt,fontWeightMedium:Bt,fontWeightBold:Vt,htmlFontSize:_t,fontFamily:Ut.FONT_FAMILY,button:{fontWeight:Bt,fontSize:_t,textTransform:"none"},body1:{fontSize:zt,lineHeight:"24px"},body2:{fontSize:_t,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ft,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:zt,fontWeight:Bt,lineHeight:"16px"},h6:{fontSize:_t,fontWeight:Bt,lineHeight:"16px"},caption:{color:Nt.TEXT_SECONDARY},subtitle1:{fontSize:_t,color:Nt.TEXT_SECONDARY},subtitle2:{fontSize:jt,color:Nt.TEXT_SECONDARY}},shape:{borderRadius:Ht}});const ym={...qt};var xm={},Sm={exports:{}},wm={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}(wm);var Cm=wm.exports;!function(e){var t=Cm.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}(Sm);var Em=Sm.exports,Rm={};function Pm(e,t){return function(){return null}}function Am(e){return e&&"object"===_l(e)&&e.constructor===Object}function Im(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?$r({},e):e;return Am(e)&&Am(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Am(t[o])&&o in e?n[o]=Im(e[o],t[o],r):n[o]=t[o])})),n}var Mm=(zi.element,function(){return null});Mm.isRequired=(zi.element.isRequired,function(){return null});var km=function(){return null};var Dm={exports:{}},Tm={},Om=60103,Lm=60106,qm=60107,Nm=60108,jm=60114,_m=60109,zm=60110,Fm=60112,Hm=60113,$m=60120,Wm=60115,Bm=60116,Vm=60121,Um=60122,Gm=60117,Ym=60129,Km=60131;if("function"==typeof Symbol&&Symbol.for){var Xm=Symbol.for;Om=Xm("react.element"),Lm=Xm("react.portal"),qm=Xm("react.fragment"),Nm=Xm("react.strict_mode"),jm=Xm("react.profiler"),_m=Xm("react.provider"),zm=Xm("react.context"),Fm=Xm("react.forward_ref"),Hm=Xm("react.suspense"),$m=Xm("react.suspense_list"),Wm=Xm("react.memo"),Bm=Xm("react.lazy"),Vm=Xm("react.block"),Um=Xm("react.server.block"),Gm=Xm("react.fundamental"),Ym=Xm("react.debug_trace_mode"),Km=Xm("react.legacy_hidden")}function Jm(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Om:switch(e=e.type){case qm:case jm:case Nm:case Hm:case $m:return e;default:switch(e=e&&e.$$typeof){case zm:case Fm:case Bm:case Wm:case _m:return e;default:return t}}case Lm:return t}}}var Zm=_m,Qm=Om,eg=Fm,tg=qm,rg=Bm,ng=Wm,og=Lm,ig=jm,ag=Nm,sg=Hm;Tm.ContextConsumer=zm,Tm.ContextProvider=Zm,Tm.Element=Qm,Tm.ForwardRef=eg,Tm.Fragment=tg,Tm.Lazy=rg,Tm.Memo=ng,Tm.Portal=og,Tm.Profiler=ig,Tm.StrictMode=ag,Tm.Suspense=sg,Tm.isAsyncMode=function(){return!1},Tm.isConcurrentMode=function(){return!1},Tm.isContextConsumer=function(e){return Jm(e)===zm},Tm.isContextProvider=function(e){return Jm(e)===_m},Tm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Om},Tm.isForwardRef=function(e){return Jm(e)===Fm},Tm.isFragment=function(e){return Jm(e)===qm},Tm.isLazy=function(e){return Jm(e)===Bm},Tm.isMemo=function(e){return Jm(e)===Wm},Tm.isPortal=function(e){return Jm(e)===Lm},Tm.isProfiler=function(e){return Jm(e)===jm},Tm.isStrictMode=function(e){return Jm(e)===Nm},Tm.isSuspense=function(e){return Jm(e)===Hm},Tm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===qm||e===jm||e===Ym||e===Nm||e===Hm||e===$m||e===Km||"object"==typeof e&&null!==e&&(e.$$typeof===Bm||e.$$typeof===Wm||e.$$typeof===_m||e.$$typeof===zm||e.$$typeof===Fm||e.$$typeof===Gm||e.$$typeof===Vm||e[0]===Um)},Tm.typeOf=Jm,Dm.exports=Tm;var lg=Dm.exports,ug=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function cg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(ug);return t&&t[1]||""}(e)||t}function dg(e,t,r){var n=cg(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var pg="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),fg=zi.oneOfType([zi.func,zi.object]),hg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Pm,deepmerge:Im,elementAcceptingRef:Mm,elementTypeAcceptingRef:km,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 cg(e,"Component");if("object"===_l(e))switch(e.$$typeof){case lg.ForwardRef:return dg(e,e.render,"ForwardRef");case lg.Memo:return dg(e,e.type,"memo");default:return}}},ponyfillGlobal:pg,refType:fg}),mg=Yt(hg);Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.hexToRgb=vg,Rm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=xg(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(""))},Rm.hslToRgb=yg,Rm.decomposeColor=xg,Rm.recomposeColor=Sg,Rm.getContrastRatio=function(e,t){var r=wg(e),n=wg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Rm.getLuminance=wg,Rm.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return wg(e)>.5?Eg(e,t):Rg(e,t)},Rm.fade=function(e,t){return Cg(e,t)},Rm.alpha=Cg,Rm.darken=Eg,Rm.lighten=Rg;var gg=mg;function bg(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 vg(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 yg(e){var t=(e=xg(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])),Sg({type:s,values:l})}function xg(e){if(e.type)return e;if("#"===e.charAt(0))return xg(vg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,gg.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 Sg(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 wg(e){var t="hsl"===(e=xg(e)).type?xg(yg(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 Cg(e,t){return e=xg(e),t=bg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Sg(e)}function Eg(e,t){if(e=xg(e),t=bg(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 Sg(e)}function Rg(e,t){if(e=xg(e),t=bg(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 Sg(e)}var Pg,Ag,Ig,Mg={},kg={exports:{}},Dg={exports:{}},Tg={exports:{}};function Og(){return Pg||(Pg=1,function(e){var t=Cm.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}(Tg)),Tg.exports}function Lg(){return Ag||(Ag=1,function(e){var t=Cm.default,r=Og();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Dg)),Dg.exports}function qg(){return Ig||(Ig=1,function(e){var t=Lg();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}(kg)),kg.exports}var Ng,jg={exports:{}};function _g(){return Ng||(Ng=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}(jg)),jg.exports}var zg,Fg={};var Hg,$g={};var Wg,Bg={},Vg={};var Ug,Gg={};var Yg,Kg={};var Xg,Jg={};var Zg,Qg={};var eb,tb={};var rb,nb={};var ob,ib,ab={};function sb(){if(ib)return Bg;ib=1;var e=Wl;Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,P=e.success,A=void 0===P?{light:d.default[300],main:d.default[500],dark:d.default[700]}:P,I=e.type,M=void 0===I?"light":I,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:M,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(A),grey:i.default,contrastThreshold:D,getContrastText:q,augmentColor:N,tonalOffset:O},j[M]),L);return _},Bg.dark=Bg.light=void 0;var t=e(qu()),r=e(_g()),n=mg,o=e(function(){if(Wg)return Vg;Wg=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.default=void 0;var e={black:"#000",white:"#fff"};return Vg.default=e,Vg}()),i=e(function(){if(Ug)return Gg;Ug=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.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 Gg.default=e,Gg}()),a=e(function(){if(Yg)return Kg;Yg=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.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 Kg.default=e,Kg}()),s=e(function(){if(Xg)return Jg;Xg=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.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 Jg.default=e,Jg}()),l=e(function(){if(Zg)return Qg;Zg=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.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 Qg.default=e,Qg}()),u=e(function(){if(eb)return tb;eb=1,Object.defineProperty(tb,"__esModule",{value:!0}),tb.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 tb.default=e,tb}()),c=e(function(){if(rb)return nb;rb=1,Object.defineProperty(nb,"__esModule",{value:!0}),nb.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 nb.default=e,nb}()),d=e(function(){if(ob)return ab;ob=1,Object.defineProperty(ab,"__esModule",{value:!0}),ab.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 ab.default=e,ab}()),p=Rm,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}};Bg.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 Bg.dark=h,Bg}var lb,ub={};var cb,db={};var pb,fb={};var hb={};function mb(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 gb(e,t){if(e){if("string"==typeof e)return mb(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)?mb(e,t):void 0}}function bb(e){return function(e){if(Array.isArray(e))return mb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gb(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 vb(e,t){return t?Im(e,t,{clone:!1}):e}var yb={xs:0,sm:600,md:960,lg:1280,xl:1920},xb={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(yb[e],"px)")}};function Sb(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||xb;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===_l(t)){var o=e.theme.breakpoints||xb;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function wb(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Cb(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=wb(e.theme,o)||{};return Sb(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=wb(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 Eb(){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?vb(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function Rb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Pb=Cb({prop:"border",themeKey:"borders",transform:Rb}),Ab=Cb({prop:"borderTop",themeKey:"borders",transform:Rb}),Ib=Cb({prop:"borderRight",themeKey:"borders",transform:Rb}),Mb=Cb({prop:"borderBottom",themeKey:"borders",transform:Rb}),kb=Cb({prop:"borderLeft",themeKey:"borders",transform:Rb}),Db=Cb({prop:"borderColor",themeKey:"palette"}),Tb=Cb({prop:"borderRadius",themeKey:"shape"}),Ob=Eb(Pb,Ab,Ib,Mb,kb,Db,Tb);function Lb(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function qb(e){var t=function(t){var r=e(t);return t.css?$r({},vb(r,e($r({theme:t.theme},t.css))),Lb(t.css,[e.filterProps])):t.sx?$r({},vb(r,e($r({theme:t.theme},t.sx))),Lb(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(bb(e.filterProps)),t}var Nb=Eb(Cb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Cb({prop:"display"}),Cb({prop:"overflow"}),Cb({prop:"textOverflow"}),Cb({prop:"visibility"}),Cb({prop:"whiteSpace"})),jb=Cb({prop:"flexBasis"}),_b=Cb({prop:"flexDirection"}),zb=Cb({prop:"flexWrap"}),Fb=Cb({prop:"justifyContent"}),Hb=Cb({prop:"alignItems"}),$b=Cb({prop:"alignContent"}),Wb=Cb({prop:"order"}),Bb=Cb({prop:"flex"}),Vb=Cb({prop:"flexGrow"}),Ub=Cb({prop:"flexShrink"}),Gb=Cb({prop:"alignSelf"}),Yb=Cb({prop:"justifyItems"}),Kb=Cb({prop:"justifySelf"}),Xb=Eb(jb,_b,zb,Fb,Hb,$b,Wb,Bb,Vb,Ub,Gb,Yb,Kb),Jb=Cb({prop:"gridGap"}),Zb=Cb({prop:"gridColumnGap"}),Qb=Cb({prop:"gridRowGap"}),ev=Cb({prop:"gridColumn"}),tv=Cb({prop:"gridRow"}),rv=Cb({prop:"gridAutoFlow"}),nv=Cb({prop:"gridAutoColumns"}),ov=Cb({prop:"gridAutoRows"}),iv=Cb({prop:"gridTemplateColumns"}),av=Cb({prop:"gridTemplateRows"}),sv=Cb({prop:"gridTemplateAreas"}),lv=Cb({prop:"gridArea"}),uv=Eb(Jb,Zb,Qb,ev,tv,rv,nv,ov,iv,av,sv,lv),cv=Cb({prop:"color",themeKey:"palette"}),dv=Cb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),pv=Eb(cv,dv),fv=Cb({prop:"position"}),hv=Cb({prop:"zIndex",themeKey:"zIndex"}),mv=Cb({prop:"top"}),gv=Cb({prop:"right"}),bv=Cb({prop:"bottom"}),vv=Cb({prop:"left"}),yv=Eb(fv,hv,mv,gv,bv,vv),xv=Cb({prop:"boxShadow",themeKey:"shadows"});function Sv(e){return e<=1?"".concat(100*e,"%"):e}var wv=Cb({prop:"width",transform:Sv}),Cv=Cb({prop:"maxWidth",transform:Sv}),Ev=Cb({prop:"minWidth",transform:Sv}),Rv=Cb({prop:"height",transform:Sv}),Pv=Cb({prop:"maxHeight",transform:Sv}),Av=Cb({prop:"minHeight",transform:Sv}),Iv=Cb({prop:"size",cssProperty:"width",transform:Sv}),Mv=Cb({prop:"size",cssProperty:"height",transform:Sv}),kv=Cb({prop:"boxSizing"}),Dv=Eb(wv,Cv,Ev,Rv,Pv,Av,kv);function Tv(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)||gb(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 Ov={m:"margin",p:"padding"},Lv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Nv=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(!qv[e])return[e];e=qv[e]}var t=Tv(e.split(""),2),r=t[0],n=t[1],o=Ov[r],i=Lv[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),jv=["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 _v(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 zv(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 Fv(e){var t=_v(e.theme);return Object.keys(e).map((function(r){if(-1===jv.indexOf(r))return null;var n=zv(Nv(r),t),o=e[r];return Sb(e,o,n)})).reduce(vb,{})}Fv.propTypes={},Fv.filterProps=jv;var Hv,$v=Cb({prop:"fontFamily",themeKey:"typography"}),Wv=Cb({prop:"fontSize",themeKey:"typography"}),Bv=Cb({prop:"fontStyle",themeKey:"typography"}),Vv=Cb({prop:"fontWeight",themeKey:"typography"}),Uv=Cb({prop:"letterSpacing"}),Gv=Cb({prop:"lineHeight"}),Yv=Cb({prop:"textAlign"}),Kv=Eb($v,Wv,Bv,Vv,Uv,Gv,Yv),Xv=Object.freeze({__proto__:null,alignContent:$b,alignItems:Hb,alignSelf:Gb,bgcolor:dv,border:Pb,borderBottom:Mb,borderColor:Db,borderLeft:kb,borderRadius:Tb,borderRight:Ib,borderTop:Ab,borders:Ob,bottom:bv,boxSizing:kv,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||xb,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 vb(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(bb(e.filterProps)),t},color:cv,compose:Eb,createUnarySpacing:_v,css:function(e){return qb(e)},display:Nb,flex:Bb,flexBasis:jb,flexDirection:_b,flexGrow:Vb,flexShrink:Ub,flexWrap:zb,flexbox:Xb,fontFamily:$v,fontSize:Wv,fontStyle:Bv,fontWeight:Vv,grid:uv,gridArea:lv,gridAutoColumns:nv,gridAutoFlow:rv,gridAutoRows:ov,gridColumn:ev,gridColumnGap:Zb,gridGap:Jb,gridRow:tv,gridRowGap:Qb,gridTemplateAreas:sv,gridTemplateColumns:iv,gridTemplateRows:av,height:Rv,justifyContent:Fb,justifyItems:Yb,justifySelf:Kb,left:vv,letterSpacing:Uv,lineHeight:Gv,maxHeight:Pv,maxWidth:Cv,minHeight:Av,minWidth:Ev,order:Wb,palette:pv,position:fv,positions:yv,right:gv,shadows:xv,sizeHeight:Mv,sizeWidth:Iv,sizing:Dv,spacing:Fv,style:Cb,styleFunctionSx:qb,textAlign:Yv,top:mv,typography:Kv,width:wv,zIndex:hv}),Jv=Yt(Xv);var Zv,Qv={};function ey(){if(Zv)return Qv;Zv=1;var e=Wl;Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.default=Qv.duration=Qv.easing=void 0;var t=e(_g()),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)"};Qv.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")}Qv.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 Qv.default=i,Qv}var ty,ry,ny={};function oy(){if(ry)return Mg;ry=1;var e=Wl;Object.defineProperty(Mg,"__esModule",{value:!0}),Mg.createMuiTheme=function(){return p.apply(void 0,arguments)},Mg.default=void 0,e(qg());var t=e(_g()),r=mg,n=e(function(){if(zg)return Fg;zg=1;var e=Wl;Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.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)},Fg.keys=void 0;var t=e(qu()),r=e(_g()),n=["xs","sm","md","lg","xl"];return Fg.keys=n,Fg}()),o=e(function(){if(Hg)return $g;Hg=1;var e=Wl;Object.defineProperty($g,"__esModule",{value:!0}),$g.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(qg()),r=e(qu());return $g}()),i=e(sb()),a=e(function(){if(lb)return ub;lb=1;var e=Wl;Object.defineProperty(ub,"__esModule",{value:!0}),ub.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,P=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),A=f/14,I=R||function(e){return"".concat(e/C*A,"rem")},M=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:I(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},k={h1:M(m,96,1.167,-1.5),h2:M(m,60,1.2,-.5),h3:M(b,48,1.167,0),h4:M(b,34,1.235,.25),h5:M(b,24,1.334,0),h6:M(y,20,1.6,.15),subtitle1:M(b,16,1.75,.15),subtitle2:M(y,14,1.57,.1),body1:M(b,16,1.5,.15),body2:M(b,14,1.43,.15),button:M(y,14,1.75,.4,a),caption:M(b,12,1.66,.4),overline:M(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:I,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},k),P,{clone:!1})};var t=e(qu()),r=e(_g()),n=mg;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 ub}()),s=e(function(){if(cb)return db;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(",")}cb=1,Object.defineProperty(db,"__esModule",{value:!0}),db.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 db.default=t,db}()),l=e(function(){if(pb)return fb;pb=1,Object.defineProperty(fb,"__esModule",{value:!0}),fb.default=void 0;var e={borderRadius:4};return fb.default=e,fb}()),u=e(function(){if(Hv)return hb;Hv=1,Object.defineProperty(hb,"__esModule",{value:!0}),hb.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=Jv;return hb}()),c=e(ey()),d=e(function(){if(ty)return ny;ty=1,Object.defineProperty(ny,"__esModule",{value:!0}),ny.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return ny.default=e,ny}());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),P=arguments.length,A=new Array(P>1?P-1:0),I=1;I<P;I++)A[I-1]=arguments[I];return R=A.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return Mg.default=f,Mg}var iy,ay={};var sy={},ly="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",uy=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function cy(){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!==uy.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[ly]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function dy(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 py="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},fy="object"===("undefined"==typeof window?"undefined":py(window))&&"object"===("undefined"==typeof document?"undefined":py(document))&&9===document.nodeType;function hy(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 my={}.constructor;function gy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(gy);if(e.constructor!==my)return e;var t={};for(var r in e)t[r]=gy(e[r]);return t}function by(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=gy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var vy=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},yy=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+=vy(e[r]," ");else t=vy(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function xy(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Sy(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function wy(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=xy(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+=Sy(p+":"+u+yy(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Sy(h+":"+u+yy(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=Sy(g+":"+u+yy(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Sy(""+e+u+"{"+n,--i)+Sy("}",i)):n}var Cy=/([[\].#*$><+~=|^:(),"'`\s])/g,Ey="undefined"!=typeof CSS&&CSS.escape,Ry=function(e){return Ey?Ey(e):e.replace(Cy,"\\$1")},Py=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}(),Ay=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="."+Ry(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]=yy(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return wy(this.selectorText,this.style,r)},hy(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}(Py),Iy={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Ay(e,t,r)}},My={indent:1,children:!0},ky=/@([\w-]+)/,Dy=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(ky);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new tx($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=My);var t=xy(e).linebreak;if(null==e.indent&&(e.indent=My.indent),null==e.children&&(e.children=My.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Ty=/@container|@media|@supports\s+/,Oy={onCreateRule:function(e,t,r){return Ty.test(e)?new Dy(e,t,r):null}},Ly={indent:1,children:!0},qy=/@keyframes\s+([\w-]+)/,Ny=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(qy);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:Ry(a(this,i)),this.rules=new tx($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=Ly);var t=xy(e).linebreak;if(null==e.indent&&(e.indent=Ly.indent),null==e.children&&(e.children=Ly.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}(),jy=/@keyframes\s+/,_y=/\$([\w-]+)/g,zy=function(e,t){return"string"==typeof e?e.replace(_y,(function(e,r){return r in t?t[r]:e})):e},Fy=function(e,t,r){var n=e[t],o=zy(n,r);o!==n&&(e[t]=o)},Hy={onCreateRule:function(e,t,r){return"string"==typeof e&&jy.test(e)?new Ny(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Fy(e,"animation-name",r.keyframes),"animation"in e&&Fy(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 zy(e,n.keyframes);default:return e}}},$y=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?$r({},e,{allowEmpty:!0}):e;return wy(this.key,this.style,r)},t}(Py),Wy={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new $y(e,t,r):null}},By=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=xy(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=wy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return wy(this.at,this.style,e)},e}(),Vy=/@font-face/,Uy={onCreateRule:function(e,t,r){return Vy.test(e)?new By(e,t,r):null}},Gy=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 wy(this.key,this.style,e)},e}(),Yy={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Gy(e,t,r):null}},Ky=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}(),Xy={"@charset":!0,"@import":!0,"@namespace":!0},Jy={onCreateRule:function(e,t,r){return e in Xy?new Ky(e,t,r):null}},Zy=[Iy,Oy,Hy,Wy,Uy,Yy,Jy],Qy={process:!0},ex={force:!0,process:!0},tx=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="."+Ry(this.classes[d]));var p=by(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 Ay?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ny&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ay?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ny&&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=Qy);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,ex)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ex)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=xy(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}(),rx=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 tx(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}(),nx=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}(),ox=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=Wr(t,["attached"]),o=xy(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},hy(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ix=new ox,ax="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),sx="2f1acc6c3a606b082e5eef5e54414ffb";null==ax[sx]&&(ax[sx]=0);var lx=ax[sx]++,ux=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")+lx+o+t:i+r.key+"-"+lx+(o?"-"+o:"")+"-"+t}},cx=function(e){var t;return function(){return t||(t=e()),t}},dx=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},px=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=yy(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},fx=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},hx=function(e,t){return e.selectorText=t,e.selectorText===t},mx=cx((function(){return document.querySelector("head")}));function gx(e){var t=ix.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=mx(),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 bx=cx((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),vx=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]},yx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},xx=function(){function e(e){this.getPropertyValue=dx,this.setProperty=px,this.removeProperty=fx,this.setSelector=hx,this.hasInsertedRules=!1,this.cssRules=[],e&&ix.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=bx();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=gx(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 mx().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=yx(r,t);if(!1===(o=vx(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=yx(r,t),l=vx(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 rx&&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}(),Sx=0,wx=function(){function e(e){this.id=Sx++,this.version="10.10.0",this.plugins=new nx,this.options={id:{minify:!1},createGenerateId:ux,Renderer:fy?xx:null,plugins:[]},this.generateId=ux({minify:!1});for(var t=0;t<Zy.length;t++)this.plugins.use(Zy[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===ix.index?0:ix.index+1);var n=new rx(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(),ix.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=by(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}(),Cx=function(e){return new wx(e)},Ex="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Rx(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=Rx(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
90
|
+
`),Gc.rippleVisible,ed,550,(({theme:e})=>e.transitions.easing.easeInOut),Gc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Gc.child,Gc.childLeaving,td,550,(({theme:e})=>e.transitions.easing.easeInOut),Gc.childPulsate,rd,(({theme:e})=>e.transitions.easing.easeInOut)),id=C.forwardRef((function(e,t){const r=yc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Wr(r,Yc),[s,l]=C.useState([]),u=C.useRef(0),c=C.useRef(null);C.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=C.useRef(!1),p=cl(),f=C.useRef(null),h=C.useRef(null),m=C.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,or.jsx(od,{classes:{ripple:gs(o.ripple,Gc.ripple),rippleVisible:gs(o.rippleVisible,Gc.rippleVisible),ripplePulsate:gs(o.ripplePulsate,Gc.ripplePulsate),child:gs(o.child,Gc.child),childLeaving:gs(o.childLeaving,Gc.childLeaving),childPulsate:gs(o.childPulsate,Gc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=C.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=C.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=C.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 C.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),or.jsx(nd,$r({className:gs(Gc.root,o.root,i),ref:h},a,{children:or.jsx(Fc,{component:null,exit:!0,children:s})}))}));function ad(e){return ys("MuiButtonBase",e)}const sd=xs("MuiButtonBase",["root","disabled","focusVisible"]),ld=["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"],ud=mc("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"},[`&.${sd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),cd=C.forwardRef((function(e,t){const r=yc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:R,onTouchMove:P,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:k,type:D}=r,T=Wr(r,ld),O=C.useRef(null),L=C.useRef(null),q=al(L,k),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=yl(),[F,H]=C.useState(!1);l&&F&&H(!1),C.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[$,W]=C.useState(!1);C.useEffect((()=>{W(!0)}),[]);const B=$&&!u&&!l;function V(e,t,r=c){return il((n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0}))}C.useEffect((()=>{F&&d&&!u&&$&&L.current.pulsate()}),[u,d,F,$]);const U=V("start",S),G=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",(e=>{F&&e.preventDefault(),w&&w(e)})),J=V("start",A),Z=V("stop",R),Q=V("stop",P),ee=V("stop",(e=>{_(e),!1===N.current&&H(!1),f&&f(e)}),!1),te=il((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=C.useRef(!1),oe=il((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=il((e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),x&&x(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=al(t,z,O),ue=$r({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Sl({root:["root",t&&"disabled",r&&"focusVisible"]},ad,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return or.jsxs(ud,$r({as:ae,className:gs(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:I,type:D},se,T,{children:[i,B?or.jsx(id,$r({ref:q,center:o},M)):null]}))}));function dd(e){return ys("MuiIconButton",e)}const pd=xs("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),fd=["edge","children","className","color","disabled","disableFocusRipple","size"],hd=mc(cd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${sa(r.color)}`],r.edge&&t[`edge${sa(r.edge)}`],t[`size${sa(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})`:Xl(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})`:Xl(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)},{[`&.${pd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),md=C.forwardRef((function(e,t){const r=yc({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=Wr(r,fd),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 Sl({root:["root",r&&"disabled","default"!==n&&`color${sa(n)}`,o&&`edge${sa(o)}`,`size${sa(i)}`]},dd,t)})(d);return or.jsx(hd,$r({className:gs(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function gd(e){return ys("MuiTypography",e)}xs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const bd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vd=mc("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${sa(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}))),yd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sd=C.forwardRef((function(e,t){const r=yc({props:e,name:"MuiTypography"}),n=(e=>xd[e]||e)(r.color),o=ds($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=yd}=o,f=Wr(o,bd),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]||yd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Sl({root:["root",i,"inherit"!==e.align&&`align${sa(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},gd,a)})(h);return or.jsx(vd,$r({as:m,ref:t,ownerState:h,className:gs(g.root,a)},f))}));const wd=C.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=C.useState(null),s=al(C.isValidElement(r)?Al(r):null,t);if(Vs((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Vs((()=>{if(i&&!o)return el(t,i),()=>{el(t,null)}}),[t,i,o]),o){if(C.isValidElement(r)){const e={ref:s};return C.cloneElement(r,e)}return or.jsx(C.Fragment,{children:r})}return or.jsx(C.Fragment,{children:i?B.createPortal(r,i):i})})),Cd=["onChange","maxRows","minRows","style","value"];function Ed(e){return parseInt(e,10)||0}const Rd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Pd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Ad=C.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Wr(e,Cd),{current:l}=C.useRef(null!=a),u=C.useRef(null),c=al(t,u),d=C.useRef(null),p=C.useRef(null),f=C.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=Qs(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=Ed(i.paddingBottom)+Ed(i.paddingTop),l=Ed(i.borderBottomWidth)+Ed(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=il((()=>{const e=u.current,t=f();if(!e||!t||Pd(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),m=C.useCallback((()=>{const e=u.current,t=f();if(!e||!t||Pd(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=C.useRef(-1);Vs((()=>{const e=Js(m),t=null==u?void 0:u.current;if(!t)return;const r=Qs(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]),Vs((()=>{m()}));return or.jsxs(C.Fragment,{children:[or.jsx("textarea",$r({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),or.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:$r({},Rd,i,{paddingTop:0,paddingBottom:0})})]})}));function Id({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 Md=C.createContext(void 0);function kd(){return C.useContext(Md)}function Dd(e){return or.jsx(us,$r({},e,{defaultTheme:Ou,themeId:Hr}))}function Td(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Od(e,t=!1){return e&&(Td(e.value)&&""!==e.value||t&&Td(e.defaultValue)&&""!==e.defaultValue)}function Ld(e){return ys("MuiInputBase",e)}const qd=xs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Nd=["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"],jd=(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${sa(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},_d=(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]},zd=mc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:jd})((({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",[`&.${qd.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%"}))),Fd=mc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_d})((({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] + .${qd.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},[`&.${qd.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"})})),Hd=or.jsx(Dd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),$d=C.forwardRef((function(e,t){var r;const n=yc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:R,onClick:P,onFocus:A,onKeyDown:I,onKeyUp:M,placeholder:k,readOnly:D,renderSuffix:T,rows:O,slotProps:L={},slots:q={},startAdornment:N,type:j="text",value:_}=n,z=Wr(n,Nd),F=null!=b.value?b.value:_,{current:H}=C.useRef(null!=F),$=C.useRef(),W=C.useCallback((e=>{}),[]),B=al($,v,b.ref,W),[V,U]=C.useState(!1),G=kd(),Y=Id({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,C.useEffect((()=>{!G&&d&&V&&(U(!1),E&&E())}),[G,d,V,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=C.useCallback((e=>{Od(e)?K&&K():X&&X()}),[K,X]);Vs((()=>{H&&J({value:F})}),[F,J,H]);C.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;S&&"input"===Z&&(Q=$r(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:x},Q),Z=Ad);C.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:S,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 Sl({root:["root",`color${sa(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${sa(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"]},Ld,t)})(ee),re=q.root||l.Root||zd,ne=L.root||u.root||{},oe=q.input||l.Input||Fd;return Q=$r({},Q,null!=(r=L.input)?r:u.input),or.jsxs(C.Fragment,{children:[!p&&Hd,or.jsxs(re,$r({},ne,!wl(re)&&{ownerState:$r({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),P&&P(e)}},z,{className:gs(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,or.jsx(Md.Provider,{value:null,children:or.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?$.current:{value:"x"})},name:w,placeholder:k,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:I,onKeyUp:M,type:j},Q,!wl(oe)&&{as:Z,ownerState:$r({},ee,Q.ownerState)},{ref:B,className:gs(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(zr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T($r({},Y,{startAdornment:N})):null]}))]})}));function Wd(e){return ys("MuiInput",e)}const Bd=$r({},qd,xs("MuiInput",["root","underline","input"]));function Vd(e){return ys("MuiOutlinedInput",e)}const Ud=$r({},qd,xs("MuiOutlinedInput",["root","notchedOutline","input"]));function Gd(e){return ys("MuiFilledInput",e)}const Yd=$r({},qd,xs("MuiFilledInput",["root","underline","input"]));var Kd=function(e,t){function r(r,n){return or.jsx(Cc,$r({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Cc.muiName,C.memo(C.forwardRef(r))}(or.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Xd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Jd={entering:{opacity:1},entered:{opacity:1}},Zd=C.forwardRef((function(e,t){const r=Lu(),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=Oc}=e,v=Wr(e,Xd),y=C.useRef(null),x=al(y,Al(a),t),S=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},w=S(d),E=S(((e,t)=>{Hc(e);const n=$c({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=S(c),P=S(h),A=S((e=>{const t=$c({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)})),I=S(f);return or.jsx(b,$r({appear:i,in:l,nodeRef:y,onEnter:E,onEntered:R,onEntering:w,onExit:A,onExited:I,onExiting:P,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>C.cloneElement(a,$r({style:$r({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Jd[e],m,a.props.style),ref:x},t))}))}));function Qd(e){return ys("MuiBackdrop",e)}xs("MuiBackdrop",["root","invisible"]);const ep=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],tp=mc("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"}))),rp=C.forwardRef((function(e,t){var r,n,o;const i=yc({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=Zd,transitionDuration:g}=i,b=Wr(i,ep),v=$r({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Sl({root:["root",r&&"invisible"]},Qd,t)})(v),x=null!=(r=f.root)?r:c.root;return or.jsx(m,$r({in:p,timeout:g},b,{children:or.jsx(tp,$r({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:gs(y.root,s,null==x?void 0:x.className),ownerState:$r({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),np=xs("MuiBox",["root"]),op=Tu(),ip=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Vi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(es);return C.forwardRef((function(e,a){const s=ss(r),l=ds(e),{className:u,component:c="div"}=l,d=Wr(l,bs);return or.jsx(i,$r({as:c,ref:a,className:gs(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Hr,defaultTheme:op,defaultClassName:np.root,generateClassName:hs.generate});function ap(e){return ys("MuiButton",e)}const sp=xs("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"]),lp=C.createContext({}),up=C.createContext(void 0),cp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],dp=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}}),pp=mc(cd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${sa(r.color)}`],t[`size${sa(r.size)}`],t[`${r.variant}Size${sa(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})`:Xl(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})`:Xl(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})`:Xl(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]}),[`&.${sp.focusVisible}`]:$r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${sp.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 ${Xl(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"},[`&.${sp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${sp.disabled}`]:{boxShadow:"none"}})),fp=mc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${sa(r.size)}`]]}})((({ownerState:e})=>$r({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},dp(e)))),hp=mc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${sa(r.size)}`]]}})((({ownerState:e})=>$r({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},dp(e)))),mp=C.forwardRef((function(e,t){const r=C.useContext(lp),n=C.useContext(up),o=yc({props:Bs(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Wr(o,cp),x=$r({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $r({},a,Sl({root:["root",i,`${i}${sa(t)}`,`size${sa(o)}`,`${i}Size${sa(o)}`,`color${sa(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${sa(o)}`],endIcon:["icon","endIcon",`iconSize${sa(o)}`]},ap,a))})(x),w=g&&or.jsx(fp,{className:S.startIcon,ownerState:x,children:g}),E=p&&or.jsx(hp,{className:S.endIcon,ownerState:x,children:p}),R=n||"";return or.jsxs(pp,$r({ownerState:x,className:gs(r.className,S.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:gs(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[w,i,E]}))}));function gp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bp(e){return parseInt(Qs(e).getComputedStyle(e).paddingRight,10)||0}function vp(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&&gp(e,o)}))}function yp(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function xp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Zs(e);return t.body===e?Qs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=xl(Zs(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${bp(n)+e}px`;const t=Zs(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${bp(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Zs(n).body;else{const t=n.parentElement,r=Qs(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 Sp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function wp(e){const t=[],r=[];return Array.from(e.querySelectorAll(Sp)).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 Cp(){return!0}function Ep(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=wp,isEnabled:a=Cp,open:s}=e,l=C.useRef(!1),u=C.useRef(null),c=C.useRef(null),d=C.useRef(null),p=C.useRef(null),f=C.useRef(!1),h=C.useRef(null),m=al(Al(t),h),g=C.useRef(null);C.useEffect((()=>{s&&h.current&&(f.current=!r)}),[r,s]),C.useEffect((()=>{if(!s||!h.current)return;const e=Zs(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]),C.useEffect((()=>{if(!s||!h.current)return;const e=Zs(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 or.jsxs(C.Fragment,{children:[or.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),C.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)}}),or.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Rp=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&&gp(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);vp(t,e.mount,e.modalRef,n,!0);const o=yp(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=yp(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=xp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=yp(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&&gp(e.modalRef,t),vp(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&&gp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Pp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Rp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=C.useRef({}),f=C.useRef(null),h=C.useRef(null),m=al(h,d),[g,b]=C.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},w=il((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Zs(f.current).body;o.add(x(),e),h.current&&S()})),E=C.useCallback((()=>o.isTopModal(x())),[o]),R=il((e=>{f.current=e,e&&(c&&E()?S():h.current&&gp(h.current,y))})),P=C.useCallback((()=>{o.remove(x(),y)}),[y,o]);C.useEffect((()=>()=>{P()}),[P]),C.useEffect((()=>{c?w():v&&i||P()}),[c,P,v,i,w]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Cl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=$r({},r,t);return $r({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>$r({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Xs((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Xs((()=>{b(!0),s&&s(),i&&P()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function Ap(e){return ys("MuiModal",e)}xs("MuiModal",["root","hidden","backdrop"]);const Ip=["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"],Mp=mc("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"}))),kp=mc(rp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Dp=C.forwardRef((function(e,t){var r,n,o,i,a,s;const l=yc({name:"MuiModal",props:e}),{BackdropComponent:u=kp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:P=!1,onBackdropClick:A,open:I,slotProps:M,slots:k}=l,D=Wr(l,Ip),T=$r({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:R,keepMounted:P}),{getRootProps:O,getBackdropProps:L,getTransitionProps:q,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=Pp($r({},T,{rootRef:t})),F=$r({},T,{exited:_}),H=(e=>{const{open:t,exited:r,classes:n}=e;return Sl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ap,n)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();$.onEnter=e,$.onExited=t}const W=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:Mp,B=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==M?void 0:M.root)?a:b.root,U=null!=(s=null==M?void 0:M.backdrop)?s:b.backdrop,G=Pl({elementType:W,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:gs(d,null==V?void 0:V.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=Pl({elementType:B,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L($r({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:gs(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return P||I||z&&!_?or.jsx(wd,{ref:N,container:h,disablePortal:S,children:or.jsxs(W,$r({},G,{children:[!R&&u?or.jsx(B,$r({},Y)):null,or.jsx(Ep,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:j,open:I,children:C.cloneElement(f,$)})]}))}):null}));function Tp(e){return ys("MuiDivider",e)}const Op=xs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Lp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],qp=mc("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)`:Xl(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%"}}))),Np=mc("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)`}))),jp=C.forwardRef((function(e,t){const r=yc({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=Wr(r,Lp),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 Sl({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"]},Tp,n)})(h);return or.jsx(qp,$r({as:a,className:gs(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?or.jsx(Np,{className:m.wrapper,ownerState:h,children:o}):null}))}));jp.muiSkipListHighlight=!0;const _p=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],zp=mc(zd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...jd(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}},[`&.${Yd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Yd.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"},[`&.${Yd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yd.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(.${Yd.disabled}, .${Yd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Yd.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}))})),Fp=mc(Fd,{name:"MuiFilledInput",slot:"Input",overridesResolver:_d})((({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}))),Hp=C.forwardRef((function(e,t){var r,n,o,i;const a=yc({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=Wr(a,_p),g=$r({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,Sl({root:["root",!r&&"underline"],input:["input"]},Gd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Ji(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:zp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Fp;return or.jsx($d,$r({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Hp.muiName="Input";const $p=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Wp(e){return`scale(${e}, ${e**2})`}const Bp={entering:{opacity:1,transform:Wp(1)},entered:{opacity:1,transform:"none"}},Vp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Up=C.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=Oc}=e,g=Wr(e,$p),b=cl(),v=C.useRef(),y=Lu(),x=C.useRef(null),S=al(x,Al(o),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},E=w(u),R=w(((e,t)=>{Hc(e);const{duration:r,delay:n,easing:o}=$c({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Vp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),P=w(l),A=w(p),I=w((e=>{const{duration:t,delay:r,easing:n}=$c({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Vp?o:.666*o,delay:Vp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Wp(.75),c&&c(e)})),M=w(d);return or.jsx(m,$r({appear:n,in:a,nodeRef:x,onEnter:R,onEntered:P,onEntering:E,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>C.cloneElement(o,$r({style:$r({opacity:0,transform:Wp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Bp[e],f,o.props.style),ref:S},t))}))}));Up.muiSupportAuto=!0;const Gp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Yp=mc(zd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...jd(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"},[`&.${Bd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bd.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(.${Bd.disabled}, .${Bd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Bd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Kp=mc(Fd,{name:"MuiInput",slot:"Input",overridesResolver:_d})({}),Xp=C.forwardRef((function(e,t){var r,n,o,i;const a=yc({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=Wr(a,Gp),b=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,Sl({root:["root",!r&&"underline"],input:["input"]},Wd,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Ji(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Yp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Kp;return or.jsx($d,$r({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function Jp(e){return ys("MuiLink",e)}Xp.muiName="Input";const Zp=xs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Qp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ef=({theme:e,ownerState:t})=>{const r=(e=>Qp[e]||e)(t.color),n=ua(e,`palette.${r}`,!1)||t.color,o=ua(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Xl(n,.4)},tf=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],rf=mc(Sd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${sa(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:ef({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"},[`&.${Zp.focusVisible}`]:{outline:"auto"}}))),nf=C.forwardRef((function(e,t){const r=yc({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=Wr(r,tf),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=yl(),[b,v]=C.useState(!1),y=al(t,g),x=$r({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Sl({root:["root",`underline${sa(o)}`,"button"===r&&"button",n&&"focusVisible"]},Jp,t)})(x);return or.jsx(rf,$r({color:o,className:gs(S.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(Qp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),of=C.createContext({});function af(e){return ys("MuiList",e)}xs("MuiList",["root","padding","dense","subheader"]);const sf=["children","className","component","dense","disablePadding","subheader"],lf=mc("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}))),uf=C.forwardRef((function(e,t){const r=yc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Wr(r,sf),c=C.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 Sl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},af,t)})(d);return or.jsx(of.Provider,{value:c,children:or.jsxs(lf,$r({as:i,className:gs(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function cf(e){return ys("MuiListItemIcon",e)}const df=xs("MuiListItemIcon",["root","alignItemsFlexStart"]),pf=["className"],ff=mc("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}))),hf=C.forwardRef((function(e,t){const r=yc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Wr(r,pf),i=$r({},r,{alignItems:C.useContext(of).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Sl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},cf,r)})(i);return or.jsx(ff,$r({className:gs(a.root,n),ownerState:i,ref:t},o))})),mf=xs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),gf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function bf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function vf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function yf(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 xf(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")&&yf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Sf=C.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=Wr(e,gf),p=C.useRef(null),f=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Vs((()=>{n&&p.current.focus()}),[n]),C.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${xl(Zs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=al(p,t);let m=-1;C.Children.forEach(i,((e,t)=>{C.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=C.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),C.cloneElement(e,t)}return e}));return or.jsx(uf,$r({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Zs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),xf(t,n,l,s,bf);else if("ArrowUp"===r)e.preventDefault(),xf(t,n,l,s,vf);else if("Home"===r)e.preventDefault(),xf(t,null,l,s,bf);else if("End"===r)e.preventDefault(),xf(t,null,l,s,vf);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&&yf(n,o);o.previousKeyMatched&&(l||xf(t,n,!1,s,bf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function wf(e){return ys("MuiPopover",e)}xs("MuiPopover",["root","paper"]);const Cf=["onEntering"],Ef=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Rf=["slotProps"];function Pf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Af(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function If(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Mf(e){return"function"==typeof e?e():e}const kf=mc(Dp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Df=mc(Uc,{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}),Tf=C.forwardRef((function(e,t){var r,n,o;const i=yc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Up,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,P=Wr(i.TransitionProps,Cf),A=Wr(i,Ef),I=null!=(r=null==y?void 0:y.paper)?r:b,M=C.useRef(),k=al(M,I.ref),D=$r({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:P}),T=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"]},wf,t)})(D),O=C.useCallback((()=>{if("anchorPosition"===c)return u;const e=Mf(s),t=(e&&1===e.nodeType?e:Zs(M.current).body).getBoundingClientRect();return{top:t.top+Pf(t,l.vertical),left:t.left+Af(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),L=C.useCallback((e=>({vertical:Pf(e,x.vertical),horizontal:Af(e,x.horizontal)})),[x.horizontal,x.vertical]),q=C.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:If(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=Qs(Mf(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:If(r)}}),[s,c,O,L,m]),[N,j]=C.useState(g),_=C.useCallback((()=>{const e=M.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]);C.useEffect((()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[s,R,_]);C.useEffect((()=>{g&&_()})),C.useImperativeHandle(a,(()=>g?{updatePosition:()=>{_()}}:null),[g,_]),C.useEffect((()=>{if(!g)return;const e=Js((()=>{_()})),t=Qs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,_]);let z=w;"auto"!==w||S.muiSupportAuto||(z=void 0);const F=f||(s?Zs(Mf(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:kf,$=null!=(o=null==v?void 0:v.paper)?o:Df,W=Pl({elementType:$,externalSlotProps:$r({},I,{style:N?I.style:$r({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:D,className:gs(T.paper,null==I?void 0:I.className)}),B=Pl({elementType:H,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:gs(T.root,p)}),{slotProps:V}=B,U=Wr(B,Rf);return or.jsx(H,$r({},U,!wl(H)&&{slotProps:V,disableScrollLock:R},{children:or.jsx(S,$r({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},P,{children:or.jsx($,$r({},W,{children:d}))}))}))}));function Of(e){return ys("MuiMenu",e)}xs("MuiMenu",["root","paper","list"]);const Lf=["onEntering"],qf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Nf={vertical:"top",horizontal:"right"},jf={vertical:"top",horizontal:"left"},_f=mc(Tf,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zf=mc(Df,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ff=mc(Sf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Hf=C.forwardRef((function(e,t){var r,n;const o=yc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Wr(o.TransitionProps,Lf),x=Wr(o,qf),S=(()=>{const e=C.useContext(Ol);return null!=e&&e})(),w=$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 Sl({root:["root"],paper:["paper"],list:["list"]},Of,t)})(w),R=i&&!l&&d,P=C.useRef(null);let A=-1;C.Children.map(a,((e,t)=>{C.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=b.paper)?r:zf,M=null!=(n=v.paper)?n:p,k=Pl({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[E.root,s]}),D=Pl({elementType:I,externalSlotProps:M,ownerState:w,className:E.paper});return or.jsx(_f,$r({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Nf:jf,slots:{paper:I,root:b.root},slotProps:{root:k,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:$r({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:or.jsx(Ff,$r({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:g},u,{className:gs(E.list,u.className),children:a}))}))}));function $f(e){return ys("MuiMenuItem",e)}const Wf=xs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Bf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Vf=mc(cd,{shouldForwardProp:e=>hc(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"}},[`&.${Wf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Wf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Wf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Xl(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})`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Wf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Op.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Op.inset}`]:{marginLeft:52},[`& .${mf.root}`]:{marginTop:0,marginBottom:0},[`& .${mf.inset}`]:{paddingLeft:36},[`& .${df.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$r({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${df.root} svg`]:{fontSize:"1.25rem"}})))),Uf=C.forwardRef((function(e,t){const r=yc({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=Wr(r,Bf),f=C.useContext(of),h=C.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=C.useRef(null);Vs((()=>{n&&m.current&&m.current.focus()}),[n]);const g=$r({},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 $r({},a,Sl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},$f,a))})(r),v=al(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),or.jsx(of.Provider,{value:h,children:or.jsx(Vf,$r({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:gs(b.focusVisible,l),className:gs(b.root,d)},p,{ownerState:g,classes:b}))})}));function Gf(e){return ys("MuiNativeSelect",e)}const Yf=xs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Kf=["className","disabled","error","IconComponent","inputRef","variant"],Xf=({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"},[`&.${Yf.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}}),Jf=mc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:hc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Yf.multiple}`]:t.multiple}]}})(Xf),Zf=({ownerState:e,theme:t})=>$r({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Yf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Qf=mc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${sa(r.variant)}`],r.open&&t.iconOpen]}})(Zf),eh=C.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Wr(e,Kf),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 Sl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${sa(r)}`,i&&"iconOpen",n&&"disabled"]},Gf,t)})(u);return or.jsxs(C.Fragment,{children:[or.jsx(Jf,$r({ownerState:u,className:gs(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:or.jsx(Qf,{as:i,ownerState:u,className:c.icon})]})}));var th;const rh=["children","classes","className","label","notched"],nh=mc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:hc})({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%"}),oh=mc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:hc})((({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 ih=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ah=mc(zd,{shouldForwardProp:e=>hc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:jd})((({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 .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ud.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Ud.focused} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ud.error} .${Ud.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ud.disabled} .${Ud.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"}))})),sh=mc((function(e){const{className:t,label:r,notched:n}=e,o=Wr(e,rh),i=null!=r&&""!==r,a=$r({},e,{notched:n,withLabel:i});return or.jsx(nh,$r({"aria-hidden":!0,className:t,ownerState:a},o,{children:or.jsx(oh,{ownerState:a,children:i?or.jsx("span",{children:r}):th||(th=or.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}})),lh=mc(Fd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_d})((({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}))),uh=C.forwardRef((function(e,t){var r,n,o,i,a;const s=yc({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=Wr(s,ih),b=(e=>{const{classes:t}=e;return $r({},t,Sl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Vd,t))})(s),v=kd(),y=Id({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=$r({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(r=null!=(n=h.root)?n:l.Root)?r:ah,w=null!=(o=null!=(i=h.input)?i:l.Input)?o:lh;return or.jsx($d,$r({slots:{root:S,input:w},renderSuffix:e=>or.jsx(sh,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=or.jsxs(C.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({},b,{notchedOutline:null})}))}));function ch(e){return ys("MuiSelect",e)}uh.muiName="Input";const dh=xs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ph;const fh=["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"],hh=mc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${dh.select}`]:t.select},{[`&.${dh.select}`]:t[r.variant]},{[`&.${dh.error}`]:t.error},{[`&.${dh.multiple}`]:t.multiple}]}})(Xf,{[`&.${dh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mh=mc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${sa(r.variant)}`],r.open&&t.iconOpen]}})(Zf),gh=mc("input",{shouldForwardProp:e=>fc(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 bh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function vh(e){return null==e||"string"==typeof e&&!e.trim()}const yh=C.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:w,onFocus:E,onOpen:R,open:P,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:k,value:D,variant:T="standard"}=e,O=Wr(e,fh),[L,q]=ol({controlled:D,default:c,name:"Select"}),[N,j]=ol({controlled:P,default:u,name:"Select"}),_=C.useRef(null),z=C.useRef(null),[F,H]=C.useState(null),{current:$}=C.useRef(null!=P),[W,B]=C.useState(),V=al(t,m),U=C.useCallback((e=>{z.current=e,e&&H(e)}),[]),G=null==F?void 0:F.parentNode;C.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:_.current,value:L})),[L]),C.useEffect((()=>{u&&N&&F&&!$&&(B(a?null:G.clientWidth),z.current.focus())}),[F,a]),C.useEffect((()=>{i&&z.current.focus()}),[i]),C.useEffect((()=>{if(!g)return;const e=Zs(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):w&&w(t),$||(B(a?null:G.clientWidth),j(e))},K=C.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),S)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),S(o,e)}v||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Od({value:L})||p)&&(I?Z=I(L):te=!0);const re=K.map((e=>{if(!C.isValidElement(e))return null;let t;if(v){if(!Array.isArray(L))throw new Error(zr(2));t=L.some((t=>bh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=bh(L,e.props.value),t&&te&&(Q=e.props.children);return C.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=W;!a&&$&&F&&(oe=G.clientWidth),ne=void 0!==k?k:d?null:0;const ie=M.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 Sl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${sa(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},ch,t)})(ae),le=$r({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=nl();return or.jsxs(C.Fragment,{children:[or.jsx(hh,$r({ref:U,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:y}}),x(e))},onFocus:E},M,{ownerState:ae,className:gs(M.className,se.select,l),id:ie,children:vh(Z)?ph||(ph=or.jsx("span",{className:"notranslate",children:""})):Z})),or.jsx(gh,$r({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(q(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),or.jsx(mh,{as:h,className:se.icon,ownerState:ae}),or.jsx(Hf,$r({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:$r({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:$r({},b.slotProps,{paper:$r({},le,{style:$r({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),xh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Sh=["root"],wh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>hc(e)&&"variant"!==e,slot:"Root"},Ch=mc(Xp,wh)(""),Eh=mc(uh,wh)(""),Rh=mc(Hp,wh)(""),Ph=C.forwardRef((function(e,t){const r=yc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=Kd,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:w,variant:E="outlined"}=r,R=Wr(r,xh),P=b?eh:yh,A=Id({props:r,muiFormControl:kd(),states:["variant","error"]}),I=A.variant||E,M=$r({},r,{variant:I,classes:i}),k=(e=>{const{classes:t}=e;return t})(M),D=Wr(k,Sh),T=d||{standard:or.jsx(Ch,{ownerState:M}),outlined:or.jsx(Eh,{label:f,ownerState:M}),filled:or.jsx(Rh,{ownerState:M})}[I],O=al(t,Al(T));return or.jsx(C.Fragment,{children:C.cloneElement(T,$r({inputComponent:P,inputProps:$r({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:$r({id:c},w)},p,{classes:p?Ji(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===I?{notched:!0}:{},{ref:O,className:gs(T.props.className,a,k.root)},!d&&{variant:I},R))})}));Ph.muiName="Select";const Ah=C.createContext();function Ih(e){return ys("MuiTable",e)}xs("MuiTable",["root","stickyHeader"]);const Mh=["className","component","padding","size","stickyHeader"],kh=mc("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"}))),Dh="table",Th=C.forwardRef((function(e,t){const r=yc({props:e,name:"MuiTable"}),{className:n,component:o=Dh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Wr(r,Mh),u=$r({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Sl({root:["root",r&&"stickyHeader"]},Ih,t)})(u),d=C.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return or.jsx(Ah.Provider,{value:d,children:or.jsx(kh,$r({as:o,role:o===Dh?null:"table",ref:t,className:gs(c.root,n),ownerState:u},l))})})),Oh=C.createContext();function Lh(e){return ys("MuiTableBody",e)}xs("MuiTableBody",["root"]);const qh=["className","component"],Nh=mc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),jh={variant:"body"},_h="tbody",zh=C.forwardRef((function(e,t){const r=yc({props:e,name:"MuiTableBody"}),{className:n,component:o=_h}=r,i=Wr(r,qh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return Sl({root:["root"]},Lh,t)})(a);return or.jsx(Oh.Provider,{value:jh,children:or.jsx(Nh,$r({className:gs(s.root,n),as:o,ref:t,role:o===_h?null:"rowgroup",ownerState:a},i))})}));function Fh(e){return ys("MuiTableCell",e)}const Hh=xs("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),$h=["align","className","component","padding","scope","size","sortDirection","variant"],Wh=mc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${sa(r.size)}`],"normal"!==r.padding&&t[`padding${sa(r.padding)}`],"inherit"!==r.align&&t[`align${sa(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?Ql(Xl(e.palette.divider,1),.88):Jl(Xl(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",[`&.${Hh.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}))),Bh=C.forwardRef((function(e,t){const r=yc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Wr(r,$h),p=C.useContext(Ah),f=C.useContext(Oh),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=$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"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Sl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${sa(n)}`,"normal"!==o&&`padding${sa(o)}`,`size${sa(i)}`]},Fh,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),or.jsx(Wh,$r({as:m,ref:t,className:gs(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));function Vh(e){return ys("MuiTableContainer",e)}xs("MuiTableContainer",["root"]);const Uh=["className","component"],Gh=mc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Yh=C.forwardRef((function(e,t){const r=yc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Wr(r,Uh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return Sl({root:["root"]},Vh,t)})(a);return or.jsx(Gh,$r({ref:t,as:o,className:gs(s.root,n),ownerState:a},i))}));function Kh(e){return ys("MuiTableHead",e)}xs("MuiTableHead",["root"]);const Xh=["className","component"],Jh=mc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Zh={variant:"head"},Qh="thead",em=C.forwardRef((function(e,t){const r=yc({props:e,name:"MuiTableHead"}),{className:n,component:o=Qh}=r,i=Wr(r,Xh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return Sl({root:["root"]},Kh,t)})(a);return or.jsx(Oh.Provider,{value:Zh,children:or.jsx(Jh,$r({as:o,className:gs(s.root,n),ref:t,role:o===Qh?null:"rowgroup",ownerState:a},i))})}));function tm(e){return ys("MuiTableRow",e)}const rm=xs("MuiTableRow",["root","selected","hover","head","footer"]),nm=["className","component","hover","selected"],om=mc("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,[`&.${rm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Xl(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}))`:Xl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),im="tr",am=C.forwardRef((function(e,t){const r=yc({props:e,name:"MuiTableRow"}),{className:n,component:o=im,hover:i=!1,selected:a=!1}=r,s=Wr(r,nm),l=C.useContext(Oh),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 Sl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},tm,t)})(u);return or.jsx(om,$r({as:o,ref:t,className:gs(c.root,n),role:o===im?null:"row",ownerState:u},s))}));function sm(e){return or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:or.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function lm({fontSize:e="medium",children:t=null,className:r=""}={}){return or.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 um(e={}){return or.jsx(lm,{...e,children:or.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[or.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),or.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 cm(e={}){return or.jsx(lm,{fontSize:"medium",...e,children:or.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[or.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),or.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 dm(e){return or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:or.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 pm(e={}){return or.jsx(lm,{...e,children:or.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:or.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[or.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),or.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function fm(e={}){return or.jsx(lm,{fontSize:"medium",...e,children:or.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:or.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:or.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function hm({className:e}){return or.jsx(lm,{fontSize:"small",className:e,children:or.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:or.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:or.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:or.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[or.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"}),or.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 mm(e={}){return or.jsx(lm,{...e,children:or.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:or.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:or.jsx("rect",{stroke:Nt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const gm={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:Ht,"& > 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 bm=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Nt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Nt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:or.jsx(sm,{"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 ${Nt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`,borderRadius:Ht,backgroundColor:Nt.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 ${Nt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Nt.WHITE,color:Nt.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:Ht},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Nt.GREYSCALE_0_15,backgroundColor:Nt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Nt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Nt.GREEN_PALE},"&:active":{backgroundColor:Nt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Nt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ks(Nt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Nt.BLUE_PALE},"&:active":{backgroundColor:Nt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Nt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ks(Nt.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:Ht,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Nt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Nt.GREYSCALE_0_42,backgroundColor:Nt.GREYSCALE_100_60,"&:active":{backgroundColor:Nt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Nt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Nt.PURPLE,"&.Mui-focusVisible":{borderColor:Nt.PURPLE,boxShadow:`0 0 0 3px ${Ks(Nt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Nt.GREEN,"&.Mui-focusVisible":{borderColor:Nt.GREEN,boxShadow:`0 0 0 3px ${Ks(Nt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Nt.BLUE,"&.Mui-focusVisible":{borderColor:Nt.BLUE,boxShadow:`0 0 0 3px ${Ks(Nt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Nt.ORANGE,"&.Mui-focusVisible":{borderColor:Nt.ORANGE,boxShadow:`0 0 0 3px ${Ks(Nt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Nt.RED,"&.Mui-focusVisible":{borderColor:Nt.RED,boxShadow:`0 0 0 3px ${Ks(Nt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Nt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Nt.PURPLE_PALE},"&:active":{backgroundColor:Nt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Nt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Ks(Nt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Nt.GREEN_PALE},"&:active":{backgroundColor:Nt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Nt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ks(Nt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Nt.BLUE_PALE},"&:active":{backgroundColor:Nt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Nt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ks(Nt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Nt.ORANGE_PALE},"&:active":{backgroundColor:Nt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Nt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Ks(Nt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Nt.RED_PALE},"&:active":{backgroundColor:Nt.RED_DARK},"&.Mui-focusVisible":{borderColor:Nt.RED_PALE,boxShadow:`0 0 0 3px ${Ks(Nt.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:Nt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Nt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ht,boxShadow:`inset 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:or.jsx(dm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:jt,borderRadius:Ht,color:Nt.TEXT_PRIMARY,backgroundColor:Nt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Nt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Nt.GREYSCALE_0_05,color:Nt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Nt.GREEN,borderColor:Nt.GREEN},"&.MuiChip-outlinedInfo":{color:Nt.BLUE,borderColor:Nt.BLUE},"&.MuiChip-outlinedWarning":{color:Nt.ORANGE,borderColor:Nt.ORANGE},"&.MuiChip-outlinedError":{color:Nt.RED,borderColor:Nt.RED}},outlined:{border:`solid 1px ${Nt.GREYSCALE_0_15}`,backgroundColor:Nt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ht,boxShadow:"none",backgroundColor:Nt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Nt.GREEN,borderColor:Nt.GREEN},outlinedSecondary:{color:Nt.BLUE,borderColor:Nt.BLUE},label:{fontFamily:Ut.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:or.jsx(dm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:or.jsx(sm,{"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:Ht},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ht,fontSize:_t,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Nt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Nt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Nt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Nt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Nt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ht,border:`solid 1px ${Nt.GREYSCALE_0_15}`,color:Nt.GREYSCALE_0_60,marginRight:0,width:Ft,height:Ft},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Nt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ht,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Nt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:_t}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:jt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Nt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Nt.GREYSCALE_25,fontSize:jt,fontFamily:Ut.FONT_FAMILY,fontWeight:Bt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Nt.TEXT_PRIMARY},"&.Mui-error":{color:Nt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Nt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Wt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Nt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Wt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:_t,lineHeight:"16px",backgroundColor:Nt.WHITE,borderRadius:Ht,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nt.GREYSCALE_0_05}`,borderColor:Nt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Nt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Nt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nt.RED}`,boxShadow:`0px 0px 0px 1px ${Nt.RED}, inset 0 2px 0 0 ${Nt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nt.GREYSCALE_0_10}`,borderColor:Nt.GREYSCALE_0_10,backgroundColor:Nt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Nt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Nt.GREYSCALE_0_15,borderRadius:Ht,boxShadow:`inset 0 2px 0 0 ${Nt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>or.jsx(sm,{...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:Nt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Nt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Nt.GREYSCALE_0_03},"&:active":{backgroundColor:Nt.GREYSCALE_0_10},"&:focus":{backgroundColor:Nt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Nt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Nt.GREYSCALE_0_30,"&:hover":{backgroundColor:Nt.GREYSCALE_0_0,borderColor:Nt.GREYSCALE_0_15},"& ~svg":{color:Nt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Nt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ht}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Nt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Nt.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:jt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:jt,fontWeight:Bt,color:Nt.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 ${Nt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Nt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:or.jsx(fm,{}),checkedIcon:or.jsx(cm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Nt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Nt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ks(Nt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Nt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ks(Nt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Nt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Nt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:or.jsx(mm,{}),checkedIcon:or.jsx(um,{}),indeterminateIcon:or.jsx(pm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ht,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Nt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Nt.GREYSCALE_0_55,color:Nt.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:Nt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Nt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Nt.GREYSCALE_0_55,"&:hover":{color:Nt.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:Nt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Nt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:_t,color:Nt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Bt},secondary:{fontSize:jt,color:Nt.GREYSCALE_45,fontWeight:Wt,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:Nt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:jt,borderBottom:`solid 1px ${Nt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:_t,color:Nt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Nt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Nt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Nt.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:Nt.RED}}},"&.Mui-focusVisible":{backgroundColor:Nt.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:Nt.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:Nt.GREEN,height:"24px","&.Mui-disabled":{color:Nt.GREYSCALE_0_15}},rail:{backgroundColor:Nt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Nt.GREYSCALE_0_05}`,borderRadius:Ht,boxShadow:`inset 0px 0px 0px 1px ${Nt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Nt.GREYSCALE_0_05}`,borderRadius:Ht},thumb:{height:"16px",width:"16px",borderRadius:Ht,backgroundColor:Nt.WHITE,boxShadow:`0px 1px 2px 0px ${Nt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Nt.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ht,boxShadow:`0 2px 4px 0 ${Nt.GREYSCALE_0_30}, 0 0 0 1px ${Nt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Nt.GREYSCALE_0_15}, 0 0 0 1px ${Nt.GREYSCALE_0_06}, 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Nt.GREYSCALE_0_15}, 0 0 0 1px ${Nt.GREYSCALE_0_06}, 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Nt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Nt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Nt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Nt.GREYSCALE_0_15},markLabel:{color:Nt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Nt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Nt.WHITE,color:Nt.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:Nt.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:Nt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ks(Nt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Nt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ks(Nt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Nt.GREYSCALE_0_15,borderRadius:Ht},thumb:{height:"16px",width:"16px",borderRadius:Ht,backgroundColor:Nt.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 ${Nt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Nt.MISC_FOCUS_BORDER}`,backgroundColor:Nt.GREYSCALE_0_03,borderRadius:Ht},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Nt.GREYSCALE_25,"&.Mui-selected":{color:Nt.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:Ht,"&:hover":{backgroundColor:Nt.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 ${Nt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Nt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ht,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Nt.GREYSCALE_0_05},"&:hover":{backgroundColor:Nt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Nt.GREYSCALE_85}`,borderRight:`1px solid ${Nt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Bt,backgroundColor:Nt.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:Nt.GREYSCALE_98,borderBottom:`1px solid ${Nt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Nt.GREYSCALE_85}`,borderTop:`1px solid ${Nt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Nt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Nt.GREYSCALE_0_05,"&:hover":{backgroundColor:Nt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Nt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>or.jsx(hm,{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 ${Nt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:_t,borderRadius:Ht,padding:"7px 16px",border:`1px solid ${Nt.GREYSCALE_0_15}`,backgroundColor:Nt.GREYSCALE_100_60,color:Nt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Nt.GREYSCALE_0_10,border:`1px solid ${Nt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Nt.GREYSCALE_0_03,border:`1px solid ${Nt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Nt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Nt.MISC_FOCUS_BORDER}`,border:`1px solid ${Nt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Nt.GREYSCALE_25,backgroundColor:Nt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Nt.GREYSCALE_0_10,border:`1px solid ${Nt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:jt,height:24,width:24,padding:7},sizeLarge:{fontSize:zt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:_t,borderRadius:Ht}}},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:Nt.GREYSCALE_20},tooltip:{backgroundColor:Nt.GREYSCALE_20,fontSize:jt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...gm}:{}}))(t);const vm=e=>({mode:"light",primary:{ultraLight:Nt.GREEN_ULTRA_LIGHT,light:Nt.GREEN_PALE,main:Nt.GREEN,dark:Nt.GREEN_DARK,extraDark:Nt.GREEN_EXTRA_DARK,contrastText:Nt.WHITE},secondary:{ultraLight:Nt.BLUE_ULTRA_LIGHT,light:Nt.BLUE_PALE,main:Nt.BLUE,dark:Nt.BLUE_DARK,extraDark:Nt.BLUE_EXTRA_DARK,contrastText:Nt.WHITE},error:{ultraLight:Nt.RED_ULTRA_LIGHT,light:Nt.RED_PALE,main:Nt.RED,dark:Nt.RED_DARK,extraDark:Nt.RED_EXTRA_DARK,contrastText:Nt.WHITE},warning:{ultraLight:Nt.ORANGE_ULTRA_LIGHT,light:Nt.ORANGE_PALE,main:Nt.ORANGE,dark:Nt.ORANGE_DARK,extraDark:Nt.ORANGE_EXTRA_DARK,contrastText:Nt.WHITE},success:{ultraLight:Nt.GREEN_ULTRA_LIGHT,light:Nt.GREEN_PALE,main:Nt.GREEN,dark:Nt.GREEN_DARK,extraDark:Nt.GREEN_EXTRA_DARK,contrastText:Nt.WHITE},info:{ultraLight:Nt.BLUE_ULTRA_LIGHT,light:Nt.BLUE_PALE,main:Nt.BLUE,dark:Nt.BLUE_DARK,extraDark:Nt.BLUE_EXTRA_DARK,contrastText:Nt.WHITE},text:{primary:Nt.TEXT_PRIMARY,secondary:Nt.TEXT_SECONDARY,disabled:Nt.GREYSCALE_0_30},action:{hover:Nt.GREYSCALE_0_03,hoverOpacity:.03,selected:Nt.GREYSCALE_0_05,selectedOpacity:.05,focus:Nt.MISC_FOCUS_BORDER},amethyst:{ultraLight:Nt.WHITE,main:Nt.PURPLE,light:Nt.PURPLE_PALE,dark:Nt.PURPLE_DARK,extraDark:Nt.GREYSCALE_0_0,contrastText:Nt.WHITE},background:{paper:Nt.WHITE,default:Nt.GREYSCALE_95},divider:Nt.GREYSCALE_0_15}),ym={...qt};var xm={},Sm={exports:{}},wm={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}(wm);var Cm=wm.exports;!function(e){var t=Cm.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}(Sm);var Em=Sm.exports,Rm={};function Pm(e,t){return function(){return null}}function Am(e){return e&&"object"===Hl(e)&&e.constructor===Object}function Im(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?$r({},e):e;return Am(e)&&Am(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Am(t[o])&&o in e?n[o]=Im(e[o],t[o],r):n[o]=t[o])})),n}var Mm=($i.element,function(){return null});Mm.isRequired=($i.element.isRequired,function(){return null});var km=function(){return null};var Dm={exports:{}},Tm={},Om=60103,Lm=60106,qm=60107,Nm=60108,jm=60114,_m=60109,zm=60110,Fm=60112,Hm=60113,$m=60120,Wm=60115,Bm=60116,Vm=60121,Um=60122,Gm=60117,Ym=60129,Km=60131;if("function"==typeof Symbol&&Symbol.for){var Xm=Symbol.for;Om=Xm("react.element"),Lm=Xm("react.portal"),qm=Xm("react.fragment"),Nm=Xm("react.strict_mode"),jm=Xm("react.profiler"),_m=Xm("react.provider"),zm=Xm("react.context"),Fm=Xm("react.forward_ref"),Hm=Xm("react.suspense"),$m=Xm("react.suspense_list"),Wm=Xm("react.memo"),Bm=Xm("react.lazy"),Vm=Xm("react.block"),Um=Xm("react.server.block"),Gm=Xm("react.fundamental"),Ym=Xm("react.debug_trace_mode"),Km=Xm("react.legacy_hidden")}function Jm(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Om:switch(e=e.type){case qm:case jm:case Nm:case Hm:case $m:return e;default:switch(e=e&&e.$$typeof){case zm:case Fm:case Bm:case Wm:case _m:return e;default:return t}}case Lm:return t}}}var Zm=_m,Qm=Om,eg=Fm,tg=qm,rg=Bm,ng=Wm,og=Lm,ig=jm,ag=Nm,sg=Hm;Tm.ContextConsumer=zm,Tm.ContextProvider=Zm,Tm.Element=Qm,Tm.ForwardRef=eg,Tm.Fragment=tg,Tm.Lazy=rg,Tm.Memo=ng,Tm.Portal=og,Tm.Profiler=ig,Tm.StrictMode=ag,Tm.Suspense=sg,Tm.isAsyncMode=function(){return!1},Tm.isConcurrentMode=function(){return!1},Tm.isContextConsumer=function(e){return Jm(e)===zm},Tm.isContextProvider=function(e){return Jm(e)===_m},Tm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Om},Tm.isForwardRef=function(e){return Jm(e)===Fm},Tm.isFragment=function(e){return Jm(e)===qm},Tm.isLazy=function(e){return Jm(e)===Bm},Tm.isMemo=function(e){return Jm(e)===Wm},Tm.isPortal=function(e){return Jm(e)===Lm},Tm.isProfiler=function(e){return Jm(e)===jm},Tm.isStrictMode=function(e){return Jm(e)===Nm},Tm.isSuspense=function(e){return Jm(e)===Hm},Tm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===qm||e===jm||e===Ym||e===Nm||e===Hm||e===$m||e===Km||"object"==typeof e&&null!==e&&(e.$$typeof===Bm||e.$$typeof===Wm||e.$$typeof===_m||e.$$typeof===zm||e.$$typeof===Fm||e.$$typeof===Gm||e.$$typeof===Vm||e[0]===Um)},Tm.typeOf=Jm,Dm.exports=Tm;var lg=Dm.exports,ug=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function cg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(ug);return t&&t[1]||""}(e)||t}function dg(e,t,r){var n=cg(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var pg="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),fg=$i.oneOfType([$i.func,$i.object]),hg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Pm,deepmerge:Im,elementAcceptingRef:Mm,elementTypeAcceptingRef:km,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 cg(e,"Component");if("object"===Hl(e))switch(e.$$typeof){case lg.ForwardRef:return dg(e,e.render,"ForwardRef");case lg.Memo:return dg(e,e.type,"memo");default:return}}},ponyfillGlobal:pg,refType:fg}),mg=Yt(hg);Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.hexToRgb=vg,Rm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=xg(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(""))},Rm.hslToRgb=yg,Rm.decomposeColor=xg,Rm.recomposeColor=Sg,Rm.getContrastRatio=function(e,t){var r=wg(e),n=wg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Rm.getLuminance=wg,Rm.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return wg(e)>.5?Eg(e,t):Rg(e,t)},Rm.fade=function(e,t){return Cg(e,t)},Rm.alpha=Cg,Rm.darken=Eg,Rm.lighten=Rg;var gg=mg;function bg(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 vg(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 yg(e){var t=(e=xg(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])),Sg({type:s,values:l})}function xg(e){if(e.type)return e;if("#"===e.charAt(0))return xg(vg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,gg.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 Sg(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 wg(e){var t="hsl"===(e=xg(e)).type?xg(yg(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 Cg(e,t){return e=xg(e),t=bg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Sg(e)}function Eg(e,t){if(e=xg(e),t=bg(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 Sg(e)}function Rg(e,t){if(e=xg(e),t=bg(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 Sg(e)}var Pg,Ag,Ig,Mg={},kg={exports:{}},Dg={exports:{}},Tg={exports:{}};function Og(){return Pg||(Pg=1,function(e){var t=Cm.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}(Tg)),Tg.exports}function Lg(){return Ag||(Ag=1,function(e){var t=Cm.default,r=Og();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Dg)),Dg.exports}function qg(){return Ig||(Ig=1,function(e){var t=Lg();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}(kg)),kg.exports}var Ng,jg={exports:{}};function _g(){return Ng||(Ng=1,function(e){var t=Hu();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}(jg)),jg.exports}var zg,Fg={};var Hg,$g={};var Wg,Bg={},Vg={};var Ug,Gg={};var Yg,Kg={};var Xg,Jg={};var Zg,Qg={};var eb,tb={};var rb,nb={};var ob,ib,ab={};function sb(){if(ib)return Bg;ib=1;var e=Ul;Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,P=e.success,A=void 0===P?{light:d.default[300],main:d.default[500],dark:d.default[700]}:P,I=e.type,M=void 0===I?"light":I,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:M,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(A),grey:i.default,contrastThreshold:D,getContrastText:q,augmentColor:N,tonalOffset:O},j[M]),L);return _},Bg.dark=Bg.light=void 0;var t=e(_u()),r=e(_g()),n=mg,o=e(function(){if(Wg)return Vg;Wg=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.default=void 0;var e={black:"#000",white:"#fff"};return Vg.default=e,Vg}()),i=e(function(){if(Ug)return Gg;Ug=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.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 Gg.default=e,Gg}()),a=e(function(){if(Yg)return Kg;Yg=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.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 Kg.default=e,Kg}()),s=e(function(){if(Xg)return Jg;Xg=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.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 Jg.default=e,Jg}()),l=e(function(){if(Zg)return Qg;Zg=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.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 Qg.default=e,Qg}()),u=e(function(){if(eb)return tb;eb=1,Object.defineProperty(tb,"__esModule",{value:!0}),tb.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 tb.default=e,tb}()),c=e(function(){if(rb)return nb;rb=1,Object.defineProperty(nb,"__esModule",{value:!0}),nb.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 nb.default=e,nb}()),d=e(function(){if(ob)return ab;ob=1,Object.defineProperty(ab,"__esModule",{value:!0}),ab.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 ab.default=e,ab}()),p=Rm,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}};Bg.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 Bg.dark=h,Bg}var lb,ub={};var cb,db={};var pb,fb={};var hb={};function mb(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 gb(e,t){if(e){if("string"==typeof e)return mb(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)?mb(e,t):void 0}}function bb(e){return function(e){if(Array.isArray(e))return mb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gb(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 vb(e,t){return t?Im(e,t,{clone:!1}):e}var yb={xs:0,sm:600,md:960,lg:1280,xl:1920},xb={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(yb[e],"px)")}};function Sb(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||xb;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Hl(t)){var o=e.theme.breakpoints||xb;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function wb(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Cb(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=wb(e.theme,o)||{};return Sb(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=wb(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 Eb(){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?vb(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function Rb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Pb=Cb({prop:"border",themeKey:"borders",transform:Rb}),Ab=Cb({prop:"borderTop",themeKey:"borders",transform:Rb}),Ib=Cb({prop:"borderRight",themeKey:"borders",transform:Rb}),Mb=Cb({prop:"borderBottom",themeKey:"borders",transform:Rb}),kb=Cb({prop:"borderLeft",themeKey:"borders",transform:Rb}),Db=Cb({prop:"borderColor",themeKey:"palette"}),Tb=Cb({prop:"borderRadius",themeKey:"shape"}),Ob=Eb(Pb,Ab,Ib,Mb,kb,Db,Tb);function Lb(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function qb(e){var t=function(t){var r=e(t);return t.css?$r({},vb(r,e($r({theme:t.theme},t.css))),Lb(t.css,[e.filterProps])):t.sx?$r({},vb(r,e($r({theme:t.theme},t.sx))),Lb(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(bb(e.filterProps)),t}var Nb=Eb(Cb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Cb({prop:"display"}),Cb({prop:"overflow"}),Cb({prop:"textOverflow"}),Cb({prop:"visibility"}),Cb({prop:"whiteSpace"})),jb=Cb({prop:"flexBasis"}),_b=Cb({prop:"flexDirection"}),zb=Cb({prop:"flexWrap"}),Fb=Cb({prop:"justifyContent"}),Hb=Cb({prop:"alignItems"}),$b=Cb({prop:"alignContent"}),Wb=Cb({prop:"order"}),Bb=Cb({prop:"flex"}),Vb=Cb({prop:"flexGrow"}),Ub=Cb({prop:"flexShrink"}),Gb=Cb({prop:"alignSelf"}),Yb=Cb({prop:"justifyItems"}),Kb=Cb({prop:"justifySelf"}),Xb=Eb(jb,_b,zb,Fb,Hb,$b,Wb,Bb,Vb,Ub,Gb,Yb,Kb),Jb=Cb({prop:"gridGap"}),Zb=Cb({prop:"gridColumnGap"}),Qb=Cb({prop:"gridRowGap"}),ev=Cb({prop:"gridColumn"}),tv=Cb({prop:"gridRow"}),rv=Cb({prop:"gridAutoFlow"}),nv=Cb({prop:"gridAutoColumns"}),ov=Cb({prop:"gridAutoRows"}),iv=Cb({prop:"gridTemplateColumns"}),av=Cb({prop:"gridTemplateRows"}),sv=Cb({prop:"gridTemplateAreas"}),lv=Cb({prop:"gridArea"}),uv=Eb(Jb,Zb,Qb,ev,tv,rv,nv,ov,iv,av,sv,lv),cv=Cb({prop:"color",themeKey:"palette"}),dv=Cb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),pv=Eb(cv,dv),fv=Cb({prop:"position"}),hv=Cb({prop:"zIndex",themeKey:"zIndex"}),mv=Cb({prop:"top"}),gv=Cb({prop:"right"}),bv=Cb({prop:"bottom"}),vv=Cb({prop:"left"}),yv=Eb(fv,hv,mv,gv,bv,vv),xv=Cb({prop:"boxShadow",themeKey:"shadows"});function Sv(e){return e<=1?"".concat(100*e,"%"):e}var wv=Cb({prop:"width",transform:Sv}),Cv=Cb({prop:"maxWidth",transform:Sv}),Ev=Cb({prop:"minWidth",transform:Sv}),Rv=Cb({prop:"height",transform:Sv}),Pv=Cb({prop:"maxHeight",transform:Sv}),Av=Cb({prop:"minHeight",transform:Sv}),Iv=Cb({prop:"size",cssProperty:"width",transform:Sv}),Mv=Cb({prop:"size",cssProperty:"height",transform:Sv}),kv=Cb({prop:"boxSizing"}),Dv=Eb(wv,Cv,Ev,Rv,Pv,Av,kv);function Tv(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)||gb(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 Ov={m:"margin",p:"padding"},Lv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Nv=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(!qv[e])return[e];e=qv[e]}var t=Tv(e.split(""),2),r=t[0],n=t[1],o=Ov[r],i=Lv[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),jv=["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 _v(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 zv(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 Fv(e){var t=_v(e.theme);return Object.keys(e).map((function(r){if(-1===jv.indexOf(r))return null;var n=zv(Nv(r),t),o=e[r];return Sb(e,o,n)})).reduce(vb,{})}Fv.propTypes={},Fv.filterProps=jv;var Hv,$v=Cb({prop:"fontFamily",themeKey:"typography"}),Wv=Cb({prop:"fontSize",themeKey:"typography"}),Bv=Cb({prop:"fontStyle",themeKey:"typography"}),Vv=Cb({prop:"fontWeight",themeKey:"typography"}),Uv=Cb({prop:"letterSpacing"}),Gv=Cb({prop:"lineHeight"}),Yv=Cb({prop:"textAlign"}),Kv=Eb($v,Wv,Bv,Vv,Uv,Gv,Yv),Xv=Object.freeze({__proto__:null,alignContent:$b,alignItems:Hb,alignSelf:Gb,bgcolor:dv,border:Pb,borderBottom:Mb,borderColor:Db,borderLeft:kb,borderRadius:Tb,borderRight:Ib,borderTop:Ab,borders:Ob,bottom:bv,boxSizing:kv,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||xb,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 vb(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(bb(e.filterProps)),t},color:cv,compose:Eb,createUnarySpacing:_v,css:function(e){return qb(e)},display:Nb,flex:Bb,flexBasis:jb,flexDirection:_b,flexGrow:Vb,flexShrink:Ub,flexWrap:zb,flexbox:Xb,fontFamily:$v,fontSize:Wv,fontStyle:Bv,fontWeight:Vv,grid:uv,gridArea:lv,gridAutoColumns:nv,gridAutoFlow:rv,gridAutoRows:ov,gridColumn:ev,gridColumnGap:Zb,gridGap:Jb,gridRow:tv,gridRowGap:Qb,gridTemplateAreas:sv,gridTemplateColumns:iv,gridTemplateRows:av,height:Rv,justifyContent:Fb,justifyItems:Yb,justifySelf:Kb,left:vv,letterSpacing:Uv,lineHeight:Gv,maxHeight:Pv,maxWidth:Cv,minHeight:Av,minWidth:Ev,order:Wb,palette:pv,position:fv,positions:yv,right:gv,shadows:xv,sizeHeight:Mv,sizeWidth:Iv,sizing:Dv,spacing:Fv,style:Cb,styleFunctionSx:qb,textAlign:Yv,top:mv,typography:Kv,width:wv,zIndex:hv}),Jv=Yt(Xv);var Zv,Qv={};function ey(){if(Zv)return Qv;Zv=1;var e=Ul;Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.default=Qv.duration=Qv.easing=void 0;var t=e(_g()),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)"};Qv.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")}Qv.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 Qv.default=i,Qv}var ty,ry,ny={};function oy(){if(ry)return Mg;ry=1;var e=Ul;Object.defineProperty(Mg,"__esModule",{value:!0}),Mg.createMuiTheme=function(){return p.apply(void 0,arguments)},Mg.default=void 0,e(qg());var t=e(_g()),r=mg,n=e(function(){if(zg)return Fg;zg=1;var e=Ul;Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.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)},Fg.keys=void 0;var t=e(_u()),r=e(_g()),n=["xs","sm","md","lg","xl"];return Fg.keys=n,Fg}()),o=e(function(){if(Hg)return $g;Hg=1;var e=Ul;Object.defineProperty($g,"__esModule",{value:!0}),$g.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(qg()),r=e(_u());return $g}()),i=e(sb()),a=e(function(){if(lb)return ub;lb=1;var e=Ul;Object.defineProperty(ub,"__esModule",{value:!0}),ub.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,P=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),A=f/14,I=R||function(e){return"".concat(e/C*A,"rem")},M=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:I(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},k={h1:M(m,96,1.167,-1.5),h2:M(m,60,1.2,-.5),h3:M(b,48,1.167,0),h4:M(b,34,1.235,.25),h5:M(b,24,1.334,0),h6:M(y,20,1.6,.15),subtitle1:M(b,16,1.75,.15),subtitle2:M(y,14,1.57,.1),body1:M(b,16,1.5,.15),body2:M(b,14,1.43,.15),button:M(y,14,1.75,.4,a),caption:M(b,12,1.66,.4),overline:M(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:I,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},k),P,{clone:!1})};var t=e(_u()),r=e(_g()),n=mg;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 ub}()),s=e(function(){if(cb)return db;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(",")}cb=1,Object.defineProperty(db,"__esModule",{value:!0}),db.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 db.default=t,db}()),l=e(function(){if(pb)return fb;pb=1,Object.defineProperty(fb,"__esModule",{value:!0}),fb.default=void 0;var e={borderRadius:4};return fb.default=e,fb}()),u=e(function(){if(Hv)return hb;Hv=1,Object.defineProperty(hb,"__esModule",{value:!0}),hb.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=Jv;return hb}()),c=e(ey()),d=e(function(){if(ty)return ny;ty=1,Object.defineProperty(ny,"__esModule",{value:!0}),ny.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return ny.default=e,ny}());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),P=arguments.length,A=new Array(P>1?P-1:0),I=1;I<P;I++)A[I-1]=arguments[I];return R=A.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return Mg.default=f,Mg}var iy,ay={};var sy={},ly="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",uy=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function cy(){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!==uy.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[ly]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function dy(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 py="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},fy="object"===("undefined"==typeof window?"undefined":py(window))&&"object"===("undefined"==typeof document?"undefined":py(document))&&9===document.nodeType;function hy(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 my={}.constructor;function gy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(gy);if(e.constructor!==my)return e;var t={};for(var r in e)t[r]=gy(e[r]);return t}function by(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=gy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var vy=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},yy=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+=vy(e[r]," ");else t=vy(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function xy(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Sy(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function wy(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=xy(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+=Sy(p+":"+u+yy(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Sy(h+":"+u+yy(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=Sy(g+":"+u+yy(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Sy(""+e+u+"{"+n,--i)+Sy("}",i)):n}var Cy=/([[\].#*$><+~=|^:(),"'`\s])/g,Ey="undefined"!=typeof CSS&&CSS.escape,Ry=function(e){return Ey?Ey(e):e.replace(Cy,"\\$1")},Py=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}(),Ay=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(qc(qc(o)),s),o.selectorText="."+Ry(o.id)),o}Rc(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]=yy(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return wy(this.selectorText,this.style,r)},hy(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}(Py),Iy={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Ay(e,t,r)}},My={indent:1,children:!0},ky=/@([\w-]+)/,Dy=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(ky);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new tx($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=My);var t=xy(e).linebreak;if(null==e.indent&&(e.indent=My.indent),null==e.children&&(e.children=My.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Ty=/@container|@media|@supports\s+/,Oy={onCreateRule:function(e,t,r){return Ty.test(e)?new Dy(e,t,r):null}},Ly={indent:1,children:!0},qy=/@keyframes\s+([\w-]+)/,Ny=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(qy);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:Ry(a(this,i)),this.rules=new tx($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=Ly);var t=xy(e).linebreak;if(null==e.indent&&(e.indent=Ly.indent),null==e.children&&(e.children=Ly.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}(),jy=/@keyframes\s+/,_y=/\$([\w-]+)/g,zy=function(e,t){return"string"==typeof e?e.replace(_y,(function(e,r){return r in t?t[r]:e})):e},Fy=function(e,t,r){var n=e[t],o=zy(n,r);o!==n&&(e[t]=o)},Hy={onCreateRule:function(e,t,r){return"string"==typeof e&&jy.test(e)?new Ny(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Fy(e,"animation-name",r.keyframes),"animation"in e&&Fy(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 zy(e,n.keyframes);default:return e}}},$y=function(e){function t(){return e.apply(this,arguments)||this}return Rc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return wy(this.key,this.style,r)},t}(Py),Wy={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new $y(e,t,r):null}},By=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=xy(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=wy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return wy(this.at,this.style,e)},e}(),Vy=/@font-face/,Uy={onCreateRule:function(e,t,r){return Vy.test(e)?new By(e,t,r):null}},Gy=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 wy(this.key,this.style,e)},e}(),Yy={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Gy(e,t,r):null}},Ky=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}(),Xy={"@charset":!0,"@import":!0,"@namespace":!0},Jy={onCreateRule:function(e,t,r){return e in Xy?new Ky(e,t,r):null}},Zy=[Iy,Oy,Hy,Wy,Uy,Yy,Jy],Qy={process:!0},ex={force:!0,process:!0},tx=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="."+Ry(this.classes[d]));var p=by(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 Ay?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ny&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ay?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ny&&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=Qy);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,ex)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ex)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=xy(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}(),rx=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 tx(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}(),nx=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}(),ox=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=Wr(t,["attached"]),o=xy(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},hy(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ix=new ox,ax="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),sx="2f1acc6c3a606b082e5eef5e54414ffb";null==ax[sx]&&(ax[sx]=0);var lx=ax[sx]++,ux=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")+lx+o+t:i+r.key+"-"+lx+(o?"-"+o:"")+"-"+t}},cx=function(e){var t;return function(){return t||(t=e()),t}},dx=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},px=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=yy(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},fx=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},hx=function(e,t){return e.selectorText=t,e.selectorText===t},mx=cx((function(){return document.querySelector("head")}));function gx(e){var t=ix.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=mx(),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 bx=cx((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),vx=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]},yx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},xx=function(){function e(e){this.getPropertyValue=dx,this.setProperty=px,this.removeProperty=fx,this.setSelector=hx,this.hasInsertedRules=!1,this.cssRules=[],e&&ix.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=bx();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=gx(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 mx().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=yx(r,t);if(!1===(o=vx(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=yx(r,t),l=vx(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 rx&&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}(),Sx=0,wx=function(){function e(e){this.id=Sx++,this.version="10.10.0",this.plugins=new nx,this.options={id:{minify:!1},createGenerateId:ux,Renderer:fy?xx:null,plugins:[]},this.generateId=ux({minify:!1});for(var t=0;t<Zy.length;t++)this.plugins.use(Zy[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===ix.index?0:ix.index+1);var n=new rx(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(),ix.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=by(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}(),Cx=function(e){return new wx(e)},Ex="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Rx(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=Rx(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
91
91
|
/**
|
|
92
92
|
* A better abstraction over CSS.
|
|
93
93
|
*
|
|
@@ -99,7 +99,7 @@ function $i(e,t){let r;return r=t?Oi(e).withConfig({displayName:t.label,shouldFo
|
|
|
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 lC,uC,cC={},dC={};function pC(){if(lC)return dC;lC=1;var e=Wl;Object.defineProperty(dC,"__esModule",{value:!0}),dC.default=void 0;var t=(0,e(oy()).default)();return dC.default=t,dC}var fC,hC,mC={},gC={};function bC(){if(hC)return mC;hC=1;var e=Wl;Object.defineProperty(mC,"__esModule",{value:!0}),mC.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=mg,n=function(){if(fC)return gC;fC=1;var e=Wl;Object.defineProperty(gC,"__esModule",{value:!0}),gC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},gC.getUnit=r,gC.toUnitless=n,gC.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}},gC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},gC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},gC.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(qg());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return gC}();return mC}var vC,yC={};var xC,SC={};var wC,CC={};var EC,RC={};!function(e){var t=Wl,r=Em;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=Rm;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(oy()),a=t(function(){if(iy)return ay;iy=1;var e=Wl;Object.defineProperty(ay,"__esModule",{value:!0}),ay.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=mg,r=e(oy());return ay}()),s=t(function(){if(oC)return sy;oC=1,Object.defineProperty(sy,"__esModule",{value:!0}),sy.default=function(t){return(0,e.createStyles)(t)};var e=sC;return sy}()),l=t(function(){if(uC)return cC;uC=1;var e=Wl;Object.defineProperty(cC,"__esModule",{value:!0}),cC.default=void 0;var t=e(qu()),r=sC,n=e(pC()),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 cC.default=o,cC}()),u=t(bC()),c=t(function(){if(vC)return yC;vC=1;var e=Wl;Object.defineProperty(yC,"__esModule",{value:!0}),yC.default=void 0;var t=e(qu()),r=sC,n=e(pC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return yC.default=o,yC}()),d=ey();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(xC)return SC;xC=1;var e=Wl;Object.defineProperty(SC,"__esModule",{value:!0}),SC.default=function(){return(0,t.useTheme)()||r.default};var t=sC;e(S);var r=e(pC());return SC}()),f=t(function(){if(wC)return CC;wC=1;var e=Wl;Object.defineProperty(CC,"__esModule",{value:!0}),CC.default=void 0;var t=e(qu()),r=sC,n=e(pC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return CC.default=o,CC}()),h=t(function(){if(EC)return RC;EC=1;var e=Wl;Object.defineProperty(RC,"__esModule",{value:!0}),RC.default=void 0;var t=sC,r=e(pC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return RC.default=n,RC}()),m=sC}(xm),xm.alpha(Nt.GREYSCALE_0,.05),xm.alpha(Nt.GREEN_PALE,.5),xm.alpha(Nt.BLUE_PALE,.5),xm.alpha(Nt.GREEN_PALE,.5),xm.alpha(Nt.BLUE_PALE,.5),xm.alpha(Nt.GREEN_PALE,.5),xm.alpha(Nt.BLUE_PALE,.5),xm.alpha(Nt.GREEN_PALE,.5),xm.alpha(Nt.BLUE_PALE,.5),xm.alpha(Nt.GREEN_PALE,.5),xm.alpha(Nt.BLUE_PALE,.5);const PC=(e="light",t=!1)=>vm(e,t),AC=PC().palette,IC={TEXT:AC.text.primary,DISABLED:AC.text.disabled,HOVER:AC.action.hover,WHITE:ym.GREYSCALE_100,BORDER_LIGHT:ym.GREYSCALE_90,BORDER_MEDIUM:ym.GREYSCALE_85,BORDER_HEAVY:ym.GREYSCALE_50,DARK_MODE_TEXT:ym.GREYSCALE_95,DARK_MODE_BORDER:ym.GREYSCALE_95,DARK_MODE_DISABLED:ym.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:ym.GREYSCALE_95,SELECTED:AC.primary.main,LINK:AC.info.main,ERROR:AC.error.main},MC=(e,t=IC.TEXT,r=IC.WHITE)=>{const n=ie(e),o=ie(t),i=ie(r);return n.isInvalid()?t:function(e,t,r){const n=ae(e,t),o=ae(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},kC=e=>{const t=e.getStyle("","","dataColors.selected")||IC.SELECTED,r=function(e,t){const r=ie("#FFFFFF"),n=ie(e),o=ie(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ae(r,n),a=ae(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,IC.TEXT);return{background:t,color:r}},DC=(e,t)=>{const r=ie(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},TC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},OC=e=>{const t=ie(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},LC=(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)},qC=e=>{e.stopPropagation(),e.preventDefault()},NC=e=>!!e&&0===ie(e).a,jC="#grid",_C=(e,t,r,n=IC.WHITE)=>e&&!NC(e)?e:NC(t)?r&&!NC(r)?r:n:t,zC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},FC=(e,t,r,n,o)=>{const i=zC(".qv-object .qv-inner-object",r),a=zC(".qv-panel-sheet",r),s=zC(jC,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 OC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ie(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=NC(d),f=!NC(h=p?s:d)&&MC(h,IC.TEXT,IC.DARK_MODE_TEXT)===ee(IC.DARK_MODE_TEXT);var h;return{color:d,headerColor:_C(l,d,s),isDark:f}},HC=(e,t,n,o)=>{const l=s(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=i([]);return a((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(t.closest(jC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return r((()=>({...l,background:FC(e,l,t,n,o)})),[l.name(),t,n,o,e,u])};function $C(e,t){const n=r((()=>({isLoading:!0})),t),[i,a]=o((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[i,n.isLoading,a]}const WC=3;function BC(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function VC({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=WC}=o??{},{estimateWidth:a,measureText:s,estimateLineCount:l}=A((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=Ct(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=Ct((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=BC(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var UC,GC=W;UC=GC.createRoot,GC.hydrateRoot;const YC="Source Sans Pro, sans-serif",KC=(e,t,r)=>{const[,n,o]=$C((async()=>{const t=Se(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,YC].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n};function XC(e,t){const[r,n]=I(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var JC={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 ZC=({translator:e})=>(A((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(JC).forEach((t=>{e.add(JC[t])}))}}(e)}),[e]),e),QC=e=>{const t=l();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}};class eE{#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 tE="12px",rE="nebula-table-utils-head-menu-button",nE="nebula-table-utils-head-menu-wrapper",oE="nebula-table-utils-head-menu",iE="nebula-table-utils-head-menu-list-id",aE="sn-copy-cell";let sE=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 lE="nebula-table-utils-column-adjuster";let uE=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}({}),cE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const dE={darker:.15,brighter:.3,opacity:.03},pE={darker:.3,brighter:.5,opacity:.05};let fE=function(e){return e.Cyclic="C",e}({});const hE=document.createElement("textarea");function mE(e){hE.value=e,document.body.appendChild(hE),hE.select(),hE.setSelectionRange(0,hE.value.length),document.execCommand("copy"),document.body.removeChild(hE)}hE.style.position="absolute",hE.style.left="-9999px",hE.setAttribute("readonly","");const gE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{mE(t)})):mE(t))};function bE(e){return"init"in e}function vE(e){return!!e.write}function yE(e){return"v"in e||"e"in e}function xE(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const SE=new WeakMap;function wE(e){var t;return EE(e)&&!!(null==(t=SE.get(e))?void 0:t[0])}function CE(e,t){let r=SE.get(e);if(!r){r=[!0,new Set],SE.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function EE(e){return"function"==typeof(null==e?void 0:e.then)}function RE(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function PE(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 AE=(e,t,...r)=>t.read(...r),IE=(e,t,...r)=>t.write(...r),ME=(e,t)=>{if(t.INTERNAL_onInit)return t.INTERNAL_onInit(e)},kE=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},DE=(e,r)=>{var n;const o=UE(e),i=o[0],a=o[6],s=o[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Atom is undefined or null");let l=i.get(r);return l||(l={d:new Map,p:new Set,n:0},i.set(r,l),null==(n=a.i)||n.call(a,r),null==s||s(e,r)),l},TE=e=>{const t=UE(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)},OE=e=>{const r=UE(e),n=r[1],o=r[2],i=r[3],a=r[11],s=r[14],l=r[17],u=[],c=new WeakSet,d=new WeakSet,p=Array.from(i);for(;p.length;){const r=p[p.length-1],i=a(e,r);if(d.has(r))p.pop();else if(c.has(r)){if(o.get(r)===i.n)u.push([r,i]);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(r))throw new Error("[Bug] invalidated atom exists");d.add(r),p.pop()}else{c.add(r);for(const e of PE(r,i,n))c.has(e)||p.push(e)}}for(let t=u.length-1;t>=0;--t){const[r,n]=u[t];let a=!1;for(const e of n.d.keys())if(e!==r&&i.has(e)){a=!0;break}a&&(s(e,r),l(e,r)),o.delete(r)}},LE=new WeakSet,qE=(e,r)=>{var n,o;const i=UE(e),a=i[1],s=i[2],l=i[3],u=i[6],c=i[7],d=i[11],p=i[12],f=i[13],h=i[14],m=i[16],g=i[17],b=i[20],v=d(e,r);if(yE(v)){if(a.has(r)&&s.get(r)!==v.n)return v;let t=!1;for(const[r,n]of v.d)if(h(e,r).n!==n){t=!0;break}if(!t)return v}v.d.clear();let y,x,S=!0;function w(){a.has(r)&&(g(e,r),f(e),p(e))}const C={get signal(){return y||(y=new AbortController),y.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||vE(r)||console.warn("setSelf function cannot be used with read-only atom"),!x&&vE(r)&&(x=(...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return m(e,r,...n)}finally{f(e),p(e)}}),x}},E=v.n;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&LE.delete(e);const o=c(e,r,(function(t){var n;if(t===r){const r=d(e,t);if(!yE(r)){if(!bE(t))throw new Error("no atom init");b(e,t,t.init)}return xE(r)}const o=h(e,t);try{return xE(o)}finally{v.d.set(t,o.n),wE(v.v)&&RE(r,v.v,o),a.has(r)&&(null==(n=a.get(t))||n.t.add(r)),S||w()}}),C);return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&LE.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),b(e,r,o),EE(o)&&(CE(o,(()=>null==y?void 0:y.abort())),o.then(w,w)),null==(n=u.r)||n.call(u,r),v}catch(e){return delete v.v,v.e=e,++v.n,v}finally{S=!1,E!==v.n&&s.get(r)===E&&(s.set(r,v.n),l.add(r),null==(o=u.c)||o.call(u,r))}},NE=(e,t)=>{const r=UE(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 PE(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},jE=(e,r,...n)=>{const o=UE(e),i=o[3],a=o[6],s=o[8],l=o[11],u=o[12],c=o[13],d=o[14],p=o[15],f=o[16],h=o[17],m=o[20];let g=!0;const b=t=>xE(d(e,t)),v=(n,...o)=>{var s;const d=l(e,n);try{if(n===r){if(!bE(n))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&LE.add(e);const r=d.n,l=o[0];return m(e,n,l),h(e,n),void(r!==d.n&&(i.add(n),p(e,n),null==(s=a.c)||s.call(a,n)))}return f(e,n,...o)}finally{g||(c(e),u(e))}};try{return s(e,r,b,v,...n)}finally{g=!1}},_E=(e,t)=>{var r;const n=UE(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&&!wE(d.v)){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)}}},zE=(e,t)=>{var r;const n=UE(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),vE(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},FE=(e,t)=>{var r,n;const o=UE(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)},HE=(e,t,r)=>{const n=UE(e)[11],o=n(e,t),i="v"in o,a=o.v;if(EE(r))for(const i of o.d.keys())RE(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,EE(a)&&function(e){const t=SE.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))}(a))},$E=(e,t)=>xE((0,UE(e)[14])(e,t)),WE=(e,t,...r)=>{const n=UE(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},BE=(e,t,r)=>{const n=UE(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)}},VE=new WeakMap,UE=e=>{const r=VE.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Store must be created by buildStore to read its building blocks");return r};let GE,YE=0;function KE(e,r){const n="atom"+ ++YE,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?o.read=e:(o.init=e,o.read=XE,o.write=JE),o}function XE(e){return e(this)}function JE(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function ZE(){return function(...e){const t={get:e=>(0,UE(t)[21])(t,e),set:(e,...r)=>(0,UE(t)[22])(t,e,...r),sub:(e,r)=>(0,UE(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},AE,IE,ME,kE,DE,TE,OE,qE,NE,jE,_E,zE,FE,HE,$E,WE,BE,void 0].map(((t,r)=>e[r]||t));return VE.set(t,Object.freeze(r)),t}()}const QE=k(void 0);function eR(e){return L(QE)||(GE||(GE=ZE(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=GE),globalThis.__JOTAI_DEFAULT_STORE__!==GE&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),GE)}function tR({children:e,store:t}){const r=M(null);return t?w(QE.Provider,{value:t},e):(null===r.current&&(r.current=ZE()),w(QE.Provider,{value:r.current},e))}const rR=e=>"function"==typeof(null==e?void 0:e.then),nR=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},oR=S.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(nR(e),e)}),iR=new WeakMap,aR=(e,t)=>{let r=iR.get(e);return r||(r=new Promise(((n,o)=>{let i=e;const a=e=>t=>{i===e&&n(t)},s=e=>t=>{i===e&&o(t)},l=()=>{try{const e=t();rR(e)?(iR.set(e,r),i=e,e.then(a(e),s(e)),CE(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),CE(e,l)})),iR.set(e,r)),r};function sR(e,t){const{delay:r,unstable_promiseStatus:n=!S.use}={},o=eR(),[[i,a,s],l]=D((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)),T((()=>{const t=o.sub(e,(()=>{if(n)try{const t=o.get(e);rR(t)&&nR(aR(t,(()=>o.get(e))))}catch(e){}"number"!=typeof r?l():setTimeout(l,r)}));return l(),t}),[o,e,r,n]),O(u),rR(u)){const t=aR(u,(()=>o.get(e)));return n&&nR(t),oR(t)}return u}function lR(e,r){const n=eR();return q(((...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)}),[n,e])}const uR=KE(void 0),cR=KE(null);var dR={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>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),P={},A=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function 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]=M(e[r||t])?i:e[t],e=e[r||t]}})),e}function T(e,t){var r=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){T(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}P.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||k(t,o)||(M(a)?n.push({op:"add",path:s,value:i}):I(i)&&I(a)?n=n.concat(P.generate(a,i,s)):A(i)&&A(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&M(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!M(t[0])&&M(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(P.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},P.apply=function(e,t){t.forEach((function(t){var r,n,o=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(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!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);A(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},P.clone=function(e){return R({},e)},P.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):R(e,t)};const O=P,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 W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={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,W)},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",Pe="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Pe)&&r(e,Re,i(e,Pe)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Ie=Ae;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var ke={accumulation:z,movingAverage:B,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:Ie.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"===Me(n))return Le({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var 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"===Me(e)&&!e.disabled){if(r++,"object"!==Me(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&&Be(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Le({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return 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;Ie.isValid(r)||Ie.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(s++,"object"!==Me(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}),We(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"===Me(e)&&!e.disabled&&!ke[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,We(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:!Ie.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function We(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!ke[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=Be(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"!==Me(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"===Me(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 P=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const M=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},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,P),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,P),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},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 A(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},W=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 B(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,P=l.defaultMeasure,A=void 0===P?O():P;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),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),M(g,t,n),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return W({measures:v.qMeasures,modifierTypes:I}),p&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&B(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?B(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):B(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Pe="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Pe,quarantineName:Ae,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,itemPath:Me,arrayName:Ie,quarantineName:Ae})}};var 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:B,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:He}})(),n.default})()}(dR);var pR=Gt(dR.exports);const fR="qHyperCubeDef.qMeasures",hR="measures",mR="qHyperCubeDef.qDimensions",gR="dimensions",bR="qDef.representation",vR="tableRepresentation",yR="qDef.conditionalColoring",xR="conditionalColoring",SR="qMiniChartDef",wR="miniChartDef",CR=({propertyTree:e,hyperCubePath:t})=>{const r=pR.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 wt(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),pR.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),pR.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),pR.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{pR.quarantineArrayProp({properties:e,arrayPath:mR,itemPath:bR,arrayName:gR,quarantineName:vR}),pR.quarantineArrayProp({properties:e,arrayPath:fR,itemPath:bR,arrayName:hR,quarantineName:vR}),pR.quarantineArrayProp({properties:e,arrayPath:fR,itemPath:yR,arrayName:hR,quarantineName:xR}),pR.quarantineArrayProp({properties:e,arrayPath:fR,itemPath:SR,arrayName:hR,quarantineName:wR})})(r.properties),r};const ER=/^q[A-Z]/,RR=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],PR=e=>"object"==typeof e&&null!==e,AR=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!ER.test(e)&&!RR.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>PR(e)?AR(e,`${o}.${t}`):e)):PR(n)&&(e[r]=AR(n,o))})),e),IR=(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:cE.Pixels,pixels:e}:{type:cE.FitToContent}:i.qDef.columnWidth=e}return i},MR=({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)}AR(e.properties)}const a=pR.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(pR.conditionalShow.unquarantine(a.qProperty),i)wt(a,"qProperty.totals.show",!1),wt(a,"qProperty.usePagination",!0),wt(a,"qProperty.accessibleHeader",!0);else{pR.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{pR.unquarantineArrayProp({properties:e,arrayPath:mR,itemPath:bR,arrayName:gR,quarantineName:vR}),pR.unquarantineArrayProp({properties:e,arrayPath:fR,itemPath:bR,arrayName:hR,quarantineName:vR}),pR.unquarantineArrayProp({properties:e,arrayPath:fR,itemPath:yR,arrayName:hR,quarantineName:xR}),pR.unquarantineArrayProp({properties:e,arrayPath:fR,itemPath:SR,arrayName:hR,quarantineName:wR})})(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=>IR(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>IR(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(wt(a,"qProperty.qHyperCubeDef.qDimensions",o),wt(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var kR={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};const DR=(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 TR(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function OR(e){return e>0?0:1}function LR(e){return e.translator.get("Visualizations.Descriptions.Column")}function qR(e){return{measures:{min:OR,max:1e3,description:()=>LR(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;TR(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;DR(o,i)}},dimensions:{min:OR,max:1e3,description:()=>LR(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return TR(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;DR(o,n)}}}}let NR=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}({}),jR=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const _R=e=>{switch(e?.type){case"url":return NR.Link;case"image":return NR.Image;case"indicator":return NR.Indicator;case"miniChart":return NR.MiniChart;default:return NR.Text}},zR=({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}}),FR=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>_R(e.qDef.representation)===NR.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}}}}}},HR=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:zR({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>_R(e.qDef.representation)===NR.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>_R(e.qDef.representation)===NR.Link&&e.qDef.representation?.urlPosition===jR.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>_R(e.qDef.representation)===NR.Link&&e.qDef.representation?.urlPosition===jR.Attribute},...FR(r)}},$R=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[NR.Image],i=!n?.("qMiniChartDef")&&t[NR.MiniChart],a=!n?.("tableIndicators")&&t[NR.Indicator],s=o&&t[NR.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=>_R(e.qDef.representation)===NR.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 WR,BR={};WR=BR,(()=>{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:()=>Ie});var o=r(370),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function 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 P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}var A=i().bind(null,!0),I={},M=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===P(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(M(e)&&M(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}I.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?A({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(I.generate(a,i,s)):M(i)&&M(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&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(I.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},I.apply=function(e,t){t.forEach((function(t){var r,n,o=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(M(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(M(a)&&M(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]})),A(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(e,t.from);M(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(M(o)?o.splice(+i,1):delete o[i])}))},I.clone=function(e){return A({},e)},I.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):A(e,t)};const q=I;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 W(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 B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension: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,B)},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(W(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(W(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(W(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(W(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(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(W(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 Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}var Ae={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:X};const Ie={modifiers:Ae,apply:ke,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:r,layout:n})}))},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Be({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:qe};var Me={};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;Me[t.id]=Me[t.id]||{isFirstTime:!0};var u=Me[t.id].isFirstTime;if(Me[t.id].isFirstTime=!1,r&&"object"===Pe(r))return 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=Me[t.id].lastReloadTime;if(Me[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 We({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 Be({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(We({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(r++,"object"!==Pe(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&He(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),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"===Pe(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return Ne(r).forEach((function(e){return Te(e)})),Ye({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function 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&&Be({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(a++,"object"!==Pe(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ae[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ae[r.type].updateModifier&&Ae[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Ae[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||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"===Pe(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Be({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(Ae[n.type]&&!n.disabled)return n}}function qe(e){var t=Le(e);return!t||Ae[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function 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"===Pe(t)&&(t.disabled||!Ae[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 We(e){var t=e.measure,r=e.properties,n=e.layout;return!$e(t)&&Be({modifiers:je(t),properties:r,layout:n})}function Be(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function 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"===Pe(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=je(t);if(Be({modifiers:n,properties:e})){var i=$e(t);i&&r.push(i),o=o||Ke({modifiers:n,properties:e})}})),s(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Me[t.id].masterItemSubscriber=Me[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=s(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])}))}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,(function(){return e=t.id,r(de),delete n[e],void c();var e})),enabled:!1,properties:l(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Me[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in WR.default=n.default,n)-1===["default"].indexOf(Ze)&&(WR[Ze]=n[Ze]);Object.defineProperty(WR,"__esModule",{value:!0})})();var VR=Gt(BR);const UR={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},GR={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}},YR=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)=>(!VR.hasActiveModifiers({measures:[e],properties:t.properties})||VR.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")}),KR={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:cE.Auto,translation:"Common.Auto"},{value:cE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:cE.Pixels,translation:"Object.Table.Column.Pixels"},{value:cE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:cE.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===cE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===cE.Percentage}},XR=()=>({...UR,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}]},...GR,...KR}),JR={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"}},ZR=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:YR(e)}},QR=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:JR},presentation:{type:"items",translation:"properties.presentation",items:{...XR(),...HR(e)}}}}}),eP=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:ZR(e)},presentation:{type:"items",translation:"properties.presentation",items:{...XR(),...$R(e,{[NR.Image]:!0,[NR.Indicator]:!0,[NR.MiniChart]:!0})}}}}}),tP=e=>({...QR(e),...eP(e)}),rP=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...tP(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}}}),nP={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}},oP=({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},iP=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")}),aP=(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}}}),sP=(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},lP=({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=>sP(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Se(n).filter((e=>!a.includes(e))).map((e=>sP(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),uP=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],cP=({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=>sP(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...uP.filter((e=>!i.includes(e))).map((e=>sP(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),dP=({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:lP({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:cP({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:aP(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:aP(`${e}.background`,"properties.background",((t,r)=>{const n=r?IC.WHITE:IC.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),pP=({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:aP(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:aP(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),fP=(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}},hP=e=>e.grid?.zebraStripes?.show,mP={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)}},gP=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:gP,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:gP,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},vP=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,yP=({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:dP({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:fP,disableNoneCallback:vP}),dimensionValueSection:dP({section:"dimensionValues",translator:t,flags:e,getThemeValue:fP}),measureValueSection:dP({section:"measureValues",translator:t,flags:e,getThemeValue:fP}),totalRowSection:dP({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:fP,disableNoneCallback:vP}),nullValues:pP({section:"nullValues",fallbackBackground:IC.NULL_VALUE_BACKGROUND,getThemeValue:fP}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...mP},border:aP("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??IC.BORDER_MEDIUM)),divider:aP("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??IC.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:hP,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:hP,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:hP,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:hP,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),xP=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[yP(e),iP(e),oP(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:"-"}]},...nP}}),SP={uses:"sorting"},wP={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},CP=e=>({type:"items",component:"accordion",items:{data:rP(e),sorting:SP,addOns:wP,settings:xP(e)}});function EP(e){return{definition:CP(e),exploration:kR,data:qR(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 MR({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>CR({propertyTree:e,hyperCubePath:t})}}const RP=(e,t)=>r((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=e[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};t?.applyPatches([l],!0)})(e,t)),[e,t]),PP=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),AP=[];for(let e=0;e<256;++e)AP.push((e+256).toString(16).slice(1));let IP;const MP=new Uint8Array(16);var kP={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function DP(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!IP){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");IP=crypto.getRandomValues.bind(crypto)}return IP(MP)}();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(AP[e[t+0]]+AP[e[t+1]]+AP[e[t+2]]+AP[e[t+3]]+"-"+AP[e[t+4]]+AP[e[t+5]]+"-"+AP[e[t+6]]+AP[e[t+7]]+"-"+AP[e[t+8]]+AP[e[t+9]]+"-"+AP[e[t+10]]+AP[e[t+11]]+AP[e[t+12]]+AP[e[t+13]]+AP[e[t+14]]+AP[e[t+15]]).toLowerCase()}(n)}const TP=()=>crypto?.randomUUID?.()??function(e){return kP.randomUUID&&!e?kP.randomUUID():DP(e)}(),OP=({cId:e})=>e??TP(),LP=e=>"number"==typeof e&&!Number.isNaN(+e),qP=e=>LP(e.qNum),NP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);var jP={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:zP(e),value:zP(t),useEqualSign:r}}(n,o,i))})),t}},_P=jP;function zP(e){try{return decodeURIComponent(e)}catch{return e}}function FP(e){if(!(this instanceof FP))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:()=>_P.fromSearchString(t.search)}})}function HP(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}FP.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},FP.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=HP(t.key),t.value?r+=`=${HP(t.value)}`:r+=t.useEqualSign?"=":"";return r};var $P=FP;var WP,BP=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}},VP=class{decode(e){let t="";const r=new BP(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},UP=e=>e>=0&&e<=1114111,GP=e=>e.match(/[\s]/),YP=class extends VP{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&&!GP(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return UP(a)?String.fromCharCode(a):"�"}},KP=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}},XP=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 KP.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return KP.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||KP.newInstanceIfNeeded(e,t,this._value)}},JP=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 XP);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},ZP=(()=>{const e=[],t=[],r=new JP;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})(),QP=class extends VP{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,ZP.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=ZP.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)&&UP(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)&&UP(n)?String.fromCharCode(n):null}},eA=class extends VP{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),UP(i))?String.fromCharCode(i):(e.reset(),null)}},tA=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,rA=5e6,nA=5e5,oA=(e,t)=>{const{maxByteSizeSvg:r=nA,maxByteSizeImage:n=rA}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=tA.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&&(WP=document.createElement("div"));var iA=Array.prototype.indexOf,aA=[",",".","_"," "],sA=[",",".","-","_"," "],lA={width:["%"],height:["%"]},uA={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},cA={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":uA.image,"background-color":uA.color,"border-color":uA.color,"border-image":uA.image,color:uA.color,icon:uA.image,"list-style-image":uA.image,"outline-color":uA.color},dA={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function pA(e,t,r){let n;if(t){if(iA)return iA.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 fA(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return WP.appendChild(r),t=WP.innerHTML,WP.removeChild(r),t}function hA(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=gA(e).toLowerCase(),t=gA(t),i=0;i<dA.attr_name.length;i++)if(e.match(dA.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<dA.attr_val.length;i++)if(t.toLowerCase().match(dA.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=lA[e],n||(n=sA),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]/)&&pA(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function mA(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=gA(e).toLowerCase(),t=gA(t),pA(e,dA.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<dA.css_val.length;n++)if(t.toLowerCase().indexOf(dA.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=cA[e],o||(o=uA.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]/)&&pA(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function gA(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new QP,new eA,new YP];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 bA=[];for(let e=0;e<255;e++)bA[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var vA={html:e=>fA(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]=mA(t,r[t],!0),i+=mA(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]=hA(e,t[e],!0),o+=hA(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function yA(e,t){throw new Error(t)}var xA={canonicalize:gA,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?vA.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&yA(this,"Invalid parameter type"),vA.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&yA(this,"Invalid parameter type"),vA.attr(e)):void yA(this,"Invalid parameter type")},encodeForAttr:hA,encodeForAttr2:function(e){return hA("nonsens",e,!0)},encodeForCSS:mA,encodeForHref:function(e){gA(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new $P(e),r=$P.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+$P.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=aA),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),pA(o,t)>=0||null==bA[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:fA,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=gA(t).toLowerCase():yA(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:oA,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 SA=(e,t)=>t.qAttrExps?.qValues?.[e],wA=(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"}}},CA=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&xA.isSafeDataURL(t)?{type:NR.Image,url:t,text:e,imageSize:r,resolvedImagePosition:wA(n,a),labelStructure:o,imageBox:i}:{type:NR.Text,url:void 0,text:e,labelStructure:o},EA=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:NR.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:NR.MiniChart,text:n,miniChart:a}},RA=(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===jR.Attribute?void 0:r?.urlLabel},PA=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:NR.Link,url:xA.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:NR.Text,url:void 0,text:t,labelStructure:e}}},AA=({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=_R(t),d=s(e);return c===NR.Image&&u[NR.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=SA(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),CA({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 CA({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=SA(r.imageLabel??-1,e)?.qText??n;return CA({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:NR.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===NR.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===jR.Attribute){const i=RA(r.url??-1,e,t);return PA({labelStructure:n,text:o||i||"",url:i})}if(i===jR.Dimension){const i=RA(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),PA({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:NR.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===NR.Indicator&&u[NR.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:NR.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===NR.MiniChart&&u[NR.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?EA(e,t,i,d):{type:NR.Text,url:void 0,text:d,labelStructure:a}},IA=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,MA=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",kA=1e4;function DA(e,t){return[...t].reverse().find((t=>t*e<=kA))||Math.floor(kA/e)}function TA(e,t){if(t.viewState?.skipTotals)return{atTop:!1,atBottom:!1};const[r,n,o,i,a]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function OA(e,t,r,n){return t?0===r?e.totals.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function LA(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return LP(r?.qNum)}function qA(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 NA=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const jA=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=n.length===a?n:Array.from(Array(a).keys()),{visibleColumnsOrder:l,visibleColumnIndexes:u}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const s=e<n,{qError:l}=s?t[e]:r[e-n],u=7005===l?.qErrorCode;return u?s?i++:a++:o[e]=s?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(s,o,i);return l.map(((n,o)=>function(e,t,r,n,o,i){const{qDimensionInfo:a,qMeasureInfo:s,qEffectiveInterColumnSortOrder:l}=e.qHyperCube,u=a.length,c=t<u,d=c?a[t]:s[t-u],p=c&&a[t].qGrouping===fE.Cyclic,f=t===l[0];let h,m,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:w}=d;if(c){const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles,b=e.qLocked??!1,v=n,({qDimensionType:h}=e)}else({qMiniChart:m}=d);const{qFallbackTitle:C,textAlign:E,qAttrExprInfo:R,qSortIndicator:P,qReverseSort:A,qApprMaxGlyphCount:I,columnWidth:M,qLibraryId:k}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:k,pageColIdx:r,qApprMaxGlyphCount:I,qReverseSort:A,columnWidth:M??{type:cE.Auto},selectionColIdx:v,isActivelySorted:f,id:OP(d),label:C,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:R.map((e=>e.id)),qAttrExprInfoIndex:PP(d),sortDirection:P&&"N"!==P?P:"A",totalInfo:OA(e,c,r,n),...!c&&{isTotalNumeric:LA(e,n)},...qA(E,h,c,o,i),representation:S,conditionalColoring:c?void 0:w,qMiniChart:m}}(e,n,o,u[n],t,r)))};const _A=(e,t)=>!(!e.snapshotData&&!t.viewState?.visibleHeight),zA=(e,t)=>void 0!==t.viewState?.usePagination?t.viewState.usePagination:!1!==e.usePagination||_A(e,t);var FA={exports:{}};
|
|
102
|
+
*/var lC,uC,cC={},dC={};function pC(){if(lC)return dC;lC=1;var e=Ul;Object.defineProperty(dC,"__esModule",{value:!0}),dC.default=void 0;var t=(0,e(oy()).default)();return dC.default=t,dC}var fC,hC,mC={},gC={};function bC(){if(hC)return mC;hC=1;var e=Ul;Object.defineProperty(mC,"__esModule",{value:!0}),mC.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(_u()),r=mg,n=function(){if(fC)return gC;fC=1;var e=Ul;Object.defineProperty(gC,"__esModule",{value:!0}),gC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},gC.getUnit=r,gC.toUnitless=n,gC.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}},gC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},gC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},gC.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(qg());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return gC}();return mC}var vC,yC={};var xC,SC={};var wC,CC={};var EC,RC={};!function(e){var t=Ul,r=Em;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=Rm;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(oy()),a=t(function(){if(iy)return ay;iy=1;var e=Ul;Object.defineProperty(ay,"__esModule",{value:!0}),ay.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=mg,r=e(oy());return ay}()),s=t(function(){if(oC)return sy;oC=1,Object.defineProperty(sy,"__esModule",{value:!0}),sy.default=function(t){return(0,e.createStyles)(t)};var e=sC;return sy}()),l=t(function(){if(uC)return cC;uC=1;var e=Ul;Object.defineProperty(cC,"__esModule",{value:!0}),cC.default=void 0;var t=e(_u()),r=sC,n=e(pC()),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 cC.default=o,cC}()),u=t(bC()),c=t(function(){if(vC)return yC;vC=1;var e=Ul;Object.defineProperty(yC,"__esModule",{value:!0}),yC.default=void 0;var t=e(_u()),r=sC,n=e(pC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return yC.default=o,yC}()),d=ey();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(xC)return SC;xC=1;var e=Ul;Object.defineProperty(SC,"__esModule",{value:!0}),SC.default=function(){return(0,t.useTheme)()||r.default};var t=sC;e(S);var r=e(pC());return SC}()),f=t(function(){if(wC)return CC;wC=1;var e=Ul;Object.defineProperty(CC,"__esModule",{value:!0}),CC.default=void 0;var t=e(_u()),r=sC,n=e(pC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return CC.default=o,CC}()),h=t(function(){if(EC)return RC;EC=1;var e=Ul;Object.defineProperty(RC,"__esModule",{value:!0}),RC.default=void 0;var t=sC,r=e(pC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return RC.default=n,RC}()),m=sC}(xm),xm.alpha(Nt.GREYSCALE_0,.05),xm.alpha(Nt.GREEN_PALE,.5),xm.alpha(Nt.BLUE_PALE,.5),xm.alpha(Nt.GREEN_PALE,.5),xm.alpha(Nt.BLUE_PALE,.5),xm.alpha(Nt.GREEN_PALE,.5),xm.alpha(Nt.BLUE_PALE,.5),xm.alpha(Nt.GREEN_PALE,.5),xm.alpha(Nt.BLUE_PALE,.5),xm.alpha(Nt.GREEN_PALE,.5),xm.alpha(Nt.BLUE_PALE,.5);const PC=(e="light",t=!1)=>((e,t=!1)=>({components:bm(0,t),palette:vm(),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:Wt,fontWeightMedium:Bt,fontWeightBold:Vt,htmlFontSize:_t,fontFamily:Ut.FONT_FAMILY,button:{fontWeight:Bt,fontSize:_t,textTransform:"none"},body1:{fontSize:zt,lineHeight:"24px"},body2:{fontSize:_t,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ft,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:zt,fontWeight:Bt,lineHeight:"16px"},h6:{fontSize:_t,fontWeight:Bt,lineHeight:"16px"},caption:{color:Nt.TEXT_SECONDARY},subtitle1:{fontSize:_t,color:Nt.TEXT_SECONDARY},subtitle2:{fontSize:jt,color:Nt.TEXT_SECONDARY}},shape:{borderRadius:Ht}}))(0,t),AC=PC().palette,IC={TEXT:AC.text.primary,DISABLED:AC.text.disabled,HOVER:AC.action.hover,WHITE:ym.GREYSCALE_100,BORDER_LIGHT:ym.GREYSCALE_90,BORDER_MEDIUM:ym.GREYSCALE_85,BORDER_HEAVY:ym.GREYSCALE_50,DARK_MODE_TEXT:ym.GREYSCALE_95,DARK_MODE_BORDER:ym.GREYSCALE_95,DARK_MODE_DISABLED:ym.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:ym.GREYSCALE_95,SELECTED:AC.primary.main,LINK:AC.info.main,ERROR:AC.error.main},MC=(e,t=IC.TEXT,r=IC.WHITE)=>{const n=ie(e),o=ie(t),i=ie(r);return n.isInvalid()?t:function(e,t,r){const n=ae(e,t),o=ae(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},kC=e=>{const t=e.getStyle("","","dataColors.selected")||IC.SELECTED,r=function(e,t){const r=ie("#FFFFFF"),n=ie(e),o=ie(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ae(r,n),a=ae(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,IC.TEXT);return{background:t,color:r}},DC=(e,t)=>{const r=ie(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},TC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},OC=e=>{const t=ie(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},LC=(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)},qC=e=>{e.stopPropagation(),e.preventDefault()},NC=e=>!!e&&0===ie(e).a,jC="#grid",_C=(e,t,r,n=IC.WHITE)=>e&&!NC(e)?e:NC(t)?r&&!NC(r)?r:n:t,zC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},FC=(e,t,r,n,o)=>{const i=zC(".qv-object .qv-inner-object",r),a=zC(".qv-panel-sheet",r),s=zC(jC,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 OC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ie(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=NC(d),f=!NC(h=p?s:d)&&MC(h,IC.TEXT,IC.DARK_MODE_TEXT)===ee(IC.DARK_MODE_TEXT);var h;return{color:d,headerColor:_C(l,d,s),isDark:f}},HC=(e,t,n,o)=>{const l=s(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=i([]);return a((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(t.closest(jC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return r((()=>({...l,background:FC(e,l,t,n,o)})),[l.name(),t,n,o,e,u])};function $C(e,t){const n=r((()=>({isLoading:!0})),t),[i,a]=o((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[i,n.isLoading,a]}const WC=3;function BC(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function VC({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=WC}=o??{},{estimateWidth:a,measureText:s,estimateLineCount:l}=A((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=Ct(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=Ct((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=BC(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var UC,GC=W;UC=GC.createRoot,GC.hydrateRoot;const YC="Source Sans Pro, sans-serif",KC=(e,t,r)=>{const[,n,o]=$C((async()=>{const t=Se(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,YC].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n};function XC(e,t){const[r,n]=I(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var JC={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 ZC=({translator:e})=>(A((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(JC).forEach((t=>{e.add(JC[t])}))}}(e)}),[e]),e),QC=e=>{const t=l();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}};class eE{#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 tE="12px",rE="nebula-table-utils-head-menu-button",nE="nebula-table-utils-head-menu-wrapper",oE="nebula-table-utils-head-menu",iE="nebula-table-utils-head-menu-list-id",aE="sn-copy-cell";let sE=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 lE="nebula-table-utils-column-adjuster";let uE=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}({}),cE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const dE={darker:.15,brighter:.3,opacity:.03},pE={darker:.3,brighter:.5,opacity:.05};let fE=function(e){return e.Cyclic="C",e}({});const hE=document.createElement("textarea");function mE(e){hE.value=e,document.body.appendChild(hE),hE.select(),hE.setSelectionRange(0,hE.value.length),document.execCommand("copy"),document.body.removeChild(hE)}hE.style.position="absolute",hE.style.left="-9999px",hE.setAttribute("readonly","");const gE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{mE(t)})):mE(t))};function bE(e){return"init"in e}function vE(e){return!!e.write}function yE(e){return"v"in e||"e"in e}function xE(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const SE=new WeakMap;function wE(e){var t;return EE(e)&&!!(null==(t=SE.get(e))?void 0:t[0])}function CE(e,t){let r=SE.get(e);if(!r){r=[!0,new Set],SE.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function EE(e){return"function"==typeof(null==e?void 0:e.then)}function RE(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function PE(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 AE=(e,t,...r)=>t.read(...r),IE=(e,t,...r)=>t.write(...r),ME=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},kE=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},DE=(e,r)=>{var n;const o=UE(e),i=o[0],a=o[6],s=o[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Atom is undefined or null");let l=i.get(r);return l||(l={d:new Map,p:new Set,n:0},i.set(r,l),null==(n=a.i)||n.call(a,r),null==s||s(e,r)),l},TE=e=>{const t=UE(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)},OE=e=>{const r=UE(e),n=r[1],o=r[2],i=r[3],a=r[11],s=r[14],l=r[17],u=[],c=new WeakSet,d=new WeakSet,p=Array.from(i);for(;p.length;){const r=p[p.length-1],i=a(e,r);if(d.has(r))p.pop();else if(c.has(r)){if(o.get(r)===i.n)u.push([r,i]);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(r))throw new Error("[Bug] invalidated atom exists");d.add(r),p.pop()}else{c.add(r);for(const e of PE(r,i,n))c.has(e)||p.push(e)}}for(let t=u.length-1;t>=0;--t){const[r,n]=u[t];let a=!1;for(const e of n.d.keys())if(e!==r&&i.has(e)){a=!0;break}a&&(s(e,r),l(e,r)),o.delete(r)}},LE=new WeakSet,qE=(e,r)=>{var n,o;const i=UE(e),a=i[1],s=i[2],l=i[3],u=i[6],c=i[7],d=i[11],p=i[12],f=i[13],h=i[14],m=i[16],g=i[17],b=i[20],v=d(e,r);if(yE(v)){if(a.has(r)&&s.get(r)!==v.n)return v;let t=!1;for(const[r,n]of v.d)if(h(e,r).n!==n){t=!0;break}if(!t)return v}v.d.clear();let y,x,S=!0;function w(){a.has(r)&&(g(e,r),f(e),p(e))}const C={get signal(){return y||(y=new AbortController),y.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||vE(r)||console.warn("setSelf function cannot be used with read-only atom"),!x&&vE(r)&&(x=(...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return m(e,r,...n)}finally{f(e),p(e)}}),x}},E=v.n;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&LE.delete(e);const o=c(e,r,(function(t){var n;if(t===r){const r=d(e,t);if(!yE(r)){if(!bE(t))throw new Error("no atom init");b(e,t,t.init)}return xE(r)}const o=h(e,t);try{return xE(o)}finally{v.d.set(t,o.n),wE(v.v)&&RE(r,v.v,o),a.has(r)&&(null==(n=a.get(t))||n.t.add(r)),S||w()}}),C);return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&LE.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),b(e,r,o),EE(o)&&(CE(o,(()=>null==y?void 0:y.abort())),o.then(w,w)),null==(n=u.r)||n.call(u,r),v}catch(e){return delete v.v,v.e=e,++v.n,v}finally{S=!1,E!==v.n&&s.get(r)===E&&(s.set(r,v.n),l.add(r),null==(o=u.c)||o.call(u,r))}},NE=(e,t)=>{const r=UE(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 PE(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},jE=(e,r,...n)=>{const o=UE(e),i=o[3],a=o[6],s=o[8],l=o[11],u=o[12],c=o[13],d=o[14],p=o[15],f=o[16],h=o[17],m=o[20];let g=!0;const b=t=>xE(d(e,t)),v=(n,...o)=>{var s;const d=l(e,n);try{if(n===r){if(!bE(n))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&LE.add(e);const r=d.n,l=o[0];return m(e,n,l),h(e,n),void(r!==d.n&&(i.add(n),p(e,n),null==(s=a.c)||s.call(a,n)))}return f(e,n,...o)}finally{g||(c(e),u(e))}};try{return s(e,r,b,v,...n)}finally{g=!1}},_E=(e,t)=>{var r;const n=UE(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&&!wE(d.v)){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)}}},zE=(e,t)=>{var r;const n=UE(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),vE(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},FE=(e,t)=>{var r,n;const o=UE(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)},HE=(e,t,r)=>{const n=UE(e)[11],o=n(e,t),i="v"in o,a=o.v;if(EE(r))for(const i of o.d.keys())RE(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,EE(a)&&function(e){const t=SE.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))}(a))},$E=(e,t)=>xE((0,UE(e)[14])(e,t)),WE=(e,t,...r)=>{const n=UE(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},BE=(e,t,r)=>{const n=UE(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)}},VE=new WeakMap,UE=e=>{const r=VE.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Store must be created by buildStore to read its building blocks");return r};let GE,YE=0;function KE(e,r){const n="atom"+ ++YE,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?o.read=e:(o.init=e,o.read=XE,o.write=JE),o}function XE(e){return e(this)}function JE(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function ZE(){return function(...e){const t={get:e=>(0,UE(t)[21])(t,e),set:(e,...r)=>(0,UE(t)[22])(t,e,...r),sub:(e,r)=>(0,UE(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},AE,IE,ME,kE,DE,TE,OE,qE,NE,jE,_E,zE,FE,HE,$E,WE,BE,void 0].map(((t,r)=>e[r]||t));return VE.set(t,Object.freeze(r)),t}()}const QE=k(void 0);function eR(e){return L(QE)||(GE||(GE=ZE(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=GE),globalThis.__JOTAI_DEFAULT_STORE__!==GE&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),GE)}function tR({children:e,store:t}){const r=M(null);return t?w(QE.Provider,{value:t},e):(null===r.current&&(r.current=ZE()),w(QE.Provider,{value:r.current},e))}const rR=e=>"function"==typeof(null==e?void 0:e.then),nR=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},oR=S.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(nR(e),e)}),iR=new WeakMap,aR=(e,t)=>{let r=iR.get(e);return r||(r=new Promise(((n,o)=>{let i=e;const a=e=>t=>{i===e&&n(t)},s=e=>t=>{i===e&&o(t)},l=()=>{try{const e=t();rR(e)?(iR.set(e,r),i=e,e.then(a(e),s(e)),CE(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),CE(e,l)})),iR.set(e,r)),r};function sR(e,t){const{delay:r,unstable_promiseStatus:n=!S.use}={},o=eR(),[[i,a,s],l]=D((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)),T((()=>{const t=o.sub(e,(()=>{if(n)try{const t=o.get(e);rR(t)&&nR(aR(t,(()=>o.get(e))))}catch(e){}"number"!=typeof r?l():setTimeout(l,r)}));return l(),t}),[o,e,r,n]),O(u),rR(u)){const t=aR(u,(()=>o.get(e)));return n&&nR(t),oR(t)}return u}function lR(e,r){const n=eR();return q(((...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)}),[n,e])}const uR=KE(void 0),cR=KE(null);var dR={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>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),P={},A=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function 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]=M(e[r||t])?i:e[t],e=e[r||t]}})),e}function T(e,t){var r=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){T(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}P.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||k(t,o)||(M(a)?n.push({op:"add",path:s,value:i}):I(i)&&I(a)?n=n.concat(P.generate(a,i,s)):A(i)&&A(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&M(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!M(t[0])&&M(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(P.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},P.apply=function(e,t){t.forEach((function(t){var r,n,o=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(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(I(a)&&I(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!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);A(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},P.clone=function(e){return R({},e)},P.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):R(e,t)};const O=P,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 W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={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,W)},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",Pe="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Pe)&&r(e,Re,i(e,Pe)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Ie=Ae;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var ke={accumulation:z,movingAverage:B,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:Ie.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"===Me(n))return Le({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var 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"===Me(e)&&!e.disabled){if(r++,"object"!==Me(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&&Be(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Le({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Me(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return 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;Ie.isValid(r)||Ie.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(s++,"object"!==Me(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}),We(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"===Me(e)&&!e.disabled&&!ke[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,We(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:!Ie.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function We(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!ke[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=Be(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"!==Me(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"===Me(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 P=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const M=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},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,P),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,P),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},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 A(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},W=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 B(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,P=l.defaultMeasure,A=void 0===P?O():P;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),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),M(g,t,n),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return W({measures:v.qMeasures,modifierTypes:I}),p&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&B(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?B(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):B(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Pe="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Pe,quarantineName:Ae,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,itemPath:Me,arrayName:Ie,quarantineName:Ae})}};var 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:B,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:He}})(),n.default})()}(dR);var pR=Gt(dR.exports);const fR="qHyperCubeDef.qMeasures",hR="measures",mR="qHyperCubeDef.qDimensions",gR="dimensions",bR="qDef.representation",vR="tableRepresentation",yR="qDef.conditionalColoring",xR="conditionalColoring",SR="qMiniChartDef",wR="miniChartDef",CR=({propertyTree:e,hyperCubePath:t})=>{const r=pR.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 wt(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),pR.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),pR.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),pR.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{pR.quarantineArrayProp({properties:e,arrayPath:mR,itemPath:bR,arrayName:gR,quarantineName:vR}),pR.quarantineArrayProp({properties:e,arrayPath:fR,itemPath:bR,arrayName:hR,quarantineName:vR}),pR.quarantineArrayProp({properties:e,arrayPath:fR,itemPath:yR,arrayName:hR,quarantineName:xR}),pR.quarantineArrayProp({properties:e,arrayPath:fR,itemPath:SR,arrayName:hR,quarantineName:wR})})(r.properties),r};const ER=/^q[A-Z]/,RR=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],PR=e=>"object"==typeof e&&null!==e,AR=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!ER.test(e)&&!RR.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>PR(e)?AR(e,`${o}.${t}`):e)):PR(n)&&(e[r]=AR(n,o))})),e),IR=(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:cE.Pixels,pixels:e}:{type:cE.FitToContent}:i.qDef.columnWidth=e}return i},MR=({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)}AR(e.properties)}const a=pR.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(pR.conditionalShow.unquarantine(a.qProperty),i)wt(a,"qProperty.totals.show",!1),wt(a,"qProperty.usePagination",!0),wt(a,"qProperty.accessibleHeader",!0);else{pR.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{pR.unquarantineArrayProp({properties:e,arrayPath:mR,itemPath:bR,arrayName:gR,quarantineName:vR}),pR.unquarantineArrayProp({properties:e,arrayPath:fR,itemPath:bR,arrayName:hR,quarantineName:vR}),pR.unquarantineArrayProp({properties:e,arrayPath:fR,itemPath:yR,arrayName:hR,quarantineName:xR}),pR.unquarantineArrayProp({properties:e,arrayPath:fR,itemPath:SR,arrayName:hR,quarantineName:wR})})(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=>IR(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>IR(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(wt(a,"qProperty.qHyperCubeDef.qDimensions",o),wt(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var kR={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};const DR=(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 TR(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function OR(e){return e>0?0:1}function LR(e){return e.translator.get("Visualizations.Descriptions.Column")}function qR(e){return{measures:{min:OR,max:1e3,description:()=>LR(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;TR(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;DR(o,i)}},dimensions:{min:OR,max:1e3,description:()=>LR(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return TR(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;DR(o,n)}}}}let NR=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}({}),jR=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const _R=e=>{switch(e?.type){case"url":return NR.Link;case"image":return NR.Image;case"indicator":return NR.Indicator;case"miniChart":return NR.MiniChart;default:return NR.Text}},zR=({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}}),FR=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>_R(e.qDef.representation)===NR.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}}}}}},HR=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:zR({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>_R(e.qDef.representation)===NR.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>_R(e.qDef.representation)===NR.Link&&e.qDef.representation?.urlPosition===jR.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>_R(e.qDef.representation)===NR.Link&&e.qDef.representation?.urlPosition===jR.Attribute},...FR(r)}},$R=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[NR.Image],i=!n?.("qMiniChartDef")&&t[NR.MiniChart],a=!n?.("tableIndicators")&&t[NR.Indicator],s=o&&t[NR.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=>_R(e.qDef.representation)===NR.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 WR,BR={};WR=BR,(()=>{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:()=>Ie});var o=r(370),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function 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 P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}var A=i().bind(null,!0),I={},M=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===P(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(M(e)&&M(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}I.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?A({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(I.generate(a,i,s)):M(i)&&M(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&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(I.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},I.apply=function(e,t){t.forEach((function(t){var r,n,o=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(M(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(M(a)&&M(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]})),A(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(e,t.from);M(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(M(o)?o.splice(+i,1):delete o[i])}))},I.clone=function(e){return A({},e)},I.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):A(e,t)};const q=I;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 W(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 B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension: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,B)},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(W(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(W(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(W(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(W(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(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(W(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 Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}var Ae={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:X};const Ie={modifiers:Ae,apply:ke,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:r,layout:n})}))},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Be({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:qe};var Me={};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;Me[t.id]=Me[t.id]||{isFirstTime:!0};var u=Me[t.id].isFirstTime;if(Me[t.id].isFirstTime=!1,r&&"object"===Pe(r))return 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=Me[t.id].lastReloadTime;if(Me[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 We({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 Be({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(We({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(r++,"object"!==Pe(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&He(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),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"===Pe(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return Ne(r).forEach((function(e){return Te(e)})),Ye({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function 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&&Be({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(a++,"object"!==Pe(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ae[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ae[r.type].updateModifier&&Ae[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Ae[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||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"===Pe(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Be({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(Ae[n.type]&&!n.disabled)return n}}function qe(e){var t=Le(e);return!t||Ae[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function 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"===Pe(t)&&(t.disabled||!Ae[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 We(e){var t=e.measure,r=e.properties,n=e.layout;return!$e(t)&&Be({modifiers:je(t),properties:r,layout:n})}function Be(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function 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"===Pe(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=je(t);if(Be({modifiers:n,properties:e})){var i=$e(t);i&&r.push(i),o=o||Ke({modifiers:n,properties:e})}})),s(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Me[t.id].masterItemSubscriber=Me[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=s(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])}))}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,(function(){return e=t.id,r(de),delete n[e],void c();var e})),enabled:!1,properties:l(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Me[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in WR.default=n.default,n)-1===["default"].indexOf(Ze)&&(WR[Ze]=n[Ze]);Object.defineProperty(WR,"__esModule",{value:!0})})();var VR=Gt(BR);const UR={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},GR={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}},YR=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)=>(!VR.hasActiveModifiers({measures:[e],properties:t.properties})||VR.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")}),KR={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:cE.Auto,translation:"Common.Auto"},{value:cE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:cE.Pixels,translation:"Object.Table.Column.Pixels"},{value:cE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:cE.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===cE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===cE.Percentage}},XR=()=>({...UR,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}]},...GR,...KR}),JR={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"}},ZR=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:YR(e)}},QR=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:JR},presentation:{type:"items",translation:"properties.presentation",items:{...XR(),...HR(e)}}}}}),eP=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:ZR(e)},presentation:{type:"items",translation:"properties.presentation",items:{...XR(),...$R(e,{[NR.Image]:!0,[NR.Indicator]:!0,[NR.MiniChart]:!0})}}}}}),tP=e=>({...QR(e),...eP(e)}),rP=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...tP(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}}}),nP={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}},oP=({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},iP=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")}),aP=(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}}}),sP=(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},lP=({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=>sP(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Se(n).filter((e=>!a.includes(e))).map((e=>sP(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),uP=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],cP=({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=>sP(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...uP.filter((e=>!i.includes(e))).map((e=>sP(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),dP=({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:lP({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:cP({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:aP(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:aP(`${e}.background`,"properties.background",((t,r)=>{const n=r?IC.WHITE:IC.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),pP=({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:aP(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:aP(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),fP=(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}},hP=e=>e.grid?.zebraStripes?.show,mP={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)}},gP=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:gP,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:gP,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},vP=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,yP=({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:dP({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:fP,disableNoneCallback:vP}),dimensionValueSection:dP({section:"dimensionValues",translator:t,flags:e,getThemeValue:fP}),measureValueSection:dP({section:"measureValues",translator:t,flags:e,getThemeValue:fP}),totalRowSection:dP({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:fP,disableNoneCallback:vP}),nullValues:pP({section:"nullValues",fallbackBackground:IC.NULL_VALUE_BACKGROUND,getThemeValue:fP}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...mP},border:aP("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??IC.BORDER_MEDIUM)),divider:aP("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??IC.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:hP,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:hP,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:hP,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:hP,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),xP=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[yP(e),iP(e),oP(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:"-"}]},...nP}}),SP={uses:"sorting"},wP={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},CP=e=>({type:"items",component:"accordion",items:{data:rP(e),sorting:SP,addOns:wP,settings:xP(e)}});function EP(e){return{definition:CP(e),exploration:kR,data:qR(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 MR({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>CR({propertyTree:e,hyperCubePath:t})}}const RP=(e,t)=>r((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=e[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};t?.applyPatches([l],!0)})(e,t)),[e,t]),PP=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),AP=[];for(let e=0;e<256;++e)AP.push((e+256).toString(16).slice(1));let IP;const MP=new Uint8Array(16);var kP={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function DP(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!IP){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");IP=crypto.getRandomValues.bind(crypto)}return IP(MP)}();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(AP[e[t+0]]+AP[e[t+1]]+AP[e[t+2]]+AP[e[t+3]]+"-"+AP[e[t+4]]+AP[e[t+5]]+"-"+AP[e[t+6]]+AP[e[t+7]]+"-"+AP[e[t+8]]+AP[e[t+9]]+"-"+AP[e[t+10]]+AP[e[t+11]]+AP[e[t+12]]+AP[e[t+13]]+AP[e[t+14]]+AP[e[t+15]]).toLowerCase()}(n)}const TP=()=>crypto?.randomUUID?.()??function(e){return kP.randomUUID&&!e?kP.randomUUID():DP(e)}(),OP=({cId:e})=>e??TP(),LP=e=>"number"==typeof e&&!Number.isNaN(+e),qP=e=>LP(e.qNum),NP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);var jP={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:zP(e),value:zP(t),useEqualSign:r}}(n,o,i))})),t}},_P=jP;function zP(e){try{return decodeURIComponent(e)}catch{return e}}function FP(e){if(!(this instanceof FP))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:()=>_P.fromSearchString(t.search)}})}function HP(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}FP.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},FP.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=HP(t.key),t.value?r+=`=${HP(t.value)}`:r+=t.useEqualSign?"=":"";return r};var $P=FP;var WP,BP=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}},VP=class{decode(e){let t="";const r=new BP(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},UP=e=>e>=0&&e<=1114111,GP=e=>e.match(/[\s]/),YP=class extends VP{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&&!GP(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return UP(a)?String.fromCharCode(a):"�"}},KP=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}},XP=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 KP.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return KP.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||KP.newInstanceIfNeeded(e,t,this._value)}},JP=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 XP);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},ZP=(()=>{const e=[],t=[],r=new JP;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})(),QP=class extends VP{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,ZP.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=ZP.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)&&UP(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)&&UP(n)?String.fromCharCode(n):null}},eA=class extends VP{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),UP(i))?String.fromCharCode(i):(e.reset(),null)}},tA=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,rA=5e6,nA=5e5,oA=(e,t)=>{const{maxByteSizeSvg:r=nA,maxByteSizeImage:n=rA}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=tA.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&&(WP=document.createElement("div"));var iA=Array.prototype.indexOf,aA=[",",".","_"," "],sA=[",",".","-","_"," "],lA={width:["%"],height:["%"]},uA={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},cA={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":uA.image,"background-color":uA.color,"border-color":uA.color,"border-image":uA.image,color:uA.color,icon:uA.image,"list-style-image":uA.image,"outline-color":uA.color},dA={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function pA(e,t,r){let n;if(t){if(iA)return iA.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 fA(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return WP.appendChild(r),t=WP.innerHTML,WP.removeChild(r),t}function hA(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=gA(e).toLowerCase(),t=gA(t),i=0;i<dA.attr_name.length;i++)if(e.match(dA.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<dA.attr_val.length;i++)if(t.toLowerCase().match(dA.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=lA[e],n||(n=sA),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]/)&&pA(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function mA(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=gA(e).toLowerCase(),t=gA(t),pA(e,dA.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<dA.css_val.length;n++)if(t.toLowerCase().indexOf(dA.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=cA[e],o||(o=uA.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]/)&&pA(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function gA(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new QP,new eA,new YP];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 bA=[];for(let e=0;e<255;e++)bA[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var vA={html:e=>fA(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]=mA(t,r[t],!0),i+=mA(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]=hA(e,t[e],!0),o+=hA(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function yA(e,t){throw new Error(t)}var xA={canonicalize:gA,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?vA.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&yA(this,"Invalid parameter type"),vA.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&yA(this,"Invalid parameter type"),vA.attr(e)):void yA(this,"Invalid parameter type")},encodeForAttr:hA,encodeForAttr2:function(e){return hA("nonsens",e,!0)},encodeForCSS:mA,encodeForHref:function(e){gA(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new $P(e),r=$P.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+$P.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=aA),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),pA(o,t)>=0||null==bA[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:fA,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=gA(t).toLowerCase():yA(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:oA,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 SA=(e,t)=>t.qAttrExps?.qValues?.[e],wA=(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"}}},CA=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&xA.isSafeDataURL(t)?{type:NR.Image,url:t,text:e,imageSize:r,resolvedImagePosition:wA(n,a),labelStructure:o,imageBox:i}:{type:NR.Text,url:void 0,text:e,labelStructure:o},EA=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:NR.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:NR.MiniChart,text:n,miniChart:a}},RA=(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===jR.Attribute?void 0:r?.urlLabel},PA=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:NR.Link,url:xA.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:NR.Text,url:void 0,text:t,labelStructure:e}}},AA=({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=_R(t),d=s(e);return c===NR.Image&&u[NR.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=SA(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),CA({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 CA({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=SA(r.imageLabel??-1,e)?.qText??n;return CA({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:NR.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===NR.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===jR.Attribute){const i=RA(r.url??-1,e,t);return PA({labelStructure:n,text:o||i||"",url:i})}if(i===jR.Dimension){const i=RA(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),PA({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:NR.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===NR.Indicator&&u[NR.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:NR.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===NR.MiniChart&&u[NR.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?EA(e,t,i,d):{type:NR.Text,url:void 0,text:d,labelStructure:a}},IA=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,MA=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",kA=1e4;function DA(e,t){return[...t].reverse().find((t=>t*e<=kA))||Math.floor(kA/e)}function TA(e,t){if(t.viewState?.skipTotals)return{atTop:!1,atBottom:!1};const[r,n,o,i,a]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function OA(e,t,r,n){return t?0===r?e.totals.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function LA(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return LP(r?.qNum)}function qA(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 NA=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const jA=(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===fE.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:P,qAttrExprInfo:A,qSortIndicator:I,qReverseSort:M,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:M,columnWidth:D??{type:cE.Auto},selectionColIdx:x,isActivelySorted:m,id:OP(f),label:R,groupDimensionPos:S,groupDimensionLabels:w,qAttrExprInfoIDs:A.map((e=>e.id)),qAttrExprInfoIndex:PP(f),sortDirection:I&&"N"!==I?I:"A",totalInfo:OA(e,p,l,c??-1),...!p&&{isTotalNumeric:LA(e,c??-1)},...qA(P,g,p,r,n),representation:C,conditionalColoring:p?void 0:E,qMiniChart:b}}(e,n,t,r)))};const _A=(e,t)=>!(!e.snapshotData&&!t.viewState?.visibleHeight),zA=(e,t)=>void 0!==t.viewState?.usePagination?t.viewState.usePagination:!1!==e.usePagination||_A(e,t);var FA={exports:{}};
|
|
103
103
|
/*!
|
|
104
104
|
* CSSJanus. https://github.com/cssjanus/cssjanus
|
|
105
105
|
*
|
|
@@ -118,4 +118,4 @@ function $i(e,t){let r;return r=t?Oi(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"),P=new RegExp(s+"(left)"+m+b+g,"gi"),A=new RegExp(s+"(right)"+m+b+g,"gi"),I=new RegExp(s+"(left)"+v,"gi"),M=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"),W=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),B=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(I,"$1"+e).replace(M,"$1left").replace(x,"right")),r=r.replace(E,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(P,"$1"+e).replace(A,"$1left").replace(x,"right").replace(T,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(_,G).replace(z,K).replace(F,J).replace(H,J).replace($,K).replace(W,X).replace(B,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)}(FA,FA.exports);var HA=Gt(FA.exports);function $A(e,t,r){switch(e.type){case Zr:case Jr:case Kr:return e.return=e.return||e.value;case Xr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Kr&&(e.children=e.value)}))}var n=Hn(Array.prototype.concat(e.children),$A);return cn(n)?e.return=e.value+"{"+n+"}":""}function WA(e,t,r,n){if(e.type===Qr||"@supports"===e.type||e.type===Xr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Xr)){var o=HA.transform($A(e));e.children=o?qn(o)[0].children:[],e.return=""}}Object.defineProperty(WA,"name",{value:"stylisRTLPlugin"});let BA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),VA=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}({}),UA=function(e){return e.A="ascending",e.D="descending",e}({}),GA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const YA=[0,0],KA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),XA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},JA=(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&&ie(e.localPaletteColors[t].color).blend(ie(s.color),s.t)},ZA=(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:KA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:XA(n,t,r)})))),n},QA=(e,t,r,n)=>{const o=ZA(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=JA(e,a,t);break}n=i}return r})(o,t);return a},eI=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!LP(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||!LP(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)},tI=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=eI(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||!LP(t))return 0;let a=r&&LP(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}},rI=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=tI(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 XA(o,r.limitPaletteColorIndex,n);const a=KA(r.limitRange,t);return QA(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}},nI=(PC().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)"),oI=4/3,iI="12px",aI="600",sI="Source Sans Pro, sans-serif",lI={height:"auto",fontSize:iI,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"}},uI={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:aI},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},cI=(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,dI=(e,t)=>e.representation.type===NR.Image&&"fitHeight"===e.representation.imageSize?cI(t,e.representation):e.align,pI=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",fI=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},hI=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,mI=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",gI=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",bI=24,vI=pc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),yI=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?pI(e,n):void 0}))),xI=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},[`& .${nE}`]:{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"},[`& .${nE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),SI=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"}))),wI=pc(rp,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),CI=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}))),EI=25e4,RI=(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(uE.PixelsMax,Math.max(uE.PixelsMin,f)),i-=n[a]};switch(s){case cE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?uE.PixelsDefault:+e)(l),h();break;case cE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?uE.PercentageDefault:+e)(u)/100*t,h();break;case cE.FitToContent:e.representation?.type===NR.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case cE.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(uE.AutoMinTable,e)}))}return n},PI=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},AI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},II=e=>e.ctrlKey||e.metaKey,MI=e=>e.shiftKey&&II(e),kI=e=>[sE.Left,sE.Right,sE.Up,sE.Down].includes(e),DI=e=>e.shiftKey&&kI(e.key),TI=e=>(e=>kI(e)||[sE.Home,sE.End,sE.PageUp,sE.PageDown].includes(e))(e.key)&&!MI(e),OI=(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),PI(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})},LI=(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&&DI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&DI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===sE.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 PI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},qI=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}},NI=(e,t)=>{switch(t.type){case VA.Select:return OI(e,t.payload);case VA.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 VA.SelectMouseUp:return((e,t)=>qI(e.isSelectMultiValues||e.firstCell!==t.cell?e:OI(e,t)))(e,t.payload);case VA.SelectMultiAdd:return LI(e,t.payload);case VA.SelectMultiEnd:return qI(e);case VA.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case VA.Clear:return e.rows.size?{...e,rows:new Map}:e;case VA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},jI=4/3,_I=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function zI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const FI=(e,t)=>e?{borderBottomColor:IC.DARK_MODE_BORDER,borderRightColor:IC.DARK_MODE_BORDER,borderLeftColor:IC.DARK_MODE_BORDER,borderTopColor:IC.DARK_MODE_BORDER}:{borderLeftColor:IC.BORDER_MEDIUM,borderRightColor:IC.BORDER_MEDIUM,borderTopColor:IC.BORDER_HEAVY,borderBottomColor:t?IC.BORDER_HEAVY:IC.BORDER_LIGHT},HI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*jI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},$I=e=>e.components?.find((e=>"theme"===e.key)),WI=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:_I(r?.fontColor)?zI(IC.TEXT,t,r?.fontColor):i||IC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...FI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function BI(e,t,r){const n=$I(e)?.header,o=WI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=DC(o.background??IC.WHITE,dE),o.activeBackground=DC(o.background??IC.WHITE,pE),o}const VI=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in uI)(e)&&Object.assign(t,uI[e]))),t};function UI(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&&OC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?VI(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=MC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const GI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},YI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=GI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},KI=(e,t,r,n=IC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=YI(e,t,r);return _C(i,o,a,n)??n},XI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return iI}},JI=e=>e?.some((e=>"italic"===e))?"italic":"normal",ZI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?aI:"normal",QI=e=>!1===e?1:3,eM=e=>parseInt(e??lI.fontSize,10)*oI,tM=e=>e?.some((e=>"underline"===e))?"underline":"none",rM=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=$I(t)??{},p=zA(t,o)?IC.WHITE:IC.TRANSPARENT,f=KI(n,i,"object.straightTableV2.dimension.label.name.backgroundColor",p),h=o.viewState?.maxLineCount??d?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),m={header:{fontFamily:i?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??r.head.fontFamily??sI,fontSize:XI(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:JI(i?.fontStyle),fontWeight:ZI(i?.fontStyle,aI),textDecoration:tM(i?.fontStyle),color:GI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??IC.TEXT,background:f},headerMenuHoverBackground:DC(f,dE),headerMenuActiveBackground:DC(f,pE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??sI,fontSize:XI(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:JI(a?.fontStyle),fontWeight:ZI(a?.fontStyle,"normal"),textDecoration:tM(a?.fontStyle),color:GI(n,a?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??IC.TEXT,background:YI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??IC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??sI,fontSize:XI(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:JI(s?.fontStyle),fontWeight:ZI(s?.fontStyle,"normal"),textDecoration:tM(s?.fontStyle),color:GI(n,s?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??IC.TEXT,background:YI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??IC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??sI,fontSize:XI(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:JI(l?.fontStyle),fontWeight:ZI(l?.fontStyle,aI),textDecoration:tM(l?.fontStyle),color:GI(n,l?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??IC.TEXT,background:KI(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:JI(u?.fontStyle),fontWeight:ZI(u?.fontStyle,"normal"),textDecoration:tM(u?.fontStyle),color:GI(n,u?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??IC.TEXT,background:GI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??IC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??QI(t.multiline?.wrapTextInCells),headerLineClamp:QI(t.multiline?.wrapTextInHeaders),border:GI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?IC.DARK_MODE_BORDER:IC.BORDER_MEDIUM),divider:GI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??IC.BORDER_HEAVY,hoverColors:{color:GI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:GI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:GI(n,c?.zebraStripes?.color?.odd),background:GI(n,c?.zebraStripes?.background?.odd)},even:{color:GI(n,c?.zebraStripes?.color?.even),background:GI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===GI(n,u?.background),overrideNullValueColor:void 0===GI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:kC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:h},{headerMinRowHeight:g,totalRowLineHeight:b,totalRowMinHeight:v,contentLineHeight:y,contentMinRowHeight:x}=(e=>{const t=Math.max(eM(e.header.fontSize)+8,32),r=eM(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(eM(e.dimension.values.fontSize),eM(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(m);return m.headerMinRowHeight=g,m.totalRowLineHeight=b,m.totalRowMinHeight=v,m.contentLineHeight=y,m.contentMinRowHeight=x,m},nM=(e,t,r,n)=>{const o=A((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=$I(e)?.content,i=WI("content",t,o);i.background=t.background.color;const a=HI(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=_I(l)||!!c,p=_I(s)||!!u,f=d||p;let h;h=_I(s)?zI(IC.HOVER,t,s):u||(d?"":IC.HOVER);const m=f?zI(MC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=BI(e,t,!o),s=function(e,t,r){const n=$I(e)?.content,o=WI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=BI(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},oM=new Map;const iM=k({}),aM=function(e){const t=k([()=>{},new Set]);return oM.set(e,t),({children:r,value:n})=>{const o=M(n),i=M(new Set);T((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=q((()=>o.current),[o]),s=A((()=>[a,i.current]),[a]);return or.jsx(e.Provider,{value:n,children:or.jsx(t.Provider,{value:s,children:r})})}}(iM),sM={rows:[],columns:[],totalsPosition:{}},lM=({children:e,tableData:t=sM,selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,setPage:p,pageInfo:f,initialDataPages:h,rect:m,viewService:g,downloadService:b,env:v,direction:y,eventEmitter:x})=>{const[S,w]=((e,t)=>{const[r,n]=D(NI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(t.rows,r),C=nM(n,a,t,l),E=((e,t,r,n,o)=>A((()=>rM(0,t,r,n,o)),[t,r,e,n,o]))(v,n,C,a,g),{xScrollbarWidth:R,yScrollbarWidth:P,setXScrollbarWidth:M,setYScrollbarWidth:k}=(()=>{const[e,t]=I(0),[r,n]=I(0);return{xScrollbarWidth:e,yScrollbarWidth:r,setYScrollbarWidth:n,setXScrollbarWidth:t}})(),{columnWidths:T,setColumnWidths:O,showRightBorder:L,isAdjustingWidth:q,setIsAdjustingWidth:j}=(({columns:e,totalsPosition:t,tableWidth:r,styleService:n,eventEmitter:o,yScrollbarWidth:i,accessibleHeader:a=!0})=>{const s=t.atBottom||t.atTop,l=VC({...n.header,fontWeight:aI},{maxNbrLinesOfText:3}).measureText,u=VC({...n.totalRow,fontWeight:aI},{maxNbrLinesOfText:3}).measureText,{estimateWidth:c}=VC(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:d}=VC(n.measure.values,{maxNbrLinesOfText:3}),p=A((()=>(e,t,r,n,o,i,p)=>{let f=0;if(a){const t=4;let r=25;r+=t+24,n&&(r+=20+t),o&&(r+=20),f=l(e)+r}else{let t=9;t+=16,p&&(t+=bI),t+=bI,t+=bI,f=l(e)+t}const h=i?c:d;return Math.max(f,s?u(t)+24+1:0,h(r))}),[c,d,l,u,s,a]),[f,h]=I(!1),[m,g]=I((()=>RI(e,r,p)));N((()=>{const t=RI(e,r-i,p);g(t),h(!1)}),[e,r,i,p]),N((()=>{f||o.emit("done-adjusting-column-width")}),[f,o]);const b=A((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,i,r)),[m,i,r]);return{columnWidths:m,setColumnWidths:g,showRightBorder:b,isAdjustingWidth:f,setIsAdjustingWidth:h}})({columns:t.columns,totalsPosition:t.totalsPosition,tableWidth:m.width,styleService:E,eventEmitter:x,accessibleHeader:n.accessibleHeader,yScrollbarWidth:P}),_=A((()=>({selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,rect:m,viewService:g,styleService:E,direction:y,downloadService:b})),[r,n,o,i,a,s.active,l,u,c,d,m,g,E,y,b]);return or.jsx(aM,{value:{selectionState:S,selectionDispatch:w,columnWidths:T,setColumnWidths:O,baseProps:_,tableData:t,setPage:p,pageInfo:f,initialDataPages:h,showRightBorder:L,env:v,isAdjustingWidth:q,setIsAdjustingWidth:j,setYScrollbarWidth:k,setXScrollbarWidth:M,xScrollbarWidth:R,yScrollbarWidth:P,eventEmitter:x},children:e})};function uM(e,t){const r=function(e){return oM.get(e)}(e),[n,o]=L(r),[,i]=D((e=>e+1),0),a=M(t),s=M(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=A((()=>t(l)),[l,t]);return T((()=>{a.current=t,s.current=u}),[l,u,t]),T((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function cM(e){const t=PC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Mu({...t,direction:e})}const dM={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},pM={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},fM=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":{...dM},"&::-moz-range-track":{...dM},"&::-ms-track":{...dM},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...pM},"&::-moz-range-thumb":{...pM},"&::-ms-thumb":{...pM},"&: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"}}))),hM=({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=ZC({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%",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}};XC((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,uE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:cE.Pixels,pixels:f.current.columnWidth};a(e)}else l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{qC(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=>{qC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===sE.Left||e.key===sE.Right){qC(e);const t=5,r=e.key===sE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===sE.Space||e.key===sE.Enter?(qC(e),s(e),l?.(!1),x()):e.key===sE.Esc&&(qC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return or.jsx(fM,{style:b,hoverColor:o,isLastColumn:r,className:lE,"data-testid":lE,onMouseDown:e=>{qC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:cE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(qC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":uE.PixelsMin,"aria-valuemax":uE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},mM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),gM=({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},bM=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"}))),vM=pc(mM,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),yM=pc(_f)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),xM=pc(Lp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),SM=pc(Wf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),wM=pc(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"}))),CM=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"}))),EM=pc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),RM=pc(vd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),PM=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}))),AM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),IM=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?IM(t):t:e.parentElement?.children?.[0]},MM=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?MM(t):t},kM=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===sE.Down||t===sE.Up){const r=e=>t===sE.Down?IM(e):MM(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},DM=(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 TM={};const OM=({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]=I(!1),f=S.useRef(null),h=q((e=>{e.stopPropagation(),p(!1)}),[p]);return or.jsxs(or.Fragment,{children:[or.jsxs(wM,{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),TM={}),a?.length&&(p(!0),TM[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:kM,children:[l?or.jsx(CM,{direction:u,isPagination:c}):null,or.jsxs(EM,{children:[or.jsx(PM,{direction:u,isPagination:c,children:or.jsx(o,{})}),or.jsx(RM,{variant:"body2",children:n})]}),a?.length?or.jsx(AM,{}):null]},t),a?.length?or.jsx(jM,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:DM(a,TM),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},LM=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&or.jsx(SM,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>or.jsx(OM,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),qM=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[LM({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?or.jsx(xM,{"data-testid":"group-divider",variant:"middle"}):void 0])),NM={appear:0,enter:0,exit:0},jM=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?or.jsx(yM,{className:oE,open:t,anchorEl:e,onClose:r,transitionDuration:NM,MenuListProps:{id:iE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:qM({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,_M=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>q((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]),zM=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),FM=(e,t)=>e.some((e=>t[e]>0)),HM={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},$M=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=I(null),[a,s]=I(HM);return XC((()=>{e||(s(HM),i(null))}),[e]),T((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=zM(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:FM(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:FM(["qSelected"],e),canSelectPossible:FM(["qOption"],e),canSelectAlternative:FM(["qAlternative"],e),canSelectExcluded:FM(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},WM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),BM=j(((e,t)=>or.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[or.jsx("g",{clipPath:"url(#clear_selections_svg__clip0_482_2951)",children:or.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"})}),or.jsx("defs",{children:or.jsx("clipPath",{id:"clear_selections_svg__clip0_482_2951",children:or.jsx("path",{d:"M0 0h16v16H0z"})})})]}))),VM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),UM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),GM=j(((e,t)=>or.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[or.jsx("g",{clipPath:"url(#dimension_svg__clip0_482_3308)",children:or.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"})}),or.jsx("defs",{children:or.jsx("clipPath",{id:"dimension_svg__clip0_482_3308",children:or.jsx("path",{d:"M0 0h16v16H0z"})})})]}))),YM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),KM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),XM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),JM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),ZM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),QM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),ek=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),tk=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),rk=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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 nk=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const ok="/qListObjectDef",ik=({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[nk.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:WM,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:UM,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:XM,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:GM,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[nk.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:JM,enabled:!0}]}]),!e.isLocked&&r[nk.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:rk,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(ok))},icon:ZM,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(ok))},icon:tk,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(ok))},icon:QM,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(ok))},icon:ek,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(ok))},icon:BM,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:KM,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:YM,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[nk.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:VM,enabled:!0}]}]),f},ak=({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=tE})=>{const v=M(null),y=ZC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=$M({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=gM({model:f,headerData:n}),A=_M({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=q((e=>{e.stopPropagation(),t(!1)}),[t]),k=q((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?or.jsxs(bM,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:nE,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?or.jsx(vM,{height:b,className:rE,"data-testid":rE,isInteractionsActive:i.active??!1,children:or.jsx(mM,{})}):null,or.jsx(jM,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:ik({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},sk=e=>e.isDark?{background:e.color,borderColor:IC.DARK_MODE_BORDER,color:IC.DARK_MODE_TEXT,disabledColor:IC.DARK_MODE_DISABLED,iconColor:IC.DARK_MODE_TEXT}:{background:e.color,borderColor:IC.BORDER_MEDIUM,color:IC.TEXT,disabledColor:IC.DISABLED},lk=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}`}))),uk=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}}))),ck=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)}))),dk=pc(vd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),pk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A((()=>sk(n.background)),[n]);if(!r.active)return null;const a=o?or.jsx(lk,{footerStyle:i,children:e}):null;return t?W.createPortal(e,t):a},fk=k({}),hk=()=>L(fk),mk=({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=A((()=>sk(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=ZC({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: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 or.jsx(fk.Provider,{value:S,children:e})};let gk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),bk=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 vk=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),yk=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),xk=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),Sk={FirstPage:yk,PreviousPage:vk,NextPage:AM,LastPage:xk,FirstPageRTL:xk,PreviousPageRTL:AM,NextPageRTL:vk,LastPageRTL:yk},wk=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=hk(),u=r.concat("rtl"===n?"RTL":""),c=Sk[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}},Ck=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=hk(),o=0===e.page,{IconComponent:i,styledProps:a}=wk({type:gk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||bk.FirstPage)?null:or.jsx(ck,{...a,disabled:!r.active,children:or.jsx(i,{height:tE})})},Ek=(e,t,r=!1)=>{r&&e.key===sE.Tab&&!e.shiftKey&&(qC(e),LC(e.target,t,!1))},Rk=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=hk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=wk({type:gk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{Ek(e,t,n)}:void 0;return o<=(a?.lastPage||bk.LastPage)?null:or.jsx(ck,{...u,onKeyDown:c,disabled:!i.active,children:or.jsx(l,{height:tE})})},Pk=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=hk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=wk({type:gk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>bk.FirstPage&&o>bk.LastPage)&&t.enabled?e=>{Ek(e,t,n)}:void 0;return or.jsx(ck,{...l,onKeyDown:u,disabled:!i.active,children:or.jsx(s,{height:tE})})},Ak=()=>{const{pageInfo:e,interactions:t}=hk(),r=0===e.page,{IconComponent:n,styledProps:o}=wk({type:gk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return or.jsx(ck,{...o,disabled:!t.active,children:or.jsx(n,{height:tE})})},Ik=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=hk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||bk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return or.jsx(dk,{variant:"caption",dir:"ltr",children:s})},Mk=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=hk(),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 or.jsxs(or.Fragment,{children:[or.jsxs(dk,{variant:"caption",id:p,children:[c,":"]}),or.jsx(uk,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},kk=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=hk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||bk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=or.jsx(or.Fragment,{children:e.rowsPerPageOptions.map((e=>or.jsx("option",{value:e,children:e},e)))});return or.jsx(Mk,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},Dk=1e3,Tk="…",Ok=({totalPages:e,page:t})=>{const r=Math.min(e,Dk),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-Dk):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return or.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(or.jsx("option",{value:Tk,disabled:!0,children:Tk},"startMoreOptions")),o<e-1&&a.push(or.jsx("option",{value:Tk,disabled:!0,children:Tk},"endMoreOptions")),or.jsx(or.Fragment,{children:a})},Lk=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=hk(),{page:i}=e;if(t<=(o?.selectPage||bk.SelectPage))return null;const a=or.jsx(Ok,{totalPages:r,page:i});return or.jsx(Mk,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var qk=_((e=>or.jsxs(mk,{...e,children:[or.jsx(kk,{}),or.jsx(Lk,{}),or.jsx(Ik,{}),or.jsx(Ck,{}),or.jsx(Ak,{}),or.jsx(Pk,{}),or.jsx(Rk,{})]})));const Nk=e=>or.jsx(pk,{...e,children:or.jsx(qk,{...e})});var jk=Symbol.for("preact-signals");function _k(){if(Wk>1)Wk--;else{for(var e,t=!1;void 0!==$k;){var r=$k;for($k=void 0,Bk++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Kk(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(Bk=0,Wk--,t)throw e}}function zk(e){if(Wk>0)return e();Wk++;try{return e()}finally{_k()}}var Fk=void 0;function Hk(e){var t=Fk;Fk=void 0;try{return e()}finally{Fk=t}}var $k=void 0,Wk=0,Bk=0,Vk=0;function Uk(e){if(void 0!==Fk){var t=e.n;if(void 0===t||t.t!==Fk)return t={i:0,S:e,p:Fk.s,n:void 0,t:Fk,e:void 0,x:void 0,r:t},void 0!==Fk.s&&(Fk.s.n=t),Fk.s=t,e.n=t,32&Fk.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=Fk.s,t.n=void 0,Fk.s.n=t,Fk.s=t),t}}function Gk(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 Yk(e,t){return new Gk(e,t)}function Kk(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 Xk(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 Jk(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 Zk(e,t){Gk.call(this,void 0),this.x=e,this.s=void 0,this.g=Vk-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 Qk(e,t){return new Zk(e,t)}function eD(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Wk++;var r=Fk;Fk=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,tD(e),t}finally{Fk=r,_k()}}}function tD(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,eD(e)}function rD(e){if(Fk!==this)throw new Error("Out-of-order effect");Jk(this),Fk=e,this.f&=-2,8&this.f&&tD(this),_k()}function nD(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 oD(e,t){var r=new nD(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}Gk.prototype.brand=jk,Gk.prototype.h=function(){return!0},Gk.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:Hk((function(){var e;null==(e=t.W)||e.call(t)})))},Gk.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&&Hk((function(){var e;null==(e=t.Z)||e.call(t)})))}},Gk.prototype.subscribe=function(e){var t=this;return oD((function(){var r=t.value,n=Fk;Fk=void 0;try{e(r)}finally{Fk=n}}),{name:"sub"})},Gk.prototype.valueOf=function(){return this.value},Gk.prototype.toString=function(){return this.value+""},Gk.prototype.toJSON=function(){return this.value},Gk.prototype.peek=function(){var e=Fk;Fk=void 0;try{return this.value}finally{Fk=e}},Object.defineProperty(Gk.prototype,"value",{get:function(){var e=Uk(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Bk>100)throw new Error("Cycle detected");this.v=e,this.i++,Vk++,Wk++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{_k()}}}}),Zk.prototype=new Gk,Zk.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===Vk)return!0;if(this.g=Vk,this.f|=1,this.i>0&&!Kk(this))return this.f&=-2,!0;var e=Fk;try{Xk(this),Fk=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 Fk=e,Jk(this),this.f&=-2,!0},Zk.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)}Gk.prototype.S.call(this,e)},Zk.prototype.U=function(e){if(void 0!==this.t&&(Gk.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)}},Zk.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(Zk.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Uk(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),nD.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()}},nD.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,eD(this),Xk(this),Wk++;var e=Fk;return Fk=this,rD.bind(this,e)},nD.prototype.N=function(){2&this.f||(this.f|=2,this.o=$k,$k=this)},nD.prototype.d=function(){this.f|=8,1&this.f||tD(this)},nD.prototype.dispose=function(){this.d()};var iD,aD,sD,lD,uD,cD,dD,pD,fD,hD,mD,gD,bD,vD,yD,xD,SD,wD,CD,ED,RD=Object.create,PD=Object.defineProperty,AD=Object.defineProperties,ID=Object.getOwnPropertyDescriptor,MD=Object.getOwnPropertyDescriptors,kD=Object.getOwnPropertySymbols,DD=Object.prototype.hasOwnProperty,TD=Object.prototype.propertyIsEnumerable,OD=e=>{throw TypeError(e)},LD=(e,t,r)=>t in e?PD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qD=(e,t)=>PD(e,"name",{value:t,configurable:!0}),ND=["class","method","getter","setter","accessor","field","value","get","set"],jD=e=>void 0!==e&&"function"!=typeof e?OD("Function expected"):e,_D=(e,t,r,n,o)=>({kind:ND[e],name:t,metadata:n,addInitializer:e=>r._?OD("Already initialized"):o.push(jD(e||null))}),zD=(e,t)=>{return LD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},FD=(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},HD=(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=ND[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)&&ID(d<4?o:{get[r](){return BD(this,i)},set[r](e){return UD(this,i,e)}},r));d?f&&d<4&&qD(i,(d>2?"set ":d>1?"get ":"")+r):qD(o,r);for(var y=n.length-1;y>=0;y--)u=_D(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>WD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?BD:GD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>UD(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?jD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?OD("Object expected"):(jD(a=s.get)&&(v.get=a),jD(a=s.set)&&(v.set=a),jD(a=s.init)&&g.unshift(a));return d||zD(e,o),v&&PD(o,r,v),f?4^d?i:v:o},$D=(e,t,r)=>t.has(e)||OD("Cannot "+r),WD=(e,t)=>Object(t)!==t?OD('Cannot use the "in" operator on this value'):e.has(t),BD=(e,t,r)=>($D(e,t,"read from private field"),r?r.call(e):t.get(e)),VD=(e,t,r)=>t.has(e)?OD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),UD=(e,t,r,n)=>($D(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),GD=(e,t,r)=>($D(e,t,"access private method"),r);function YD(e,t){if(t){let r;return Qk((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return Qk(e)}function KD(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)=>!KD(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=>!KD(e[r],t[r])));return!o}return!1}function XD({get:e},t){return{init:e=>Yk(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function JD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=YD(e.bind(this)),r.set(this,t)),t.value}}function ZD(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)=>AD(e,MD(t)))(((e,t)=>{for(var r in t||(t={}))DD.call(t,r)&&LD(e,r,t[r]);if(kD)for(var r of kD(t))TD.call(t,r)&&LD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function QD(...e){const t=e.map((e=>oD(e)));return()=>t.forEach((e=>e()))}cD=[XD],uD=[XD],lD=[XD],sD=[ZD()],aD=[ZD()],iD=[ZD()];var eT,tT=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,FD(dD,5,this),VD(this,gD),VD(this,pD,FD(dD,8,this)),FD(dD,11,this),VD(this,bD,FD(dD,12,this)),FD(dD,15,this),VD(this,SD,FD(dD,16,this)),FD(dD,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return BD(this,gD,CD)}get initial(){return BD(this,gD,hD)}get previous(){return BD(this,gD,yD)}set current(e){const t=Hk((()=>BD(this,gD,CD)));e&&t&&this.equals(t,e)||zk((()=>{BD(this,gD,hD)||UD(this,gD,e,mD),UD(this,gD,t,xD),UD(this,gD,e,ED)}))}reset(e=this.defaultValue){zk((()=>{UD(this,gD,void 0,xD),UD(this,gD,e,mD),UD(this,gD,e,ED)}))}};function rT(e){return Hk((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}dD=[,,,RD(null)],pD=new WeakMap,gD=new WeakSet,bD=new WeakMap,SD=new WeakMap,fD=HD(dD,20,"#initial",cD,gD,pD),hD=fD.get,mD=fD.set,vD=HD(dD,20,"#previous",uD,gD,bD),yD=vD.get,xD=vD.set,wD=HD(dD,20,"#current",lD,gD,SD),CD=wD.get,ED=wD.set,HD(dD,2,"current",sD,tT),HD(dD,2,"initial",aD,tT),HD(dD,2,"previous",iD,tT),zD(dD,tT);eT=new WeakMap;var nT,oT,iT,aT,sT,lT=Object.create,uT=Object.defineProperty,cT=Object.getOwnPropertyDescriptor,dT=Object.getOwnPropertySymbols,pT=Object.prototype.hasOwnProperty,fT=Object.prototype.propertyIsEnumerable,hT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),mT=e=>{throw TypeError(e)},gT=Math.pow,bT=(e,t,r)=>t in e?uT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vT=["class","method","getter","setter","accessor","field","value","get","set"],yT=e=>void 0!==e&&"function"!=typeof e?mT("Function expected"):e,xT=(e,t,r,n,o)=>({kind:vT[e],name:t,metadata:n,addInitializer:e=>r._?mT("Already initialized"):o.push(yT(e||null))}),ST=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=vT[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,cT(o,r)),h=n.length-1;h>=0;h--)(l=xT(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,yT(a)&&(f[d]=a);return f&&uT(o,r,f),o},wT=(e,t,r)=>t.has(e)||mT("Cannot "+r),CT=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)}},ET=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={}))pT.call(t,r)&&bT(e,r,t[r]);if(dT)for(var r of dT(t))fT.call(t,r)&&bT(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 CT((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 CT.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 RT,PT=class extends(iT=tT,oT=[JD],nT=[JD],iT){constructor(e){var t,r,n;super(CT.from(e),((e,t)=>CT.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)})(sT,5,this),t=this,n=0,(r=aT).has(t)?mT("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 CT.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=CT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(wT(a=this,s=aT,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);zk((()=>{((e,t,r)=>{wT(e,t,"write to private field"),t.set(e,r)})(this,aT,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(CT.from(e)),this.velocity={x:0,y:0}}};function AT({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(gT(n,2)+gT(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}sT=(e=>{var t;return[,,,lT(null!=(t=null==e?void 0:e[hT("metadata")])?t:null)]})(iT),aT=new WeakMap,ST(sT,2,"delta",oT,PT),ST(sT,2,"direction",nT,PT),RT=sT,bT(PT,hT("metadata"),RT[3]);var IT,MT,kT,DT,TT=(e=>(e.Horizontal="x",e.Vertical="y",e))(TT||{}),OT=Object.values(TT),LT=Object.create,qT=Object.defineProperty,NT=Object.defineProperties,jT=Object.getOwnPropertyDescriptor,_T=Object.getOwnPropertyDescriptors,zT=Object.getOwnPropertySymbols,FT=Object.prototype.hasOwnProperty,HT=Object.prototype.propertyIsEnumerable,$T=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),WT=e=>{throw TypeError(e)},BT=(e,t,r)=>t in e?qT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VT=(e,t)=>{for(var r in t||(t={}))FT.call(t,r)&&BT(e,r,t[r]);if(zT)for(var r of zT(t))HT.call(t,r)&&BT(e,r,t[r]);return e},UT=(e,t)=>NT(e,_T(t)),GT=(e,t)=>qT(e,"name",{value:t,configurable:!0}),YT=(e,t)=>{var r={};for(var n in e)FT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&zT)for(var n of zT(e))t.indexOf(n)<0&&HT.call(e,n)&&(r[n]=e[n]);return r},KT=e=>{var t;return[,,,LT(null!=(t=null==e?void 0:e[$T("metadata")])?t:null)]},XT=["class","method","getter","setter","accessor","field","value","get","set"],JT=e=>void 0!==e&&"function"!=typeof e?WT("Function expected"):e,ZT=(e,t,r,n,o)=>({kind:XT[e],name:t,metadata:n,addInitializer:e=>r._?WT("Already initialized"):o.push(JT(e||null))}),QT=(e,t)=>BT(t,$T("metadata"),e[3]),eO=(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},tO=(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=XT[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)&&jT(d<4?o:{get[r](){return oO(this,i)},set[r](e){return aO(this,i,e)}},r));d?f&&d<4&>(i,(d>2?"set ":d>1?"get ":"")+r):GT(o,r);for(var y=n.length-1;y>=0;y--)u=ZT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>nO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?oO:sO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>aO(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?JT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?WT("Object expected"):(JT(a=s.get)&&(v.get=a),JT(a=s.set)&&(v.set=a),JT(a=s.init)&&g.unshift(a));return d||QT(e,o),v&&qT(o,r,v),f?4^d?i:v:o},rO=(e,t,r)=>t.has(e)||WT("Cannot "+r),nO=(e,t)=>Object(t)!==t?WT('Cannot use the "in" operator on this value'):e.has(t),oO=(e,t,r)=>(rO(e,t,"read from private field"),r?r.call(e):t.get(e)),iO=(e,t,r)=>t.has(e)?WT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),aO=(e,t,r,n)=>(rO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),sO=(e,t,r)=>(rO(e,t,"access private method"),r);function lO(e,t){return{plugin:e,options:t}}function uO(e){return t=>lO(e,t)}function cO(e){return"function"==typeof e?{plugin:e,options:void 0}:e}IT=[XD];var dO=class{constructor(e,t){this.manager=e,this.options=t,iO(this,kT,eO(MT,8,this,!1)),eO(MT,11,this),iO(this,DT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return Hk((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=oD(e.bind(this));return oO(this,DT).add(t),t}destroy(){oO(this,DT).forEach((e=>e()))}static configure(e){return lO(this,e)}};MT=KT(null),kT=new WeakMap,DT=new WeakMap,tO(MT,4,"disabled",IT,dO,kT),QT(MT,dO);var pO,fO=class extends dO{},hO=class{constructor(e){this.manager=e,this.instances=new Map,iO(this,pO,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(cO).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of oO(this,pO))if(!r.includes(e)){if(e.prototype instanceof fO)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);aO(this,pO,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 mO(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}pO=new WeakMap;var gO,bO,vO=[],yO=class extends dO{constructor(e){super(e),iO(this,gO),iO(this,bO),this.computeCollisions=this.computeCollisions.bind(this),aO(this,bO,Yk(vO)),this.destroy=QD((()=>{const e=this.computeCollisions(),t=Hk((()=>this.manager.dragOperation.position.current));if(e!==vO){const e=oO(this,gO);if(aO(this,gO,t),e&&t.x==e.x&&t.y==e.y)return}else aO(this,gO,void 0);oO(this,bO).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){Hk((()=>{e?oO(this,bO).value=this.computeCollisions():aO(this,gO,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return vO;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=Hk((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?vO:(s.sort(mO),s)}get collisions(){return oO(this,bO).value}};gO=new WeakMap,bO=new WeakMap;var xO=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)}},SO=class extends xO{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function wO(e,t=!0){let r=!1;return UT(VT({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var CO,EO,RO,PO,AO,IO,MO,kO,DO,TO=class extends fO{constructor(e){super(e);let t=[];this.destroy=QD((()=>{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=wO({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;Hk((()=>{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()})))}))}))}},OO=(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))(OO||{}),LO=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(LO||{});MO=[XD],IO=[JD],AO=[JD],PO=[JD],RO=[JD],EO=[JD],CO=[JD];var qO=class{constructor(){eO(kO,5,this),iO(this,DO,eO(kO,8,this,"idle")),eO(kO,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}};kO=KT(null),DO=new WeakMap,tO(kO,4,"value",MO,qO,DO),tO(kO,2,"current",IO,qO),tO(kO,2,"idle",AO,qO),tO(kO,2,"initializing",PO,qO),tO(kO,2,"initialized",RO,qO),tO(kO,2,"dragging",EO,qO),tO(kO,2,"dropped",CO,qO),QT(kO,qO);var NO,jO,_O,zO,FO,HO,$O,WO,BO,VO=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 Hk((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=wO({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return Hk((()=>{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;zk((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=wO({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 Hk((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=wO({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 Hk((()=>{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=Hk((()=>{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=oD((()=>{"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()}))}};zO=[XD],_O=[XD],jO=[XD],NO=[XD];var UO=class{constructor(e,t){iO(this,HO,eO(FO,8,this)),eO(FO,11,this),iO(this,$O,eO(FO,12,this)),eO(FO,15,this),iO(this,WO,eO(FO,16,this)),eO(FO,19,this),iO(this,BO,eO(FO,20,this)),eO(FO,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)}};FO=KT(null),HO=new WeakMap,$O=new WeakMap,WO=new WeakMap,BO=new WeakMap,tO(FO,4,"manager",zO,UO,HO),tO(FO,4,"id",_O,UO,$O),tO(FO,4,"data",jO,UO,WO),tO(FO,4,"disabled",NO,UO,BO),QT(FO,UO);var GO,YO,KO,XO,JO,ZO,QO,eL,tL,rL,nL,oL,iL,aL,sL,lL,uL,cL,dL,pL,fL,hL,mL,gL,bL=class{constructor(){this.map=Yk(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=QD(...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}},vL=class extends(QO=UO,ZO=[XD],JO=[XD],XO=[XD],KO=[JD],YO=[JD],GO=[JD],QO){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=YT(r,["modifiers","type","sensors"]);super(a,t),eO(eL,5,this),iO(this,tL,eO(eL,8,this)),eO(eL,11,this),iO(this,rL,eO(eL,12,this)),eO(eL,15,this),iO(this,nL,eO(eL,16,this,this.isDragSource?"dragging":"idle")),eO(eL,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}};eL=KT(QO),tL=new WeakMap,rL=new WeakMap,nL=new WeakMap,tO(eL,4,"type",ZO,vL,tL),tO(eL,4,"modifiers",JO,vL,rL),tO(eL,4,"status",XO,vL,nL),tO(eL,2,"isDropping",KO,vL),tO(eL,2,"isDragging",YO,vL),tO(eL,2,"isDragSource",GO,vL),QT(eL,vL);var yL=class extends(cL=UO,uL=[XD],lL=[XD],sL=[XD],aL=[XD],iL=[XD],oL=[JD],cL){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(YT(r,["accept","collisionDetector","collisionPriority","type"]),t),eO(dL,5,this),iO(this,pL,eO(dL,8,this)),eO(dL,11,this),iO(this,fL,eO(dL,12,this)),eO(dL,15,this),iO(this,hL,eO(dL,16,this)),eO(dL,19,this),iO(this,mL,eO(dL,20,this)),eO(dL,23,this),iO(this,gL,eO(dL,24,this)),eO(dL,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}};dL=KT(cL),pL=new WeakMap,fL=new WeakMap,hL=new WeakMap,mL=new WeakMap,gL=new WeakMap,tO(dL,4,"accept",uL,yL,pL),tO(dL,4,"type",lL,yL,fL),tO(dL,4,"collisionDetector",sL,yL,hL),tO(dL,4,"collisionPriority",aL,yL,mL),tO(dL,4,"shape",iL,yL,gL),tO(dL,2,"isDropTarget",oL,yL),QT(dL,yL);var xL,SL=class extends dO{constructor(e,t){super(e,t),this.manager=e,this.options=t}},wL=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)}},CL=class{constructor(e){this.options=e,iO(this,xL)}set controller(e){aO(this,xL,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=oO(this,xL))||t.activate(e)}};xL=new WeakMap;var EL,RL,PL,AL,IL,ML,kL,DL,TL,OL,LL,qL,NL,jL,_L,zL,FL,HL,$L,WL=class extends dO{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},BL=class{constructor(e){this.draggables=new bL,this.droppables=new bL,this.plugins=new hO(e),this.sensors=new hO(e),this.modifiers=new hO(e)}register(e,t){if(e instanceof vL)return this.draggables.register(e.id,e);if(e instanceof yL)return this.droppables.register(e.id,e);if(e.prototype instanceof WL)return this.modifiers.register(e,t);if(e.prototype instanceof SL)return this.sensors.register(e,t);if(e.prototype instanceof dO)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof UO)return e instanceof vL?this.draggables.unregister(e.id,e):e instanceof yL?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof WL)return this.modifiers.unregister(e);if(e.prototype instanceof SL)return this.sensors.unregister(e);if(e.prototype instanceof dO)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()}};TL=[JD],DL=[XD],kL=[XD],ML=[XD],IL=[XD],AL=[XD],PL=[JD],RL=[JD],EL=[JD];var VL=class{constructor(e){eO(NL,5,this),iO(this,OL),iO(this,LL),iO(this,qL,new tT(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new qO,iO(this,jL,eO(NL,8,this,!1)),eO(NL,11,this),iO(this,_L,eO(NL,12,this,null)),eO(NL,15,this),iO(this,zL,eO(NL,16,this,null)),eO(NL,19,this),iO(this,FL,eO(NL,20,this,null)),eO(NL,23,this),iO(this,HL,eO(NL,24,this,[])),eO(NL,27,this),this.position=new PT({x:0,y:0}),iO(this,$L,{x:0,y:0}),aO(this,OL,e)}get shape(){const{current:e,initial:t,previous:r}=oO(this,qL);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?oO(this,qL).current=e:oO(this,qL).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=oO(this,OL).registry.draggables.get(t);return r&&aO(this,LL,r),null!=(e=null!=r?r:oO(this,LL))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=oO(this,OL).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(UT(VT({},this.snapshot()),{transform:r}));return aO(this,$L,r),r}snapshot(){return Hk((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:oO(this,$L),shape:this.shape?rT(this.shape):null,position:rT(this.position),status:rT(this.status),canceled:this.canceled})))}reset(){zk((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,oO(this,qL).reset(),this.position.reset({x:0,y:0}),aO(this,$L,{x:0,y:0}),this.modifiers=[]}))}};NL=KT(null),OL=new WeakMap,LL=new WeakMap,qL=new WeakMap,jL=new WeakMap,_L=new WeakMap,zL=new WeakMap,FL=new WeakMap,HL=new WeakMap,$L=new WeakMap,tO(NL,2,"shape",TL,VL),tO(NL,4,"canceled",DL,VL,jL),tO(NL,4,"activatorEvent",kL,VL,_L),tO(NL,4,"sourceIdentifier",ML,VL,zL),tO(NL,4,"targetIdentifier",IL,VL,FL),tO(NL,4,"modifiers",AL,VL,HL),tO(NL,2,"source",PL,VL),tO(NL,2,"target",RL,VL),tO(NL,2,"transform",EL,VL),QT(NL,VL);var UL={get rendering(){return Promise.resolve()}},GL=class{constructor(e){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{plugins:t=[],sensors:r=[],modifiers:n=[],renderer:o=UL}=null!=e?e:{},i=new SO(this),a=new BL(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new VO(this),this.dragOperation=new VL(this),this.collisionObserver=new yO(this),this.plugins=[TO,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=QD((()=>{var e,t,r;const n=Hk((()=>this.dragOperation.modifiers)),o=this.modifiers;n!==o&&n.forEach((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}=cO(e);return new t(this,r)})))?r:o}));this.destroy=()=>{l(),s()}}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}},YL=e=>{throw TypeError(e)},KL=(e,t,r)=>t.has(e)||YL("Cannot "+r),XL=(e,t,r)=>(KL(e,t,"read from private field"),t.get(e)),JL=(e,t,r)=>t.has(e)?YL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ZL=(e,t,r,n)=>(KL(e,t,"write to private field"),t.set(e,r),r),QL=(e,t,r)=>(KL(e,t,"access private method"),r);function eq(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function tq(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=(eq(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function rq(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 nq(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function oq(e){return"nodeType"in e}function iq(e){var t,r,n;return e?nq(e)?e:oq(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 aq(e){const{Document:t}=iq(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function sq(e){return!(!e||nq(e))&&(e instanceof iq(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function lq(e){return e instanceof iq(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function uq(e){return e?nq(e)?e.document:oq(e)?aq(e)?e:sq(e)||lq(e)?e.ownerDocument:document:document:document}function cq(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 dq(e,t=e.getBoundingClientRect(),r=0){var n;let o=t;const{ownerDocument:i}=e,a=null!=(n=i.defaultView)?n:window;let s=e.parentElement;for(;s&&s!==i.documentElement;){if(!cq(s)){const e=s.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),i=r*(e.bottom-e.top),a=r*(e.right-e.left);o={top:Math.max(o.top,e.top-t),right:Math.min(o.right,e.right+n),bottom:Math.min(o.bottom,e.bottom+i),left:Math.max(o.left,e.left-a),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top}s=s.parentElement}const l=a.innerWidth,u=a.innerHeight,c=r*u,d=r*l;return o={top:Math.max(o.top,0-c),right:Math.min(o.right,l+d),bottom:Math.min(o.bottom,u+c),left:Math.max(o.left,0-d),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top,o.width<0&&(o.width=0),o.height<0&&(o.height=0),o}function pq(e){return{x:e.clientX,y:e.clientY}}var fq="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function hq(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(...hq(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(...hq(o.document,t))}}catch(e){}return r}function mq(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function gq(e){return"value"in e}function bq(e){return"CANVAS"===e.tagName}function vq(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 vq(e,{x:t-o,y:r-i})}}return n}var yq=new WeakMap;var xq=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 Sq(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function wq(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 Cq,Eq=fq?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Rq=class extends Eq{constructor(e){super((t=>{XL(this,Cq)?e(t,this):ZL(this,Cq,!0)})),JL(this,Cq,!1)}};Cq=new WeakMap;var Pq,Aq,Iq,Mq,kq,Dq,Tq,Oq,Lq,qq,Nq,jq=Array.from({length:100},((e,t)=>t/100)),_q=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,JL(this,Lq),this.disconnect=()=>{var e,t,r;ZL(this,Tq,!0),null==(e=XL(this,Iq))||e.disconnect(),null==(t=XL(this,Mq))||t.disconnect(),XL(this,kq).disconnect(),null==(r=XL(this,Dq))||r.remove()},JL(this,Pq,!0),JL(this,Aq),JL(this,Iq),JL(this,Mq),JL(this,kq),JL(this,Dq),JL(this,Tq,!1),JL(this,Oq,wq((()=>{var e,t,r;const{element:n}=this;if(null==(e=XL(this,Mq))||e.disconnect(),XL(this,Tq)||!XL(this,Pq)||!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=dq(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,ZL(this,Mq,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:ET.intersectionRatio(r,dq(n)))&&XL(this,Oq).call(this)}),{threshold:jq,rootMargin:m,root:o})),XL(this,Mq).observe(n),QL(this,Lq,qq).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),ZL(this,Pq,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=dq(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)&&(ZL(this,Dq,document.createElement("div")),XL(this,Dq).style.background="rgba(0,0,0,0.15)",XL(this,Dq).style.position="fixed",XL(this,Dq).style.pointerEvents="none",o.body.appendChild(XL(this,Dq))),ZL(this,kq,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=XL(this,Pq);ZL(this,Pq,a),(s||l)&&(u&&!a?(null==(r=XL(this,Mq))||r.disconnect(),this.callback(null),null==(n=XL(this,Iq))||n.disconnect(),ZL(this,Iq,void 0),XL(this,Dq)&&(XL(this,Dq).style.visibility="hidden")):XL(this,Oq).call(this),a&&!XL(this,Iq)&&(ZL(this,Iq,new Rq(XL(this,Oq))),XL(this,Iq).observe(e)))}),{threshold:jq,root:o})),XL(this,Pq)&&!r.skipInitial&&this.callback(this.boundingClientRect),XL(this,kq).observe(e)}};Pq=new WeakMap,Aq=new WeakMap,Iq=new WeakMap,Mq=new WeakMap,kq=new WeakMap,Dq=new WeakMap,Tq=new WeakMap,Oq=new WeakMap,Lq=new WeakSet,qq=function(){XL(this,Tq)||(QL(this,Lq,Nq).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,XL(this,Aq))||(this.callback(this.boundingClientRect),ZL(this,Aq,this.boundingClientRect)))},Nq=function(){if(XL(this,Dq)){const{top:e,left:t,width:r,height:n}=dq(this.element);XL(this,Dq).style.overflow="hidden",XL(this,Dq).style.visibility="visible",XL(this,Dq).style.top=`${Math.floor(e)}px`,XL(this,Dq).style.left=`${Math.floor(t)}px`,XL(this,Dq).style.width=`${Math.floor(r)}px`,XL(this,Dq).style.height=`${Math.floor(n)}px`}};var zq,Fq,Hq,$q,Wq=new WeakMap,Bq=new WeakMap;function Vq(e,t){let r=Wq.get(e);if(!r){const t=new _q(e,(t=>{const r=Wq.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),Wq.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(Wq.delete(e),r.disconnect())}}var Uq=class{constructor(e,t,r){this.callback=t,JL(this,zq),JL(this,Fq,!1),JL(this,Hq),JL(this,$q,wq((e=>{if(!XL(this,Fq)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of XL(this,Hq))if(e.target.contains(t)){this.callback(XL(this,zq).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=Sq(e);for(;r;)t.add(r),r=Sq(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=Vq(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!Bq.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}),Bq.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=Bq.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),Bq.delete(n))}):()=>{}}(e,XL(this,$q));ZL(this,Hq,n),ZL(this,zq,new _q(e,t,r)),this.disconnect=()=>{XL(this,Fq)||(ZL(this,Fq,!0),o(),i(),XL(this,zq).disconnect())}}};function Gq(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function Yq(e){try{Gq(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function Kq(e){return!(!fq||!e)&&e===uq(e).scrollingElement}function Xq(e){const t=iq(e),r=Kq(e)?function(e){const{documentElement:t}=uq(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):rq(e),n=Kq(e)?{height:t.innerHeight,width:t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-n.width,y:e.scrollHeight-n.height}};return{rect:r,position:o,isTop:o.current.y<=0,isLeft:o.current.x<=0,isBottom:o.current.y>=o.max.y,isRight:o.current.x>=o.max.x}}function Jq(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=Xq(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}}zq=new WeakMap,Fq=new WeakMap,Hq=new WeakMap,$q=new WeakMap;var Zq=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)))}},Qq=new Zq((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),eN=new Zq((e=>setTimeout(e,50))),tN=new Map,rN=tN.clear.bind(tN);function nN(e,t=!1){if(!t)return oN(e);let r=tN.get(e);return r||(r=oN(e),tN.set(e,r),eN.schedule(rN),r)}function oN(e){return iq(e).getComputedStyle(e)}var iN={excludeElement:!0};function aN(e,t=iN){const{limit:r,excludeElement:n}=t,o=new Set;return e?function t(i){if(null!=r&&o.size>=r)return o;if(!i)return o;if(aq(i)&&null!=i.scrollingElement&&!o.has(i.scrollingElement))return o.add(i.scrollingElement),o;if(!sq(i))return lq(i)?t(i.parentElement):o;if(o.has(i))return o;const a=nN(i,!0);if(n&&i===e||function(e,t=nN(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(i,a)&&o.add(i),function(e,t=nN(e,!0)){return"fixed"===t.position||"sticky"===t.position}(i,a)){const{scrollingElement:e}=i.ownerDocument;return e&&o.add(e),o}return t(i.parentNode)}(e):o}function sN(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=Sq(e);for(;n;){if(n===t)return r;const e=rq(n),{x:o,y:i}=lN(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=Sq(n)}return r}function lN(e,t=rq(e)){const r=Math.round(t.width),n=Math.round(t.height);if(sq(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=nN(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function uN(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 cN(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=uN(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 dN=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(dN||{}),pN={x:.2,y:.2},fN={x:10,y:10};function hN(e,t,r,n=25,o=pN,i=fN){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=Xq(e),f=sN(e),h=cN(nN(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new ET(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 mN(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!sq(e))return e.scrollIntoView();var n=function(e){const[t]=aN(e,{limit:1});return null!=t?t:null}(e);if(!sq(n))return;const o=nN(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 gN({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function bN(e,t=nN(e).translate,r=!0){if(r){const t=tq(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=uN(e);if(t)return t}}}if(t){const e=uN(t);if(e)return e}return{x:0,y:0,z:0}}var vN=new Zq((e=>setTimeout(e,0))),yN=new Map,xN=yN.clear.bind(yN);function SN(e,t){const r=function(e){const t=e.ownerDocument;let r=yN.get(t);if(r)return r;r=t.getAnimations(),yN.set(t,r),vN.schedule(xN);const n=r.filter((t=>eq(t.effect)&&t.effect.target===e));return yN.set(e,n),r}(e).filter((e=>{var r,n;if(eq(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 wN=class extends ET{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=sN(e),ignoreTransforms:s,getBoundingClientRect:l=rq}=t,u=SN(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||mq())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=nN(e),b=cN(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=eq(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=cN({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 CN(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 EN=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(CN(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(CN(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(CN(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function RN(e){return!!e&&(e instanceof iq(e).Element||oq(e)&&e.nodeType===Node.ELEMENT_NODE)}function PN(e){if(!e)return!1;const{KeyboardEvent:t}=iq(e.target);return e instanceof t}var AN={};function IN(e){const t=null==AN[e]?0:AN[e]+1;return AN[e]=t,`${e}-${t}`}var MN=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/CT.distance(t.shape.center,r),type:LO.PointerIntersection,priority:OO.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=CT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:LO.ShapeIntersection,priority:OO.Normal}}return null})(e)},kN=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?ET.from(n.current.boundingRectangle).corners:void 0,a=ET.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+CT.distance(CT.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:LO.Collision,priority:OO.Normal}},DN=Object.create,TN=Object.defineProperty,ON=Object.defineProperties,LN=Object.getOwnPropertyDescriptor,qN=Object.getOwnPropertyDescriptors,NN=Object.getOwnPropertySymbols,jN=Object.prototype.hasOwnProperty,_N=Object.prototype.propertyIsEnumerable,zN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),FN=e=>{throw TypeError(e)},HN=(e,t,r)=>t in e?TN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$N=(e,t)=>{for(var r in t||(t={}))jN.call(t,r)&&HN(e,r,t[r]);if(NN)for(var r of NN(t))_N.call(t,r)&&HN(e,r,t[r]);return e},WN=(e,t)=>ON(e,qN(t)),BN=(e,t)=>TN(e,"name",{value:t,configurable:!0}),VN=(e,t)=>{var r={};for(var n in e)jN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&NN)for(var n of NN(e))t.indexOf(n)<0&&_N.call(e,n)&&(r[n]=e[n]);return r},UN=e=>{var t;return[,,,DN(null!=(t=null==e?void 0:e[zN("metadata")])?t:null)]},GN=["class","method","getter","setter","accessor","field","value","get","set"],YN=e=>void 0!==e&&"function"!=typeof e?FN("Function expected"):e,KN=(e,t,r,n,o)=>({kind:GN[e],name:t,metadata:n,addInitializer:e=>r._?FN("Already initialized"):o.push(YN(e||null))}),XN=(e,t)=>HN(t,zN("metadata"),e[3]),JN=(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},ZN=(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=GN[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)&&LN(d<4?o:{get[r](){return tj(this,i)},set[r](e){return nj(this,i,e)}},r));d?f&&d<4&&BN(i,(d>2?"set ":d>1?"get ":"")+r):BN(o,r);for(var y=n.length-1;y>=0;y--)u=KN(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>ej(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?tj:oj)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>nj(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?YN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?FN("Object expected"):(YN(a=s.get)&&(v.get=a),YN(a=s.set)&&(v.set=a),YN(a=s.init)&&g.unshift(a));return d||XN(e,o),v&&TN(o,r,v),f?4^d?i:v:o},QN=(e,t,r)=>t.has(e)||FN("Cannot "+r),ej=(e,t)=>Object(t)!==t?FN('Cannot use the "in" operator on this value'):e.has(t),tj=(e,t,r)=>(QN(e,t,"read from private field"),r?r.call(e):t.get(e)),rj=(e,t,r)=>t.has(e)?FN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),nj=(e,t,r,n)=>(QN(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),oj=(e,t,r)=>(QN(e,t,"access private method"),r),ij="button",aj="draggable",sj="dnd-kit-description",lj="dnd-kit-announcement",uj={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."},cj={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 dj(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var pj=["dragover","dragmove"],fj=class extends dO{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=sj,announcement:o=lj}={},announcements:i=cj,screenReaderInstructions:a=uj,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:IN(n),u=r?`${o}-${r}`:IN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>Qq.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,pj.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),dj(r)&&!mq()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",ij))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",aj))),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&&Qq.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var hj="data-dnd-",mj=`${hj}dropping`,gj="--dnd-",bj=`${hj}dragging`,vj=`${hj}placeholder`,yj=[bj,vj,"popover","aria-pressed","aria-grabbing"],xj=["view-transition-name"],Sj=`\n :root [${bj}] {\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(${gj}top, 0px) !important;\n left: var(${gj}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${gj}width, auto);\n max-width: var(${gj}width, auto);\n height: var(${gj}height, auto);\n max-height: var(${gj}height, auto);\n transition: var(${gj}transition) !important;\n }\n\n :root [${vj}] {\n transition: none;\n }\n\n :root [${vj}='hidden'] {\n visibility: hidden;\n }\n\n [${bj}] * {\n pointer-events: none !important;\n }\n\n [${bj}]:not([${mj}]) {\n translate: var(${gj}translate) !important;\n }\n\n [${bj}][style*='${gj}scale'] {\n scale: var(${gj}scale) !important;\n transform-origin: var(${gj}transform-origin) !important;\n }\n\n @layer {\n :where([${bj}][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 [${bj}]::backdrop, [${hj}overlay]:not([${bj}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function wj(e,t="hidden"){return Hk((()=>{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=`${hj}${IN("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(gq(e)&&gq(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),bq(e)&&bq(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),yq.set(a,i),r.push((()=>{yq.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(vj,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function Cj(e,t){return e===t||Sq(e)===Sq(t)}function Ej(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&RN(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>Yq(t)))}function Rj(e){return"TR"===e.tagName}var Pj,Aj,Ij,Mj,kj,Dj,Tj,Oj=new Map,Lj=class extends(Aj=dO,Pj=[XD],Aj){constructor(e,t){super(e,t),rj(this,kj),rj(this,Mj,JN(Ij,8,this)),JN(Ij,11,this),this.state={initial:{},current:{}},this.registerEffect(oj(this,kj,Tj)),this.registerEffect(oj(this,kj,Dj))}destroy(){super.destroy();for(const[e,t]of Oj.entries())t.instances.has(this)&&(t.instances.delete(this),0===t.instances.size&&(t.cleanup(),Oj.delete(e)))}};Ij=UN(Aj),Mj=new WeakMap,kj=new WeakSet,Dj=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=sN(f),m=sN(c),g=!Cj(c,f),b=new wN(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let x,S,{width:w,height:C,top:E,left:R}=b;g&&(w/=v,C/=y);const P=new EN(f),{transition:A,translate:I,boxSizing:M,paddingBlockStart:k,paddingBlockEnd:D,paddingInlineStart:T,paddingInlineEnd:O,borderInlineStartWidth:L,borderInlineEndWidth:q,borderBlockStartWidth:N,borderBlockEndWidth:j}=nN(c),_="clone"===d,z="content-box"===M,F=z?parseInt(T)+parseInt(O)+parseInt(L)+parseInt(q):0,H=z?parseInt(k)+parseInt(D)+parseInt(N)+parseInt(j):0,$="move"===d||this.overlay?null:wj(l,_?"clone":"hidden"),W=Hk((()=>PN(o.dragOperation.activatorEvent)));if("none"!==I){const e=uN(I);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=Hk((()=>s.current));p.transformOrigin={x:(e.x-R*h.scaleX-h.x)/(w*h.scaleX),y:(e.y-E*h.scaleY-h.y)/(C*h.scaleY)}}const{transformOrigin:B}=p,V=E*h.scaleY+h.y,U=R*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:U,y:V},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=B;p.coordinates.x+=(w*e-w)*r,p.coordinates.y+=(C*t-C)*n}p.dimensions||(p.dimensions={width:w,height:C}),p.frameTransform||(p.frameTransform=h);const G=p.coordinates.x-U,Y=p.coordinates.y-V,K=(p.dimensions.width*p.frameTransform.scaleX-w*h.scaleX)*B.x,X=(p.dimensions.height*p.frameTransform.scaleY-C*h.scaleY)*B.y,J=G/h.scaleX+K,Z=Y/h.scaleY+X,Q={left:R+J,top:E+Z};f.setAttribute(bj,"true");const ee=Hk((()=>a.transform)),te=null!=(t=p.translate)?t:{x:0,y:0},re=`${ee.x*h.scaleX+te.x}px ${ee.y*h.scaleY+te.y}px 0`,ne=A?`${A}, translate 0ms linear`:"";if(P.set({width:w-F,height:C-H,top:Q.top,left:Q.left,translate:re,transition:ne,scale:g?`${v} ${y}`:"","transform-origin":`${100*B.x}% ${100*B.y}%`},gj),$&&(c.insertAdjacentElement("afterend",$),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}Gq(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),Yq(f),f.addEventListener("beforetoggle",Ej));const oe=new ResizeObserver((()=>{if(!$)return;const e=new wN($,{frameTransform:h,ignoreTransforms:!0}),t=null!=B?B:{x:1,y:1},r=(w-e.width)*t.x+J,n=(C-e.height)*t.y+Z;if(P.set({width:e.width-F,height:e.height-H,top:E+n,left:R+r},gj),null==x||x.takeRecords(),Rj(c)&&Rj($)){const e=Array.from(c.cells),t=Array.from($.cells);for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.offsetWidth}px`}}a.shape=new wN(f)})),ie=new wN(f);Hk((()=>a.shape=ie));const ae=iq(f),se=e=>{this.manager.actions.stop({event:e})};W&&ae.addEventListener("resize",se),"idle"===Hk((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),$&&(oe.observe($),x=new MutationObserver((e=>{let t=!1;for(const r of e){if(r.target!==c){t=!0;continue}if("attributes"!==r.type)continue;const e=r.attributeName;if(e.startsWith("aria-")||yj.includes(e))continue;const n=c.getAttribute(e);if("style"===e){if(CN(c)&&CN($)){const e=c.style;for(const t of Array.from($.style))""===e.getPropertyValue(t)&&$.style.removeProperty(t);for(const t of Array.from(e)){if(xj.includes(t)||t.startsWith(gj))continue;const r=e.getPropertyValue(t);$.style.setProperty(t,r)}}}else null!==n?$.setAttribute(e,n):$.removeAttribute(e)}t&&_&&($.innerHTML=c.innerHTML)})),x.observe(c,{attributes:!0,subtree:!0,childList:!0}),S=new MutationObserver((e=>{for(const t of e)if(0!==t.addedNodes.length)for(const e of Array.from(t.addedNodes)){if(e.contains(c)&&c.nextElementSibling!==$)return c.insertAdjacentElement("afterend",$),void Yq(f);if(e.contains($)&&$.previousElementSibling!==c)return $.insertAdjacentElement("beforebegin",c),void Yq(f)}})),S.observe(c.ownerDocument.body,{childList:!0,subtree:!0}));const le=null==(r=o.dragOperation.source)?void 0:r.id,ue=()=>{var e;if(!W||null==le)return;const t=o.registry.draggables.get(le),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;sq(r)&&r.focus()},ce=()=>{null==x||x.disconnect(),null==S||S.disconnect(),oe.disconnect(),ae.removeEventListener("resize",se),Gq(f)&&(f.removeEventListener("beforetoggle",Ej),f.removeAttribute("popover")),f.removeAttribute(bj),P.reset(),l.status="idle";const e=null!=n.current.translate;$&&(e||$.parentElement!==f.parentElement)&&f.isConnected&&$.replaceWith(f),null==$||$.remove()},de=QD((()=>{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=Hk((()=>a.modifiers)),l=Hk((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=W?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(P.set({transition:`${A}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},gj),null==x||x.takeRecords(),l&&l!==ie&&i&&!s.length){const e=CT.delta(o,i);a.shape=ET.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new wN(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";let e=n.current.translate;const t=null!=e;if(e||c===f||(e={x:0,y:0}),!e)return void ce();const r=()=>{var r,n;{Yq(f);const[,o]=null!=(r=tq(f,(e=>"translate"in e)))?r:[];null==o||o.pause();const i=null!=$?$:c,a={frameTransform:Cj(f,i)?null:void 0},s=new wN(f,a),u=null!=(n=uN(nN(f).translate))?n:e,d=new wN(i,a),p=ET.delta(s,d,l.alignment),h={x:u.x-p.x,y:u.y-p.y},m=Math.round(s.intrinsicHeight)!==Math.round(d.intrinsicHeight)?{minHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`],maxHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`]}:{},g=Math.round(s.intrinsicWidth)!==Math.round(d.intrinsicWidth)?{minWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`],maxWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`]}:{};P.set({transition:A},gj),f.setAttribute(mj,""),null==x||x.takeRecords(),gN({element:f,keyframes:WN($N($N({},m),g),{translate:[`${u.x}px ${u.y}px 0`,`${h.x}px ${h.y}px 0`]}),options:{duration:t||f!==c?250:0,easing:"ease"}}).then((()=>{f.removeAttribute(mj),null==o||o.finish(),ce(),requestAnimationFrame(ue)}))}};o.renderer.rendering.then(r)}}));return()=>{ce(),de()}},Tj=function(){var e,t,r;const{status:n,source:o,target:i}=this.manager.dragOperation,{nonce:a}=null!=(e=this.options)?e:{};if(n.initializing){const e=uq(null!=(t=null==o?void 0:o.element)?t:null),n=uq(null!=(r=null==i?void 0:i.element)?r:null),s=new Set([e,n]);for(const e of s){let t=Oj.get(e);if(!t){const r=document.createElement("style");r.textContent=Sj,a&&r.setAttribute("nonce",a),e.head.prepend(r);const n=new MutationObserver((t=>{for(const n of t)if("childList"===n.type){const t=Array.from(n.removedNodes);t.length>0&&t.includes(r)&&e.head.prepend(r)}}));n.observe(e.head,{childList:!0}),t={cleanup:()=>{n.disconnect(),r.remove()},instances:new Set},Oj.set(e,t)}t.instances.add(this)}}},ZN(Ij,4,"overlay",Pj,Lj,Mj),XN(Ij,Lj),Lj.configure=uO(Lj);var qj,Nj,jj,_j,zj,Fj,Hj,$j=Lj,Wj=!0;jj=[XD],_j=dN.Forward,qj=[XD],Nj=dN.Reverse;var Bj=class{constructor(){rj(this,Fj,JN(zj,8,this,Wj)),JN(zj,11,this),rj(this,Hj,JN(zj,12,this,Wj)),JN(zj,15,this)}isLocked(e){return e!==dN.Idle&&(null==e?this[dN.Forward]===Wj&&this[dN.Reverse]===Wj:this[e]===Wj)}unlock(e){e!==dN.Idle&&(this[e]=false)}};zj=UN(null),Fj=new WeakMap,Hj=new WeakMap,ZN(zj,4,_j,jj,Bj,Fj),ZN(zj,4,Nj,qj,Bj,Hj),XN(zj,Bj);var Vj,Uj,Gj,Yj,Kj,Xj,Jj=[dN.Forward,dN.Reverse],Zj=class{constructor(){this.x=new Bj,this.y=new Bj}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Qj=class extends dO{constructor(e){super(e);const t=Yk(new Zj);let r=null;this.signal=t,oD((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new Zj);const{delta:o}=e.dragOperation.position;if(r){const e={x:e_(o.x,r.x),y:e_(o.y,r.y)},n=t.peek();zk((()=>{for(const t of OT)for(const r of Jj)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function e_(e,t){return Math.sign(e-t)}var t_=class extends(Uj=fO,Vj=[XD],Uj){constructor(e){super(e),rj(this,Yj,JN(Gj,8,this,!1)),JN(Gj,11,this),rj(this,Kj),rj(this,Xj,(()=>{if(!tj(this,Kj))return;const{element:e,by:t}=tj(this,Kj);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 nj(this,Kj,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:r_(n.x),y:r_(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=Jq(e,n);if(r.x||r.y){const{speed:r,direction:s}=hN(e,o,i);if(a)for(const e of OT)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=tj(this,Kj))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return nj(this,Kj,{element:e,by:{x:a,y:l}}),Qq.schedule(tj(this,Xj)),!0}}}}}return nj(this,Kj,void 0),!1};let t=null,r=null;const n=YD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=vq(uq(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=YD((()=>{const t=n.value,{documentElement:o}=uq(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=aN(n,{excludeElement:!1});return r=e,e}}if(t){const e=aN(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),KD);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new Qj(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&PN(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function r_(e){return e>0?dN.Forward:e<0?dN.Reverse:dN.Idle}Gj=UN(Uj),Yj=new WeakMap,Kj=new WeakMap,Xj=new WeakMap,ZN(Gj,4,"autoScrolling",Vj,t_,Yj),XN(Gj,t_);var n_,o_=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()})),i_=class extends dO{constructor(e,t){super(e);const r=e.registry.plugins.get(t_);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=oD((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>o_.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},a_={capture:!0,passive:!0},s_=class extends fO{constructor(e){super(e),rj(this,n_),this.handleScroll=()=>{null==tj(this,n_)&&nj(this,n_,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),nj(this,n_,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=oD((()=>{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,a_),()=>{o.removeEventListener("scroll",this.handleScroll,a_)}}}))}};n_=new WeakMap;function l_(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var u_,c_=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}}),d_=class extends SL{constructor(e,t){super(e),this.manager=e,this.options=t,rj(this,u_,[]),this.listeners=new xq,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!RN(e.target))return;if(t.disabled)return;const{keyboardCodes:n=c_.keyboardCodes,preventActivation:o=c_.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=oD((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{PN(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(),mN(n);const{center:o}=new wN(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=uq(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];tj(this,u_).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=c_.keyboardCodes}=null!=r?r:{};if(h_(e,[...n.end,...n.cancel])){e.preventDefault();const t=h_(e,n.cancel);this.handleEnd(e,t)}else h_(e,n.up)?this.handleMove("up",e):h_(e,n.down)&&this.handleMove("down",e),h_(e,n.left)?this.handleMove("left",e):h_(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:c_.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(i_);!1===(null==e?void 0:e.disabled)&&(e.disable(),tj(this,u_).push((()=>{e.enable()})))}cleanup(){tj(this,u_).forEach((e=>e())),nj(this,u_,[])}destroy(){this.cleanup(),this.listeners.clear()}};u_=new WeakMap,d_.configure=uO(d_),d_.defaults=c_;var p_,f_=d_;function h_(e,t){return t.includes(e.code)}var m_,g_;p_=new WeakMap;m_=new WeakMap,g_=new WeakMap;var b_=class{};b_.Delay=class extends CL{constructor(){super(...arguments),rj(this,m_),rj(this,g_)}onEvent(e){switch(e.type){case"pointerdown":nj(this,g_,pq(e)),nj(this,m_,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!tj(this,g_))return;const{x:t,y:r}=pq(e);AT({x:t-tj(this,g_).x,y:r-tj(this,g_).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){tj(this,m_)&&(clearTimeout(tj(this,m_)),nj(this,g_,void 0),nj(this,m_,void 0))}},b_.Distance=class extends CL{constructor(){super(...arguments),rj(this,p_)}onEvent(e){switch(e.type){case"pointerdown":nj(this,p_,pq(e));break;case"pointermove":if(!tj(this,p_))return;const{x:t,y:r}=pq(e),n={x:t-tj(this,p_).x,y:r-tj(this,p_).y},{tolerance:o}=this.options;if(o&&AT(n,o))return void this.abort();AT(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){nj(this,p_,void 0)}};var v_,y_=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!RN(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new b_.Delay({value:250,tolerance:5})]:function(e){if(!RN(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 b_.Delay({value:200,tolerance:0})]:[new b_.Delay({value:200,tolerance:10}),new b_.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!RN(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 ')))))}}),x_=class extends SL{constructor(e,t){super(e),this.manager=e,this.options=t,rj(this,v_,new Set),this.listeners=new xq,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=y_.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=oD((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=iq(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&&(R_(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||!RN(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=y_.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=sq(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=sN(t.element),{x:s,y:l}=pq(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 wL(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=hq(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:i?this.handleCancel:w_,options:{capture:!0}}]);tj(this,v_).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=pq(e),n=sN(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,Qq.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=uq(t.target);o.body.setPointerCapture(t.pointerId);const i=RN(t.target)?[t.target,o.body]:o.body,a=this.listeners.bind(i,[{type:"touchmove",listener:w_,options:{passive:!1}},{type:"click",listener:w_},{type:"contextmenu",listener:w_},{type:"keydown",listener:this.handleKeyDown}]);tj(this,v_).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},tj(this,v_).forEach((e=>e())),tj(this,v_).clear()}destroy(){this.cleanup(),this.listeners.clear()}};v_=new WeakMap,x_.configure=uO(x_),x_.defaults=y_;var S_=x_;function w_(e){e.preventDefault()}function C_(){}var E_=new WeakSet;function R_(e){e&&!E_.has(e)&&(e.addEventListener("touchmove",C_,{capture:!1,passive:!1}),E_.add(e))}var P_,A_,I_,M_,k_,D_,T_,O_,L_,q_,N_,j_,__,z_,F_,H_,$_,W_,B_={modifiers:[],plugins:[fj,i_,class extends dO{constructor(e,t){super(e,t),this.manager=e;const r=YD((()=>{var e;return uq(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=oD((()=>{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()}}))}},$j,class extends dO{constructor(e,t){super(e,t),this.manager=e,this.destroy=oD((()=>{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),l_(),document.addEventListener("selectionchange",l_,{capture:!0}),()=>{document.removeEventListener("selectionchange",l_,{capture:!0}),e.remove()}}}))}}],sensors:[S_,f_]},V_=class extends GL{constructor(e={}){const{plugins:t=B_.plugins,sensors:r=B_.sensors,modifiers:n=[]}=e;super(WN($N({},e),{plugins:[s_,t_,...t],sensors:r,modifiers:n}))}},U_=class extends(M_=vL,I_=[XD],A_=[XD],P_=[XD],M_){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=VN(r,["element","effects","handle","feedback"]);super($N({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(cO))?t:[...r.sensors]).map((e=>{const t=e instanceof SL?e:r.registry.register(e.plugin),n=e instanceof SL?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),rj(this,D_,JN(k_,8,this)),JN(k_,11,this),rj(this,T_,JN(k_,12,this)),JN(k_,15,this),rj(this,O_,JN(k_,16,this)),JN(k_,19,this),this.element=n,this.handle=i,this.feedback=a}};k_=UN(M_),D_=new WeakMap,T_=new WeakMap,O_=new WeakMap,ZN(k_,4,"handle",I_,U_,D_),ZN(k_,4,"element",A_,U_,T_),ZN(k_,4,"feedback",P_,U_,O_),XN(k_,U_);var G_=class extends(N_=yL,q_=[XD],L_=[XD],N_){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=VN(r,["element","effects"]);const{collisionDetector:a=MN}=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 wN(r),o=Hk((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=Yk(!1);super(WN($N({},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 Uq(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),rj(this,$_),rj(this,__,JN(j_,8,this)),JN(j_,11,this),rj(this,W_,JN(j_,12,this)),JN(j_,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){nj(this,$_,e,H_)}get element(){var e;return null!=(e=this.proxy)?e:tj(this,$_,F_)}};function Y_(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}j_=UN(N_),__=new WeakMap,$_=new WeakSet,W_=new WeakMap,z_=ZN(j_,20,"#element",q_,$_,__),F_=z_.get,H_=z_.set,ZN(j_,4,"proxy",L_,G_,W_),XN(j_,G_);var K_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?N:T;function X_(){const e=I(0)[1];return q((()=>{e((e=>e+1))}),[e])}function J_(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=X_();return K_((()=>oD((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?V(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(A((()=>YD((()=>n.current()))),t),r)}function Z_(e,t){const r=M(new Map),n=X_();return K_((()=>{if(e)return oD((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=Hk((()=>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?V(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 Q_(e,t){e()}function ez(e){const t=M(e);return K_((()=>{t.current=e}),[e]),t}function tz(e,t,r=T,n=Object.is){const o=M(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function rz(e,t){const r=M(Y_(e));K_((()=>{const n=Y_(e);n!==r.current&&(r.current=n,t(n))}))}var nz=Object.getOwnPropertySymbols,oz=Object.prototype.hasOwnProperty,iz=Object.prototype.propertyIsEnumerable,az=new V_,sz=k(az),lz=_(j((({children:e},t)=>{const[r,n]=I(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}))),F((()=>{e(),n((e=>e+1))}))}})),[]);return K_((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),H(t,(()=>a)),null}))),uz=[void 0,KD];function cz(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)oz.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&nz)for(var n of nz(e))t.indexOf(n)<0&&iz.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=ez(o),m=ez(i),g=ez(s),b=ez(a),v=ez(l),y=ez(n),x=function(e){const t=M(null);t.current||(t.current=e());return z((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new V_(u)}));return T((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=x;x.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=h.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=m.current)?void 0:t.call(m,e,x)})),r.addEventListener("dragover",(e=>{const r=g.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragmove",(e=>{const r=b.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragend",(e=>{const r=v.current;r&&t((()=>r(e,x)))})),r.addEventListener("collision",(e=>{var t;return null==(t=y.current)?void 0:t.call(y,e,x)}))];return()=>n.forEach((e=>e()))}),[x]),tz(d,(()=>x&&(x.plugins=null!=d?d:B_.plugins)),...uz),tz(f,(()=>x&&(x.sensors=null!=f?f:B_.sensors)),...uz),tz(p,(()=>x&&(x.modifiers=null!=p?p:B_.modifiers)),...uz),or.jsxs(sz.Provider,{value:x,children:[or.jsx(lz,{ref:c,children:r}),r]})}function dz(){return L(sz)}function pz({children:e,className:t,style:r,tag:n,disabled:o}){var i;const a=M(null),s=dz(),l=null!=(i=J_((()=>null==s?void 0:s.dragOperation.source),[s]).value)?i:null,u="function"==typeof o?o(l):o;T((()=>{if(!a.current||!s||u)return;const e=s.plugins.find((e=>e instanceof $j));return e?(e.overlay=a.current,()=>{e.overlay=void 0}):void 0}),[s,u]);const c=A((()=>{if(!s)return null;const e=new Proxy(s.registry,{get:(e,t)=>"register"===t||"unregister"===t?fz:e[t]});return new Proxy(s,{get:(t,r)=>"registry"===r?e:t[r]})}),[s]);return or.jsx(sz.Provider,{value:c,children:w(n||"div",{ref:a,className:t,style:r,"data-dnd-overlay":!0},function(){if(!l||u)return null;if("function"==typeof e)return or.jsx(hz,{source:l,children:e});return e}())})}function fz(){return()=>{}}function hz({children:e,source:t}){return e(Z_(t))}var mz,gz,bz,vz,yz,xz=Object.create,Sz=Object.defineProperty,wz=Object.getOwnPropertyDescriptor,Cz=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ez=e=>{throw TypeError(e)},Rz=["class","method","getter","setter","accessor","field","value","get","set"],Pz=e=>void 0!==e&&"function"!=typeof e?Ez("Function expected"):e,Az=(e,t,r,n,o)=>({kind:Rz[e],name:t,metadata:n,addInitializer:e=>r._?Ez("Already initialized"):o.push(Pz(e||null))}),Iz=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=Rz[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,wz(o,r)),h=n.length-1;h>=0;h--)(l=Az(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,Pz(a)&&(f[d]=a);return f&&Sz(o,r,f),o},Mz=(e,t,r)=>t.has(e)||Ez("Cannot "+r),kz=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)}},Dz=class extends(bz=tT,gz=[JD],mz=[JD],bz){constructor(e){var t,r,n;super(kz.from(e),((e,t)=>kz.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)})(yz,5,this),t=this,n=0,(r=vz).has(t)?Ez("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 kz.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=kz.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(Mz(a=this,s=vz,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);zk((()=>{((e,t,r)=>{Mz(e,t,"write to private field"),t.set(e,r)})(this,vz,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(kz.from(e)),this.velocity={x:0,y:0}}};yz=(e=>{var t;return[,,,xz(null!=(t=null==e?void 0:e[Cz("metadata")])?t:null)]})(bz),vz=new WeakMap,Iz(yz,2,"delta",gz,Dz),Iz(yz,2,"direction",mz,Dz),((e,t)=>{((e,t,r)=>{t in e?Sz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,Cz("metadata"),e[3])})(yz,Dz);var Tz=(e=>(e.Horizontal="x",e.Vertical="y",e))(Tz||{});function Oz(e){const t=dz();T((()=>{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(Tz);const Lz=()=>{const[e,t]=I(!1);return Oz({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?or.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},qz=()=>{const{flags:e}=uM(iM,(e=>e.env)),t=uM(iM,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},Nz=(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}),jz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),_z=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),zz=e=>e.atTop?2:1,Fz=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],Hz=e=>e?.setAttribute("tabIndex","0"),$z=e=>e?.setAttribute("tabIndex","-1"),Wz=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach($z)},Bz=e=>{e?.focus(),Hz(e)},Vz=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${lE}`);Bz(t)}),0)},Uz=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{Wz(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 sE.Down:u<s&&u++;break;case sE.Up:u>a&&u--;break;case sE.Right:if(i)break;[u,c]="rtl"===n?jz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):_z({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case sE.Left:if(i)break;[u,c]="rtl"===n?_z({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):jz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case sE.Home:(II(e)||i)&&(u=a),i||(c=0);break;case sE.End:(II(e)||i)&&(u=s),i||(c=l);break;case sE.PageDown:u=Math.min(s,u+10);break;case sE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=Fz(t,a);return Bz(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}},Gz=(e,t,r,n)=>{Wz(t),r(e),n.enabled&&!n.active?n.focus?.():Bz(Fz(t,e))},Yz=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${oE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${GA.First}`),r=e.querySelector(`.${GA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},Kz=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),Xz=pc(Hh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...lI,...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}}))),Jz=pc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:iI,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),Zz=parseInt(iI,10)/2,Qz=pc("div")({position:"absolute",bottom:-Zz,left:`calc(50% - ${Zz}px)`}),eF={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},tF=pc(rp)({height:"100%"}),rF=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?{...eF,whiteSpace:"nowrap",display:r?"block":void 0}:{...eF,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),nF=pc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),oF="cell-text",iF=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=uM(iM,(e=>e.baseProps));return o?or.jsx(rF,{"data-testid":oF,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):or.jsx(rF,{"data-testid":oF,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},aF=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,{changeSortOrder:s,interactions:l,embed:u,styleService:c,layout:d,direction:p}=uM(iM,(e=>e.baseProps)),f=sR(cR),h=sR(uR),m=uM(iM,(e=>e.columnWidths[t.pageColIdx])),g=uM(iM,(e=>e.baseProps.model)),b=M(null),v=M(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=VC({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:aI});let o=!1,i=!1,a=!1;const s=t.isLocked,l=t.isActivelySorted,u=r-25,c=s?20:0,d=l?20:0;let p=n(t.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({styleService:c,column:t,columnWidth:m}),{StartIcon:x,EndIcon:S,LockIcon:w}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?or.jsx(WM,{height:iI,"data-testid":"head-cell-sort-ascending-icon"}):or.jsx(UM,{height:iI,"data-testid":"head-cell-sort-descending-icon"}),a=r?or.jsx(Jz,{align:t,dir:o,children:i}):void 0,s=n?or.jsx(SI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:or.jsx(Kz,{height:iI,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,y,p);return or.jsxs(xI,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:fI(t,i,p),children:[w,or.jsxs(yI,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:p,isPagination:i,children:[x,or.jsx(iF,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),S]}),r?or.jsxs(or.Fragment,{children:[or.jsx(ak,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:f,anchorRef:b,menuAvailabilityFlags:{[nk.Sorting]:!0,[nk.Searching]:!0,[nk.Selections]:!0,[nk.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:l,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),s(t,r))},searchRelatedArgs:{embed:u,listboxRef:v},selectionRelatedArgs:{app:h,qStateName:d.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:Vz},shouldShowMenuIcon:y.shouldShowMenuIcon,model:g,direction:p,isPagination:i,isAccessibleHeader:!0}),or.jsx(vI,{ref:v,direction:p,isPagination:i}),or.jsx(vI,{ref:b,direction:p})]}):null]})},sF=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),lF=(e,t)=>e.isCyclic&&t,uF=({column:e})=>{const{direction:t,model:r,styleService:n}=uM(iM,(e=>e.baseProps)),o=S.useRef(null),[i,a]=S.useState(!1),s=gM({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return or.jsxs(or.Fragment,{children:[or.jsx(CI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:or.jsx(sF,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),or.jsx(jM,{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:GM,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},cF=e=>e.isLocked,dF=({column:e})=>{const t=sR(uR),r=uM(iM,(e=>e.baseProps.layout.qStateName)),n=uM(iM,(e=>e.baseProps.styleService));return or.jsx(CI,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=zM(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:or.jsx(Kz,{height:16,"data-testid":"head-cell-lock-icon"})})},pF=({column:e,open:t,setOpen:r,isPagination:n})=>{const{interactions:o,layout:i,direction:a,changeSortOrder:s,embed:l,styleService:u}=uM(iM,(e=>e.baseProps)),c=sR(cR),d=sR(uR),p=uM(iM,(e=>e.baseProps.model)),f=S.useRef(null),h=S.useRef(null);return or.jsxs(CI,{tabIndex:-1,hoverBackground:u.headerMenuHoverBackground,activeBackground:u.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[or.jsx(ak,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:c,anchorRef:f,menuAvailabilityFlags:{[nk.Sorting]:!0,[nk.Searching]:!0,[nk.Selections]:!0,[nk.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:o,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:l,listboxRef:h},selectionRelatedArgs:{app:d,qStateName:i.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:Vz},shouldShowMenuIcon:!0,model:p,direction:a,isPagination:n,isAccessibleHeader:!1,iconSize:16}),or.jsx(vI,{ref:h,direction:a,isPagination:n}),or.jsx(vI,{ref:f,direction:a})]})},fF=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,hF=(e,t)=>{const r=M(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])},mF=pc(rp)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),gF=({children:e})=>{const t=S.useRef(null),[r,n]=I((()=>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=q((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach((e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)})),n((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[o]);return hF(t,i),or.jsx(mF,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})},bF=({children:e})=>e,vF=(e,t)=>!e.isLocked&&e.isDim&&t,yF=({column:e,open:t,setOpen:r})=>{const{embed:n,direction:o,layout:i,styleService:a}=uM(iM,(e=>e.baseProps));sR(uR);const s=S.useRef(null),l=q((()=>{r(!1)}),[r]),u=_M({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:s},selectionRelatedArgs:{qStateName:i.qStateName},direction:o,onPopoverClose:l});return or.jsx(CI,{tabIndex:-1,hoverBackground:a.headerMenuHoverBackground,activeBackground:a.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:or.jsx(JM,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},xF=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),SF=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),wF=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?or.jsx(SF,{height:iI,"data-testid":"head-cell-sort-ascending-icon"}):or.jsx(xF,{height:iI,"data-testid":"head-cell-sort-descending-icon"});return r?or.jsx(Qz,{children:n}):void 0},CF=0,EF=1,RF=2,PF=3,AF=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i}=e,{styleService:a}=uM(iM,(e=>e.baseProps)),s=(()=>{const e=uM(iM,(e=>e.baseProps.interactions.active)),t=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:l}=VC(a.header),[u,c]=S.useState(!1);return or.jsxs(gF,{children:[or.jsx(bF,{prio:RF,minWidth:bI,children:cF(t)?or.jsx(dF,{column:t}):null},"Lock"),or.jsx(bF,{prio:EF,minWidth:bI,children:lF(t,s)?or.jsx(uF,{column:t}):null},"Cyclic"),or.jsx(bF,{ignore:!0,children:or.jsx(wF,{column:t})},"Sort"),or.jsx(bF,{minWidth:l(t.label)+8,children:or.jsx(wI,{justifyContent:t.headTextAlign,children:or.jsx(iF,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),or.jsx(bF,{prio:CF,minWidth:bI,children:u||vF(t,s)?or.jsx(yF,{open:u,setOpen:c,column:t}):null},"Search"),or.jsx(bF,{prio:PF,minWidth:bI,children:s?or.jsx(pF,{column:t,open:r,setOpen:n,isPagination:o}):null},"Menu")]})},IF=pc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),MF=()=>{},kF=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=uM(iM,(e=>e.baseProps)),o=uM(iM,(e=>e.showRightBorder)),i=uM(iM,(e=>e.tableData.totalsPosition)),a=!1,s=qz()?aF:AF;return or.jsx(IF,{className:"sn-table-cell",applicableStyle:{...r.header,...Nz(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:mI(n,a,o),borderLeftWidth:gI(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:or.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:MF})})},DF=({isPagination:e})=>{const{columns:t}=uM(iM,(e=>e.tableData)),[r,n]=I();Oz({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?or.jsx(pz,{children:or.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:or.jsx(kF,{column:o,isPagination:e})})}):null},TF=[S_.configure({activationConstraints:[new b_.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],OF=B_.plugins.filter((e=>e!==fj)),LF=({children:e})=>{const{model:t}=uM(iM,(e=>e.baseProps)),{columns:r}=uM(iM,(e=>e.tableData));return or.jsx(cz,{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||!("getEffectiveProperties"in 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:TF,plugins:OF,children:e})};function qF(e,t){const r=M(!1);T((()=>{r.current?e():r.current=!0}),t)}t.meta.env&&t.meta.env.MODE;let NF=!1;function jF(e,r){"production"===(t.meta.env?t.meta.env.MODE:void 0)||NF||(console.warn("[DEPRECATED] atomFamily is deprecated and will be removed in v3. Please use the `jotai-family` package instead: https://github.com/jotaijs/jotai-family"),NF=!0);let n=null;const o=new Map,i=new Set,a=t=>{let r;if(r=o.get(t),void 0!==r){if(!(null==n?void 0:n(r[1],t)))return r[0];a.remove(t)}const i=e(t);return o.set(t,[i,Date.now()]),s("CREATE",t,i),i},s=(e,t,r)=>{for(const n of i)n({type:e,param:t,atom:r})};return a.unstable_listen=e=>(i.add(e),()=>{i.delete(e)}),a.getParams=()=>o.keys(),a.remove=e=>{{if(!o.has(e))return;const[t]=o.get(e);o.delete(e),s("REMOVE",e,t)}},a.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,r]]of o)n(r,e)&&(o.delete(e),s("REMOVE",e,t))},a}!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},r){var n;let o,i;const a={getItem:(t,n)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==r?void 0:r.reviver)}catch(e){return n}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?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 s;try{s=null==(n=e())?void 0:n.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(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)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,(e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)}))))}();const _F=KE(YA),zF=jF((e=>KE((t=>{const[r,n]=t(_F);return 0===r&&n===e})))),FF=()=>{const{downloadService:e}=uM(iM,(e=>e.baseProps));T((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},HF=(e,t,r)=>{const{rootElement:n,keyboard:o}=uM(iM,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=uM(iM,(e=>e.tableData)),[u,c]=function(e){return[sR(e),lR(e)]}(_F),d=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal()));qF((()=>{const r=((e,t,r=!1)=>{const n=[zz(t),e[1]];return r?n:YA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(Wz(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=Fz(t,e);r.current?(Bz(s),r.current=!1):Hz(s),n&&(a({keys:[s?.textContent??""]}),AI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},$F=(e,t,r)=>{T((()=>{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])},WF=e=>{qC(e),II(e)&&gE(e.currentTarget)},BF=e=>{TI(e.evt)&&(qC(e.evt),Uz(e))},VF=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!TI(t))return;qC(t);const i=((e,t)=>[e.pageRowIdx+zz(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?zz(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=Uz({...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:VA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):AI(o,a,i)})({...e,nextCell:s})},UF=e=>{const{evt:t}=e;MI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{qC(e);const a=Math.ceil(t/r)-1;e.key===sE.Right&&n<a?(o(),i(n+1)):e.key===sE.Left&&n>0&&(o(),i(n-1))})(e):t.key===sE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(qC(e),t.blur?.(!0))})(e):kI(t.key)&&qC(t)},GF=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(BA.Disabled))return void qC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case sE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{qC(e),t.isSelectable&&r&&n({type:VA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case sE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{qC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case sE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(qC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case sE.C:WF(t);break;case sE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(qC(e),LC(e.currentTarget,t,e.shiftKey))})(n);break;default:VF(n)}},YF=e=>{const t=uM(iM,(e=>e.isAdjustingWidth)),r=uM(iM,(e=>e.setXScrollbarWidth)),n=uM(iM,(e=>e.setYScrollbarWidth)),o=uM(iM,(e=>e.eventEmitter)),i=M();hF(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()})),T((()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}}),[o])},KF=pc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),XF=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"}))),JF=pc(Mh,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),ZF=()=>or.jsxs(or.Fragment,{children:[or.jsx(KF,{className:GA.First,"data-testid":GA.First,"aria-live":"polite","aria-atomic":"true"}),or.jsx(KF,{className:GA.Second,"data-testid":GA.Second,"aria-live":"polite","aria-atomic":"true"})]}),QF=e=>{const t=M(new Map),r=M(null);T((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=q(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=q((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return A((()=>({addTask:n,removeTask:o})),[n,o])},eH=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),tH=()=>QF(eH),rH=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{T((()=>{const i=()=>{t({type:VA.Reset})},a=()=>{t({type:VA.Clear})},s=()=>{o.current?.contains(document.activeElement)?r():n.enabled&&n.blur?.(!0),i()};return e?.on("deactivated",i),e?.on("canceled",i),e?.on("confirmed",s),e?.on("cleared",a),()=>{e?.removeListener("deactivated",i),e?.removeListener("canceled",i),e?.removeListener("confirmed",s),e?.removeListener("cleared",a)}}),[e,n,t,r,o])},nH=e=>{e.stopPropagation()},oH=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:nH,color:IC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),iH=({href:e,text:t,interactions:r,color:n})=>or.jsx(ef,{...oH({href:e,text:t,interactions:r,color:n}),children:t}),aH=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),sH=window.cancelIdleCallback??(e=>{clearTimeout(e)}),lH="qDimensionInfo/0",uH="qMeasureInfo/0",cH="x",dH="y",pH=e=>({key:"bars",type:"box",data:{extract:{field:lH,props:{start:0,end:{field:uH}}}},settings:{major:{scale:cH},minor:{scale:dH},box:{maxWidthPx:8,fill:{fn:e}}}}),fH=e=>({key:"p",type:"point",data:{extract:{field:lH,props:{y:{field:uH}}}},settings:{x:{scale:cH},y:{scale:dH},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),hH=({qNum:e})=>void 0===e?0:Math.sign(e),mH=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=TC(e,t?.negative,r),a=TC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:lH,props:{start:0,end:{field:uH,value:hH}}}},settings:{major:{scale:cH},minor:{scale:dH},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}}}}},gH=(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=TC(e,t?.main,o),l=TC(e,t?.max,s),u=TC(e,t?.min,s),c=TC(e,t?.first,s),d=TC(e,t?.last,s);return e=>{const t=dH in e.datum?dH:"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[pH(a)];case"dots":return[fH(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:lH,props:{v:{field:uH}}}},settings:{coordinates:{major:{scale:cH},minor:{scale:dH,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(TC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,fH(a)]:[t]}case"posNeg":return[mH(e,n)];default:return[]}},bH=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"}),vH=(e,t,r,n)=>({y:{data:{field:uH},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:lH}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),yH=G();yH.use(U),yH.renderer.prio(["canvas"]);const xH={resolve:()=>{},promise:{}},SH=({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?Dt():xH);return{addChartPromiseToQueue:q((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:q((()=>{if(null===t.current||null!==e.current)return;u();r.current=aH((()=>{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 yH.chart({element:e,data:{type:"q",key:"qHyperCube",data:bH(s)},settings:{scales:vH(a,l,u,i),components:gH(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:q((()=>{null!==r.current&&sH(r.current),r.current=null,l()}),[r,l])}},wH=e=>{const t=M(null),r=M(!1);return q((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(sH(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=aH((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},CH=({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}=SH({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=q((e=>{e.isIntersecting?n():r()}),[n,r]);T((()=>{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})=>{T((()=>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=wH(t);T((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},EH=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=CH({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return or.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},RH=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}`},PH=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},AH=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=uM(iM,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=or.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:PH(s),objectPosition:RH(l),overflow:"hidden"}});return n?or.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?cI(o,e):void 0},children:c}):c},IH=j(((e,t)=>or.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:or.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),MH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),kH=j(((e,t)=>or.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:[or.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"}),or.jsx("use",{fillRule:"evenodd"})]}))),DH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),TH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),OH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),LH=j(((e,t)=>or.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:or.jsx("path",{d:"M2 7.5h12v1H2z"})}))),qH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),NH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),jH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),_H=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),zH={m:j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":jH,R:SF,S:xF,T:j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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:j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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:NH,Q:OH,"è":j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),"¢":DH,"©":kH,"23F4":TH,2013:_H,"&":qH,add:IH,"minus-2":LH,dot:MH},FH=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&zH[t];return o&&or.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:or.jsx(o,{style:{height:e}})})},HH=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=uM(iM,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=rI(e,t,i,o),d=(e=>parseInt(e||iI,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?or.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&&FH({size:d,iconKey:f,color:p}),or.jsx(iF,{isNumeric:!0,children:a}),"right"===h&&FH({size:d,iconKey:f,color:p})]}):FH({size:d,iconKey:f,color:p})},$H=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,WH=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const{interactions:l,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=uM(iM,(e=>e.baseProps)),h=uM(iM,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==NR.Link||h||(m=or.jsx(iH,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===NR.Image)return or.jsx(AH,{representation:t.representation,textStyle:r,maxImageHeight:$H(u,o),wrapInContainer:!n});const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==NR.Indicator||Number.isNaN(g)?t.representation.type===NR.MiniChart&&t.representation.miniChart&&!t.isNull?or.jsx(EH,{height:$H(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):or.jsx(iF,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):or.jsx(HH,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},BH=()=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:or.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),VH=pc("div")({"& path":{stroke:"none !important"}}),UH=({children:e,cellSelectionState:t})=>t===BA.Selected?or.jsxs(nF,{children:[e,or.jsx(VH,{children:or.jsx(BH,{})})]}):e,GH=e=>{const t=function(){const e=dz(),t=J_((()=>null==e?void 0:e.dragOperation.source),[e]),r=J_((()=>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},YH=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:VA.SelectMultiEnd})};r({type:VA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:VA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:VA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),KH=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=uM(iM,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=uM(iM,(e=>e.baseProps)),u=lR(_F),c=uM(iM,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{GF({evt:s,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:l})},f=e=>{((e,t)=>{e.key===sE.Shift&&t({type:VA.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;Gz([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:h};const{handleMouseDown:m,handleMouseOver:g,handleMouseUp:b}=YH(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},XH=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=BA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?BA.Disabled:n.has(e.qElemNumber)?BA.Selected:BA.Possible),i},JH=(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},ZH=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},QH=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return ZH(t,e,n?"even":"odd")}return e},e$=(e,t)=>{const{styleService:r}=uM(iM,(e=>e.baseProps)),n=uM(iM,(t=>XH(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=QH(o,r,e),o=JH(o,r,e);const i=UI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===BA.Selected?{...e,...r}:t===BA.Disabled?{...e,background:`${nI}, ${e.background}`}:e}(A((()=>e.isNull?o:UI(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}},t$=pc(Nh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),r$=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}}}))),n$=pc(Hh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...lI,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),o$=pc(Hh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...lI,...e,fontWeight:aI,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}))),i$=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=uM(iM,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=KH(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=e$(e,r),g=GH(r.id);return or.jsx(n$,{cellStyle:{...f,opacity:g},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${m} ${aE}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:or.jsx(UH,{cellSelectionState:m,children:or.jsx(WH,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:hI(s,e.align)})})})},a$=KE(0),s$=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const{styleService:o,interactions:i}=uM(iM,(e=>e.baseProps)),a=sR(a$),s=GH(e.id);return or.jsx(o$,{totalsStyle:{...o.totalRow,...Nz(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${aE}`,tabIndex:-1,title:i.passive?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:or.jsx(iF,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},l$=()=>{const{columns:e,totalsPosition:t,rows:r}=uM(iM,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=uM(iM,(e=>e.baseProps)),l=lR(_F),u=!!o?.isModal(),c=!!a.active;return or.jsx(nm,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return or.jsx(s$,{column:e,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case sE.C:WF(r);break;case sE.Space:r.preventDefault();break;default:BF(e)}else qC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:l,isSelectionMode:u,isInteractionEnabled:c,direction:s})},onMouseDown:()=>{Gz(a,n,l,i)}},e.id)}))})};var u$=_(l$);const c$=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=uM(iM,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=uM(iM,(e=>e.baseProps)),c=uM(iM,(e=>e.selectionDispatch)),d=!!$I(l)?.content?.hoverEffect;rH({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=q((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return QF(t)})(t),f=tH();return or.jsxs(t$,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?or.jsx(u$,{}):void 0,n.map(((e,t)=>or.jsx(r$,{hoverColors:u.grid.hoverColors,hover:d,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:u.contentMinRowHeight,children:o.map(((t,n)=>{const{id:o}=t,i=e[n];return or.jsx(i$,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?or.jsx(u$,{}):void 0]})};var d$=_(c$);const p$=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,f$=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,direction:l}=uM(iM,(e=>e.baseProps)),u=sR(cR),c=uM(iM,(e=>e.columnWidths)),d=uM(iM,(e=>e.setColumnWidths));if(!s.active)return null;return or.jsx(hM,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{$z(e);const t=e.closest(".sn-table-cell");Bz(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:l})},h$=e=>e.target?.getAttribute("class")?.includes(lE),m$=({isInteractionEnabled:e,column:t})=>{const[r,n]=I(!1),{changeSortOrder:o}=uM(iM,(e=>e.baseProps)),i=uM(iM,(e=>e.isAdjustingWidth)),a=uM(iM,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||h$(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!h$(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var g$=Object.defineProperty,b$=Object.defineProperties,v$=Object.getOwnPropertyDescriptors,y$=Object.getOwnPropertySymbols,x$=Object.prototype.hasOwnProperty,S$=Object.prototype.propertyIsEnumerable,w$=(e,t,r)=>t in e?g$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C$=(e,t)=>{for(var r in t||(t={}))x$.call(t,r)&&w$(e,r,t[r]);if(y$)for(var r of y$(t))S$.call(t,r)&&w$(e,r,t[r]);return e},E$=(e,t)=>b$(e,v$(t)),R$=class extends WL{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return E$(C$({},e),{[t]:r})}};R$.configure=uO(R$);var P$=R$;P$.configure({axis:"x",value:0}),P$.configure({axis:"y",value:0});var A$=class extends WL{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 E$(C$({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};A$.configure=uO(A$);var I$=class extends WL{constructor(e,t){super(e,t),this.boundingRectangle=Yk(null),this.destroy=oD((()=>{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=rq(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=C$({},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 ET(l,u,s,a),r,n);return c}};I$.configure=uO(I$);var M$=I$,k$=Object.create,D$=Object.defineProperty,T$=Object.defineProperties,O$=Object.getOwnPropertyDescriptor,L$=Object.getOwnPropertyDescriptors,q$=Object.getOwnPropertySymbols,N$=Object.prototype.hasOwnProperty,j$=Object.prototype.propertyIsEnumerable,_$=e=>{throw TypeError(e)},z$=(e,t,r)=>t in e?D$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F$=["class","method","getter","setter","accessor","field","value","get","set"],H$=e=>void 0!==e&&"function"!=typeof e?_$("Function expected"):e,$$=(e,t,r,n,o)=>({kind:F$[e],name:t,metadata:n,addInitializer:e=>r._?_$("Already initialized"):o.push(H$(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},B$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=F$[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,O$({get[r](){return U$(this,i)},set[r](e){return Y$(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=$$(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?H$(s)&&(g[f]=s):"object"!=typeof s||null===s?_$("Object expected"):(H$(a=s.get)&&(g.get=a),H$(a=s.set)&&(g.set=a),H$(a=s.init)&&h.unshift(a));return g&&D$(o,r,g),o},V$=(e,t,r)=>t.has(e)||_$("Cannot "+r),U$=(e,t,r)=>(V$(e,t,"read from private field"),t.get(e)),G$=(e,t,r)=>t.has(e)?_$("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Y$=(e,t,r,n)=>(V$(e,t,"write to private field"),t.set(e,r),r);function K$(e){return e instanceof EW||e instanceof CW}var X$=Object.defineProperty,J$=Object.defineProperties,Z$=Object.getOwnPropertyDescriptors,Q$=Object.getOwnPropertySymbols,eW=Object.prototype.hasOwnProperty,tW=Object.prototype.propertyIsEnumerable,rW=(e,t,r)=>t in e?X$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nW=(e,t)=>{for(var r in t||(t={}))eW.call(t,r)&&rW(e,r,t[r]);if(Q$)for(var r of Q$(t))tW.call(t,r)&&rW(e,r,t[r]);return e},oW=(e,t)=>J$(e,Z$(t));function iW(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function aW(e,t){return function(e,t,r){var n,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const t=e.findIndex((e=>l(e,i.id))),n=e.findIndex((e=>l(e,a.id)));if(-1===t||-1===n)return e;if(!s&&"index"in i&&"number"==typeof i.index){const n=i.index;if(n!==t)return r(e,t,n)}return r(e,t,n)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex((e=>l(e,i.id))),-1!==p&&(c=e)),-1===f&&(f=t.findIndex((e=>l(e,a.id))),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(n=h.shape)?void 0:n.current.center)?o:h.position.current;if(null==d&&a.id in e){const t=a.shape&&m.y>a.shape.center.y?e[a.id].length:0;d=a.id,f=t}if(null==c||null==d||c===d&&p===f)return"preventDefault"in t&&t.preventDefault(),e;if(c===d)return oW(nW({},e),{[c]:r(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[c][p];return oW(nW({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,iW)}var sW="__default__";function lW(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function uW(e,t){return e.index-t.index}function cW(e){return Array.from(e).sort(uW)}var dW,pW,fW,hW,mW,gW,bW,vW,yW=[class extends dO{constructor(e){super(e);const t=oD((()=>{const{dragOperation:t}=e;if(PN(t.activatorEvent)&&K$(t.source)&&t.status.initialized){const t=e.registry.plugins.get(t_);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(!PN(e.nativeEvent))return;if(!K$(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=[];zk((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&K$(e)||!e.element)continue;let r=e.shape;const n=new wN(e.element,{getBoundingClientRect:e=>dq(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,kN);zk((()=>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||!K$(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;mN(c);const d=new wN(c);if(!d)return;const p=ET.delta(d,ET.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 dO{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof EW){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(cW(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!K$(o)||!K$(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=cW(l),g=s?m:cW(u),b=null!=(c=o.sortable.group)?c:sW,v=null!=(d=i.sortable.group)?d:sW,y={[b]:m,[v]:g},x=aW(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),lW(f,S,h,w),zk((()=>{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;K$(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=cW(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(lW(r,i.index,a,o.index),zk((()=>{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()}}}],xW={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},SW=new class{constructor(){VD(this,eT,new WeakMap)}get(e,t){var r;return e?null==(r=BD(this,eT).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return BD(this,eT).has(e)||BD(this,eT).set(e,new Map),null==(n=BD(this,eT).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=BD(this,eT).get(e))?void 0:t.clear():void 0}};pW=[XD],dW=[XD];var wW=class{constructor(e,t){G$(this,hW,W$(fW,8,this)),W$(fW,11,this),G$(this,mW),G$(this,gW),G$(this,bW,W$(fW,12,this)),W$(fW,15,this),G$(this,vW),this.register=()=>(zk((()=>{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=()=>{zk((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{zk((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=xW,plugins:u=yW}=r,c=((e,t)=>{var r={};for(var n in e)N$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&q$)for(var n of q$(e))t.indexOf(n)<0&&j$.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new EW(c,t,this),this.draggable=new CW(((e,t)=>T$(e,L$(t)))(((e,t)=>{for(var r in t||(t={}))N$.call(t,r)&&z$(e,r,t[r]);if(q$)for(var r of q$(t))j$.call(t,r)&&z$(e,r,t[r]);return e})({},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)&&SW.clear(this.manager),(null==n?void 0:n.dragging)&&SW.set(this.manager,this.id,Hk((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=U$(this,gW),o=U$(this,mW);e===n&&t===o||(Y$(this,gW,e),Y$(this,mW,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),Y$(this,vW,c.element),this.manager=t,this.index=i,Y$(this,gW,i),this.group=o,Y$(this,mW,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=SW.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=SW.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){Hk((()=>{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}=nN(n),l=bN(n,s,!1),u=bN(n,s);(i||a)&&gN({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:t}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}))}))}get manager(){return this.draggable.manager}set manager(e){zk((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){zk((()=>{const t=U$(this,vW),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),Y$(this,vW,e)}))}get element(){var e,t;const r=U$(this,vW);if(r)return null!=(t=null!=(e=yq.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){zk((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){zk((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){zk((()=>{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:MN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){zk((()=>{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)}};fW=[,,,k$(null)],hW=new WeakMap,mW=new WeakMap,gW=new WeakMap,bW=new WeakMap,vW=new WeakMap,B$(fW,4,"index",pW,wW,hW),B$(fW,4,"group",dW,wW,bW),((e,t)=>{return z$(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(fW,wW);var CW=class extends U_{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},EW=class extends G_{constructor(e,t,r){super(e,t),this.sortable=r}},RW=Object.defineProperty,PW=Object.defineProperties,AW=Object.getOwnPropertyDescriptors,IW=Object.getOwnPropertySymbols,MW=Object.prototype.hasOwnProperty,kW=Object.prototype.propertyIsEnumerable,DW=(e,t,r)=>t in e?RW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TW=(e,t)=>{for(var r in t||(t={}))MW.call(t,r)&&DW(e,r,t[r]);if(IW)for(var r of IW(t))kW.call(t,r)&&DW(e,r,t[r]);return e};function OW(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=TW(TW({},xW),e.transition),b=function(e){var t;const r=null!=(t=dz())?t:void 0,[n]=I((()=>e(r)));return n.manager!==r&&(n.manager=r),K_(n.register,[r,n]),n}((t=>new wW(((e,t)=>PW(e,AW(t)))(TW({},e),{transition:g,register:!1,handle:Y_(s),element:Y_(a),target:Y_(h),feedback:d}),t))),v=Z_(b,LW);return tz(o,(()=>b.id=o)),K_((()=>{zk((()=>{b.group=u,b.index=l}))}),[b,u,l]),tz(m,(()=>b.type=m)),tz(t,(()=>b.accept=t),void 0,KD),tz(i,(()=>i&&(b.data=i))),tz(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),Q_),rz(s,(e=>b.handle=e)),rz(a,(e=>b.element=e)),rz(h,(e=>b.target=e)),tz(c,(()=>b.disabled=!0===c)),tz(f,(()=>b.sensors=f)),tz(r,(()=>b.collisionDetector=r)),tz(n,(()=>b.collisionPriority=n)),tz(d,(()=>b.feedback=null!=d?d:"default")),tz(g,(()=>b.transition=g),void 0,KD),tz(p,(()=>b.modifiers=p),void 0,KD),tz(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:q((e=>{b.handle=null!=e?e:void 0}),[b]),ref:q((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:q((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:q((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 LW(e,t,r){return!("isDragSource"!==e||r||!t)}const qW=({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/CT.distance(r.shape.center,s),type:LO.Collision,priority:OO.Normal}:null},NW=[M$.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],jW=(e,t)=>{const{interactions:r,direction:n}=uM(iM,(e=>e.baseProps)),{flags:o}=uM(iM,(e=>e.env)),i=!r.active||!o.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return OW({id:e.id,disabled:i,index:t,type:"item",accept:"item",group:"column",modifiers:NW,data:e,feedback:"clone",collisionDetector:qW({invert:"rtl"===n})})},_W=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=uM(iM,(e=>e.baseProps)),{columns:l,totalsPosition:u}=uM(iM,(e=>e.tableData)),c=uM(iM,(e=>e.columnWidths[t])),d=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal())),p=lR(_F),f=sR(zF(t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=m$({isInteractionEnabled:h,column:e}),{ref:x,isDragging:S}=jW(e,t),w=GH(e.id),C=qz(),E=C?aF:AF,R=e.isActivelySorted?UA[e.sortDirection]:void 0,P=m?iE:void 0,A=m?"true":void 0,I=t===r-1,M=[0,e.pageColIdx],k={width:c,zIndex:l.length-t},D=f&&0===t&&!i.enabled&&h?0:-1;return or.jsxs(Xz,{"data-dragging":S,ref:x,headerStyle:{...a.header,...Nz(a,u,!0),opacity:w},background:C&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:k,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${aE}`,tabIndex:D,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case sE.C:WF(r);break;case sE.Enter:case sE.Space:n?.(r);break;default:BF(e)}else qC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,isInteractionEnabled:h,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&Gz(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:C?b:y,"aria-sort":R,"aria-controls":P,"aria-expanded":A,"aria-haspopup":"true",children:[or.jsx(E,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),or.jsx(f$,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},zW=()=>{const{columns:e}=uM(iM,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=uM(iM,(e=>e.baseProps)),o=lR(a$),i=uM(iM,(e=>e.columnWidths)),a=M(null),s=p$(r,n);return T((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),or.jsx(Jh,{style:{visibility:s?"collapse":void 0},children:or.jsx(nm,{ref:a,className:"sn-table-row sn-table-head-row",style:{position:"sticky",top:0},children:e.map(((t,r)=>or.jsx(_W,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var FW=_(zW);const HW=e=>{const{pageInfo:t,setPageInfo:r,footerContainer:n,announce:o}=e,{page:i,rowsPerPage:a}=t,{totalColumnCount:s,totalRowCount:l,totalPages:u,paginationNeeded:c,rows:d,columns:p}=uM(iM,(e=>e.tableData)),{rootElement:f,keyboard:h,theme:m,interactions:g,styleService:b,viewService:v,layout:y,rect:x,direction:S}=uM(iM,(e=>e.baseProps)),w=sR(cR),C=uM(iM,(e=>e.showRightBorder)),E=uM(iM,(e=>e.selectionDispatch)),R=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal())),P=M(!1),A=M(null),I=M(null),k=`${w.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${w.get("SNTable.Accessibility.NavigationInstructions")}`,D=_A(y,v),O=D?v.scrollLeft??0:0,L=D?v.rowPartialHeight??0:0,N=q((()=>{P.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),j=q((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),_=q((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return $F(A,S,v),((e,t)=>{const{keyboard:r}=uM(iM,(e=>e.baseProps));T((()=>{const n=e.current;if(!n)return;const o=e=>{Yz(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(I,P),(()=>{const{rootElement:e,keyboard:t}=uM(iM,(e=>e.baseProps)),r=sR(_F);XC((()=>{const n=Fz(e,r);t.active?Bz(n):(n?.blur(),Wz(e))}),[t.active,e])})(),HF(P,o,i),T((()=>{const e=A.current;e&&(e.scrollLeft=O,e.scrollTop=L)}),[t,l,O,L]),qF((()=>{E({type:VA.UpdatePageRows,payload:{pageRows:d}})}),[d]),FF(),YF(A),or.jsxs(LF,{children:[or.jsxs(tF,{ref:I,dir:S,onKeyDown:e=>{UF({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:j,updateShouldRefocus:N,keyboard:h,isSelectionMode:R})},"data-testid":"sn-table",children:[or.jsx(ZF,{}),or.jsxs(XF,{ref:A,className:"sn-table-container",fullHeight:!!n||!g.active||!c,interactions:g,tabIndex:-1,role:"application","data-testid":"table-container",children:[or.jsxs(JF,{stickyHeader:!0,"aria-label":k,borderRight:C?`1px solid ${b.grid.border}`:void 0,children:[or.jsx(FW,{}),or.jsx(d$,{...e,updateShouldRefocus:N,tableWrapperRef:I})]}),or.jsx(Lz,{})]}),or.jsx(Nk,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:w,interactions:g,rect:x,layout:y,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:R,direction:S})]}),or.jsx(DF,{isPagination:!0})]})};var $W=_(HW);function WW(){return WW=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},WW.apply(null,arguments)}function BW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VW(e,t){return VW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VW(e,t)}function UW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,VW(e,t)}var GW=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function YW(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||GW(n)&&GW(o)))return!1;var n,o;return!0}function KW(e,t){var r;void 0===t&&(t=YW);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 XW(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 JW="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ZW(e){cancelAnimationFrame(e.id)}function QW(e,t){var r=JW();var n={id:requestAnimationFrame((function o(){JW()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var eB=-1;function tB(e){if(void 0===e&&(e=!1),-1===eB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),eB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return eB}var rB=null;function nB(e){if(void 0===e&&(e=!1),null===rB||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?rB="positive-descending":(t.scrollLeft=1,rB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),rB}return rB}var oB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function iB(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,BW(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:BW(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=KW((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=KW((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=KW((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(nB()){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&&ZW(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=QW(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}UW(t,e),t.getDerivedStateFromProps=function(e,t){return aB(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=tB();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(nB()){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&&ZW(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?oB:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),P=R[0],A=R[1],I=[];if(n>0&&g)for(var M=P;M<=A;M++)for(var k=C;k<=E;k++)I.push(w(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,k)}));var 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:WW({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(u||c||"div",{children:I,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}($),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var aB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},sB=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},lB=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},uB=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]},cB=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?dB(e,t,r,i,0,n):pB(e,t,r,Math.max(0,i),n)},dB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=uB(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},pB=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&uB(e,t,n,r).offset<o;)n+=a,a*=2;return dB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},fB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=uB(e,t,r,i),u="column"===e?lB(t,i):sB(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}},hB=iB({getColumnOffset:function(e,t,r){return uB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return cB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=uB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=uB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:sB,getEstimatedTotalWidth:lB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return fB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return fB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return uB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return cB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=uB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=uB("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}}),mB=function(e,t){return e};function gB(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,BW(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:BW(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=KW((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=KW((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=KW((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(nB()){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&&ZW(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=QW(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}UW(t,e),t.getDerivedStateFromProps=function(e,t){return bB(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?tB():0:l.scrollHeight>l.clientHeight?tB():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(nB()){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&&ZW(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?mB:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],P=[];if(u>0)for(var A=E;A<=R;A++)P.push(w(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:WW({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:P,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var bB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},vB=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]},yB=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=vB(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},xB=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&vB(e,r,t).offset<n;)r+=i,i*=2;return yB(e,t,Math.min(r,o-1),Math.floor(r/2),n)},SB=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},wB=gB({getItemOffset:function(e,t,r){return vB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:SB,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=vB(e,t,o),p=SB(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?yB(e,t,o,0,r):xB(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=vB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=vB(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 CB(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 EB=["style"],RB=["style"];function PB(e,t){var r=e.style,n=XW(e,EB),o=t.style,i=XW(t,RB);return!CB(r,o)&&!CB(n,i)}const AB=KE(-1),IB=jF((e=>KE((t=>t(AB)===e)))),MB=({style:e})=>or.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var kB=S.memo(MB,PB);const DB=()=>{},TB=e=>{e.preventDefault()};const OB=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=sR(IB(t)),d=lR(AB),{interactions:p,styleService:f,direction:h}=uM(iM,(e=>e.baseProps)),m=uM(iM,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=uM(iM,(e=>e.baseProps)),r=uM(iM,(e=>e.selectionDispatch)),n="object"==typeof e,o=uM(iM,(t=>n?XH(e,t.selectionState):BA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=YH(TB,e,r,DB);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=M(null),i=r&&!r.isNumeric,a=q((r=>{const o=fF(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return hF(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=GH(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=QH(o,i,e);a=JH(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?UI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===BA.Selected?{...s,...i.selectedColors}:n===BA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${nI}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,f),o={rowindex:t,columnindex:e};return or.jsx("div",{className:`sn-table-cell ${x} ${aE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:mI(h,g.isLastColumn,m),borderLeftWidth:gI(h,g.isLastColumn,m),justifyContent:dI(g,h),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:p.passive?g.representation.text:void 0,...o,children:or.jsx(UH,{cellSelectionState:x,children:or.jsx(WH,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return or.jsx(kB,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var LB=_(OB,PB);const qB=e=>{const t=M(e);return t.current=e,t},NB=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,jB=(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},_B=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},zB=(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=MA(h,e,a),C=!h&&e.qIsNull,E=C?NP(w):qP(e);f[r]={id:TP(),...e,align:NA(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)&&IA(e,h),representation:AA({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[NR.Image]:!0,[NR.Indicator]:!0,[NR.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}))}))},FB=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=uM(iM,(e=>e.env)),{direction:p}=uM(iM,(e=>e.baseProps)),f=M([]),h=q(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return zB(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=I((()=>h(n??[])));XC((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=qB(e),a=qB(t),s=A((()=>({enqueue:e=>{const t=NB(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(NB(e))})),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>h(e,t)))})),v=q(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(_B(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=q(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(jB(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return T((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,u,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},HB=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},$B=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,WB=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=uM(iM,(e=>e.baseProps.styleService)),i=uM(iM,(e=>e.columnWidths)),{estimateLineCount:a}=VC(o.dimension.values),s=eM(o.dimension.values.fontSize),l=e||t||1===r;return q(((e,t,o)=>{if(l||e.representation.type===NR.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])},BB=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0,viewService:o})=>{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])},VB=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=uM(iM,(e=>e.baseProps)),[a,s]=I({rowHeights:new Map,cellHeightsInGrid:new Map}),l=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/l))),h=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:l,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{const{layout:n}=uM(iM,(e=>e.baseProps)),o=uM(iM,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;XC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),XC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:n,setState:s,pageInfo:o});const m=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>q(((o,i,a)=>{F((()=>{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(!$B(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,HB(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>q(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),b=WB({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),v=q((e=>c?h??u:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]);return BB({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},UB=(e,t)=>{N((()=>()=>{t(0)}),[e,t]);const r=q((e=>{const r=fF(e);void 0!==r&&t(r)}),[t]);hF(e,r)};let GB=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const YB=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>q((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=GB.None,i=GB.None;return o=n>t?GB.Down:n<t?GB.Up:GB.None,i=r>e?GB.Right:r<e?GB.Left:GB.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,s,u);if(i.current.overscanColumnStartIndex=s,i.current.overscanColumnStopIndex=l,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=s,v=u+o.page*o.rowsPerPage,y=l-s+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=h-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,m===GB.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===GB.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===GB.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===GB.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),KB={enabled:!1},XB=()=>{},JB={current:null};const ZB=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=A((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},QB=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},eV={overflow:"hidden",willChange:"auto"};var tV=_(j(((e,t)=>{const{rect:r,columns:n,pageInfo:o,setInnerBodyHeight:i,bodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=uM(iM,(e=>e.baseProps)),f=uM(iM,(e=>e.columnWidths)),h=uM(iM,(e=>e.initialDataPages)),m=M(null),g=M(null),b=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=M(0),y=!!$I(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=ZB(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:C,setEstimatedCellHeight:E,getRowHeight:R,lineClamp:P}=VB({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:I,loadRows:k,loadColumns:D}=FB({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:E}),O=YB({layout:s,loadRows:k,loadColumns:D,rowCount:x,pageInfo:o,gridState:b,viewService:c}),L=tH(),q=A((()=>({rowsInPage:I,columns:n,isHoverEnabled:y,lineClamp:P,setMeasuredCellHeight:C,resizeObserverTaskScheduler:L})),[I,n,y,P,C,L]);return N((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=uM(iM,(e=>e.baseProps)),r=uM(iM,(e=>e.selectionDispatch));T((()=>{r({type:VA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),rH({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:XB,keyboard:KB,tableWrapperRef:JB})}(I),H(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??a)-a,n=Math.round(r*e);v.current=e,1===v.current?(m.current?.scrollToItem({rowIndex:x-1,align:"start"}),m.current?.scrollTo({scrollLeft:t})):m.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[g,a,x]),UB(g,i),or.jsx(hB,{"data-key":"body",ref:m,innerRef:g,style:eV,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:a,rowCount:x,rowHeight:R,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:q,onItemsRendered:O,itemKey:QB,className:"sn-table-body",direction:p,children:LB})})));const rV=({width:e,height:t,children:r})=>or.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),nV=(e,t)=>{const r=M(null),n=uM(iM,(e=>e.columnWidths));N((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=q((r=>{const n=fF(r);n&&t(n+9,e)}),[e,t]);return hF(r,o),r},oV=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}}))),iV=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=uM(iM,(e=>e.baseProps)),u=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal())),c=uM(iM,(e=>e.showRightBorder)),d=uM(iM,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=m$({isInteractionEnabled:p,column:f}),y=qz(),x=nV(e,i),S=n.length-1===e,w=y?aF:AF,{ref:C,isDragging:E}=jW(f,e),R=GH(f.id);return or.jsxs(oV,{"data-dragging":E,ref:C,className:`sn-table-cell ${aE}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...Nz(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:mI(l,S,c),borderLeftWidth:gI(l,S,c),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:f.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===f.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:R},interactions:a,hoverBackground:s.headerMenuHoverBackground,background:y&&h?s.headerMenuActiveBackground:s.header.background,children:[or.jsx(w,{forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),or.jsx(f$,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},aV=e=>{const[t,r]=I(new Map);XC((()=>{r(new Map)}),[e.length]);const n=q(((e,t)=>{r((r=>$B(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:A((()=>HB(t)),[t]),setMeasuredCellHeight:n}},sV=(e,t)=>{H(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},lV=(e,t,r,n,o)=>{XC((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},uV={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},cV=j(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=S.useRef(null),l=M(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=uM(iM,(e=>e.baseProps)),h=uM(iM,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=aV(n),b=p$(f,u);return sV(t,s),lV(s,u,o,h,c),UB(l,a),or.jsx(wB,{className:"sn-table-head-row",ref:s,outerRef:l,layout:"horizontal",style:{...uV,...b?{display:"none"}:void 0},itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(m+8,d.headerMinRowHeight),width:r.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:i,setMeasuredCellHeight:g},direction:p,children:iV})}));var dV=_(cV);const pV=j(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=uM(iM,(e=>e.baseProps));return or.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,tabIndex:-1,children:r})})),fV=({children:e,rect:t})=>{const{direction:r}=uM(iM,(e=>e.baseProps));return or.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})},hV=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=uM(iM,(e=>e.baseProps)),c=uM(iM,(e=>e.showRightBorder)),d=nV(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=GH(n[e].id);return or.jsx("div",{className:`sn-table-cell ${aE}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...Nz(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:mI(u,m,c),borderLeftWidth:gI(u,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:or.jsx(iF,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},mV=j(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=M(null),l=M(null),{layout:u,theme:c,styleService:d,direction:p}=uM(iM,(e=>e.baseProps)),f=uM(iM,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=aV(i);return sV(t,s),lV(s,u,n,f,c),UB(l,a),or.jsx(wB,{ref:s,outerRef:l,layout:"horizontal",style:uV,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(h,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:m},direction:p,children:hV})}));var gV=_(mV);const bV=(e,t,r,n,o)=>q((i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),c=Math.max(0,Math.min(1,l/(a-s)));n.scrollTopRatio=c,n.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[n,r,e,t,o]),vV=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=uM(iM,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=uM(iM,(e=>e.baseProps)),c=uM(iM,(e=>e.columnWidths)),d=M(null),p=M(null),f=M(null),h=M(null),m=A((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),g=uM(iM,(e=>e.yScrollbarWidth)),b=uM(iM,(e=>e.xScrollbarWidth)),v=A((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(m,b,g)),[m,b,g]),{rowCount:y}=ZB(i,t,v,c,0),{headerAndTotalsHeight:x,innerBodyHeight:S,setHeaderRowHeight:w,setTotalsRowHeight:C,setInnerBodyHeight:E}=(()=>{const[e,t]=I(0),[r,n]=I(0),[o,i]=I(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:R,height:P}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=uM(iM,(e=>e.baseProps)),a=e+t;let s=r*i.contentMinRowHeight+t;return a<2*n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:S,headerAndTotalsHeight:x,rowCount:y,stickyContainerRect:v,columnWidths:c}),k=bV(p,f,h,l,u),D=((e,t,r)=>Math.min(e.height-t,r))(v,x,S),T=q((()=>{d.current&&(d.current.scrollTop=0)}),[d]);FF(),N((()=>{d.current&&(d.current.scrollLeft=0,d.current.scrollTop=0)}),[n.length]),N((()=>{d.current&&(d.current.scrollTop=0)}),[t,y,a]),YF(d);const O=or.jsx(gV,{rect:v,pageInfo:t,columns:n,ref:f,totals:r,setTotalsRowHeight:C},"totals");return or.jsxs(LF,{children:[or.jsx(pV,{ref:d,width:m.width,height:m.height,onScroll:k,children:or.jsxs(rV,{width:R,height:P,children:[or.jsxs(fV,{rect:v,children:[or.jsx(dV,{rect:v,pageInfo:t,columns:n,ref:p,columResizeHandler:T,setHeaderRowHeight:w}),r.atTop?O:null,or.jsx(tV,{ref:h,rect:v,pageInfo:t,columns:n,setInnerBodyHeight:E,bodyHeight:D}),r.atBottom?O:null]}),or.jsx(Lz,{})]})}),or.jsx(DF,{isPagination:!1})]})};var yV=_(vV);const xV=()=>{const{theme:e,keyboard:t,interactions:r,rect:n,layout:o}=uM(iM,(e=>e.baseProps)),{paginationNeeded:i,totalRowCount:a,totalColumnCount:s,totalPages:l}=uM(iM,(e=>e.tableData)),u=sR(cR),c=uM(iM,(e=>e.pageInfo)),d=uM(iM,(e=>e.setPage));return or.jsxs(tF,{"data-testid":"sn-table",children:[or.jsx(yV,{pageInfo:c}),or.jsx(Nk,{paginationNeeded:i,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:a,totalColumnCount:s,totalPages:l,keyboard:t,translator:u,theme:e,interactions:r,rect:n,layout:o})]})};var SV=_(xV);var wV={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 CV=(e,t)=>{const n=t.get(cR);return r((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(wV).forEach((t=>{e.add(wV[t])}))}(n),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${GA.First}`),s=e.querySelector(`.${GA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===GA.First?(l=s,r=GA.Second):(l=a,r=GA.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(e,n))),[e,n.language()])},EV={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},RV=(e,t)=>{const{model:r,rootElement:o,layout:s,reactRoot:l,isFontLoaded:u,viewService:c,env:d}=e,{direction:p,footerContainer:f}=n(),h=zA(s,c),m=CV(o,t),[g,b]=i(((e,t)=>_A(e,t)?{page:t.page||EV.page,rowsPerPage:t.rowsPerPage||EV.rowsPerPage,rowsPerPageOptions:EV.rowsPerPageOptions}:EV)(s,c)),[v,y]=$C((async()=>h?async function(e,t,r,n,o,i,a,s){const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),h=o.visibleTop??l*u,m=o.visibleHeight??Math.min(u,p-h);if(l>0&&h>=p)return n({...r,page:0}),null;if(m*d>kA)return n({...r,rowsPerPage:DA(d,c),page:0}),null;const g=p>10,b=TA(t,o),v=jA(t,a,s),y=!!t.snapshotData,x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});y||(o.qTop=h,o.qHeight=m,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=x.at(0)?.qMatrix.map(((e,r)=>{const n=[];return v.forEach(((o,l)=>{const u=e[l],c=MA(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?NP(c):qP(u);n[l]={id:TP(),...u,align:NA(p,o.bodyTextAlign,s,a),rowIdx:r+h,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===m-1,isNumeric:p,isNull:(!d||!p)&&IA(u,o.isDim),representation:AA({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[NR.Image]:!0,[NR.Indicator]:!0,[NR.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(r,s,g,b,c,d,!0,p):null),[s,g,r,h,p]);a((()=>{h&&e.model&&e.changeSortOrder&&v&&u&&!y&&function(e,t,r){const{direction:n,...o}=e,i=cM(n);t.render(or.jsx(hi,{stylisPlugins:"rtl"===n?[WA]:void 0,children:or.jsx(hc,{theme:i,children:or.jsx(tR,{store:r,children:or.jsx(lM,{...e,children:or.jsx($W,{...o})})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:v,pageInfo:g,setPageInfo:b,direction:p,footerContainer:f,announce:m},l,t)}),[m,p,f,u,g,l,e,h,v,y,t])},PV=e=>{const t=r((()=>UC(e)),[e]);return a((()=>()=>{t.unmount()}),[t]),t},AV=(e,t)=>r((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(e.qDimensionInfo.length,t)),[e.qDimensionInfo.length,t]);const IV=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=$C((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(EI,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return[...n]})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},MV=(e,t)=>{const{layout:n,model:o,keyboard:s,interactions:l,reactRoot:u,isFontLoaded:c,viewService:d,direction:p}=e,f=!zA(n,d),[h,m]=i(!1);h&&m(!1);const g=r((()=>function(e,t,r,n,o){const i=jA(e,o,n),a=TA(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(EI,s),u=s>EI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(n,l,d,p,h)),[n,l,d,p,h]),{pageInfo:b,setPage:v}=((e,t)=>{const[n,o]=i(0),a=Math.min(EI,e.qHyperCube.qSize.qcy),s=r((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(t){const t=Math.floor(e.qHyperCube.qSize.qcy/EI);t<n&&o(t)}return{pageInfo:s,setPage:o}})(n,f),{initialDataPages:y,isLoading:x}=IV({model:o,layout:n,page:b.page,shouldRender:f});a((()=>{f&&s.active&&s.blur?.(!1)}),[s,f]),a((()=>{f&&e.model&&e.changeSortOrder&&y&&!x&&c&&function(e,t,r){const{direction:n}=e,o=cM(n);t.render(or.jsx(S.StrictMode,{children:or.jsx(hc,{theme:o,children:or.jsx(tR,{store:r,children:or.jsx(lM,{...e,children:or.jsx(SV,{})})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:g,pageInfo:b,setPage:v,initialDataPages:y},u,t)}),[y,c,x,b,u,e,v,f,g,t])},kV={version:JSON.stringify("6.5.3"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var DV=e=>({properties:{initial:kV},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>MR({...e}),exportProperties:CR,exploration:kR});function TV(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 OV=(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]}},LV=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const qV=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||EV.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},NV=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=TA(e,t);if(zA(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=TV(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:qV(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=OV(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=(LV(h,m,g)?d:d+1)+c;let v=p+c;const y=OV(p,o),x=y?.getBoundingClientRect();return y&&x&&(LV(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:qV(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},jV=({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{c((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h}=NV(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),d((()=>({getViewState:()=>NV(e,t,n)})),[e,t,n])},_V=e=>{const{viewState:t}=n();return r((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(t,e.snapshotData)),[t,e.snapshotData,e.usePagination])},zV=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),FV=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));
|
|
121
|
+
*/!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",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"),P=new RegExp(s+"(left)"+m+b+g,"gi"),A=new RegExp(s+"(right)"+m+b+g,"gi"),I=new RegExp(s+"(left)"+v,"gi"),M=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"),W=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),B=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(I,"$1"+e).replace(M,"$1left").replace(x,"right")),r=r.replace(E,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(P,"$1"+e).replace(A,"$1left").replace(x,"right").replace(T,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(_,G).replace(z,K).replace(F,J).replace(H,J).replace($,K).replace(W,X).replace(B,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)}(FA,FA.exports);var HA=Gt(FA.exports);function $A(e,t,r){switch(e.type){case Zr:case Jr:case Kr:return e.return=e.return||e.value;case Xr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Kr&&(e.children=e.value)}))}var n=Hn(Array.prototype.concat(e.children),$A);return cn(n)?e.return=e.value+"{"+n+"}":""}function WA(e,t,r,n){if(e.type===Qr||"@supports"===e.type||e.type===Xr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Xr)){var o=HA.transform($A(e));e.children=o?qn(o)[0].children:[],e.return=""}}Object.defineProperty(WA,"name",{value:"stylisRTLPlugin"});let BA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),VA=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}({}),UA=function(e){return e.A="ascending",e.D="descending",e}({}),GA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const YA=[0,0],KA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),XA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},JA=(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&&ie(e.localPaletteColors[t].color).blend(ie(s.color),s.t)},ZA=(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:KA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:XA(n,t,r)})))),n},QA=(e,t,r,n)=>{const o=ZA(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=JA(e,a,t);break}n=i}return r})(o,t);return a},eI=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!LP(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||!LP(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)},tI=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=eI(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||!LP(t))return 0;let a=r&&LP(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}},rI=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=tI(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 XA(o,r.limitPaletteColorIndex,n);const a=KA(r.limitRange,t);return QA(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}},nI=(PC().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)"),oI=4/3,iI="12px",aI="600",sI="Source Sans Pro, sans-serif",lI={height:"auto",fontSize:iI,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"}},uI={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:aI},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},cI=(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,dI=(e,t)=>e.representation.type===NR.Image&&"fitHeight"===e.representation.imageSize?cI(t,e.representation):e.align,pI=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",fI=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},hI=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,mI=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",gI=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",bI=24,vI=mc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),yI=mc(ip,{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?pI(e,n):void 0}))),xI=mc(ip,{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},[`& .${nE}`]:{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"},[`& .${nE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),SI=mc(ip,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),wI=mc(ip,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),CI=mc(md,{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}))),EI=25e4,RI=(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(uE.PixelsMax,Math.max(uE.PixelsMin,f)),i-=n[a]};switch(s){case cE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?uE.PixelsDefault:+e)(l),h();break;case cE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?uE.PercentageDefault:+e)(u)/100*t,h();break;case cE.FitToContent:e.representation?.type===NR.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case cE.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(uE.AutoMinTable,e)}))}return n},PI=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},AI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},II=e=>e.ctrlKey||e.metaKey,MI=e=>e.shiftKey&&II(e),kI=e=>[sE.Left,sE.Right,sE.Up,sE.Down].includes(e),DI=e=>e.shiftKey&&kI(e.key),TI=e=>(e=>kI(e)||[sE.Home,sE.End,sE.PageUp,sE.PageDown].includes(e))(e.key)&&!MI(e),OI=(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),PI(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})},LI=(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&&DI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&DI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===sE.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 PI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},qI=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}},NI=(e,t)=>{switch(t.type){case VA.Select:return OI(e,t.payload);case VA.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 VA.SelectMouseUp:return((e,t)=>qI(e.isSelectMultiValues||e.firstCell!==t.cell?e:OI(e,t)))(e,t.payload);case VA.SelectMultiAdd:return LI(e,t.payload);case VA.SelectMultiEnd:return qI(e);case VA.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case VA.Clear:return e.rows.size?{...e,rows:new Map}:e;case VA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},jI=4/3,_I=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function zI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const FI=(e,t)=>e?{borderBottomColor:IC.DARK_MODE_BORDER,borderRightColor:IC.DARK_MODE_BORDER,borderLeftColor:IC.DARK_MODE_BORDER,borderTopColor:IC.DARK_MODE_BORDER}:{borderLeftColor:IC.BORDER_MEDIUM,borderRightColor:IC.BORDER_MEDIUM,borderTopColor:IC.BORDER_HEAVY,borderBottomColor:t?IC.BORDER_HEAVY:IC.BORDER_LIGHT},HI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*jI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},$I=e=>e.components?.find((e=>"theme"===e.key)),WI=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:_I(r?.fontColor)?zI(IC.TEXT,t,r?.fontColor):i||IC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...FI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function BI(e,t,r){const n=$I(e)?.header,o=WI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=DC(o.background??IC.WHITE,dE),o.activeBackground=DC(o.background??IC.WHITE,pE),o}const VI=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in uI)(e)&&Object.assign(t,uI[e]))),t};function UI(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&&OC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?VI(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=MC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const GI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},YI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=GI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},KI=(e,t,r,n=IC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=YI(e,t,r);return _C(i,o,a,n)??n},XI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return iI}},JI=e=>e?.some((e=>"italic"===e))?"italic":"normal",ZI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?aI:"normal",QI=e=>!1===e?1:3,eM=e=>parseInt(e??lI.fontSize,10)*oI,tM=e=>e?.some((e=>"underline"===e))?"underline":"none",rM=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=$I(t)??{},p=zA(t,o)?IC.WHITE:IC.TRANSPARENT,f=KI(n,i,"object.straightTableV2.dimension.label.name.backgroundColor",p),h=o.viewState?.maxLineCount??d?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),m={header:{fontFamily:i?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??r.head.fontFamily??sI,fontSize:XI(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:JI(i?.fontStyle),fontWeight:ZI(i?.fontStyle,aI),textDecoration:tM(i?.fontStyle),color:GI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??IC.TEXT,background:f},headerMenuHoverBackground:DC(f,dE),headerMenuActiveBackground:DC(f,pE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??sI,fontSize:XI(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:JI(a?.fontStyle),fontWeight:ZI(a?.fontStyle,"normal"),textDecoration:tM(a?.fontStyle),color:GI(n,a?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??IC.TEXT,background:YI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??IC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??sI,fontSize:XI(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:JI(s?.fontStyle),fontWeight:ZI(s?.fontStyle,"normal"),textDecoration:tM(s?.fontStyle),color:GI(n,s?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??IC.TEXT,background:YI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??IC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??sI,fontSize:XI(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:JI(l?.fontStyle),fontWeight:ZI(l?.fontStyle,aI),textDecoration:tM(l?.fontStyle),color:GI(n,l?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??IC.TEXT,background:KI(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:JI(u?.fontStyle),fontWeight:ZI(u?.fontStyle,"normal"),textDecoration:tM(u?.fontStyle),color:GI(n,u?.fontColor)??GI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??IC.TEXT,background:GI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??IC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??QI(t.multiline?.wrapTextInCells),headerLineClamp:QI(t.multiline?.wrapTextInHeaders),border:GI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?IC.DARK_MODE_BORDER:IC.BORDER_MEDIUM),divider:GI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??IC.BORDER_HEAVY,hoverColors:{color:GI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:GI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:GI(n,c?.zebraStripes?.color?.odd),background:GI(n,c?.zebraStripes?.background?.odd)},even:{color:GI(n,c?.zebraStripes?.color?.even),background:GI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===GI(n,u?.background),overrideNullValueColor:void 0===GI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:kC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:h},{headerMinRowHeight:g,totalRowLineHeight:b,totalRowMinHeight:v,contentLineHeight:y,contentMinRowHeight:x}=(e=>{const t=Math.max(eM(e.header.fontSize)+8,32),r=eM(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(eM(e.dimension.values.fontSize),eM(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(m);return m.headerMinRowHeight=g,m.totalRowLineHeight=b,m.totalRowMinHeight=v,m.contentLineHeight=y,m.contentMinRowHeight=x,m},nM=(e,t,r,n)=>{const o=A((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=$I(e)?.content,i=WI("content",t,o);i.background=t.background.color;const a=HI(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=_I(l)||!!c,p=_I(s)||!!u,f=d||p;let h;h=_I(s)?zI(IC.HOVER,t,s):u||(d?"":IC.HOVER);const m=f?zI(MC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=BI(e,t,!o),s=function(e,t,r){const n=$I(e)?.content,o=WI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=BI(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},oM=new Map;const iM=k({}),aM=function(e){const t=k([()=>{},new Set]);return oM.set(e,t),({children:r,value:n})=>{const o=M(n),i=M(new Set);T((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=q((()=>o.current),[o]),s=A((()=>[a,i.current]),[a]);return or.jsx(e.Provider,{value:n,children:or.jsx(t.Provider,{value:s,children:r})})}}(iM),sM={rows:[],columns:[],totalsPosition:{}},lM=({children:e,tableData:t=sM,selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,setPage:p,pageInfo:f,initialDataPages:h,rect:m,viewService:g,downloadService:b,env:v,direction:y,eventEmitter:x})=>{const[S,w]=((e,t)=>{const[r,n]=D(NI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(t.rows,r),C=nM(n,a,t,l),E=((e,t,r,n,o)=>A((()=>rM(0,t,r,n,o)),[t,r,e,n,o]))(v,n,C,a,g),{xScrollbarWidth:R,yScrollbarWidth:P,setXScrollbarWidth:M,setYScrollbarWidth:k}=(()=>{const[e,t]=I(0),[r,n]=I(0);return{xScrollbarWidth:e,yScrollbarWidth:r,setYScrollbarWidth:n,setXScrollbarWidth:t}})(),{columnWidths:T,setColumnWidths:O,showRightBorder:L,isAdjustingWidth:q,setIsAdjustingWidth:j}=(({columns:e,totalsPosition:t,tableWidth:r,styleService:n,eventEmitter:o,yScrollbarWidth:i,accessibleHeader:a=!0})=>{const s=t.atBottom||t.atTop,l=VC({...n.header,fontWeight:aI},{maxNbrLinesOfText:3}).measureText,u=VC({...n.totalRow,fontWeight:aI},{maxNbrLinesOfText:3}).measureText,{estimateWidth:c}=VC(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:d}=VC(n.measure.values,{maxNbrLinesOfText:3}),p=A((()=>(e,t,r,n,o,i,p)=>{let f=0;if(a){const t=4;let r=25;r+=t+24,n&&(r+=20+t),o&&(r+=20),f=l(e)+r}else{let t=9;t+=16,p&&(t+=bI),t+=bI,t+=bI,f=l(e)+t}const h=i?c:d;return Math.max(f,s?u(t)+24+1:0,h(r))}),[c,d,l,u,s,a]),[f,h]=I(!1),[m,g]=I((()=>RI(e,r,p)));N((()=>{const t=RI(e,r-i,p);g(t),h(!1)}),[e,r,i,p]),N((()=>{f||o.emit("done-adjusting-column-width")}),[f,o]);const b=A((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,i,r)),[m,i,r]);return{columnWidths:m,setColumnWidths:g,showRightBorder:b,isAdjustingWidth:f,setIsAdjustingWidth:h}})({columns:t.columns,totalsPosition:t.totalsPosition,tableWidth:m.width,styleService:E,eventEmitter:x,accessibleHeader:n.accessibleHeader,yScrollbarWidth:P}),_=A((()=>({selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,rect:m,viewService:g,styleService:E,direction:y,downloadService:b})),[r,n,o,i,a,s.active,l,u,c,d,m,g,E,y,b]);return or.jsx(aM,{value:{selectionState:S,selectionDispatch:w,columnWidths:T,setColumnWidths:O,baseProps:_,tableData:t,setPage:p,pageInfo:f,initialDataPages:h,showRightBorder:L,env:v,isAdjustingWidth:q,setIsAdjustingWidth:j,setYScrollbarWidth:k,setXScrollbarWidth:M,xScrollbarWidth:R,yScrollbarWidth:P,eventEmitter:x},children:e})};function uM(e,t){const r=function(e){return oM.get(e)}(e),[n,o]=L(r),[,i]=D((e=>e+1),0),a=M(t),s=M(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=A((()=>t(l)),[l,t]);return T((()=>{a.current=t,s.current=u}),[l,u,t]),T((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function cM(e){const t=PC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Tu({...t,direction:e})}const dM={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},pM={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},fM=mc("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":{...dM},"&::-moz-range-track":{...dM},"&::-ms-track":{...dM},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...pM},"&::-moz-range-thumb":{...pM},"&::-ms-thumb":{...pM},"&: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"}}))),hM=({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=ZC({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%",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}};XC((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,uE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:cE.Pixels,pixels:f.current.columnWidth};a(e)}else l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{qC(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=>{qC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===sE.Left||e.key===sE.Right){qC(e);const t=5,r=e.key===sE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===sE.Space||e.key===sE.Enter?(qC(e),s(e),l?.(!1),x()):e.key===sE.Esc&&(qC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return or.jsx(fM,{style:b,hoverColor:o,isLastColumn:r,className:lE,"data-testid":lE,onMouseDown:e=>{qC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:cE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(qC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":uE.PixelsMin,"aria-valuemax":uE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},mM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),gM=({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},bM=mc(ip,{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"}))),vM=mc(mM,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),yM=mc(Hf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),xM=mc(jp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),SM=mc(Uf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),wM=mc(Uf,{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"}))),CM=mc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),EM=mc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),RM=mc(Sd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),PM=mc(hf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),AM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),IM=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?IM(t):t:e.parentElement?.children?.[0]},MM=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?MM(t):t},kM=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===sE.Down||t===sE.Up){const r=e=>t===sE.Down?IM(e):MM(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},DM=(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 TM={};const OM=({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]=I(!1),f=S.useRef(null),h=q((e=>{e.stopPropagation(),p(!1)}),[p]);return or.jsxs(or.Fragment,{children:[or.jsxs(wM,{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),TM={}),a?.length&&(p(!0),TM[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:kM,children:[l?or.jsx(CM,{direction:u,isPagination:c}):null,or.jsxs(EM,{children:[or.jsx(PM,{direction:u,isPagination:c,children:or.jsx(o,{})}),or.jsx(RM,{variant:"body2",children:n})]}),a?.length?or.jsx(AM,{}):null]},t),a?.length?or.jsx(jM,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:DM(a,TM),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},LM=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&or.jsx(SM,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>or.jsx(OM,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),qM=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[LM({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?or.jsx(xM,{"data-testid":"group-divider",variant:"middle"}):void 0])),NM={appear:0,enter:0,exit:0},jM=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?or.jsx(yM,{className:oE,open:t,anchorEl:e,onClose:r,transitionDuration:NM,MenuListProps:{id:iE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:qM({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,_M=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>q((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]),zM=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),FM=(e,t)=>e.some((e=>t[e]>0)),HM={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},$M=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=I(null),[a,s]=I(HM);return XC((()=>{e||(s(HM),i(null))}),[e]),T((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=zM(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:FM(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:FM(["qSelected"],e),canSelectPossible:FM(["qOption"],e),canSelectAlternative:FM(["qAlternative"],e),canSelectExcluded:FM(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},WM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),BM=j(((e,t)=>or.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:or.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"})}))),VM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),UM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),GM=j(((e,t)=>or.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:or.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"})}))),YM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),KM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),XM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),JM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),ZM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),QM=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),ek=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),tk=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),rk=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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 nk=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const ok="/qListObjectDef",ik=({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[nk.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:WM,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:UM,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:XM,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:GM,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[nk.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:JM,enabled:!0}]}]),!e.isLocked&&r[nk.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:rk,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(ok))},icon:ZM,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(ok))},icon:tk,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(ok))},icon:QM,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(ok))},icon:ek,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(ok))},icon:BM,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:KM,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:YM,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[nk.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:VM,enabled:!0}]}]),f},ak=({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=tE})=>{const v=M(null),y=ZC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=$M({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=gM({model:f,headerData:n}),A=_M({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=q((e=>{e.stopPropagation(),t(!1)}),[t]),k=q((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?or.jsxs(bM,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:nE,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?or.jsx(vM,{height:b,className:rE,"data-testid":rE,isInteractionsActive:i.active??!1,children:or.jsx(mM,{})}):null,or.jsx(jM,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:ik({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},sk=e=>e.isDark?{background:e.color,borderColor:IC.DARK_MODE_BORDER,color:IC.DARK_MODE_TEXT,disabledColor:IC.DARK_MODE_DISABLED,iconColor:IC.DARK_MODE_TEXT}:{background:e.color,borderColor:IC.BORDER_MEDIUM,color:IC.TEXT,disabledColor:IC.DISABLED},lk=mc(ip,{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}`}))),uk=mc(Ph,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),ck=mc(mp,{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)}))),dk=mc(Sd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),pk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A((()=>sk(n.background)),[n]);if(!r.active)return null;const a=o?or.jsx(lk,{footerStyle:i,children:e}):null;return t?W.createPortal(e,t):a},fk=k({}),hk=()=>L(fk),mk=({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=A((()=>sk(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=ZC({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: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 or.jsx(fk.Provider,{value:S,children:e})};let gk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),bk=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 vk=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),yk=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),xk=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),Sk={FirstPage:yk,PreviousPage:vk,NextPage:AM,LastPage:xk,FirstPageRTL:xk,PreviousPageRTL:AM,NextPageRTL:vk,LastPageRTL:yk},wk=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=hk(),u=r.concat("rtl"===n?"RTL":""),c=Sk[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}},Ck=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=hk(),o=0===e.page,{IconComponent:i,styledProps:a}=wk({type:gk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||bk.FirstPage)?null:or.jsx(ck,{...a,disabled:!r.active,children:or.jsx(i,{height:tE})})},Ek=(e,t,r=!1)=>{r&&e.key===sE.Tab&&!e.shiftKey&&(qC(e),LC(e.target,t,!1))},Rk=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=hk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=wk({type:gk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{Ek(e,t,n)}:void 0;return o<=(a?.lastPage||bk.LastPage)?null:or.jsx(ck,{...u,onKeyDown:c,disabled:!i.active,children:or.jsx(l,{height:tE})})},Pk=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=hk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=wk({type:gk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>bk.FirstPage&&o>bk.LastPage)&&t.enabled?e=>{Ek(e,t,n)}:void 0;return or.jsx(ck,{...l,onKeyDown:u,disabled:!i.active,children:or.jsx(s,{height:tE})})},Ak=()=>{const{pageInfo:e,interactions:t}=hk(),r=0===e.page,{IconComponent:n,styledProps:o}=wk({type:gk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return or.jsx(ck,{...o,disabled:!t.active,children:or.jsx(n,{height:tE})})},Ik=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=hk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||bk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return or.jsx(dk,{variant:"caption",dir:"ltr",children:s})},Mk=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=hk(),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 or.jsxs(or.Fragment,{children:[or.jsxs(dk,{variant:"caption",id:p,children:[c,":"]}),or.jsx(uk,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},kk=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=hk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||bk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=or.jsx(or.Fragment,{children:e.rowsPerPageOptions.map((e=>or.jsx("option",{value:e,children:e},e)))});return or.jsx(Mk,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},Dk=1e3,Tk="…",Ok=({totalPages:e,page:t})=>{const r=Math.min(e,Dk),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-Dk):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return or.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(or.jsx("option",{value:Tk,disabled:!0,children:Tk},"startMoreOptions")),o<e-1&&a.push(or.jsx("option",{value:Tk,disabled:!0,children:Tk},"endMoreOptions")),or.jsx(or.Fragment,{children:a})},Lk=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=hk(),{page:i}=e;if(t<=(o?.selectPage||bk.SelectPage))return null;const a=or.jsx(Ok,{totalPages:r,page:i});return or.jsx(Mk,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var qk=_((e=>or.jsxs(mk,{...e,children:[or.jsx(kk,{}),or.jsx(Lk,{}),or.jsx(Ik,{}),or.jsx(Ck,{}),or.jsx(Ak,{}),or.jsx(Pk,{}),or.jsx(Rk,{})]})));const Nk=e=>or.jsx(pk,{...e,children:or.jsx(qk,{...e})});var jk=Symbol.for("preact-signals");function _k(){if(Wk>1)Wk--;else{for(var e,t=!1;void 0!==$k;){var r=$k;for($k=void 0,Bk++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Kk(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(Bk=0,Wk--,t)throw e}}function zk(e){if(Wk>0)return e();Wk++;try{return e()}finally{_k()}}var Fk=void 0;function Hk(e){var t=Fk;Fk=void 0;try{return e()}finally{Fk=t}}var $k=void 0,Wk=0,Bk=0,Vk=0;function Uk(e){if(void 0!==Fk){var t=e.n;if(void 0===t||t.t!==Fk)return t={i:0,S:e,p:Fk.s,n:void 0,t:Fk,e:void 0,x:void 0,r:t},void 0!==Fk.s&&(Fk.s.n=t),Fk.s=t,e.n=t,32&Fk.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=Fk.s,t.n=void 0,Fk.s.n=t,Fk.s=t),t}}function Gk(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 Yk(e,t){return new Gk(e,t)}function Kk(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 Xk(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 Jk(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 Zk(e,t){Gk.call(this,void 0),this.x=e,this.s=void 0,this.g=Vk-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 Qk(e,t){return new Zk(e,t)}function eD(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Wk++;var r=Fk;Fk=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,tD(e),t}finally{Fk=r,_k()}}}function tD(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,eD(e)}function rD(e){if(Fk!==this)throw new Error("Out-of-order effect");Jk(this),Fk=e,this.f&=-2,8&this.f&&tD(this),_k()}function nD(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 oD(e,t){var r=new nD(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}Gk.prototype.brand=jk,Gk.prototype.h=function(){return!0},Gk.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:Hk((function(){var e;null==(e=t.W)||e.call(t)})))},Gk.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&&Hk((function(){var e;null==(e=t.Z)||e.call(t)})))}},Gk.prototype.subscribe=function(e){var t=this;return oD((function(){var r=t.value,n=Fk;Fk=void 0;try{e(r)}finally{Fk=n}}),{name:"sub"})},Gk.prototype.valueOf=function(){return this.value},Gk.prototype.toString=function(){return this.value+""},Gk.prototype.toJSON=function(){return this.value},Gk.prototype.peek=function(){var e=Fk;Fk=void 0;try{return this.value}finally{Fk=e}},Object.defineProperty(Gk.prototype,"value",{get:function(){var e=Uk(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Bk>100)throw new Error("Cycle detected");this.v=e,this.i++,Vk++,Wk++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{_k()}}}}),Zk.prototype=new Gk,Zk.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===Vk)return!0;if(this.g=Vk,this.f|=1,this.i>0&&!Kk(this))return this.f&=-2,!0;var e=Fk;try{Xk(this),Fk=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 Fk=e,Jk(this),this.f&=-2,!0},Zk.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)}Gk.prototype.S.call(this,e)},Zk.prototype.U=function(e){if(void 0!==this.t&&(Gk.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)}},Zk.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(Zk.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Uk(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),nD.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()}},nD.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,eD(this),Xk(this),Wk++;var e=Fk;return Fk=this,rD.bind(this,e)},nD.prototype.N=function(){2&this.f||(this.f|=2,this.o=$k,$k=this)},nD.prototype.d=function(){this.f|=8,1&this.f||tD(this)},nD.prototype.dispose=function(){this.d()};var iD,aD,sD,lD,uD,cD,dD,pD,fD,hD,mD,gD,bD,vD,yD,xD,SD,wD,CD,ED,RD=Object.create,PD=Object.defineProperty,AD=Object.defineProperties,ID=Object.getOwnPropertyDescriptor,MD=Object.getOwnPropertyDescriptors,kD=Object.getOwnPropertySymbols,DD=Object.prototype.hasOwnProperty,TD=Object.prototype.propertyIsEnumerable,OD=e=>{throw TypeError(e)},LD=(e,t,r)=>t in e?PD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qD=(e,t)=>PD(e,"name",{value:t,configurable:!0}),ND=["class","method","getter","setter","accessor","field","value","get","set"],jD=e=>void 0!==e&&"function"!=typeof e?OD("Function expected"):e,_D=(e,t,r,n,o)=>({kind:ND[e],name:t,metadata:n,addInitializer:e=>r._?OD("Already initialized"):o.push(jD(e||null))}),zD=(e,t)=>{return LD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},FD=(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},HD=(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=ND[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)&&ID(d<4?o:{get[r](){return BD(this,i)},set[r](e){return UD(this,i,e)}},r));d?f&&d<4&&qD(i,(d>2?"set ":d>1?"get ":"")+r):qD(o,r);for(var y=n.length-1;y>=0;y--)u=_D(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>WD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?BD:GD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>UD(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?jD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?OD("Object expected"):(jD(a=s.get)&&(v.get=a),jD(a=s.set)&&(v.set=a),jD(a=s.init)&&g.unshift(a));return d||zD(e,o),v&&PD(o,r,v),f?4^d?i:v:o},$D=(e,t,r)=>t.has(e)||OD("Cannot "+r),WD=(e,t)=>Object(t)!==t?OD('Cannot use the "in" operator on this value'):e.has(t),BD=(e,t,r)=>($D(e,t,"read from private field"),r?r.call(e):t.get(e)),VD=(e,t,r)=>t.has(e)?OD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),UD=(e,t,r,n)=>($D(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),GD=(e,t,r)=>($D(e,t,"access private method"),r);function YD(e,t){if(t){let r;return Qk((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return Qk(e)}function KD(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)=>!KD(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=>!KD(e[r],t[r])));return!o}return!1}function XD({get:e},t){return{init:e=>Yk(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function JD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=YD(e.bind(this)),r.set(this,t)),t.value}}function ZD(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)=>AD(e,MD(t)))(((e,t)=>{for(var r in t||(t={}))DD.call(t,r)&&LD(e,r,t[r]);if(kD)for(var r of kD(t))TD.call(t,r)&&LD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function QD(...e){const t=e.map((e=>oD(e)));return()=>t.forEach((e=>e()))}cD=[XD],uD=[XD],lD=[XD],sD=[ZD()],aD=[ZD()],iD=[ZD()];var eT,tT=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,FD(dD,5,this),VD(this,gD),VD(this,pD,FD(dD,8,this)),FD(dD,11,this),VD(this,bD,FD(dD,12,this)),FD(dD,15,this),VD(this,SD,FD(dD,16,this)),FD(dD,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return BD(this,gD,CD)}get initial(){return BD(this,gD,hD)}get previous(){return BD(this,gD,yD)}set current(e){const t=Hk((()=>BD(this,gD,CD)));e&&t&&this.equals(t,e)||zk((()=>{BD(this,gD,hD)||UD(this,gD,e,mD),UD(this,gD,t,xD),UD(this,gD,e,ED)}))}reset(e=this.defaultValue){zk((()=>{UD(this,gD,void 0,xD),UD(this,gD,e,mD),UD(this,gD,e,ED)}))}};function rT(e){return Hk((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}dD=[,,,RD(null)],pD=new WeakMap,gD=new WeakSet,bD=new WeakMap,SD=new WeakMap,fD=HD(dD,20,"#initial",cD,gD,pD),hD=fD.get,mD=fD.set,vD=HD(dD,20,"#previous",uD,gD,bD),yD=vD.get,xD=vD.set,wD=HD(dD,20,"#current",lD,gD,SD),CD=wD.get,ED=wD.set,HD(dD,2,"current",sD,tT),HD(dD,2,"initial",aD,tT),HD(dD,2,"previous",iD,tT),zD(dD,tT);eT=new WeakMap;var nT,oT,iT,aT,sT,lT=Object.create,uT=Object.defineProperty,cT=Object.getOwnPropertyDescriptor,dT=Object.getOwnPropertySymbols,pT=Object.prototype.hasOwnProperty,fT=Object.prototype.propertyIsEnumerable,hT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),mT=e=>{throw TypeError(e)},gT=Math.pow,bT=(e,t,r)=>t in e?uT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vT=["class","method","getter","setter","accessor","field","value","get","set"],yT=e=>void 0!==e&&"function"!=typeof e?mT("Function expected"):e,xT=(e,t,r,n,o)=>({kind:vT[e],name:t,metadata:n,addInitializer:e=>r._?mT("Already initialized"):o.push(yT(e||null))}),ST=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=vT[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,cT(o,r)),h=n.length-1;h>=0;h--)(l=xT(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,yT(a)&&(f[d]=a);return f&&uT(o,r,f),o},wT=(e,t,r)=>t.has(e)||mT("Cannot "+r),CT=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)}},ET=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={}))pT.call(t,r)&&bT(e,r,t[r]);if(dT)for(var r of dT(t))fT.call(t,r)&&bT(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 CT((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 CT.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 RT,PT=class extends(iT=tT,oT=[JD],nT=[JD],iT){constructor(e){var t,r,n;super(CT.from(e),((e,t)=>CT.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)})(sT,5,this),t=this,n=0,(r=aT).has(t)?mT("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 CT.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=CT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(wT(a=this,s=aT,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);zk((()=>{((e,t,r)=>{wT(e,t,"write to private field"),t.set(e,r)})(this,aT,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(CT.from(e)),this.velocity={x:0,y:0}}};function AT({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(gT(n,2)+gT(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}sT=(e=>{var t;return[,,,lT(null!=(t=null==e?void 0:e[hT("metadata")])?t:null)]})(iT),aT=new WeakMap,ST(sT,2,"delta",oT,PT),ST(sT,2,"direction",nT,PT),RT=sT,bT(PT,hT("metadata"),RT[3]);var IT,MT,kT,DT,TT=(e=>(e.Horizontal="x",e.Vertical="y",e))(TT||{}),OT=Object.values(TT),LT=Object.create,qT=Object.defineProperty,NT=Object.defineProperties,jT=Object.getOwnPropertyDescriptor,_T=Object.getOwnPropertyDescriptors,zT=Object.getOwnPropertySymbols,FT=Object.prototype.hasOwnProperty,HT=Object.prototype.propertyIsEnumerable,$T=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),WT=e=>{throw TypeError(e)},BT=(e,t,r)=>t in e?qT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VT=(e,t)=>{for(var r in t||(t={}))FT.call(t,r)&&BT(e,r,t[r]);if(zT)for(var r of zT(t))HT.call(t,r)&&BT(e,r,t[r]);return e},UT=(e,t)=>NT(e,_T(t)),GT=(e,t)=>qT(e,"name",{value:t,configurable:!0}),YT=(e,t)=>{var r={};for(var n in e)FT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&zT)for(var n of zT(e))t.indexOf(n)<0&&HT.call(e,n)&&(r[n]=e[n]);return r},KT=e=>{var t;return[,,,LT(null!=(t=null==e?void 0:e[$T("metadata")])?t:null)]},XT=["class","method","getter","setter","accessor","field","value","get","set"],JT=e=>void 0!==e&&"function"!=typeof e?WT("Function expected"):e,ZT=(e,t,r,n,o)=>({kind:XT[e],name:t,metadata:n,addInitializer:e=>r._?WT("Already initialized"):o.push(JT(e||null))}),QT=(e,t)=>BT(t,$T("metadata"),e[3]),eO=(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},tO=(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=XT[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)&&jT(d<4?o:{get[r](){return oO(this,i)},set[r](e){return aO(this,i,e)}},r));d?f&&d<4&>(i,(d>2?"set ":d>1?"get ":"")+r):GT(o,r);for(var y=n.length-1;y>=0;y--)u=ZT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>nO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?oO:sO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>aO(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?JT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?WT("Object expected"):(JT(a=s.get)&&(v.get=a),JT(a=s.set)&&(v.set=a),JT(a=s.init)&&g.unshift(a));return d||QT(e,o),v&&qT(o,r,v),f?4^d?i:v:o},rO=(e,t,r)=>t.has(e)||WT("Cannot "+r),nO=(e,t)=>Object(t)!==t?WT('Cannot use the "in" operator on this value'):e.has(t),oO=(e,t,r)=>(rO(e,t,"read from private field"),r?r.call(e):t.get(e)),iO=(e,t,r)=>t.has(e)?WT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),aO=(e,t,r,n)=>(rO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),sO=(e,t,r)=>(rO(e,t,"access private method"),r);function lO(e,t){return{plugin:e,options:t}}function uO(e){return t=>lO(e,t)}function cO(e){return"function"==typeof e?{plugin:e,options:void 0}:e}IT=[XD];var dO=class{constructor(e,t){this.manager=e,this.options=t,iO(this,kT,eO(MT,8,this,!1)),eO(MT,11,this),iO(this,DT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return Hk((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=oD(e.bind(this));return oO(this,DT).add(t),t}destroy(){oO(this,DT).forEach((e=>e()))}static configure(e){return lO(this,e)}};MT=KT(null),kT=new WeakMap,DT=new WeakMap,tO(MT,4,"disabled",IT,dO,kT),QT(MT,dO);var pO,fO=class extends dO{},hO=class{constructor(e){this.manager=e,this.instances=new Map,iO(this,pO,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(cO).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of oO(this,pO))if(!r.includes(e)){if(e.prototype instanceof fO)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);aO(this,pO,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 mO(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}pO=new WeakMap;var gO,bO,vO=[],yO=class extends dO{constructor(e){super(e),iO(this,gO),iO(this,bO),this.computeCollisions=this.computeCollisions.bind(this),aO(this,bO,Yk(vO)),this.destroy=QD((()=>{const e=this.computeCollisions(),t=Hk((()=>this.manager.dragOperation.position.current));if(e!==vO){const e=oO(this,gO);if(aO(this,gO,t),e&&t.x==e.x&&t.y==e.y)return}else aO(this,gO,void 0);oO(this,bO).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){Hk((()=>{e?oO(this,bO).value=this.computeCollisions():aO(this,gO,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return vO;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=Hk((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?vO:(s.sort(mO),s)}get collisions(){return oO(this,bO).value}};gO=new WeakMap,bO=new WeakMap;var xO=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)}},SO=class extends xO{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function wO(e,t=!0){let r=!1;return UT(VT({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var CO,EO,RO,PO,AO,IO,MO,kO,DO,TO=class extends fO{constructor(e){super(e);let t=[];this.destroy=QD((()=>{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=wO({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;Hk((()=>{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()})))}))}))}},OO=(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))(OO||{}),LO=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(LO||{});MO=[XD],IO=[JD],AO=[JD],PO=[JD],RO=[JD],EO=[JD],CO=[JD];var qO=class{constructor(){eO(kO,5,this),iO(this,DO,eO(kO,8,this,"idle")),eO(kO,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}};kO=KT(null),DO=new WeakMap,tO(kO,4,"value",MO,qO,DO),tO(kO,2,"current",IO,qO),tO(kO,2,"idle",AO,qO),tO(kO,2,"initializing",PO,qO),tO(kO,2,"initialized",RO,qO),tO(kO,2,"dragging",EO,qO),tO(kO,2,"dropped",CO,qO),QT(kO,qO);var NO,jO,_O,zO,FO,HO,$O,WO,BO,VO=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 Hk((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=wO({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return Hk((()=>{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;zk((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=wO({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 Hk((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=wO({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 Hk((()=>{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=Hk((()=>{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=oD((()=>{"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()}))}};zO=[XD],_O=[XD],jO=[XD],NO=[XD];var UO=class{constructor(e,t){iO(this,HO,eO(FO,8,this)),eO(FO,11,this),iO(this,$O,eO(FO,12,this)),eO(FO,15,this),iO(this,WO,eO(FO,16,this)),eO(FO,19,this),iO(this,BO,eO(FO,20,this)),eO(FO,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)}};FO=KT(null),HO=new WeakMap,$O=new WeakMap,WO=new WeakMap,BO=new WeakMap,tO(FO,4,"manager",zO,UO,HO),tO(FO,4,"id",_O,UO,$O),tO(FO,4,"data",jO,UO,WO),tO(FO,4,"disabled",NO,UO,BO),QT(FO,UO);var GO,YO,KO,XO,JO,ZO,QO,eL,tL,rL,nL,oL,iL,aL,sL,lL,uL,cL,dL,pL,fL,hL,mL,gL,bL=class{constructor(){this.map=Yk(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=QD(...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}},vL=class extends(QO=UO,ZO=[XD],JO=[XD],XO=[XD],KO=[JD],YO=[JD],GO=[JD],QO){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=YT(r,["modifiers","type","sensors"]);super(a,t),eO(eL,5,this),iO(this,tL,eO(eL,8,this)),eO(eL,11,this),iO(this,rL,eO(eL,12,this)),eO(eL,15,this),iO(this,nL,eO(eL,16,this,this.isDragSource?"dragging":"idle")),eO(eL,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}};eL=KT(QO),tL=new WeakMap,rL=new WeakMap,nL=new WeakMap,tO(eL,4,"type",ZO,vL,tL),tO(eL,4,"modifiers",JO,vL,rL),tO(eL,4,"status",XO,vL,nL),tO(eL,2,"isDropping",KO,vL),tO(eL,2,"isDragging",YO,vL),tO(eL,2,"isDragSource",GO,vL),QT(eL,vL);var yL=class extends(cL=UO,uL=[XD],lL=[XD],sL=[XD],aL=[XD],iL=[XD],oL=[JD],cL){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(YT(r,["accept","collisionDetector","collisionPriority","type"]),t),eO(dL,5,this),iO(this,pL,eO(dL,8,this)),eO(dL,11,this),iO(this,fL,eO(dL,12,this)),eO(dL,15,this),iO(this,hL,eO(dL,16,this)),eO(dL,19,this),iO(this,mL,eO(dL,20,this)),eO(dL,23,this),iO(this,gL,eO(dL,24,this)),eO(dL,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}};dL=KT(cL),pL=new WeakMap,fL=new WeakMap,hL=new WeakMap,mL=new WeakMap,gL=new WeakMap,tO(dL,4,"accept",uL,yL,pL),tO(dL,4,"type",lL,yL,fL),tO(dL,4,"collisionDetector",sL,yL,hL),tO(dL,4,"collisionPriority",aL,yL,mL),tO(dL,4,"shape",iL,yL,gL),tO(dL,2,"isDropTarget",oL,yL),QT(dL,yL);var xL,SL=class extends dO{constructor(e,t){super(e,t),this.manager=e,this.options=t}},wL=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)}},CL=class{constructor(e){this.options=e,iO(this,xL)}set controller(e){aO(this,xL,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=oO(this,xL))||t.activate(e)}};xL=new WeakMap;var EL,RL,PL,AL,IL,ML,kL,DL,TL,OL,LL,qL,NL,jL,_L,zL,FL,HL,$L,WL=class extends dO{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},BL=class{constructor(e){this.draggables=new bL,this.droppables=new bL,this.plugins=new hO(e),this.sensors=new hO(e),this.modifiers=new hO(e)}register(e,t){if(e instanceof vL)return this.draggables.register(e.id,e);if(e instanceof yL)return this.droppables.register(e.id,e);if(e.prototype instanceof WL)return this.modifiers.register(e,t);if(e.prototype instanceof SL)return this.sensors.register(e,t);if(e.prototype instanceof dO)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof UO)return e instanceof vL?this.draggables.unregister(e.id,e):e instanceof yL?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof WL)return this.modifiers.unregister(e);if(e.prototype instanceof SL)return this.sensors.unregister(e);if(e.prototype instanceof dO)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()}};TL=[JD],DL=[XD],kL=[XD],ML=[XD],IL=[XD],AL=[XD],PL=[JD],RL=[JD],EL=[JD];var VL=class{constructor(e){eO(NL,5,this),iO(this,OL),iO(this,LL),iO(this,qL,new tT(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new qO,iO(this,jL,eO(NL,8,this,!1)),eO(NL,11,this),iO(this,_L,eO(NL,12,this,null)),eO(NL,15,this),iO(this,zL,eO(NL,16,this,null)),eO(NL,19,this),iO(this,FL,eO(NL,20,this,null)),eO(NL,23,this),iO(this,HL,eO(NL,24,this,[])),eO(NL,27,this),this.position=new PT({x:0,y:0}),iO(this,$L,{x:0,y:0}),aO(this,OL,e)}get shape(){const{current:e,initial:t,previous:r}=oO(this,qL);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?oO(this,qL).current=e:oO(this,qL).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=oO(this,OL).registry.draggables.get(t);return r&&aO(this,LL,r),null!=(e=null!=r?r:oO(this,LL))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=oO(this,OL).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(UT(VT({},this.snapshot()),{transform:r}));return aO(this,$L,r),r}snapshot(){return Hk((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:oO(this,$L),shape:this.shape?rT(this.shape):null,position:rT(this.position),status:rT(this.status),canceled:this.canceled})))}reset(){zk((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,oO(this,qL).reset(),this.position.reset({x:0,y:0}),aO(this,$L,{x:0,y:0}),this.modifiers=[]}))}};NL=KT(null),OL=new WeakMap,LL=new WeakMap,qL=new WeakMap,jL=new WeakMap,_L=new WeakMap,zL=new WeakMap,FL=new WeakMap,HL=new WeakMap,$L=new WeakMap,tO(NL,2,"shape",TL,VL),tO(NL,4,"canceled",DL,VL,jL),tO(NL,4,"activatorEvent",kL,VL,_L),tO(NL,4,"sourceIdentifier",ML,VL,zL),tO(NL,4,"targetIdentifier",IL,VL,FL),tO(NL,4,"modifiers",AL,VL,HL),tO(NL,2,"source",PL,VL),tO(NL,2,"target",RL,VL),tO(NL,2,"transform",EL,VL),QT(NL,VL);var UL={get rendering(){return Promise.resolve()}},GL=class{constructor(e){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{plugins:t=[],sensors:r=[],modifiers:n=[],renderer:o=UL}=null!=e?e:{},i=new SO(this),a=new BL(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new VO(this),this.dragOperation=new VL(this),this.collisionObserver=new yO(this),this.plugins=[TO,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=QD((()=>{var e,t,r;const n=Hk((()=>this.dragOperation.modifiers)),o=this.modifiers;n!==o&&n.forEach((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}=cO(e);return new t(this,r)})))?r:o}));this.destroy=()=>{l(),s()}}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}},YL=e=>{throw TypeError(e)},KL=(e,t,r)=>t.has(e)||YL("Cannot "+r),XL=(e,t,r)=>(KL(e,t,"read from private field"),t.get(e)),JL=(e,t,r)=>t.has(e)?YL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ZL=(e,t,r,n)=>(KL(e,t,"write to private field"),t.set(e,r),r),QL=(e,t,r)=>(KL(e,t,"access private method"),r);function eq(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function tq(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=(eq(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function rq(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 nq(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function oq(e){return"nodeType"in e}function iq(e){var t,r,n;return e?nq(e)?e:oq(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 aq(e){const{Document:t}=iq(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function sq(e){return!(!e||nq(e))&&(e instanceof iq(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function lq(e){return e instanceof iq(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function uq(e){return e?nq(e)?e.document:oq(e)?aq(e)?e:sq(e)||lq(e)?e.ownerDocument:document:document:document}function cq(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 dq(e,t=e.getBoundingClientRect(),r=0){var n;let o=t;const{ownerDocument:i}=e,a=null!=(n=i.defaultView)?n:window;let s=e.parentElement;for(;s&&s!==i.documentElement;){if(!cq(s)){const e=s.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),i=r*(e.bottom-e.top),a=r*(e.right-e.left);o={top:Math.max(o.top,e.top-t),right:Math.min(o.right,e.right+n),bottom:Math.min(o.bottom,e.bottom+i),left:Math.max(o.left,e.left-a),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top}s=s.parentElement}const l=a.innerWidth,u=a.innerHeight,c=r*u,d=r*l;return o={top:Math.max(o.top,0-c),right:Math.min(o.right,l+d),bottom:Math.min(o.bottom,u+c),left:Math.max(o.left,0-d),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top,o.width<0&&(o.width=0),o.height<0&&(o.height=0),o}function pq(e){return{x:e.clientX,y:e.clientY}}var fq="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function hq(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(...hq(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(...hq(o.document,t))}}catch(e){}return r}function mq(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function gq(e){return!(!e||!oq(e))&&e instanceof iq(e).ShadowRoot}function bq(e){if(e&&oq(e)){let t=e.getRootNode();if(gq(t))return t;if(t instanceof Document)return t}return uq(e)}function vq(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function yq(e){return"value"in e}function xq(e){return"CANVAS"===e.tagName}function Sq(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 Sq(e,{x:t-o,y:r-i})}}return n}var wq=new WeakMap;var Cq=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 Eq(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function Rq(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 Pq,Aq=fq?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Iq=class extends Aq{constructor(e){super((t=>{XL(this,Pq)?e(t,this):ZL(this,Pq,!0)})),JL(this,Pq,!1)}};Pq=new WeakMap;var Mq,kq,Dq,Tq,Oq,Lq,qq,Nq,jq,_q,zq,Fq=Array.from({length:100},((e,t)=>t/100)),Hq=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,JL(this,jq),this.disconnect=()=>{var e,t,r;ZL(this,qq,!0),null==(e=XL(this,Dq))||e.disconnect(),null==(t=XL(this,Tq))||t.disconnect(),XL(this,Oq).disconnect(),null==(r=XL(this,Lq))||r.remove()},JL(this,Mq,!0),JL(this,kq),JL(this,Dq),JL(this,Tq),JL(this,Oq),JL(this,Lq),JL(this,qq,!1),JL(this,Nq,Rq((()=>{var e,t,r;const{element:n}=this;if(null==(e=XL(this,Tq))||e.disconnect(),XL(this,qq)||!XL(this,Mq)||!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=dq(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,ZL(this,Tq,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:ET.intersectionRatio(r,dq(n)))&&XL(this,Nq).call(this)}),{threshold:Fq,rootMargin:m,root:o})),XL(this,Tq).observe(n),QL(this,jq,_q).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),ZL(this,Mq,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=dq(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)&&(ZL(this,Lq,document.createElement("div")),XL(this,Lq).style.background="rgba(0,0,0,0.15)",XL(this,Lq).style.position="fixed",XL(this,Lq).style.pointerEvents="none",o.body.appendChild(XL(this,Lq))),ZL(this,Oq,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=XL(this,Mq);ZL(this,Mq,a),(s||l)&&(u&&!a?(null==(r=XL(this,Tq))||r.disconnect(),this.callback(null),null==(n=XL(this,Dq))||n.disconnect(),ZL(this,Dq,void 0),XL(this,Lq)&&(XL(this,Lq).style.visibility="hidden")):XL(this,Nq).call(this),a&&!XL(this,Dq)&&(ZL(this,Dq,new Iq(XL(this,Nq))),XL(this,Dq).observe(e)))}),{threshold:Fq,root:o})),XL(this,Mq)&&!r.skipInitial&&this.callback(this.boundingClientRect),XL(this,Oq).observe(e)}};Mq=new WeakMap,kq=new WeakMap,Dq=new WeakMap,Tq=new WeakMap,Oq=new WeakMap,Lq=new WeakMap,qq=new WeakMap,Nq=new WeakMap,jq=new WeakSet,_q=function(){XL(this,qq)||(QL(this,jq,zq).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,XL(this,kq))||(this.callback(this.boundingClientRect),ZL(this,kq,this.boundingClientRect)))},zq=function(){if(XL(this,Lq)){const{top:e,left:t,width:r,height:n}=dq(this.element);XL(this,Lq).style.overflow="hidden",XL(this,Lq).style.visibility="visible",XL(this,Lq).style.top=`${Math.floor(e)}px`,XL(this,Lq).style.left=`${Math.floor(t)}px`,XL(this,Lq).style.width=`${Math.floor(r)}px`,XL(this,Lq).style.height=`${Math.floor(n)}px`}};var $q,Wq,Bq,Vq,Uq=new WeakMap,Gq=new WeakMap;function Yq(e,t){let r=Uq.get(e);if(!r){const t=new Hq(e,(t=>{const r=Uq.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),Uq.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(Uq.delete(e),r.disconnect())}}var Kq=class{constructor(e,t,r){this.callback=t,JL(this,$q),JL(this,Wq,!1),JL(this,Bq),JL(this,Vq,Rq((e=>{if(!XL(this,Wq)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of XL(this,Bq))if(e.target.contains(t)){this.callback(XL(this,$q).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=Eq(e);for(;r;)t.add(r),r=Eq(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=Yq(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!Gq.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}),Gq.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=Gq.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),Gq.delete(n))}):()=>{}}(e,XL(this,Vq));ZL(this,Bq,n),ZL(this,$q,new Hq(e,t,r)),this.disconnect=()=>{XL(this,Wq)||(ZL(this,Wq,!0),o(),i(),XL(this,$q).disconnect())}}};function Xq(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function Jq(e){try{Xq(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function Zq(e){return!(!fq||!e)&&e===uq(e).scrollingElement}function Qq(e){const t=iq(e),r=Zq(e)?function(e){const{documentElement:t}=uq(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):rq(e),n=Zq(e)?{height:t.innerHeight,width:t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-n.width,y:e.scrollHeight-n.height}};return{rect:r,position:o,isTop:o.current.y<=0,isLeft:o.current.x<=0,isBottom:o.current.y>=o.max.y,isRight:o.current.x>=o.max.x}}function eN(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=Qq(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}}$q=new WeakMap,Wq=new WeakMap,Bq=new WeakMap,Vq=new WeakMap;var tN=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)))}},rN=new tN((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),nN=new tN((e=>setTimeout(e,50))),oN=new Map,iN=oN.clear.bind(oN);function aN(e,t=!1){if(!t)return sN(e);let r=oN.get(e);return r||(r=sN(e),oN.set(e,r),nN.schedule(iN),r)}function sN(e){return iq(e).getComputedStyle(e)}var lN={excludeElement:!0,escapeShadowDOM:!0};function uN(e,t=lN){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(aq(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&gq(a))return t(a.host);if(!sq(a))return lq(a)?t(a.parentElement):i;if(i.has(a))return i;const s=aN(a,!0);if(n&&a===e||function(e,t=aN(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=aN(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 cN(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=Eq(e);for(;n;){if(n===t)return r;const e=rq(n),{x:o,y:i}=dN(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=Eq(n)}return r}function dN(e,t=rq(e)){const r=Math.round(t.width),n=Math.round(t.height);if(sq(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=aN(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function pN(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 fN(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=pN(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 hN=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(hN||{}),mN={x:.2,y:.2},gN={x:10,y:10};function bN(e,t,r,n=25,o=mN,i=gN){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=Qq(e),f=cN(e),h=fN(aN(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new ET(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 vN(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!sq(e))return e.scrollIntoView();var n=function(e){const[t]=uN(e,{limit:1});return null!=t?t:null}(e);if(!sq(n))return;const o=aN(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 yN({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function xN(e,t=aN(e).translate,r=!0){if(r){const t=tq(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=pN(e);if(t)return t}}}if(t){const e=pN(t);if(e)return e}return{x:0,y:0,z:0}}var SN=new tN((e=>setTimeout(e,0))),wN=new Map,CN=wN.clear.bind(wN);function EN(e,t){const r=function(e){const t=e.ownerDocument;let r=wN.get(t);if(r)return r;r=t.getAnimations(),wN.set(t,r),SN.schedule(CN);const n=r.filter((t=>eq(t.effect)&&t.effect.target===e));return wN.set(e,n),r}(e).filter((e=>{var r,n;if(eq(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 RN=class extends ET{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=cN(e),ignoreTransforms:s,getBoundingClientRect:l=rq}=t,u=EN(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||mq())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=aN(e),b=fN(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=eq(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=fN({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 PN(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 AN=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(PN(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(PN(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(PN(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function IN(e){return!!e&&(e instanceof iq(e).Element||oq(e)&&e.nodeType===Node.ELEMENT_NODE)}function MN(e){if(!e)return!1;const{KeyboardEvent:t}=iq(e.target);return e instanceof t}var kN={};function DN(e){const t=null==kN[e]?0:kN[e]+1;return kN[e]=t,`${e}-${t}`}var TN=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/CT.distance(t.shape.center,r),type:LO.PointerIntersection,priority:OO.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=CT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:LO.ShapeIntersection,priority:OO.Normal}}return null})(e)},ON=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?ET.from(n.current.boundingRectangle).corners:void 0,a=ET.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+CT.distance(CT.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:LO.Collision,priority:OO.Normal}},LN=Object.create,qN=Object.defineProperty,NN=Object.defineProperties,jN=Object.getOwnPropertyDescriptor,_N=Object.getOwnPropertyDescriptors,zN=Object.getOwnPropertySymbols,FN=Object.prototype.hasOwnProperty,HN=Object.prototype.propertyIsEnumerable,$N=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),WN=e=>{throw TypeError(e)},BN=(e,t,r)=>t in e?qN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VN=(e,t)=>{for(var r in t||(t={}))FN.call(t,r)&&BN(e,r,t[r]);if(zN)for(var r of zN(t))HN.call(t,r)&&BN(e,r,t[r]);return e},UN=(e,t)=>NN(e,_N(t)),GN=(e,t)=>qN(e,"name",{value:t,configurable:!0}),YN=(e,t)=>{var r={};for(var n in e)FN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&zN)for(var n of zN(e))t.indexOf(n)<0&&HN.call(e,n)&&(r[n]=e[n]);return r},KN=e=>{var t;return[,,,LN(null!=(t=null==e?void 0:e[$N("metadata")])?t:null)]},XN=["class","method","getter","setter","accessor","field","value","get","set"],JN=e=>void 0!==e&&"function"!=typeof e?WN("Function expected"):e,ZN=(e,t,r,n,o)=>({kind:XN[e],name:t,metadata:n,addInitializer:e=>r._?WN("Already initialized"):o.push(JN(e||null))}),QN=(e,t)=>BN(t,$N("metadata"),e[3]),ej=(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=XN[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)&&jN(d<4?o:{get[r](){return oj(this,i)},set[r](e){return aj(this,i,e)}},r));d?f&&d<4&&GN(i,(d>2?"set ":d>1?"get ":"")+r):GN(o,r);for(var y=n.length-1;y>=0;y--)u=ZN(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>nj(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?oj:sj)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>aj(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?JN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?WN("Object expected"):(JN(a=s.get)&&(v.get=a),JN(a=s.set)&&(v.set=a),JN(a=s.init)&&g.unshift(a));return d||QN(e,o),v&&qN(o,r,v),f?4^d?i:v:o},rj=(e,t,r)=>t.has(e)||WN("Cannot "+r),nj=(e,t)=>Object(t)!==t?WN('Cannot use the "in" operator on this value'):e.has(t),oj=(e,t,r)=>(rj(e,t,"read from private field"),r?r.call(e):t.get(e)),ij=(e,t,r)=>t.has(e)?WN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),aj=(e,t,r,n)=>(rj(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),sj=(e,t,r)=>(rj(e,t,"access private method"),r),lj="button",uj="draggable",cj="dnd-kit-description",dj="dnd-kit-announcement",pj={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."},fj={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 hj(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var mj=["dragover","dragmove"],gj=class extends dO{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=cj,announcement:o=dj}={},announcements:i=fj,screenReaderInstructions:a=pj,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:DN(n),u=r?`${o}-${r}`:DN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>rN.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,mj.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),hj(r)&&!mq()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",lj))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",uj))),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&&rN.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var bj,vj,yj,xj,Sj,wj,Cj,Ej,Rj,Pj,Aj,Ij=new Map,Mj=class extends(Sj=fO,xj=[XD],yj=[JD],vj=[JD],bj=[JD],Sj){constructor(e){super(e),ej(Cj,5,this),ij(this,Rj),ij(this,wj,new Set),ij(this,Ej,ej(Cj,8,this,new Set)),ej(Cj,11,this),this.registerEffect(sj(this,Rj,Pj))}register(e){return oj(this,wj).add(e),()=>{oj(this,wj).delete(e)}}addRoot(e){return Hk((()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t})),()=>{Hk((()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t}))}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return bq(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return bq(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}};Cj=KN(Sj),wj=new WeakMap,Ej=new WeakMap,Rj=new WeakSet,Pj=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of oj(this,wj))t.push(sj(this,Rj,Aj).call(this,r,e));return()=>{for(const e of t)e()}},Aj=function(e,t){let r=Ij.get(e);r||(r=new Map,Ij.set(e,r));let n=r.get(t);if(!n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets),0;const o=aq(e)?e.defaultView:e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=o?o:{};if(!i)return()=>{};const a=new i;a.replaceSync(t),e.adoptedStyleSheets.push(a),n={sheet:a,refCount:0,cleanup:()=>{var n;if(aq(e)||gq(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(a);-1!==t&&e.adoptedStyleSheets.splice(t,1)}r.delete(t),0===r.size&&Ij.delete(e)}},r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},tj(Cj,4,"additionalRoots",xj,Mj,Ej),tj(Cj,2,"sourceRoot",yj,Mj),tj(Cj,2,"targetRoot",vj,Mj),tj(Cj,2,"roots",bj,Mj),QN(Cj,Mj);var kj="data-dnd-",Dj=`${kj}dropping`,Tj="--dnd-",Oj=`${kj}dragging`,Lj=`${kj}placeholder`,qj=[Oj,Lj,"popover","aria-pressed","aria-grabbing"],Nj=["view-transition-name"],jj=`\n :is(:root,:host) [${Oj}] {\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(${Tj}top, 0px) !important;\n left: var(${Tj}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Tj}width, auto);\n max-width: var(${Tj}width, auto);\n height: var(${Tj}height, auto);\n max-height: var(${Tj}height, auto);\n transition: var(${Tj}transition) !important;\n }\n\n :is(:root,:host) [${Lj}] {\n transition: none;\n }\n\n :is(:root,:host) [${Lj}='hidden'] {\n visibility: hidden;\n }\n\n [${Oj}] * {\n pointer-events: none !important;\n }\n\n [${Oj}]:not([${Dj}]) {\n translate: var(${Tj}translate) !important;\n }\n\n [${Oj}][style*='${Tj}scale'] {\n scale: var(${Tj}scale) !important;\n transform-origin: var(${Tj}transform-origin) !important;\n }\n\n @layer {\n :where([${Oj}][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 [${Oj}]::backdrop, [${kj}overlay]:not([${Oj}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function _j(e,t="hidden"){return Hk((()=>{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=`${kj}${DN("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(yq(e)&&yq(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),xq(e)&&xq(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),wq.set(a,i),r.push((()=>{wq.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(Lj,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function zj(e,t){return e===t||Eq(e)===Eq(t)}function Fj(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&IN(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>Jq(t)))}function Hj(e){return"TR"===e.tagName}var $j,Wj,Bj,Vj,Uj,Gj,Yj,Kj=250,Xj="ease";var Jj=class extends(Wj=dO,$j=[XD],Wj){constructor(e,t){super(e,t),ij(this,Uj),ij(this,Vj,ej(Bj,8,this)),ej(Bj,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(Mj),n=null==r?void 0:r.register(jj);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(sj(this,Uj,Gj).bind(this,r)),this.registerEffect(sj(this,Uj,Yj))}};Bj=KN(Wj),Vj=new WeakMap,Uj=new WeakSet,Gj=function(e){const{overlay:t}=this;if(!t||!e)return;const r=bq(t);return r?e.addRoot(r):void 0},Yj=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=cN(f),m=cN(c),g=!zj(c,f),b=new RN(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 AN(f),{transition:R,translate:P,boxSizing:A,paddingBlockStart:I,paddingBlockEnd:M,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=aN(c),N="clone"===d,j="content-box"===A,_=j?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=j?parseInt(I)+parseInt(M)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:_j(l,N?"clone":"hidden"),H=Hk((()=>MN(o.dragOperation.activatorEvent)));if("none"!==P){const e=pN(P);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=Hk((()=>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,W=w*h.scaleY+h.y,B=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:B,y:W},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-B,U=p.coordinates.y-W,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={left:C+K.x,top:w+K.y};f.setAttribute(Oj,"true");const J=Hk((()=>a.transform)),Z=null!=(t=p.translate)?t:{x:0,y:0},Q=J.x*h.scaleX+Z.x,ee=J.y*h.scaleY+Z.y;if(E.set({width:x-_,height:S-z,top:X.top,left:X.left,translate:`${Q}px ${ee}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${v} ${y}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},Tj),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let te,re,ne;Xq(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),Jq(f),f.addEventListener("beforetoggle",Fj));const oe=(ie={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:()=>te,getSavedCellWidths:()=>ne,setSavedCellWidths:e=>{ne=e}},new ResizeObserver((()=>{var e,t;const r=new RN(ie.placeholder,{frameTransform:ie.frameTransform,ignoreTransforms:!0}),n=null!=(e=ie.transformOrigin)?e:{x:1,y:1},o=(ie.width-r.width)*n.x+ie.delta.x,i=(ie.height-r.height)*n.y+ie.delta.y;if(ie.styles.set({width:r.width-ie.widthOffset,height:r.height-ie.heightOffset,top:ie.top+i,left:ie.left+o},Tj),null==(t=ie.getElementMutationObserver())||t.takeRecords(),Hj(ie.element)&&Hj(ie.placeholder)){const e=Array.from(ie.element.cells),t=Array.from(ie.placeholder.cells);ie.getSavedCellWidths()||ie.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`}}ie.dragOperation.shape=new RN(ie.feedbackElement)})));var ie;const ae=new RN(f);Hk((()=>a.shape=ae));const se=iq(f),le=e=>{this.manager.actions.stop({event:e})},ue=vq(se);H&&se.addEventListener("resize",le),"idle"===Hk((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),F&&(oe.observe(F),te=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-")||qj.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(PN(e)&&PN(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(Nj.includes(e)||e.startsWith(Tj))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),re=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 Jq(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void Jq(r)}}));return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const ce=null==(r=o.dragOperation.source)?void 0:r.id,de=()=>{var e;if(!H||null==ce)return;const t=o.registry.draggables.get(ce),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;sq(r)&&r.focus()},pe=()=>{var e;if(null==te||te.disconnect(),null==re||re.disconnect(),oe.disconnect(),se.removeEventListener("resize",le),Xq(f)&&(f.removeEventListener("beforetoggle",Fj),f.removeAttribute("popover")),f.removeAttribute(Oj),E.reset(),ne&&Hj(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ne[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()},fe=null==i?void 0:i.dropAnimation,he=QD((()=>{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=Hk((()=>a.modifiers)),l=Hk((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=H&&!ue?"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`},Tj),null==te||te.takeRecords(),l&&l!==ae&&i&&!s.length){const e=CT.delta(o,i);a.shape=ET.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new RN(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";let e=n.current.translate;const t=null!=e;if(e||c===f||(e={x:0,y:0}),!e||null===fe)return void pe();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=Kj,easing:s=Xj}=null!=i?i:{};Jq(e.feedbackElement);const[,l]=null!=(t=tq(e.feedbackElement,(e=>"translate"in e)))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:zj(e.feedbackElement,u)?null:void 0},d=new RN(e.feedbackElement,c),p=null!=(n=pN(aN(e.feedbackElement).translate))?n:e.translate,f=new RN(u,c),h=ET.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},Tj),e.feedbackElement.setAttribute(Dj,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),yN({element:e.feedbackElement,keyframes:UN(VN(VN({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:vq(iq(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then((()=>{e.feedbackElement.removeAttribute(Dj),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}({element:c,feedbackElement:f,placeholder:F,translate:e,moved:t,transition:R,alignment:l.alignment,styles:E,animation:null!=fe?fe:void 0,getElementMutationObserver:()=>te,cleanup:pe,restoreFocus:de})}))}}));return()=>{pe(),he()}},tj(Bj,4,"overlay",$j,Jj,Vj),QN(Bj,Jj),Jj.configure=uO(Jj);var Zj,Qj,e_,t_,r_,n_,o_,i_=Jj,a_=!0;e_=[XD],t_=hN.Forward,Zj=[XD],Qj=hN.Reverse;var s_=class{constructor(){ij(this,n_,ej(r_,8,this,a_)),ej(r_,11,this),ij(this,o_,ej(r_,12,this,a_)),ej(r_,15,this)}isLocked(e){return e!==hN.Idle&&(null==e?this[hN.Forward]===a_&&this[hN.Reverse]===a_:this[e]===a_)}unlock(e){e!==hN.Idle&&(this[e]=false)}};r_=KN(null),n_=new WeakMap,o_=new WeakMap,tj(r_,4,t_,e_,s_,n_),tj(r_,4,Qj,Zj,s_,o_),QN(r_,s_);var l_,u_,c_,d_,p_,f_,h_=[hN.Forward,hN.Reverse],m_=class{constructor(){this.x=new s_,this.y=new s_}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},g_=class extends dO{constructor(e){super(e);const t=Yk(new m_);let r=null;this.signal=t,oD((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new m_);const{delta:o}=e.dragOperation.position;if(r){const e={x:b_(o.x,r.x),y:b_(o.y,r.y)},n=t.peek();zk((()=>{for(const t of OT)for(const r of h_)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function b_(e,t){return Math.sign(e-t)}var v_=class extends(u_=fO,l_=[XD],u_){constructor(e){super(e),ij(this,d_,ej(c_,8,this,!1)),ej(c_,11,this),ij(this,p_),ij(this,f_,(()=>{if(!oj(this,p_))return;const{element:e,by:t}=oj(this,p_);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 aj(this,p_,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:y_(n.x),y:y_(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=eN(e,n);if(r.x||r.y){const{speed:r,direction:s}=bN(e,o,i);if(a)for(const e of OT)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=oj(this,p_))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return aj(this,p_,{element:e,by:{x:a,y:l}}),rN.schedule(oj(this,f_)),!0}}}}}return aj(this,p_,void 0),!1};let t=null,r=null;const n=YD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=Sq(bq(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=YD((()=>{const t=n.value,{documentElement:o}=uq(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=uN(n,{excludeElement:!1});return r=e,e}}if(t){const e=uN(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),KD);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new g_(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&MN(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function y_(e){return e>0?hN.Forward:e<0?hN.Reverse:hN.Idle}c_=KN(u_),d_=new WeakMap,p_=new WeakMap,f_=new WeakMap,tj(c_,4,"autoScrolling",l_,v_,d_),QN(c_,v_);var x_,S_=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()})),w_=class extends dO{constructor(e,t){super(e);const r=e.registry.plugins.get(v_);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=oD((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>S_.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},C_={capture:!0,passive:!0},E_=class extends fO{constructor(e){super(e),ij(this,x_),this.handleScroll=()=>{null==oj(this,x_)&&aj(this,x_,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),aj(this,x_,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=oD((()=>{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,C_),()=>{o.removeEventListener("scroll",this.handleScroll,C_)}}}))}};x_=new WeakMap;function R_(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var P_,A_=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}}),I_=class extends SL{constructor(e,t){super(e),this.manager=e,this.options=t,ij(this,P_,[]),this.listeners=new Cq,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!IN(e.target))return;if(t.disabled)return;const{keyboardCodes:n=A_.keyboardCodes,preventActivation:o=A_.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=oD((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{MN(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(),vN(n);const{center:o}=new RN(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=uq(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];oj(this,P_).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=A_.keyboardCodes}=null!=r?r:{};if(D_(e,[...n.end,...n.cancel])){e.preventDefault();const t=D_(e,n.cancel);this.handleEnd(e,t)}else D_(e,n.up)?this.handleMove("up",e):D_(e,n.down)&&this.handleMove("down",e),D_(e,n.left)?this.handleMove("left",e):D_(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:A_.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(w_);!1===(null==e?void 0:e.disabled)&&(e.disable(),oj(this,P_).push((()=>{e.enable()})))}cleanup(){oj(this,P_).forEach((e=>e())),aj(this,P_,[])}destroy(){this.cleanup(),this.listeners.clear()}};P_=new WeakMap,I_.configure=uO(I_),I_.defaults=A_;var M_,k_=I_;function D_(e,t){return t.includes(e.code)}var T_,O_;M_=new WeakMap;T_=new WeakMap,O_=new WeakMap;var L_=class{};L_.Delay=class extends CL{constructor(){super(...arguments),ij(this,T_),ij(this,O_)}onEvent(e){switch(e.type){case"pointerdown":aj(this,O_,pq(e)),aj(this,T_,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!oj(this,O_))return;const{x:t,y:r}=pq(e);AT({x:t-oj(this,O_).x,y:r-oj(this,O_).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){oj(this,T_)&&(clearTimeout(oj(this,T_)),aj(this,O_,void 0),aj(this,T_,void 0))}},L_.Distance=class extends CL{constructor(){super(...arguments),ij(this,M_)}onEvent(e){switch(e.type){case"pointerdown":aj(this,M_,pq(e));break;case"pointermove":if(!oj(this,M_))return;const{x:t,y:r}=pq(e),n={x:t-oj(this,M_).x,y:r-oj(this,M_).y},{tolerance:o}=this.options;if(o&&AT(n,o))return void this.abort();AT(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){aj(this,M_,void 0)}};var q_,N_=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!IN(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new L_.Delay({value:250,tolerance:5})]:function(e){if(!IN(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 L_.Delay({value:200,tolerance:0})]:[new L_.Delay({value:200,tolerance:10}),new L_.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!IN(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 ')))))}}),j_=class extends SL{constructor(e,t){super(e),this.manager=e,this.options=t,ij(this,q_,new Set),this.listeners=new Cq,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=N_.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=oD((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=iq(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&&($_(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||!IN(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=N_.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=sq(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=cN(t.element),{x:s,y:l}=pq(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 wL(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=hq(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:i?this.handleCancel:z_,options:{capture:!0}}]);oj(this,q_).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=pq(e),n=cN(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,rN.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=uq(t.target).body;o.setPointerCapture(t.pointerId);const i=IN(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:z_,options:{passive:!1}},{type:"click",listener:z_},{type:"contextmenu",listener:z_},{type:"keydown",listener:this.handleKeyDown}]);oj(this,q_).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},oj(this,q_).forEach((e=>e())),oj(this,q_).clear()}destroy(){this.cleanup(),this.listeners.clear()}};q_=new WeakMap,j_.configure=uO(j_),j_.defaults=N_;var __=j_;function z_(e){e.preventDefault()}function F_(){}var H_=new WeakSet;function $_(e){e&&!H_.has(e)&&(e.addEventListener("touchmove",F_,{capture:!1,passive:!1}),H_.add(e))}var W_,B_,V_,U_,G_,Y_,K_,X_,J_,Z_,Q_,ez,tz,rz,nz,oz,iz,az,sz={modifiers:[],plugins:[gj,w_,class extends dO{constructor(e,t){super(e,t),this.manager=e;const r=YD((()=>{var e;return uq(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=oD((()=>{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()}}))}},i_,class extends dO{constructor(e,t){super(e,t),this.manager=e,this.destroy=oD((()=>{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),R_(),document.addEventListener("selectionchange",R_,{capture:!0}),()=>{document.removeEventListener("selectionchange",R_,{capture:!0}),e.remove()}}}))}}],sensors:[__,k_]},lz=class extends GL{constructor(e={}){const{plugins:t=sz.plugins,sensors:r=sz.sensors,modifiers:n=[]}=e;super(UN(VN({},e),{plugins:[E_,v_,Mj,...t],sensors:r,modifiers:n}))}},uz=class extends(U_=vL,V_=[XD],B_=[XD],W_=[XD],U_){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=YN(r,["element","effects","handle","feedback"]);super(VN({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(cO))?t:[...r.sensors]).map((e=>{const t=e instanceof SL?e:r.registry.register(e.plugin),n=e instanceof SL?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),ij(this,Y_,ej(G_,8,this)),ej(G_,11,this),ij(this,K_,ej(G_,12,this)),ej(G_,15,this),ij(this,X_,ej(G_,16,this)),ej(G_,19,this),this.element=n,this.handle=i,this.feedback=a}};G_=KN(U_),Y_=new WeakMap,K_=new WeakMap,X_=new WeakMap,tj(G_,4,"handle",V_,uz,Y_),tj(G_,4,"element",B_,uz,K_),tj(G_,4,"feedback",W_,uz,X_),QN(G_,uz);var cz=class extends(Q_=yL,Z_=[XD],J_=[XD],Q_){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=YN(r,["element","effects"]);const{collisionDetector:a=TN}=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 RN(r),o=Hk((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=Yk(!1);super(UN(VN({},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 Kq(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),ij(this,iz),ij(this,tz,ej(ez,8,this)),ej(ez,11,this),ij(this,az,ej(ez,12,this)),ej(ez,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){aj(this,iz,e,oz)}get element(){var e;return null!=(e=this.proxy)?e:oj(this,iz,nz)}};function dz(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}ez=KN(Q_),tz=new WeakMap,iz=new WeakSet,az=new WeakMap,rz=tj(ez,20,"#element",Z_,iz,tz),nz=rz.get,oz=rz.set,tj(ez,4,"proxy",J_,cz,az),QN(ez,cz);var pz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?N:T;function fz(){const e=I(0)[1];return q((()=>{e((e=>e+1))}),[e])}function hz(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=fz();return pz((()=>oD((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?V(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(A((()=>YD((()=>n.current()))),t),r)}function mz(e,t){const r=M(new Map),n=fz();return pz((()=>{if(e)return oD((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=Hk((()=>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?V(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 gz(e,t){e()}function bz(e){const t=M(e);return pz((()=>{t.current=e}),[e]),t}function vz(e,t,r=T,n=Object.is){const o=M(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function yz(e,t){const r=M(dz(e));pz((()=>{const n=dz(e);n!==r.current&&(r.current=n,t(n))}))}var xz=Object.getOwnPropertySymbols,Sz=Object.prototype.hasOwnProperty,wz=Object.prototype.propertyIsEnumerable,Cz=new lz,Ez=k(Cz),Rz=_(j((({children:e},t)=>{const[r,n]=I(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}))),F((()=>{e(),n((e=>e+1))}))}})),[]);return pz((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),H(t,(()=>a)),null}))),Pz=[void 0,KD];function Az(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)Sz.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&xz)for(var n of xz(e))t.indexOf(n)<0&&wz.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=bz(o),m=bz(i),g=bz(s),b=bz(a),v=bz(l),y=bz(n),x=function(e){const t=M(null);t.current||(t.current=e());return z((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new lz(u)}));return T((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=x;x.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=h.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=m.current)?void 0:t.call(m,e,x)})),r.addEventListener("dragover",(e=>{const r=g.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragmove",(e=>{const r=b.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragend",(e=>{const r=v.current;r&&t((()=>r(e,x)))})),r.addEventListener("collision",(e=>{var t;return null==(t=y.current)?void 0:t.call(y,e,x)}))];return()=>n.forEach((e=>e()))}),[x]),vz(d,(()=>x&&(x.plugins=null!=d?d:sz.plugins)),...Pz),vz(f,(()=>x&&(x.sensors=null!=f?f:sz.sensors)),...Pz),vz(p,(()=>x&&(x.modifiers=null!=p?p:sz.modifiers)),...Pz),or.jsxs(Ez.Provider,{value:x,children:[or.jsx(Rz,{ref:c,children:r}),r]})}function Iz(){return L(Ez)}function Mz({children:e,className:t,style:r,tag:n,disabled:o}){var i;const a=M(null),s=Iz(),l=null!=(i=hz((()=>null==s?void 0:s.dragOperation.source),[s]).value)?i:null,u="function"==typeof o?o(l):o;T((()=>{if(!a.current||!s||u)return;const e=s.plugins.find((e=>e instanceof i_));return e?(e.overlay=a.current,()=>{e.overlay=void 0}):void 0}),[s,u]);const c=A((()=>{if(!s)return null;const e=new Proxy(s.registry,{get:(e,t)=>"register"===t||"unregister"===t?kz:e[t]});return new Proxy(s,{get:(t,r)=>"registry"===r?e:t[r]})}),[s]);return or.jsx(Ez.Provider,{value:c,children:w(n||"div",{ref:a,className:t,style:r,"data-dnd-overlay":!0},function(){if(!l||u)return null;if("function"==typeof e)return or.jsx(Dz,{source:l,children:e});return e}())})}function kz(){return()=>{}}function Dz({children:e,source:t}){return e(mz(t))}var Tz,Oz,Lz,qz,Nz,jz=Object.create,_z=Object.defineProperty,zz=Object.getOwnPropertyDescriptor,Fz=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Hz=e=>{throw TypeError(e)},$z=["class","method","getter","setter","accessor","field","value","get","set"],Wz=e=>void 0!==e&&"function"!=typeof e?Hz("Function expected"):e,Bz=(e,t,r,n,o)=>({kind:$z[e],name:t,metadata:n,addInitializer:e=>r._?Hz("Already initialized"):o.push(Wz(e||null))}),Vz=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=$z[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,zz(o,r)),h=n.length-1;h>=0;h--)(l=Bz(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,Wz(a)&&(f[d]=a);return f&&_z(o,r,f),o},Uz=(e,t,r)=>t.has(e)||Hz("Cannot "+r),Gz=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)}},Yz=class extends(Lz=tT,Oz=[JD],Tz=[JD],Lz){constructor(e){var t,r,n;super(Gz.from(e),((e,t)=>Gz.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)})(Nz,5,this),t=this,n=0,(r=qz).has(t)?Hz("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 Gz.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=Gz.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(Uz(a=this,s=qz,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);zk((()=>{((e,t,r)=>{Uz(e,t,"write to private field"),t.set(e,r)})(this,qz,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(Gz.from(e)),this.velocity={x:0,y:0}}};Nz=(e=>{var t;return[,,,jz(null!=(t=null==e?void 0:e[Fz("metadata")])?t:null)]})(Lz),qz=new WeakMap,Vz(Nz,2,"delta",Oz,Yz),Vz(Nz,2,"direction",Tz,Yz),((e,t)=>{((e,t,r)=>{t in e?_z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,Fz("metadata"),e[3])})(Nz,Yz);var Kz=(e=>(e.Horizontal="x",e.Vertical="y",e))(Kz||{});function Xz(e){const t=Iz();T((()=>{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(Kz);const Jz=()=>{const[e,t]=I(!1);return Xz({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?or.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},Zz=()=>{const{flags:e}=uM(iM,(e=>e.env)),t=uM(iM,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},Qz=(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}),eF=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),tF=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),rF=e=>e.atTop?2:1,nF=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],oF=e=>e?.setAttribute("tabIndex","0"),iF=e=>e?.setAttribute("tabIndex","-1"),aF=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(iF)},sF=e=>{e?.focus(),oF(e)},lF=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${lE}`);sF(t)}),0)},uF=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{aF(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 sE.Down:u<s&&u++;break;case sE.Up:u>a&&u--;break;case sE.Right:if(i)break;[u,c]="rtl"===n?eF({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):tF({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case sE.Left:if(i)break;[u,c]="rtl"===n?tF({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):eF({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case sE.Home:(II(e)||i)&&(u=a),i||(c=0);break;case sE.End:(II(e)||i)&&(u=s),i||(c=l);break;case sE.PageDown:u=Math.min(s,u+10);break;case sE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=nF(t,a);return sF(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}},cF=(e,t,r,n)=>{aF(t),r(e),n.enabled&&!n.active?n.focus?.():sF(nF(t,e))},dF=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${oE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${GA.First}`),r=e.querySelector(`.${GA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},pF=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),fF=mc(Bh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...lI,...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}}))),hF=mc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:iI,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),mF=parseInt(iI,10)/2,gF=mc("div")({position:"absolute",bottom:-mF,left:`calc(50% - ${mF}px)`}),bF={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},vF=mc(ip)({height:"100%"}),yF=mc("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?{...bF,whiteSpace:"nowrap",display:r?"block":void 0}:{...bF,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),xF=mc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),SF="cell-text",wF=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=uM(iM,(e=>e.baseProps));return o?or.jsx(yF,{"data-testid":SF,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):or.jsx(yF,{"data-testid":SF,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},CF=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,{changeSortOrder:s,interactions:l,embed:u,styleService:c,layout:d,direction:p}=uM(iM,(e=>e.baseProps)),f=sR(cR),h=sR(uR),m=uM(iM,(e=>e.columnWidths[t.pageColIdx])),g=uM(iM,(e=>e.baseProps.model)),b=M(null),v=M(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=VC({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:aI});let o=!1,i=!1,a=!1;const s=t.isLocked,l=t.isActivelySorted,u=r-25,c=s?20:0,d=l?20:0;let p=n(t.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({styleService:c,column:t,columnWidth:m}),{StartIcon:x,EndIcon:S,LockIcon:w}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?or.jsx(WM,{height:iI,"data-testid":"head-cell-sort-ascending-icon"}):or.jsx(UM,{height:iI,"data-testid":"head-cell-sort-descending-icon"}),a=r?or.jsx(hF,{align:t,dir:o,children:i}):void 0,s=n?or.jsx(SI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:or.jsx(pF,{height:iI,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,y,p);return or.jsxs(xI,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:fI(t,i,p),children:[w,or.jsxs(yI,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:p,isPagination:i,children:[x,or.jsx(wF,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),S]}),r?or.jsxs(or.Fragment,{children:[or.jsx(ak,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:f,anchorRef:b,menuAvailabilityFlags:{[nk.Sorting]:!0,[nk.Searching]:!0,[nk.Selections]:!0,[nk.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:l,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),s(t,r))},searchRelatedArgs:{embed:u,listboxRef:v},selectionRelatedArgs:{app:h,qStateName:d.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:lF},shouldShowMenuIcon:y.shouldShowMenuIcon,model:g,direction:p,isPagination:i,isAccessibleHeader:!0}),or.jsx(vI,{ref:v,direction:p,isPagination:i}),or.jsx(vI,{ref:b,direction:p})]}):null]})},EF=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),RF=(e,t)=>e.isCyclic&&t,PF=({column:e})=>{const{direction:t,model:r,styleService:n}=uM(iM,(e=>e.baseProps)),o=S.useRef(null),[i,a]=S.useState(!1),s=gM({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return or.jsxs(or.Fragment,{children:[or.jsx(CI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:or.jsx(EF,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),or.jsx(jM,{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:GM,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},AF=e=>e.isLocked,IF=({column:e})=>{const t=sR(uR),r=uM(iM,(e=>e.baseProps.layout.qStateName)),n=uM(iM,(e=>e.baseProps.styleService));return or.jsx(CI,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=zM(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:or.jsx(pF,{height:16,"data-testid":"head-cell-lock-icon"})})},MF=({column:e,open:t,setOpen:r,isPagination:n})=>{const{interactions:o,layout:i,direction:a,changeSortOrder:s,embed:l,styleService:u}=uM(iM,(e=>e.baseProps)),c=sR(cR),d=sR(uR),p=uM(iM,(e=>e.baseProps.model)),f=S.useRef(null),h=S.useRef(null);return or.jsxs(CI,{tabIndex:-1,hoverBackground:u.headerMenuHoverBackground,activeBackground:u.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[or.jsx(ak,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:c,anchorRef:f,menuAvailabilityFlags:{[nk.Sorting]:!0,[nk.Searching]:!0,[nk.Selections]:!0,[nk.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:o,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:l,listboxRef:h},selectionRelatedArgs:{app:d,qStateName:i.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:lF},shouldShowMenuIcon:!0,model:p,direction:a,isPagination:n,isAccessibleHeader:!1,iconSize:16}),or.jsx(vI,{ref:h,direction:a,isPagination:n}),or.jsx(vI,{ref:f,direction:a})]})},kF=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,DF=(e,t)=>{const r=M(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])},TF=mc(ip)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),OF=({children:e})=>{const t=S.useRef(null),[r,n]=I((()=>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=q((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach((e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)})),n((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[o]);return DF(t,i),or.jsx(TF,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})},LF=({children:e})=>e,qF=(e,t)=>!e.isLocked&&e.isDim&&t,NF=({column:e,open:t,setOpen:r})=>{const{embed:n,direction:o,layout:i,styleService:a}=uM(iM,(e=>e.baseProps));sR(uR);const s=S.useRef(null),l=q((()=>{r(!1)}),[r]),u=_M({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:s},selectionRelatedArgs:{qStateName:i.qStateName},direction:o,onPopoverClose:l});return or.jsx(CI,{tabIndex:-1,hoverBackground:a.headerMenuHoverBackground,activeBackground:a.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:or.jsx(JM,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},jF=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),_F=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),zF=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?or.jsx(_F,{height:iI,"data-testid":"head-cell-sort-ascending-icon"}):or.jsx(jF,{height:iI,"data-testid":"head-cell-sort-descending-icon"});return r?or.jsx(gF,{children:n}):void 0},FF=0,HF=1,$F=2,WF=3,BF=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i}=e,{styleService:a}=uM(iM,(e=>e.baseProps)),s=(()=>{const e=uM(iM,(e=>e.baseProps.interactions.active)),t=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:l}=VC(a.header),[u,c]=S.useState(!1);return or.jsxs(OF,{children:[or.jsx(LF,{prio:$F,minWidth:bI,children:AF(t)?or.jsx(IF,{column:t}):null},"Lock"),or.jsx(LF,{prio:HF,minWidth:bI,children:RF(t,s)?or.jsx(PF,{column:t}):null},"Cyclic"),or.jsx(LF,{ignore:!0,children:or.jsx(zF,{column:t})},"Sort"),or.jsx(LF,{minWidth:l(t.label)+8,children:or.jsx(wI,{justifyContent:t.headTextAlign,children:or.jsx(wF,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),or.jsx(LF,{prio:FF,minWidth:bI,children:u||qF(t,s)?or.jsx(NF,{open:u,setOpen:c,column:t}):null},"Search"),or.jsx(LF,{prio:WF,minWidth:bI,children:s?or.jsx(MF,{column:t,open:r,setOpen:n,isPagination:o}):null},"Menu")]})},VF=mc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),UF=()=>{},GF=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=uM(iM,(e=>e.baseProps)),o=uM(iM,(e=>e.showRightBorder)),i=uM(iM,(e=>e.tableData.totalsPosition)),a=!1,s=Zz()?CF:BF;return or.jsx(VF,{className:"sn-table-cell",applicableStyle:{...r.header,...Qz(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:mI(n,a,o),borderLeftWidth:gI(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:or.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:UF})})},YF=({isPagination:e})=>{const{columns:t}=uM(iM,(e=>e.tableData)),[r,n]=I();Xz({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?or.jsx(Mz,{children:or.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:or.jsx(GF,{column:o,isPagination:e})})}):null},KF=[__.configure({activationConstraints:[new L_.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],XF=sz.plugins.filter((e=>e!==gj)),JF=({children:e})=>{const{model:t}=uM(iM,(e=>e.baseProps)),{columns:r}=uM(iM,(e=>e.tableData));return or.jsx(Az,{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||!("getEffectiveProperties"in 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:KF,plugins:XF,children:e})};function ZF(e,t){const r=M(!1);T((()=>{r.current?e():r.current=!0}),t)}t.meta.env&&t.meta.env.MODE;let QF=!1;function eH(e,r){"production"===(t.meta.env?t.meta.env.MODE:void 0)||QF||(console.warn("[DEPRECATED] atomFamily is deprecated and will be removed in v3. Please use the `jotai-family` package instead: https://github.com/jotaijs/jotai-family"),QF=!0);let n=null;const o=new Map,i=new Set,a=t=>{let r;if(r=o.get(t),void 0!==r){if(!(null==n?void 0:n(r[1],t)))return r[0];a.remove(t)}const i=e(t);return o.set(t,[i,Date.now()]),s("CREATE",t,i),i},s=(e,t,r)=>{for(const n of i)n({type:e,param:t,atom:r})};return a.unstable_listen=e=>(i.add(e),()=>{i.delete(e)}),a.getParams=()=>o.keys(),a.remove=e=>{{if(!o.has(e))return;const[t]=o.get(e);o.delete(e),s("REMOVE",e,t)}},a.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,r]]of o)n(r,e)&&(o.delete(e),s("REMOVE",e,t))},a}!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},r){var n;let o,i;const a={getItem:(t,n)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==r?void 0:r.reviver)}catch(e){return n}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?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 s;try{s=null==(n=e())?void 0:n.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(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)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,(e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)}))))}();const tH=KE(YA),rH=eH((e=>KE((t=>{const[r,n]=t(tH);return 0===r&&n===e})))),nH=()=>{const{downloadService:e}=uM(iM,(e=>e.baseProps));T((()=>{e.notifyIsDoneRendering()}))},oH=(e,t,r)=>{const{rootElement:n,keyboard:o}=uM(iM,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=uM(iM,(e=>e.tableData)),[u,c]=function(e){return[sR(e),lR(e)]}(tH),d=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal()));ZF((()=>{const r=((e,t,r=!1)=>{const n=[rF(t),e[1]];return r?n:YA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(aF(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=nF(t,e);r.current?(sF(s),r.current=!1):oF(s),n&&(a({keys:[s?.textContent??""]}),AI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},iH=(e,t,r)=>{T((()=>{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])},aH=e=>{qC(e),II(e)&&gE(e.currentTarget)},sH=e=>{TI(e.evt)&&(qC(e.evt),uF(e))},lH=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!TI(t))return;qC(t);const i=((e,t)=>[e.pageRowIdx+rF(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?rF(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=uF({...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:VA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):AI(o,a,i)})({...e,nextCell:s})},uH=e=>{const{evt:t}=e;MI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{qC(e);const a=Math.ceil(t/r)-1;e.key===sE.Right&&n<a?(o(),i(n+1)):e.key===sE.Left&&n>0&&(o(),i(n-1))})(e):t.key===sE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(qC(e),t.blur?.(!0))})(e):kI(t.key)&&qC(t)},cH=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(BA.Disabled))return void qC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case sE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{qC(e),t.isSelectable&&r&&n({type:VA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case sE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{qC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case sE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(qC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case sE.C:aH(t);break;case sE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(qC(e),LC(e.currentTarget,t,e.shiftKey))})(n);break;default:lH(n)}},dH=e=>{const t=uM(iM,(e=>e.isAdjustingWidth)),r=uM(iM,(e=>e.setXScrollbarWidth)),n=uM(iM,(e=>e.setYScrollbarWidth)),o=uM(iM,(e=>e.eventEmitter)),i=M();DF(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()})),T((()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}}),[o])},pH=mc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),fH=mc(Yh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),hH=mc(Th,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),mH=()=>or.jsxs(or.Fragment,{children:[or.jsx(pH,{className:GA.First,"data-testid":GA.First,"aria-live":"polite","aria-atomic":"true"}),or.jsx(pH,{className:GA.Second,"data-testid":GA.Second,"aria-live":"polite","aria-atomic":"true"})]}),gH=e=>{const t=M(new Map),r=M(null);T((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=q(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=q((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return A((()=>({addTask:n,removeTask:o})),[n,o])},bH=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),vH=()=>gH(bH),yH=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{T((()=>{const i=()=>{t({type:VA.Reset})},a=()=>{t({type:VA.Clear})},s=()=>{o.current?.contains(document.activeElement)?r():n.enabled&&n.blur?.(!0),i()};return e?.on("deactivated",i),e?.on("canceled",i),e?.on("confirmed",s),e?.on("cleared",a),()=>{e?.removeListener("deactivated",i),e?.removeListener("canceled",i),e?.removeListener("confirmed",s),e?.removeListener("cleared",a)}}),[e,n,t,r,o])},xH=e=>{e.stopPropagation()},SH=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:xH,color:IC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),wH=({href:e,text:t,interactions:r,color:n})=>or.jsx(nf,{...SH({href:e,text:t,interactions:r,color:n}),children:t}),CH=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),EH=window.cancelIdleCallback??(e=>{clearTimeout(e)}),RH="qDimensionInfo/0",PH="qMeasureInfo/0",AH="x",IH="y",MH=e=>({key:"bars",type:"box",data:{extract:{field:RH,props:{start:0,end:{field:PH}}}},settings:{major:{scale:AH},minor:{scale:IH},box:{maxWidthPx:8,fill:{fn:e}}}}),kH=e=>({key:"p",type:"point",data:{extract:{field:RH,props:{y:{field:PH}}}},settings:{x:{scale:AH},y:{scale:IH},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),DH=({qNum:e})=>void 0===e?0:Math.sign(e),TH=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=TC(e,t?.negative,r),a=TC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:RH,props:{start:0,end:{field:PH,value:DH}}}},settings:{major:{scale:AH},minor:{scale:IH},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}}}}},OH=(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=TC(e,t?.main,o),l=TC(e,t?.max,s),u=TC(e,t?.min,s),c=TC(e,t?.first,s),d=TC(e,t?.last,s);return e=>{const t=IH in e.datum?IH:"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[MH(a)];case"dots":return[kH(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:RH,props:{v:{field:PH}}}},settings:{coordinates:{major:{scale:AH},minor:{scale:IH,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(TC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,kH(a)]:[t]}case"posNeg":return[TH(e,n)];default:return[]}},LH=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"}),qH=(e,t,r,n)=>({y:{data:{field:PH},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:RH}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),NH=G();NH.use(U),NH.renderer.prio(["canvas"]);const jH={resolve:()=>{},promise:{}},_H=({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?Dt():jH);return{addChartPromiseToQueue:q((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:q((()=>{if(null===t.current||null!==e.current)return;u();r.current=CH((()=>{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 NH.chart({element:e,data:{type:"q",key:"qHyperCube",data:LH(s)},settings:{scales:qH(a,l,u,i),components:OH(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:q((()=>{null!==r.current&&EH(r.current),r.current=null,l()}),[r,l])}},zH=e=>{const t=M(null),r=M(!1);return q((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(EH(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=CH((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},FH=({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}=_H({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=q((e=>{e.isIntersecting?n():r()}),[n,r]);T((()=>{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})=>{T((()=>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=zH(t);T((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},HH=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=FH({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return or.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},$H=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}`},WH=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},BH=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=uM(iM,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=or.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:WH(s),objectPosition:$H(l),overflow:"hidden"}});return n?or.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?cI(o,e):void 0},children:c}):c},VH=j(((e,t)=>or.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:or.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),UH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),GH=j(((e,t)=>or.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:[or.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"}),or.jsx("use",{fillRule:"evenodd"})]}))),YH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),KH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),XH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),JH=j(((e,t)=>or.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:or.jsx("path",{d:"M2 7.5h12v1H2z"})}))),ZH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),QH=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),e$=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),t$=j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),r$={m:j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":e$,R:_F,S:jF,T:j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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:j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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:QH,Q:XH,"è":j(((e,t)=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:or.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"})}))),"¢":YH,"©":GH,"23F4":KH,2013:t$,"&":ZH,add:VH,"minus-2":JH,dot:UH},n$=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&r$[t];return o&&or.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:or.jsx(o,{style:{height:e}})})},o$=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=uM(iM,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=rI(e,t,i,o),d=(e=>parseInt(e||iI,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?or.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&&n$({size:d,iconKey:f,color:p}),or.jsx(wF,{isNumeric:!0,children:a}),"right"===h&&n$({size:d,iconKey:f,color:p})]}):n$({size:d,iconKey:f,color:p})},i$=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,a$=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const{interactions:l,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=uM(iM,(e=>e.baseProps)),h=uM(iM,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==NR.Link||h||(m=or.jsx(wH,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===NR.Image)return or.jsx(BH,{representation:t.representation,textStyle:r,maxImageHeight:i$(u,o),wrapInContainer:!n});const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==NR.Indicator||Number.isNaN(g)?t.representation.type===NR.MiniChart&&t.representation.miniChart&&!t.isNull?or.jsx(HH,{height:i$(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):or.jsx(wF,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):or.jsx(o$,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},s$=()=>or.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:or.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),l$=mc("div")({"& path":{stroke:"none !important"}}),u$=({children:e,cellSelectionState:t})=>t===BA.Selected?or.jsxs(xF,{children:[e,or.jsx(l$,{children:or.jsx(s$,{})})]}):e,c$=e=>{const t=function(){const e=Iz(),t=hz((()=>null==e?void 0:e.dragOperation.source),[e]),r=hz((()=>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},d$=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:VA.SelectMultiEnd})};r({type:VA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:VA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:VA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),p$=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=uM(iM,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=uM(iM,(e=>e.baseProps)),u=lR(tH),c=uM(iM,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{cH({evt:s,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:l})},f=e=>{((e,t)=>{e.key===sE.Shift&&t({type:VA.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;cF([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:h};const{handleMouseDown:m,handleMouseOver:g,handleMouseUp:b}=d$(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},f$=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=BA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?BA.Disabled:n.has(e.qElemNumber)?BA.Selected:BA.Possible),i},h$=(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},m$=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},g$=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return m$(t,e,n?"even":"odd")}return e},b$=(e,t)=>{const{styleService:r}=uM(iM,(e=>e.baseProps)),n=uM(iM,(t=>f$(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=g$(o,r,e),o=h$(o,r,e);const i=UI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===BA.Selected?{...e,...r}:t===BA.Disabled?{...e,background:`${nI}, ${e.background}`}:e}(A((()=>e.isNull?o:UI(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}},v$=mc(zh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),y$=mc(am,{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}}}))),x$=mc(Bh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...lI,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),S$=mc(Bh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...lI,...e,fontWeight:aI,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}))),w$=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=uM(iM,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=p$(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=b$(e,r),g=c$(r.id);return or.jsx(x$,{cellStyle:{...f,opacity:g},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${m} ${aE}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:or.jsx(u$,{cellSelectionState:m,children:or.jsx(a$,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:hI(s,e.align)})})})},C$=KE(0),E$=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const{styleService:o,interactions:i}=uM(iM,(e=>e.baseProps)),a=sR(C$),s=c$(e.id);return or.jsx(S$,{totalsStyle:{...o.totalRow,...Qz(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${aE}`,tabIndex:-1,title:i.passive?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:or.jsx(wF,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},R$=()=>{const{columns:e,totalsPosition:t,rows:r}=uM(iM,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=uM(iM,(e=>e.baseProps)),l=lR(tH),u=!!o?.isModal(),c=!!a.active;return or.jsx(am,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return or.jsx(E$,{column:e,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case sE.C:aH(r);break;case sE.Space:r.preventDefault();break;default:sH(e)}else qC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:l,isSelectionMode:u,isInteractionEnabled:c,direction:s})},onMouseDown:()=>{cF(a,n,l,i)}},e.id)}))})};var P$=_(R$);const A$=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=uM(iM,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=uM(iM,(e=>e.baseProps)),c=uM(iM,(e=>e.selectionDispatch)),d=!!$I(l)?.content?.hoverEffect;yH({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=q((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return gH(t)})(t),f=vH();return or.jsxs(v$,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?or.jsx(P$,{}):void 0,n.map(((e,t)=>or.jsx(y$,{hoverColors:u.grid.hoverColors,hover:d,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:u.contentMinRowHeight,children:o.map(((t,n)=>{const{id:o}=t,i=e[n];return or.jsx(w$,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?or.jsx(P$,{}):void 0]})};var I$=_(A$);const M$=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,k$=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,direction:l}=uM(iM,(e=>e.baseProps)),u=sR(cR),c=uM(iM,(e=>e.columnWidths)),d=uM(iM,(e=>e.setColumnWidths));if(!s.active)return null;return or.jsx(hM,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{iF(e);const t=e.closest(".sn-table-cell");sF(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:l})},D$=e=>e.target?.getAttribute("class")?.includes(lE),T$=({isInteractionEnabled:e,column:t})=>{const[r,n]=I(!1),{changeSortOrder:o}=uM(iM,(e=>e.baseProps)),i=uM(iM,(e=>e.isAdjustingWidth)),a=uM(iM,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||D$(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!D$(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var O$=Object.defineProperty,L$=Object.defineProperties,q$=Object.getOwnPropertyDescriptors,N$=Object.getOwnPropertySymbols,j$=Object.prototype.hasOwnProperty,_$=Object.prototype.propertyIsEnumerable,z$=(e,t,r)=>t in e?O$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F$=(e,t)=>{for(var r in t||(t={}))j$.call(t,r)&&z$(e,r,t[r]);if(N$)for(var r of N$(t))_$.call(t,r)&&z$(e,r,t[r]);return e},H$=(e,t)=>L$(e,q$(t)),$$=class extends WL{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return H$(F$({},e),{[t]:r})}};$$.configure=uO($$);var W$=$$;W$.configure({axis:"x",value:0}),W$.configure({axis:"y",value:0});var B$=class extends WL{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 H$(F$({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};B$.configure=uO(B$);var V$=class extends WL{constructor(e,t){super(e,t),this.boundingRectangle=Yk(null),this.destroy=oD((()=>{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=rq(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=F$({},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 ET(l,u,s,a),r,n);return c}};V$.configure=uO(V$);var U$=V$,G$=Object.create,Y$=Object.defineProperty,K$=Object.defineProperties,X$=Object.getOwnPropertyDescriptor,J$=Object.getOwnPropertyDescriptors,Z$=Object.getOwnPropertySymbols,Q$=Object.prototype.hasOwnProperty,eW=Object.prototype.propertyIsEnumerable,tW=e=>{throw TypeError(e)},rW=(e,t,r)=>t in e?Y$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nW=(e,t)=>{for(var r in t||(t={}))Q$.call(t,r)&&rW(e,r,t[r]);if(Z$)for(var r of Z$(t))eW.call(t,r)&&rW(e,r,t[r]);return e},oW=(e,t)=>K$(e,J$(t)),iW=["class","method","getter","setter","accessor","field","value","get","set"],aW=e=>void 0!==e&&"function"!=typeof e?tW("Function expected"):e,sW=(e,t,r,n,o)=>({kind:iW[e],name:t,metadata:n,addInitializer:e=>r._?tW("Already initialized"):o.push(aW(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},uW=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=iW[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,X$({get[r](){return dW(this,i)},set[r](e){return fW(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=sW(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?aW(s)&&(g[f]=s):"object"!=typeof s||null===s?tW("Object expected"):(aW(a=s.get)&&(g.get=a),aW(a=s.set)&&(g.set=a),aW(a=s.init)&&h.unshift(a));return g&&Y$(o,r,g),o},cW=(e,t,r)=>t.has(e)||tW("Cannot "+r),dW=(e,t,r)=>(cW(e,t,"read from private field"),t.get(e)),pW=(e,t,r)=>t.has(e)?tW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),fW=(e,t,r,n)=>(cW(e,t,"write to private field"),t.set(e,r),r);function hW(e){return e instanceof WW||e instanceof $W}var mW=Object.defineProperty,gW=Object.defineProperties,bW=Object.getOwnPropertyDescriptors,vW=Object.getOwnPropertySymbols,yW=Object.prototype.hasOwnProperty,xW=Object.prototype.propertyIsEnumerable,SW=(e,t,r)=>t in e?mW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wW=(e,t)=>{for(var r in t||(t={}))yW.call(t,r)&&SW(e,r,t[r]);if(vW)for(var r of vW(t))xW.call(t,r)&&SW(e,r,t[r]);return e},CW=(e,t)=>gW(e,bW(t));function EW(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function RW(e,t){return function(e,t,r){var n,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const t=e.findIndex((e=>l(e,i.id))),n=e.findIndex((e=>l(e,a.id)));if(-1===t||-1===n)return e;if(!s&&"index"in i&&"number"==typeof i.index){const n=i.index;if(n!==t)return r(e,t,n)}return r(e,t,n)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex((e=>l(e,i.id))),-1!==p&&(c=e)),-1===f&&(f=t.findIndex((e=>l(e,a.id))),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(n=h.shape)?void 0:n.current.center)?o:h.position.current;if(null==d&&a.id in e){const t=a.shape&&m.y>a.shape.center.y?e[a.id].length:0;d=a.id,f=t}if(null==c||null==d||c===d&&p===f)return"preventDefault"in t&&t.preventDefault(),e;if(c===d)return CW(wW({},e),{[c]:r(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[c][p];return CW(wW({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,EW)}var PW="__default__";function AW(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function IW(e,t){return e.index-t.index}function MW(e){return Array.from(e).sort(IW)}var kW,DW,TW,OW,LW,qW,NW,jW,_W=[class extends dO{constructor(e){super(e);const t=oD((()=>{const{dragOperation:t}=e;if(MN(t.activatorEvent)&&hW(t.source)&&t.status.initialized){const t=e.registry.plugins.get(v_);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(!MN(e.nativeEvent))return;if(!hW(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=[];zk((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&hW(e)||!e.element)continue;let r=e.shape;const n=new RN(e.element,{getBoundingClientRect:e=>dq(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,ON);zk((()=>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||!hW(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;vN(c);const d=new RN(c);if(!d)return;const p=ET.delta(d,ET.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 dO{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof WW){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(MW(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!hW(o)||!hW(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=MW(l),g=s?m:MW(u),b=null!=(c=o.sortable.group)?c:PW,v=null!=(d=i.sortable.group)?d:PW,y={[b]:m,[v]:g},x=RW(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),AW(f,S,h,w),zk((()=>{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;hW(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=MW(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(AW(r,i.index,a,o.index),zk((()=>{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()}}}],zW={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},FW=new class{constructor(){VD(this,eT,new WeakMap)}get(e,t){var r;return e?null==(r=BD(this,eT).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return BD(this,eT).has(e)||BD(this,eT).set(e,new Map),null==(n=BD(this,eT).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=BD(this,eT).get(e))?void 0:t.clear():void 0}};DW=[XD],kW=[XD];var HW=class{constructor(e,t){pW(this,OW,lW(TW,8,this)),lW(TW,11,this),pW(this,LW),pW(this,qW),pW(this,NW,lW(TW,12,this)),lW(TW,15,this),pW(this,jW),this.register=()=>(zk((()=>{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=()=>{zk((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{zk((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=zW,plugins:u=_W}=r,c=((e,t)=>{var r={};for(var n in e)Q$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Z$)for(var n of Z$(e))t.indexOf(n)<0&&eW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new WW(c,t,this),this.draggable=new $W(oW(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)&&FW.clear(this.manager),(null==n?void 0:n.dragging)&&FW.set(this.manager,this.id,Hk((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=dW(this,qW),o=dW(this,LW);e===n&&t===o||(fW(this,qW,e),fW(this,LW,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),fW(this,jW,c.element),this.manager=t,this.index=i,fW(this,qW,i),this.group=o,fW(this,LW,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=FW.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=FW.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){Hk((()=>{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}=aN(n),l=xN(n,s,!1),u=xN(n,s);if(i||a){const r=vq(iq(n))?oW(nW({},t),{duration:0}):t;yN({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){zk((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){zk((()=>{const t=dW(this,jW),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),fW(this,jW,e)}))}get element(){var e,t;const r=dW(this,jW);if(r)return null!=(t=null!=(e=wq.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){zk((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){zk((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){zk((()=>{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:TN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){zk((()=>{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)}};TW=[,,,G$(null)],OW=new WeakMap,LW=new WeakMap,qW=new WeakMap,NW=new WeakMap,jW=new WeakMap,uW(TW,4,"index",DW,HW,OW),uW(TW,4,"group",kW,HW,NW),((e,t)=>{return rW(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(TW,HW);var $W=class extends uz{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},WW=class extends cz{constructor(e,t,r){super(e,t),this.sortable=r}},BW=Object.defineProperty,VW=Object.defineProperties,UW=Object.getOwnPropertyDescriptors,GW=Object.getOwnPropertySymbols,YW=Object.prototype.hasOwnProperty,KW=Object.prototype.propertyIsEnumerable,XW=(e,t,r)=>t in e?BW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JW=(e,t)=>{for(var r in t||(t={}))YW.call(t,r)&&XW(e,r,t[r]);if(GW)for(var r of GW(t))KW.call(t,r)&&XW(e,r,t[r]);return e};function ZW(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=JW(JW({},zW),e.transition),b=function(e){var t;const r=null!=(t=Iz())?t:void 0,[n]=I((()=>e(r)));return n.manager!==r&&(n.manager=r),pz(n.register,[r,n]),n}((t=>new HW(((e,t)=>VW(e,UW(t)))(JW({},e),{transition:g,register:!1,handle:dz(s),element:dz(a),target:dz(h),feedback:d}),t))),v=mz(b,QW);return vz(o,(()=>b.id=o)),pz((()=>{zk((()=>{b.group=u,b.index=l}))}),[b,u,l]),vz(m,(()=>b.type=m)),vz(t,(()=>b.accept=t),void 0,KD),vz(i,(()=>i&&(b.data=i))),vz(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),gz),yz(s,(e=>b.handle=e)),yz(a,(e=>b.element=e)),yz(h,(e=>b.target=e)),vz(c,(()=>b.disabled=!0===c)),vz(f,(()=>b.sensors=f)),vz(r,(()=>b.collisionDetector=r)),vz(n,(()=>b.collisionPriority=n)),vz(d,(()=>b.feedback=null!=d?d:"default")),vz(g,(()=>b.transition=g),void 0,KD),vz(p,(()=>b.modifiers=p),void 0,KD),vz(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:q((e=>{b.handle=null!=e?e:void 0}),[b]),ref:q((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:q((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:q((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 QW(e,t,r){return!("isDragSource"!==e||r||!t)}const eB=({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/CT.distance(r.shape.center,s),type:LO.Collision,priority:OO.Normal}:null},tB=[U$.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],rB=(e,t)=>{const{interactions:r,direction:n}=uM(iM,(e=>e.baseProps)),{flags:o}=uM(iM,(e=>e.env)),i=!r.active||!o.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return ZW({id:e.id,disabled:i,index:t,type:"item",accept:"item",group:"column",modifiers:tB,data:e,feedback:"clone",collisionDetector:eB({invert:"rtl"===n})})},nB=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=uM(iM,(e=>e.baseProps)),{columns:l,totalsPosition:u}=uM(iM,(e=>e.tableData)),c=uM(iM,(e=>e.columnWidths[t])),d=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal())),p=lR(tH),f=sR(rH(t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=T$({isInteractionEnabled:h,column:e}),{ref:x,isDragging:S}=rB(e,t),w=c$(e.id),C=Zz(),E=C?CF:BF,R=e.isActivelySorted?UA[e.sortDirection]:void 0,P=m?iE:void 0,A=m?"true":void 0,I=t===r-1,M=[0,e.pageColIdx],k={width:c,zIndex:l.length-t},D=f&&0===t&&!i.enabled&&h?0:-1;return or.jsxs(fF,{"data-dragging":S,ref:x,headerStyle:{...a.header,...Qz(a,u,!0),opacity:w},background:C&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:k,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${aE}`,tabIndex:D,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case sE.C:aH(r);break;case sE.Enter:case sE.Space:n?.(r);break;default:sH(e)}else qC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,isInteractionEnabled:h,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&cF(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:C?b:y,"aria-sort":R,"aria-controls":P,"aria-expanded":A,"aria-haspopup":"true",children:[or.jsx(E,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),or.jsx(k$,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},oB=()=>{const{columns:e}=uM(iM,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=uM(iM,(e=>e.baseProps)),o=lR(C$),i=uM(iM,(e=>e.columnWidths)),a=M(null),s=M$(r,n);return T((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),or.jsx(em,{style:{visibility:s?"collapse":void 0},children:or.jsx(am,{ref:a,className:"sn-table-row sn-table-head-row",style:{position:"sticky",top:0},children:e.map(((t,r)=>or.jsx(nB,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var iB=_(oB);const aB=e=>{const{pageInfo:t,setPageInfo:r,footerContainer:n,announce:o}=e,{page:i,rowsPerPage:a}=t,{totalColumnCount:s,totalRowCount:l,totalPages:u,paginationNeeded:c,rows:d,columns:p}=uM(iM,(e=>e.tableData)),{rootElement:f,keyboard:h,theme:m,interactions:g,styleService:b,viewService:v,layout:y,rect:x,direction:S}=uM(iM,(e=>e.baseProps)),w=sR(cR),C=uM(iM,(e=>e.showRightBorder)),E=uM(iM,(e=>e.selectionDispatch)),R=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal())),P=M(!1),A=M(null),I=M(null),k=`${w.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${w.get("SNTable.Accessibility.NavigationInstructions")}`,D=_A(y,v),O=D?v.scrollLeft??0:0,L=D?v.rowPartialHeight??0:0,N=q((()=>{P.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),j=q((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),_=q((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return iH(A,S,v),((e,t)=>{const{keyboard:r}=uM(iM,(e=>e.baseProps));T((()=>{const n=e.current;if(!n)return;const o=e=>{dF(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(I,P),(()=>{const{rootElement:e,keyboard:t}=uM(iM,(e=>e.baseProps)),r=sR(tH);XC((()=>{const n=nF(e,r);t.active?sF(n):(n?.blur(),aF(e))}),[t.active,e])})(),oH(P,o,i),T((()=>{const e=A.current;e&&(e.scrollLeft=O,e.scrollTop=L)}),[t,l,O,L]),ZF((()=>{E({type:VA.UpdatePageRows,payload:{pageRows:d}})}),[d]),nH(),dH(A),or.jsxs(JF,{children:[or.jsxs(vF,{ref:I,dir:S,onKeyDown:e=>{uH({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:j,updateShouldRefocus:N,keyboard:h,isSelectionMode:R})},"data-testid":"sn-table",children:[or.jsx(mH,{}),or.jsxs(fH,{ref:A,className:"sn-table-container",fullHeight:!!n||!g.active||!c,interactions:g,tabIndex:-1,role:"application","data-testid":"table-container",children:[or.jsxs(hH,{stickyHeader:!0,"aria-label":k,borderRight:C?`1px solid ${b.grid.border}`:void 0,children:[or.jsx(iB,{}),or.jsx(I$,{...e,updateShouldRefocus:N,tableWrapperRef:I})]}),or.jsx(Jz,{})]}),or.jsx(Nk,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:w,interactions:g,rect:x,layout:y,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:R,direction:S})]}),or.jsx(YF,{isPagination:!0})]})};var sB=_(aB);function lB(){return lB=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},lB.apply(null,arguments)}function uB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cB(e,t){return cB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cB(e,t)}function dB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cB(e,t)}var pB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fB(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||pB(n)&&pB(o)))return!1;var n,o;return!0}function hB(e,t){var r;void 0===t&&(t=fB);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 mB(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 gB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function bB(e){cancelAnimationFrame(e.id)}function vB(e,t){var r=gB();var n={id:requestAnimationFrame((function o(){gB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var yB=-1;function xB(e){if(void 0===e&&(e=!1),-1===yB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),yB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return yB}var SB=null;function wB(e){if(void 0===e&&(e=!1),null===SB||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?SB="positive-descending":(t.scrollLeft=1,SB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),SB}return SB}var CB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function EB(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,uB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:uB(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=hB((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=hB((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=hB((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(wB()){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&&bB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=vB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}dB(t,e),t.getDerivedStateFromProps=function(e,t){return RB(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=xB();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(wB()){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&&bB(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?CB:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),P=R[0],A=R[1],I=[];if(n>0&&g)for(var M=P;M<=A;M++)for(var k=C;k<=E;k++)I.push(w(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,k)}));var 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:lB({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(u||c||"div",{children:I,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}($),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var RB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},PB=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},AB=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},IB=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]},MB=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?kB(e,t,r,i,0,n):DB(e,t,r,Math.max(0,i),n)},kB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=IB(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},DB=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&IB(e,t,n,r).offset<o;)n+=a,a*=2;return kB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},TB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=IB(e,t,r,i),u="column"===e?AB(t,i):PB(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}},OB=EB({getColumnOffset:function(e,t,r){return IB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return MB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=IB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:PB,getEstimatedTotalWidth:AB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return TB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return TB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return IB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return MB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=IB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IB("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}}),LB=function(e,t){return e};function qB(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,uB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:uB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=hB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=hB((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=hB((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(wB()){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&&bB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=vB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}dB(t,e),t.getDerivedStateFromProps=function(e,t){return NB(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?xB():0:l.scrollHeight>l.clientHeight?xB():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(wB()){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&&bB(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?LB:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],P=[];if(u>0)for(var A=E;A<=R;A++)P.push(w(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:lB({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:P,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var NB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},jB=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]},_B=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=jB(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},zB=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&jB(e,r,t).offset<n;)r+=i,i*=2;return _B(e,t,Math.min(r,o-1),Math.floor(r/2),n)},FB=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},HB=qB({getItemOffset:function(e,t,r){return jB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:FB,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=jB(e,t,o),p=FB(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?_B(e,t,o,0,r):zB(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=jB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=jB(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 $B(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 WB=["style"],BB=["style"];function VB(e,t){var r=e.style,n=mB(e,WB),o=t.style,i=mB(t,BB);return!$B(r,o)&&!$B(n,i)}const UB=KE(-1),GB=eH((e=>KE((t=>t(UB)===e)))),YB=({style:e})=>or.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var KB=S.memo(YB,VB);const XB=()=>{},JB=e=>{e.preventDefault()};const ZB=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=sR(GB(t)),d=lR(UB),{interactions:p,styleService:f,direction:h}=uM(iM,(e=>e.baseProps)),m=uM(iM,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=uM(iM,(e=>e.baseProps)),r=uM(iM,(e=>e.selectionDispatch)),n="object"==typeof e,o=uM(iM,(t=>n?f$(e,t.selectionState):BA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=d$(JB,e,r,XB);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=M(null),i=r&&!r.isNumeric,a=q((r=>{const o=kF(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return DF(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=c$(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=g$(o,i,e);a=h$(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?UI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===BA.Selected?{...s,...i.selectedColors}:n===BA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${nI}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,f),o={rowindex:t,columnindex:e};return or.jsx("div",{className:`sn-table-cell ${x} ${aE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:mI(h,g.isLastColumn,m),borderLeftWidth:gI(h,g.isLastColumn,m),justifyContent:dI(g,h),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:p.passive?g.representation.text:void 0,...o,children:or.jsx(u$,{cellSelectionState:x,children:or.jsx(a$,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return or.jsx(KB,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var QB=_(ZB,VB);const eV=e=>{const t=M(e);return t.current=e,t},tV=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,rV=(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},nV=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},oV=(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=MA(h,e,a),C=!h&&e.qIsNull,E=C?NP(w):qP(e);f[r]={id:TP(),...e,align:NA(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)&&IA(e,h),representation:AA({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[NR.Image]:!0,[NR.Indicator]:!0,[NR.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}))}))},iV=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=uM(iM,(e=>e.env)),{direction:p}=uM(iM,(e=>e.baseProps)),f=M([]),h=q(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return oV(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=I((()=>h(n??[])));XC((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=eV(e),a=eV(t),s=A((()=>({enqueue:e=>{const t=tV(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(tV(e))})),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>h(e,t)))})),v=q(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(nV(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=q(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(rV(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return T((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,u,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},aV=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},sV=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,lV=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=uM(iM,(e=>e.baseProps.styleService)),i=uM(iM,(e=>e.columnWidths)),{estimateLineCount:a}=VC(o.dimension.values),s=eM(o.dimension.values.fontSize),l=e||t||1===r;return q(((e,t,o)=>{if(l||e.representation.type===NR.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])},uV=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0,viewService:o})=>{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])},cV=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=uM(iM,(e=>e.baseProps)),[a,s]=I({rowHeights:new Map,cellHeightsInGrid:new Map}),l=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/l))),h=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:l,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{const{layout:n}=uM(iM,(e=>e.baseProps)),o=uM(iM,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;XC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),XC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:n,setState:s,pageInfo:o});const m=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>q(((o,i,a)=>{F((()=>{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(!sV(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,aV(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>q(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),b=lV({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),v=q((e=>c?h??u:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]);return uV({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},dV=(e,t)=>{N((()=>()=>{t(0)}),[e,t]);const r=q((e=>{const r=kF(e);void 0!==r&&t(r)}),[t]);DF(e,r)};let pV=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const fV=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>q((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=pV.None,i=pV.None;return o=n>t?pV.Down:n<t?pV.Up:pV.None,i=r>e?pV.Right:r<e?pV.Left:pV.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,s,u);if(i.current.overscanColumnStartIndex=s,i.current.overscanColumnStopIndex=l,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=s,v=u+o.page*o.rowsPerPage,y=l-s+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=h-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,m===pV.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===pV.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===pV.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===pV.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),hV={enabled:!1},mV=()=>{},gV={current:null};const bV=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=A((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},vV=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},yV={overflow:"hidden",willChange:"auto"};var xV=_(j(((e,t)=>{const{rect:r,columns:n,pageInfo:o,setInnerBodyHeight:i,bodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=uM(iM,(e=>e.baseProps)),f=uM(iM,(e=>e.columnWidths)),h=uM(iM,(e=>e.initialDataPages)),m=M(null),g=M(null),b=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=M(0),y=!!$I(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=bV(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:C,setEstimatedCellHeight:E,getRowHeight:R,lineClamp:P}=cV({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:I,loadRows:k,loadColumns:D}=iV({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:E}),O=fV({layout:s,loadRows:k,loadColumns:D,rowCount:x,pageInfo:o,gridState:b,viewService:c}),L=vH(),q=A((()=>({rowsInPage:I,columns:n,isHoverEnabled:y,lineClamp:P,setMeasuredCellHeight:C,resizeObserverTaskScheduler:L})),[I,n,y,P,C,L]);return N((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=uM(iM,(e=>e.baseProps)),r=uM(iM,(e=>e.selectionDispatch));T((()=>{r({type:VA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),yH({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:mV,keyboard:hV,tableWrapperRef:gV})}(I),H(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??a)-a,n=Math.round(r*e);v.current=e,1===v.current?(m.current?.scrollToItem({rowIndex:x-1,align:"start"}),m.current?.scrollTo({scrollLeft:t})):m.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[g,a,x]),dV(g,i),or.jsx(OB,{"data-key":"body",ref:m,innerRef:g,style:yV,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:a,rowCount:x,rowHeight:R,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:q,onItemsRendered:O,itemKey:vV,className:"sn-table-body",direction:p,children:QB})})));const SV=({width:e,height:t,children:r})=>or.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),wV=(e,t)=>{const r=M(null),n=uM(iM,(e=>e.columnWidths));N((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=q((r=>{const n=kF(r);n&&t(n+9,e)}),[e,t]);return DF(r,o),r},CV=mc("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}}))),EV=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=uM(iM,(e=>e.baseProps)),u=uM(iM,(e=>e.baseProps.selectionsAPI?.isModal())),c=uM(iM,(e=>e.showRightBorder)),d=uM(iM,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=T$({isInteractionEnabled:p,column:f}),y=Zz(),x=wV(e,i),S=n.length-1===e,w=y?CF:BF,{ref:C,isDragging:E}=rB(f,e),R=c$(f.id);return or.jsxs(CV,{"data-dragging":E,ref:C,className:`sn-table-cell ${aE}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...Qz(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:mI(l,S,c),borderLeftWidth:gI(l,S,c),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:f.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===f.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:R},interactions:a,hoverBackground:s.headerMenuHoverBackground,background:y&&h?s.headerMenuActiveBackground:s.header.background,children:[or.jsx(w,{forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),or.jsx(k$,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},RV=e=>{const[t,r]=I(new Map);XC((()=>{r(new Map)}),[e.length]);const n=q(((e,t)=>{r((r=>sV(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:A((()=>aV(t)),[t]),setMeasuredCellHeight:n}},PV=(e,t)=>{H(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},AV=(e,t,r,n,o)=>{XC((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},IV={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},MV=j(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=S.useRef(null),l=M(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=uM(iM,(e=>e.baseProps)),h=uM(iM,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=RV(n),b=M$(f,u);return PV(t,s),AV(s,u,o,h,c),dV(l,a),or.jsx(HB,{className:"sn-table-head-row",ref:s,outerRef:l,layout:"horizontal",style:{...IV,...b?{display:"none"}:void 0},itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(m+8,d.headerMinRowHeight),width:r.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:i,setMeasuredCellHeight:g},direction:p,children:EV})}));var kV=_(MV);const DV=j(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=uM(iM,(e=>e.baseProps));return or.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,tabIndex:-1,children:r})})),TV=({children:e,rect:t})=>{const{direction:r}=uM(iM,(e=>e.baseProps));return or.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})},OV=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=uM(iM,(e=>e.baseProps)),c=uM(iM,(e=>e.showRightBorder)),d=wV(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=c$(n[e].id);return or.jsx("div",{className:`sn-table-cell ${aE}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...Qz(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:mI(u,m,c),borderLeftWidth:gI(u,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:or.jsx(wF,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},LV=j(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=M(null),l=M(null),{layout:u,theme:c,styleService:d,direction:p}=uM(iM,(e=>e.baseProps)),f=uM(iM,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=RV(i);return PV(t,s),AV(s,u,n,f,c),dV(l,a),or.jsx(HB,{ref:s,outerRef:l,layout:"horizontal",style:IV,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(h,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:m},direction:p,children:OV})}));var qV=_(LV);const NV=(e,t,r,n,o)=>q((i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),c=Math.max(0,Math.min(1,l/(a-s)));n.scrollTopRatio=c,n.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[n,r,e,t,o]),jV=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=uM(iM,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=uM(iM,(e=>e.baseProps)),c=uM(iM,(e=>e.columnWidths)),d=M(null),p=M(null),f=M(null),h=M(null),m=A((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),g=uM(iM,(e=>e.yScrollbarWidth)),b=uM(iM,(e=>e.xScrollbarWidth)),v=A((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(m,b,g)),[m,b,g]),{rowCount:y}=bV(i,t,v,c,0),{headerAndTotalsHeight:x,innerBodyHeight:S,setHeaderRowHeight:w,setTotalsRowHeight:C,setInnerBodyHeight:E}=(()=>{const[e,t]=I(0),[r,n]=I(0),[o,i]=I(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:R,height:P}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=uM(iM,(e=>e.baseProps)),a=e+t;let s=r*i.contentMinRowHeight+t;return a<2*n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:S,headerAndTotalsHeight:x,rowCount:y,stickyContainerRect:v,columnWidths:c}),k=NV(p,f,h,l,u),D=((e,t,r)=>Math.min(e.height-t,r))(v,x,S),T=q((()=>{d.current&&(d.current.scrollTop=0)}),[d]);nH(),N((()=>{d.current&&(d.current.scrollLeft=0,d.current.scrollTop=0)}),[n.length]),N((()=>{d.current&&(d.current.scrollTop=0)}),[t,y,a]),dH(d);const O=or.jsx(qV,{rect:v,pageInfo:t,columns:n,ref:f,totals:r,setTotalsRowHeight:C},"totals");return or.jsxs(JF,{children:[or.jsx(DV,{ref:d,width:m.width,height:m.height,onScroll:k,children:or.jsxs(SV,{width:R,height:P,children:[or.jsxs(TV,{rect:v,children:[or.jsx(kV,{rect:v,pageInfo:t,columns:n,ref:p,columResizeHandler:T,setHeaderRowHeight:w}),r.atTop?O:null,or.jsx(xV,{ref:h,rect:v,pageInfo:t,columns:n,setInnerBodyHeight:E,bodyHeight:D}),r.atBottom?O:null]}),or.jsx(Jz,{})]})}),or.jsx(YF,{isPagination:!1})]})};var _V=_(jV);const zV=()=>{const{theme:e,keyboard:t,interactions:r,rect:n,layout:o}=uM(iM,(e=>e.baseProps)),{paginationNeeded:i,totalRowCount:a,totalColumnCount:s,totalPages:l}=uM(iM,(e=>e.tableData)),u=sR(cR),c=uM(iM,(e=>e.pageInfo)),d=uM(iM,(e=>e.setPage));return or.jsxs(vF,{"data-testid":"sn-table",children:[or.jsx(_V,{pageInfo:c}),or.jsx(Nk,{paginationNeeded:i,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:a,totalColumnCount:s,totalPages:l,keyboard:t,translator:u,theme:e,interactions:r,rect:n,layout:o})]})};var FV=_(zV);var HV={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 $V=(e,t)=>{const n=t.get(cR);return r((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(HV).forEach((t=>{e.add(HV[t])}))}(n),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${GA.First}`),s=e.querySelector(`.${GA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===GA.First?(l=s,r=GA.Second):(l=a,r=GA.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(e,n))),[e,n.language()])},WV={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},BV=(e,t)=>{const{model:r,rootElement:o,layout:s,reactRoot:l,isFontLoaded:u,viewService:c,env:d}=e,{direction:p,footerContainer:f}=n(),h=zA(s,c),m=$V(o,t),[g,b]=i(((e,t)=>_A(e,t)?{page:t.page||WV.page,rowsPerPage:t.rowsPerPage||WV.rowsPerPage,rowsPerPageOptions:WV.rowsPerPageOptions}:WV)(s,c)),[v,y]=$C((async()=>h?async function(e,t,r,n,o,i,a,s){const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),h=o.visibleTop??l*u,m=o.visibleHeight??Math.min(u,p-h);if(l>0&&h>=p)return n({...r,page:0}),null;if(m*d>kA)return n({...r,rowsPerPage:DA(d,c),page:0}),null;const g=p>10,b=TA(t,o),v=jA(t,a,s),y=!!t.snapshotData,x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});y||(o.qTop=h,o.qHeight=m,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=x.at(0)?.qMatrix.map(((e,r)=>{const n=[];return v.forEach(((o,l)=>{const u=e[l],c=MA(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?NP(c):qP(u);n[l]={id:TP(),...u,align:NA(p,o.bodyTextAlign,s,a),rowIdx:r+h,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===m-1,isNumeric:p,isNull:(!d||!p)&&IA(u,o.isDim),representation:AA({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[NR.Image]:!0,[NR.Indicator]:!0,[NR.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(r,s,g,b,c,d,!0,p):null),[s,g,r,h,p]);a((()=>{h&&e.model&&e.changeSortOrder&&v&&u&&!y&&function(e,t,r){const{direction:n,...o}=e,i=cM(n);t.render(or.jsx(bi,{stylisPlugins:"rtl"===n?[WA]:void 0,children:or.jsx(bc,{theme:i,children:or.jsx(tR,{store:r,children:or.jsx(lM,{...e,children:or.jsx(sB,{...o})})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:v,pageInfo:g,setPageInfo:b,direction:p,footerContainer:f,announce:m},l,t)}),[m,p,f,u,g,l,e,h,v,y,t])},VV=e=>{const t=r((()=>UC(e)),[e]);return a((()=>()=>{t.unmount()}),[t]),t},UV=(e,t)=>r((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(e.qDimensionInfo.length,t)),[e.qDimensionInfo.length,t]);const GV=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=$C((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(EI,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return[...n]})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},YV=(e,t)=>{const{layout:n,model:o,keyboard:s,interactions:l,reactRoot:u,isFontLoaded:c,viewService:d,direction:p}=e,f=!zA(n,d),[h,m]=i(!1);h&&m(!1);const g=r((()=>function(e,t,r,n,o){const i=jA(e,o,n),a=TA(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(EI,s),u=s>EI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(n,l,d,p,h)),[n,l,d,p,h]),{pageInfo:b,setPage:v}=((e,t)=>{const[n,o]=i(0),a=Math.min(EI,e.qHyperCube.qSize.qcy),s=r((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(t){const t=Math.floor(e.qHyperCube.qSize.qcy/EI);t<n&&o(t)}return{pageInfo:s,setPage:o}})(n,f),{initialDataPages:y,isLoading:x}=GV({model:o,layout:n,page:b.page,shouldRender:f});a((()=>{f&&s.active&&s.blur?.(!1)}),[s,f]),a((()=>{f&&e.model&&e.changeSortOrder&&y&&!x&&c&&function(e,t,r){const{direction:n}=e,o=cM(n);t.render(or.jsx(S.StrictMode,{children:or.jsx(bc,{theme:o,children:or.jsx(tR,{store:r,children:or.jsx(lM,{...e,children:or.jsx(FV,{})})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:g,pageInfo:b,setPage:v,initialDataPages:y},u,t)}),[y,c,x,b,u,e,v,f,g,t])},KV={version:JSON.stringify("6.5.5"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var XV=e=>({properties:{initial:KV},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>MR({...e}),exportProperties:CR,exploration:kR});function JV(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 ZV=(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]}},QV=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const eU=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||WV.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},tU=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=TA(e,t);if(zA(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=JV(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:eU(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=ZV(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=(QV(h,m,g)?d:d+1)+c;let v=p+c;const y=ZV(p,o),x=y?.getBoundingClientRect();return y&&x&&(QV(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:eU(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},rU=({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{c((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h}=tU(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),d((()=>({getViewState:()=>tU(e,t,n)})),[e,t,n])},nU=e=>{const{viewState:t}=n();return r((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(t,e.snapshotData)),[t,e.snapshotData,e.usePagination])},oU=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),iU=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));
|