@nebula.js/sn-table 3.3.0 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  /*
2
- * @nebula.js/sn-table v3.3.0
2
+ * @nebula.js/sn-table v3.3.2
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import{useTheme as e,useMemo as t,onContextMenu as n,useOptions as r,useState as o,usePromise as i,useEffect as a,onTakeSnapshot as l,useImperativeHandle as s,useElement as u,useStaleLayout as c,useApp as d,useModel as p,useInteractionState as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useMemo as S,useState as E,useEffect as C,useContext as w,createElement as R,Children as A,isValidElement as P,cloneElement as I,useReducer as D,createContext as L,useRef as M,useCallback as O,forwardRef as T,memo as k,useLayoutEffect as _,PureComponent as q,useImperativeHandle as N}from"react";import*as F from"react-dom";import z from"react-dom";function j(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function H(){}var B=.7,W=1/B,G="\\s*([+-]?\\d+)\\s*",V="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Y=/^#([0-9a-f]{3,8})$/,K=new RegExp(`^rgb\\(${G},${G},${G}\\)$`),X=new RegExp(`^rgb\\(${U},${U},${U}\\)$`),J=new RegExp(`^rgba\\(${G},${G},${G},${V}\\)$`),Z=new RegExp(`^rgba\\(${U},${U},${U},${V}\\)$`),Q=new RegExp(`^hsl\\(${V},${U},${U}\\)$`),ee=new RegExp(`^hsla\\(${V},${U},${U},${V}\\)$`),te={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ne(){return this.rgb().formatHex()}function re(){return this.rgb().formatRgb()}function oe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Y.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ie(t):3===n?new ue(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ae(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=K.exec(e))?new ue(t[1],t[2],t[3],1):(t=X.exec(e))?new ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=J.exec(e))?ae(t[1],t[2],t[3],t[4]):(t=Z.exec(e))?ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Q.exec(e))?he(t[1],t[2]/100,t[3]/100,1):(t=ee.exec(e))?he(t[1],t[2]/100,t[3]/100,t[4]):te.hasOwnProperty(e)?ie(te[e]):"transparent"===e?new ue(NaN,NaN,NaN,0):null}function ie(e){return new ue(e>>16&255,e>>8&255,255&e,1)}function ae(e,t,n,r){return r<=0&&(e=t=n=NaN),new ue(e,t,n,r)}function le(e){return e instanceof H||(e=oe(e)),e?new ue((e=e.rgb()).r,e.g,e.b,e.opacity):new ue}function se(e,t,n,r){return 1===arguments.length?le(e):new ue(e,t,n,null==r?1:r)}function ue(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ce(){return`#${me(this.r)}${me(this.g)}${me(this.b)}`}function de(){const e=pe(this.opacity);return`${1===e?"rgb(":"rgba("}${fe(this.r)}, ${fe(this.g)}, ${fe(this.b)}${1===e?")":`, ${e})`}`}function pe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function me(e){return((e=fe(e))<16?"0":"")+e.toString(16)}function he(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new be(e,t,n,r)}function ge(e){if(e instanceof be)return new be(e.h,e.s,e.l,e.opacity);if(e instanceof H||(e=oe(e)),!e)return new be;if(e instanceof be)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new be(a,l,s,e.opacity)}function be(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ve(e){return(e=(e||0)%360)<0?e+360:e}function ye(e){return Math.max(0,Math.min(1,e||0))}function xe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}j(H,oe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ne,formatHex:ne,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ge(this).formatHsl()},formatRgb:re,toString:re}),j(ue,se,$(H,{brighter(e){return e=null==e?W:Math.pow(W,e),new ue(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?B:Math.pow(B,e),new ue(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ue(fe(this.r),fe(this.g),fe(this.b),pe(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:ce,formatHex:ce,formatHex8:function(){return`#${me(this.r)}${me(this.g)}${me(this.b)}${me(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:de,toString:de})),j(be,(function(e,t,n,r){return 1===arguments.length?ge(e):new be(e,t,n,null==r?1:r)}),$(H,{brighter(e){return e=null==e?W:Math.pow(W,e),new be(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?B:Math.pow(B,e),new be(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ue(xe(e>=240?e-240:e+120,o,r),xe(e,o,r),xe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new be(ve(this.h),ye(this.s),ye(this.l),pe(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=pe(this.opacity);return`${1===e?"hsl(":"hsla("}${ve(this.h)}, ${100*ye(this.s)}%, ${100*ye(this.l)}%${1===e?")":`, ${e})`}`}}));const Se=Math.PI/180,Ee=180/Math.PI,Ce=.96422,we=1,Re=.82521,Ae=4/29,Pe=6/29,Ie=3*Pe*Pe,De=Pe*Pe*Pe;function Le(e){if(e instanceof Me)return new Me(e.l,e.a,e.b,e.opacity);if(e instanceof Ne)return Fe(e);e instanceof ue||(e=le(e));var t,n,r=_e(e.r),o=_e(e.g),i=_e(e.b),a=Oe((.2225045*r+.7168786*o+.0606169*i)/we);return r===o&&o===i?t=n=a:(t=Oe((.4360747*r+.3850649*o+.1430804*i)/Ce),n=Oe((.0139322*r+.0971045*o+.7141733*i)/Re)),new Me(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Me(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Oe(e){return e>De?Math.pow(e,1/3):e/Ie+Ae}function Te(e){return e>Pe?e*e*e:Ie*(e-Ae)}function ke(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _e(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function qe(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ne)return new Ne(e.h,e.c,e.l,e.opacity);if(e instanceof Me||(e=Le(e)),0===e.a&&0===e.b)return new Ne(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ee;return new Ne(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ne(e,t,n,null==r?1:r)}function Ne(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Fe(e){if(isNaN(e.h))return new Me(e.l,0,0,e.opacity);var t=e.h*Se;return new Me(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}j(Me,(function(e,t,n,r){return 1===arguments.length?Le(e):new Me(e,t,n,null==r?1:r)}),$(H,{brighter(e){return new Me(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Me(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,n=isNaN(this.b)?e:e-this.b/200;return new ue(ke(3.1338561*(t=Ce*Te(t))-1.6168667*(e=we*Te(e))-.4906146*(n=Re*Te(n))),ke(-.9787684*t+1.9161415*e+.033454*n),ke(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),j(Ne,qe,$(H,{brighter(e){return new Ne(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ne(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Fe(this).rgb()}}));const ze=e=>{if(e){const t=se(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},je=(e,t,n,r)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==n?void 0:n(e),u=null==r?void 0:r(e),c=s||i||u,d=(e=>!!e&&0===se(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:ze(d?l:c),isTransparent:d}};var $e=Object.prototype.hasOwnProperty,He=Object.prototype.toString,Be=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ge=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===He.call(e)},Ve=function(e){if(!e||"[object Object]"!==He.call(e))return!1;var t,n=$e.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&$e.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||$e.call(e,t)},Ue=function(e,t){Be&&"__proto__"===t.name?Be(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ye=function(e,t){if("__proto__"===t){if(!$e.call(e,t))return;if(We)return We(e,t).value}return e[t]};function Ke(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Xe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Je(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=Ye(l,n),l!==(o=Ye(t,n))&&(c&&o&&(Ve(o)||(i=Ge(o)))?(i?(i=!1,a=r&&Ge(r)?r:[]):a=r&&Ve(r)?r:{},Ue(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Ue(l,{name:n,newValue:o}));return l}));var Ze=1/.7,Qe="\\s*([+-]?\\d+)\\s*",et="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nt=/^#([0-9a-f]{3,8})$/,rt=new RegExp(`^rgb\\(${Qe},${Qe},${Qe}\\)$`),ot=new RegExp(`^rgb\\(${tt},${tt},${tt}\\)$`),it=new RegExp(`^rgba\\(${Qe},${Qe},${Qe},${et}\\)$`),at=new RegExp(`^rgba\\(${tt},${tt},${tt},${et}\\)$`),lt=new RegExp(`^hsl\\(${et},${tt},${tt}\\)$`),st=new RegExp(`^hsla\\(${et},${tt},${tt},${et}\\)$`),ut={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 ct(){return this.rgb().formatHex()}function dt(){return this.rgb().formatRgb()}function pt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=nt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ft(t):3===n?new bt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?mt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?mt(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=rt.exec(e))?new bt(t[1],t[2],t[3],1):(t=ot.exec(e))?new bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=it.exec(e))?mt(t[1],t[2],t[3],t[4]):(t=at.exec(e))?mt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=lt.exec(e))?Ct(t[1],t[2]/100,t[3]/100,1):(t=st.exec(e))?Ct(t[1],t[2]/100,t[3]/100,t[4]):ut.hasOwnProperty(e)?ft(ut[e]):"transparent"===e?new bt(NaN,NaN,NaN,0):null}function ft(e){return new bt(e>>16&255,e>>8&255,255&e,1)}function mt(e,t,n,r){return r<=0&&(e=t=n=NaN),new bt(e,t,n,r)}function ht(e){return e instanceof Je||(e=pt(e)),e?new bt((e=e.rgb()).r,e.g,e.b,e.opacity):new bt}function gt(e,t,n,r){return 1===arguments.length?ht(e):new bt(e,t,n,null==r?1:r)}function bt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function vt(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}`}function yt(){const e=xt(this.opacity);return`${1===e?"rgb(":"rgba("}${St(this.r)}, ${St(this.g)}, ${St(this.b)}${1===e?")":`, ${e})`}`}function xt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function St(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Et(e){return((e=St(e))<16?"0":"")+e.toString(16)}function Ct(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rt(e,t,n,r)}function wt(e){if(e instanceof Rt)return new Rt(e.h,e.s,e.l,e.opacity);if(e instanceof Je||(e=pt(e)),!e)return new Rt;if(e instanceof Rt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Rt(a,l,s,e.opacity)}function Rt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function At(e){return(e=(e||0)%360)<0?e+360:e}function Pt(e){return Math.max(0,Math.min(1,e||0))}function It(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ke(Je,pt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ct,formatHex:ct,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return wt(this).formatHsl()},formatRgb:dt,toString:dt}),Ke(bt,gt,Xe(Je,{brighter(e){return e=null==e?Ze:Math.pow(Ze,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(St(this.r),St(this.g),St(this.b),xt(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:vt,formatHex:vt,formatHex8:function(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}${Et(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:yt,toString:yt})),Ke(Rt,(function(e,t,n,r){return 1===arguments.length?wt(e):new Rt(e,t,n,null==r?1:r)}),Xe(Je,{brighter(e){return e=null==e?Ze:Math.pow(Ze,e),new Rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Rt(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new bt(It(e>=240?e-240:e+120,o,r),It(e,o,r),It(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Rt(At(this.h),Pt(this.s),Pt(this.l),xt(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=xt(this.opacity);return`${1===e?"hsl(":"hsla("}${At(this.h)}, ${100*Pt(this.s)}%, ${100*Pt(this.l)}%${1===e?")":`, ${e})`}`}}));const Dt=Math.PI/180,Lt=180/Math.PI,Mt=4/29,Ot=6/29,Tt=3*Ot*Ot;function kt(e){if(e instanceof _t)return new _t(e.l,e.a,e.b,e.opacity);if(e instanceof jt)return $t(e);e instanceof bt||(e=ht(e));var t,n,r=zt(e.r),o=zt(e.g),i=zt(e.b),a=qt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=qt((.4360747*r+.3850649*o+.1430804*i)/.96422),n=qt((.0139322*r+.0971045*o+.7141733*i)/.82521)),new _t(116*a-16,500*(t-a),200*(a-n),e.opacity)}function _t(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function qt(e){return e>.008856451679035631?Math.pow(e,1/3):e/Tt+Mt}function Nt(e){return e>Ot?e*e*e:Tt*(e-Mt)}function Ft(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function jt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function $t(e){if(isNaN(e.h))return new _t(e.l,0,0,e.opacity);var t=e.h*Dt;return new _t(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ke(_t,(function(e,t,n,r){return 1===arguments.length?kt(e):new _t(e,t,n,null==r?1:r)}),Xe(Je,{brighter(e){return new _t(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new _t(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,n=isNaN(this.b)?e:e-this.b/200;return new bt(Ft(3.1338561*(t=.96422*Nt(t))-1.6168667*(e=1*Nt(e))-.4906146*(n=.82521*Nt(n))),Ft(-.9787684*t+1.9161415*e+.033454*n),Ft(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ke(jt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof jt)return new jt(e.h,e.c,e.l,e.opacity);if(e instanceof _t||(e=kt(e)),0===e.a&&0===e.b)return new jt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Lt;return new jt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new jt(e,t,n,null==r?1:r)}),Xe(Je,{brighter(e){return new jt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new jt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return $t(this).rgb()}}));var Ht,Bt=e=>()=>e;function Wt(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Bt(isNaN(e)?t:e)}function Gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function Vt(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ut(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Kt)):void 0===t&&(t=Yt);for(var n,r,o,i,a,l=new Zt(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Zt(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Jt)}function Yt(e){return e.children}function Kt(e){return Array.isArray(e)?e[1]:null}function Xt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Jt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Zt(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Wt:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Bt(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=gt(e)).r,(t=gt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Wt(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),Zt.prototype=Ut.prototype={constructor:Zt,count:function(){return this.eachAfter(Vt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Ut(this).eachBefore(Xt)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Ht=function(e){
7
+ import{useTheme as e,useMemo as t,onContextMenu as n,useOptions as r,useState as o,usePromise as i,useEffect as a,onTakeSnapshot as l,useImperativeHandle as s,useElement as u,useStaleLayout as c,useApp as d,useModel as p,useInteractionState as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useMemo as S,useState as E,useEffect as C,useContext as w,createElement as R,Children as A,isValidElement as P,cloneElement as I,useReducer as L,createContext as D,useRef as M,useCallback as T,forwardRef as O,memo as k,useLayoutEffect as _,PureComponent as q,useImperativeHandle as N}from"react";import*as F from"react-dom";import z from"react-dom";function j(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function H(){}var B=.7,W=1/B,G="\\s*([+-]?\\d+)\\s*",V="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Y=/^#([0-9a-f]{3,8})$/,K=new RegExp(`^rgb\\(${G},${G},${G}\\)$`),X=new RegExp(`^rgb\\(${U},${U},${U}\\)$`),J=new RegExp(`^rgba\\(${G},${G},${G},${V}\\)$`),Z=new RegExp(`^rgba\\(${U},${U},${U},${V}\\)$`),Q=new RegExp(`^hsl\\(${V},${U},${U}\\)$`),ee=new RegExp(`^hsla\\(${V},${U},${U},${V}\\)$`),te={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ne(){return this.rgb().formatHex()}function re(){return this.rgb().formatRgb()}function oe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Y.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ie(t):3===n?new ue(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ae(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=K.exec(e))?new ue(t[1],t[2],t[3],1):(t=X.exec(e))?new ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=J.exec(e))?ae(t[1],t[2],t[3],t[4]):(t=Z.exec(e))?ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Q.exec(e))?he(t[1],t[2]/100,t[3]/100,1):(t=ee.exec(e))?he(t[1],t[2]/100,t[3]/100,t[4]):te.hasOwnProperty(e)?ie(te[e]):"transparent"===e?new ue(NaN,NaN,NaN,0):null}function ie(e){return new ue(e>>16&255,e>>8&255,255&e,1)}function ae(e,t,n,r){return r<=0&&(e=t=n=NaN),new ue(e,t,n,r)}function le(e){return e instanceof H||(e=oe(e)),e?new ue((e=e.rgb()).r,e.g,e.b,e.opacity):new ue}function se(e,t,n,r){return 1===arguments.length?le(e):new ue(e,t,n,null==r?1:r)}function ue(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ce(){return`#${me(this.r)}${me(this.g)}${me(this.b)}`}function de(){const e=pe(this.opacity);return`${1===e?"rgb(":"rgba("}${fe(this.r)}, ${fe(this.g)}, ${fe(this.b)}${1===e?")":`, ${e})`}`}function pe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function me(e){return((e=fe(e))<16?"0":"")+e.toString(16)}function he(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new be(e,t,n,r)}function ge(e){if(e instanceof be)return new be(e.h,e.s,e.l,e.opacity);if(e instanceof H||(e=oe(e)),!e)return new be;if(e instanceof be)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new be(a,l,s,e.opacity)}function be(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ve(e){return(e=(e||0)%360)<0?e+360:e}function ye(e){return Math.max(0,Math.min(1,e||0))}function xe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}j(H,oe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ne,formatHex:ne,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ge(this).formatHsl()},formatRgb:re,toString:re}),j(ue,se,$(H,{brighter(e){return e=null==e?W:Math.pow(W,e),new ue(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?B:Math.pow(B,e),new ue(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ue(fe(this.r),fe(this.g),fe(this.b),pe(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:ce,formatHex:ce,formatHex8:function(){return`#${me(this.r)}${me(this.g)}${me(this.b)}${me(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:de,toString:de})),j(be,(function(e,t,n,r){return 1===arguments.length?ge(e):new be(e,t,n,null==r?1:r)}),$(H,{brighter(e){return e=null==e?W:Math.pow(W,e),new be(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?B:Math.pow(B,e),new be(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ue(xe(e>=240?e-240:e+120,o,r),xe(e,o,r),xe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new be(ve(this.h),ye(this.s),ye(this.l),pe(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=pe(this.opacity);return`${1===e?"hsl(":"hsla("}${ve(this.h)}, ${100*ye(this.s)}%, ${100*ye(this.l)}%${1===e?")":`, ${e})`}`}}));const Se=Math.PI/180,Ee=180/Math.PI,Ce=.96422,we=1,Re=.82521,Ae=4/29,Pe=6/29,Ie=3*Pe*Pe,Le=Pe*Pe*Pe;function De(e){if(e instanceof Me)return new Me(e.l,e.a,e.b,e.opacity);if(e instanceof Ne)return Fe(e);e instanceof ue||(e=le(e));var t,n,r=_e(e.r),o=_e(e.g),i=_e(e.b),a=Te((.2225045*r+.7168786*o+.0606169*i)/we);return r===o&&o===i?t=n=a:(t=Te((.4360747*r+.3850649*o+.1430804*i)/Ce),n=Te((.0139322*r+.0971045*o+.7141733*i)/Re)),new Me(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Me(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Te(e){return e>Le?Math.pow(e,1/3):e/Ie+Ae}function Oe(e){return e>Pe?e*e*e:Ie*(e-Ae)}function ke(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _e(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function qe(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ne)return new Ne(e.h,e.c,e.l,e.opacity);if(e instanceof Me||(e=De(e)),0===e.a&&0===e.b)return new Ne(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ee;return new Ne(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ne(e,t,n,null==r?1:r)}function Ne(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Fe(e){if(isNaN(e.h))return new Me(e.l,0,0,e.opacity);var t=e.h*Se;return new Me(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}j(Me,(function(e,t,n,r){return 1===arguments.length?De(e):new Me(e,t,n,null==r?1:r)}),$(H,{brighter(e){return new Me(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Me(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,n=isNaN(this.b)?e:e-this.b/200;return new ue(ke(3.1338561*(t=Ce*Oe(t))-1.6168667*(e=we*Oe(e))-.4906146*(n=Re*Oe(n))),ke(-.9787684*t+1.9161415*e+.033454*n),ke(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),j(Ne,qe,$(H,{brighter(e){return new Ne(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ne(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Fe(this).rgb()}}));const ze=e=>{if(e){const t=se(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},je=(e,t,n,r)=>{const o=null==t?void 0:t.closest(".qv-object .qv-inner-object"),i=o&&window.getComputedStyle(o).backgroundColor,a=null==t?void 0:t.closest(".qv-panel-sheet"),l=a&&window.getComputedStyle(a).backgroundColor,s=null==n?void 0:n(e),u=null==r?void 0:r(e),c=s||i||u,d=(e=>!!e&&0===se(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:ze(d?l:c),isTransparent:d}};var $e=Object.prototype.hasOwnProperty,He=Object.prototype.toString,Be=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Ge=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===He.call(e)},Ve=function(e){if(!e||"[object Object]"!==He.call(e))return!1;var t,n=$e.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&$e.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||$e.call(e,t)},Ue=function(e,t){Be&&"__proto__"===t.name?Be(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ye=function(e,t){if("__proto__"===t){if(!$e.call(e,t))return;if(We)return We(e,t).value}return e[t]};function Ke(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Xe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Je(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=Ye(l,n),l!==(o=Ye(t,n))&&(c&&o&&(Ve(o)||(i=Ge(o)))?(i?(i=!1,a=r&&Ge(r)?r:[]):a=r&&Ve(r)?r:{},Ue(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Ue(l,{name:n,newValue:o}));return l}));var Ze=1/.7,Qe="\\s*([+-]?\\d+)\\s*",et="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nt=/^#([0-9a-f]{3,8})$/,rt=new RegExp(`^rgb\\(${Qe},${Qe},${Qe}\\)$`),ot=new RegExp(`^rgb\\(${tt},${tt},${tt}\\)$`),it=new RegExp(`^rgba\\(${Qe},${Qe},${Qe},${et}\\)$`),at=new RegExp(`^rgba\\(${tt},${tt},${tt},${et}\\)$`),lt=new RegExp(`^hsl\\(${et},${tt},${tt}\\)$`),st=new RegExp(`^hsla\\(${et},${tt},${tt},${et}\\)$`),ut={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 ct(){return this.rgb().formatHex()}function dt(){return this.rgb().formatRgb()}function pt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=nt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ft(t):3===n?new bt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?mt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?mt(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=rt.exec(e))?new bt(t[1],t[2],t[3],1):(t=ot.exec(e))?new bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=it.exec(e))?mt(t[1],t[2],t[3],t[4]):(t=at.exec(e))?mt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=lt.exec(e))?Ct(t[1],t[2]/100,t[3]/100,1):(t=st.exec(e))?Ct(t[1],t[2]/100,t[3]/100,t[4]):ut.hasOwnProperty(e)?ft(ut[e]):"transparent"===e?new bt(NaN,NaN,NaN,0):null}function ft(e){return new bt(e>>16&255,e>>8&255,255&e,1)}function mt(e,t,n,r){return r<=0&&(e=t=n=NaN),new bt(e,t,n,r)}function ht(e){return e instanceof Je||(e=pt(e)),e?new bt((e=e.rgb()).r,e.g,e.b,e.opacity):new bt}function gt(e,t,n,r){return 1===arguments.length?ht(e):new bt(e,t,n,null==r?1:r)}function bt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function vt(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}`}function yt(){const e=xt(this.opacity);return`${1===e?"rgb(":"rgba("}${St(this.r)}, ${St(this.g)}, ${St(this.b)}${1===e?")":`, ${e})`}`}function xt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function St(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Et(e){return((e=St(e))<16?"0":"")+e.toString(16)}function Ct(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Rt(e,t,n,r)}function wt(e){if(e instanceof Rt)return new Rt(e.h,e.s,e.l,e.opacity);if(e instanceof Je||(e=pt(e)),!e)return new Rt;if(e instanceof Rt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Rt(a,l,s,e.opacity)}function Rt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function At(e){return(e=(e||0)%360)<0?e+360:e}function Pt(e){return Math.max(0,Math.min(1,e||0))}function It(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ke(Je,pt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ct,formatHex:ct,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return wt(this).formatHsl()},formatRgb:dt,toString:dt}),Ke(bt,gt,Xe(Je,{brighter(e){return e=null==e?Ze:Math.pow(Ze,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(St(this.r),St(this.g),St(this.b),xt(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:vt,formatHex:vt,formatHex8:function(){return`#${Et(this.r)}${Et(this.g)}${Et(this.b)}${Et(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:yt,toString:yt})),Ke(Rt,(function(e,t,n,r){return 1===arguments.length?wt(e):new Rt(e,t,n,null==r?1:r)}),Xe(Je,{brighter(e){return e=null==e?Ze:Math.pow(Ze,e),new Rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Rt(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new bt(It(e>=240?e-240:e+120,o,r),It(e,o,r),It(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Rt(At(this.h),Pt(this.s),Pt(this.l),xt(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=xt(this.opacity);return`${1===e?"hsl(":"hsla("}${At(this.h)}, ${100*Pt(this.s)}%, ${100*Pt(this.l)}%${1===e?")":`, ${e})`}`}}));const Lt=Math.PI/180,Dt=180/Math.PI,Mt=4/29,Tt=6/29,Ot=3*Tt*Tt;function kt(e){if(e instanceof _t)return new _t(e.l,e.a,e.b,e.opacity);if(e instanceof jt)return $t(e);e instanceof bt||(e=ht(e));var t,n,r=zt(e.r),o=zt(e.g),i=zt(e.b),a=qt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=qt((.4360747*r+.3850649*o+.1430804*i)/.96422),n=qt((.0139322*r+.0971045*o+.7141733*i)/.82521)),new _t(116*a-16,500*(t-a),200*(a-n),e.opacity)}function _t(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function qt(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ot+Mt}function Nt(e){return e>Tt?e*e*e:Ot*(e-Mt)}function Ft(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function jt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function $t(e){if(isNaN(e.h))return new _t(e.l,0,0,e.opacity);var t=e.h*Lt;return new _t(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ke(_t,(function(e,t,n,r){return 1===arguments.length?kt(e):new _t(e,t,n,null==r?1:r)}),Xe(Je,{brighter(e){return new _t(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new _t(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,n=isNaN(this.b)?e:e-this.b/200;return new bt(Ft(3.1338561*(t=.96422*Nt(t))-1.6168667*(e=1*Nt(e))-.4906146*(n=.82521*Nt(n))),Ft(-.9787684*t+1.9161415*e+.033454*n),Ft(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ke(jt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof jt)return new jt(e.h,e.c,e.l,e.opacity);if(e instanceof _t||(e=kt(e)),0===e.a&&0===e.b)return new jt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Dt;return new jt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new jt(e,t,n,null==r?1:r)}),Xe(Je,{brighter(e){return new jt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new jt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return $t(this).rgb()}}));var Ht,Bt=e=>()=>e;function Wt(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Bt(isNaN(e)?t:e)}function Gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function Vt(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ut(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Kt)):void 0===t&&(t=Yt);for(var n,r,o,i,a,l=new Zt(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Zt(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Jt)}function Yt(e){return e.children}function Kt(e){return Array.isArray(e)?e[1]:null}function Xt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Jt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Zt(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Wt:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Bt(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=gt(e)).r,(t=gt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Wt(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),Zt.prototype=Ut.prototype={constructor:Zt,count:function(){return this.eachAfter(Vt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Ut(this).eachBefore(Xt)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Ht=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+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],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},Ht({exports:{}});const Qt=3;function en(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function tn({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Qt}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=S((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=Gt(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Gt((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=en(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}function nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rn(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var on,an=z;function ln(e,t){const[n,r]=E(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}on=an.createRoot,an.hydrateRoot;var sn={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_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_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 un=({translator:e})=>(S((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(sn).forEach((t=>{e.add(sn[t])}))}}(e)),[e]),e);var cn=Object.prototype.hasOwnProperty,dn=Object.prototype.toString,pn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,mn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===dn.call(e)},hn=function(e){if(!e||"[object Object]"!==dn.call(e))return!1;var t,n=cn.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&cn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||cn.call(e,t)},gn=function(e,t){pn&&"__proto__"===t.name?pn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},bn=function(e,t){if("__proto__"===t){if(!cn.call(e,t))return;if(fn)return fn(e,t).value}return e[t]};function vn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xn(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=bn(l,n),l!==(o=bn(t,n))&&(c&&o&&(hn(o)||(i=mn(o)))?(i?(i=!1,a=r&&mn(r)?r:[]):a=r&&hn(r)?r:{},gn(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&gn(l,{name:n,newValue:o}));return l}));var Sn=1/.7,En="\\s*([+-]?\\d+)\\s*",Cn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Rn=/^#([0-9a-f]{3,8})$/,An=new RegExp(`^rgb\\(${En},${En},${En}\\)$`),Pn=new RegExp(`^rgb\\(${wn},${wn},${wn}\\)$`),In=new RegExp(`^rgba\\(${En},${En},${En},${Cn}\\)$`),Dn=new RegExp(`^rgba\\(${wn},${wn},${wn},${Cn}\\)$`),Ln=new RegExp(`^hsl\\(${Cn},${wn},${wn}\\)$`),Mn=new RegExp(`^hsla\\(${Cn},${wn},${wn},${Cn}\\)$`),On={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 Tn(){return this.rgb().formatHex()}function kn(){return this.rgb().formatRgb()}function _n(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Rn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?qn(t):3===n?new jn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Nn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Nn(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=An.exec(e))?new jn(t[1],t[2],t[3],1):(t=Pn.exec(e))?new jn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=In.exec(e))?Nn(t[1],t[2],t[3],t[4]):(t=Dn.exec(e))?Nn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ln.exec(e))?Vn(t[1],t[2]/100,t[3]/100,1):(t=Mn.exec(e))?Vn(t[1],t[2]/100,t[3]/100,t[4]):On.hasOwnProperty(e)?qn(On[e]):"transparent"===e?new jn(NaN,NaN,NaN,0):null}function qn(e){return new jn(e>>16&255,e>>8&255,255&e,1)}function Nn(e,t,n,r){return r<=0&&(e=t=n=NaN),new jn(e,t,n,r)}function Fn(e){return e instanceof xn||(e=_n(e)),e?new jn((e=e.rgb()).r,e.g,e.b,e.opacity):new jn}function zn(e,t,n,r){return 1===arguments.length?Fn(e):new jn(e,t,n,null==r?1:r)}function jn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function $n(){return`#${Gn(this.r)}${Gn(this.g)}${Gn(this.b)}`}function Hn(){const e=Bn(this.opacity);return`${1===e?"rgb(":"rgba("}${Wn(this.r)}, ${Wn(this.g)}, ${Wn(this.b)}${1===e?")":`, ${e})`}`}function Bn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gn(e){return((e=Wn(e))<16?"0":"")+e.toString(16)}function Vn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yn(e,t,n,r)}function Un(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);if(e instanceof xn||(e=_n(e)),!e)return new Yn;if(e instanceof Yn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Yn(a,l,s,e.opacity)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Kn(e){return(e=(e||0)%360)<0?e+360:e}function Xn(e){return Math.max(0,Math.min(1,e||0))}function Jn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vn(xn,_n,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tn,formatHex:Tn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Un(this).formatHsl()},formatRgb:kn,toString:kn}),vn(jn,zn,yn(xn,{brighter(e){return e=null==e?Sn:Math.pow(Sn,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jn(Wn(this.r),Wn(this.g),Wn(this.b),Bn(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:$n,formatHex:$n,formatHex8:function(){return`#${Gn(this.r)}${Gn(this.g)}${Gn(this.b)}${Gn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Hn,toString:Hn})),vn(Yn,(function(e,t,n,r){return 1===arguments.length?Un(e):new Yn(e,t,n,null==r?1:r)}),yn(xn,{brighter(e){return e=null==e?Sn:Math.pow(Sn,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yn(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new jn(Jn(e>=240?e-240:e+120,o,r),Jn(e,o,r),Jn(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Yn(Kn(this.h),Xn(this.s),Xn(this.l),Bn(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=Bn(this.opacity);return`${1===e?"hsl(":"hsla("}${Kn(this.h)}, ${100*Xn(this.s)}%, ${100*Xn(this.l)}%${1===e?")":`, ${e})`}`}}));const Zn=Math.PI/180,Qn=180/Math.PI,er=4/29,tr=6/29,nr=3*tr*tr;function rr(e){if(e instanceof or)return new or(e.l,e.a,e.b,e.opacity);if(e instanceof ur)return cr(e);e instanceof jn||(e=Fn(e));var t,n,r=sr(e.r),o=sr(e.g),i=sr(e.b),a=ir((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ir((.4360747*r+.3850649*o+.1430804*i)/.96422),n=ir((.0139322*r+.0971045*o+.7141733*i)/.82521)),new or(116*a-16,500*(t-a),200*(a-n),e.opacity)}function or(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ir(e){return e>.008856451679035631?Math.pow(e,1/3):e/nr+er}function ar(e){return e>tr?e*e*e:nr*(e-er)}function lr(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function sr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ur(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function cr(e){if(isNaN(e.h))return new or(e.l,0,0,e.opacity);var t=e.h*Zn;return new or(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}vn(or,(function(e,t,n,r){return 1===arguments.length?rr(e):new or(e,t,n,null==r?1:r)}),yn(xn,{brighter(e){return new or(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new or(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,n=isNaN(this.b)?e:e-this.b/200;return new jn(lr(3.1338561*(t=.96422*ar(t))-1.6168667*(e=1*ar(e))-.4906146*(n=.82521*ar(n))),lr(-.9787684*t+1.9161415*e+.033454*n),lr(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),vn(ur,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ur)return new ur(e.h,e.c,e.l,e.opacity);if(e instanceof or||(e=rr(e)),0===e.a&&0===e.b)return new ur(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Qn;return new ur(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ur(e,t,n,null==r?1:r)}),yn(xn,{brighter(e){return new ur(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ur(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return cr(this).rgb()}}));var dr=e=>()=>e;function pr(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):dr(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?pr:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):dr(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=zn(e)).r,(t=zn(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=pr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var fr,mr=["__proto__","constructor"];function hr(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!mr.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function gr(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function br(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=yr)):void 0===t&&(t=vr);for(var n,r,o,i,a,l=new Er(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Er(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Sr)}function vr(e){return e.children}function yr(e){return Array.isArray(e)?e[1]:null}function xr(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Sr(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Er(e){this.data=e,this.depth=this.height=0,this.parent=null}Er.prototype=br.prototype={constructor:Er,count:function(){return this.eachAfter(gr)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return br(this).eachBefore(xr)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},fr=function(e){
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+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],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},Ht({exports:{}});const Qt=3;function en(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function tn({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Qt}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=S((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=Gt(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Gt((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=en(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}function nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function rn(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var on,an=z;function ln(e,t){const[n,r]=E(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}on=an.createRoot,an.hydrateRoot;var sn={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_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_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 un=({translator:e})=>(S((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(sn).forEach((t=>{e.add(sn[t])}))}}(e)),[e]),e);var cn=Object.prototype.hasOwnProperty,dn=Object.prototype.toString,pn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,mn=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===dn.call(e)},hn=function(e){if(!e||"[object Object]"!==dn.call(e))return!1;var t,n=cn.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&cn.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||cn.call(e,t)},gn=function(e,t){pn&&"__proto__"===t.name?pn(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},bn=function(e,t){if("__proto__"===t){if(!cn.call(e,t))return;if(fn)return fn(e,t).value}return e[t]};function vn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xn(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=bn(l,n),l!==(o=bn(t,n))&&(c&&o&&(hn(o)||(i=mn(o)))?(i?(i=!1,a=r&&mn(r)?r:[]):a=r&&hn(r)?r:{},gn(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&gn(l,{name:n,newValue:o}));return l}));var Sn=1/.7,En="\\s*([+-]?\\d+)\\s*",Cn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Rn=/^#([0-9a-f]{3,8})$/,An=new RegExp(`^rgb\\(${En},${En},${En}\\)$`),Pn=new RegExp(`^rgb\\(${wn},${wn},${wn}\\)$`),In=new RegExp(`^rgba\\(${En},${En},${En},${Cn}\\)$`),Ln=new RegExp(`^rgba\\(${wn},${wn},${wn},${Cn}\\)$`),Dn=new RegExp(`^hsl\\(${Cn},${wn},${wn}\\)$`),Mn=new RegExp(`^hsla\\(${Cn},${wn},${wn},${Cn}\\)$`),Tn={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 On(){return this.rgb().formatHex()}function kn(){return this.rgb().formatRgb()}function _n(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Rn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?qn(t):3===n?new jn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Nn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Nn(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=An.exec(e))?new jn(t[1],t[2],t[3],1):(t=Pn.exec(e))?new jn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=In.exec(e))?Nn(t[1],t[2],t[3],t[4]):(t=Ln.exec(e))?Nn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Dn.exec(e))?Vn(t[1],t[2]/100,t[3]/100,1):(t=Mn.exec(e))?Vn(t[1],t[2]/100,t[3]/100,t[4]):Tn.hasOwnProperty(e)?qn(Tn[e]):"transparent"===e?new jn(NaN,NaN,NaN,0):null}function qn(e){return new jn(e>>16&255,e>>8&255,255&e,1)}function Nn(e,t,n,r){return r<=0&&(e=t=n=NaN),new jn(e,t,n,r)}function Fn(e){return e instanceof xn||(e=_n(e)),e?new jn((e=e.rgb()).r,e.g,e.b,e.opacity):new jn}function zn(e,t,n,r){return 1===arguments.length?Fn(e):new jn(e,t,n,null==r?1:r)}function jn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function $n(){return`#${Gn(this.r)}${Gn(this.g)}${Gn(this.b)}`}function Hn(){const e=Bn(this.opacity);return`${1===e?"rgb(":"rgba("}${Wn(this.r)}, ${Wn(this.g)}, ${Wn(this.b)}${1===e?")":`, ${e})`}`}function Bn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gn(e){return((e=Wn(e))<16?"0":"")+e.toString(16)}function Vn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yn(e,t,n,r)}function Un(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);if(e instanceof xn||(e=_n(e)),!e)return new Yn;if(e instanceof Yn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Yn(a,l,s,e.opacity)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Kn(e){return(e=(e||0)%360)<0?e+360:e}function Xn(e){return Math.max(0,Math.min(1,e||0))}function Jn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vn(xn,_n,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:On,formatHex:On,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Un(this).formatHsl()},formatRgb:kn,toString:kn}),vn(jn,zn,yn(xn,{brighter(e){return e=null==e?Sn:Math.pow(Sn,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jn(Wn(this.r),Wn(this.g),Wn(this.b),Bn(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:$n,formatHex:$n,formatHex8:function(){return`#${Gn(this.r)}${Gn(this.g)}${Gn(this.b)}${Gn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Hn,toString:Hn})),vn(Yn,(function(e,t,n,r){return 1===arguments.length?Un(e):new Yn(e,t,n,null==r?1:r)}),yn(xn,{brighter(e){return e=null==e?Sn:Math.pow(Sn,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yn(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new jn(Jn(e>=240?e-240:e+120,o,r),Jn(e,o,r),Jn(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Yn(Kn(this.h),Xn(this.s),Xn(this.l),Bn(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=Bn(this.opacity);return`${1===e?"hsl(":"hsla("}${Kn(this.h)}, ${100*Xn(this.s)}%, ${100*Xn(this.l)}%${1===e?")":`, ${e})`}`}}));const Zn=Math.PI/180,Qn=180/Math.PI,er=4/29,tr=6/29,nr=3*tr*tr;function rr(e){if(e instanceof or)return new or(e.l,e.a,e.b,e.opacity);if(e instanceof ur)return cr(e);e instanceof jn||(e=Fn(e));var t,n,r=sr(e.r),o=sr(e.g),i=sr(e.b),a=ir((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=ir((.4360747*r+.3850649*o+.1430804*i)/.96422),n=ir((.0139322*r+.0971045*o+.7141733*i)/.82521)),new or(116*a-16,500*(t-a),200*(a-n),e.opacity)}function or(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ir(e){return e>.008856451679035631?Math.pow(e,1/3):e/nr+er}function ar(e){return e>tr?e*e*e:nr*(e-er)}function lr(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function sr(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ur(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function cr(e){if(isNaN(e.h))return new or(e.l,0,0,e.opacity);var t=e.h*Zn;return new or(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}vn(or,(function(e,t,n,r){return 1===arguments.length?rr(e):new or(e,t,n,null==r?1:r)}),yn(xn,{brighter(e){return new or(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new or(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,n=isNaN(this.b)?e:e-this.b/200;return new jn(lr(3.1338561*(t=.96422*ar(t))-1.6168667*(e=1*ar(e))-.4906146*(n=.82521*ar(n))),lr(-.9787684*t+1.9161415*e+.033454*n),lr(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),vn(ur,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof ur)return new ur(e.h,e.c,e.l,e.opacity);if(e instanceof or||(e=rr(e)),0===e.a&&0===e.b)return new ur(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Qn;return new ur(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ur(e,t,n,null==r?1:r)}),yn(xn,{brighter(e){return new ur(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ur(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return cr(this).rgb()}}));var dr=e=>()=>e;function pr(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):dr(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?pr:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):dr(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=zn(e)).r,(t=zn(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=pr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var fr,mr=["__proto__","constructor"];function hr(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!mr.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function gr(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function br(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=yr)):void 0===t&&(t=vr);for(var n,r,o,i,a,l=new Er(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Er(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Sr)}function vr(e){return e.children}function yr(e){return Array.isArray(e)?e[1]:null}function xr(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Sr(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Er(e){this.data=e,this.depth=this.height=0,this.parent=null}Er.prototype=br.prototype={constructor:Er,count:function(){return this.eachAfter(gr)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return br(this).eachBefore(xr)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},fr=function(e){
10
10
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
11
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+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],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},fr({exports:{}});var Cr={exports:{}};self,Cr.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](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 o={};(()=>{r.r(o),r.d(o,{default:()=>Me});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}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 l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.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&&(r=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);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="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},w(e)}var R=t().bind(null,!0),A={},P=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function D(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=D(e[n||t])?i:e[t],e=e[n||t]}})),e}function O(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){O(e[r],t[r])||(n=!1)})),n);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!O(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);O(i,a)||L(t,o)||(D(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(A.generate(a,i,l)):P(i)&&P(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&D(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(O(t,o))return r;if(!D(t[0])&&D(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(A.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!L(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},A.apply=function(e,t){t.forEach((function(t){var n,r,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||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))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!L(n,e)&&delete n[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=M(e,t.from);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,k=function(e,n,r){if(!e)return Promise.resolve();var o=T.generate(n,r);return t()(!0,n,r),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 _="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===_)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===_)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=q(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=q(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,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]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.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 n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.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]:{},n={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(re(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(n){return function(e,t,n){var r=[{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 r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(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(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(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,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){Pe.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&n(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Pe;function De(e){return De="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},De(e)}var Le={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Le,apply:Te,applyModifiers:ke,cleanUpMeasure:_e,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Le[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Le[e]&&Le[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var u=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===De(r))return ke({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===De(e)&&!e.disabled){if(n++,"object"!==De(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),ke({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function ke(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!qe({measures:n,properties:r}))return n.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Le[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Le[r.type].updateModifier&&Le[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Le[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Be(n)):_e(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Le[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Le[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||Le[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Le[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).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,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):k(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];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:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](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);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}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)}n.d(r,{default:()=>He});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n: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 l(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 l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.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)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.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,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var A=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const D=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},L=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},M=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},O=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,A),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,A),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.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=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},B=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),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,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?O():w,A=s.defaultMeasure,P=void 0===A?T():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:P}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),L("qMaxStackedCells",b,v),L("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),D(g,t,r),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);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||!V[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,o),Y(t,l))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,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?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,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.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)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}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,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),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:n||l,key:n||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)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,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,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Ie="measures",De="qDef.conditionalColoring";const Le={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:Ie,itemPath:De})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:De,arrayName:Ie,quarantineName:Pe})}};var Me="qHyperCubeDef.qMeasures",Oe="measures",Te="qHyperCubeDef.qDimensions",ke="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:je,arrayName:Oe,itemPath:ze}),we({properties:e,arrayPath:Te,quarantineName:je,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:je,arrayName:Oe,itemPath:ze}),Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},He={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Le,conditionalShow:$e}})(),r.default})();var wr=nn(Cr.exports);const Rr="12px",Ar="nebula-table-utils-head-menu-button";let Pr=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}({});const Ir="nebula-table-utils-column-adjuster",Dr=`${Ir}-border`;let Lr=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",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.AutoMin=80]="AutoMin",e}({}),Mr=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Or="qHyperCubeDef.qDimensions",Tr="dimensions",kr="qDef.representation",_r="tableRepresentation",qr=(e,t,n)=>{const r=e.length+t.length,o=((null==n?void 0:n.length)===r?n:Array.from(Array(r).keys())).map((n=>((e,t,n)=>{var r;const o=t.length,i=e<o?t[e]:n[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(r=a.pixels)&&void 0!==r?r:Lr.PixelsDefault:-1})(n,e,t)));return o},Nr=({propertyTree:e,hyperCubePath:t})=>{const n=wr.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:r,qDimensions:o,qMeasures:i}}=n.properties,a=qr(o,i,r);return hr(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:a}),wr.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),wr.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),wr.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{wr.quarantineArrayProp({properties:e,arrayPath:Or,itemPath:kr,arrayName:Tr,quarantineName:_r})})(n.properties),n};const Fr=(e,t,n,r)=>{let o=t;r&&(o=t-r);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){const e=n[t];i.qDef.columnWidth=-1===e?{type:Mr.FitToContent}:{type:Mr.Pixels,pixels:e}}return i},zr=({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o,viewDataMode:i})=>{const a=wr.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:r,extension:n});wr.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{wr.unquarantineArrayProp({properties:e,arrayPath:Or,itemPath:kr,arrayName:Tr,quarantineName:_r})})(a.qProperty);const{qHyperCubeDef:{qDimensions:l,qMeasures:s,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,n,r)=>{const o=e.length,i=o+t.length,a=(null==n?void 0:n.length)===i?n:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>Fr(e,t,r))),measures:a.filter((e=>e>=o)).map((e=>Fr(t,e,r,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(hr(a,"qProperty.qHyperCubeDef.qDimensions",d),hr(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(hr(a,"qProperty.totals.show",!1),hr(a,"qProperty.usePagination",!0)),wr.conditionalShow.unquarantine(a.qProperty),a};var jr={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function $r(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Hr(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}function Br(e){return e>0?0:1}function Wr(e){return e.translator.get("Visualizations.Descriptions.Column")}function Gr(e){return{measures:{min:Br,max:1e3,description:()=>Wr(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;$r(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;Hr(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:Br,max:1e3,description:()=>Wr(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return $r(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;Hr(o,r)}}}}var Vr,Ur={};Vr=Ur,(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](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 r={};(()=>{n.r(r),n.d(r,{default:()=>Me});var e=n(229),t=n.n(e);const o=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}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 l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.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&&(r=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);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="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},w(e)}var R=t().bind(null,!0),A={},P=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function D(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=D(e[n||t])?i:e[t],e=e[n||t]}})),e}function O(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){O(e[r],t[r])||(n=!1)})),n);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!O(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);O(i,a)||L(t,o)||(D(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(A.generate(a,i,l)):P(i)&&P(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&D(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(O(t,o))return r;if(!D(t[0])&&D(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(A.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){D(t[o])&&!L(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},A.apply=function(e,t){t.forEach((function(t){var n,r,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||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))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!L(n,e)&&delete n[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=M(e,t.from);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const T=A,k=function(e,n,r){if(!e)return Promise.resolve();var o=T.generate(n,r);return t()(!0,n,r),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 _="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===_)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===_)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=q(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=q(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,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]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.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 n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.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]:{},n={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(re(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(n){return function(e,t,n){var r=[{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 r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(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(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(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,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(o(e,ve,i(e,be)),o(e,xe,i(e,ye)),o(e,Ce,i(e,Se)),o(e,we,i(e,Ee)))},restoreBase:function(e){Pe.isValid(e)&&(o(e,be,i(e,ve)),o(e,ye,i(e,xe)),o(e,Se,i(e,Ce)),o(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&o(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Pe;function De(e){return De="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},De(e)}var Le={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Le,apply:Te,applyModifiers:ke,cleanUpMeasure:_e,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Le[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Le[e]&&Le[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Oe[n.id]=Oe[n.id]||{isFirstTime:!0};var u=Oe[n.id].isFirstTime;if(Oe[n.id].isFirstTime=!1,r&&"object"===De(r))return ke({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[n.id].lastReloadTime;if(Oe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===De(e)&&!e.disabled){if(n++,"object"!==De(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),ke({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===De(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function ke(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!qe({measures:n,properties:r}))return n.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Le[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Le[r.type].updateModifier&&Le[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Le[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Be(n)):_e(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Le[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Le[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||Le[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Le[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==De(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).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,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):k(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];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:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),Vr.default=r.default,Object.defineProperty(Vr,"__esModule",{value:!0})})();var Yr=nn(Ur);const Kr={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}},Xr={representationType:{ref:"qDef.representation.type",type:"string",component:"dropdown",translation:"Object.Table.Representation",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}],defaultValue:"text"},representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}},Jr=e=>{var t,n,r,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!Yr.hasActiveModifiers({measures:[e],properties:t.properties})||Yr.ifEnableTotalsFunction(e)?[{value:"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:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(r=e.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))}},Zr={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Mr.Auto,translation:"Common.Auto"},{value:Mr.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Mr.Pixels,translation:"Object.Table.Column.Pixels"},{value:Mr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Mr.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Mr.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(Lr.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Mr.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(Lr.PercentageMax,e.qDef.columnWidth.percentage))}}},Qr={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},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},tableCellColoring:{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",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1}]},...Kr,...Zr},eo={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"}},to=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:Jr(e)}),no=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:eo},presentation:{type:"items",translation:"properties.presentation",items:{...Qr,...e.flags.isEnabled("CLIENT_IM_5715_LINKS")?Xr:void 0}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:to(e)},presentation:{type:"items",translation:"properties.presentation",items:Qr}}}}}),ro={type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},hoverEffectSection:{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(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},oo=e=>{var t,n;return{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:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals"))}},io={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}},ao=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[ro,oo(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...io}}),lo={uses:"sorting"},so={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},uo=e=>({type:"items",component:"accordion",items:{data:no(e),sorting:lo,addOns:so,settings:ao(e)}});function co(e){return{definition:uo(e),exploration:jr,data:Gr(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0},importProperties(e,t,n,r){const o={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return zr({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o})},exportProperties:(e,t)=>Nr({propertyTree:e,hyperCubePath:t})}}const po=async e=>{var t;const n=null===(t=e.querySelector(".sn-table-cell-text"))||void 0===t?void 0:t.textContent;try{n&&await navigator.clipboard.writeText(String(n))}catch(e){console.log(e)}};const fo=(e,n)=>t((()=>((e,t)=>(n,{isDim:r,colIdx:o})=>{const i=r?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,l=e[r?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,s=l?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...l,...n})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(n)};null==t||t.applyPatches([s],!0)})(e,n)),[e,n]);let mo;const ho=new Uint8Array(16);function go(){if(!mo&&(mo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!mo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mo(ho)}const bo=[];for(let e=0;e<256;++e)bo.push((e+256).toString(16).slice(1));var vo={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function yo(e,t,n){if(vo.randomUUID&&!t&&!e)return vo.randomUUID();const r=(e=e||{}).random||(e.rng||go)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return bo[e[t+0]]+bo[e[t+1]]+bo[e[t+2]]+bo[e[t+3]]+"-"+bo[e[t+4]]+bo[e[t+5]]+"-"+bo[e[t+6]]+bo[e[t+7]]+"-"+bo[e[t+8]]+bo[e[t+9]]+"-"+bo[e[t+10]]+bo[e[t+11]]+bo[e[t+12]]+bo[e[t+13]]+bo[e[t+14]]+bo[e[t+15]]}(r)}const xo=({qLibraryId:e,cId:t})=>{var n,r,o,i;return null!==(n=null!=e?e:t)&&void 0!==n?n:null!==(r=null===(o=crypto)||void 0===o||null===(i=o.randomUUID)||void 0===i?void 0:i.call(o))&&void 0!==r?r:yo()};function So(e){return So="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(e)}function Eo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Co(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function wo(e,t,n){return t&&Co(e.prototype,t),n&&Co(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ro(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Po(e,t)}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(e)}function Po(e,t){return Po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Po(e,t)}function Io(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Do(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ao(e);if(t){var o=Ao(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Io(this,n)}}function Lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Oo={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:To(e),value:To(t),useEqualSign:n}}(n,o,i))}})),t}};function To(e){try{return decodeURIComponent(e)}catch(t){return e}}function ko(e){if(!(this instanceof ko))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return Oo.fromSearchString(t.search)}}})}function _o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}ko.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},ko.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=_o((t=e[r]).key),t.value?n+="=".concat(_o(t.value)):n+=t.useEqualSign?"=":"";return n};var qo,No=function(){function e(t){Eo(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return wo(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),Fo=function(){function e(){Eo(this,e)}return wo(e,[{key:"decode",value:function(e){for(var t,n="",r=new No(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),zo=function(e){return e>=0&&e<=1114111},jo=function(e){return e.match(/[\s]/)},$o=function(e){Ro(n,Fo);var t=Do(n);function n(){return Eo(this,n),t.apply(this,arguments)}return wo(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!jo(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return zo(a)?String.fromCharCode(a):"�"}}]),n}(),Ho=function(){function e(t,n){Eo(this,e),this._key=t,this._value=n}return wo(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),Bo=function(){function e(){Eo(this,e)}return wo(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return Ho.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return Ho.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||Ho.newInstanceIfNeeded(e,t,this._value)}}]),e}(),Wo=function(){function e(){Eo(this,e),this.clear()}return wo(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new Bo);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),Go=function(){var e,t,n,r=[],o=[],i=new Wo;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),Vo=function(e){Ro(n,Fo);var t=Do(n);function n(){return Eo(this,n),t.apply(this,arguments)}return wo(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,Go.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=Go.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&zo(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&zo(r)?String.fromCharCode(r):null}}]),n}(),Uo=function(e){Ro(n,Fo);var t=Do(n);function n(){return Eo(this,n),t.apply(this,arguments)}return wo(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),zo(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(),Yo=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(qo=document.createElement("div"));var Ko=Array.prototype.indexOf,Xo=[",",".","_"," "],Jo={default:[",",".","-","_"," "]},Zo={width:["%"],height:["%"]},Qo={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},ei={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Qo.image,"background-color":Qo.color,"border-color":Qo.color,"border-image":Qo.image,color:Qo.color,icon:Qo.image,"list-style-image":Qo.image,"outline-color":Qo.color},ti={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function ni(e,t,n){var r;if(t){if(Ko)return Ko.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function ri(e){if(null==e)return"";var t,n=document.createTextNode(e);return qo.appendChild(n),t=qo.innerHTML,qo.removeChild(n),t}function oi(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=ai(e).toLowerCase(),t=ai(t),ni(e,ti.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<ti.attr_val;i++)if(t.toLowerCase().match(ti.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=Zo[e])||(r=Jo.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&ni(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function ii(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=ai(e).toLowerCase(),t=ai(t),ni(e,ti.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<ti.css_val.length;r++)if(t.toLowerCase().indexOf(ti.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=ei[e])||(o=Qo.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&ni(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function ai(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new Vo,new Uo,new $o];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var li=[],si=0;si<255;si++)li[si]=si>=48&&si<=57||si>=65&&si<=90||si>=97&&si<=122?null:si.toString(16);var ui=function(e){return ri(e.unsafe)},ci=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=ii(t,n[t],!0),i+=ii(t,n[t],!0),o[t]=r[t]);return e.map?o:i},di=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=oi(i,t[i],!0),o+=oi(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function pi(e,t){throw new Error(t)}var fi={canonicalize:ai,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===So(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(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?ui(e):"css"===e.context?(null!=e.map&&"object"!==So(e.map)&&pi(this,"Invalid parameter type"),ci(e)):"attr"===e.context?(null!=e.map&&"object"!==So(e.map)&&pi(this,"Invalid parameter type"),di(e)):void pi(this,"Invalid parameter type")},encodeForAttr:oi,encodeForAttr2:function(e){return oi("nonsens",e,!0)},encodeForCSS:ii,encodeForHref:function(e){ai(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new ko(e),n=ko.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+ko.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=Xo),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),ni(o,t)>=0||null==li[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:ri,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=ai(t).toLowerCase():pi(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=Lo(null!==(t=Yo.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const mi=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},hi=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}};let gi=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),bi=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const vi=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&fi.isSafeDataURL(t)?{type:gi.Image,url:t,text:e,imageSize:n,resolvedImagePosition:hi(r)}:{type:gi.Text,url:void 0,text:e},yi=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===bi.Attribute||null==n?void 0:n.urlLabel},xi=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:gi.Link,url:fi.encodeForHref(t),text:e}}catch(t){return{type:gi.Text,url:void 0,text:e}}},Si=(e,t,n,r,o,i)=>{switch((e=>{switch(null==e?void 0:e.type){case"url":return gi.Link;case"image":return gi.Image;default:return gi.Text}})(t)){case gi.Image:return((e,t,n,r)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s;const t=e.qText,r=null===(s=mi(null!=n?n:-1,e))||void 0===s?void 0:s.qText;return vi({text:t,url:r,imageSize:o,imagePosition:i})}if("label"===a){var u,c;const t=e.qText;if(-1===r||void 0===r)return vi({text:l||t||"",url:t,imageSize:o,imagePosition:i});const n=null!==(u=null===(c=mi(r,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return vi({text:n,url:t,imageSize:o,imagePosition:i})}return{type:gi.Text,url:void 0,text:e.qText}})(e,t,o,i);case gi.Link:return((e,t,n,r)=>{const{urlPosition:o}=null!=t?t:{};if(o===bi.Attribute){const r=yi(n,e,t),o=e.qText||r||"";return xi({text:o,url:r})}if(o===bi.Dimension){const n=yi(r,e,t)||e.qText;return xi({text:n,url:e.qText})}return{type:gi.Text,url:void 0,text:e.qText}})(e,t,n,r);default:return{type:gi.Text,url:void 0,text:e.qText}}},Ei=e=>!Number.isNaN(+e),Ci=e=>!(!e.qNum&&0!==e.qNum||!Ei(e.qNum)),wi=1e4;function Ri(e,t){return[...t].reverse().find((t=>t*e<=wi))||Math.floor(wi/e)}function Ai(e,t){var n,r;if(null!==(n=t.viewState)&&void 0!==n&&n.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,l,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(r=e.totals)||void 0===r?void 0:r.show,e.totals.position];if(a&&(o&&i||!l&&!o)){if(l||"top"===s)return{atTop:!0,atBottom:!1};if(!l&&"bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function Pi(e,t,n,r){var o,i,a;return t?0===n&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[r])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function Ii(e,t){const n=e.qHyperCube.qGrandTotalRow[t];return Ei(n.qNum)}function Di(e,t,n){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}}const Li=(e,t)=>"auto"!==t?t:Ci(e)?"right":"left";const Mi=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:n,qMeasureInfo:r}}=e,o=n.length+r.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:l}=((e,t,n)=>{const r=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<r,{qError:s}=l?t[e]:n[e-r],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-r-a,!u})),visibleColumnIndexes:o}})(i,n,r);return a.map(((t,n)=>function(e,t,n,r){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,l=o.length,s=t<l,u=s?o[t]:i[t-l],c=t===a[0];let d,p,f=0,m="",h=!1,g=-1;if(s){const e=u;f=e.qGroupPos,m=e.qGroupFieldDefs[f],h=e.qLocked,g=r,({qDimensionType:d,representation:p}=e)}const{qFallbackTitle:b,textAlign:v,qAttrExprInfo:y,qSortIndicator:x,qReverseSort:S,qApprMaxGlyphCount:E,columnWidth:C,qLibraryId:w}=u;return{isDim:s,isLocked:h,fieldId:m,colIdx:t,qLibraryId:w,pageColIdx:n,qApprMaxGlyphCount:E,qReverseSort:S,columnWidth:C,selectionColIdx:g,isActivelySorted:c,id:xo(u),label:b,qAttrExprInfoIDs:y.map((e=>e.id)),sortDirection:x&&"N"!==x?x:"A",totalInfo:Pi(e,s,n,r),...!s&&{isTotalNumeric:Ii(e,r)},...Di(v,d,s),representation:p}}(e,t,n,l[t])))};const Oi=(e,t)=>{var n;return!!(e.snapshotData||null!==(n=t.viewState)&&void 0!==n&&n.visibleHeight)},Ti=(e,t)=>{var n;return void 0!==(null===(n=t.viewState)||void 0===n?void 0:n.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Oi(e,t)};var ki={exports:{}},_i={},qi=x,Ni=Symbol.for("react.element"),Fi=Symbol.for("react.fragment"),zi=Object.prototype.hasOwnProperty,ji=qi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$i={key:!0,ref:!0,__self:!0,__source:!0};function Hi(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)zi.call(t,r)&&!$i.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Ni,type:e,key:i,ref:a,props:o,_owner:ji.current}}_i.Fragment=Fi,_i.jsx=Hi,_i.jsxs=Hi,ki.exports=_i;var Bi=ki.exports;function Wi(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 Gi=Object.freeze({__proto__:null,default:Wi}),Vi="$$material";function Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ui.apply(this,arguments)}function Yi(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Ki=function(){return Ki=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ki.apply(this,arguments)};function Xi(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ji=nn((function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),Zi="-ms-",Qi="-moz-",ea="-webkit-",ta="comm",na="rule",ra="decl",oa="@media",ia="@import",aa="@supports",la="@keyframes",sa="@layer",ua=Math.abs,ca=String.fromCharCode,da=Object.assign;function pa(e){return e.trim()}function fa(e,t){return(e=t.exec(e))?e[0]:e}function ma(e,t,n){return e.replace(t,n)}function ha(e,t,n){return e.indexOf(t,n)}function ga(e,t){return 0|e.charCodeAt(t)}function ba(e,t,n){return e.slice(t,n)}function va(e){return e.length}function ya(e){return e.length}function xa(e,t){return t.push(e),e}function Sa(e,t){return e.filter((function(e){return!fa(e,t)}))}var Ea=1,Ca=1,wa=0,Ra=0,Aa=0,Pa="";function Ia(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ea,column:Ca,length:a,return:"",siblings:l}}function Da(e,t){return da(Ia("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function La(e){for(;e.root;)e=Da(e.root,{children:[e]});xa(e,e.siblings)}function Ma(){return Aa=Ra>0?ga(Pa,--Ra):0,Ca--,10===Aa&&(Ca=1,Ea--),Aa}function Oa(){return Aa=Ra<wa?ga(Pa,Ra++):0,Ca++,10===Aa&&(Ca=1,Ea++),Aa}function Ta(){return ga(Pa,Ra)}function ka(){return Ra}function _a(e,t){return ba(Pa,e,t)}function qa(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 Na(e){return pa(_a(Ra-1,ja(91===e?e+2:40===e?e+1:e)))}function Fa(e){for(;(Aa=Ta())&&Aa<33;)Oa();return qa(e)>2||qa(Aa)>3?"":" "}function za(e,t){for(;--t&&Oa()&&!(Aa<48||Aa>102||Aa>57&&Aa<65||Aa>70&&Aa<97););return _a(e,ka()+(t<6&&32==Ta()&&32==Oa()))}function ja(e){for(;Oa();)switch(Aa){case e:return Ra;case 34:case 39:34!==e&&39!==e&&ja(Aa);break;case 40:41===e&&ja(e);break;case 92:Oa()}return Ra}function $a(e,t){for(;Oa()&&e+Aa!==57&&(e+Aa!==84||47!==Ta()););return"/*"+_a(t,Ra-1)+"*"+ca(47===e?e:Oa())}function Ha(e){for(;!qa(Ta());)Oa();return _a(e,Ra)}function Ba(e){return function(e){return Pa="",e}(Wa("",null,null,null,[""],e=function(e){return Ea=Ca=1,wa=va(Pa=e),Ra=0,[]}(e),0,[0],e))}function Wa(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=v,v=Oa()){case 40:if(108!=m&&58==ga(C,d-1)){-1!=ha(C+=ma(Na(v),"&","&\f"),"&\f",ua(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Na(v);break;case 9:case 10:case 13:case 32:C+=Fa(m);break;case 92:C+=za(ka()-1,7);continue;case 47:switch(Ta()){case 42:case 47:xa(Va($a(Oa(),ka()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=va(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=ma(C,/\f/g,"")),f>0&&va(C)-d&&xa(f>32?Ua(C+";",r,n,d-1,s):Ua(ma(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(xa(E=Ga(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)Wa(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===ga(C,3)?100:p){case 100:case 108:case 109:case 115:Wa(e,E,E,r&&xa(Ga(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Wa(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+va(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Ma())continue;switch(C+=ca(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(va(C)-1)*b,b=1;break;case 64:45===Ta()&&(C+=Na(Oa())),p=Ta(),c=d=va(y=C+=Ha(ka())),v++;break;case 45:45===m&&2==va(C)&&(h=0)}}return i}function Ga(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=ya(f),h=0,g=0,b=0;h<r;++h)for(var v=0,y=ba(e,p+1,p=ua(g=a[h])),x=e;v<m;++v)(x=pa(g>0?f[v]+" "+y:ma(y,/&\f/g,f[v])))&&(s[b++]=x);return Ia(e,t,n,0===o?na:l,s,u,c,d)}function Va(e,t,n,r){return Ia(e,t,n,ta,ca(Aa),ba(e,2,-2),0,r)}function Ua(e,t,n,r,o){return Ia(e,t,n,ra,ba(e,0,r),ba(e,r+1,-1),r,o)}function Ya(e,t,n){switch(function(e,t){return 45^ga(e,0)?(((t<<2^ga(e,0))<<2^ga(e,1))<<2^ga(e,2))<<2^ga(e,3):0}(e,t)){case 5103:return ea+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ea+e+e;case 4789:return Qi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ea+e+Qi+e+Zi+e+e;case 5936:switch(ga(e,t+11)){case 114:return ea+e+Zi+ma(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ea+e+Zi+ma(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ea+e+Zi+ma(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ea+e+Zi+e+e;case 6165:return ea+e+Zi+"flex-"+e+e;case 5187:return ea+e+ma(e,/(\w+).+(:[^]+)/,ea+"box-$1$2"+Zi+"flex-$1$2")+e;case 5443:return ea+e+Zi+"flex-item-"+ma(e,/flex-|-self/g,"")+(fa(e,/flex-|baseline/)?"":Zi+"grid-row-"+ma(e,/flex-|-self/g,""))+e;case 4675:return ea+e+Zi+"flex-line-pack"+ma(e,/align-content|flex-|-self/g,"")+e;case 5548:return ea+e+Zi+ma(e,"shrink","negative")+e;case 5292:return ea+e+Zi+ma(e,"basis","preferred-size")+e;case 6060:return ea+"box-"+ma(e,"-grow","")+ea+e+Zi+ma(e,"grow","positive")+e;case 4554:return ea+ma(e,/([^-])(transform)/g,"$1"+ea+"$2")+e;case 6187:return ma(ma(ma(e,/(zoom-|grab)/,ea+"$1"),/(image-set)/,ea+"$1"),e,"")+e;case 5495:case 3959:return ma(e,/(image-set\([^]*)/,ea+"$1$`$1");case 4968:return ma(ma(e,/(.+:)(flex-)?(.*)/,ea+"box-pack:$3"+Zi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ea+e+e;case 4200:if(!fa(e,/flex-|baseline/))return Zi+"grid-column-align"+ba(e,t)+e;break;case 2592:case 3360:return Zi+ma(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,fa(e.props,/grid-\w+-end/)}))?~ha(e+(n=n[t].value),"span",0)?e:Zi+ma(e,"-start","")+e+Zi+"grid-row-span:"+(~ha(n,"span",0)?fa(n,/\d+/):+fa(n,/\d+/)-+fa(e,/\d+/))+";":Zi+ma(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return fa(e.props,/grid-\w+-start/)}))?e:Zi+ma(ma(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ma(e,/(.+)-inline(.+)/,ea+"$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(va(e)-1-t>6)switch(ga(e,t+1)){case 109:if(45!==ga(e,t+4))break;case 102:return ma(e,/(.+:)(.+)-([^]+)/,"$1"+ea+"$2-$3$1"+Qi+(108==ga(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ha(e,"stretch",0)?Ya(ma(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ma(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Zi+n+":"+r+l+(o?Zi+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===ga(e,t+6))return ma(e,":",":"+ea)+e;break;case 6444:switch(ga(e,45===ga(e,14)?18:11)){case 120:return ma(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ea+(45===ga(e,14)?"inline-":"")+"box$3$1"+ea+"$2$3$1"+Zi+"$2box$3")+e;case 100:return ma(e,":",":"+Zi)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ma(e,"scroll-","scroll-snap-")+e}return e}function Ka(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Xa(e,t,n,r){switch(e.type){case sa:if(e.children.length)break;case ia:case ra:return e.return=e.return||e.value;case ta:return"";case la:return e.return=e.value+"{"+Ka(e.children,r)+"}";case na:if(!va(e.value=e.props.join(",")))return""}return va(n=Ka(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ja(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ra:return void(e.return=Ya(e.value,e.length,n));case la:return Ka([Da(e,{value:ma(e.value,"@","@"+ea)})],r);case na:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(fa(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":La(Da(e,{props:[ma(t,/:(read-\w+)/,":"+Qi+"$1")]})),La(Da(e,{props:[t]})),da(e,{props:Sa(n,r)});break;case"::placeholder":La(Da(e,{props:[ma(t,/:(plac\w+)/,":"+ea+"input-$1")]})),La(Da(e,{props:[ma(t,/:(plac\w+)/,":"+Qi+"$1")]})),La(Da(e,{props:[ma(t,/:(plac\w+)/,Zi+"input-$1")]})),La(Da(e,{props:[t]})),da(e,{props:Sa(n,r)})}return""}))}}var Za={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qa="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",el="active",tl="data-styled-version",nl="6.1.8",rl="/*!sc*/\n",ol="undefined"!=typeof window&&"HTMLElement"in window,il=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)),al={},ll=Object.freeze([]),sl=Object.freeze({});function ul(e,t,n){return void 0===n&&(n=sl),e.theme!==n.theme&&e.theme||t||n.theme}var cl=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),dl=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pl=/(^-|-$)/g;function fl(e){return e.replace(dl,"-").replace(pl,"")}var ml=/(a)(d)/gi,hl=52,gl=function(e){return String.fromCharCode(e+(e>25?39:97))};function bl(e){var t,n="";for(t=Math.abs(e);t>hl;t=t/hl|0)n=gl(t%hl)+n;return(gl(t%hl)+n).replace(ml,"$1-$2")}var vl,yl=5381,xl=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Sl=function(e){return xl(yl,e)};function El(e){return bl(Sl(e)>>>0)}function Cl(e){return"string"==typeof e&&!0}var wl="function"==typeof Symbol&&Symbol.for,Rl=wl?Symbol.for("react.memo"):60115,Al=wl?Symbol.for("react.forward_ref"):60112,Pl={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Il={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Dl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ll=((vl={})[Al]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vl[Rl]=Dl,vl);function Ml(e){return("type"in(t=e)&&t.type.$$typeof)===Rl?Dl:"$$typeof"in e?Ll[e.$$typeof]:Pl;var t}var Ol=Object.defineProperty,Tl=Object.getOwnPropertyNames,kl=Object.getOwnPropertySymbols,_l=Object.getOwnPropertyDescriptor,ql=Object.getPrototypeOf,Nl=Object.prototype;function Fl(e,t,n){if("string"!=typeof t){if(Nl){var r=ql(t);r&&r!==Nl&&Fl(e,r,n)}var o=Tl(t);kl&&(o=o.concat(kl(t)));for(var i=Ml(e),a=Ml(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Il||n&&n[s]||a&&s in a||i&&s in i)){var u=_l(t,s);try{Ol(e,s,u)}catch(e){}}}}return e}function zl(e){return"function"==typeof e}function jl(e){return"object"==typeof e&&"styledComponentId"in e}function $l(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Hl(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Bl(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Wl(e,t,n){if(void 0===n&&(n=!1),!n&&!Bl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Wl(e[r],t[r]);else if(Bl(t))for(var r in t)e[r]=Wl(e[r],t[r]);return e}function Gl(e,t){Object.defineProperty(e,"toString",{value:t})}function Vl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];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 Ul=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,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Vl(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;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],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(rl);return t},e}(),Yl=new Map,Kl=new Map,Xl=1,Jl=function(e){if(Yl.has(e))return Yl.get(e);for(;Kl.has(Xl);)Xl++;var t=Xl++;return Yl.set(e,t),Kl.set(t,e),t},Zl=function(e,t){Xl=t+1,Yl.set(e,t),Kl.set(t,e)},Ql="style[".concat(Qa,"][").concat(tl,'="').concat(nl,'"]'),es=new RegExp("^".concat(Qa,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ts=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},ns=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(rl),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(es);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Zl(c,u),ts(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var rs=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Qa,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Qa,el),r.setAttribute(tl,nl);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},os=function(){function e(e){this.element=rs(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Vl(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}(),is=function(){function e(e){this.element=rs(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,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}(),as=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}(),ls=ol,ss={isServer:!ol,useCSSOMInjection:!il},us=function(){function e(e,t,n){void 0===e&&(e=sl),void 0===t&&(t={});var r=this;this.options=Ki(Ki({},ss),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ol&&ls&&(ls=!1,function(e){for(var t=document.querySelectorAll(Ql),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Qa)!==el&&(ns(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Gl(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Kl.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(Qa,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(rl)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Jl(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ki(Ki({},this.options),t),this.gs,n&&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,n=e.target;return e.isServer?new as(n):t?new os(n):new is(n)}(this.options),new Ul(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(Jl(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Jl(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Jl(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),cs=/&/g,ds=/^\s*\/\/.*$/gm;function ps(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=ps(e.children,t)),e}))}function fs(e){var t,n,r,o=void 0===e?sl:e,i=o.options,a=void 0===i?sl:i,l=o.plugins,s=void 0===l?ll:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===na&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(cs,n).replace(r,u))})),a.prefix&&c.push(Ja),c.push(Xa);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(ds,""),u=Ba(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=ps(u,a.namespace));var d,p=[];return Ka(u,function(e){var t=ya(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,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=s.length?s.reduce((function(e,t){return t.name||Vl(15),xl(e,t.name)}),yl).toString():"",d}var ms=new us,hs=fs(),gs=x.createContext({shouldForwardProp:void 0,styleSheet:ms,stylis:hs});gs.Consumer;var bs=x.createContext(void 0);function vs(){return w(gs)}function ys(e){var t=E(e.stylisPlugins),n=t[0],r=t[1],o=vs().styleSheet,i=S((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=S((function(){return fs({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);C((function(){Ji(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var l=S((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(gs.Provider,{value:l},x.createElement(bs.Provider,{value:a},e.children))}var xs=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=hs);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Gl(this,(function(){throw Vl(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=hs),this.name+e.hash},e}(),Ss=function(e){return e>="A"&&e<="Z"};function Es(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ss(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Cs=function(e){return null==e||!1===e||""===e},ws=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Cs(i)&&(Array.isArray(i)&&i.isCss||zl(i)?r.push("".concat(Es(o),":"),i,";"):Bl(i)?r.push.apply(r,Xi(Xi(["".concat(o," {")],ws(i),!1),["}"],!1)):r.push("".concat(Es(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Za||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Rs(e,t,n,r){return Cs(e)?[]:jl(e)?[".".concat(e.styledComponentId)]:zl(e)?!zl(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Rs(e(t),t,n,r):e instanceof xs?n?(e.inject(n,r),[e.getName(r)]):[e]:Bl(e)?ws(e):Array.isArray(e)?Array.prototype.concat.apply(ll,e.map((function(e){return Rs(e,t,n,r)}))):[e.toString()];var o}function As(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(zl(n)&&!jl(n))return!1}return!0}var Ps=Sl(nl),Is=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&As(e),this.componentId=t,this.baseHash=xl(Ps,t),this.baseStyle=n,us.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=$l(r,this.staticRulesId);else{var o=Hl(Rs(this.rules,e,t,n)),i=bl(xl(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=$l(r,i),this.staticRulesId=i}else{for(var l=xl(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Hl(Rs(c,e,t,n));l=xl(l,d+u),s+=d}}if(s){var p=bl(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=$l(r,p)}}return r},e}(),Ds=x.createContext(void 0);Ds.Consumer;var Ls={};new Set;function Ms(e,t,n){var r=jl(e),o=e,i=!Cl(e),a=t.attrs,l=void 0===a?ll:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":fl(e);Ls[n]=(Ls[n]||0)+1;var r="".concat(n,"-").concat(El(nl+n+Ls[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Cl(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(fl(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new Is(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=x.useContext(Ds),c=vs(),d=e.shouldForwardProp||c.shouldForwardProp,p=ul(t,u,i)||sl,f=function(e,t,n){for(var r,o=Ki(Ki({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=zl(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?$l(o[l],a[l]):"style"===l?Ki(Ki({},o[l]),a[l]):a[l]}return t.className&&(o.className=$l(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var n=vs();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=$l(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[Cl(m)&&!cl.has(m)?"class":"className"]=v,h.ref=n,R(m,h)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?$l(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Wl(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Gl(y,(function(){return".".concat(y.styledComponentId)})),i&&Fl(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Os(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Ts=function(e){return Object.assign(e,{isCss:!0})};function ks(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(zl(e)||Bl(e))return Ts(Rs(Os(ll,Xi([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Rs(r):Ts(Rs(Os(r,t)))}function _s(e,t,n){if(void 0===n&&(n=sl),!t)throw Vl(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ks.apply(void 0,Xi([r],o,!1)))};return r.attrs=function(r){return _s(e,t,Ki(Ki({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return _s(e,t,Ki(Ki({},n),r))},r}var qs=function(e){return _s(Ms,e)},Ns=qs;cl.forEach((function(e){Ns[e]=qs(e)}));var Fs=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=As(e),us.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Hl(Rs(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&us.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function zs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ks.apply(void 0,Xi([e],t,!1)),o="sc-global-".concat(El(JSON.stringify(r))),i=new Fs(r,o),a=function(e){var t=vs(),n=x.useContext(Ds),r=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,al,n,o);else{var l=Ki(Ki({},t),{theme:ul(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return x.memo(a)}function js(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Hl(ks.apply(void 0,Xi([e],t,!1))),o=El(r);return new xs(o,r)}var $s={exports:{}};function Hs(){}function Bs(){}Bs.resetWarningCache=Hs;$s.exports=function(){function e(e,t,n,r,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 n={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:Bs,resetWarningCache:Hs};return n.PropTypes=n,n}();var Ws=nn($s.exports);function Gs(e){const{injectFirst:t,children:n}=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 n}Gs.propTypes={children:Ws.node,injectFirst:Ws.bool};const Vs=zs((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Us=Vs;
11
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+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],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},fr({exports:{}});var Cr={exports:{}};self,Cr.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](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 o={};(()=>{r.r(o),r.d(o,{default:()=>Me});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}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 l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.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&&(r=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);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="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},w(e)}var R=t().bind(null,!0),A={},P=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function L(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=L(e[n||t])?i:e[t],e=e[n||t]}})),e}function T(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){T(e[r],t[r])||(n=!1)})),n);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!T(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);T(i,a)||D(t,o)||(L(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(A.generate(a,i,l)):P(i)&&P(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&L(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(T(t,o))return r;if(!L(t[0])&&L(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(A.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!D(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},A.apply=function(e,t){t.forEach((function(t){var n,r,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||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))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!D(n,e)&&delete n[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=M(e,t.from);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,k=function(e,n,r){if(!e)return Promise.resolve();var o=O.generate(n,r);return t()(!0,n,r),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 _="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===_)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===_)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=q(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=q(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,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]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.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 n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.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]:{},n={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(re(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(n){return function(e,t,n){var r=[{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 r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(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(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(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,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,we,i(e,Ee)))},restoreBase:function(e){Pe.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&n(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Pe;function Le(e){return Le="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},Le(e)}var De={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:De,apply:Oe,applyModifiers:ke,cleanUpMeasure:_e,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:qe,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Te={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Te[n.id]=Te[n.id]||{isFirstTime:!0};var u=Te[n.id].isFirstTime;if(Te[n.id].isFirstTime=!1,r&&"object"===Le(r))return ke({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[n.id].lastReloadTime;if(Te[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(n++,"object"!==Le(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),ke({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function ke(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!qe({measures:n,properties:r}))return n.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(l++,"object"!==Le(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:De[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[r.type].updateModifier&&De[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:De[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Be(n)):_e(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!De[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(De[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!De[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).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,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):k(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];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:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Te[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](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);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}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)}n.d(r,{default:()=>He});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n: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 l(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 l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.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)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.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,n){var r,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function C(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function w(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var A=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const L=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},D=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},M=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},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:[]}},k=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,A),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,A),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.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=E()(!0,{},n,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},B=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),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,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?T():w,A=s.defaultMeasure,P=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:P}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),L(g,t,r),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);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||!V[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(U(a,t,r,o),Y(t,l))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,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?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,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.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)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return l}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,n,r){var o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),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:n||l,key:n||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)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,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,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function we(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Ie="measures",Le="qDef.conditionalColoring";const De={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:Ie,itemPath:Le})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Le,arrayName:Ie,quarantineName:Pe})}};var Me="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",ke="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:je,arrayName:Te,itemPath:ze}),we({properties:e,arrayPath:Oe,quarantineName:je,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:je,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},He={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:$e}})(),r.default})();var wr=nn(Cr.exports);const Rr="12px",Ar="nebula-table-utils-head-menu-button";let Pr=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}({});const Ir="nebula-table-utils-column-adjuster",Lr=`${Ir}-border`;let Dr=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",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.AutoMin=80]="AutoMin",e}({}),Mr=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Tr="qHyperCubeDef.qDimensions",Or="dimensions",kr="qDef.representation",_r="tableRepresentation",qr=(e,t,n)=>{const r=e.length+t.length,o=((null==n?void 0:n.length)===r?n:Array.from(Array(r).keys())).map((n=>((e,t,n)=>{var r;const o=t.length,i=e<o?t[e]:n[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(r=a.pixels)&&void 0!==r?r:Dr.PixelsDefault:-1})(n,e,t)));return o},Nr=({propertyTree:e,hyperCubePath:t})=>{const n=wr.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:r,qDimensions:o,qMeasures:i}}=n.properties,a=qr(o,i,r);return hr(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:a}),wr.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),wr.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),wr.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{wr.quarantineArrayProp({properties:e,arrayPath:Tr,itemPath:kr,arrayName:Or,quarantineName:_r})})(n.properties),n};const Fr=(e,t,n,r)=>{let o=t;r&&(o=t-r);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){const e=n[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:Mr.Pixels,pixels:e}:{type:Mr.FitToContent}}return i},zr=({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o,viewDataMode:i})=>{const a=wr.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:r,extension:n});wr.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{wr.unquarantineArrayProp({properties:e,arrayPath:Tr,itemPath:kr,arrayName:Or,quarantineName:_r})})(a.qProperty);const{qHyperCubeDef:{qDimensions:l,qMeasures:s,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,n,r)=>{const o=e.length,i=o+t.length,a=(null==n?void 0:n.length)===i?n:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>Fr(e,t,r))),measures:a.filter((e=>e>=o)).map((e=>Fr(t,e,r,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(hr(a,"qProperty.qHyperCubeDef.qDimensions",d),hr(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(hr(a,"qProperty.totals.show",!1),hr(a,"qProperty.usePagination",!0)),wr.conditionalShow.unquarantine(a.qProperty),a};var jr={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function $r(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Hr(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}function Br(e){return e>0?0:1}function Wr(e){return e.translator.get("Visualizations.Descriptions.Column")}function Gr(e){return{measures:{min:Br,max:1e3,description:()=>Wr(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;$r(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;Hr(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:Br,max:1e3,description:()=>Wr(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return $r(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;Hr(o,r)}}}}var Vr,Ur={};Vr=Ur,(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](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 r={};(()=>{n.r(r),n.d(r,{default:()=>Me});var e=n(229),t=n.n(e);const o=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}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 l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.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&&(r=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);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e){return w="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},w(e)}var R=t().bind(null,!0),A={},P=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function L(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=L(e[n||t])?i:e[t],e=e[n||t]}})),e}function T(e,t){var n=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){T(e[r],t[r])||(n=!1)})),n);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!T(e[r],t[r]))return!1;return!0}return e===t}A.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);T(i,a)||D(t,o)||(L(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(A.generate(a,i,l)):P(i)&&P(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&L(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(T(t,o))return r;if(!L(t[0])&&L(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(A.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!D(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},A.apply=function(e,t){t.forEach((function(t){var n,r,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return C(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||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))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!D(n,e)&&delete n[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=M(e,t.from);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,k=function(e,n,r){if(!e)return Promise.resolve();var o=O.generate(n,r);return t()(!0,n,r),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 _="accumulation";function q(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===_)return n[r]}function N(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===_)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=q(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=q(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=q(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,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]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var G="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.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 n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.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]:{},n={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(re(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(n){return function(e,t,n){var r=[{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 r=function(e,t,n){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(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(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(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,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(o(e,ve,i(e,be)),o(e,xe,i(e,ye)),o(e,Ce,i(e,Se)),o(e,we,i(e,Ee)))},restoreBase:function(e){Pe.isValid(e)&&(o(e,be,i(e,ve)),o(e,ye,i(e,xe)),o(e,Se,i(e,Ce)),o(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&o(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Pe;function Le(e){return Le="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},Le(e)}var De={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:De,apply:Oe,applyModifiers:ke,cleanUpMeasure:_e,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:qe,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Te={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Te[n.id]=Te[n.id]||{isFirstTime:!0};var u=Te[n.id].isFirstTime;if(Te[n.id].isFirstTime=!1,r&&"object"===Le(r))return ke({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[n.id].lastReloadTime;if(Te[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var o=Qe(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(n++,"object"!==Le(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),ke({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return ze(r).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function ke(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=ze(r)),!n.length)return Promise.resolve();if(!qe({measures:n,properties:r}))return n.forEach((function(e){return _e(e)})),Promise.resolve();var s=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Ie.isValid(n)||Ie.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(l++,"object"!==Le(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:De[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[r.type].updateModifier&&De[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:De[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),Be(n)):_e(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!De[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:n,layout:r})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(De[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||De[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!De[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ge(t)&&Ue({modifiers:je(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).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,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):k(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=ze(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ue({modifiers:r,properties:e})){var i=Ge(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];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:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Te[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),Vr.default=r.default,Object.defineProperty(Vr,"__esModule",{value:!0})})();var Yr=nn(Ur);const Kr={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}},Xr={representationType:{ref:"qDef.representation.type",type:"string",component:"dropdown",translation:"Object.Table.Representation",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}],defaultValue:"text"},representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}},Jr=e=>{var t,n,r,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!Yr.hasActiveModifiers({measures:[e],properties:t.properties})||Yr.ifEnableTotalsFunction(e)?[{value:"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:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(r=e.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))}},Zr={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Mr.Auto,translation:"Common.Auto"},{value:Mr.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Mr.Pixels,translation:"Object.Table.Column.Pixels"},{value:Mr.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Mr.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Mr.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(Dr.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Mr.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(Dr.PercentageMax,e.qDef.columnWidth.percentage))}}},Qr={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},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},tableCellColoring:{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",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1}]},...Kr,...Zr},eo={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"}},to=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:Jr(e)}),no=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:eo},presentation:{type:"items",translation:"properties.presentation",items:{...Qr,...e.flags.isEnabled("CLIENT_IM_5715_LINKS")?Xr:void 0}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:to(e)},presentation:{type:"items",translation:"properties.presentation",items:Qr}}}}}),ro={type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},hoverEffectSection:{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(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},oo=e=>{var t,n;return{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:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals"))}},io={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}},ao=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[ro,oo(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...io}}),lo={uses:"sorting"},so={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},uo=e=>({type:"items",component:"accordion",items:{data:no(e),sorting:lo,addOns:so,settings:ao(e)}});function co(e){return{definition:uo(e),exploration:jr,data:Gr(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0},importProperties(e,t,n,r){const o={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return zr({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o})},exportProperties:(e,t)=>Nr({propertyTree:e,hyperCubePath:t})}}const po=async e=>{var t;const n=null===(t=e.querySelector(".sn-table-cell-text"))||void 0===t?void 0:t.textContent;try{n&&await navigator.clipboard.writeText(String(n))}catch(e){console.log(e)}};const fo=(e,n)=>t((()=>((e,t)=>(n,{isDim:r,colIdx:o})=>{const i=r?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,l=e[r?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,s=l?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...l,...n})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(n)};null==t||t.applyPatches([s],!0)})(e,n)),[e,n]);let mo;const ho=new Uint8Array(16);function go(){if(!mo&&(mo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!mo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return mo(ho)}const bo=[];for(let e=0;e<256;++e)bo.push((e+256).toString(16).slice(1));var vo={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function yo(e,t,n){if(vo.randomUUID&&!t&&!e)return vo.randomUUID();const r=(e=e||{}).random||(e.rng||go)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return bo[e[t+0]]+bo[e[t+1]]+bo[e[t+2]]+bo[e[t+3]]+"-"+bo[e[t+4]]+bo[e[t+5]]+"-"+bo[e[t+6]]+bo[e[t+7]]+"-"+bo[e[t+8]]+bo[e[t+9]]+"-"+bo[e[t+10]]+bo[e[t+11]]+bo[e[t+12]]+bo[e[t+13]]+bo[e[t+14]]+bo[e[t+15]]}(r)}const xo=({qLibraryId:e,cId:t})=>{var n,r,o,i;return null!==(n=null!=e?e:t)&&void 0!==n?n:null!==(r=null===(o=crypto)||void 0===o||null===(i=o.randomUUID)||void 0===i?void 0:i.call(o))&&void 0!==r?r:yo()};function So(e){return So="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(e)}function Eo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Co(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function wo(e,t,n){return t&&Co(e.prototype,t),n&&Co(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ro(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Po(e,t)}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(e)}function Po(e,t){return Po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Po(e,t)}function Io(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Lo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ao(e);if(t){var o=Ao(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Io(this,n)}}function Do(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var To={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:Oo(e),value:Oo(t),useEqualSign:n}}(n,o,i))}})),t}};function Oo(e){try{return decodeURIComponent(e)}catch(t){return e}}function ko(e){if(!(this instanceof ko))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return To.fromSearchString(t.search)}}})}function _o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}ko.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},ko.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=_o((t=e[r]).key),t.value?n+="=".concat(_o(t.value)):n+=t.useEqualSign?"=":"";return n};var qo,No=function(){function e(t){Eo(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return wo(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),Fo=function(){function e(){Eo(this,e)}return wo(e,[{key:"decode",value:function(e){for(var t,n="",r=new No(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),zo=function(e){return e>=0&&e<=1114111},jo=function(e){return e.match(/[\s]/)},$o=function(e){Ro(n,Fo);var t=Lo(n);function n(){return Eo(this,n),t.apply(this,arguments)}return wo(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!jo(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return zo(a)?String.fromCharCode(a):"�"}}]),n}(),Ho=function(){function e(t,n){Eo(this,e),this._key=t,this._value=n}return wo(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),Bo=function(){function e(){Eo(this,e)}return wo(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return Ho.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return Ho.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||Ho.newInstanceIfNeeded(e,t,this._value)}}]),e}(),Wo=function(){function e(){Eo(this,e),this.clear()}return wo(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new Bo);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),Go=function(){var e,t,n,r=[],o=[],i=new Wo;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),Vo=function(e){Ro(n,Fo);var t=Lo(n);function n(){return Eo(this,n),t.apply(this,arguments)}return wo(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,Go.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=Go.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&zo(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&zo(r)?String.fromCharCode(r):null}}]),n}(),Uo=function(e){Ro(n,Fo);var t=Lo(n);function n(){return Eo(this,n),t.apply(this,arguments)}return wo(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),zo(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(),Yo=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(qo=document.createElement("div"));var Ko=Array.prototype.indexOf,Xo=[",",".","_"," "],Jo={default:[",",".","-","_"," "]},Zo={width:["%"],height:["%"]},Qo={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},ei={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Qo.image,"background-color":Qo.color,"border-color":Qo.color,"border-image":Qo.image,color:Qo.color,icon:Qo.image,"list-style-image":Qo.image,"outline-color":Qo.color},ti={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function ni(e,t,n){var r;if(t){if(Ko)return Ko.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function ri(e){if(null==e)return"";var t,n=document.createTextNode(e);return qo.appendChild(n),t=qo.innerHTML,qo.removeChild(n),t}function oi(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=ai(e).toLowerCase(),t=ai(t),ni(e,ti.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<ti.attr_val;i++)if(t.toLowerCase().match(ti.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=Zo[e])||(r=Jo.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&ni(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function ii(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=ai(e).toLowerCase(),t=ai(t),ni(e,ti.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<ti.css_val.length;r++)if(t.toLowerCase().indexOf(ti.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=ei[e])||(o=Qo.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&ni(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function ai(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new Vo,new Uo,new $o];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var li=[],si=0;si<255;si++)li[si]=si>=48&&si<=57||si>=65&&si<=90||si>=97&&si<=122?null:si.toString(16);var ui=function(e){return ri(e.unsafe)},ci=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=ii(t,n[t],!0),i+=ii(t,n[t],!0),o[t]=r[t]);return e.map?o:i},di=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=oi(i,t[i],!0),o+=oi(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function pi(e,t){throw new Error(t)}var fi={canonicalize:ai,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===So(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(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?ui(e):"css"===e.context?(null!=e.map&&"object"!==So(e.map)&&pi(this,"Invalid parameter type"),ci(e)):"attr"===e.context?(null!=e.map&&"object"!==So(e.map)&&pi(this,"Invalid parameter type"),di(e)):void pi(this,"Invalid parameter type")},encodeForAttr:oi,encodeForAttr2:function(e){return oi("nonsens",e,!0)},encodeForCSS:ii,encodeForHref:function(e){ai(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new ko(e),n=ko.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+ko.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=Xo),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),ni(o,t)>=0||null==li[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:ri,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=ai(t).toLowerCase():pi(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=Do(null!==(t=Yo.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const mi=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},hi=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}};let gi=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),bi=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const vi=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&fi.isSafeDataURL(t)?{type:gi.Image,url:t,text:e,imageSize:n,resolvedImagePosition:hi(r)}:{type:gi.Text,url:void 0,text:e},yi=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===bi.Attribute||null==n?void 0:n.urlLabel},xi=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:gi.Link,url:fi.encodeForHref(t),text:e}}catch(t){return{type:gi.Text,url:void 0,text:e}}},Si=(e,t,n,r,o,i)=>{switch((e=>{switch(null==e?void 0:e.type){case"url":return gi.Link;case"image":return gi.Image;default:return gi.Text}})(t)){case gi.Image:return((e,t,n,r)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s;const t=e.qText,r=null===(s=mi(null!=n?n:-1,e))||void 0===s?void 0:s.qText;return vi({text:t,url:r,imageSize:o,imagePosition:i})}if("label"===a){var u,c;const t=e.qText;if(-1===r||void 0===r)return vi({text:l||t||"",url:t,imageSize:o,imagePosition:i});const n=null!==(u=null===(c=mi(r,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return vi({text:n,url:t,imageSize:o,imagePosition:i})}return{type:gi.Text,url:void 0,text:e.qText}})(e,t,o,i);case gi.Link:return((e,t,n,r)=>{const{urlPosition:o}=null!=t?t:{};if(o===bi.Attribute){const r=yi(n,e,t),o=e.qText||r||"";return xi({text:o,url:r})}if(o===bi.Dimension){const n=yi(r,e,t)||e.qText;return xi({text:n,url:e.qText})}return{type:gi.Text,url:void 0,text:e.qText}})(e,t,n,r);default:return{type:gi.Text,url:void 0,text:e.qText}}},Ei=e=>!Number.isNaN(+e),Ci=e=>!(!e.qNum&&0!==e.qNum||!Ei(e.qNum)),wi=1e4;function Ri(e,t){return[...t].reverse().find((t=>t*e<=wi))||Math.floor(wi/e)}function Ai(e,t){var n,r;if(null!==(n=t.viewState)&&void 0!==n&&n.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,l,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(r=e.totals)||void 0===r?void 0:r.show,e.totals.position];if(a&&(o&&i||!l&&!o)){if(l||"top"===s)return{atTop:!0,atBottom:!1};if(!l&&"bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function Pi(e,t,n,r){var o,i,a;return t?0===n&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[r])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function Ii(e,t){const n=e.qHyperCube.qGrandTotalRow[t];return Ei(null==n?void 0:n.qNum)}function Li(e,t,n){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}}const Di=(e,t)=>"auto"!==t?t:Ci(e)?"right":"left";const Mi=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:n,qMeasureInfo:r}}=e,o=n.length+r.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:l}=((e,t,n)=>{const r=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<r,{qError:s}=l?t[e]:n[e-r],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-r-a,!u})),visibleColumnIndexes:o}})(i,n,r);return a.map(((t,n)=>function(e,t,n,r){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,l=o.length,s=t<l,u=s?o[t]:i[t-l],c=t===a[0];let d,p,f=0,m="",h=!1,g=-1;if(s){const e=u;f=e.qGroupPos,m=e.qGroupFieldDefs[f],h=e.qLocked,g=r,({qDimensionType:d,representation:p}=e)}const{qFallbackTitle:b,textAlign:v,qAttrExprInfo:y,qSortIndicator:x,qReverseSort:S,qApprMaxGlyphCount:E,columnWidth:C,qLibraryId:w}=u;return{isDim:s,isLocked:h,fieldId:m,colIdx:t,qLibraryId:w,pageColIdx:n,qApprMaxGlyphCount:E,qReverseSort:S,columnWidth:C,selectionColIdx:g,isActivelySorted:c,id:xo(u),label:b,qAttrExprInfoIDs:y.map((e=>e.id)),sortDirection:x&&"N"!==x?x:"A",totalInfo:Pi(e,s,n,r),...!s&&{isTotalNumeric:Ii(e,r)},...Li(v,d,s),representation:p}}(e,t,n,l[t])))};const Ti=(e,t)=>{var n;return!!(e.snapshotData||null!==(n=t.viewState)&&void 0!==n&&n.visibleHeight)},Oi=(e,t)=>{var n;return void 0!==(null===(n=t.viewState)||void 0===n?void 0:n.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Ti(e,t)};var ki={exports:{}},_i={},qi=x,Ni=Symbol.for("react.element"),Fi=Symbol.for("react.fragment"),zi=Object.prototype.hasOwnProperty,ji=qi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$i={key:!0,ref:!0,__self:!0,__source:!0};function Hi(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)zi.call(t,r)&&!$i.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Ni,type:e,key:i,ref:a,props:o,_owner:ji.current}}_i.Fragment=Fi,_i.jsx=Hi,_i.jsxs=Hi,ki.exports=_i;var Bi=ki.exports;function Wi(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 Gi=Object.freeze({__proto__:null,default:Wi}),Vi="$$material";function Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ui.apply(this,arguments)}function Yi(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Ki=function(){return Ki=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ki.apply(this,arguments)};function Xi(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ji=nn((function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),Zi="-ms-",Qi="-moz-",ea="-webkit-",ta="comm",na="rule",ra="decl",oa="@media",ia="@import",aa="@supports",la="@keyframes",sa="@layer",ua=Math.abs,ca=String.fromCharCode,da=Object.assign;function pa(e){return e.trim()}function fa(e,t){return(e=t.exec(e))?e[0]:e}function ma(e,t,n){return e.replace(t,n)}function ha(e,t,n){return e.indexOf(t,n)}function ga(e,t){return 0|e.charCodeAt(t)}function ba(e,t,n){return e.slice(t,n)}function va(e){return e.length}function ya(e){return e.length}function xa(e,t){return t.push(e),e}function Sa(e,t){return e.filter((function(e){return!fa(e,t)}))}var Ea=1,Ca=1,wa=0,Ra=0,Aa=0,Pa="";function Ia(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ea,column:Ca,length:a,return:"",siblings:l}}function La(e,t){return da(Ia("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Da(e){for(;e.root;)e=La(e.root,{children:[e]});xa(e,e.siblings)}function Ma(){return Aa=Ra>0?ga(Pa,--Ra):0,Ca--,10===Aa&&(Ca=1,Ea--),Aa}function Ta(){return Aa=Ra<wa?ga(Pa,Ra++):0,Ca++,10===Aa&&(Ca=1,Ea++),Aa}function Oa(){return ga(Pa,Ra)}function ka(){return Ra}function _a(e,t){return ba(Pa,e,t)}function qa(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 Na(e){return pa(_a(Ra-1,ja(91===e?e+2:40===e?e+1:e)))}function Fa(e){for(;(Aa=Oa())&&Aa<33;)Ta();return qa(e)>2||qa(Aa)>3?"":" "}function za(e,t){for(;--t&&Ta()&&!(Aa<48||Aa>102||Aa>57&&Aa<65||Aa>70&&Aa<97););return _a(e,ka()+(t<6&&32==Oa()&&32==Ta()))}function ja(e){for(;Ta();)switch(Aa){case e:return Ra;case 34:case 39:34!==e&&39!==e&&ja(Aa);break;case 40:41===e&&ja(e);break;case 92:Ta()}return Ra}function $a(e,t){for(;Ta()&&e+Aa!==57&&(e+Aa!==84||47!==Oa()););return"/*"+_a(t,Ra-1)+"*"+ca(47===e?e:Ta())}function Ha(e){for(;!qa(Oa());)Ta();return _a(e,Ra)}function Ba(e){return function(e){return Pa="",e}(Wa("",null,null,null,[""],e=function(e){return Ea=Ca=1,wa=va(Pa=e),Ra=0,[]}(e),0,[0],e))}function Wa(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=v,v=Ta()){case 40:if(108!=m&&58==ga(C,d-1)){-1!=ha(C+=ma(Na(v),"&","&\f"),"&\f",ua(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Na(v);break;case 9:case 10:case 13:case 32:C+=Fa(m);break;case 92:C+=za(ka()-1,7);continue;case 47:switch(Oa()){case 42:case 47:xa(Va($a(Ta(),ka()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=va(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=ma(C,/\f/g,"")),f>0&&va(C)-d&&xa(f>32?Ua(C+";",r,n,d-1,s):Ua(ma(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(xa(E=Ga(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)Wa(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===ga(C,3)?100:p){case 100:case 108:case 109:case 115:Wa(e,E,E,r&&xa(Ga(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Wa(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+va(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Ma())continue;switch(C+=ca(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(va(C)-1)*b,b=1;break;case 64:45===Oa()&&(C+=Na(Ta())),p=Oa(),c=d=va(y=C+=Ha(ka())),v++;break;case 45:45===m&&2==va(C)&&(h=0)}}return i}function Ga(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=ya(f),h=0,g=0,b=0;h<r;++h)for(var v=0,y=ba(e,p+1,p=ua(g=a[h])),x=e;v<m;++v)(x=pa(g>0?f[v]+" "+y:ma(y,/&\f/g,f[v])))&&(s[b++]=x);return Ia(e,t,n,0===o?na:l,s,u,c,d)}function Va(e,t,n,r){return Ia(e,t,n,ta,ca(Aa),ba(e,2,-2),0,r)}function Ua(e,t,n,r,o){return Ia(e,t,n,ra,ba(e,0,r),ba(e,r+1,-1),r,o)}function Ya(e,t,n){switch(function(e,t){return 45^ga(e,0)?(((t<<2^ga(e,0))<<2^ga(e,1))<<2^ga(e,2))<<2^ga(e,3):0}(e,t)){case 5103:return ea+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ea+e+e;case 4789:return Qi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ea+e+Qi+e+Zi+e+e;case 5936:switch(ga(e,t+11)){case 114:return ea+e+Zi+ma(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ea+e+Zi+ma(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ea+e+Zi+ma(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ea+e+Zi+e+e;case 6165:return ea+e+Zi+"flex-"+e+e;case 5187:return ea+e+ma(e,/(\w+).+(:[^]+)/,ea+"box-$1$2"+Zi+"flex-$1$2")+e;case 5443:return ea+e+Zi+"flex-item-"+ma(e,/flex-|-self/g,"")+(fa(e,/flex-|baseline/)?"":Zi+"grid-row-"+ma(e,/flex-|-self/g,""))+e;case 4675:return ea+e+Zi+"flex-line-pack"+ma(e,/align-content|flex-|-self/g,"")+e;case 5548:return ea+e+Zi+ma(e,"shrink","negative")+e;case 5292:return ea+e+Zi+ma(e,"basis","preferred-size")+e;case 6060:return ea+"box-"+ma(e,"-grow","")+ea+e+Zi+ma(e,"grow","positive")+e;case 4554:return ea+ma(e,/([^-])(transform)/g,"$1"+ea+"$2")+e;case 6187:return ma(ma(ma(e,/(zoom-|grab)/,ea+"$1"),/(image-set)/,ea+"$1"),e,"")+e;case 5495:case 3959:return ma(e,/(image-set\([^]*)/,ea+"$1$`$1");case 4968:return ma(ma(e,/(.+:)(flex-)?(.*)/,ea+"box-pack:$3"+Zi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ea+e+e;case 4200:if(!fa(e,/flex-|baseline/))return Zi+"grid-column-align"+ba(e,t)+e;break;case 2592:case 3360:return Zi+ma(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,fa(e.props,/grid-\w+-end/)}))?~ha(e+(n=n[t].value),"span",0)?e:Zi+ma(e,"-start","")+e+Zi+"grid-row-span:"+(~ha(n,"span",0)?fa(n,/\d+/):+fa(n,/\d+/)-+fa(e,/\d+/))+";":Zi+ma(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return fa(e.props,/grid-\w+-start/)}))?e:Zi+ma(ma(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ma(e,/(.+)-inline(.+)/,ea+"$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(va(e)-1-t>6)switch(ga(e,t+1)){case 109:if(45!==ga(e,t+4))break;case 102:return ma(e,/(.+:)(.+)-([^]+)/,"$1"+ea+"$2-$3$1"+Qi+(108==ga(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ha(e,"stretch",0)?Ya(ma(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ma(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Zi+n+":"+r+l+(o?Zi+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===ga(e,t+6))return ma(e,":",":"+ea)+e;break;case 6444:switch(ga(e,45===ga(e,14)?18:11)){case 120:return ma(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ea+(45===ga(e,14)?"inline-":"")+"box$3$1"+ea+"$2$3$1"+Zi+"$2box$3")+e;case 100:return ma(e,":",":"+Zi)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ma(e,"scroll-","scroll-snap-")+e}return e}function Ka(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Xa(e,t,n,r){switch(e.type){case sa:if(e.children.length)break;case ia:case ra:return e.return=e.return||e.value;case ta:return"";case la:return e.return=e.value+"{"+Ka(e.children,r)+"}";case na:if(!va(e.value=e.props.join(",")))return""}return va(n=Ka(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ja(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ra:return void(e.return=Ya(e.value,e.length,n));case la:return Ka([La(e,{value:ma(e.value,"@","@"+ea)})],r);case na:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(fa(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Da(La(e,{props:[ma(t,/:(read-\w+)/,":"+Qi+"$1")]})),Da(La(e,{props:[t]})),da(e,{props:Sa(n,r)});break;case"::placeholder":Da(La(e,{props:[ma(t,/:(plac\w+)/,":"+ea+"input-$1")]})),Da(La(e,{props:[ma(t,/:(plac\w+)/,":"+Qi+"$1")]})),Da(La(e,{props:[ma(t,/:(plac\w+)/,Zi+"input-$1")]})),Da(La(e,{props:[t]})),da(e,{props:Sa(n,r)})}return""}))}}var Za={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qa="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",el="active",tl="data-styled-version",nl="6.1.8",rl="/*!sc*/\n",ol="undefined"!=typeof window&&"HTMLElement"in window,il=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)),al={},ll=Object.freeze([]),sl=Object.freeze({});function ul(e,t,n){return void 0===n&&(n=sl),e.theme!==n.theme&&e.theme||t||n.theme}var cl=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),dl=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pl=/(^-|-$)/g;function fl(e){return e.replace(dl,"-").replace(pl,"")}var ml=/(a)(d)/gi,hl=52,gl=function(e){return String.fromCharCode(e+(e>25?39:97))};function bl(e){var t,n="";for(t=Math.abs(e);t>hl;t=t/hl|0)n=gl(t%hl)+n;return(gl(t%hl)+n).replace(ml,"$1-$2")}var vl,yl=5381,xl=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Sl=function(e){return xl(yl,e)};function El(e){return bl(Sl(e)>>>0)}function Cl(e){return"string"==typeof e&&!0}var wl="function"==typeof Symbol&&Symbol.for,Rl=wl?Symbol.for("react.memo"):60115,Al=wl?Symbol.for("react.forward_ref"):60112,Pl={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Il={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ll={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Dl=((vl={})[Al]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vl[Rl]=Ll,vl);function Ml(e){return("type"in(t=e)&&t.type.$$typeof)===Rl?Ll:"$$typeof"in e?Dl[e.$$typeof]:Pl;var t}var Tl=Object.defineProperty,Ol=Object.getOwnPropertyNames,kl=Object.getOwnPropertySymbols,_l=Object.getOwnPropertyDescriptor,ql=Object.getPrototypeOf,Nl=Object.prototype;function Fl(e,t,n){if("string"!=typeof t){if(Nl){var r=ql(t);r&&r!==Nl&&Fl(e,r,n)}var o=Ol(t);kl&&(o=o.concat(kl(t)));for(var i=Ml(e),a=Ml(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Il||n&&n[s]||a&&s in a||i&&s in i)){var u=_l(t,s);try{Tl(e,s,u)}catch(e){}}}}return e}function zl(e){return"function"==typeof e}function jl(e){return"object"==typeof e&&"styledComponentId"in e}function $l(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Hl(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Bl(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Wl(e,t,n){if(void 0===n&&(n=!1),!n&&!Bl(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Wl(e[r],t[r]);else if(Bl(t))for(var r in t)e[r]=Wl(e[r],t[r]);return e}function Gl(e,t){Object.defineProperty(e,"toString",{value:t})}function Vl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];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 Ul=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,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Vl(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;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],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(rl);return t},e}(),Yl=new Map,Kl=new Map,Xl=1,Jl=function(e){if(Yl.has(e))return Yl.get(e);for(;Kl.has(Xl);)Xl++;var t=Xl++;return Yl.set(e,t),Kl.set(t,e),t},Zl=function(e,t){Xl=t+1,Yl.set(e,t),Kl.set(t,e)},Ql="style[".concat(Qa,"][").concat(tl,'="').concat(nl,'"]'),es=new RegExp("^".concat(Qa,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ts=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},ns=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(rl),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(es);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Zl(c,u),ts(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var rs=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Qa,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Qa,el),r.setAttribute(tl,nl);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},os=function(){function e(e){this.element=rs(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Vl(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}(),is=function(){function e(e){this.element=rs(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,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}(),as=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}(),ls=ol,ss={isServer:!ol,useCSSOMInjection:!il},us=function(){function e(e,t,n){void 0===e&&(e=sl),void 0===t&&(t={});var r=this;this.options=Ki(Ki({},ss),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ol&&ls&&(ls=!1,function(e){for(var t=document.querySelectorAll(Ql),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Qa)!==el&&(ns(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Gl(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Kl.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(Qa,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(rl)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Jl(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ki(Ki({},this.options),t),this.gs,n&&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,n=e.target;return e.isServer?new as(n):t?new os(n):new is(n)}(this.options),new Ul(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(Jl(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Jl(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Jl(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),cs=/&/g,ds=/^\s*\/\/.*$/gm;function ps(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=ps(e.children,t)),e}))}function fs(e){var t,n,r,o=void 0===e?sl:e,i=o.options,a=void 0===i?sl:i,l=o.plugins,s=void 0===l?ll:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===na&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(cs,n).replace(r,u))})),a.prefix&&c.push(Ja),c.push(Xa);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(ds,""),u=Ba(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=ps(u,a.namespace));var d,p=[];return Ka(u,function(e){var t=ya(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,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=s.length?s.reduce((function(e,t){return t.name||Vl(15),xl(e,t.name)}),yl).toString():"",d}var ms=new us,hs=fs(),gs=x.createContext({shouldForwardProp:void 0,styleSheet:ms,stylis:hs});gs.Consumer;var bs=x.createContext(void 0);function vs(){return w(gs)}function ys(e){var t=E(e.stylisPlugins),n=t[0],r=t[1],o=vs().styleSheet,i=S((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=S((function(){return fs({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);C((function(){Ji(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var l=S((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(gs.Provider,{value:l},x.createElement(bs.Provider,{value:a},e.children))}var xs=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=hs);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Gl(this,(function(){throw Vl(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=hs),this.name+e.hash},e}(),Ss=function(e){return e>="A"&&e<="Z"};function Es(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ss(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Cs=function(e){return null==e||!1===e||""===e},ws=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Cs(i)&&(Array.isArray(i)&&i.isCss||zl(i)?r.push("".concat(Es(o),":"),i,";"):Bl(i)?r.push.apply(r,Xi(Xi(["".concat(o," {")],ws(i),!1),["}"],!1)):r.push("".concat(Es(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Za||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Rs(e,t,n,r){return Cs(e)?[]:jl(e)?[".".concat(e.styledComponentId)]:zl(e)?!zl(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Rs(e(t),t,n,r):e instanceof xs?n?(e.inject(n,r),[e.getName(r)]):[e]:Bl(e)?ws(e):Array.isArray(e)?Array.prototype.concat.apply(ll,e.map((function(e){return Rs(e,t,n,r)}))):[e.toString()];var o}function As(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(zl(n)&&!jl(n))return!1}return!0}var Ps=Sl(nl),Is=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&As(e),this.componentId=t,this.baseHash=xl(Ps,t),this.baseStyle=n,us.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=$l(r,this.staticRulesId);else{var o=Hl(Rs(this.rules,e,t,n)),i=bl(xl(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=$l(r,i),this.staticRulesId=i}else{for(var l=xl(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Hl(Rs(c,e,t,n));l=xl(l,d+u),s+=d}}if(s){var p=bl(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=$l(r,p)}}return r},e}(),Ls=x.createContext(void 0);Ls.Consumer;var Ds={};new Set;function Ms(e,t,n){var r=jl(e),o=e,i=!Cl(e),a=t.attrs,l=void 0===a?ll:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":fl(e);Ds[n]=(Ds[n]||0)+1;var r="".concat(n,"-").concat(El(nl+n+Ds[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Cl(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(fl(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new Is(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=x.useContext(Ls),c=vs(),d=e.shouldForwardProp||c.shouldForwardProp,p=ul(t,u,i)||sl,f=function(e,t,n){for(var r,o=Ki(Ki({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=zl(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?$l(o[l],a[l]):"style"===l?Ki(Ki({},o[l]),a[l]):a[l]}return t.className&&(o.className=$l(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var n=vs();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=$l(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[Cl(m)&&!cl.has(m)?"class":"className"]=v,h.ref=n,R(m,h)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?$l(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Wl(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Gl(y,(function(){return".".concat(y.styledComponentId)})),i&&Fl(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Ts(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Os=function(e){return Object.assign(e,{isCss:!0})};function ks(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(zl(e)||Bl(e))return Os(Rs(Ts(ll,Xi([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Rs(r):Os(Rs(Ts(r,t)))}function _s(e,t,n){if(void 0===n&&(n=sl),!t)throw Vl(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,ks.apply(void 0,Xi([r],o,!1)))};return r.attrs=function(r){return _s(e,t,Ki(Ki({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return _s(e,t,Ki(Ki({},n),r))},r}var qs=function(e){return _s(Ms,e)},Ns=qs;cl.forEach((function(e){Ns[e]=qs(e)}));var Fs=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=As(e),us.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Hl(Rs(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&us.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function zs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ks.apply(void 0,Xi([e],t,!1)),o="sc-global-".concat(El(JSON.stringify(r))),i=new Fs(r,o),a=function(e){var t=vs(),n=x.useContext(Ls),r=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,al,n,o);else{var l=Ki(Ki({},t),{theme:ul(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return x.memo(a)}function js(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Hl(ks.apply(void 0,Xi([e],t,!1))),o=El(r);return new xs(o,r)}var $s={exports:{}};function Hs(){}function Bs(){}Bs.resetWarningCache=Hs;$s.exports=function(){function e(e,t,n,r,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 n={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:Bs,resetWarningCache:Hs};return n.PropTypes=n,n}();var Ws=nn($s.exports);function Gs(e){const{injectFirst:t,children:n}=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 n}Gs.propTypes={children:Ws.node,injectFirst:Ws.bool};const Vs=zs((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Us=Vs;
12
12
  /**
13
13
  * @mui/styled-engine-sc v6.0.0-alpha.18
14
14
  *
@@ -16,7 +16,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
18
  */
19
- function Ys(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ns(e),n}Vs.propTypes={defaultTheme:Ws.object,styles:Ws.oneOfType([Ws.array,Ws.string,Ws.object,Ws.func])};var Ks=Object.freeze({__proto__:null,GlobalStyles:Us,StyledEngineProvider:Gs,ThemeContext:Ds,css:ks,default:Ys,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:js});function Xs(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 Js(e){if(!Xs(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Js(e[n])})),t}function Zs(e,t,n={clone:!0}){const r=n.clone?Ui({},e):e;return Xs(e)&&Xs(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Xs(t[o])&&o in e&&Xs(e[o])?r[o]=Zs(e[o],t[o],n):n.clone?r[o]=Xs(t[o])?Js(t[o]):t[o]:r[o]=t[o])})),r}var Qs=Object.freeze({__proto__:null,default:Zs,isPlainObject:Xs});const eu=["values","unit","step"],tu=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)=>Ui({},e,{[t.key]:t.val})),{})};function nu(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Yi(e,eu),i=tu(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ui({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var ru={borderRadius:4};function ou(e,t){return t?Zs(e,t,{clone:!1}):e}const iu={xs:0,sm:600,md:900,lg:1200,xl:1536},au={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${iu[e]}px)`};function lu(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||au;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||au;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||iu).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function su(e){if("string"!=typeof e)throw new Error(Wi(7));return e.charAt(0).toUpperCase()+e.slice(1)}var uu=Object.freeze({__proto__:null,default:su});function cu(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function du(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:cu(e,n)||r,t&&(o=t(o,r,e)),o}function pu(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=cu(e.theme,r)||{};return lu(e,i,(e=>{let r=du(a,o,e);return e===r&&"string"==typeof e&&(r=du(a,o,`${t}${"default"===e?"":su(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const fu={m:"margin",p:"padding"},mu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gu=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!hu[e])return[e];e=hu[e]}const[t,n]=e.split(""),r=fu[t],o=mu[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),bu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function yu(e,t,n,r){var o;const i=null!=(o=cu(e,t,!1))?o:n;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 xu(e){return yu(e,"spacing",8)}function Su(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Eu(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Su(t,n),e)),{})}(gu(n),r);return lu(e,e[n],o)}function Cu(e,t){const n=xu(e.theme);return Object.keys(e).map((r=>Eu(e,t,r,n))).reduce(ou,{})}function wu(e){return Cu(e,bu)}function Ru(e){return Cu(e,vu)}function Au(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?ou(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Pu(e){return"number"!=typeof e?e:`${e}px solid`}function Iu(e,t){return pu({prop:e,themeKey:"borders",transform:t})}wu.propTypes={},wu.filterProps=bu,Ru.propTypes={},Ru.filterProps=vu;const Du=Iu("border",Pu),Lu=Iu("borderTop",Pu),Mu=Iu("borderRight",Pu),Ou=Iu("borderBottom",Pu),Tu=Iu("borderLeft",Pu),ku=Iu("borderColor"),_u=Iu("borderTopColor"),qu=Iu("borderRightColor"),Nu=Iu("borderBottomColor"),Fu=Iu("borderLeftColor"),zu=Iu("outline",Pu),ju=Iu("outlineColor"),$u=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=yu(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Su(t,e)});return lu(e,e.borderRadius,n)}return null};$u.propTypes={},$u.filterProps=["borderRadius"],Au(Du,Lu,Mu,Ou,Tu,ku,_u,qu,Nu,Fu,$u,zu,ju);const Hu=e=>{if(void 0!==e.gap&&null!==e.gap){const t=yu(e.theme,"spacing",8),n=e=>({gap:Su(t,e)});return lu(e,e.gap,n)}return null};Hu.propTypes={},Hu.filterProps=["gap"];const Bu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=yu(e.theme,"spacing",8),n=e=>({columnGap:Su(t,e)});return lu(e,e.columnGap,n)}return null};Bu.propTypes={},Bu.filterProps=["columnGap"];const Wu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=yu(e.theme,"spacing",8),n=e=>({rowGap:Su(t,e)});return lu(e,e.rowGap,n)}return null};Wu.propTypes={},Wu.filterProps=["rowGap"];function Gu(e,t){return"grey"===t?t:e}Au(Hu,Bu,Wu,pu({prop:"gridColumn"}),pu({prop:"gridRow"}),pu({prop:"gridAutoFlow"}),pu({prop:"gridAutoColumns"}),pu({prop:"gridAutoRows"}),pu({prop:"gridTemplateColumns"}),pu({prop:"gridTemplateRows"}),pu({prop:"gridTemplateAreas"}),pu({prop:"gridArea"}));function Vu(e){return e<=1&&0!==e?100*e+"%":e}Au(pu({prop:"color",themeKey:"palette",transform:Gu}),pu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gu}),pu({prop:"backgroundColor",themeKey:"palette",transform:Gu}));const Uu=pu({prop:"width",transform:Vu}),Yu=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||iu[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Vu(t)}};return lu(e,e.maxWidth,t)}return null};Yu.filterProps=["maxWidth"];const Ku=pu({prop:"minWidth",transform:Vu}),Xu=pu({prop:"height",transform:Vu}),Ju=pu({prop:"maxHeight",transform:Vu}),Zu=pu({prop:"minHeight",transform:Vu});pu({prop:"size",cssProperty:"width",transform:Vu}),pu({prop:"size",cssProperty:"height",transform:Vu});Au(Uu,Yu,Ku,Xu,Ju,Zu,pu({prop:"boxSizing"}));var Qu={border:{themeKey:"borders",transform:Pu},borderTop:{themeKey:"borders",transform:Pu},borderRight:{themeKey:"borders",transform:Pu},borderBottom:{themeKey:"borders",transform:Pu},borderLeft:{themeKey:"borders",transform:Pu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$u},color:{themeKey:"palette",transform:Gu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gu},backgroundColor:{themeKey:"palette",transform:Gu},p:{style:Ru},pt:{style:Ru},pr:{style:Ru},pb:{style:Ru},pl:{style:Ru},px:{style:Ru},py:{style:Ru},padding:{style:Ru},paddingTop:{style:Ru},paddingRight:{style:Ru},paddingBottom:{style:Ru},paddingLeft:{style:Ru},paddingX:{style:Ru},paddingY:{style:Ru},paddingInline:{style:Ru},paddingInlineStart:{style:Ru},paddingInlineEnd:{style:Ru},paddingBlock:{style:Ru},paddingBlockStart:{style:Ru},paddingBlockEnd:{style:Ru},m:{style:wu},mt:{style:wu},mr:{style:wu},mb:{style:wu},ml:{style:wu},mx:{style:wu},my:{style:wu},margin:{style:wu},marginTop:{style:wu},marginRight:{style:wu},marginBottom:{style:wu},marginLeft:{style:wu},marginX:{style:wu},marginY:{style:wu},marginInline:{style:wu},marginInlineStart:{style:wu},marginInlineEnd:{style:wu},marginBlock:{style:wu},marginBlockStart:{style:wu},marginBlockEnd:{style:wu},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:Hu},rowGap:{style:Wu},columnGap:{style:Bu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vu},maxWidth:{style:Yu},minWidth:{transform:Vu},height:{transform:Vu},maxHeight:{transform:Vu},minHeight:{transform:Vu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ec(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=cu(n,l)||{};if(u)return u(o);return lu(o,t,(t=>{let n=du(c,s,t);return t===n&&"string"==typeof t&&(n=du(c,s,`${e}${"default"===t?"":su(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Qu;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=ou(s,e(n,o,i,a));else{const e=lu({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=ou(s,e):s[n]=t({sx:o,theme:i})}else s=ou(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const tc=ec();tc.filterProps=["sx"];var nc=tc;function rc(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const oc=["breakpoints","palette","spacing","shape"];function ic(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Yi(e,oc),l=nu(n),s=function(e=8){if(e.mui)return e;const t=xu({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Zs({breakpoints:l,direction:"ltr",components:{},palette:Ui({mode:"light"},r),spacing:s,shape:Ui({},ru,i)},a);return u.applyStyles=rc,u=t.reduce(((e,t)=>Zs(e,t)),u),u.unstable_sxConfig=Ui({},Qu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return nc({sx:e,theme:this})},u}var ac=Object.freeze({__proto__:null,default:ic,private_createBreakpoints:nu,unstable_applyStyles:rc});function lc(e=null){const t=y.useContext(Ds);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const sc=ic();function uc(e=sc){return lc(e)}const cc=["sx"],dc=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Qu;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function pc(e){const{sx:t}=e,n=Yi(e,cc),{systemProps:r,otherProps:o}=dc(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Xs(n)?Ui({},r,n):r}:Ui({},r,t),Ui({},o,{sx:i})}var fc=Object.freeze({__proto__:null,default:nc,extendSxProp:pc,unstable_createStyleFunctionSx:ec,unstable_defaultSxConfig:Qu});const mc=e=>e;var hc=(()=>{let e=mc;return{configure(t){e=t},generate:t=>e(t),reset(){e=mc}}})();function gc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gc(e))&&(r&&(r+=" "),r+=t);return r}const vc=["className","component"];const yc={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 xc(e,t,n="Mui"){const r=yc[t];return r?`${n}-${r}`:`${hc.generate(e)}-${t}`}function Sc(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=xc(e,t,n)})),r}var Ec,Cc={exports:{}},wc={},Rc=Symbol.for("react.element"),Ac=Symbol.for("react.portal"),Pc=Symbol.for("react.fragment"),Ic=Symbol.for("react.strict_mode"),Dc=Symbol.for("react.profiler"),Lc=Symbol.for("react.provider"),Mc=Symbol.for("react.context"),Oc=Symbol.for("react.server_context"),Tc=Symbol.for("react.forward_ref"),kc=Symbol.for("react.suspense"),_c=Symbol.for("react.suspense_list"),qc=Symbol.for("react.memo"),Nc=Symbol.for("react.lazy"),Fc=Symbol.for("react.offscreen");function zc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Rc:switch(e=e.type){case Pc:case Dc:case Ic:case kc:case _c:return e;default:switch(e=e&&e.$$typeof){case Oc:case Mc:case Tc:case Nc:case qc:case Lc:return e;default:return t}}case Ac:return t}}}Ec=Symbol.for("react.module.reference"),wc.ContextConsumer=Mc,wc.ContextProvider=Lc,wc.Element=Rc,wc.ForwardRef=Tc,wc.Fragment=Pc,wc.Lazy=Nc,wc.Memo=qc,wc.Portal=Ac,wc.Profiler=Dc,wc.StrictMode=Ic,wc.Suspense=kc,wc.SuspenseList=_c,wc.isAsyncMode=function(){return!1},wc.isConcurrentMode=function(){return!1},wc.isContextConsumer=function(e){return zc(e)===Mc},wc.isContextProvider=function(e){return zc(e)===Lc},wc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Rc},wc.isForwardRef=function(e){return zc(e)===Tc},wc.isFragment=function(e){return zc(e)===Pc},wc.isLazy=function(e){return zc(e)===Nc},wc.isMemo=function(e){return zc(e)===qc},wc.isPortal=function(e){return zc(e)===Ac},wc.isProfiler=function(e){return zc(e)===Dc},wc.isStrictMode=function(e){return zc(e)===Ic},wc.isSuspense=function(e){return zc(e)===kc},wc.isSuspenseList=function(e){return zc(e)===_c},wc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Pc||e===Dc||e===Ic||e===kc||e===_c||e===Fc||"object"==typeof e&&null!==e&&(e.$$typeof===Nc||e.$$typeof===qc||e.$$typeof===Lc||e.$$typeof===Mc||e.$$typeof===Tc||e.$$typeof===Ec||void 0!==e.getModuleId)},wc.typeOf=zc,Cc.exports=wc;var jc=Cc.exports;const $c=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Hc(e){const t=`${e}`.match($c);return t&&t[1]||""}function Bc(e,t=""){return e.displayName||e.name||Hc(e)||t}function Wc(e,t,n){const r=Bc(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Gc=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Bc(e,"Component");if("object"==typeof e)switch(e.$$typeof){case jc.ForwardRef:return Wc(e,e.render,"ForwardRef");case jc.Memo:return Wc(e,e.type,"memo");default:return}}},getFunctionName:Hc});function Vc(e,t){const n=Ui({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ui({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Ui({},i),Object.keys(o).forEach((e=>{n[r][e]=Vc(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Uc({props:e,name:t,defaultTheme:n,themeId:r}){let o=uc(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Vc(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}var Yc="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Kc(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Xc=Object.freeze({__proto__:null,default:Kc});function Jc(e){if(e.type)return e;if("#"===e.charAt(0))return Jc(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Wi(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(Wi(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Zc(e,t){return e=Jc(e),t=function(e,t=0,n=1){return Kc(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function Qc(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function ed(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function td(e){return e&&e.ownerDocument||document}function nd(e){return td(e).defaultView||window}function rd(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function od(e){const t=y.useRef(e);return Yc((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function id(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{rd(e,t)}))}),e)}const ad={};const ld=[];let sd=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function ud(){const e=function(e,t){const n=y.useRef(ad);return n.current===ad&&(n.current=e(t)),n}(sd.create).current;var t;return t=e.disposeEffect,y.useEffect(t,ld),e}let cd=!0,dd=!1;const pd=new sd,fd={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 md(e){e.metaKey||e.altKey||e.ctrlKey||(cd=!0)}function hd(){cd=!1}function gd(){"hidden"===this.visibilityState&&dd&&(cd=!0)}function bd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return cd||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!fd[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function vd(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",md,!0),t.addEventListener("mousedown",hd,!0),t.addEventListener("pointerdown",hd,!0),t.addEventListener("touchstart",hd,!0),t.addEventListener("visibilitychange",gd,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!bd(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(dd=!0,pd.start(100,(()=>{dd=!1})),t.current=!1,!0)},ref:e}}function yd(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function xd(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var Sd=y.createContext(null);function Ed(){return y.useContext(Sd)}var Cd="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function wd(e){const{children:t,theme:n}=e,r=Ed(),o=y.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Ui({},e,t)}(r,n);return null!=e&&(e[Cd]=null!==r),e}),[n,r]);return Bi.jsx(Sd.Provider,{value:o,children:t})}const Rd=["value"],Ad=y.createContext();function Pd(e){let{value:t}=e,n=Yi(e,Rd);return Bi.jsx(Ad.Provider,Ui({value:null==t||t},n))}const Id={};function Dd(e,t,n,r=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Ui({},t,{[e]:i}):i;return r?()=>a:a}return Ui({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Ld(e){const{children:t,theme:n,themeId:r}=e,o=lc(Id),i=Ed()||Id,a=Dd(r,o,n),l=Dd(r,i,n,!0),s="rtl"===a.direction;return Bi.jsx(wd,{theme:l,children:Bi.jsx(Ds.Provider,{value:a,children:Bi.jsx(Pd,{value:s,children:t})})})}var Md,Od={},Td={exports:{}};(Md=Td).exports=function(e){return e&&e.__esModule?e:{default:e}},Md.exports.__esModule=!0,Md.exports.default=Md.exports;var kd=Td.exports,_d=rn(Gi),qd=rn(Xc),Nd=kd;Object.defineProperty(Od,"__esModule",{value:!0});var Fd=Od.alpha=Jd;Od.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Vd(e),a=Vd(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Yd({type:"rgb",values:l})},Od.colorChannel=void 0;var zd=Od.darken=Zd;Od.decomposeColor=Vd,Od.emphasize=function(e,t=.15){return Xd(e)>.5?Zd(e,t):Qd(e,t)};var jd=Od.getContrastRatio=function(e,t){const n=Xd(e),r=Xd(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Od.getLuminance=Xd,Od.hexToRgb=Gd,Od.hslToRgb=Kd;var $d=Od.lighten=Qd;Od.private_safeAlpha=function(e,t,n){try{return Jd(e,t)}catch(t){return e}},Od.private_safeColorChannel=void 0,Od.private_safeDarken=function(e,t,n){try{return Zd(e,t)}catch(t){return e}},Od.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},Od.private_safeLighten=function(e,t,n){try{return Qd(e,t)}catch(t){return e}},Od.recomposeColor=Yd,Od.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Vd(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 Hd=Nd(_d),Bd=Nd(qd);function Wd(e,t=0,n=1){return(0,Bd.default)(e,t,n)}function Gd(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Vd(e){if(e.type)return e;if("#"===e.charAt(0))return Vd(Gd(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Hd.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error((0,Hd.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Ud=e=>{const t=Vd(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Od.colorChannel=Ud;function Yd(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Kd(e){e=Vd(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Yd({type:l,values:s})}function Xd(e){let t="hsl"===(e=Vd(e)).type||"hsla"===e.type?Vd(Kd(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 Jd(e,t){return e=Vd(e),t=Wd(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Yd(e)}function Zd(e,t){if(e=Vd(e),t=Wd(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 n=0;n<3;n+=1)e.values[n]*=1-t;return Yd(e)}function Qd(e,t){if(e=Vd(e),t=Wd(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Yd(e)}Od.private_safeColorChannel=(e,t)=>{try{return Ud(e)}catch(t){return e}};var ep={black:"#000",white:"#fff"};var tp={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"};var np={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var rp={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"};var op={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"};var ip={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"};var ap={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var lp={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"};const sp=["mode","contrastThreshold","tonalOffset"],up={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ep.white,default:ep.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},cp={text:{primary:ep.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ep.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function dp(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=$d(e.main,o):"dark"===t&&(e.dark=zd(e.main,i)))}function pp(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Yi(e,sp),i=e.primary||function(e="light"){return"dark"===e?{main:ip[200],light:ip[50],dark:ip[400]}:{main:ip[700],light:ip[400],dark:ip[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:np[200],light:np[50],dark:np[400]}:{main:np[500],light:np[300],dark:np[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:rp[500],light:rp[300],dark:rp[700]}:{main:rp[700],light:rp[400],dark:rp[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ap[400],light:ap[300],dark:ap[700]}:{main:ap[700],light:ap[500],dark:ap[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:lp[400],light:lp[300],dark:lp[700]}:{main:lp[800],light:lp[500],dark:lp[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:op[400],light:op[300],dark:op[700]}:{main:"#ed6c02",light:op[500],dark:op[900]}}(t);function d(e){return jd(e,cp.text.primary)>=n?cp.text.primary:up.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ui({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Wi(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Wi(12,t?` (${t})`:"",JSON.stringify(e.main)));return dp(e,"light",o,r),dp(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:cp,light:up};return Zs(Ui({common:Ui({},ep),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:tp,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const fp=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const mp={textTransform:"uppercase"},hp='"Roboto", "Helvetica", "Arial", sans-serif';function gp(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=hp,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Yi(n,fp),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Ui({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===hp?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,mp),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,mp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zs(Ui({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function bp(...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(",")}var vp=["none",bp(0,2,1,-1,0,1,1,0,0,1,3,0),bp(0,3,1,-2,0,2,2,0,0,1,5,0),bp(0,3,3,-2,0,3,4,0,0,1,8,0),bp(0,2,4,-1,0,4,5,0,0,1,10,0),bp(0,3,5,-1,0,5,8,0,0,1,14,0),bp(0,3,5,-1,0,6,10,0,0,1,18,0),bp(0,4,5,-2,0,7,10,1,0,2,16,1),bp(0,5,5,-3,0,8,10,1,0,3,14,2),bp(0,5,6,-3,0,9,12,1,0,3,16,2),bp(0,6,6,-3,0,10,14,1,0,4,18,3),bp(0,6,7,-4,0,11,15,1,0,4,20,3),bp(0,7,8,-4,0,12,17,2,0,5,22,4),bp(0,7,8,-4,0,13,19,2,0,5,24,4),bp(0,7,9,-4,0,14,21,2,0,5,26,4),bp(0,8,9,-5,0,15,22,2,0,6,28,5),bp(0,8,10,-5,0,16,24,2,0,6,30,5),bp(0,8,11,-5,0,17,26,2,0,6,32,5),bp(0,9,11,-5,0,18,28,2,0,7,34,6),bp(0,9,12,-6,0,19,29,2,0,7,36,6),bp(0,10,13,-6,0,20,31,3,0,8,38,7),bp(0,10,13,-6,0,21,33,3,0,8,40,7),bp(0,10,14,-6,0,22,35,3,0,8,42,7),bp(0,11,14,-7,0,23,36,3,0,9,44,8),bp(0,11,15,-7,0,24,38,3,0,9,46,8)];const yp=["duration","easing","delay"],xp={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)"},Sp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ep(e){return`${Math.round(e)}ms`}function Cp(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function wp(e){const t=Ui({},xp,e.easing),n=Ui({},Sp,e.duration);return Ui({getAutoHeightDuration:Cp,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Yi(r,yp),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Ep(o)} ${i} ${"string"==typeof a?a:Ep(a)}`)).join(",")}},e,{easing:t,duration:n})}var Rp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Ap=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Pp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Yi(e,Ap);if(e.vars)throw new Error(Wi(18));const l=pp(r),s=ic(e);let u=Zs(s,{mixins:(c=s.breakpoints,d=n,Ui({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:vp.slice(),typography:gp(l,i),transitions:wp(o),zIndex:Ui({},Rp)});var c,d;return u=Zs(u,a),u=t.reduce(((e,t)=>Zs(e,t)),u),u.unstable_sxConfig=Ui({},Qu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return nc({sx:e,theme:this})},u}var Ip=Pp();function Dp(){const e=uc(Ip);return e[Vi]||e}function Lp({props:e,name:t}){return Uc({props:e,name:t,defaultTheme:Ip,themeId:Vi})}var Mp,Op={},Tp={exports:{}};var kp,_p={exports:{}};var qp=rn(Ks),Np=rn(Qs),Fp=rn(uu),zp=rn(Gc),jp=rn(ac),$p=rn(fc),Hp=kd;Object.defineProperty(Op,"__esModule",{value:!0});var Bp=Op.default=function(e={}){const{themeId:t,defaultTheme:n=tf,rootShouldForwardProp:r=ef,slotShouldForwardProp:o=ef}=e,i=e=>(0,Kp.default)((0,Wp.default)({},e,{theme:rf((0,Wp.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Vp.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=of(nf(s))}=a,p=(0,Gp.default)(a,Zp),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ef;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,Vp.default)(e,(0,Wp.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Up.isPlainObject)(e)?r=>af(e,(0,Wp.default)({},r,{theme:rf({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=rf((0,Wp.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=af(n,(0,Wp.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=rf((0,Wp.default)({},e,{defaultTheme:n,themeId:t}));return af({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,Wp.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Op.shouldForwardProp=ef,Op.systemDefaultTheme=void 0;var Wp=Hp((Mp||(Mp=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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Tp)),Tp.exports)),Gp=Hp((kp||(kp=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(_p)),_p.exports)),Vp=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Qp(t);if(n&&n.has(e))return n.get(e);var r={__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(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(qp),Up=Np;Hp(Fp),Hp(zp);var Yp=Hp(jp),Kp=Hp($p);const Xp=["ownerState"],Jp=["variants"],Zp=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Qp(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Qp=function(e){return e?n:t})(e)}function ef(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const tf=Op.systemDefaultTheme=(0,Yp.default)(),nf=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function rf({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function of(e){return e?(t,n)=>n[e]:null}function af(e,t){let{ownerState:n}=t,r=(0,Gp.default)(t,Xp);const o="function"==typeof e?e((0,Wp.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>af(e,(0,Wp.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Gp.default)(o,Jp);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Wp.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Wp.default)({ownerState:n},r,n)):e.style))})),t}return o}var lf=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var sf=Bp({themeId:Vi,defaultTheme:Ip,rootShouldForwardProp:lf});const uf=["theme"];function cf(e){let{theme:t}=e,n=Yi(e,uf);const r=t[Vi];return Bi.jsx(Ld,Ui({},n,{themeId:r?Vi:void 0,theme:r||t}))}var df=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},pf={exports:{}};
19
+ function Ys(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ns(e),n}Vs.propTypes={defaultTheme:Ws.object,styles:Ws.oneOfType([Ws.array,Ws.string,Ws.object,Ws.func])};var Ks=Object.freeze({__proto__:null,GlobalStyles:Us,StyledEngineProvider:Gs,ThemeContext:Ls,css:ks,default:Ys,internal_processStyles:(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))},keyframes:js});function Xs(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 Js(e){if(!Xs(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Js(e[n])})),t}function Zs(e,t,n={clone:!0}){const r=n.clone?Ui({},e):e;return Xs(e)&&Xs(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Xs(t[o])&&o in e&&Xs(e[o])?r[o]=Zs(e[o],t[o],n):n.clone?r[o]=Xs(t[o])?Js(t[o]):t[o]:r[o]=t[o])})),r}var Qs=Object.freeze({__proto__:null,default:Zs,isPlainObject:Xs});const eu=["values","unit","step"],tu=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)=>Ui({},e,{[t.key]:t.val})),{})};function nu(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Yi(e,eu),i=tu(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ui({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var ru={borderRadius:4};function ou(e,t){return t?Zs(e,t,{clone:!1}):e}const iu={xs:0,sm:600,md:900,lg:1200,xl:1536},au={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${iu[e]}px)`};function lu(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||au;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||au;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||iu).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function su(e){if("string"!=typeof e)throw new Error(Wi(7));return e.charAt(0).toUpperCase()+e.slice(1)}var uu=Object.freeze({__proto__:null,default:su});function cu(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function du(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:cu(e,n)||r,t&&(o=t(o,r,e)),o}function pu(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=cu(e.theme,r)||{};return lu(e,i,(e=>{let r=du(a,o,e);return e===r&&"string"==typeof e&&(r=du(a,o,`${t}${"default"===e?"":su(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const fu={m:"margin",p:"padding"},mu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gu=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!hu[e])return[e];e=hu[e]}const[t,n]=e.split(""),r=fu[t],o=mu[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),bu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function yu(e,t,n,r){var o;const i=null!=(o=cu(e,t,!1))?o:n;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 xu(e){return yu(e,"spacing",8)}function Su(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Eu(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Su(t,n),e)),{})}(gu(n),r);return lu(e,e[n],o)}function Cu(e,t){const n=xu(e.theme);return Object.keys(e).map((r=>Eu(e,t,r,n))).reduce(ou,{})}function wu(e){return Cu(e,bu)}function Ru(e){return Cu(e,vu)}function Au(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?ou(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Pu(e){return"number"!=typeof e?e:`${e}px solid`}function Iu(e,t){return pu({prop:e,themeKey:"borders",transform:t})}wu.propTypes={},wu.filterProps=bu,Ru.propTypes={},Ru.filterProps=vu;const Lu=Iu("border",Pu),Du=Iu("borderTop",Pu),Mu=Iu("borderRight",Pu),Tu=Iu("borderBottom",Pu),Ou=Iu("borderLeft",Pu),ku=Iu("borderColor"),_u=Iu("borderTopColor"),qu=Iu("borderRightColor"),Nu=Iu("borderBottomColor"),Fu=Iu("borderLeftColor"),zu=Iu("outline",Pu),ju=Iu("outlineColor"),$u=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=yu(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Su(t,e)});return lu(e,e.borderRadius,n)}return null};$u.propTypes={},$u.filterProps=["borderRadius"],Au(Lu,Du,Mu,Tu,Ou,ku,_u,qu,Nu,Fu,$u,zu,ju);const Hu=e=>{if(void 0!==e.gap&&null!==e.gap){const t=yu(e.theme,"spacing",8),n=e=>({gap:Su(t,e)});return lu(e,e.gap,n)}return null};Hu.propTypes={},Hu.filterProps=["gap"];const Bu=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=yu(e.theme,"spacing",8),n=e=>({columnGap:Su(t,e)});return lu(e,e.columnGap,n)}return null};Bu.propTypes={},Bu.filterProps=["columnGap"];const Wu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=yu(e.theme,"spacing",8),n=e=>({rowGap:Su(t,e)});return lu(e,e.rowGap,n)}return null};Wu.propTypes={},Wu.filterProps=["rowGap"];function Gu(e,t){return"grey"===t?t:e}Au(Hu,Bu,Wu,pu({prop:"gridColumn"}),pu({prop:"gridRow"}),pu({prop:"gridAutoFlow"}),pu({prop:"gridAutoColumns"}),pu({prop:"gridAutoRows"}),pu({prop:"gridTemplateColumns"}),pu({prop:"gridTemplateRows"}),pu({prop:"gridTemplateAreas"}),pu({prop:"gridArea"}));function Vu(e){return e<=1&&0!==e?100*e+"%":e}Au(pu({prop:"color",themeKey:"palette",transform:Gu}),pu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gu}),pu({prop:"backgroundColor",themeKey:"palette",transform:Gu}));const Uu=pu({prop:"width",transform:Vu}),Yu=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||iu[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Vu(t)}};return lu(e,e.maxWidth,t)}return null};Yu.filterProps=["maxWidth"];const Ku=pu({prop:"minWidth",transform:Vu}),Xu=pu({prop:"height",transform:Vu}),Ju=pu({prop:"maxHeight",transform:Vu}),Zu=pu({prop:"minHeight",transform:Vu});pu({prop:"size",cssProperty:"width",transform:Vu}),pu({prop:"size",cssProperty:"height",transform:Vu});Au(Uu,Yu,Ku,Xu,Ju,Zu,pu({prop:"boxSizing"}));var Qu={border:{themeKey:"borders",transform:Pu},borderTop:{themeKey:"borders",transform:Pu},borderRight:{themeKey:"borders",transform:Pu},borderBottom:{themeKey:"borders",transform:Pu},borderLeft:{themeKey:"borders",transform:Pu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$u},color:{themeKey:"palette",transform:Gu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gu},backgroundColor:{themeKey:"palette",transform:Gu},p:{style:Ru},pt:{style:Ru},pr:{style:Ru},pb:{style:Ru},pl:{style:Ru},px:{style:Ru},py:{style:Ru},padding:{style:Ru},paddingTop:{style:Ru},paddingRight:{style:Ru},paddingBottom:{style:Ru},paddingLeft:{style:Ru},paddingX:{style:Ru},paddingY:{style:Ru},paddingInline:{style:Ru},paddingInlineStart:{style:Ru},paddingInlineEnd:{style:Ru},paddingBlock:{style:Ru},paddingBlockStart:{style:Ru},paddingBlockEnd:{style:Ru},m:{style:wu},mt:{style:wu},mr:{style:wu},mb:{style:wu},ml:{style:wu},mx:{style:wu},my:{style:wu},margin:{style:wu},marginTop:{style:wu},marginRight:{style:wu},marginBottom:{style:wu},marginLeft:{style:wu},marginX:{style:wu},marginY:{style:wu},marginInline:{style:wu},marginInlineStart:{style:wu},marginInlineEnd:{style:wu},marginBlock:{style:wu},marginBlockStart:{style:wu},marginBlockEnd:{style:wu},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:Hu},rowGap:{style:Wu},columnGap:{style:Bu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vu},maxWidth:{style:Yu},minWidth:{transform:Vu},height:{transform:Vu},maxHeight:{transform:Vu},minHeight:{transform:Vu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ec(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=cu(n,l)||{};if(u)return u(o);return lu(o,t,(t=>{let n=du(c,s,t);return t===n&&"string"==typeof t&&(n=du(c,s,`${e}${"default"===t?"":su(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Qu;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=ou(s,e(n,o,i,a));else{const e=lu({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=ou(s,e):s[n]=t({sx:o,theme:i})}else s=ou(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const tc=ec();tc.filterProps=["sx"];var nc=tc;function rc(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const oc=["breakpoints","palette","spacing","shape"];function ic(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Yi(e,oc),l=nu(n),s=function(e=8){if(e.mui)return e;const t=xu({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Zs({breakpoints:l,direction:"ltr",components:{},palette:Ui({mode:"light"},r),spacing:s,shape:Ui({},ru,i)},a);return u.applyStyles=rc,u=t.reduce(((e,t)=>Zs(e,t)),u),u.unstable_sxConfig=Ui({},Qu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return nc({sx:e,theme:this})},u}var ac=Object.freeze({__proto__:null,default:ic,private_createBreakpoints:nu,unstable_applyStyles:rc});function lc(e=null){const t=y.useContext(Ls);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const sc=ic();function uc(e=sc){return lc(e)}const cc=["sx"],dc=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Qu;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function pc(e){const{sx:t}=e,n=Yi(e,cc),{systemProps:r,otherProps:o}=dc(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Xs(n)?Ui({},r,n):r}:Ui({},r,t),Ui({},o,{sx:i})}var fc=Object.freeze({__proto__:null,default:nc,extendSxProp:pc,unstable_createStyleFunctionSx:ec,unstable_defaultSxConfig:Qu});const mc=e=>e;var hc=(()=>{let e=mc;return{configure(t){e=t},generate:t=>e(t),reset(){e=mc}}})();function gc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gc(e))&&(r&&(r+=" "),r+=t);return r}const vc=["className","component"];const yc={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 xc(e,t,n="Mui"){const r=yc[t];return r?`${n}-${r}`:`${hc.generate(e)}-${t}`}function Sc(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=xc(e,t,n)})),r}var Ec,Cc={exports:{}},wc={},Rc=Symbol.for("react.element"),Ac=Symbol.for("react.portal"),Pc=Symbol.for("react.fragment"),Ic=Symbol.for("react.strict_mode"),Lc=Symbol.for("react.profiler"),Dc=Symbol.for("react.provider"),Mc=Symbol.for("react.context"),Tc=Symbol.for("react.server_context"),Oc=Symbol.for("react.forward_ref"),kc=Symbol.for("react.suspense"),_c=Symbol.for("react.suspense_list"),qc=Symbol.for("react.memo"),Nc=Symbol.for("react.lazy"),Fc=Symbol.for("react.offscreen");function zc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Rc:switch(e=e.type){case Pc:case Lc:case Ic:case kc:case _c:return e;default:switch(e=e&&e.$$typeof){case Tc:case Mc:case Oc:case Nc:case qc:case Dc:return e;default:return t}}case Ac:return t}}}Ec=Symbol.for("react.module.reference"),wc.ContextConsumer=Mc,wc.ContextProvider=Dc,wc.Element=Rc,wc.ForwardRef=Oc,wc.Fragment=Pc,wc.Lazy=Nc,wc.Memo=qc,wc.Portal=Ac,wc.Profiler=Lc,wc.StrictMode=Ic,wc.Suspense=kc,wc.SuspenseList=_c,wc.isAsyncMode=function(){return!1},wc.isConcurrentMode=function(){return!1},wc.isContextConsumer=function(e){return zc(e)===Mc},wc.isContextProvider=function(e){return zc(e)===Dc},wc.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Rc},wc.isForwardRef=function(e){return zc(e)===Oc},wc.isFragment=function(e){return zc(e)===Pc},wc.isLazy=function(e){return zc(e)===Nc},wc.isMemo=function(e){return zc(e)===qc},wc.isPortal=function(e){return zc(e)===Ac},wc.isProfiler=function(e){return zc(e)===Lc},wc.isStrictMode=function(e){return zc(e)===Ic},wc.isSuspense=function(e){return zc(e)===kc},wc.isSuspenseList=function(e){return zc(e)===_c},wc.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Pc||e===Lc||e===Ic||e===kc||e===_c||e===Fc||"object"==typeof e&&null!==e&&(e.$$typeof===Nc||e.$$typeof===qc||e.$$typeof===Dc||e.$$typeof===Mc||e.$$typeof===Oc||e.$$typeof===Ec||void 0!==e.getModuleId)},wc.typeOf=zc,Cc.exports=wc;var jc=Cc.exports;const $c=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Hc(e){const t=`${e}`.match($c);return t&&t[1]||""}function Bc(e,t=""){return e.displayName||e.name||Hc(e)||t}function Wc(e,t,n){const r=Bc(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Gc=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Bc(e,"Component");if("object"==typeof e)switch(e.$$typeof){case jc.ForwardRef:return Wc(e,e.render,"ForwardRef");case jc.Memo:return Wc(e,e.type,"memo");default:return}}},getFunctionName:Hc});function Vc(e,t){const n=Ui({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ui({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Ui({},i),Object.keys(o).forEach((e=>{n[r][e]=Vc(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Uc({props:e,name:t,defaultTheme:n,themeId:r}){let o=uc(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Vc(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}var Yc="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Kc(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var Xc=Object.freeze({__proto__:null,default:Kc});function Jc(e){if(e.type)return e;if("#"===e.charAt(0))return Jc(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Wi(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(Wi(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Zc(e,t){return e=Jc(e),t=function(e,t=0,n=1){return Kc(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function Qc(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function ed(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function td(e){return e&&e.ownerDocument||document}function nd(e){return td(e).defaultView||window}function rd(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function od(e){const t=y.useRef(e);return Yc((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function id(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{rd(e,t)}))}),e)}const ad={};const ld=[];let sd=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function ud(){const e=function(e,t){const n=y.useRef(ad);return n.current===ad&&(n.current=e(t)),n}(sd.create).current;var t;return t=e.disposeEffect,y.useEffect(t,ld),e}let cd=!0,dd=!1;const pd=new sd,fd={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 md(e){e.metaKey||e.altKey||e.ctrlKey||(cd=!0)}function hd(){cd=!1}function gd(){"hidden"===this.visibilityState&&dd&&(cd=!0)}function bd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return cd||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!fd[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function vd(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",md,!0),t.addEventListener("mousedown",hd,!0),t.addEventListener("pointerdown",hd,!0),t.addEventListener("touchstart",hd,!0),t.addEventListener("visibilitychange",gd,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!bd(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(dd=!0,pd.start(100,(()=>{dd=!1})),t.current=!1,!0)},ref:e}}function yd(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function xd(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var Sd=y.createContext(null);function Ed(){return y.useContext(Sd)}var Cd="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function wd(e){const{children:t,theme:n}=e,r=Ed(),o=y.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Ui({},e,t)}(r,n);return null!=e&&(e[Cd]=null!==r),e}),[n,r]);return Bi.jsx(Sd.Provider,{value:o,children:t})}const Rd=["value"],Ad=y.createContext();function Pd(e){let{value:t}=e,n=Yi(e,Rd);return Bi.jsx(Ad.Provider,Ui({value:null==t||t},n))}const Id={};function Ld(e,t,n,r=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Ui({},t,{[e]:i}):i;return r?()=>a:a}return Ui({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Dd(e){const{children:t,theme:n,themeId:r}=e,o=lc(Id),i=Ed()||Id,a=Ld(r,o,n),l=Ld(r,i,n,!0),s="rtl"===a.direction;return Bi.jsx(wd,{theme:l,children:Bi.jsx(Ls.Provider,{value:a,children:Bi.jsx(Pd,{value:s,children:t})})})}var Md,Td={},Od={exports:{}};(Md=Od).exports=function(e){return e&&e.__esModule?e:{default:e}},Md.exports.__esModule=!0,Md.exports.default=Md.exports;var kd=Od.exports,_d=rn(Gi),qd=rn(Xc),Nd=kd;Object.defineProperty(Td,"__esModule",{value:!0});var Fd=Td.alpha=Jd;Td.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Vd(e),a=Vd(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Yd({type:"rgb",values:l})},Td.colorChannel=void 0;var zd=Td.darken=Zd;Td.decomposeColor=Vd,Td.emphasize=ep;var jd=Td.getContrastRatio=function(e,t){const n=Xd(e),r=Xd(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Td.getLuminance=Xd,Td.hexToRgb=Gd,Td.hslToRgb=Kd;var $d=Td.lighten=Qd;Td.private_safeAlpha=function(e,t,n){try{return Jd(e,t)}catch(t){return e}},Td.private_safeColorChannel=void 0,Td.private_safeDarken=function(e,t,n){try{return Zd(e,t)}catch(t){return e}},Td.private_safeEmphasize=function(e,t,n){try{return ep(e,t)}catch(t){return e}},Td.private_safeLighten=function(e,t,n){try{return Qd(e,t)}catch(t){return e}},Td.recomposeColor=Yd,Td.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Vd(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 Hd=Nd(_d),Bd=Nd(qd);function Wd(e,t=0,n=1){return(0,Bd.default)(e,t,n)}function Gd(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Vd(e){if(e.type)return e;if("#"===e.charAt(0))return Vd(Gd(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Hd.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error((0,Hd.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Ud=e=>{const t=Vd(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Td.colorChannel=Ud;function Yd(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Kd(e){e=Vd(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Yd({type:l,values:s})}function Xd(e){let t="hsl"===(e=Vd(e)).type||"hsla"===e.type?Vd(Kd(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 Jd(e,t){return e=Vd(e),t=Wd(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Yd(e)}function Zd(e,t){if(e=Vd(e),t=Wd(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 n=0;n<3;n+=1)e.values[n]*=1-t;return Yd(e)}function Qd(e,t){if(e=Vd(e),t=Wd(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Yd(e)}function ep(e,t=.15){return Xd(e)>.5?Zd(e,t):Qd(e,t)}Td.private_safeColorChannel=(e,t)=>{try{return Ud(e)}catch(t){return e}};var tp={black:"#000",white:"#fff"};var np={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"};var rp={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var op={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"};var ip={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"};var ap={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"};var lp={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var sp={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"};const up=["mode","contrastThreshold","tonalOffset"],cp={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:tp.white,default:tp.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}},dp={text:{primary:tp.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:tp.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 pp(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=$d(e.main,o):"dark"===t&&(e.dark=zd(e.main,i)))}function fp(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Yi(e,up),i=e.primary||function(e="light"){return"dark"===e?{main:ap[200],light:ap[50],dark:ap[400]}:{main:ap[700],light:ap[400],dark:ap[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:rp[200],light:rp[50],dark:rp[400]}:{main:rp[500],light:rp[300],dark:rp[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:op[500],light:op[300],dark:op[700]}:{main:op[700],light:op[400],dark:op[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:lp[400],light:lp[300],dark:lp[700]}:{main:lp[700],light:lp[500],dark:lp[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:sp[400],light:sp[300],dark:sp[700]}:{main:sp[800],light:sp[500],dark:sp[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:ip[400],light:ip[300],dark:ip[700]}:{main:"#ed6c02",light:ip[500],dark:ip[900]}}(t);function d(e){return jd(e,dp.text.primary)>=n?dp.text.primary:cp.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ui({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Wi(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Wi(12,t?` (${t})`:"",JSON.stringify(e.main)));return pp(e,"light",o,r),pp(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:dp,light:cp};return Zs(Ui({common:Ui({},tp),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:np,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const mp=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const hp={textTransform:"uppercase"},gp='"Roboto", "Helvetica", "Arial", sans-serif';function bp(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=gp,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Yi(n,mp),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return Ui({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===gp?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,hp),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,hp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Zs(Ui({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function vp(...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(",")}var yp=["none",vp(0,2,1,-1,0,1,1,0,0,1,3,0),vp(0,3,1,-2,0,2,2,0,0,1,5,0),vp(0,3,3,-2,0,3,4,0,0,1,8,0),vp(0,2,4,-1,0,4,5,0,0,1,10,0),vp(0,3,5,-1,0,5,8,0,0,1,14,0),vp(0,3,5,-1,0,6,10,0,0,1,18,0),vp(0,4,5,-2,0,7,10,1,0,2,16,1),vp(0,5,5,-3,0,8,10,1,0,3,14,2),vp(0,5,6,-3,0,9,12,1,0,3,16,2),vp(0,6,6,-3,0,10,14,1,0,4,18,3),vp(0,6,7,-4,0,11,15,1,0,4,20,3),vp(0,7,8,-4,0,12,17,2,0,5,22,4),vp(0,7,8,-4,0,13,19,2,0,5,24,4),vp(0,7,9,-4,0,14,21,2,0,5,26,4),vp(0,8,9,-5,0,15,22,2,0,6,28,5),vp(0,8,10,-5,0,16,24,2,0,6,30,5),vp(0,8,11,-5,0,17,26,2,0,6,32,5),vp(0,9,11,-5,0,18,28,2,0,7,34,6),vp(0,9,12,-6,0,19,29,2,0,7,36,6),vp(0,10,13,-6,0,20,31,3,0,8,38,7),vp(0,10,13,-6,0,21,33,3,0,8,40,7),vp(0,10,14,-6,0,22,35,3,0,8,42,7),vp(0,11,14,-7,0,23,36,3,0,9,44,8),vp(0,11,15,-7,0,24,38,3,0,9,46,8)];const xp=["duration","easing","delay"],Sp={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)"},Ep={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Cp(e){return`${Math.round(e)}ms`}function wp(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Rp(e){const t=Ui({},Sp,e.easing),n=Ui({},Ep,e.duration);return Ui({getAutoHeightDuration:wp,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Yi(r,xp),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Cp(o)} ${i} ${"string"==typeof a?a:Cp(a)}`)).join(",")}},e,{easing:t,duration:n})}var Ap={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Pp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ip(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Yi(e,Pp);if(e.vars)throw new Error(Wi(18));const l=fp(r),s=ic(e);let u=Zs(s,{mixins:(c=s.breakpoints,d=n,Ui({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:yp.slice(),typography:bp(l,i),transitions:Rp(o),zIndex:Ui({},Ap)});var c,d;return u=Zs(u,a),u=t.reduce(((e,t)=>Zs(e,t)),u),u.unstable_sxConfig=Ui({},Qu,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return nc({sx:e,theme:this})},u}var Lp=Ip();function Dp(){const e=uc(Lp);return e[Vi]||e}function Mp({props:e,name:t}){return Uc({props:e,name:t,defaultTheme:Lp,themeId:Vi})}var Tp,Op={},kp={exports:{}};var _p,qp={exports:{}};var Np=rn(Ks),Fp=rn(Qs),zp=rn(uu),jp=rn(Gc),$p=rn(ac),Hp=rn(fc),Bp=kd;Object.defineProperty(Op,"__esModule",{value:!0});var Wp=Op.default=function(e={}){const{themeId:t,defaultTheme:n=nf,rootShouldForwardProp:r=tf,slotShouldForwardProp:o=tf}=e,i=e=>(0,Xp.default)((0,Gp.default)({},e,{theme:of((0,Gp.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Up.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=af(rf(s))}=a,p=(0,Vp.default)(a,Qp),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=tf;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,Up.default)(e,(0,Gp.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Yp.isPlainObject)(e)?r=>lf(e,(0,Gp.default)({},r,{theme:of({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=of((0,Gp.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=lf(n,(0,Gp.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=of((0,Gp.default)({},e,{defaultTheme:n,themeId:t}));return lf({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,Gp.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Op.shouldForwardProp=tf,Op.systemDefaultTheme=void 0;var Gp=Bp((Tp||(Tp=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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(kp)),kp.exports)),Vp=Bp((_p||(_p=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(qp)),qp.exports)),Up=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=ef(t);if(n&&n.has(e))return n.get(e);var r={__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(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Np),Yp=Fp;Bp(zp),Bp(jp);var Kp=Bp($p),Xp=Bp(Hp);const Jp=["ownerState"],Zp=["variants"],Qp=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ef(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(ef=function(e){return e?n:t})(e)}function tf(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const nf=Op.systemDefaultTheme=(0,Kp.default)(),rf=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function of({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function af(e){return e?(t,n)=>n[e]:null}function lf(e,t){let{ownerState:n}=t,r=(0,Vp.default)(t,Jp);const o="function"==typeof e?e((0,Gp.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>lf(e,(0,Gp.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Vp.default)(o,Zp);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Gp.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Gp.default)({ownerState:n},r,n)):e.style))})),t}return o}var sf=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var uf=Wp({themeId:Vi,defaultTheme:Lp,rootShouldForwardProp:sf});const cf=["theme"];function df(e){let{theme:t}=e,n=Yi(e,cf);const r=t[Vi];return Bi.jsx(Dd,Ui({},n,{themeId:r?Vi:void 0,theme:r||t}))}var pf=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ff={exports:{}};
20
20
  /*!
21
21
  * CSSJanus. https://github.com/cssjanus/cssjanus
22
22
  *
@@ -36,7 +36,7 @@ function Ys(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldFo
36
36
  * See the License for the specific language governing permissions and
37
37
  * limitations under the License.
38
38
  */
39
- !function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",l="(^|[^a-zA-Z])",s="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+n+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+n+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+n+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+s+g+"[^;}]+;?)","gi"),C=new RegExp("("+s+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(l+"(left)"+h+b+g,"gi"),P=new RegExp(l+"(right)"+h+b+g,"gi"),I=new RegExp(l+"(left)"+v,"gi"),D=new RegExp(l+"(right)"+v,"gi"),L=new RegExp(l+"(ltr)"+v,"gi"),M=new RegExp(l+"(rtl)"+v,"gi"),O=new RegExp(l+"([ns]?)e-resize","gi"),T=new RegExp(l+"([ns]?)w-resize","gi"),k=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),_=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=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"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function G(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function V(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?V(r)+" / "+V(o):V(r))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,n){return t+Y(n)}function X(e,t,n,r,o){return t+n+Y(r)+o}function J(e,t,n,r,o){return t+n+r+Y(o)}return{transform:function(n,o){var i=new r(E,"`NOFLIP_SINGLE`"),a=new r(C,"`NOFLIP_CLASS`"),l=new r(S,t);return n=l.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(L,"$1"+e).replace(M,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(n=n.replace(I,"$1"+e).replace(D,"$1left").replace(x,"right")),n=n.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(P,"$1left").replace(x,"right").replace(O,"$1$2"+e).replace(T,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(z,K).replace(j,J).replace($,J).replace(H,K).replace(B,X).replace(W,X).replace(k,"$1$2$3$8$5$6$7$4$9").replace(_,"$1$2$3$8$5$6$7$4$9").replace(q,G).replace(N,G),n=i.detokenize(a.detokenize(l.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(pf,pf.exports);var ff,mf,hf,gf,bf,vf=nn(pf.exports);function yf(e,t,n){switch(e.type){case ia:case ra:case ta:return e.return=e.return||e.value;case na:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===ta&&(e.children=e.value)}))}var r=Ka(Array.prototype.concat(e.children),yf);return va(r)?e.return=e.value+"{"+r+"}":""}function xf(e,t,n,r){if(e.type===la||e.type===aa||e.type===na&&(!e.parent||e.parent.type===oa||e.parent.type===na)){var o=vf.transform(yf(e));e.children=o?Ba(o)[0].children:[],e.return=""}}Object.defineProperty(xf,"name",{value:"stylisRTLPlugin"}),function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(ff||(ff={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(mf||(mf={})),function(e){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"}(hf||(hf={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(gf||(gf={})),function(e){e.A="ascending",e.D="descending"}(bf||(bf={}));const Sf=[0,0],Ef=[1,0];function Cf(e){if(e.type)return e;if("#"===e.charAt(0))return Cf(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function wf(e,t){return e=Cf(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function Rf(e,t){return Rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rf(e,t)}function Af(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rf(e,t)}const Pf={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"},If={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Pf,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_25:"rgba(0, 0, 0, 0.25)",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_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Df=12,Lf=14,Mf=16,Of=24,Tf=3,kf=300,_f=400,qf=600,Nf=700,Ff={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};wf(If.GREYSCALE_0,.05),wf(If.GREEN_PALE,.5),wf(If.BLUE_PALE,.5),wf(If.GREEN_PALE,.5),wf(If.BLUE_PALE,.5),wf(If.GREEN_PALE,.5),wf(If.BLUE_PALE,.5);var zf;function jf(){return jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jf.apply(this,arguments)}wf(If.GREEN_PALE,.5),wf(If.BLUE_PALE,.5),wf(If.GREEN_PALE,.5),wf(If.BLUE_PALE,.5);var $f,Hf=function(e){return y.createElement("svg",jf({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),zf||(zf=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Bf(){return Bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bf.apply(this,arguments)}var Wf=function(e){return y.createElement("svg",Bf({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),$f||($f=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function Gf({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var Vf=(e={})=>x.createElement(Gf,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("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"}))),Uf=(e={})=>x.createElement(Gf,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Yf=(e={})=>x.createElement(Gf,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Kf=(e={})=>x.createElement(Gf,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("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"}))),Xf=({className:e})=>x.createElement(Gf,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("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"}),x.createElement("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"})))))),Jf=!1,Zf=x.createContext(null),Qf="unmounted",em="exited",tm="entering",nm="entered",rm="exiting",om=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=em,r.appearStatus=tm):o=nm:o=t.unmountOnExit||t.mountOnEnter?Qf:em,r.state={status:o},r.nextCallback=null,r}Af(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Qf?{status:em}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==tm&&n!==nm&&(t=tm):n!==tm&&n!==nm||(t=rm)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===tm){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===em&&this.setState({status:Qf})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[z.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Jf?this.safeSetState({status:nm},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:tm},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:nm},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:z.findDOMNode(this);t&&!Jf?(this.props.onExit(r),this.safeSetState({status:rm},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:em},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:em},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Qf)return null;var t=this.props,n=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 r=Yi(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Zf.Provider,{value:null},"function"==typeof n?n(e,r):x.cloneElement(x.Children.only(n),r))},t}(x.Component);function im(){}om.contextType=Zf,om.propTypes={},om.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:im,onEntering:im,onEntered:im,onExit:im,onExiting:im,onExited:im},om.UNMOUNTED=Qf,om.EXITED=em,om.ENTERING=tm,om.ENTERED=nm,om.EXITING=rm;var am=om;function lm(e,t){var n=Object.create(null);return e&&A.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&P(e)?t(e):e}(e)})),n}function sm(e,t,n){return null!=n[t]?n[t]:e.props[t]}function um(e,t,n){var r=lm(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(P(a)){var l=i in t,s=i in r,u=t[i],c=P(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&P(u)&&(o[i]=I(a,{onExited:n.bind(null,a),in:u.props.in,exit:sm(a,"exit",e),enter:sm(a,"enter",e)})):o[i]=I(a,{in:!1}):o[i]=I(a,{onExited:n.bind(null,a),in:!0,exit:sm(a,"exit",e),enter:sm(a,"enter",e)})}})),o}var cm=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},dm=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Af(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,lm(n.children,(function(e){return I(e,{onExited:r.bind(null,e),in:!0,appear:sm(e,"appear",n),enter:sm(e,"enter",n),exit:sm(e,"exit",n)})}))):um(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=lm(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ui({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Yi(e,["component","childFactory"]),o=this.state.contextValue,i=cm(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?x.createElement(Zf.Provider,{value:o},i):x.createElement(Zf.Provider,{value:o},x.createElement(t,r,i))},t}(x.Component);dm.propTypes={},dm.defaultProps={component:"div",childFactory:function(e){return e}};var pm=dm;const fm=e=>e.scrollTop;function mm(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function hm(e){return xc("MuiPaper",e)}Sc("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 gm=["className","component","elevation","square","variant"],bm=sf("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Ui({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&&Ui({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Fd("#fff",df(t.elevation))}, ${Fd("#fff",df(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var vm=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Yi(n,gm),u=Ui({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return xd({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},hm,o)})(u);return Bi.jsx(bm,Ui({as:o,ownerState:u,className:bc(c.root,r),ref:t},s))}));function ym(e){return"string"==typeof e}function xm(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Sm(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const Em=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Cm(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Yi(e,Em),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=bc(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Ui({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Ui({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=xm(Ui({},o,r)),l=Sm(r),s=Sm(o),u=t(a),c=bc(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Ui({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Ui({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Ui({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||ym(e)?t:Ui({},t,{ownerState:Ui({},t.ownerState,n)})}(n,Ui({},s,{ref:id(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var wm=Sc("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Rm=["center","classes","className"];let Am,Pm,Im,Dm,Lm=e=>e;const Mm=js(Am||(Am=Lm`
39
+ !function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",l="(^|[^a-zA-Z])",s="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+n+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+n+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+n+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+s+g+"[^;}]+;?)","gi"),C=new RegExp("("+s+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(l+"(left)"+h+b+g,"gi"),P=new RegExp(l+"(right)"+h+b+g,"gi"),I=new RegExp(l+"(left)"+v,"gi"),L=new RegExp(l+"(right)"+v,"gi"),D=new RegExp(l+"(ltr)"+v,"gi"),M=new RegExp(l+"(rtl)"+v,"gi"),T=new RegExp(l+"([ns]?)e-resize","gi"),O=new RegExp(l+"([ns]?)w-resize","gi"),k=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),_=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=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"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function G(e,t,n){var r,o;return"%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n}function V(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter((function(e){return e})),o=n.slice(6,10).filter((function(e){return e})),i=n[10]||"";return t+(o.length?V(r)+" / "+V(o):V(r))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,n){return t+Y(n)}function X(e,t,n,r,o){return t+n+Y(r)+o}function J(e,t,n,r,o){return t+n+r+Y(o)}return{transform:function(n,o){var i=new r(E,"`NOFLIP_SINGLE`"),a=new r(C,"`NOFLIP_CLASS`"),l=new r(S,t);return n=l.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(D,"$1"+e).replace(M,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(n=n.replace(I,"$1"+e).replace(L,"$1left").replace(x,"right")),n=n.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(P,"$1left").replace(x,"right").replace(T,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(z,K).replace(j,J).replace($,J).replace(H,K).replace(B,X).replace(W,X).replace(k,"$1$2$3$8$5$6$7$4$9").replace(_,"$1$2$3$8$5$6$7$4$9").replace(q,G).replace(N,G),n=i.detokenize(a.detokenize(l.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(ff,ff.exports);var mf,hf,gf,bf,vf,yf=nn(ff.exports);function xf(e,t,n){switch(e.type){case ia:case ra:case ta:return e.return=e.return||e.value;case na:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===ta&&(e.children=e.value)}))}var r=Ka(Array.prototype.concat(e.children),xf);return va(r)?e.return=e.value+"{"+r+"}":""}function Sf(e,t,n,r){if(e.type===la||e.type===aa||e.type===na&&(!e.parent||e.parent.type===oa||e.parent.type===na)){var o=yf.transform(xf(e));e.children=o?Ba(o)[0].children:[],e.return=""}}Object.defineProperty(Sf,"name",{value:"stylisRTLPlugin"}),function(e){e.SELECTED="selected",e.POSSIBLE="possible",e.EXCLUDED="excluded",e.INACTIVE="inactive"}(mf||(mf={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(hf||(hf={})),function(e){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"}(gf||(gf={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(bf||(bf={})),function(e){e.A="ascending",e.D="descending"}(vf||(vf={}));const Ef=[0,0],Cf=[1,0];function wf(e){if(e.type)return e;if("#"===e.charAt(0))return wf(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Rf(e,t){return e=wf(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function Af(e,t){return Af=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Af(e,t)}function Pf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Af(e,t)}const If={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"},Lf={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",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",...If,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_25:"rgba(0, 0, 0, 0.25)",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_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",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)"},Df=12,Mf=14,Tf=16,Of=24,kf=3,_f=300,qf=400,Nf=600,Ff=700,zf={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Rf(Lf.GREYSCALE_0,.05),Rf(Lf.GREEN_PALE,.5),Rf(Lf.BLUE_PALE,.5),Rf(Lf.GREEN_PALE,.5),Rf(Lf.BLUE_PALE,.5),Rf(Lf.GREEN_PALE,.5),Rf(Lf.BLUE_PALE,.5);var jf;function $f(){return $f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$f.apply(this,arguments)}Rf(Lf.GREEN_PALE,.5),Rf(Lf.BLUE_PALE,.5),Rf(Lf.GREEN_PALE,.5),Rf(Lf.BLUE_PALE,.5);var Hf,Bf=function(e){return y.createElement("svg",$f({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),jf||(jf=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Wf(){return Wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wf.apply(this,arguments)}var Gf=function(e){return y.createElement("svg",Wf({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Hf||(Hf=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function Vf({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var Uf=(e={})=>x.createElement(Vf,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("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"}))),Yf=(e={})=>x.createElement(Vf,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Kf=(e={})=>x.createElement(Vf,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Xf=(e={})=>x.createElement(Vf,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("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"}))),Jf=({className:e})=>x.createElement(Vf,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("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"}),x.createElement("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"})))))),Zf=!1,Qf=x.createContext(null),em="unmounted",tm="exited",nm="entering",rm="entered",om="exiting",im=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=tm,r.appearStatus=nm):o=rm:o=t.unmountOnExit||t.mountOnEnter?em:tm,r.state={status:o},r.nextCallback=null,r}Pf(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===em?{status:tm}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==nm&&n!==rm&&(t=nm):n!==nm&&n!==rm||(t=om)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===nm){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===tm&&this.setState({status:em})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[z.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Zf?this.safeSetState({status:rm},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:nm},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:rm},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:z.findDOMNode(this);t&&!Zf?(this.props.onExit(r),this.safeSetState({status:om},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:tm},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:tm},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===em)return null;var t=this.props,n=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 r=Yi(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Qf.Provider,{value:null},"function"==typeof n?n(e,r):x.cloneElement(x.Children.only(n),r))},t}(x.Component);function am(){}im.contextType=Qf,im.propTypes={},im.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:am,onEntering:am,onEntered:am,onExit:am,onExiting:am,onExited:am},im.UNMOUNTED=em,im.EXITED=tm,im.ENTERING=nm,im.ENTERED=rm,im.EXITING=om;var lm=im;function sm(e,t){var n=Object.create(null);return e&&A.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&P(e)?t(e):e}(e)})),n}function um(e,t,n){return null!=n[t]?n[t]:e.props[t]}function cm(e,t,n){var r=sm(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(P(a)){var l=i in t,s=i in r,u=t[i],c=P(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&P(u)&&(o[i]=I(a,{onExited:n.bind(null,a),in:u.props.in,exit:um(a,"exit",e),enter:um(a,"enter",e)})):o[i]=I(a,{in:!1}):o[i]=I(a,{onExited:n.bind(null,a),in:!0,exit:um(a,"exit",e),enter:um(a,"enter",e)})}})),o}var dm=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},pm=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Pf(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,sm(n.children,(function(e){return I(e,{onExited:r.bind(null,e),in:!0,appear:um(e,"appear",n),enter:um(e,"enter",n),exit:um(e,"exit",n)})}))):cm(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=sm(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ui({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Yi(e,["component","childFactory"]),o=this.state.contextValue,i=dm(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?x.createElement(Qf.Provider,{value:o},i):x.createElement(Qf.Provider,{value:o},x.createElement(t,r,i))},t}(x.Component);pm.propTypes={},pm.defaultProps={component:"div",childFactory:function(e){return e}};var fm=pm;const mm=e=>e.scrollTop;function hm(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function gm(e){return xc("MuiPaper",e)}Sc("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 bm=["className","component","elevation","square","variant"],vm=uf("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Ui({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&&Ui({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Fd("#fff",pf(t.elevation))}, ${Fd("#fff",pf(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var ym=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Yi(n,bm),u=Ui({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return xd({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},gm,o)})(u);return Bi.jsx(vm,Ui({as:o,ownerState:u,className:bc(c.root,r),ref:t},s))}));function xm(e){return"string"==typeof e}function Sm(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function Em(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const Cm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function wm(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Yi(e,Cm),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=bc(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Ui({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Ui({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Sm(Ui({},o,r)),l=Em(r),s=Em(o),u=t(a),c=bc(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Ui({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Ui({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Ui({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||xm(e)?t:Ui({},t,{ownerState:Ui({},t.ownerState,n)})}(n,Ui({},s,{ref:id(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Rm=Sc("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Am=["center","classes","className"];let Pm,Im,Lm,Dm,Mm=e=>e;const Tm=js(Pm||(Pm=Mm`
40
40
  0% {
41
41
  transform: scale(0);
42
42
  opacity: 0.1;
@@ -46,7 +46,7 @@ function Ys(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldFo
46
46
  transform: scale(1);
47
47
  opacity: 0.3;
48
48
  }
49
- `)),Om=js(Pm||(Pm=Lm`
49
+ `)),Om=js(Im||(Im=Mm`
50
50
  0% {
51
51
  opacity: 1;
52
52
  }
@@ -54,7 +54,7 @@ function Ys(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldFo
54
54
  100% {
55
55
  opacity: 0;
56
56
  }
57
- `)),Tm=js(Im||(Im=Lm`
57
+ `)),km=js(Lm||(Lm=Mm`
58
58
  0% {
59
59
  transform: scale(1);
60
60
  }
@@ -66,7 +66,7 @@ function Ys(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldFo
66
66
  100% {
67
67
  transform: scale(1);
68
68
  }
69
- `)),km=sf("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_m=sf((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=bc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=bc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Bi.jsx("span",{className:p,style:f,children:Bi.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Dm||(Dm=Lm`
69
+ `)),_m=uf("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),qm=uf((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=bc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=bc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Bi.jsx("span",{className:p,style:f,children:Bi.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Dm||(Dm=Mm`
70
70
  opacity: 0;
71
71
  position: absolute;
72
72
 
@@ -109,7 +109,7 @@ function Ys(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldFo
109
109
  animation-iteration-count: infinite;
110
110
  animation-delay: 200ms;
111
111
  }
112
- `),wm.rippleVisible,Mm,550,(({theme:e})=>e.transitions.easing.easeInOut),wm.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),wm.child,wm.childLeaving,Om,550,(({theme:e})=>e.transitions.easing.easeInOut),wm.childPulsate,Tm,(({theme:e})=>e.transitions.easing.easeInOut));var qm=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Yi(n,Rm),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=ud(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Bi.jsx(_m,{classes:{ripple:bc(o.ripple,wm.ripple),rippleVisible:bc(o.rippleVisible,wm.rippleVisible),ripplePulsate:bc(o.ripplePulsate,wm.ripplePulsate),child:bc(o.child,wm.child),childLeaving:bc(o.childLeaving,wm.childLeaving),childPulsate:bc(o.childPulsate,wm.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||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 l=a?null:m.current,s=l?l.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(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Bi.jsx(km,Ui({className:bc(wm.root,o.root,i),ref:m},a,{children:Bi.jsx(pm,{component:null,exit:!0,children:l})}))}));function Nm(e){return xc("MuiButtonBase",e)}var Fm=Sc("MuiButtonBase",["root","disabled","focusVisible"]);const zm=["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"],jm=sf("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"},[`&.${Fm.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),$m=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:I=0,TouchRippleProps:D,touchRippleRef:L,type:M}=n,O=Yi(n,zm),T=y.useRef(null),k=y.useRef(null),_=id(k,L),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=vd(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[H,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=H&&!u&&!s;function G(e,t,n=c){return od((r=>{t&&t(r);return!n&&k.current&&k.current[e](r),!0}))}y.useEffect((()=>{j&&d&&!u&&H&&k.current.pulsate()}),[u,d,j,H]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=G("start",P),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=od((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=od((e=>{d&&!re.current&&j&&k.current&&" "===e.key&&(re.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=od((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(re.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(O.href||O.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(O.href||O.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=id(t,z,T),ue=Ui({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=xd({root:["root",t&&"disabled",n&&"focusVisible"]},Nm,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Bi.jsxs(jm,Ui({as:ae,className:bc(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:M},le,O,{children:[i,W?Bi.jsx(qm,Ui({ref:_,center:o},D)):null]}))}));var Hm=$m;function Bm(e){return xc("MuiTypography",e)}Sc("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Wm=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Gm=sf("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${su(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Ui({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}))),Vm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Um={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ym=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiTypography"}),r=(e=>Um[e]||e)(n.color),o=pc(Ui({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Vm}=o,f=Yi(o,Wm),m=Ui({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||Vm[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return xd({root:["root",i,"inherit"!==e.align&&`align${su(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Bm,a)})(m);return Bi.jsx(Gm,Ui({as:h,ref:t,ownerState:m,className:bc(g.root,a)},f))}));var Km=Ym;const Xm=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Jm(e){const t=[],n=[];return Array.from(e.querySelectorAll(Xm)).forEach(((e,r)=>{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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Zm(){return!0}function Qm(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Jm,isEnabled:a=Zm,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=id(t.ref,m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=td(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!m.current)return;const e=td(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&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 n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Bi.jsxs(y.Fragment,{children:[Bi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Bi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const eh=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=id(y.isValidElement(n)?n.ref:null,t);if(Yc((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Yc((()=>{if(i&&!o)return rd(t,i),()=>{rd(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Bi.jsx(y.Fragment,{children:n})}return Bi.jsx(y.Fragment,{children:i?F.createPortal(n,i):i})}));function th(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function nh(e){return parseInt(nd(e).getComputedStyle(e).paddingRight,10)||0}function rh(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&th(e,o)}))}function oh(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function ih(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=td(e);return t.body===e?nd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yd(td(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${nh(r)+e}px`;const t=td(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${nh(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=td(r).body;else{const t=r.parentElement,n=nd(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const ah=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&th(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);rh(t,e.mount,e.modalRef,r,!0);const o=oh(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=oh(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=ih(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=oh(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&th(e.modalRef,t),rh(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&th(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function lh(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=ah,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=id(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=od((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||td(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=od((e=>{f.current=e,e&&(c&&w()?E():m.current&&th(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const P=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=xm(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ui({},n,t);return Ui({role:"presentation"},r,{onKeyDown:P(r),ref:h})},getBackdropProps:(e={})=>Ui({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Qc((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Qc((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const sh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],uh={entering:{opacity:1},entered:{opacity:1}},ch=y.forwardRef((function(e,t){const n=Dp(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:b=am}=e,v=Yi(e,sh),x=y.useRef(null),S=id(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{fm(e);const r=mm({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),A=E(m),P=E((e=>{const t=mm({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return Bi.jsx(b,Ui({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:P,onExited:I,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Ui({style:Ui({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},uh[e],h,a.props.style),ref:S},t))}))}));var dh=ch;function ph(e){return xc("MuiBackdrop",e)}Sc("MuiBackdrop",["root","invisible"]);const fh=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],mh=sf("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Ui({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"}))),hh=y.forwardRef((function(e,t){var n,r,o;const i=Lp({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=dh,transitionDuration:g}=i,b=Yi(i,fh),v=Ui({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return xd({root:["root",n&&"invisible"]},ph,t)})(v),x=null!=(n=f.root)?n:c.root;return Bi.jsx(h,Ui({in:p,timeout:g},b,{children:Bi.jsx(mh,Ui({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:bc(y.root,l,null==x?void 0:x.className),ownerState:Ui({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var gh=hh;var bh=Sc("MuiBox",["root"]);const vh=Pp(),yh=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Ys("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(nc);return y.forwardRef((function(e,a){const l=uc(n),s=pc(e),{className:u,component:c="div"}=s,d=Yi(s,vc);return Bi.jsx(i,Ui({as:c,ref:a,className:bc(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Vi,defaultTheme:vh,defaultClassName:bh.root,generateClassName:hc.generate});var xh=yh;function Sh(e){return xc("MuiButton",e)}var Eh=Sc("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"]);var Ch=y.createContext({});var wh=y.createContext(void 0);const Rh=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ah=e=>Ui({},"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}}),Ph=sf(Hm,{shouldForwardProp:e=>lf(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${su(n.color)}`],t[`size${su(n.size)}`],t[`${n.variant}Size${su(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;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 Ui({},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":Ui({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fd(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})`:Fd(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})`:Fd(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":Ui({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Eh.focusVisible}`]:Ui({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Eh.disabled}`]:Ui({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 ${Fd(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,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"},[`&.${Eh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Eh.disabled}`]:{boxShadow:"none"}})),Ih=sf("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${su(n.size)}`]]}})((({ownerState:e})=>Ui({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ah(e)))),Dh=sf("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${su(n.size)}`]]}})((({ownerState:e})=>Ui({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ah(e)))),Lh=y.forwardRef((function(e,t){const n=y.useContext(Ch),r=y.useContext(wh),o=Lp({props:Vc(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=Yi(o,Rh),S=Ui({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Ui({},a,xd({root:["root",i,`${i}${su(t)}`,`size${su(o)}`,`${i}Size${su(o)}`,`color${su(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${su(o)}`],endIcon:["icon","endIcon",`iconSize${su(o)}`]},Sh,a))})(S),C=g&&Bi.jsx(Ih,{className:E.startIcon,ownerState:S,children:g}),w=p&&Bi.jsx(Dh,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return Bi.jsxs(Ph,Ui({ownerState:S,className:bc(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:bc(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var Mh=Lh;function Oh(e){return xc("MuiModal",e)}Sc("MuiModal",["root","hidden","backdrop"]);const Th=["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"],kh=sf("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Ui({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),_h=sf(gh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),qh=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Lp({name:"MuiModal",props:e}),{BackdropComponent:u=_h,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:I,slotProps:D,slots:L}=s,M=Yi(s,Th),O=Ui({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:T,getBackdropProps:k,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=lh(Ui({},O,{rootRef:t})),j=Ui({},O,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return xd({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Oh,r)})(j),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=_();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==L?void 0:L.root)?r:g.Root)?n:kh,W=null!=(o=null!=(i=null==L?void 0:L.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==D?void 0:D.root)?a:b.root,V=null!=(l=null==D?void 0:D.backdrop)?l:b.backdrop,U=Cm({elementType:B,externalSlotProps:G,externalForwardedProps:M,getSlotProps:T,additionalProps:{ref:t,as:h},ownerState:j,className:bc(d,null==G?void 0:G.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),Y=Cm({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(Ui({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:bc(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return A||I||z&&!F?Bi.jsx(eh,{ref:q,container:m,disablePortal:E,children:Bi.jsxs(B,Ui({},U,{children:[!R&&u?Bi.jsx(W,Ui({},Y)):null,Bi.jsx(Qm,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,H)})]}))}):null}));var Nh=qh;function Fh(e){return xc("MuiDivider",e)}var zh=Sc("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const jh=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$h=sf("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Ui({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)`:Fd(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})=>Ui({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Ui({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Ui({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Ui({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Hh=sf("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Ui({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)`}))),Bh=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Yi(n,jh),m=Ui({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return xd({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Fh,r)})(m);return Bi.jsx($h,Ui({as:a,className:bc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Bi.jsx(Hh,{className:h.wrapper,ownerState:m,children:o}):null}))}));Bh.muiSkipListHighlight=!0;var Wh=Bh;const Gh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Vh(e){return`scale(${e}, ${e**2})`}const Uh={entering:{opacity:1,transform:Vh(1)},entered:{opacity:1,transform:"none"}},Yh="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Kh=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=am}=e,g=Yi(e,Gh),b=ud(),v=y.useRef(),x=Dp(),S=y.useRef(null),E=id(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{fm(e);const{duration:n,delay:r,easing:o}=mm({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Yh?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),A=C(s),P=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=mm({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:Yh?o:.666*o,delay:Yh?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Vh(.75),c&&c(e)})),D=C(d);return Bi.jsx(h,Ui({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:I,onExited:D,onExiting:P,addEndListener:e=>{"auto"===m&&b.start(v.current||0,e),n&&n(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,Ui({style:Ui({opacity:0,transform:Vh(.75),visibility:"exited"!==e||a?void 0:"hidden"},Uh[e],f,o.props.style),ref:E},t))}))}));Kh.muiSupportAuto=!0;var Xh=Kh;var Jh=y.createContext({});function Zh(e){return xc("MuiList",e)}Sc("MuiList",["root","padding","dense","subheader"]);const Qh=["children","className","component","dense","disablePadding","subheader"],eg=sf("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Ui({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var tg=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Yi(n,Qh),c=y.useMemo((()=>({dense:a})),[a]),d=Ui({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xd({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Zh,t)})(d);return Bi.jsx(Jh.Provider,{value:c,children:Bi.jsxs(eg,Ui({as:i,className:bc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function ng(e){return xc("MuiListItemIcon",e)}var rg=Sc("MuiListItemIcon",["root","alignItemsFlexStart"]);const og=["className"],ig=sf("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Ui({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var ag=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Yi(n,og),i=Ui({},n,{alignItems:y.useContext(Jh).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return xd({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ng,n)})(i);return Bi.jsx(ig,Ui({className:bc(a.root,r),ownerState:i,ref:t},o))}));var lg=Sc("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const sg=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ug(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function cg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function dg(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function pg(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&dg(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var fg=y.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Yi(e,sg),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Yc((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${yd(td(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=id(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Bi.jsx(tg,Ui({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=td(t).activeElement;if("ArrowDown"===n)e.preventDefault(),pg(t,r,s,l,ug);else if("ArrowUp"===n)e.preventDefault(),pg(t,r,s,l,cg);else if("Home"===n)e.preventDefault(),pg(t,null,s,l,ug);else if("End"===n)e.preventDefault(),pg(t,null,s,l,cg);else if(1===n.length){const o=f.current,i=n.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 s=r&&!o.repeating&&dg(r,o);o.previousKeyMatched&&(s||pg(t,r,!1,l,ug,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function mg(e){return xc("MuiPopover",e)}Sc("MuiPopover",["root","paper"]);const hg=["onEntering"],gg=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],bg=["slotProps"];function vg(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function yg(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function xg(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Sg(e){return"function"==typeof e?e():e}const Eg=sf(Nh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cg=sf(vm,{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});var wg=y.forwardRef((function(e,t){var n,r,o;const i=Lp({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Xh,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=Yi(i.TransitionProps,hg),P=Yi(i,gg),I=null!=(n=null==x?void 0:x.paper)?n:b,D=y.useRef(),L=id(D,I.ref),M=Ui({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),O=(e=>{const{classes:t}=e;return xd({root:["root"],paper:["paper"]},mg,t)})(M),T=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=Sg(l),t=(e&&1===e.nodeType?e:td(D.current).body).getBoundingClientRect();return{top:t.top+vg(t,s.vertical),left:t.left+yg(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=y.useCallback((e=>({vertical:vg(e,S.vertical),horizontal:yg(e,S.horizontal)})),[S.horizontal,S.vertical]),_=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===c)return{top:null,left:null,transformOrigin:xg(n)};const r=T();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=nd(Sg(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:xg(n)}}),[l,c,T,k,h]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=ed((()=>{F()})),t=nd(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?td(Sg(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:Eg,H=null!=(o=null==v?void 0:v.paper)?o:Cg,B=Cm({elementType:H,externalSlotProps:Ui({},I,{style:q?I.style:Ui({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:M,className:bc(O.paper,null==I?void 0:I.className)}),W=Cm({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:M,className:bc(O.root,p)}),{slotProps:G}=W,V=Yi(W,bg);return Bi.jsx($,Ui({},V,!ym($)&&{slotProps:G,disableScrollLock:R},{children:Bi.jsx(E,Ui({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},A,{children:Bi.jsx(H,Ui({},B,{children:d}))}))}))}));function Rg(e){return xc("MuiMenu",e)}Sc("MuiMenu",["root","paper","list"]);const Ag=["onEntering"],Pg=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ig={vertical:"top",horizontal:"right"},Dg={vertical:"top",horizontal:"left"},Lg=sf(wg,{shouldForwardProp:e=>lf(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mg=sf(Cg,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Og=sf(fg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Tg=y.forwardRef((function(e,t){var n,r;const o=Lp({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Yi(o.TransitionProps,Ag),S=Yi(o,Pg),E=(()=>{const e=y.useContext(Ad);return null!=e&&e})(),C=Ui({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),w=(e=>{const{classes:t}=e;return xd({root:["root"],paper:["paper"],list:["list"]},Rg,t)})(C),R=i&&!s&&d,A=y.useRef(null);let P=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const I=null!=(n=b.paper)?n:Mg,D=null!=(r=v.paper)?r:p,L=Cm({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),M=Cm({elementType:I,externalSlotProps:D,ownerState:C,className:w.paper});return Bi.jsx(Lg,Ui({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Ig:Dg,slots:{paper:I,root:b.root},slotProps:{root:L,paper:M},open:d,ref:t,transitionDuration:m,TransitionProps:Ui({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),h&&h(e,t)}},x),ownerState:C},S,{classes:f,children:Bi.jsx(Og,Ui({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===P||s),autoFocusItem:R,variant:g},u,{className:bc(w.list,u.className),children:a}))}))}));function kg(e){return xc("MuiMenuItem",e)}var _g=Sc("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const qg=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ng=sf(Hm,{shouldForwardProp:e=>lf(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Ui({},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"}},[`&.${_g.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_g.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_g.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fd(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})`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${_g.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_g.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zh.inset}`]:{marginLeft:52},[`& .${lg.root}`]:{marginTop:0,marginBottom:0},[`& .${lg.inset}`]:{paddingLeft:36},[`& .${rg.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ui({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${rg.root} svg`]:{fontSize:"1.25rem"}}))));var Fg=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Yi(n,qg),f=y.useContext(Jh),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);Yc((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Ui({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Ui({},a,xd({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kg,a))})(n),v=id(h,t);let x;return n.disabled||(x=void 0!==c?c:-1),Bi.jsx(Jh.Provider,{value:m,children:Bi.jsx(Ng,Ui({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:bc(b.focusVisible,s),className:bc(b.root,d)},p,{ownerState:g,classes:b}))})}));var zg=y.createContext();function jg(e){return xc("MuiTable",e)}Sc("MuiTable",["root","stickyHeader"]);const $g=["className","component","padding","size","stickyHeader"],Hg=sf("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ui({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ui({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Bg="table",Wg=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiTable"}),{className:r,component:o=Bg,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=Yi(n,$g),u=Ui({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return xd({root:["root",n&&"stickyHeader"]},jg,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Bi.jsx(zg.Provider,{value:d,children:Bi.jsx(Hg,Ui({as:o,role:o===Bg?null:"table",ref:t,className:bc(c.root,r),ownerState:u},s))})}));var Gg=Wg;var Vg=y.createContext();function Ug(e){return xc("MuiTableBody",e)}Sc("MuiTableBody",["root"]);const Yg=["className","component"],Kg=sf("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Xg={variant:"body"},Jg="tbody";var Zg=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiTableBody"}),{className:r,component:o=Jg}=n,i=Yi(n,Yg),a=Ui({},n,{component:o}),l=(e=>{const{classes:t}=e;return xd({root:["root"]},Ug,t)})(a);return Bi.jsx(Vg.Provider,{value:Xg,children:Bi.jsx(Kg,Ui({className:bc(l.root,r),as:o,ref:t,role:o===Jg?null:"rowgroup",ownerState:a},i))})}));function Qg(e){return xc("MuiTableCell",e)}var eb=Sc("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const tb=["align","className","component","padding","scope","size","sortDirection","variant"],nb=sf("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${su(n.size)}`],"normal"!==n.padding&&t[`padding${su(n.padding)}`],"inherit"!==n.align&&t[`align${su(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ui({},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?$d(Fd(e.palette.divider,1),.88):zd(Fd(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",[`&.${eb.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}))),rb=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=Yi(n,tb),p=y.useContext(zg),f=y.useContext(Vg),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=Ui({},n,{align:r,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return xd({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${su(r)}`,"normal"!==o&&`padding${su(o)}`,`size${su(i)}`]},Qg,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Bi.jsx(nb,Ui({as:h,ref:t,className:bc(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var ob=rb;function ib(e){return xc("MuiTableContainer",e)}Sc("MuiTableContainer",["root"]);const ab=["className","component"],lb=sf("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var sb=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=Yi(n,ab),a=Ui({},n,{component:o}),l=(e=>{const{classes:t}=e;return xd({root:["root"]},ib,t)})(a);return Bi.jsx(lb,Ui({ref:t,as:o,className:bc(l.root,r),ownerState:a},i))}));function ub(e){return xc("MuiTableHead",e)}Sc("MuiTableHead",["root"]);const cb=["className","component"],db=sf("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),pb={variant:"head"},fb="thead";var mb=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiTableHead"}),{className:r,component:o=fb}=n,i=Yi(n,cb),a=Ui({},n,{component:o}),l=(e=>{const{classes:t}=e;return xd({root:["root"]},ub,t)})(a);return Bi.jsx(Vg.Provider,{value:pb,children:Bi.jsx(db,Ui({as:o,className:bc(l.root,r),ref:t,role:o===fb?null:"rowgroup",ownerState:a},i))})}));function hb(e){return xc("MuiTableRow",e)}var gb=Sc("MuiTableRow",["root","selected","hover","head","footer"]);const bb=["className","component","hover","selected"],vb=sf("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${gb.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${gb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fd(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}))`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),yb="tr",xb=y.forwardRef((function(e,t){const n=Lp({props:e,name:"MuiTableRow"}),{className:r,component:o=yb,hover:i=!1,selected:a=!1}=n,l=Yi(n,bb),s=y.useContext(Vg),u=Ui({},n,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return xd({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},hb,t)})(u);return Bi.jsx(vb,Ui({as:o,ref:t,className:bc(c.root,r),role:o===yb?null:"row",ownerState:u},l))}));var Sb=xb,Eb=(e={})=>x.createElement(Gf,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:If.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Cb={MuiAccordion:{styleOverrides:{root:{backgroundColor:If.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:If.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(Hf,{"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 ${If.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:If.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${If.MISC_FOCUS_BORDER}`,borderRadius:Tf,backgroundColor:If.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 ${If.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:If.WHITE,color:If.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:Tf},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${If.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:If.GREYSCALE_0_15,backgroundColor:If.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:If.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${If.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:If.GREEN_PALE},"&:active":{backgroundColor:If.GREEN_DARK},"&.Mui-focusVisible":{borderColor:If.GREEN_PALE,boxShadow:`0 0 0 3px ${Zc(If.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:If.BLUE_PALE},"&:active":{backgroundColor:If.BLUE_DARK},"&.Mui-focusVisible":{borderColor:If.BLUE_PALE,boxShadow:`0 0 0 3px ${Zc(If.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:Tf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:If.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${If.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:If.GREYSCALE_0_15,backgroundColor:If.GREYSCALE_100_60,"&:active":{backgroundColor:If.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:If.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${If.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:If.PURPLE,"&.Mui-focusVisible":{borderColor:If.PURPLE,boxShadow:`0 0 0 3px ${Zc(If.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:If.GREEN,"&.Mui-focusVisible":{borderColor:If.GREEN,boxShadow:`0 0 0 3px ${Zc(If.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:If.BLUE,"&.Mui-focusVisible":{borderColor:If.BLUE,boxShadow:`0 0 0 3px ${Zc(If.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:If.ORANGE,"&.Mui-focusVisible":{borderColor:If.ORANGE,boxShadow:`0 0 0 3px ${Zc(If.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:If.RED,"&.Mui-focusVisible":{borderColor:If.RED,boxShadow:`0 0 0 3px ${Zc(If.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:If.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:If.PURPLE_PALE},"&:active":{backgroundColor:If.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:If.PURPLE_PALE,boxShadow:`0 0 0 3px ${Zc(If.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:If.GREEN_PALE},"&:active":{backgroundColor:If.GREEN_DARK},"&.Mui-focusVisible":{borderColor:If.GREEN_PALE,boxShadow:`0 0 0 3px ${Zc(If.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:If.BLUE_PALE},"&:active":{backgroundColor:If.BLUE_DARK},"&.Mui-focusVisible":{borderColor:If.BLUE_PALE,boxShadow:`0 0 0 3px ${Zc(If.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:If.ORANGE_PALE},"&:active":{backgroundColor:If.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:If.ORANGE_PALE,boxShadow:`0 0 0 3px ${Zc(If.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:If.RED_PALE},"&:active":{backgroundColor:If.RED_DARK},"&.Mui-focusVisible":{borderColor:If.RED_PALE,boxShadow:`0 0 0 3px ${Zc(If.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:If.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:If.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Tf,boxShadow:`inset 0 0 0 2px ${If.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(Wf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Df,borderRadius:Tf,color:If.TEXT_PRIMARY,backgroundColor:If.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:If.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${If.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:If.GREYSCALE_0_05,color:If.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:If.GREEN,borderColor:If.GREEN},"&.MuiChip-outlinedInfo":{color:If.BLUE,borderColor:If.BLUE},"&.MuiChip-outlinedWarning":{color:If.ORANGE,borderColor:If.ORANGE},"&.MuiChip-outlinedError":{color:If.RED,borderColor:If.RED}},outlined:{border:`solid 1px ${If.GREYSCALE_0_15}`,backgroundColor:If.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Tf,boxShadow:"none",backgroundColor:If.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:If.GREEN,borderColor:If.GREEN},outlinedSecondary:{color:If.BLUE,borderColor:If.BLUE},label:{fontFamily:Ff.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(Wf,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(Hf,{"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:Tf},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Tf,fontSize:Lf,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:If.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${If.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:If.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:If.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:If.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Tf,border:`solid 1px ${If.GREYSCALE_0_15}`,color:If.GREYSCALE_0_60,marginRight:0,width:Of,height:Of},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${If.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Tf,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:If.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Lf}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Df,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:If.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:If.GREYSCALE_25,fontSize:Df,fontFamily:Ff.FONT_FAMILY,fontWeight:qf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:If.TEXT_PRIMARY},"&.Mui-error":{color:If.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:If.TEXT_SECONDARY,content:"'(optional)'",fontWeight:_f,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:If.TEXT_SECONDARY,content:"'(required)'",fontWeight:_f,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Lf,lineHeight:"16px",backgroundColor:If.WHITE,borderRadius:Tf,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${If.GREYSCALE_0_05}`,borderColor:If.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${If.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${If.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${If.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${If.RED}`,boxShadow:`0px 0px 0px 1px ${If.RED}, inset 0 2px 0 0 ${If.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${If.GREYSCALE_0_10}`,borderColor:If.GREYSCALE_0_10,backgroundColor:If.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:If.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:If.GREYSCALE_0_15,borderRadius:Tf,boxShadow:`inset 0 2px 0 0 ${If.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(Hf,{...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:If.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:If.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:If.GREYSCALE_0_03},"&:active":{backgroundColor:If.GREYSCALE_0_10},"&:focus":{backgroundColor:If.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${If.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${If.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:If.GREYSCALE_0_30,"&:hover":{backgroundColor:If.GREYSCALE_0_0,borderColor:If.GREYSCALE_0_15},"& ~svg":{color:If.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${If.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Tf}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:If.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${If.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:If.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Lf,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Df,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Df,fontWeight:qf,color:If.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:qf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${If.GREYSCALE_0_15}, 0px 0px 0px 1px ${If.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(Yf,null),checkedIcon:x.createElement(Kf,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:If.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${If.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:If.GREEN_PALE,boxShadow:`0 0 0 3px ${Zc(If.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:If.BLUE_PALE,boxShadow:`0 0 0 3px ${Zc(If.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:If.GREYSCALE_0_20}},"&.Mui-disabled":{fill:If.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(Eb,null),checkedIcon:x.createElement(Vf,null),indeterminateIcon:x.createElement(Uf,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Tf,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:If.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:If.GREYSCALE_0_55,color:If.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:If.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:If.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:If.GREYSCALE_0_55,"&:hover":{color:If.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:If.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:If.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Lf,color:If.TEXT_PRIMARY,lineHeight:"16px",fontWeight:qf},secondary:{fontSize:Df,color:If.GREYSCALE_45,fontWeight:_f,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Lf,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:If.GREYSCALE_0_03},"&:active":{backgroundColor:If.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Lf,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:If.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Df,borderBottom:`solid 1px ${If.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Lf,color:If.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:If.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:If.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:If.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:If.RED}}},"&.Mui-focusVisible":{backgroundColor:If.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:If.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:If.GREEN,height:"24px","&.Mui-disabled":{color:If.GREYSCALE_0_15}},rail:{backgroundColor:If.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${If.GREYSCALE_0_05}`,borderRadius:Tf,boxShadow:`inset 0px 0px 0px 1px ${If.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${If.GREYSCALE_0_05}`,borderRadius:Tf},thumb:{height:"16px",width:"16px",borderRadius:Tf,backgroundColor:If.WHITE,boxShadow:`0px 1px 2px 0px ${If.GREYSCALE_0_15}, 0px 0px 0px 1px ${If.GREYSCALE_0_05}`,"&:hover":{borderRadius:Tf,boxShadow:`0 2px 4px 0 ${If.GREYSCALE_0_30}, 0 0 0 1px ${If.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${If.GREYSCALE_0_15}, 0 0 0 1px ${If.GREYSCALE_0_06}, 0 0 0 2px ${If.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${If.GREYSCALE_0_15}, 0 0 0 1px ${If.GREYSCALE_0_06}, 0 0 0 2px ${If.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:If.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:If.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:If.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:If.GREYSCALE_0_15},markLabel:{color:If.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:If.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:If.WHITE,color:If.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:If.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:If.GREEN_PALE,boxShadow:`0 0 0 3px ${Zc(If.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:If.BLUE_PALE,boxShadow:`0 0 0 3px ${Zc(If.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:If.GREYSCALE_0_15,borderRadius:Tf},thumb:{height:"16px",width:"16px",borderRadius:Tf,backgroundColor:If.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:Lf,fontWeight:qf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${If.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${If.MISC_FOCUS_BORDER}`,backgroundColor:If.GREYSCALE_0_03,borderRadius:Tf},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:If.GREYSCALE_25,"&.Mui-selected":{color:If.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Lf,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${If.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${If.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${If.GREYSCALE_85}`,borderRight:`1px solid ${If.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:qf,backgroundColor:If.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:If.GREYSCALE_98,borderBottom:`1px solid ${If.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${If.GREYSCALE_85}`,borderTop:`1px solid ${If.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:If.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:If.GREYSCALE_0_05,"&:hover":{backgroundColor:If.GREYSCALE_0_03}},"&&:hover":{backgroundColor:If.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(Xf,{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 ${If.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Lf,borderRadius:Tf,padding:"7px 16px",border:`1px solid ${If.GREYSCALE_0_15}`,backgroundColor:If.GREYSCALE_100_60,color:If.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:If.GREYSCALE_0_10,border:`1px solid ${If.GREYSCALE_0_30}`},"&:hover":{backgroundColor:If.GREYSCALE_0_03,border:`1px solid ${If.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:If.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${If.MISC_FOCUS_BORDER}`,border:`1px solid ${If.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:If.GREYSCALE_25,backgroundColor:If.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:If.GREYSCALE_0_10,border:`1px solid ${If.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Df,height:24,width:24,padding:7},sizeLarge:{fontSize:Mf,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Lf,borderRadius:Tf}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:If.GREYSCALE_20},tooltip:{backgroundColor:If.GREYSCALE_20,fontSize:Df,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const wb={mode:"light",primary:{light:If.GREEN_PALE,main:If.GREEN,dark:If.GREEN_DARK,contrastText:If.WHITE},secondary:{light:If.BLUE_PALE,main:If.BLUE,dark:If.BLUE_DARK,contrastText:If.WHITE},error:{light:If.RED_PALE,main:If.RED,dark:If.RED_DARK,contrastText:If.WHITE},warning:{light:If.ORANGE_PALE,main:If.ORANGE,dark:If.ORANGE_DARK,contrastText:If.WHITE},success:{light:If.GREEN_PALE,main:If.GREEN,dark:If.GREEN_DARK,contrastText:If.WHITE},info:{light:If.BLUE_PALE,main:If.BLUE,dark:If.BLUE_DARK,contrastText:If.WHITE},text:{primary:If.TEXT_PRIMARY,secondary:If.TEXT_SECONDARY,disabled:If.GREYSCALE_0_30},action:{hover:If.GREYSCALE_0_03,hoverOpacity:.05,selected:If.GREYSCALE_0_05,focus:If.MISC_FOCUS_BORDER},amethyst:{main:If.PURPLE,light:If.PURPLE_PALE,dark:If.PURPLE_DARK,contrastText:If.WHITE},background:{paper:If.WHITE,default:If.GREYSCALE_95},divider:If.GREYSCALE_0_15},Rb=e=>({components:Cb,palette:wb,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:Lf,fontWeightLight:kf,fontWeightRegular:_f,fontWeightMedium:qf,fontWeightBold:Nf,htmlFontSize:Lf,fontFamily:Ff.FONT_FAMILY,button:{fontWeight:qf,fontSize:Lf,textTransform:"none"},body1:{fontSize:Mf,lineHeight:"24px"},body2:{fontSize:Lf,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Of,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Mf,fontWeight:qf,lineHeight:"16px"},h6:{fontSize:Lf,fontWeight:qf,lineHeight:"16px"},caption:{color:If.TEXT_SECONDARY},subtitle1:{fontSize:Lf,color:If.TEXT_SECONDARY},subtitle2:{fontSize:Df,color:If.TEXT_SECONDARY}},shape:{borderRadius:Tf}}),Ab={...Pf,MISC_FOCUS_BORDER:If.MISC_FOCUS_BORDER},Pb=(e="light")=>Rb(),Ib=Pb().palette,Db={SELECTED:{color:Ab.GREYSCALE_100,background:Ib.primary.light,selectedCellClass:ff.SELECTED},POSSIBLE:{color:Ib.text.primary,background:Ab.GREYSCALE_100},EXCLUDED_BACKGROUND:"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)"},Lb=4/3,Mb="12px",Ob="600",Tb={height:"auto",fontSize:Mb,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"}},kb=25e4,_b=(e,t,n,r)=>{if(null==e||!e.length)return[];const o=[],i=[],a=r?Lr.PixelsMin:Lr.PixelsMinTable;let l=t;if(e.forEach(((e,r)=>{if(e.columnWidth){const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{o[r]=Math.min(Lr.PixelsMax,Math.max(a,m)),l-=o[r]};switch(s){case Mr.Pixels:m=u||Lr.PixelsDefault,h();break;case Mr.Percentage:m=(c||Lr.PercentageDefault)/100*t,h();break;case Mr.FitToContent:m=n(d,f,p,e.isLocked,e.isActivelySorted),h();break;case Mr.Auto:i.push(r);break;default:throw new Error(`${s} is not a valid column width type`)}}else i.push(r)})),i.length){const e=l/i.length;i.forEach((t=>{o[t]=Math.max(a,e)}))}return o},qb={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"},Nb={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...qb,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_25:"rgba(0, 0, 0, 0.25)",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_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Fb=12,zb=14,jb=16,$b=24,Hb=3,Bb=300,Wb=400,Gb=600,Vb=700,Ub={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};wf(Nb.GREYSCALE_0,.05),wf(Nb.GREEN_PALE,.5),wf(Nb.BLUE_PALE,.5),wf(Nb.GREEN_PALE,.5),wf(Nb.BLUE_PALE,.5),wf(Nb.GREEN_PALE,.5),wf(Nb.BLUE_PALE,.5);var Yb;function Kb(){return Kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kb.apply(this,arguments)}wf(Nb.GREEN_PALE,.5),wf(Nb.BLUE_PALE,.5),wf(Nb.GREEN_PALE,.5),wf(Nb.BLUE_PALE,.5);var Xb,Jb=function(e){return y.createElement("svg",Kb({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Yb||(Yb=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zb.apply(this,arguments)}var Qb=function(e){return y.createElement("svg",Zb({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Xb||(Xb=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function ev({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var tv=(e={})=>x.createElement(ev,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("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"}))),nv=(e={})=>x.createElement(ev,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),rv=(e={})=>x.createElement(ev,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),ov=(e={})=>x.createElement(ev,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("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"}))),iv=({className:e})=>x.createElement(ev,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("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"}),x.createElement("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"}))))));var av={black:"#000",white:"#fff"};var lv={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"};var sv={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var uv={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"};var cv={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var dv={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"};var pv={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"};var fv={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 mv(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 hv="$$material";function gv(){return gv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gv.apply(this,arguments)}function bv(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const vv=zs((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var yv=vv;
112
+ `),Rm.rippleVisible,Tm,550,(({theme:e})=>e.transitions.easing.easeInOut),Rm.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Rm.child,Rm.childLeaving,Om,550,(({theme:e})=>e.transitions.easing.easeInOut),Rm.childPulsate,km,(({theme:e})=>e.transitions.easing.easeInOut));var Nm=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Yi(n,Am),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=ud(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Bi.jsx(qm,{classes:{ripple:bc(o.ripple,Rm.ripple),rippleVisible:bc(o.rippleVisible,Rm.rippleVisible),ripplePulsate:bc(o.ripplePulsate,Rm.ripplePulsate),child:bc(o.child,Rm.child),childLeaving:bc(o.childLeaving,Rm.childLeaving),childPulsate:bc(o.childPulsate,Rm.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||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 l=a?null:m.current,s=l?l.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(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Bi.jsx(_m,Ui({className:bc(Rm.root,o.root,i),ref:m},a,{children:Bi.jsx(fm,{component:null,exit:!0,children:l})}))}));function Fm(e){return xc("MuiButtonBase",e)}var zm=Sc("MuiButtonBase",["root","disabled","focusVisible"]);const jm=["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"],$m=uf("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"},[`&.${zm.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Hm=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:I=0,TouchRippleProps:L,touchRippleRef:D,type:M}=n,T=Yi(n,jm),O=y.useRef(null),k=y.useRef(null),_=id(k,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=vd(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[H,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=H&&!u&&!s;function G(e,t,n=c){return od((r=>{t&&t(r);return!n&&k.current&&k.current[e](r),!0}))}y.useEffect((()=>{j&&d&&!u&&H&&k.current.pulsate()}),[u,d,j,H]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=G("start",P),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=od((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=od((e=>{d&&!re.current&&j&&k.current&&" "===e.key&&(re.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=od((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(re.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(T.href||T.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=id(t,z,O),ue=Ui({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=xd({root:["root",t&&"disabled",n&&"focusVisible"]},Fm,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Bi.jsxs($m,Ui({as:ae,className:bc(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:M},le,T,{children:[i,W?Bi.jsx(Nm,Ui({ref:_,center:o},L)):null]}))}));var Bm=Hm;function Wm(e){return xc("MuiTypography",e)}Sc("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Gm=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Vm=uf("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${su(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Ui({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}))),Um={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ym={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Km=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTypography"}),r=(e=>Ym[e]||e)(n.color),o=pc(Ui({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Um}=o,f=Yi(o,Gm),m=Ui({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||Um[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return xd({root:["root",i,"inherit"!==e.align&&`align${su(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Wm,a)})(m);return Bi.jsx(Vm,Ui({as:h,ref:t,ownerState:m,className:bc(g.root,a)},f))}));var Xm=Km;const Jm=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Zm(e){const t=[],n=[];return Array.from(e.querySelectorAll(Jm)).forEach(((e,r)=>{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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Qm(){return!0}function eh(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Zm,isEnabled:a=Qm,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=id(t.ref,m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=td(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!m.current)return;const e=td(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&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 n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Bi.jsxs(y.Fragment,{children:[Bi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Bi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const th=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=id(y.isValidElement(n)?n.ref:null,t);if(Yc((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Yc((()=>{if(i&&!o)return rd(t,i),()=>{rd(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Bi.jsx(y.Fragment,{children:n})}return Bi.jsx(y.Fragment,{children:i?F.createPortal(n,i):i})}));function nh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function rh(e){return parseInt(nd(e).getComputedStyle(e).paddingRight,10)||0}function oh(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&nh(e,o)}))}function ih(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function ah(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=td(e);return t.body===e?nd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yd(td(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${rh(r)+e}px`;const t=td(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${rh(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=td(r).body;else{const t=r.parentElement,n=nd(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const lh=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&nh(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);oh(t,e.mount,e.modalRef,r,!0);const o=ih(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ih(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=ah(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ih(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&nh(e.modalRef,t),oh(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&nh(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function sh(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=lh,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=id(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=od((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||td(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=od((e=>{f.current=e,e&&(c&&w()?E():m.current&&nh(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const P=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Sm(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ui({},n,t);return Ui({role:"presentation"},r,{onKeyDown:P(r),ref:h})},getBackdropProps:(e={})=>Ui({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Qc((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Qc((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const uh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ch={entering:{opacity:1},entered:{opacity:1}},dh=y.forwardRef((function(e,t){const n=Dp(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:b=lm}=e,v=Yi(e,uh),x=y.useRef(null),S=id(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{mm(e);const r=hm({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),A=E(m),P=E((e=>{const t=hm({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return Bi.jsx(b,Ui({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:P,onExited:I,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Ui({style:Ui({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},ch[e],h,a.props.style),ref:S},t))}))}));var ph=dh;function fh(e){return xc("MuiBackdrop",e)}Sc("MuiBackdrop",["root","invisible"]);const mh=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],hh=uf("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Ui({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"}))),gh=y.forwardRef((function(e,t){var n,r,o;const i=Mp({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=ph,transitionDuration:g}=i,b=Yi(i,mh),v=Ui({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return xd({root:["root",n&&"invisible"]},fh,t)})(v),x=null!=(n=f.root)?n:c.root;return Bi.jsx(h,Ui({in:p,timeout:g},b,{children:Bi.jsx(hh,Ui({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:bc(y.root,l,null==x?void 0:x.className),ownerState:Ui({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var bh=gh;var vh=Sc("MuiBox",["root"]);const yh=Ip(),xh=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Ys("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(nc);return y.forwardRef((function(e,a){const l=uc(n),s=pc(e),{className:u,component:c="div"}=s,d=Yi(s,vc);return Bi.jsx(i,Ui({as:c,ref:a,className:bc(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Vi,defaultTheme:yh,defaultClassName:vh.root,generateClassName:hc.generate});var Sh=xh;function Eh(e){return xc("MuiButton",e)}var Ch=Sc("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"]);var wh=y.createContext({});var Rh=y.createContext(void 0);const Ah=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ph=e=>Ui({},"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}}),Ih=uf(Bm,{shouldForwardProp:e=>sf(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${su(n.color)}`],t[`size${su(n.size)}`],t[`${n.variant}Size${su(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;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 Ui({},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":Ui({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fd(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})`:Fd(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})`:Fd(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":Ui({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ch.focusVisible}`]:Ui({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ch.disabled}`]:Ui({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 ${Fd(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,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"},[`&.${Ch.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ch.disabled}`]:{boxShadow:"none"}})),Lh=uf("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${su(n.size)}`]]}})((({ownerState:e})=>Ui({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ph(e)))),Dh=uf("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${su(n.size)}`]]}})((({ownerState:e})=>Ui({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ph(e)))),Mh=y.forwardRef((function(e,t){const n=y.useContext(wh),r=y.useContext(Rh),o=Mp({props:Vc(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=Yi(o,Ah),S=Ui({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Ui({},a,xd({root:["root",i,`${i}${su(t)}`,`size${su(o)}`,`${i}Size${su(o)}`,`color${su(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${su(o)}`],endIcon:["icon","endIcon",`iconSize${su(o)}`]},Eh,a))})(S),C=g&&Bi.jsx(Lh,{className:E.startIcon,ownerState:S,children:g}),w=p&&Bi.jsx(Dh,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return Bi.jsxs(Ih,Ui({ownerState:S,className:bc(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:bc(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var Th=Mh;function Oh(e){return xc("MuiModal",e)}Sc("MuiModal",["root","hidden","backdrop"]);const kh=["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"],_h=uf("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Ui({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),qh=uf(bh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Nh=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Mp({name:"MuiModal",props:e}),{BackdropComponent:u=qh,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:I,slotProps:L,slots:D}=s,M=Yi(s,kh),T=Ui({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:k,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=sh(Ui({},T,{rootRef:t})),j=Ui({},T,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return xd({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Oh,r)})(j),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=_();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:_h,W=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==L?void 0:L.root)?a:b.root,V=null!=(l=null==L?void 0:L.backdrop)?l:b.backdrop,U=wm({elementType:B,externalSlotProps:G,externalForwardedProps:M,getSlotProps:O,additionalProps:{ref:t,as:h},ownerState:j,className:bc(d,null==G?void 0:G.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),Y=wm({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(Ui({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:bc(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return A||I||z&&!F?Bi.jsx(th,{ref:q,container:m,disablePortal:E,children:Bi.jsxs(B,Ui({},U,{children:[!R&&u?Bi.jsx(W,Ui({},Y)):null,Bi.jsx(eh,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,H)})]}))}):null}));var Fh=Nh;function zh(e){return xc("MuiDivider",e)}var jh=Sc("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const $h=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Hh=uf("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Ui({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)`:Fd(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})=>Ui({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Ui({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Ui({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Ui({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Bh=uf("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Ui({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)`}))),Wh=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Yi(n,$h),m=Ui({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return xd({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},zh,r)})(m);return Bi.jsx(Hh,Ui({as:a,className:bc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Bi.jsx(Bh,{className:h.wrapper,ownerState:m,children:o}):null}))}));Wh.muiSkipListHighlight=!0;var Gh=Wh;const Vh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Uh(e){return`scale(${e}, ${e**2})`}const Yh={entering:{opacity:1,transform:Uh(1)},entered:{opacity:1,transform:"none"}},Kh="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Xh=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=lm}=e,g=Yi(e,Vh),b=ud(),v=y.useRef(),x=Dp(),S=y.useRef(null),E=id(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{mm(e);const{duration:n,delay:r,easing:o}=hm({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Kh?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),A=C(s),P=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=hm({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:Kh?o:.666*o,delay:Kh?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Uh(.75),c&&c(e)})),L=C(d);return Bi.jsx(h,Ui({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:I,onExited:L,onExiting:P,addEndListener:e=>{"auto"===m&&b.start(v.current||0,e),n&&n(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,Ui({style:Ui({opacity:0,transform:Uh(.75),visibility:"exited"!==e||a?void 0:"hidden"},Yh[e],f,o.props.style),ref:E},t))}))}));Xh.muiSupportAuto=!0;var Jh=Xh;var Zh=y.createContext({});function Qh(e){return xc("MuiList",e)}Sc("MuiList",["root","padding","dense","subheader"]);const eg=["children","className","component","dense","disablePadding","subheader"],tg=uf("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Ui({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var ng=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Yi(n,eg),c=y.useMemo((()=>({dense:a})),[a]),d=Ui({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xd({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Qh,t)})(d);return Bi.jsx(Zh.Provider,{value:c,children:Bi.jsxs(tg,Ui({as:i,className:bc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function rg(e){return xc("MuiListItemIcon",e)}var og=Sc("MuiListItemIcon",["root","alignItemsFlexStart"]);const ig=["className"],ag=uf("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Ui({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var lg=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Yi(n,ig),i=Ui({},n,{alignItems:y.useContext(Zh).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return xd({root:["root","flex-start"===t&&"alignItemsFlexStart"]},rg,n)})(i);return Bi.jsx(ag,Ui({className:bc(a.root,r),ownerState:i,ref:t},o))}));var sg=Sc("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const ug=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function cg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function dg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function pg(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function fg(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&pg(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var mg=y.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Yi(e,ug),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Yc((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${yd(td(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=id(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Bi.jsx(ng,Ui({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=td(t).activeElement;if("ArrowDown"===n)e.preventDefault(),fg(t,r,s,l,cg);else if("ArrowUp"===n)e.preventDefault(),fg(t,r,s,l,dg);else if("Home"===n)e.preventDefault(),fg(t,null,s,l,cg);else if("End"===n)e.preventDefault(),fg(t,null,s,l,dg);else if(1===n.length){const o=f.current,i=n.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 s=r&&!o.repeating&&pg(r,o);o.previousKeyMatched&&(s||fg(t,r,!1,l,cg,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function hg(e){return xc("MuiPopover",e)}Sc("MuiPopover",["root","paper"]);const gg=["onEntering"],bg=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],vg=["slotProps"];function yg(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function xg(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Sg(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Eg(e){return"function"==typeof e?e():e}const Cg=uf(Fh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wg=uf(ym,{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});var Rg=y.forwardRef((function(e,t){var n,r,o;const i=Mp({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Jh,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=Yi(i.TransitionProps,gg),P=Yi(i,bg),I=null!=(n=null==x?void 0:x.paper)?n:b,L=y.useRef(),D=id(L,I.ref),M=Ui({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),T=(e=>{const{classes:t}=e;return xd({root:["root"],paper:["paper"]},hg,t)})(M),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=Eg(l),t=(e&&1===e.nodeType?e:td(L.current).body).getBoundingClientRect();return{top:t.top+yg(t,s.vertical),left:t.left+xg(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=y.useCallback((e=>({vertical:yg(e,S.vertical),horizontal:xg(e,S.horizontal)})),[S.horizontal,S.vertical]),_=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===c)return{top:null,left:null,transformOrigin:Sg(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=nd(Eg(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Sg(n)}}),[l,c,O,k,h]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=L.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=ed((()=>{F()})),t=nd(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?td(Eg(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:Cg,H=null!=(o=null==v?void 0:v.paper)?o:wg,B=wm({elementType:H,externalSlotProps:Ui({},I,{style:q?I.style:Ui({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:M,className:bc(T.paper,null==I?void 0:I.className)}),W=wm({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:M,className:bc(T.root,p)}),{slotProps:G}=W,V=Yi(W,vg);return Bi.jsx($,Ui({},V,!xm($)&&{slotProps:G,disableScrollLock:R},{children:Bi.jsx(E,Ui({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},A,{children:Bi.jsx(H,Ui({},B,{children:d}))}))}))}));function Ag(e){return xc("MuiMenu",e)}Sc("MuiMenu",["root","paper","list"]);const Pg=["onEntering"],Ig=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Lg={vertical:"top",horizontal:"right"},Dg={vertical:"top",horizontal:"left"},Mg=uf(Rg,{shouldForwardProp:e=>sf(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tg=uf(wg,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Og=uf(mg,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var kg=y.forwardRef((function(e,t){var n,r;const o=Mp({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Yi(o.TransitionProps,Pg),S=Yi(o,Ig),E=(()=>{const e=y.useContext(Ad);return null!=e&&e})(),C=Ui({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),w=(e=>{const{classes:t}=e;return xd({root:["root"],paper:["paper"],list:["list"]},Ag,t)})(C),R=i&&!s&&d,A=y.useRef(null);let P=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))}));const I=null!=(n=b.paper)?n:Tg,L=null!=(r=v.paper)?r:p,D=wm({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),M=wm({elementType:I,externalSlotProps:L,ownerState:C,className:w.paper});return Bi.jsx(Mg,Ui({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Lg:Dg,slots:{paper:I,root:b.root},slotProps:{root:D,paper:M},open:d,ref:t,transitionDuration:m,TransitionProps:Ui({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),h&&h(e,t)}},x),ownerState:C},S,{classes:f,children:Bi.jsx(Og,Ui({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===P||s),autoFocusItem:R,variant:g},u,{className:bc(w.list,u.className),children:a}))}))}));function _g(e){return xc("MuiMenuItem",e)}var qg=Sc("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Ng=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Fg=uf(Bm,{shouldForwardProp:e=>sf(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Ui({},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"}},[`&.${qg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qg.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qg.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fd(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})`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jh.inset}`]:{marginLeft:52},[`& .${sg.root}`]:{marginTop:0,marginBottom:0},[`& .${sg.inset}`]:{paddingLeft:36},[`& .${og.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ui({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${og.root} svg`]:{fontSize:"1.25rem"}}))));var zg=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Yi(n,Ng),f=y.useContext(Zh),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);Yc((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Ui({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Ui({},a,xd({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},_g,a))})(n),v=id(h,t);let x;return n.disabled||(x=void 0!==c?c:-1),Bi.jsx(Zh.Provider,{value:m,children:Bi.jsx(Fg,Ui({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:bc(b.focusVisible,s),className:bc(b.root,d)},p,{ownerState:g,classes:b}))})}));var jg=y.createContext();function $g(e){return xc("MuiTable",e)}Sc("MuiTable",["root","stickyHeader"]);const Hg=["className","component","padding","size","stickyHeader"],Bg=uf("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ui({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ui({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Wg="table",Gg=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTable"}),{className:r,component:o=Wg,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=Yi(n,Hg),u=Ui({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return xd({root:["root",n&&"stickyHeader"]},$g,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Bi.jsx(jg.Provider,{value:d,children:Bi.jsx(Bg,Ui({as:o,role:o===Wg?null:"table",ref:t,className:bc(c.root,r),ownerState:u},s))})}));var Vg=Gg;var Ug=y.createContext();function Yg(e){return xc("MuiTableBody",e)}Sc("MuiTableBody",["root"]);const Kg=["className","component"],Xg=uf("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Jg={variant:"body"},Zg="tbody";var Qg=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTableBody"}),{className:r,component:o=Zg}=n,i=Yi(n,Kg),a=Ui({},n,{component:o}),l=(e=>{const{classes:t}=e;return xd({root:["root"]},Yg,t)})(a);return Bi.jsx(Ug.Provider,{value:Jg,children:Bi.jsx(Xg,Ui({className:bc(l.root,r),as:o,ref:t,role:o===Zg?null:"rowgroup",ownerState:a},i))})}));function eb(e){return xc("MuiTableCell",e)}var tb=Sc("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const nb=["align","className","component","padding","scope","size","sortDirection","variant"],rb=uf("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${su(n.size)}`],"normal"!==n.padding&&t[`padding${su(n.padding)}`],"inherit"!==n.align&&t[`align${su(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ui({},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?$d(Fd(e.palette.divider,1),.88):zd(Fd(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",[`&.${tb.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}))),ob=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=Yi(n,nb),p=y.useContext(jg),f=y.useContext(Ug),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=Ui({},n,{align:r,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return xd({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${su(r)}`,"normal"!==o&&`padding${su(o)}`,`size${su(i)}`]},eb,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Bi.jsx(rb,Ui({as:h,ref:t,className:bc(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var ib=ob;function ab(e){return xc("MuiTableContainer",e)}Sc("MuiTableContainer",["root"]);const lb=["className","component"],sb=uf("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var ub=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=Yi(n,lb),a=Ui({},n,{component:o}),l=(e=>{const{classes:t}=e;return xd({root:["root"]},ab,t)})(a);return Bi.jsx(sb,Ui({ref:t,as:o,className:bc(l.root,r),ownerState:a},i))}));function cb(e){return xc("MuiTableHead",e)}Sc("MuiTableHead",["root"]);const db=["className","component"],pb=uf("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),fb={variant:"head"},mb="thead";var hb=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTableHead"}),{className:r,component:o=mb}=n,i=Yi(n,db),a=Ui({},n,{component:o}),l=(e=>{const{classes:t}=e;return xd({root:["root"]},cb,t)})(a);return Bi.jsx(Ug.Provider,{value:fb,children:Bi.jsx(pb,Ui({as:o,className:bc(l.root,r),ref:t,role:o===mb?null:"rowgroup",ownerState:a},i))})}));function gb(e){return xc("MuiTableRow",e)}var bb=Sc("MuiTableRow",["root","selected","hover","head","footer"]);const vb=["className","component","hover","selected"],yb=uf("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${bb.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${bb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fd(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}))`:Fd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),xb="tr",Sb=y.forwardRef((function(e,t){const n=Mp({props:e,name:"MuiTableRow"}),{className:r,component:o=xb,hover:i=!1,selected:a=!1}=n,l=Yi(n,vb),s=y.useContext(Ug),u=Ui({},n,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return xd({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},gb,t)})(u);return Bi.jsx(yb,Ui({as:o,ref:t,className:bc(c.root,r),role:o===xb?null:"row",ownerState:u},l))}));var Eb=Sb,Cb=(e={})=>x.createElement(Vf,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Lf.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const wb={MuiAccordion:{styleOverrides:{root:{backgroundColor:Lf.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Lf.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(Bf,{"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 ${Lf.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Lf.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Lf.MISC_FOCUS_BORDER}`,borderRadius:kf,backgroundColor:Lf.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 ${Lf.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Lf.WHITE,color:Lf.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:kf},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lf.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Lf.GREYSCALE_0_15,backgroundColor:Lf.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Lf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lf.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Lf.GREEN_PALE},"&:active":{backgroundColor:Lf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lf.GREEN_PALE,boxShadow:`0 0 0 3px ${Zc(Lf.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Lf.BLUE_PALE},"&:active":{backgroundColor:Lf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lf.BLUE_PALE,boxShadow:`0 0 0 3px ${Zc(Lf.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:kf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Lf.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lf.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Lf.GREYSCALE_0_15,backgroundColor:Lf.GREYSCALE_100_60,"&:active":{backgroundColor:Lf.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Lf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lf.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Lf.PURPLE,"&.Mui-focusVisible":{borderColor:Lf.PURPLE,boxShadow:`0 0 0 3px ${Zc(Lf.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Lf.GREEN,"&.Mui-focusVisible":{borderColor:Lf.GREEN,boxShadow:`0 0 0 3px ${Zc(Lf.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Lf.BLUE,"&.Mui-focusVisible":{borderColor:Lf.BLUE,boxShadow:`0 0 0 3px ${Zc(Lf.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Lf.ORANGE,"&.Mui-focusVisible":{borderColor:Lf.ORANGE,boxShadow:`0 0 0 3px ${Zc(Lf.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Lf.RED,"&.Mui-focusVisible":{borderColor:Lf.RED,boxShadow:`0 0 0 3px ${Zc(Lf.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Lf.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Lf.PURPLE_PALE},"&:active":{backgroundColor:Lf.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Lf.PURPLE_PALE,boxShadow:`0 0 0 3px ${Zc(Lf.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Lf.GREEN_PALE},"&:active":{backgroundColor:Lf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lf.GREEN_PALE,boxShadow:`0 0 0 3px ${Zc(Lf.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Lf.BLUE_PALE},"&:active":{backgroundColor:Lf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lf.BLUE_PALE,boxShadow:`0 0 0 3px ${Zc(Lf.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Lf.ORANGE_PALE},"&:active":{backgroundColor:Lf.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Lf.ORANGE_PALE,boxShadow:`0 0 0 3px ${Zc(Lf.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Lf.RED_PALE},"&:active":{backgroundColor:Lf.RED_DARK},"&.Mui-focusVisible":{borderColor:Lf.RED_PALE,boxShadow:`0 0 0 3px ${Zc(Lf.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:Lf.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Lf.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:kf,boxShadow:`inset 0 0 0 2px ${Lf.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(Gf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Df,borderRadius:kf,color:Lf.TEXT_PRIMARY,backgroundColor:Lf.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Lf.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Lf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Lf.GREYSCALE_0_05,color:Lf.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Lf.GREEN,borderColor:Lf.GREEN},"&.MuiChip-outlinedInfo":{color:Lf.BLUE,borderColor:Lf.BLUE},"&.MuiChip-outlinedWarning":{color:Lf.ORANGE,borderColor:Lf.ORANGE},"&.MuiChip-outlinedError":{color:Lf.RED,borderColor:Lf.RED}},outlined:{border:`solid 1px ${Lf.GREYSCALE_0_15}`,backgroundColor:Lf.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:kf,boxShadow:"none",backgroundColor:Lf.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Lf.GREEN,borderColor:Lf.GREEN},outlinedSecondary:{color:Lf.BLUE,borderColor:Lf.BLUE},label:{fontFamily:zf.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(Gf,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(Bf,{"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:kf},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:kf,fontSize:Mf,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Lf.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Lf.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Lf.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Lf.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Lf.GREYSCALE_0_05}}},popupIndicator:{borderRadius:kf,border:`solid 1px ${Lf.GREYSCALE_0_15}`,color:Lf.GREYSCALE_0_60,marginRight:0,width:Of,height:Of},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Lf.GREYSCALE_0_15}`},clearIndicator:{borderRadius:kf,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Lf.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Mf}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Df,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Lf.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Lf.GREYSCALE_25,fontSize:Df,fontFamily:zf.FONT_FAMILY,fontWeight:Nf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Lf.TEXT_PRIMARY},"&.Mui-error":{color:Lf.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Lf.TEXT_SECONDARY,content:"'(optional)'",fontWeight:qf,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Lf.TEXT_SECONDARY,content:"'(required)'",fontWeight:qf,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Mf,lineHeight:"16px",backgroundColor:Lf.WHITE,borderRadius:kf,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lf.GREYSCALE_0_05}`,borderColor:Lf.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lf.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Lf.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Lf.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lf.RED}`,boxShadow:`0px 0px 0px 1px ${Lf.RED}, inset 0 2px 0 0 ${Lf.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lf.GREYSCALE_0_10}`,borderColor:Lf.GREYSCALE_0_10,backgroundColor:Lf.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Lf.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Lf.GREYSCALE_0_15,borderRadius:kf,boxShadow:`inset 0 2px 0 0 ${Lf.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(Bf,{...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:Lf.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Lf.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Lf.GREYSCALE_0_03},"&:active":{backgroundColor:Lf.GREYSCALE_0_10},"&:focus":{backgroundColor:Lf.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Lf.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Lf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Lf.GREYSCALE_0_30,"&:hover":{backgroundColor:Lf.GREYSCALE_0_0,borderColor:Lf.GREYSCALE_0_15},"& ~svg":{color:Lf.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Lf.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:kf}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Lf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Lf.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Lf.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Mf,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Df,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Df,fontWeight:Nf,color:Lf.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Nf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Lf.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lf.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(Kf,null),checkedIcon:x.createElement(Xf,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Lf.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Lf.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Lf.GREEN_PALE,boxShadow:`0 0 0 3px ${Zc(Lf.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Lf.BLUE_PALE,boxShadow:`0 0 0 3px ${Zc(Lf.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Lf.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Lf.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(Cb,null),checkedIcon:x.createElement(Uf,null),indeterminateIcon:x.createElement(Yf,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:kf,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Lf.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Lf.GREYSCALE_0_55,color:Lf.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:Lf.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Lf.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Lf.GREYSCALE_0_55,"&:hover":{color:Lf.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:Lf.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Lf.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Mf,color:Lf.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Nf},secondary:{fontSize:Df,color:Lf.GREYSCALE_45,fontWeight:qf,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Mf,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Lf.GREYSCALE_0_03},"&:active":{backgroundColor:Lf.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Mf,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Lf.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Df,borderBottom:`solid 1px ${Lf.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Mf,color:Lf.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Lf.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Lf.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Lf.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Lf.RED}}},"&.Mui-focusVisible":{backgroundColor:Lf.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:Lf.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:Lf.GREEN,height:"24px","&.Mui-disabled":{color:Lf.GREYSCALE_0_15}},rail:{backgroundColor:Lf.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Lf.GREYSCALE_0_05}`,borderRadius:kf,boxShadow:`inset 0px 0px 0px 1px ${Lf.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Lf.GREYSCALE_0_05}`,borderRadius:kf},thumb:{height:"16px",width:"16px",borderRadius:kf,backgroundColor:Lf.WHITE,boxShadow:`0px 1px 2px 0px ${Lf.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lf.GREYSCALE_0_05}`,"&:hover":{borderRadius:kf,boxShadow:`0 2px 4px 0 ${Lf.GREYSCALE_0_30}, 0 0 0 1px ${Lf.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Lf.GREYSCALE_0_15}, 0 0 0 1px ${Lf.GREYSCALE_0_06}, 0 0 0 2px ${Lf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Lf.GREYSCALE_0_15}, 0 0 0 1px ${Lf.GREYSCALE_0_06}, 0 0 0 2px ${Lf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Lf.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Lf.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Lf.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Lf.GREYSCALE_0_15},markLabel:{color:Lf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Lf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Lf.WHITE,color:Lf.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:Lf.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:Lf.GREEN_PALE,boxShadow:`0 0 0 3px ${Zc(Lf.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Lf.BLUE_PALE,boxShadow:`0 0 0 3px ${Zc(Lf.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Lf.GREYSCALE_0_15,borderRadius:kf},thumb:{height:"16px",width:"16px",borderRadius:kf,backgroundColor:Lf.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:Mf,fontWeight:Nf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Lf.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Lf.MISC_FOCUS_BORDER}`,backgroundColor:Lf.GREYSCALE_0_03,borderRadius:kf},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Lf.GREYSCALE_25,"&.Mui-selected":{color:Lf.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Mf,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Lf.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Lf.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Lf.GREYSCALE_85}`,borderRight:`1px solid ${Lf.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Nf,backgroundColor:Lf.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:Lf.GREYSCALE_98,borderBottom:`1px solid ${Lf.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Lf.GREYSCALE_85}`,borderTop:`1px solid ${Lf.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Lf.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Lf.GREYSCALE_0_05,"&:hover":{backgroundColor:Lf.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Lf.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(Jf,{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 ${Lf.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Mf,borderRadius:kf,padding:"7px 16px",border:`1px solid ${Lf.GREYSCALE_0_15}`,backgroundColor:Lf.GREYSCALE_100_60,color:Lf.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Lf.GREYSCALE_0_10,border:`1px solid ${Lf.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Lf.GREYSCALE_0_03,border:`1px solid ${Lf.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Lf.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Lf.MISC_FOCUS_BORDER}`,border:`1px solid ${Lf.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Lf.GREYSCALE_25,backgroundColor:Lf.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Lf.GREYSCALE_0_10,border:`1px solid ${Lf.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Df,height:24,width:24,padding:7},sizeLarge:{fontSize:Tf,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Mf,borderRadius:kf}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Lf.GREYSCALE_20},tooltip:{backgroundColor:Lf.GREYSCALE_20,fontSize:Df,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Rb={mode:"light",primary:{ultraLight:Lf.GREEN_ULTRA_LIGHT,light:Lf.GREEN_PALE,main:Lf.GREEN,dark:Lf.GREEN_DARK,extraDark:Lf.GREEN_EXTRA_DARK,contrastText:Lf.WHITE},secondary:{ultraLight:Lf.BLUE_ULTRA_LIGHT,light:Lf.BLUE_PALE,main:Lf.BLUE,dark:Lf.BLUE_DARK,extraDark:Lf.BLUE_EXTRA_DARK,contrastText:Lf.WHITE},error:{ultraLight:Lf.RED_ULTRA_LIGHT,light:Lf.RED_PALE,main:Lf.RED,dark:Lf.RED_DARK,extraDark:Lf.RED_EXTRA_DARK,contrastText:Lf.WHITE},warning:{ultraLight:Lf.ORANGE_ULTRA_LIGHT,light:Lf.ORANGE_PALE,main:Lf.ORANGE,dark:Lf.ORANGE_DARK,extraDark:Lf.ORANGE_EXTRA_DARK,contrastText:Lf.WHITE},success:{ultraLight:Lf.GREEN_ULTRA_LIGHT,light:Lf.GREEN_PALE,main:Lf.GREEN,dark:Lf.GREEN_DARK,extraDark:Lf.GREEN_EXTRA_DARK,contrastText:Lf.WHITE},info:{ultraLight:Lf.BLUE_ULTRA_LIGHT,light:Lf.BLUE_PALE,main:Lf.BLUE,dark:Lf.BLUE_DARK,extraDark:Lf.BLUE_EXTRA_DARK,contrastText:Lf.WHITE},text:{primary:Lf.TEXT_PRIMARY,secondary:Lf.TEXT_SECONDARY,disabled:Lf.GREYSCALE_0_30},action:{hover:Lf.GREYSCALE_0_03,hoverOpacity:.05,selected:Lf.GREYSCALE_0_05,focus:Lf.MISC_FOCUS_BORDER},amethyst:{ultraLight:Lf.WHITE,main:Lf.PURPLE,light:Lf.PURPLE_PALE,dark:Lf.PURPLE_DARK,extraDark:Lf.GREYSCALE_0_0,contrastText:Lf.WHITE},background:{paper:Lf.WHITE,default:Lf.GREYSCALE_95},divider:Lf.GREYSCALE_0_15},Ab=e=>({components:wb,palette:Rb,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:Mf,fontWeightLight:_f,fontWeightRegular:qf,fontWeightMedium:Nf,fontWeightBold:Ff,htmlFontSize:Mf,fontFamily:zf.FONT_FAMILY,button:{fontWeight:Nf,fontSize:Mf,textTransform:"none"},body1:{fontSize:Tf,lineHeight:"24px"},body2:{fontSize:Mf,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Of,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Tf,fontWeight:Nf,lineHeight:"16px"},h6:{fontSize:Mf,fontWeight:Nf,lineHeight:"16px"},caption:{color:Lf.TEXT_SECONDARY},subtitle1:{fontSize:Mf,color:Lf.TEXT_SECONDARY},subtitle2:{fontSize:Df,color:Lf.TEXT_SECONDARY}},shape:{borderRadius:kf}}),Pb={...If,MISC_FOCUS_BORDER:Lf.MISC_FOCUS_BORDER},Ib=(e="light")=>Ab(),Lb=Ib().palette,Db={SELECTED:{color:Pb.GREYSCALE_100,background:Lb.primary.light,selectedCellClass:mf.SELECTED},POSSIBLE:{color:Lb.text.primary,background:Pb.GREYSCALE_100},EXCLUDED_BACKGROUND:"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)"},Mb=4/3,Tb="12px",Ob="600",kb={height:"auto",fontSize:Tb,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"}},_b=25e4,qb=(e,t,n,r)=>{if(null==e||!e.length)return[];const o=[],i=[],a=r?Dr.PixelsMin:Dr.PixelsMinTable;let l=t;if(e.forEach(((e,r)=>{if(e.columnWidth){const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{o[r]=Math.min(Dr.PixelsMax,Math.max(a,m)),l-=o[r]};switch(s){case Mr.Pixels:m=u||Dr.PixelsDefault,h();break;case Mr.Percentage:m=(c||Dr.PercentageDefault)/100*t,h();break;case Mr.FitToContent:m=n(d,f,p,e.isLocked,e.isActivelySorted),h();break;case Mr.Auto:i.push(r);break;default:throw new Error(`${s} is not a valid column width type`)}}else i.push(r)})),i.length){const e=l/i.length;i.forEach((t=>{o[t]=Math.max(a,e)}))}return o},Nb={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"},Fb={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Nb,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_25:"rgba(0, 0, 0, 0.25)",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_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},zb=12,jb=14,$b=16,Hb=24,Bb=3,Wb=300,Gb=400,Vb=600,Ub=700,Yb={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Rf(Fb.GREYSCALE_0,.05),Rf(Fb.GREEN_PALE,.5),Rf(Fb.BLUE_PALE,.5),Rf(Fb.GREEN_PALE,.5),Rf(Fb.BLUE_PALE,.5),Rf(Fb.GREEN_PALE,.5),Rf(Fb.BLUE_PALE,.5);var Kb;function Xb(){return Xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xb.apply(this,arguments)}Rf(Fb.GREEN_PALE,.5),Rf(Fb.BLUE_PALE,.5),Rf(Fb.GREEN_PALE,.5),Rf(Fb.BLUE_PALE,.5);var Jb,Zb=function(e){return y.createElement("svg",Xb({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Kb||(Kb=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Qb(){return Qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qb.apply(this,arguments)}var ev=function(e){return y.createElement("svg",Qb({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Jb||(Jb=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function tv({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var nv=(e={})=>x.createElement(tv,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("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"}))),rv=(e={})=>x.createElement(tv,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),ov=(e={})=>x.createElement(tv,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),iv=(e={})=>x.createElement(tv,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("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"}))),av=({className:e})=>x.createElement(tv,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("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"}),x.createElement("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"}))))));var lv={black:"#000",white:"#fff"};var sv={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"};var uv={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var cv={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"};var dv={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var pv={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"};var fv={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"};var mv={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 hv(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 gv="$$material";function bv(){return bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bv.apply(this,arguments)}function vv(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}const yv=zs((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var xv=yv;
113
113
  /**
114
114
  * @mui/styled-engine-sc v6.0.0-alpha.17
115
115
  *
@@ -117,7 +117,7 @@ function Ys(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldFo
117
117
  * This source code is licensed under the MIT license found in the
118
118
  * LICENSE file in the root directory of this source tree.
119
119
  */
120
- function xv(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ns(e),n}vv.propTypes={defaultTheme:Ws.object,styles:Ws.oneOfType([Ws.array,Ws.string,Ws.object,Ws.func])};const Sv=["values","unit","step"],Ev=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)=>Ui({},e,{[t.key]:t.val})),{})};var Cv={borderRadius:4};function wv(e,t){return t?Zs(e,t,{clone:!1}):e}const Rv={xs:0,sm:600,md:900,lg:1200,xl:1536},Av={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Rv[e]}px)`};function Pv(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Av;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Av;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Rv).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Iv(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Dv(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Iv(e,n)||r,t&&(o=t(o,r,e)),o}function Lv(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Iv(e.theme,r)||{};return Pv(e,i,(e=>{let r=Dv(a,o,e);return e===r&&"string"==typeof e&&(r=Dv(a,o,`${t}${"default"===e?"":su(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Mv={m:"margin",p:"padding"},Ov={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},kv=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Tv[e])return[e];e=Tv[e]}const[t,n]=e.split(""),r=Mv[t],o=Ov[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),_v=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Nv(e,t,n,r){var o;const i=null!=(o=Iv(e,t,!1))?o:n;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 Fv(e){return Nv(e,"spacing",8)}function zv(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function jv(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=zv(t,n),e)),{})}(kv(n),r);return Pv(e,e[n],o)}function $v(e,t){const n=Fv(e.theme);return Object.keys(e).map((r=>jv(e,t,r,n))).reduce(wv,{})}function Hv(e){return $v(e,_v)}function Bv(e){return $v(e,qv)}function Wv(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?wv(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Gv(e){return"number"!=typeof e?e:`${e}px solid`}function Vv(e,t){return Lv({prop:e,themeKey:"borders",transform:t})}Hv.propTypes={},Hv.filterProps=_v,Bv.propTypes={},Bv.filterProps=qv;const Uv=Vv("border",Gv),Yv=Vv("borderTop",Gv),Kv=Vv("borderRight",Gv),Xv=Vv("borderBottom",Gv),Jv=Vv("borderLeft",Gv),Zv=Vv("borderColor"),Qv=Vv("borderTopColor"),ey=Vv("borderRightColor"),ty=Vv("borderBottomColor"),ny=Vv("borderLeftColor"),ry=Vv("outline",Gv),oy=Vv("outlineColor"),iy=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Nv(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:zv(t,e)});return Pv(e,e.borderRadius,n)}return null};iy.propTypes={},iy.filterProps=["borderRadius"],Wv(Uv,Yv,Kv,Xv,Jv,Zv,Qv,ey,ty,ny,iy,ry,oy);const ay=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Nv(e.theme,"spacing",8),n=e=>({gap:zv(t,e)});return Pv(e,e.gap,n)}return null};ay.propTypes={},ay.filterProps=["gap"];const ly=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Nv(e.theme,"spacing",8),n=e=>({columnGap:zv(t,e)});return Pv(e,e.columnGap,n)}return null};ly.propTypes={},ly.filterProps=["columnGap"];const sy=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Nv(e.theme,"spacing",8),n=e=>({rowGap:zv(t,e)});return Pv(e,e.rowGap,n)}return null};sy.propTypes={},sy.filterProps=["rowGap"];function uy(e,t){return"grey"===t?t:e}Wv(ay,ly,sy,Lv({prop:"gridColumn"}),Lv({prop:"gridRow"}),Lv({prop:"gridAutoFlow"}),Lv({prop:"gridAutoColumns"}),Lv({prop:"gridAutoRows"}),Lv({prop:"gridTemplateColumns"}),Lv({prop:"gridTemplateRows"}),Lv({prop:"gridTemplateAreas"}),Lv({prop:"gridArea"}));function cy(e){return e<=1&&0!==e?100*e+"%":e}Wv(Lv({prop:"color",themeKey:"palette",transform:uy}),Lv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:uy}),Lv({prop:"backgroundColor",themeKey:"palette",transform:uy}));const dy=Lv({prop:"width",transform:cy}),py=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Rv[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:cy(t)}};return Pv(e,e.maxWidth,t)}return null};py.filterProps=["maxWidth"];const fy=Lv({prop:"minWidth",transform:cy}),my=Lv({prop:"height",transform:cy}),hy=Lv({prop:"maxHeight",transform:cy}),gy=Lv({prop:"minHeight",transform:cy});Lv({prop:"size",cssProperty:"width",transform:cy}),Lv({prop:"size",cssProperty:"height",transform:cy});Wv(dy,py,fy,my,hy,gy,Lv({prop:"boxSizing"}));var by={border:{themeKey:"borders",transform:Gv},borderTop:{themeKey:"borders",transform:Gv},borderRight:{themeKey:"borders",transform:Gv},borderBottom:{themeKey:"borders",transform:Gv},borderLeft:{themeKey:"borders",transform:Gv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:iy},color:{themeKey:"palette",transform:uy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:uy},backgroundColor:{themeKey:"palette",transform:uy},p:{style:Bv},pt:{style:Bv},pr:{style:Bv},pb:{style:Bv},pl:{style:Bv},px:{style:Bv},py:{style:Bv},padding:{style:Bv},paddingTop:{style:Bv},paddingRight:{style:Bv},paddingBottom:{style:Bv},paddingLeft:{style:Bv},paddingX:{style:Bv},paddingY:{style:Bv},paddingInline:{style:Bv},paddingInlineStart:{style:Bv},paddingInlineEnd:{style:Bv},paddingBlock:{style:Bv},paddingBlockStart:{style:Bv},paddingBlockEnd:{style:Bv},m:{style:Hv},mt:{style:Hv},mr:{style:Hv},mb:{style:Hv},ml:{style:Hv},mx:{style:Hv},my:{style:Hv},margin:{style:Hv},marginTop:{style:Hv},marginRight:{style:Hv},marginBottom:{style:Hv},marginLeft:{style:Hv},marginX:{style:Hv},marginY:{style:Hv},marginInline:{style:Hv},marginInlineStart:{style:Hv},marginInlineEnd:{style:Hv},marginBlock:{style:Hv},marginBlockStart:{style:Hv},marginBlockEnd:{style:Hv},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:ay},rowGap:{style:sy},columnGap:{style:ly},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cy},maxWidth:{style:py},minWidth:{transform:cy},height:{transform:cy},maxHeight:{transform:cy},minHeight:{transform:cy},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const vy=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Iv(n,l)||{};if(u)return u(o);return Pv(o,t,(t=>{let n=Dv(c,s,t);return t===n&&"string"==typeof t&&(n=Dv(c,s,`${e}${"default"===t?"":su(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:by;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=wv(s,e(n,o,i,a));else{const e=Pv({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=wv(s,e):s[n]=t({sx:o,theme:i})}else s=wv(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();vy.filterProps=["sx"];var yy=vy;function xy(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const Sy=["breakpoints","palette","spacing","shape"];function Ey(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Yi(e,Sy),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Yi(e,Sv),i=Ev(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ui({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=Fv({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Zs({breakpoints:l,direction:"ltr",components:{},palette:Ui({mode:"light"},r),spacing:s,shape:Ui({},Cv,i)},a);return u.applyStyles=xy,u=t.reduce(((e,t)=>Zs(e,t)),u),u.unstable_sxConfig=Ui({},by,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return yy({sx:e,theme:this})},u}function Cy(e=null){const t=y.useContext(Ds);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const wy=Ey();function Ry(e=wy){return Cy(e)}function Ay({styles:e,themeId:t,defaultTheme:n={}}){const r=Ry(n),o="function"==typeof e?e(t&&r[t]||r):e;return Bi.jsx(yv,{styles:o})}const Py=["sx"],Iy=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:by;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Dy(e){const{sx:t}=e,n=Yi(e,Py),{systemProps:r,otherProps:o}=Iy(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Xs(n)?Ui({},r,n):r}:Ui({},r,t),Ui({},o,{sx:i})}const Ly=["className","component"];const My=["ownerState"],Oy=["variants"],Ty=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ky(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const _y=Ey(),qy=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ny({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Fy(e){return e?(t,n)=>n[e]:null}function zy(e,t){let{ownerState:n}=t,r=Yi(t,My);const o="function"==typeof e?e(Ui({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>zy(e,Ui({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Yi(o,Oy);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Ui({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Ui({ownerState:n},r)):e.style))})),t}return o}function jy({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ry(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Vc(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function $y(e,t=0,n=1){return Kc(e,t,n)}function Hy(e){if(e.type)return e;if("#"===e.charAt(0))return Hy(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Wi(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(Wi(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function By(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Wy(e){let t="hsl"===(e=Hy(e)).type||"hsla"===e.type?Hy(function(e){e=Hy(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),By({type:l,values:s})}(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 Gy(e,t){return e=Hy(e),t=$y(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,By(e)}function Vy(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 Uy(e){if(!Vy(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Uy(e[n])})),t}function Yy(e,t,n={clone:!0}){const r=n.clone?Ui({},e):e;return Vy(e)&&Vy(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Vy(t[o])&&o in e&&Vy(e[o])?r[o]=Yy(e[o],t[o],n):n.clone?r[o]=Vy(t[o])?Uy(t[o]):t[o]:r[o]=t[o])})),r}function Ky(e){if("string"!=typeof e)throw new Error(mv(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Xy(e){return e&&e.ownerDocument||document}function Jy(e){return Xy(e).defaultView||window}var Zy="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let Qy=0;const ex=y["useId".toString()];function tx(e){if(void 0!==ex){const t=ex();return null!=e?e:t}return function(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect((()=>{null==t&&(Qy+=1,n(`mui-${Qy}`))}),[t]),r}(e)}function nx({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function rx(e){const t=y.useRef(e);return Zy((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function ox(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class ix{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ix}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let ax=!0,lx=!1;const sx=new ix,ux={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 cx(e){e.metaKey||e.altKey||e.ctrlKey||(ax=!0)}function dx(){ax=!1}function px(){"hidden"===this.visibilityState&&lx&&(ax=!0)}function fx(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ax||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ux[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function mx(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",cx,!0),t.addEventListener("mousedown",dx,!0),t.addEventListener("pointerdown",dx,!0),t.addEventListener("touchstart",dx,!0),t.addEventListener("visibilitychange",px,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!fx(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(lx=!0,sx.start(100,(()=>{lx=!1})),t.current=!1,!0)},ref:e}}function hx(e,t){const n=Ui({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ui({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Ui({},i),Object.keys(o).forEach((e=>{n[r][e]=hx(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const gx=e=>e;var bx=(()=>{let e=gx;return{configure(t){e=t},generate:t=>e(t),reset(){e=gx}}})();const vx={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 yx(e,t,n="Mui"){const r=vx[t];return r?`${n}-${r}`:`${bx.generate(e)}-${t}`}function xx(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=yx(e,t,n)})),r}const Sx=["mode","contrastThreshold","tonalOffset"],Ex={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:av.white,default:av.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}},Cx={text:{primary:av.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:av.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 wx(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Hy(e),t=$y(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return By(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Hy(e),t=$y(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 n=0;n<3;n+=1)e.values[n]*=1-t;return By(e)}(e.main,i)))}function Rx(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=bv(e,Sx),i=e.primary||function(e="light"){return"dark"===e?{main:uv[200],light:uv[50],dark:uv[400]}:{main:uv[700],light:uv[400],dark:uv[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:sv[200],light:sv[50],dark:sv[400]}:{main:sv[500],light:sv[300],dark:sv[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:lv[500],light:lv[300],dark:lv[700]}:{main:lv[700],light:lv[400],dark:lv[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:cv[400],light:cv[300],dark:cv[700]}:{main:cv[700],light:cv[500],dark:cv[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:dv[400],light:dv[300],dark:dv[700]}:{main:dv[800],light:dv[500],dark:dv[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:pv[400],light:pv[300],dark:pv[700]}:{main:"#ed6c02",light:pv[500],dark:pv[900]}}(t);function d(e){const t=function(e,t){const n=Wy(e),r=Wy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Cx.text.primary)>=n?Cx.text.primary:Ex.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=gv({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(mv(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(mv(12,t?` (${t})`:"",JSON.stringify(e.main)));return wx(e,"light",o,r),wx(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Cx,light:Ex};return Yy(gv({common:gv({},av),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:fv,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ax=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Px={textTransform:"uppercase"},Ix='"Roboto", "Helvetica", "Arial", sans-serif';function Dx(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ix,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=bv(n,Ax),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return gv({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Ix?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Px),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Px),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yy(gv({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Lx(...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(",")}var Mx=["none",Lx(0,2,1,-1,0,1,1,0,0,1,3,0),Lx(0,3,1,-2,0,2,2,0,0,1,5,0),Lx(0,3,3,-2,0,3,4,0,0,1,8,0),Lx(0,2,4,-1,0,4,5,0,0,1,10,0),Lx(0,3,5,-1,0,5,8,0,0,1,14,0),Lx(0,3,5,-1,0,6,10,0,0,1,18,0),Lx(0,4,5,-2,0,7,10,1,0,2,16,1),Lx(0,5,5,-3,0,8,10,1,0,3,14,2),Lx(0,5,6,-3,0,9,12,1,0,3,16,2),Lx(0,6,6,-3,0,10,14,1,0,4,18,3),Lx(0,6,7,-4,0,11,15,1,0,4,20,3),Lx(0,7,8,-4,0,12,17,2,0,5,22,4),Lx(0,7,8,-4,0,13,19,2,0,5,24,4),Lx(0,7,9,-4,0,14,21,2,0,5,26,4),Lx(0,8,9,-5,0,15,22,2,0,6,28,5),Lx(0,8,10,-5,0,16,24,2,0,6,30,5),Lx(0,8,11,-5,0,17,26,2,0,6,32,5),Lx(0,9,11,-5,0,18,28,2,0,7,34,6),Lx(0,9,12,-6,0,19,29,2,0,7,36,6),Lx(0,10,13,-6,0,20,31,3,0,8,38,7),Lx(0,10,13,-6,0,21,33,3,0,8,40,7),Lx(0,10,14,-6,0,22,35,3,0,8,42,7),Lx(0,11,14,-7,0,23,36,3,0,9,44,8),Lx(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ox=["duration","easing","delay"],Tx={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)"},kx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _x(e){return`${Math.round(e)}ms`}function qx(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Nx(e){const t=gv({},Tx,e.easing),n=gv({},kx,e.duration);return gv({getAutoHeightDuration:qx,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return bv(r,Ox),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:_x(o)} ${i} ${"string"==typeof a?a:_x(a)}`)).join(",")}},e,{easing:t,duration:n})}var Fx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const zx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function jx(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=bv(e,zx);if(e.vars)throw new Error(mv(18));const l=Rx(r),s=Ey(e);let u=Yy(s,{mixins:(c=s.breakpoints,d=n,gv({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Mx.slice(),typography:Dx(l,i),transitions:Nx(o),zIndex:gv({},Fx),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Yy(u,a),u=t.reduce(((e,t)=>Yy(e,t)),u),u.unstable_sxConfig=gv({},by,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return yy({sx:e,theme:this})},u}var $x=jx();function Hx(){const e=Ry($x);return e[hv]||e}function Bx({props:e,name:t}){return jy({props:e,name:t,defaultTheme:$x,themeId:hv})}const Wx=e=>ky(e)&&"classes"!==e,Gx=ky,Vx=function(e={}){const{themeId:t,defaultTheme:n=_y,rootShouldForwardProp:r=ky,slotShouldForwardProp:o=ky}=e,i=e=>yy(Ui({},e,{theme:Ny(Ui({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Fy(qy(s))}=a,p=Yi(a,Ty),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ky;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=xv(e,Ui({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Xs(e)?r=>zy(e,Ui({},r,{theme:Ny({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=Ny(Ui({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=zy(n,Ui({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=Ny(Ui({},e,{defaultTheme:n,themeId:t}));return zy({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Ui({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:hv,defaultTheme:$x,rootShouldForwardProp:Wx});var Ux=Vx;var Yx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Kx(e){return yx("MuiSvgIcon",e)}xx("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Xx=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Jx=Ux("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Ky(n.color)}`],t[`fontSize${Ky(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"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==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Zx=y.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=bv(n,Xx),f=y.isValidElement(r)&&"svg"===r.type,m=gv({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return xd({root:["root","inherit"!==t&&`color${Ky(t)}`,`fontSize${Ky(n)}`]},Kx,r)})(m);return Bi.jsxs(Jx,gv({as:a,className:bc(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?Bi.jsx("title",{children:c}):null]}))}));Zx.muiName="SvgIcon";var Qx=Zx;const eS=e=>e.scrollTop;function tS(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function nS(e){return yx("MuiPaper",e)}xx("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 rS=["className","component","elevation","square","variant"],oS=Ux("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return gv({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&&gv({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Gy("#fff",Yx(t.elevation))}, ${Gy("#fff",Yx(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var iS=y.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=bv(n,rS),u=gv({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return xd({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},nS,o)})(u);return Bi.jsx(oS,gv({as:o,ownerState:u,className:bc(c.root,r),ref:t},s))}));function aS(e){return"string"==typeof e}function lS(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function sS(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const uS=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function cS(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Yi(e,uS),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=bc(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Ui({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Ui({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=lS(Ui({},o,r)),l=sS(r),s=sS(o),u=t(a),c=bc(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Ui({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Ui({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Ui({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||aS(e)?t:Ui({},t,{ownerState:Ui({},t.ownerState,n)})}(n,Ui({},s,{ref:id(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var dS=xx("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const pS=["center","classes","className"];let fS,mS,hS,gS,bS=e=>e;const vS=js(fS||(fS=bS`
120
+ function Sv(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ns(e),n}yv.propTypes={defaultTheme:Ws.object,styles:Ws.oneOfType([Ws.array,Ws.string,Ws.object,Ws.func])};const Ev=["values","unit","step"],Cv=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)=>Ui({},e,{[t.key]:t.val})),{})};var wv={borderRadius:4};function Rv(e,t){return t?Zs(e,t,{clone:!1}):e}const Av={xs:0,sm:600,md:900,lg:1200,xl:1536},Pv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Av[e]}px)`};function Iv(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Pv;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Pv;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Av).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Lv(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Dv(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Lv(e,n)||r,t&&(o=t(o,r,e)),o}function Mv(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Lv(e.theme,r)||{};return Iv(e,i,(e=>{let r=Dv(a,o,e);return e===r&&"string"==typeof e&&(r=Dv(a,o,`${t}${"default"===e?"":su(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Tv={m:"margin",p:"padding"},Ov={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_v=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!kv[e])return[e];e=kv[e]}const[t,n]=e.split(""),r=Tv[t],o=Ov[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),qv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Nv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Fv(e,t,n,r){var o;const i=null!=(o=Lv(e,t,!1))?o:n;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 zv(e){return Fv(e,"spacing",8)}function jv(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function $v(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=jv(t,n),e)),{})}(_v(n),r);return Iv(e,e[n],o)}function Hv(e,t){const n=zv(e.theme);return Object.keys(e).map((r=>$v(e,t,r,n))).reduce(Rv,{})}function Bv(e){return Hv(e,qv)}function Wv(e){return Hv(e,Nv)}function Gv(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Rv(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Vv(e){return"number"!=typeof e?e:`${e}px solid`}function Uv(e,t){return Mv({prop:e,themeKey:"borders",transform:t})}Bv.propTypes={},Bv.filterProps=qv,Wv.propTypes={},Wv.filterProps=Nv;const Yv=Uv("border",Vv),Kv=Uv("borderTop",Vv),Xv=Uv("borderRight",Vv),Jv=Uv("borderBottom",Vv),Zv=Uv("borderLeft",Vv),Qv=Uv("borderColor"),ey=Uv("borderTopColor"),ty=Uv("borderRightColor"),ny=Uv("borderBottomColor"),ry=Uv("borderLeftColor"),oy=Uv("outline",Vv),iy=Uv("outlineColor"),ay=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Fv(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:jv(t,e)});return Iv(e,e.borderRadius,n)}return null};ay.propTypes={},ay.filterProps=["borderRadius"],Gv(Yv,Kv,Xv,Jv,Zv,Qv,ey,ty,ny,ry,ay,oy,iy);const ly=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Fv(e.theme,"spacing",8),n=e=>({gap:jv(t,e)});return Iv(e,e.gap,n)}return null};ly.propTypes={},ly.filterProps=["gap"];const sy=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Fv(e.theme,"spacing",8),n=e=>({columnGap:jv(t,e)});return Iv(e,e.columnGap,n)}return null};sy.propTypes={},sy.filterProps=["columnGap"];const uy=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Fv(e.theme,"spacing",8),n=e=>({rowGap:jv(t,e)});return Iv(e,e.rowGap,n)}return null};uy.propTypes={},uy.filterProps=["rowGap"];function cy(e,t){return"grey"===t?t:e}Gv(ly,sy,uy,Mv({prop:"gridColumn"}),Mv({prop:"gridRow"}),Mv({prop:"gridAutoFlow"}),Mv({prop:"gridAutoColumns"}),Mv({prop:"gridAutoRows"}),Mv({prop:"gridTemplateColumns"}),Mv({prop:"gridTemplateRows"}),Mv({prop:"gridTemplateAreas"}),Mv({prop:"gridArea"}));function dy(e){return e<=1&&0!==e?100*e+"%":e}Gv(Mv({prop:"color",themeKey:"palette",transform:cy}),Mv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cy}),Mv({prop:"backgroundColor",themeKey:"palette",transform:cy}));const py=Mv({prop:"width",transform:dy}),fy=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Av[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:dy(t)}};return Iv(e,e.maxWidth,t)}return null};fy.filterProps=["maxWidth"];const my=Mv({prop:"minWidth",transform:dy}),hy=Mv({prop:"height",transform:dy}),gy=Mv({prop:"maxHeight",transform:dy}),by=Mv({prop:"minHeight",transform:dy});Mv({prop:"size",cssProperty:"width",transform:dy}),Mv({prop:"size",cssProperty:"height",transform:dy});Gv(py,fy,my,hy,gy,by,Mv({prop:"boxSizing"}));var vy={border:{themeKey:"borders",transform:Vv},borderTop:{themeKey:"borders",transform:Vv},borderRight:{themeKey:"borders",transform:Vv},borderBottom:{themeKey:"borders",transform:Vv},borderLeft:{themeKey:"borders",transform:Vv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ay},color:{themeKey:"palette",transform:cy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cy},backgroundColor:{themeKey:"palette",transform:cy},p:{style:Wv},pt:{style:Wv},pr:{style:Wv},pb:{style:Wv},pl:{style:Wv},px:{style:Wv},py:{style:Wv},padding:{style:Wv},paddingTop:{style:Wv},paddingRight:{style:Wv},paddingBottom:{style:Wv},paddingLeft:{style:Wv},paddingX:{style:Wv},paddingY:{style:Wv},paddingInline:{style:Wv},paddingInlineStart:{style:Wv},paddingInlineEnd:{style:Wv},paddingBlock:{style:Wv},paddingBlockStart:{style:Wv},paddingBlockEnd:{style:Wv},m:{style:Bv},mt:{style:Bv},mr:{style:Bv},mb:{style:Bv},ml:{style:Bv},mx:{style:Bv},my:{style:Bv},margin:{style:Bv},marginTop:{style:Bv},marginRight:{style:Bv},marginBottom:{style:Bv},marginLeft:{style:Bv},marginX:{style:Bv},marginY:{style:Bv},marginInline:{style:Bv},marginInlineStart:{style:Bv},marginInlineEnd:{style:Bv},marginBlock:{style:Bv},marginBlockStart:{style:Bv},marginBlockEnd:{style:Bv},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:ly},rowGap:{style:uy},columnGap:{style:sy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:dy},maxWidth:{style:fy},minWidth:{transform:dy},height:{transform:dy},maxHeight:{transform:dy},minHeight:{transform:dy},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const yy=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Lv(n,l)||{};if(u)return u(o);return Iv(o,t,(t=>{let n=Dv(c,s,t);return t===n&&"string"==typeof t&&(n=Dv(c,s,`${e}${"default"===t?"":su(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:vy;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=Rv(s,e(n,o,i,a));else{const e=Iv({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Rv(s,e):s[n]=t({sx:o,theme:i})}else s=Rv(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();yy.filterProps=["sx"];var xy=yy;function Sy(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const Ey=["breakpoints","palette","spacing","shape"];function Cy(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Yi(e,Ey),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Yi(e,Ev),i=Cv(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ui({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}(n),s=function(e=8){if(e.mui)return e;const t=zv({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=Zs({breakpoints:l,direction:"ltr",components:{},palette:Ui({mode:"light"},r),spacing:s,shape:Ui({},wv,i)},a);return u.applyStyles=Sy,u=t.reduce(((e,t)=>Zs(e,t)),u),u.unstable_sxConfig=Ui({},vy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return xy({sx:e,theme:this})},u}function wy(e=null){const t=y.useContext(Ls);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Ry=Cy();function Ay(e=Ry){return wy(e)}function Py({styles:e,themeId:t,defaultTheme:n={}}){const r=Ay(n),o="function"==typeof e?e(t&&r[t]||r):e;return Bi.jsx(xv,{styles:o})}const Iy=["sx"],Ly=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:vy;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Dy(e){const{sx:t}=e,n=Yi(e,Iy),{systemProps:r,otherProps:o}=Ly(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Xs(n)?Ui({},r,n):r}:Ui({},r,t),Ui({},o,{sx:i})}const My=["className","component"];const Ty=["ownerState"],Oy=["variants"],ky=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _y(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const qy=Cy(),Ny=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Fy({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function zy(e){return e?(t,n)=>n[e]:null}function jy(e,t){let{ownerState:n}=t,r=Yi(t,Ty);const o="function"==typeof e?e(Ui({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>jy(e,Ui({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Yi(o,Oy);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Ui({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(Ui({ownerState:n},r)):e.style))})),t}return o}function $y({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ay(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Vc(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function Hy(e,t=0,n=1){return Kc(e,t,n)}function By(e){if(e.type)return e;if("#"===e.charAt(0))return By(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Wi(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(Wi(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Wy(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Gy(e){let t="hsl"===(e=By(e)).type||"hsla"===e.type?By(function(e){e=By(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Wy({type:l,values:s})}(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 Vy(e,t){return e=By(e),t=Hy(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Wy(e)}function Uy(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 Yy(e){if(!Uy(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Yy(e[n])})),t}function Ky(e,t,n={clone:!0}){const r=n.clone?Ui({},e):e;return Uy(e)&&Uy(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Uy(t[o])&&o in e&&Uy(e[o])?r[o]=Ky(e[o],t[o],n):n.clone?r[o]=Uy(t[o])?Yy(t[o]):t[o]:r[o]=t[o])})),r}function Xy(e){if("string"!=typeof e)throw new Error(hv(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Jy(e){return e&&e.ownerDocument||document}function Zy(e){return Jy(e).defaultView||window}var Qy="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let ex=0;const tx=y["useId".toString()];function nx(e){if(void 0!==tx){const t=tx();return null!=e?e:t}return function(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect((()=>{null==t&&(ex+=1,n(`mui-${ex}`))}),[t]),r}(e)}function rx({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function ox(e){const t=y.useRef(e);return Qy((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function ix(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class ax{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ax}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let lx=!0,sx=!1;const ux=new ax,cx={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 dx(e){e.metaKey||e.altKey||e.ctrlKey||(lx=!0)}function px(){lx=!1}function fx(){"hidden"===this.visibilityState&&sx&&(lx=!0)}function mx(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return lx||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!cx[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function hx(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",dx,!0),t.addEventListener("mousedown",px,!0),t.addEventListener("pointerdown",px,!0),t.addEventListener("touchstart",px,!0),t.addEventListener("visibilitychange",fx,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!mx(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(sx=!0,ux.start(100,(()=>{sx=!1})),t.current=!1,!0)},ref:e}}function gx(e,t){const n=Ui({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ui({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Ui({},i),Object.keys(o).forEach((e=>{n[r][e]=gx(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const bx=e=>e;var vx=(()=>{let e=bx;return{configure(t){e=t},generate:t=>e(t),reset(){e=bx}}})();const yx={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 xx(e,t,n="Mui"){const r=yx[t];return r?`${n}-${r}`:`${vx.generate(e)}-${t}`}function Sx(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=xx(e,t,n)})),r}const Ex=["mode","contrastThreshold","tonalOffset"],Cx={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:lv.white,default:lv.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}},wx={text:{primary:lv.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:lv.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 Rx(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=By(e),t=Hy(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Wy(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=By(e),t=Hy(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 n=0;n<3;n+=1)e.values[n]*=1-t;return Wy(e)}(e.main,i)))}function Ax(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=vv(e,Ex),i=e.primary||function(e="light"){return"dark"===e?{main:cv[200],light:cv[50],dark:cv[400]}:{main:cv[700],light:cv[400],dark:cv[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:uv[200],light:uv[50],dark:uv[400]}:{main:uv[500],light:uv[300],dark:uv[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:sv[500],light:sv[300],dark:sv[700]}:{main:sv[700],light:sv[400],dark:sv[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:dv[400],light:dv[300],dark:dv[700]}:{main:dv[700],light:dv[500],dark:dv[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:pv[400],light:pv[300],dark:pv[700]}:{main:pv[800],light:pv[500],dark:pv[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:fv[400],light:fv[300],dark:fv[700]}:{main:"#ed6c02",light:fv[500],dark:fv[900]}}(t);function d(e){const t=function(e,t){const n=Gy(e),r=Gy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,wx.text.primary)>=n?wx.text.primary:Cx.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=bv({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(hv(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(hv(12,t?` (${t})`:"",JSON.stringify(e.main)));return Rx(e,"light",o,r),Rx(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:wx,light:Cx};return Ky(bv({common:bv({},lv),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:mv,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Px=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ix={textTransform:"uppercase"},Lx='"Roboto", "Helvetica", "Arial", sans-serif';function Dx(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Lx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=vv(n,Px),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return bv({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Lx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Ix),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ix),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ky(bv({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Mx(...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(",")}var Tx=["none",Mx(0,2,1,-1,0,1,1,0,0,1,3,0),Mx(0,3,1,-2,0,2,2,0,0,1,5,0),Mx(0,3,3,-2,0,3,4,0,0,1,8,0),Mx(0,2,4,-1,0,4,5,0,0,1,10,0),Mx(0,3,5,-1,0,5,8,0,0,1,14,0),Mx(0,3,5,-1,0,6,10,0,0,1,18,0),Mx(0,4,5,-2,0,7,10,1,0,2,16,1),Mx(0,5,5,-3,0,8,10,1,0,3,14,2),Mx(0,5,6,-3,0,9,12,1,0,3,16,2),Mx(0,6,6,-3,0,10,14,1,0,4,18,3),Mx(0,6,7,-4,0,11,15,1,0,4,20,3),Mx(0,7,8,-4,0,12,17,2,0,5,22,4),Mx(0,7,8,-4,0,13,19,2,0,5,24,4),Mx(0,7,9,-4,0,14,21,2,0,5,26,4),Mx(0,8,9,-5,0,15,22,2,0,6,28,5),Mx(0,8,10,-5,0,16,24,2,0,6,30,5),Mx(0,8,11,-5,0,17,26,2,0,6,32,5),Mx(0,9,11,-5,0,18,28,2,0,7,34,6),Mx(0,9,12,-6,0,19,29,2,0,7,36,6),Mx(0,10,13,-6,0,20,31,3,0,8,38,7),Mx(0,10,13,-6,0,21,33,3,0,8,40,7),Mx(0,10,14,-6,0,22,35,3,0,8,42,7),Mx(0,11,14,-7,0,23,36,3,0,9,44,8),Mx(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ox=["duration","easing","delay"],kx={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)"},_x={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qx(e){return`${Math.round(e)}ms`}function Nx(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Fx(e){const t=bv({},kx,e.easing),n=bv({},_x,e.duration);return bv({getAutoHeightDuration:Nx,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return vv(r,Ox),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:qx(o)} ${i} ${"string"==typeof a?a:qx(a)}`)).join(",")}},e,{easing:t,duration:n})}var zx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const jx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function $x(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=vv(e,jx);if(e.vars)throw new Error(hv(18));const l=Ax(r),s=Cy(e);let u=Ky(s,{mixins:(c=s.breakpoints,d=n,bv({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Tx.slice(),typography:Dx(l,i),transitions:Fx(o),zIndex:bv({},zx),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Ky(u,a),u=t.reduce(((e,t)=>Ky(e,t)),u),u.unstable_sxConfig=bv({},vy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return xy({sx:e,theme:this})},u}var Hx=$x();function Bx(){const e=Ay(Hx);return e[gv]||e}function Wx({props:e,name:t}){return $y({props:e,name:t,defaultTheme:Hx,themeId:gv})}const Gx=e=>_y(e)&&"classes"!==e,Vx=_y,Ux=function(e={}){const{themeId:t,defaultTheme:n=qy,rootShouldForwardProp:r=_y,slotShouldForwardProp:o=_y}=e,i=e=>xy(Ui({},e,{theme:Fy(Ui({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=zy(Ny(s))}=a,p=Yi(a,ky),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=_y;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Sv(e,Ui({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Xs(e)?r=>jy(e,Ui({},r,{theme:Fy({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=Fy(Ui({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=jy(n,Ui({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=Fy(Ui({},e,{defaultTheme:n,themeId:t}));return jy({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},Ui({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:gv,defaultTheme:Hx,rootShouldForwardProp:Gx});var Yx=Ux;var Kx=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Xx(e){return xx("MuiSvgIcon",e)}Sx("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Jx=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Zx=Yx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Xy(n.color)}`],t[`fontSize${Xy(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"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==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Qx=y.forwardRef((function(e,t){const n=Wx({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=vv(n,Jx),f=y.isValidElement(r)&&"svg"===r.type,m=bv({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return xd({root:["root","inherit"!==t&&`color${Xy(t)}`,`fontSize${Xy(n)}`]},Xx,r)})(m);return Bi.jsxs(Zx,bv({as:a,className:bc(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?Bi.jsx("title",{children:c}):null]}))}));Qx.muiName="SvgIcon";var eS=Qx;const tS=e=>e.scrollTop;function nS(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function rS(e){return xx("MuiPaper",e)}Sx("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 oS=["className","component","elevation","square","variant"],iS=Yx("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return bv({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&&bv({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Vy("#fff",Kx(t.elevation))}, ${Vy("#fff",Kx(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var aS=y.forwardRef((function(e,t){const n=Wx({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=vv(n,oS),u=bv({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return xd({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},rS,o)})(u);return Bi.jsx(iS,bv({as:o,ownerState:u,className:bc(c.root,r),ref:t},s))}));function lS(e){return"string"==typeof e}function sS(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function uS(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const cS=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function dS(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Yi(e,cS),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=bc(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Ui({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Ui({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=sS(Ui({},o,r)),l=uS(r),s=uS(o),u=t(a),c=bc(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Ui({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Ui({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Ui({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||lS(e)?t:Ui({},t,{ownerState:Ui({},t.ownerState,n)})}(n,Ui({},s,{ref:id(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var pS=Sx("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const fS=["center","classes","className"];let mS,hS,gS,bS,vS=e=>e;const yS=js(mS||(mS=vS`
121
121
  0% {
122
122
  transform: scale(0);
123
123
  opacity: 0.1;
@@ -127,7 +127,7 @@ function xv(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldFo
127
127
  transform: scale(1);
128
128
  opacity: 0.3;
129
129
  }
130
- `)),yS=js(mS||(mS=bS`
130
+ `)),xS=js(hS||(hS=vS`
131
131
  0% {
132
132
  opacity: 1;
133
133
  }
@@ -135,7 +135,7 @@ function xv(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldFo
135
135
  100% {
136
136
  opacity: 0;
137
137
  }
138
- `)),xS=js(hS||(hS=bS`
138
+ `)),SS=js(gS||(gS=vS`
139
139
  0% {
140
140
  transform: scale(1);
141
141
  }
@@ -147,7 +147,7 @@ function xv(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldFo
147
147
  100% {
148
148
  transform: scale(1);
149
149
  }
150
- `)),SS=Ux("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ES=Ux((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=bc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=bc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Bi.jsx("span",{className:p,style:f,children:Bi.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(gS||(gS=bS`
150
+ `)),ES=Yx("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),CS=Yx((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=bc(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=bc(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),Bi.jsx("span",{className:p,style:f,children:Bi.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(bS||(bS=vS`
151
151
  opacity: 0;
152
152
  position: absolute;
153
153
 
@@ -190,4 +190,4 @@ function xv(e,t){let n;return n=t?Ns(e).withConfig({displayName:t.label,shouldFo
190
190
  animation-iteration-count: infinite;
191
191
  animation-delay: 200ms;
192
192
  }
193
- `),dS.rippleVisible,vS,550,(({theme:e})=>e.transitions.easing.easeInOut),dS.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),dS.child,dS.childLeaving,yS,550,(({theme:e})=>e.transitions.easing.easeInOut),dS.childPulsate,xS,(({theme:e})=>e.transitions.easing.easeInOut));var CS=y.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=bv(n,pS),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),m=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Bi.jsx(ES,{classes:{ripple:bc(o.ripple,dS.ripple),rippleVisible:bc(o.rippleVisible,dS.rippleVisible),ripplePulsate:bc(o.ripplePulsate,dS.ripplePulsate),child:bc(o.child,dS.child),childLeaving:bc(o.childLeaving,dS.childLeaving),childPulsate:bc(o.childPulsate,dS.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||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 l=a?null:m.current,s=l?l.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(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Bi.jsx(SS,gv({className:bc(dS.root,o.root,i),ref:m},a,{children:Bi.jsx(pm,{component:null,exit:!0,children:l})}))}));function wS(e){return yx("MuiButtonBase",e)}var RS=xx("MuiButtonBase",["root","disabled","focusVisible"]);const AS=["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"],PS=Ux("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"},[`&.${RS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),IS=y.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:I=0,TouchRippleProps:D,touchRippleRef:L,type:M}=n,O=bv(n,AS),T=y.useRef(null),k=y.useRef(null),_=ox(k,L),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=mx(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),T.current.focus()}})),[]);const[H,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=H&&!u&&!s;function G(e,t,n=c){return rx((r=>{t&&t(r);return!n&&k.current&&k.current[e](r),!0}))}y.useEffect((()=>{j&&d&&!u&&H&&k.current.pulsate()}),[u,d,j,H]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=G("start",P),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=rx((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=rx((e=>{d&&!re.current&&j&&k.current&&" "===e.key&&(re.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=rx((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(re.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(O.href||O.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(O.href||O.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=ox(t,z,T),ue=gv({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=xd({root:["root",t&&"disabled",n&&"focusVisible"]},wS,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Bi.jsxs(PS,gv({as:ae,className:bc(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:M},le,O,{children:[i,W?Bi.jsx(CS,gv({ref:_,center:o},D)):null]}))}));var DS=IS;function LS(e){return yx("MuiTypography",e)}xx("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const MS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],OS=Ux("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Ky(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>gv({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}))),TS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},kS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_S=y.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiTypography"}),r=(e=>kS[e]||e)(n.color),o=Dy(gv({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=TS}=o,f=bv(o,MS),m=gv({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||TS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return xd({root:["root",i,"inherit"!==e.align&&`align${Ky(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},LS,a)})(m);return Bi.jsx(OS,gv({as:h,ref:t,ownerState:m,className:bc(g.root,a)},f))}));var qS=_S;const NS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function FS(e){const t=[],n=[];return Array.from(e.querySelectorAll(NS)).forEach(((e,r)=>{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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function zS(){return!0}function jS(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=FS,isEnabled:a=zS,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=id(t.ref,m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=td(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!m.current)return;const e=td(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&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 n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Bi.jsxs(y.Fragment,{children:[Bi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Bi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const $S=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=id(y.isValidElement(n)?n.ref:null,t);if(Yc((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Yc((()=>{if(i&&!o)return rd(t,i),()=>{rd(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Bi.jsx(y.Fragment,{children:n})}return Bi.jsx(y.Fragment,{children:i?F.createPortal(n,i):i})}));function HS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function BS(e){return parseInt(nd(e).getComputedStyle(e).paddingRight,10)||0}function WS(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&HS(e,o)}))}function GS(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function VS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=td(e);return t.body===e?nd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yd(td(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${BS(r)+e}px`;const t=td(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${BS(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=td(r).body;else{const t=r.parentElement,n=nd(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const US=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&HS(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);WS(t,e.mount,e.modalRef,r,!0);const o=GS(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=GS(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=VS(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=GS(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&HS(e.modalRef,t),WS(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&HS(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function YS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=US,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=id(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=od((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||td(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=od((e=>{f.current=e,e&&(c&&w()?E():m.current&&HS(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const P=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=lS(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ui({},n,t);return Ui({role:"presentation"},r,{onKeyDown:P(r),ref:h})},getBackdropProps:(e={})=>Ui({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Qc((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Qc((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const KS=["onChange","maxRows","minRows","style","value"];function XS(e){return parseInt(e,10)||0}const JS={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ZS(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const QS=y.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Yi(e,KS),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=id(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,n=nd(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=XS(n.paddingBottom)+XS(n.paddingTop),s=XS(n.borderBottomWidth)+XS(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=y.useCallback((()=>{const e=h();ZS(e)||m((t=>g(t,e)))}),[h]);Yc((()=>{const e=()=>{p.current=0,(()=>{const e=h();ZS(e)||F.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=ed(e),n=u.current,r=nd(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),Yc((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return Bi.jsxs(y.Fragment,{children:[Bi.jsx("textarea",Ui({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Ui({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Bi.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Ui({},JS,i,{paddingTop:0,paddingBottom:0})})]})}));function eE({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var tE=y.createContext(void 0);function nE(){return y.useContext(tE)}function rE(e){return Bi.jsx(Ay,gv({},e,{defaultTheme:$x,themeId:hv}))}function oE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function iE(e,t=!1){return e&&(oE(e.value)&&""!==e.value||t&&oE(e.defaultValue)&&""!==e.defaultValue)}function aE(e){return yx("MuiInputBase",e)}var lE=xx("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const sE=["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"],uE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ky(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},cE=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},dE=Ux("div",{name:"MuiInputBase",slot:"Root",overridesResolver:uE})((({theme:e,ownerState:t})=>gv({},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",[`&.${lE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&gv({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),pE=Ux("input",{name:"MuiInputBase",slot:"Input",overridesResolver:cE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=gv({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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:n?.42:.5};return gv({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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${lE.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},[`&.${lE.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"})})),fE=Bi.jsx(rE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),mE=y.forwardRef((function(e,t){var n;const r=Bx({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:P,onKeyDown:I,onKeyUp:D,placeholder:L,readOnly:M,renderSuffix:O,rows:T,slotProps:k={},slots:_={},startAdornment:q,type:N="text",value:F}=r,z=bv(r,sE),j=null!=b.value?b.value:F,{current:$}=y.useRef(null!=j),H=y.useRef(),B=y.useCallback((e=>{}),[]),W=ox(H,v,b.ref,B),[G,V]=y.useState(!1),U=nE(),Y=eE({props:r,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:G,y.useEffect((()=>{!U&&d&&G&&(V(!1),w&&w())}),[U,d,G,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{iE(e)?K&&K():X&&X()}),[K,X]);Zy((()=>{$&&J({value:j})}),[j,J,$]);y.useEffect((()=>{J(H.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=gv(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:x,minRows:S},Q),Z=QS);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=gv({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return xd({root:["root",`color${Ky(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Ky(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},aE,t)})(ee),ne=_.root||s.Root||dE,re=k.root||u.root||{},oe=_.input||s.Input||pE;return Q=gv({},Q,null!=(n=k.input)?n:u.input),Bi.jsxs(y.Fragment,{children:[!p&&fE,Bi.jsxs(ne,gv({},re,!aS(ne)&&{ownerState:gv({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:bc(te.root,re.className,l,M&&"MuiInputBase-readOnly"),children:[q,Bi.jsx(tE.Provider,{value:null,children:Bi.jsx(oe,gv({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:L,readOnly:M,required:Y.required,rows:T,value:j,onKeyDown:I,onKeyUp:D,type:N},Q,!aS(oe)&&{as:Z,ownerState:gv({},ee,Q.ownerState)},{ref:W,className:bc(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(mv(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),f,O?O(gv({},Y,{startAdornment:q})):null]}))]})}));var hE=mE;function gE(e){return yx("MuiInput",e)}var bE=gv({},lE,xx("MuiInput",["root","underline","input"]));function vE(e){return yx("MuiOutlinedInput",e)}var yE=gv({},lE,xx("MuiOutlinedInput",["root","notchedOutline","input"]));function xE(e){return yx("MuiFilledInput",e)}var SE=gv({},lE,xx("MuiFilledInput",["root","underline","input"])),EE=function(e,t){function n(n,r){return Bi.jsx(Qx,gv({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Qx.muiName,y.memo(y.forwardRef(n))}(Bi.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const CE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wE={entering:{opacity:1},entered:{opacity:1}},RE=y.forwardRef((function(e,t){const n=Hx(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:b=am}=e,v=bv(e,CE),x=y.useRef(null),S=ox(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{eS(e);const r=tS({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),A=E(m),P=E((e=>{const t=tS({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return Bi.jsx(b,gv({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:P,onExited:I,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,gv({style:gv({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},wE[e],h,a.props.style),ref:S},t))}))}));var AE=RE;function PE(e){return yx("MuiBackdrop",e)}xx("MuiBackdrop",["root","invisible"]);const IE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],DE=Ux("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>gv({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"}))),LE=y.forwardRef((function(e,t){var n,r,o;const i=Bx({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=AE,transitionDuration:g}=i,b=bv(i,IE),v=gv({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return xd({root:["root",n&&"invisible"]},PE,t)})(v),x=null!=(n=f.root)?n:c.root;return Bi.jsx(h,gv({in:p,timeout:g},b,{children:Bi.jsx(DE,gv({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:bc(y.root,l,null==x?void 0:x.className),ownerState:gv({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var ME=LE;var OE=xx("MuiBox",["root"]);const TE=jx(),kE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=xv("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(yy);return y.forwardRef((function(e,a){const l=Ry(n),s=Dy(e),{className:u,component:c="div"}=s,d=Yi(s,Ly);return Bi.jsx(i,Ui({as:c,ref:a,className:bc(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:hv,defaultTheme:TE,defaultClassName:OE.root,generateClassName:bx.generate});var _E=kE;function qE(e){return yx("MuiButton",e)}var NE=xx("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var FE=y.createContext({});var zE=y.createContext(void 0);const jE=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$E=e=>gv({},"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}}),HE=Ux(DS,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ky(n.color)}`],t[`size${Ky(n.size)}`],t[`${n.variant}Size${Ky(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;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 gv({},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":gv({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gy(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})`:Gy(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})`:Gy(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":gv({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${NE.focusVisible}`]:gv({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${NE.disabled}`]:gv({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 ${Gy(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,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"},[`&.${NE.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${NE.disabled}`]:{boxShadow:"none"}})),BE=Ux("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ky(n.size)}`]]}})((({ownerState:e})=>gv({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},$E(e)))),WE=Ux("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ky(n.size)}`]]}})((({ownerState:e})=>gv({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},$E(e)))),GE=y.forwardRef((function(e,t){const n=y.useContext(FE),r=y.useContext(zE),o=Bx({props:hx(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=bv(o,jE),S=gv({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return gv({},a,xd({root:["root",i,`${i}${Ky(t)}`,`size${Ky(o)}`,`${i}Size${Ky(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Ky(o)}`],endIcon:["endIcon",`iconSize${Ky(o)}`]},qE,a))})(S),C=g&&Bi.jsx(BE,{className:E.startIcon,ownerState:S,children:g}),w=p&&Bi.jsx(WE,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return Bi.jsxs(HE,gv({ownerState:S,className:bc(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:bc(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var VE=GE;function UE(e){return yx("MuiModal",e)}xx("MuiModal",["root","hidden","backdrop"]);const YE=["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"],KE=Ux("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>gv({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),XE=Ux(ME,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JE=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Bx({name:"MuiModal",props:e}),{BackdropComponent:u=XE,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:I,slotProps:D,slots:L}=s,M=bv(s,YE),O=gv({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:T,getBackdropProps:k,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=YS(gv({},O,{rootRef:t})),j=gv({},O,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return xd({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},UE,r)})(j),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=_();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==L?void 0:L.root)?r:g.Root)?n:KE,W=null!=(o=null!=(i=null==L?void 0:L.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==D?void 0:D.root)?a:b.root,V=null!=(l=null==D?void 0:D.backdrop)?l:b.backdrop,U=cS({elementType:B,externalSlotProps:G,externalForwardedProps:M,getSlotProps:T,additionalProps:{ref:t,as:h},ownerState:j,className:bc(d,null==G?void 0:G.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),Y=cS({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(gv({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:bc(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return A||I||z&&!F?Bi.jsx($S,{ref:q,container:m,disablePortal:E,children:Bi.jsxs(B,gv({},U,{children:[!R&&u?Bi.jsx(W,gv({},Y)):null,Bi.jsx(jS,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,H)})]}))}):null}));var ZE=JE;function QE(e){return yx("MuiDivider",e)}var eC=xx("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const tC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],nC=Ux("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>gv({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)`:Gy(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})=>gv({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>gv({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>gv({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>gv({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),rC=Ux("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>gv({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)`}))),oC=y.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=bv(n,tC),m=gv({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return xd({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},QE,r)})(m);return Bi.jsx(nC,gv({as:a,className:bc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Bi.jsx(rC,{className:h.wrapper,ownerState:m,children:o}):null}))}));oC.muiSkipListHighlight=!0;var iC=oC;const aC=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],lC=Ux(dE,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...uE(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return gv({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}},[`&.${SE.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${SE.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.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"},[`&.${SE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${SE.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(.${SE.disabled}, .${SE.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${SE.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&gv({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}))})),sC=Ux(pE,{name:"MuiFilledInput",slot:"Input",overridesResolver:cE})((({theme:e,ownerState:t})=>gv({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}))),uC=y.forwardRef((function(e,t){var n,r,o,i;const a=Bx({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=bv(a,aC),g=gv({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return gv({},t,xd({root:["root",!n&&"underline"],input:["input"]},xE,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Yy(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:lC,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:sC;return Bi.jsx(hE,gv({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));uC.muiName="Input";var cC=uC;const dC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pC(e){return`scale(${e}, ${e**2})`}const fC={entering:{opacity:1,transform:pC(1)},entered:{opacity:1,transform:"none"}},mC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),hC=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=am}=e,g=bv(e,dC),b=y.useRef(),v=y.useRef(),x=Hx(),S=y.useRef(null),E=ox(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{eS(e);const{duration:n,delay:r,easing:o}=tS({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:mC?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),A=C(s),P=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=tS({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:mC?o:.666*o,delay:mC?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=pC(.75),c&&c(e)})),D=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Bi.jsx(h,gv({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:I,onExited:D,onExiting:P,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,gv({style:gv({opacity:0,transform:pC(.75),visibility:"exited"!==e||a?void 0:"hidden"},fC[e],f,o.props.style),ref:E},t))}))}));hC.muiSupportAuto=!0;var gC=hC;const bC=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],vC=Ux(dE,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...uE(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),gv({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"},[`&.${bE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bE.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${bE.disabled}, .${bE.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${bE.disabled}:before`]:{borderBottomStyle:"dotted"}})})),yC=Ux(pE,{name:"MuiInput",slot:"Input",overridesResolver:cE})({}),xC=y.forwardRef((function(e,t){var n,r,o,i;const a=Bx({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=bv(a,bC),b=(e=>{const{classes:t,disableUnderline:n}=e;return gv({},t,xd({root:["root",!n&&"underline"],input:["input"]},gE,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Yy(null!=f?f:u,v):v,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:vC,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:yC;return Bi.jsx(hE,gv({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));xC.muiName="Input";var SC=xC;function EC(e){return yx("MuiLink",e)}var CC=xx("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const wC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var RC=({theme:e,ownerState:t})=>{const n=(e=>wC[e]||e)(t.color),r=Iv(e,`palette.${n}`,!1)||t.color,o=Iv(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Gy(r,.4)};const AC=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],PC=Ux(qS,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Ky(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>gv({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&gv({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:RC({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"},[`&.${CC.focusVisible}`]:{outline:"auto"}}))),IC=y.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=bv(n,AC),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=mx(),[b,v]=y.useState(!1),x=ox(t,g),S=gv({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return xd({root:["root",`underline${Ky(o)}`,"button"===n&&"button",r&&"focusVisible"]},EC,t)})(S);return Bi.jsx(PC,gv({color:o,className:bc(E.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(wC).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var DC=IC;var LC=y.createContext({});function MC(e){return yx("MuiList",e)}xx("MuiList",["root","padding","dense","subheader"]);const OC=["children","className","component","dense","disablePadding","subheader"],TC=Ux("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>gv({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var kC=y.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=bv(n,OC),c=y.useMemo((()=>({dense:a})),[a]),d=gv({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xd({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},MC,t)})(d);return Bi.jsx(LC.Provider,{value:c,children:Bi.jsxs(TC,gv({as:i,className:bc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function _C(e){return yx("MuiListItemIcon",e)}var qC=xx("MuiListItemIcon",["root","alignItemsFlexStart"]);const NC=["className"],FC=Ux("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>gv({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var zC=y.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=bv(n,NC),i=gv({},n,{alignItems:y.useContext(LC).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return xd({root:["root","flex-start"===t&&"alignItemsFlexStart"]},_C,n)})(i);return Bi.jsx(FC,gv({className:bc(a.root,r),ownerState:i,ref:t},o))}));var jC=xx("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const $C=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function HC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function BC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function WC(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function GC(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&WC(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var VC=y.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=bv(e,$C),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Zy((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Xy(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=ox(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Bi.jsx(kC,gv({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Xy(t).activeElement;if("ArrowDown"===n)e.preventDefault(),GC(t,r,s,l,HC);else if("ArrowUp"===n)e.preventDefault(),GC(t,r,s,l,BC);else if("Home"===n)e.preventDefault(),GC(t,null,s,l,HC);else if("End"===n)e.preventDefault(),GC(t,null,s,l,BC);else if(1===n.length){const o=f.current,i=n.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 s=r&&!o.repeating&&WC(r,o);o.previousKeyMatched&&(s||GC(t,r,!1,l,HC,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function UC(e){return yx("MuiPopover",e)}xx("MuiPopover",["root","paper"]);const YC=["onEntering"],KC=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],XC=["slotProps"];function JC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ZC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function QC(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function ew(e){return"function"==typeof e?e():e}const tw=Ux(ZE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nw=Ux(iS,{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});var rw=y.forwardRef((function(e,t){var n,r,o;const i=Bx({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=gC,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=bv(i.TransitionProps,YC),P=bv(i,KC),I=null!=(n=null==x?void 0:x.paper)?n:b,D=y.useRef(),L=ox(D,I.ref),M=gv({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),O=(e=>{const{classes:t}=e;return xd({root:["root"],paper:["paper"]},UC,t)})(M),T=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=ew(l),t=(e&&1===e.nodeType?e:Xy(D.current).body).getBoundingClientRect();return{top:t.top+JC(t,s.vertical),left:t.left+ZC(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=y.useCallback((e=>({vertical:JC(e,S.vertical),horizontal:ZC(e,S.horizontal)})),[S.horizontal,S.vertical]),_=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===c)return{top:null,left:null,transformOrigin:QC(n)};const r=T();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Jy(ew(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:QC(n)}}),[l,c,T,k,h]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{F()})),t=Jy(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?Xy(ew(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:tw,H=null!=(o=null==v?void 0:v.paper)?o:nw,B=cS({elementType:H,externalSlotProps:gv({},I,{style:q?I.style:gv({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:M,className:bc(O.paper,null==I?void 0:I.className)}),W=cS({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:M,className:bc(O.root,p)}),{slotProps:G}=W,V=bv(W,XC);return Bi.jsx($,gv({},V,!aS($)&&{slotProps:G,disableScrollLock:R},{children:Bi.jsx(E,gv({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},A,{children:Bi.jsx(H,gv({},B,{children:d}))}))}))}));function ow(e){return yx("MuiMenu",e)}xx("MuiMenu",["root","paper","list"]);const iw=["onEntering"],aw=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],lw={vertical:"top",horizontal:"right"},sw={vertical:"top",horizontal:"left"},uw=Ux(rw,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cw=Ux(nw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),dw=Ux(VC,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var pw=y.forwardRef((function(e,t){var n,r;const o=Bx({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=bv(o.TransitionProps,iw),S=bv(o,aw),E=Hx(),C="rtl"===E.direction,w=gv({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return xd({root:["root"],paper:["paper"],list:["list"]},ow,t)})(w),A=i&&!s&&d,P=y.useRef(null);let I=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const D=null!=(n=b.paper)?n:cw,L=null!=(r=v.paper)?r:p,M=cS({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),O=cS({elementType:D,externalSlotProps:L,ownerState:w,className:R.paper});return Bi.jsx(uw,gv({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?lw:sw,slots:{paper:D,root:b.root},slotProps:{root:M,paper:O},open:d,ref:t,transitionDuration:m,TransitionProps:gv({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:w},S,{classes:f,children:Bi.jsx(dw,gv({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===I||s),autoFocusItem:A,variant:g},u,{className:bc(R.list,u.className),children:a}))}))}));function fw(e){return yx("MuiMenuItem",e)}var mw=xx("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const hw=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],gw=Ux(DS,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>gv({},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"}},[`&.${mw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${mw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${mw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gy(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})`:Gy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${mw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${eC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${eC.inset}`]:{marginLeft:52},[`& .${jC.root}`]:{marginTop:0,marginBottom:0},[`& .${jC.inset}`]:{paddingLeft:36},[`& .${qC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&gv({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${qC.root} svg`]:{fontSize:"1.25rem"}}))));var bw=y.forwardRef((function(e,t){const n=Bx({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=bv(n,hw),f=y.useContext(LC),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);Zy((()=>{r&&h.current&&h.current.focus()}),[r]);const g=gv({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return gv({},a,xd({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},fw,a))})(n),v=ox(h,t);let x;return n.disabled||(x=void 0!==c?c:-1),Bi.jsx(LC.Provider,{value:m,children:Bi.jsx(gw,gv({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:bc(b.focusVisible,s),className:bc(b.root,d)},p,{ownerState:g,classes:b}))})}));function vw(e){return yx("MuiNativeSelect",e)}var yw=xx("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const xw=["className","disabled","error","IconComponent","inputRef","variant"],Sw=({ownerState:e,theme:t})=>gv({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":gv({},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"},[`&.${yw.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}}),Ew=Ux("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wx,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${yw.multiple}`]:t.multiple}]}})(Sw),Cw=({ownerState:e,theme:t})=>gv({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${yw.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ww=Ux("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ky(n.variant)}`],n.open&&t.iconOpen]}})(Cw),Rw=y.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=bv(e,xw),u=gv({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return xd({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ky(n)}`,i&&"iconOpen",r&&"disabled"]},vw,t)})(u);return Bi.jsxs(y.Fragment,{children:[Bi.jsx(Ew,gv({ownerState:u,className:bc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Bi.jsx(ww,{as:i,ownerState:u,className:c.icon})]})}));var Aw,Pw=Rw;const Iw=["children","classes","className","label","notched"],Dw=Ux("fieldset",{shouldForwardProp:Wx})({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%"}),Lw=Ux("legend",{shouldForwardProp:Wx})((({ownerState:e,theme:t})=>gv({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&&gv({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 Mw=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ow=Ux(dE,{shouldForwardProp:e=>Wx(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:uE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return gv({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${yE.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yE.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${yE.focused} .${yE.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${yE.error} .${yE.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${yE.disabled} .${yE.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&gv({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Tw=Ux((function(e){const{className:t,label:n,notched:r}=e,o=bv(e,Iw),i=null!=n&&""!==n,a=gv({},e,{notched:r,withLabel:i});return Bi.jsx(Dw,gv({"aria-hidden":!0,className:t,ownerState:a},o,{children:Bi.jsx(Lw,{ownerState:a,children:i?Bi.jsx("span",{children:n}):Aw||(Aw=Bi.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}})),kw=Ux(pE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:cE})((({theme:e,ownerState:t})=>gv({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}))),_w=y.forwardRef((function(e,t){var n,r,o,i,a;const l=Bx({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=bv(l,Mw),b=(e=>{const{classes:t}=e;return gv({},t,xd({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vE,t))})(l),v=nE(),x=eE({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=gv({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(n=null!=(r=m.root)?r:s.Root)?n:Ow,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:kw;return Bi.jsx(hE,gv({slots:{root:E,input:C},renderSuffix:e=>Bi.jsx(Tw,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Bi.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:gv({},b,{notchedOutline:null})}))}));_w.muiName="Input";var qw=_w;function Nw(e){return yx("MuiSelect",e)}var Fw,zw=xx("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const jw=["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"],$w=Ux("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${zw.select}`]:t.select},{[`&.${zw.select}`]:t[n.variant]},{[`&.${zw.error}`]:t.error},{[`&.${zw.multiple}`]:t.multiple}]}})(Sw,{[`&.${zw.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Hw=Ux("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ky(n.variant)}`],n.open&&t.iconOpen]}})(Cw),Bw=Ux("input",{shouldForwardProp:e=>Gx(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 Ww(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Gw(e){return null==e||"string"==typeof e&&!e.trim()}const Vw=y.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:P,renderValue:I,SelectDisplayProps:D={},tabIndex:L,value:M,variant:O="standard"}=e,T=bv(e,jw),[k,_]=nx({controlled:M,default:c,name:"Select"}),[q,N]=nx({controlled:A,default:u,name:"Select"}),F=y.useRef(null),z=y.useRef(null),[j,$]=y.useState(null),{current:H}=y.useRef(null!=A),[B,W]=y.useState(),G=ox(t,h),V=y.useCallback((e=>{z.current=e,e&&$(e)}),[]),U=null==j?void 0:j.parentNode;y.useImperativeHandle(G,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),y.useEffect((()=>{u&&q&&j&&!H&&(W(a?null:U.clientWidth),z.current.focus())}),[j,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Xy(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),H||(W(a?null:U.clientWidth),N(e))},K=y.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==n&&(_(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),E(o,e)}v||Y(!1,t)}},J=null!==j&&q;let Z,Q;delete T["aria-invalid"];const ee=[];let te=!1;(iE({value:k})||p)&&(I?Z=I(k):te=!0);const ne=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(mv(2));t=k.some((t=>Ww(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Ww(k,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=B;!a&&H&&j&&(oe=U.clientWidth),re=void 0!==L?L:d?null:0;const ie=D.id||(x?`mui-component-select-${x}`:void 0),ae=gv({},e,{variant:O,value:k,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return xd({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ky(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Nw,t)})(ae),se=gv({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=tx();return Bi.jsxs(y.Fragment,{children:[Bi.jsx($w,gv({ref:V,tabIndex:re,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":r,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:x}}),S(e))},onFocus:w},D,{ownerState:ae,className:bc(D.className,le.select,s),id:ie,children:Gw(Z)?Fw||(Fw=Bi.jsx("span",{className:"notranslate",children:"​"})):Z})),Bi.jsx(Bw,gv({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},T)),Bi.jsx(Hw,{as:m,className:le.icon,ownerState:ae}),Bi.jsx(pw,gv({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:gv({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:gv({},b.slotProps,{paper:gv({},se,{style:gv({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var Uw=Vw;const Yw=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Kw=["root"],Xw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Wx(e)&&"variant"!==e,slot:"Root"},Jw=Ux(SC,Xw)(""),Zw=Ux(qw,Xw)(""),Qw=Ux(cC,Xw)(""),eR=y.forwardRef((function(e,t){const n=Bx({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=EE,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=bv(n,Yw),A=b?Pw:Uw,P=eE({props:n,muiFormControl:nE(),states:["variant","error"]}),I=P.variant||w,D=gv({},n,{variant:I,classes:i}),L=(e=>{const{classes:t}=e;return t})(D),M=bv(L,Kw),O=d||{standard:Bi.jsx(Jw,{ownerState:D}),outlined:Bi.jsx(Zw,{label:f,ownerState:D}),filled:Bi.jsx(Qw,{ownerState:D})}[I],T=ox(t,O.ref);return Bi.jsx(y.Fragment,{children:y.cloneElement(O,gv({inputComponent:A,inputProps:gv({children:o,error:P.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:gv({id:c},C)},p,{classes:p?Yy(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:T,className:bc(O.props.className,a,L.root)},!d&&{variant:I},R))})}));eR.muiName="Select";var tR=eR,nR=(e={})=>x.createElement(ev,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Nb.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const rR={MuiAccordion:{styleOverrides:{root:{backgroundColor:Nb.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Nb.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(Jb,{"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 ${Nb.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Nb.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`,borderRadius:Hb,backgroundColor:Nb.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 ${Nb.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Nb.WHITE,color:Nb.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:Hb},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Nb.GREYSCALE_0_15,backgroundColor:Nb.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Nb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Nb.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Nb.GREEN_PALE},"&:active":{backgroundColor:Nb.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Nb.GREEN_PALE,boxShadow:`0 0 0 3px ${Gy(Nb.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Nb.BLUE_PALE},"&:active":{backgroundColor:Nb.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Nb.BLUE_PALE,boxShadow:`0 0 0 3px ${Gy(Nb.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:Hb,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Nb.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Nb.GREYSCALE_0_15,backgroundColor:Nb.GREYSCALE_100_60,"&:active":{backgroundColor:Nb.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Nb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Nb.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Nb.PURPLE,"&.Mui-focusVisible":{borderColor:Nb.PURPLE,boxShadow:`0 0 0 3px ${Gy(Nb.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Nb.GREEN,"&.Mui-focusVisible":{borderColor:Nb.GREEN,boxShadow:`0 0 0 3px ${Gy(Nb.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Nb.BLUE,"&.Mui-focusVisible":{borderColor:Nb.BLUE,boxShadow:`0 0 0 3px ${Gy(Nb.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Nb.ORANGE,"&.Mui-focusVisible":{borderColor:Nb.ORANGE,boxShadow:`0 0 0 3px ${Gy(Nb.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Nb.RED,"&.Mui-focusVisible":{borderColor:Nb.RED,boxShadow:`0 0 0 3px ${Gy(Nb.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Nb.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Nb.PURPLE_PALE},"&:active":{backgroundColor:Nb.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Nb.PURPLE_PALE,boxShadow:`0 0 0 3px ${Gy(Nb.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Nb.GREEN_PALE},"&:active":{backgroundColor:Nb.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Nb.GREEN_PALE,boxShadow:`0 0 0 3px ${Gy(Nb.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Nb.BLUE_PALE},"&:active":{backgroundColor:Nb.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Nb.BLUE_PALE,boxShadow:`0 0 0 3px ${Gy(Nb.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Nb.ORANGE_PALE},"&:active":{backgroundColor:Nb.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Nb.ORANGE_PALE,boxShadow:`0 0 0 3px ${Gy(Nb.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Nb.RED_PALE},"&:active":{backgroundColor:Nb.RED_DARK},"&.Mui-focusVisible":{borderColor:Nb.RED_PALE,boxShadow:`0 0 0 3px ${Gy(Nb.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:Nb.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Nb.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Hb,boxShadow:`inset 0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(Qb,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Fb,borderRadius:Hb,color:Nb.TEXT_PRIMARY,backgroundColor:Nb.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Nb.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Nb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Nb.GREYSCALE_0_05,color:Nb.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Nb.GREEN,borderColor:Nb.GREEN},"&.MuiChip-outlinedInfo":{color:Nb.BLUE,borderColor:Nb.BLUE},"&.MuiChip-outlinedWarning":{color:Nb.ORANGE,borderColor:Nb.ORANGE},"&.MuiChip-outlinedError":{color:Nb.RED,borderColor:Nb.RED}},outlined:{border:`solid 1px ${Nb.GREYSCALE_0_15}`,backgroundColor:Nb.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Hb,boxShadow:"none",backgroundColor:Nb.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Nb.GREEN,borderColor:Nb.GREEN},outlinedSecondary:{color:Nb.BLUE,borderColor:Nb.BLUE},label:{fontFamily:Ub.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(Qb,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(Jb,{"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:Hb},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Hb,fontSize:zb,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Nb.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Nb.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Nb.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Nb.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Nb.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Hb,border:`solid 1px ${Nb.GREYSCALE_0_15}`,color:Nb.GREYSCALE_0_60,marginRight:0,width:$b,height:$b},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Nb.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Hb,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Nb.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:zb}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Fb,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Nb.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Nb.GREYSCALE_25,fontSize:Fb,fontFamily:Ub.FONT_FAMILY,fontWeight:Gb,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Nb.TEXT_PRIMARY},"&.Mui-error":{color:Nb.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Nb.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Wb,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Nb.TEXT_SECONDARY,content:"'(required)'",fontWeight:Wb,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:zb,lineHeight:"16px",backgroundColor:Nb.WHITE,borderRadius:Hb,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nb.GREYSCALE_0_05}`,borderColor:Nb.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nb.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Nb.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Nb.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nb.RED}`,boxShadow:`0px 0px 0px 1px ${Nb.RED}, inset 0 2px 0 0 ${Nb.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Nb.GREYSCALE_0_10}`,borderColor:Nb.GREYSCALE_0_10,backgroundColor:Nb.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Nb.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Nb.GREYSCALE_0_15,borderRadius:Hb,boxShadow:`inset 0 2px 0 0 ${Nb.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(Jb,{...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:Nb.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Nb.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Nb.GREYSCALE_0_03},"&:active":{backgroundColor:Nb.GREYSCALE_0_10},"&:focus":{backgroundColor:Nb.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Nb.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Nb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Nb.GREYSCALE_0_30,"&:hover":{backgroundColor:Nb.GREYSCALE_0_0,borderColor:Nb.GREYSCALE_0_15},"& ~svg":{color:Nb.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Nb.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Hb}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Nb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Nb.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:zb,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Fb,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Fb,fontWeight:Gb,color:Nb.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Gb}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Nb.GREYSCALE_0_15}, 0px 0px 0px 1px ${Nb.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(rv,null),checkedIcon:x.createElement(ov,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Nb.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Nb.GREEN_PALE,boxShadow:`0 0 0 3px ${Gy(Nb.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Nb.BLUE_PALE,boxShadow:`0 0 0 3px ${Gy(Nb.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Nb.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Nb.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(nR,null),checkedIcon:x.createElement(tv,null),indeterminateIcon:x.createElement(nv,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Hb,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Nb.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Nb.GREYSCALE_0_55,color:Nb.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:Nb.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Nb.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Nb.GREYSCALE_0_55,"&:hover":{color:Nb.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:Nb.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Nb.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:zb,color:Nb.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Gb},secondary:{fontSize:Fb,color:Nb.GREYSCALE_45,fontWeight:Wb,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:zb,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Nb.GREYSCALE_0_03},"&:active":{backgroundColor:Nb.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:zb,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Nb.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Fb,borderBottom:`solid 1px ${Nb.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:zb,color:Nb.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Nb.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Nb.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Nb.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Nb.RED}}},"&.Mui-focusVisible":{backgroundColor:Nb.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:Nb.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:Nb.GREEN,height:"24px","&.Mui-disabled":{color:Nb.GREYSCALE_0_15}},rail:{backgroundColor:Nb.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Nb.GREYSCALE_0_05}`,borderRadius:Hb,boxShadow:`inset 0px 0px 0px 1px ${Nb.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Nb.GREYSCALE_0_05}`,borderRadius:Hb},thumb:{height:"16px",width:"16px",borderRadius:Hb,backgroundColor:Nb.WHITE,boxShadow:`0px 1px 2px 0px ${Nb.GREYSCALE_0_15}, 0px 0px 0px 1px ${Nb.GREYSCALE_0_05}`,"&:hover":{borderRadius:Hb,boxShadow:`0 2px 4px 0 ${Nb.GREYSCALE_0_30}, 0 0 0 1px ${Nb.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Nb.GREYSCALE_0_15}, 0 0 0 1px ${Nb.GREYSCALE_0_06}, 0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Nb.GREYSCALE_0_15}, 0 0 0 1px ${Nb.GREYSCALE_0_06}, 0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Nb.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Nb.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Nb.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Nb.GREYSCALE_0_15},markLabel:{color:Nb.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Nb.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Nb.WHITE,color:Nb.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:Nb.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:Nb.GREEN_PALE,boxShadow:`0 0 0 3px ${Gy(Nb.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Nb.BLUE_PALE,boxShadow:`0 0 0 3px ${Gy(Nb.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Nb.GREYSCALE_0_15,borderRadius:Hb},thumb:{height:"16px",width:"16px",borderRadius:Hb,backgroundColor:Nb.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:zb,fontWeight:Gb,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Nb.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Nb.MISC_FOCUS_BORDER}`,backgroundColor:Nb.GREYSCALE_0_03,borderRadius:Hb},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Nb.GREYSCALE_25,"&.Mui-selected":{color:Nb.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:zb,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Nb.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Nb.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Nb.GREYSCALE_85}`,borderRight:`1px solid ${Nb.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Gb,backgroundColor:Nb.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:Nb.GREYSCALE_98,borderBottom:`1px solid ${Nb.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Nb.GREYSCALE_85}`,borderTop:`1px solid ${Nb.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Nb.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Nb.GREYSCALE_0_05,"&:hover":{backgroundColor:Nb.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Nb.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(iv,{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 ${Nb.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:zb,borderRadius:Hb,padding:"7px 16px",border:`1px solid ${Nb.GREYSCALE_0_15}`,backgroundColor:Nb.GREYSCALE_100_60,color:Nb.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Nb.GREYSCALE_0_10,border:`1px solid ${Nb.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Nb.GREYSCALE_0_03,border:`1px solid ${Nb.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Nb.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Nb.MISC_FOCUS_BORDER}`,border:`1px solid ${Nb.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Nb.GREYSCALE_25,backgroundColor:Nb.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Nb.GREYSCALE_0_10,border:`1px solid ${Nb.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Fb,height:24,width:24,padding:7},sizeLarge:{fontSize:jb,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:zb,borderRadius:Hb}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Nb.GREYSCALE_20},tooltip:{backgroundColor:Nb.GREYSCALE_20,fontSize:Fb,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var oR=e=>rR;const iR={mode:"light",primary:{light:Nb.GREEN_PALE,main:Nb.GREEN,dark:Nb.GREEN_DARK,contrastText:Nb.WHITE},secondary:{light:Nb.BLUE_PALE,main:Nb.BLUE,dark:Nb.BLUE_DARK,contrastText:Nb.WHITE},error:{light:Nb.RED_PALE,main:Nb.RED,dark:Nb.RED_DARK,contrastText:Nb.WHITE},warning:{light:Nb.ORANGE_PALE,main:Nb.ORANGE,dark:Nb.ORANGE_DARK,contrastText:Nb.WHITE},success:{light:Nb.GREEN_PALE,main:Nb.GREEN,dark:Nb.GREEN_DARK,contrastText:Nb.WHITE},info:{light:Nb.BLUE_PALE,main:Nb.BLUE,dark:Nb.BLUE_DARK,contrastText:Nb.WHITE},text:{primary:Nb.TEXT_PRIMARY,secondary:Nb.TEXT_SECONDARY,disabled:Nb.GREYSCALE_0_30},action:{hover:Nb.GREYSCALE_0_03,hoverOpacity:.05,selected:Nb.GREYSCALE_0_05,focus:Nb.MISC_FOCUS_BORDER},amethyst:{main:Nb.PURPLE,light:Nb.PURPLE_PALE,dark:Nb.PURPLE_DARK,contrastText:Nb.WHITE},background:{paper:Nb.WHITE,default:Nb.GREYSCALE_95},divider:Nb.GREYSCALE_0_15},aR=e=>({components:oR(),palette:iR,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:zb,fontWeightLight:Bb,fontWeightRegular:Wb,fontWeightMedium:Gb,fontWeightBold:Vb,htmlFontSize:zb,fontFamily:Ub.FONT_FAMILY,button:{fontWeight:Gb,fontSize:zb,textTransform:"none"},body1:{fontSize:jb,lineHeight:"24px"},body2:{fontSize:zb,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:$b,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:jb,fontWeight:Gb,lineHeight:"16px"},h6:{fontSize:zb,fontWeight:Gb,lineHeight:"16px"},caption:{color:Nb.TEXT_SECONDARY},subtitle1:{fontSize:zb,color:Nb.TEXT_SECONDARY},subtitle2:{fontSize:Fb,color:Nb.TEXT_SECONDARY}},shape:{borderRadius:Hb}}),lR={...qb,MISC_FOCUS_BORDER:Nb.MISC_FOCUS_BORDER},sR=aR().palette,uR={TEXT:sR.text.primary,DISABLED:sR.text.disabled,HOVER:sR.action.hover,WHITE:lR.GREYSCALE_100,BORDER_LIGHT:lR.GREYSCALE_90,BORDER_MEDIUM:lR.GREYSCALE_85,BORDER_HEAVY:lR.GREYSCALE_50,DARK_MODE_TEXT:lR.GREYSCALE_95,DARK_MODE_BORDER:lR.GREYSCALE_95,DARK_MODE_DISABLED:lR.GREYSCALE_70,DARK_MODE_BACKGROUND:lR.GREYSCALE_20},cR=(e,t)=>{const n=qe(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},dR=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,pR=e=>{const t=dR.exec(e);if(t){const[,e,n,r,o]=t;return se(+n,+r,+o,+e/255)}return se(e)},fR=e=>{const t=pR(e);return Number.isNaN(t.r)?null:t.toString()},mR=e=>{if(void 0===e)return;const t=pR(e);return t.opacity=1,t.toString()},hR=(e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)},gR=e=>{e.stopPropagation(),e.preventDefault()},bR=(e,t)=>{var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},vR=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),yR=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?yR(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},xR=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?xR(t):t},SR=e=>!e.enabled||e.active,ER=e=>{setTimeout((()=>{var t;const n=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${Ir}`);null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)},CR=({focusType:e,cell:t})=>{if(t)switch(e){case gf.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case gf.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case gf.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case gf.ADD_TAB:t.setAttribute("tabIndex","0");break;case gf.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},wR=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:o,allowedRows:i})=>{const a=((e,t,n,r={top:0,bottom:0})=>{const o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length;let[a,l]=n;switch(e.key){case hf.DOWN:a<o-1-r.bottom&&a++;break;case hf.UP:a>r.top&&a--;break;case hf.RIGHT:if(r.top>0)break;l<i-1?l++:a<o-1&&(a++,l=0);break;case hf.LEFT:if(r.top>0)break;l>0?l--:a>0&&(a--,l=i-1)}return[a,l]})(e,t,n,i),l=bR(t,a);return CR({focusType:o,cell:l}),r(a),l},RR=(e,t)=>{let n=vR(e);const r=n?((e,t)=>{const n=e.getElementsByClassName("sn-table-head-cell").length,r=e.getElementsByClassName("sn-table-cell");let o=0;for(let e=0;e<r.length;e++)if(r[e]===t){o=e;break}return[Math.ceil(o/n),o%n]})(e,n):Ef;n=n||bR(e,Ef),CR({cell:n,focusType:gf.FOCUS}),t(r)},AR=(e,t,n,r)=>{var o;(CR({focusType:gf.REMOVE_TAB,cell:vR(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):CR({focusType:gf.ADD_TAB,cell:bR(t,e)})},PR=e=>e.ctrlKey||e.metaKey,IR=e=>e.shiftKey&&PR(e),DR=e=>[hf.LEFT,hf.RIGHT,hf.UP,hf.DOWN].includes(e),LR=e=>e.shiftKey&&DR(e.key),MR=(e,t=!1)=>e.key===hf.ESC&&!t||(e.key===hf.LEFT||e.key===hf.RIGHT)&&IR(e),OR=(e,t,n)=>{if(n)return gf.FOCUS;const r=t.key===hf.UP&&1===e[0],o=t.key===hf.LEFT&&1===e[0]&&0===e[1];return r||o?gf.FOCUS_BUTTON:gf.FOCUS},TR=({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s,isNewHeadCellMenuEnabled:u})=>{const c=l.atTop?2:1,d=[n.pageRowIdx+c,n.pageColIdx],p={top:s?c:0,bottom:s&&l.atBottom?1:0},f=OR(d,e,u);f===gf.FOCUS&&CR({focusType:gf.REMOVE_TAB,cell:e.currentTarget});const m=wR({evt:e,rootElement:t,cellCoord:d,setFocusedCellCoord:i,focusType:f,allowedRows:p});e.key!==hf.UP&&e.key!==hf.DOWN||(e.key===hf.UP&&((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(null==n||!n.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[r])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-a.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})([n.pageRowIdx,n.pageColIdx],t),((e,t,n)=>t.shiftKey&&(t.key===hf.UP&&0!==n.pageRowIdx||t.key===hf.DOWN&&!n.isLastRow)&&e&&n.isSelectable)(o,e,n)?r({type:mf.SELECT_MULTI_ADD,payload:{cell:n,evt:e,announce:a}}):((e,t,n=!1)=>{n&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,m,s))},kR=({evt:e,rootElement:t,setFocusedCellCoord:n,keyboard:r,isSelectionMode:o,paginationNeeded:i,isNewHeadCellMenuEnabled:a})=>{if((null==r?void 0:r.enabled)&&o&&(e.shiftKey||!e.shiftKey&&!i))gR(e),hR(e.currentTarget,r,e.shiftKey);else if(e.shiftKey&&!a){n([0,t.querySelectorAll(".sn-table-head-cell").length-1])}},_R=(e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=ff.INACTIVE;return null!=o&&o.isModal()&&(i=n!==e.selectionColIdx?ff.EXCLUDED:void 0!==r[e.qElemNumber]?ff.SELECTED:ff.POSSIBLE),i},qR=(e,t,n)=>{const r=Object.keys(n).length,o=r>=Object.keys(t).length;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},NR=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==n||n.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...r}}return s=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?{[r]:o}:(void 0!==e[r]?delete e[r]:e[r]=o,{...e})})(s,i,l),qR(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==n||n.cancel(),{...e,rows:s,colIdx:-1})},FR=(e,t)=>{var n;const{api:r,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&LR(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&LR(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===hf.DOWN?1:-1;return i[e[n.pageRowIdx+t][n.pageColIdx].qElemNumber]=n.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),l=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=l;t++){const n=e[t][o.pageColIdx];i[n.qElemNumber]=n.rowIdx}return i})(a,d,s,c,l),qR(u,o,d),{...e,rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0}):e},zR=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},jR=(e,t)=>{var n;switch(t.type){case mf.SELECT:return NR(e,t.payload);case mf.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case mf.SELECT_MOUSE_UP:return((e,t)=>zR(e.isSelectMultiValues||e.firstCell!==t.cell?e:NR(e,t)))(e,t.payload);case mf.SELECT_MULTI_ADD:return FR(e,t.payload);case mf.SELECT_MULTI_END:return zR(e);case mf.RESET:return null!==(n=e.api)&&void 0!==n&&n.isModal()?e:{...e,rows:{},colIdx:-1};case mf.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case mf.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},$R=4/3,HR={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},BR=e=>parseInt(e,10)*$R+8+1,WR=e=>!!e&&(null!==e.color||e.index>-1);function GR(e,t,n={}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const VR=e=>ze(e)?uR.WHITE:uR.TEXT,UR=(e,t)=>e?{borderBottomColor:uR.DARK_MODE_BORDER,borderRightColor:uR.DARK_MODE_BORDER,borderLeftColor:uR.DARK_MODE_BORDER,borderTopColor:uR.DARK_MODE_BORDER}:{borderLeftColor:uR.BORDER_MEDIUM,borderRightColor:uR.BORDER_MEDIUM,borderTopColor:uR.BORDER_HEAVY,borderBottomColor:t?uR.BORDER_HEAVY:uR.BORDER_LIGHT},YR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},KR=(e,t,n,r=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:WR(null==n?void 0:n.fontColor)?GR(uR.TEXT,t,null==n?void 0:n.fontColor):i||uR.TEXT,fontSize:(null==n?void 0:n.fontSize)&&`${n.fontSize}px`||a,padding:n&&"padding"in n?null==n?void 0:n.padding:void 0,...UR(t.background.isDark,r)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function XR(e,t,n,r){var o,i;const a=null===(o=YR(e))||void 0===o?void 0:o.header,l=KR("header",t,a,n);var s,u;(l.background=t.background.isTransparent?uR.WHITE:mR(t.background.color),null!=r&&r.isNewHeadCellMenuEnabled)&&(l.hoverBackground=cR(null!==(s=l.background)&&void 0!==s?s:uR.WHITE,HR.hover),l.activeBackground=cR(null!==(u=l.background)&&void 0!==u?u:uR.WHITE,HR.active));return l.color=null!==(i=l.color)&&void 0!==i?i:ze(l.background)?uR.DARK_MODE_TEXT:uR.TEXT,l}function JR(e,t,n,r){var o;const i=null===(o=YR(e))||void 0===o?void 0:o.content,a=KR("content",t,i);a.background=t.background.color;const l=((e,t,n)=>{if(e&&t&&n)return BR(e)*(t+2)<n.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,n,r),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=WR(u)||!!d,f=WR(s)||!!c,m=p||f;let h;h=WR(s)?GR(uR.HOVER,t,s):c||(p?"":uR.HOVER);const g=m?GR(VR(h),t,WR(u)?u:d):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}function ZR(e,t,n){var r;const o={};return null==t||null===(r=t.qValues)||void 0===r||r.forEach(((e,t)=>{const r=e.qText&&fR(e.qText);r&&"none"!==r&&(o[n[t]]=r)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=VR(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background}}const QR=(e,t,n,r,o)=>{const i=S((()=>{const i=n.totalsPosition.atTop,a=JR(e,t,n.rows.length,r),l=XR(e,t,!i,o),s=function(e,t,n){var r;const o=null===(r=YR(e))||void 0===r?void 0:r.content,i=KR("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=XR(e,t,n);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,i);return{body:a,head:l,totals:s}}),[e,t.name(),n,r]);return i},eA=new Map;const tA=L({}),nA=function(e){const t=L([()=>{},new Set]);return eA.set(e,t),({children:n,value:r})=>{const o=M(r),i=M(new Set);C((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=O((()=>o.current),[o]),l=S((()=>[a,i.current]),[a]);return Bi.jsx(e.Provider,{value:r,children:Bi.jsx(t.Provider,{value:l,children:n})})}}(tA),rA={rows:[],columns:[],totalsPosition:{}},oA=({app:e,children:t,tableData:n=rA,selectionsAPI:r,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,isNewHeadCellMenuEnabled:x,isLinksEnabled:C})=>{const w=S((()=>({isNewHeadCellMenuEnabled:x,isLinksEnabled:C})),[x,C]),[R,A]=E(0),[P,I]=E(o||Sf),[L,M]=((e,t)=>{const[n,r]=D(jR,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n,r]})(n.rows,r),[O,T]=E(-1),k=QR(i,u,n,d,w),[_,q,N,F]=((e,t,n,{head:r,body:o},i)=>{const a=t.atBottom||t.atTop,l=tn({...r,fontWeight:Ob},{maxNbrLinesOfText:3}).measureText,s=tn({...o,fontWeight:Ob},{maxNbrLinesOfText:3}).measureText,{estimateWidth:u}=tn(r,{maxNbrLinesOfText:3}),c=S((()=>(e,t,n,r,o)=>{let c=25;return c+=28,r&&(c+=24),o&&(c+=20),i||(c=r?99:71),Math.max(l(e)+c,a?s(t)+24+1:0,u(n))}),[u,l,s,a,i]),[d,p]=E(0),[f,m]=E((()=>_b(e,n,c,i)));ln((()=>{m(_b(e,n-d,c,i))}),[e,n,d,c]);const h=S((()=>((e,t,n)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<n)(f,d,n)),[f,d,n]);return[f,m,p,h]})(n.columns,n.totalsPosition,v.width,k,x),z=S((()=>({app:e,selectionsAPI:r,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,styling:k,rect:v,viewService:y})),[e,r,i,a,l,s,u.name(),c.active,d,p,f,m,k,v,y]);return Bi.jsx(nA,{value:{headRowHeight:R,setHeadRowHeight:A,focusedCellCoord:P,setFocusedCellCoord:I,selectionState:L,selectionDispatch:M,hoverIndex:O,setHoverIndex:T,columnWidths:_,setColumnWidths:q,baseProps:z,tableData:n,setYScrollbarWidth:N,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:F,featureFlags:w},children:t})};function iA(e,t){const n=function(e){return eA.get(e)}(e),[r,o]=w(n),[,i]=D((e=>e+1),0),a=M(t),l=M(),s=r();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=S((()=>t(s)),[s,t]);return C((()=>{a.current=t,l.current=u}),[s,u,t]),C((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function aA(e){var t;const n=Pb();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),Pp({...n,direction:e})}const lA=Ux(_E,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${Dr}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${Dr}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),sA=Ux(_E)({position:"absolute",height:"100%",width:"3px"}),uA=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=S((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=r||o?Lr.PixelsMin:Lr.PixelsMinTable,f=n?0:1,m={left:r&&!c?d.columnWidth-f:"100%"},h=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:Mr.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},b=e=>{const t=e.clientX-d.initX;h(t)},v=e=>{gR(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=e.touches[0].clientX-d.initX;h(t)},E=e=>{gR(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",E),g()},C=!r&&s?e=>{if(e.key===Pr.LEFT||e.key===Pr.RIGHT){gR(e);const t=d.columnWidth-d.initWidth,n=5,r=e.key===Pr.LEFT?t-n:t+n;h(r)}else e.key===Pr.SPACE||e.key===Pr.ENTER?(gR(e),s(e),g()):e.key===Pr.ESC&&(gR(e),s(e),h(d.initWidth))}:void 0;return x.createElement(lA,{className:Ir,isLastColumn:n,hoverColor:i,style:m,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:Mr.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",E),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:C,onBlur:s,"data-testid":Ir},x.createElement(sA,{className:Dr}))};function cA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"}))));function pA(){return pA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pA.apply(this,arguments)}const fA=Ux(_E,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),mA=Ux(dA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),hA=Ux(pw)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),gA=Ux(iC)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),bA=Ux(bw)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),vA=Ux(bw,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({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:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),yA=Ux("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),xA=Ux("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),SA=Ux(qS)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),EA=Ux(zC)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function CA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){CA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let RA={};const AA=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=E(!1),p=M(null),f=O((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(vA,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),RA={}),null!=a&&a.length&&(d(!0),RA[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(yA,null),x.createElement(xA,null,x.createElement(EA,null,x.createElement(o,null)),x.createElement(SA,{variant:"body2"},r)),null!=a&&a.length?x.createElement(wA,null):null),(null==a?void 0:a.length)&&x.createElement(IA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=RA,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},PA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&x.createElement(bA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>x.createElement(AA,pA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),IA=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?x.createElement(hA,pA({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[PA({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?x.createElement(gA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,DA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},LA=(e,t)=>e.some((e=>t[e]>0));function MA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){MA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function TA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function _A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_A(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function NA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){NA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function zA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function $A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const HA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$A(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function BA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){BA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function GA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const VA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){GA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function UA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const YA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){UA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function KA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XA=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){KA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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 JA=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const ZA=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(n[JA.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:OA,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:FA,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[JA.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:jA,enabled:!0}]}]),n[JA.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:XA,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:HA,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:YA,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:WA,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:VA,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:kA,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[JA.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:qA,enabled:!0}]}]),p},QA=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=un({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:S,updateSelectionActionsEnabledStatus:w}=(({headerData:e,app:t})=>{const[n,r]=E(null),[o,i]=E(DA);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:O((()=>i(DA)),[]),updateSelectionActionsEnabledStatus:O((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:LA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:LA(["qSelected"],n.qStateCounts),canSelectPossible:LA(["qOption"],n.qStateCounts),canSelectAlternative:LA(["qAlternative"],n.qStateCounts),canSelectExcluded:LA(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),R=O((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);C((()=>{e||(S(),null!=d&&d.model&&d.model.getLayout().then((e=>{w(e)})).catch((e=>console.error(e))))}),[e,S,w,null==d?void 0:d.model]);const A=O((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(fA,{rightAligned:"right"===h,shouldShowMenuIcon:s},s&&x.createElement(mA,{height:Rr,className:Ar,"data-testid":Ar,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(dA,null)),x.createElement(IA,{open:e,anchorEl:n.current,onClose:A,menuGroups:ZA({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},eP=e=>e.isDark?{background:e.color,borderColor:uR.DARK_MODE_BORDER,color:uR.DARK_MODE_TEXT,disabledColor:uR.DARK_MODE_DISABLED,iconColor:uR.DARK_MODE_TEXT}:{background:e.color,borderColor:uR.BORDER_MEDIUM,color:uR.TEXT,disabledColor:uR.DISABLED},tP=Ux(_E,{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}`}))),nP=Ux(tR,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),rP=Ux(VE,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),oP=Ux(qS)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),iP=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=S((()=>eP(r.background)),[r]);if(!n.active)return null;const a=o?x.createElement(tP,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},aP=L({}),lP=()=>w(aP),sP=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=S((()=>eP(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=un({translator:d}),E=S((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return x.createElement(aP.Provider,{value:E},e)};let uP=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),cP=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}({});function dP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pP=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function fP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mP=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function hP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gP=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),bP={FirstPage:mP,PreviousPage:pP,NextPage:wA,LastPage:gP,FirstPageRTL:gP,PreviousPageRTL:wA,NextPageRTL:pP,LastPageRTL:mP},vP=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=lP(),u=bP[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},yP=()=>{const{pageInfo:e,width:t}=lP(),n=0===e.page,{IconComponent:r,styledProps:o}=vP({type:uP.FirstPage,disabledCondition:n,pageNumber:0});return t<=cP.FirstPage?null:x.createElement(rP,o,x.createElement(r,{height:Rr}))},xP=(e,t,n=!1)=>{n&&e.key===Pr.TAB&&!e.shiftKey&&(gR(e),hR(e.target,t,!1))},SP=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=lP(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=vP({type:uP.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>xP(e,t,r):null;return o<=cP.LastPage?null:x.createElement(rP,pA({},l,{onKeyDown:s}),x.createElement(a,{height:Rr}))},EP=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=lP(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=vP({type:uP.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>cP.FirstPage&&o>cP.LastPage)&&t.enabled?e=>xP(e,t,r):null;return x.createElement(rP,pA({},l,{onKeyDown:s}),x.createElement(a,{height:Rr}))},CP=()=>{const{pageInfo:e}=lP(),t=0===e.page,{IconComponent:n,styledProps:r}=vP({type:uP.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(rP,r,x.createElement(n,{height:Rr}))},wP=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=lP(),{page:o,rowsPerPage:i}=n;if(t<=cP.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return x.createElement(oP,{variant:"caption"},a)},RP=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=lP(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(oP,{variant:"caption",id:d},u,":"),x.createElement(nP,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},AP=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=lP();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>cP.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(RP,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},PP=1e3,IP="…",DP=({totalPages:e,page:t})=>{const n=Math.min(e,PP),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-PP):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:IP,disabled:!0},IP)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:IP,disabled:!0},IP)),x.createElement(x.Fragment,null,a)},LP=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=lP(),{page:o}=e;if(t<=cP.SelectPage)return null;const i=x.createElement(DP,{totalPages:n,page:o});return x.createElement(RP,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};var MP=k((e=>x.createElement(sP,e,x.createElement(AP,null),x.createElement(LP,null),x.createElement(wP,null),x.createElement(yP,null),x.createElement(CP,null),x.createElement(EP,null),x.createElement(SP,null))));const OP=e=>x.createElement(iP,e,x.createElement(MP,e)),TP=sf(xh,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.tableColorFromTheme}))),kP=sf(xh,{shouldForwardProp:e=>"isNewHeadCellMenuEnabled"!==e&&"lines"!==e&&"allIconsDisabled"!==e&&"wordBreak"!==e&&"headCell"!==e&&"isPagination"!==e&&"virtualizedCell"!==e})((({isNewHeadCellMenuEnabled:e,lines:t,wordBreak:n,allIconsDisabled:r=!1,headCell:o=!1,isPagination:i=!1,virtualizedCell:a=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(e?o||a:n||1===t)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:e&&o&&i?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",...e&&{whiteSpace:r||a?"normal":"nowrap"}}}))),_P=sf(xh)({overflow:"hidden",textOverflow:"ellipsis"});function qP(e,t){const n=M(!1);C((()=>{n.current?e():n.current=!0}),t)}const NP=(e,t,n)=>{C((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth;let{scrollLeft:o}=n,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))})(e,"rtl"===t,r),i=e=>{var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}),[e,t,n])},FP=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===hf.DOWN||n===hf.UP){const t=e=>n===hf.DOWN?yR(e):xR(e);gR(e);let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},zP=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,isInteractionEnabled:o,handleOpenMenu:i,isNewHeadCellMenuEnabled:a})=>{var l;if(!o)return void gR(e);if(MR(e))return;const s=!(null!==(l=e.currentTarget.closest(".sn-table-cell"))&&void 0!==l&&l.nextSibling);switch(e.key){case hf.LEFT:case hf.RIGHT:gR(e),e.key===hf.RIGHT&&s&&!a?RR(t,r):(a&&CR({focusType:gf.REMOVE_TAB,cell:e.currentTarget}),wR({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:a?gf.FOCUS:gf.FOCUS_BUTTON}));break;case hf.DOWN:gR(e),CR({focusType:gf.REMOVE_TAB,cell:vR(t)}),wR({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:gf.FOCUS});break;case!a&&hf.TAB:((e,t,n,r,o)=>{const i=e.currentTarget.classList.contains("sn-table-head-label");i&&e.shiftKey&&n[1]>0?r([n[0],n[1]-1]):i||e.shiftKey||(o?(gR(e),RR(t,r)):r([n[0],n[1]+1]))})(e,t,n,r,s);break;case hf.C:gR(e),PR(e)&&po(e.currentTarget);break;case a&&hf.ENTER:case a&&hf.SPACE:i&&i(e)}},jP=e=>{const{layout:t,rect:n,theme:r}=iA(tA,(e=>e.baseProps)),o=r.name(),[i,a]=E(0),[l,s]=E(0);return _((()=>{if(e.current){var t;const{offsetWidth:n=0,offsetHeight:r=0,clientWidth:o=0,clientHeight:i=0}=null!==(t=e.current)&&void 0!==t?t:{},l=r-i;s(n-o),a(l)}}),[e,t,n,o]),{xScrollbarWidth:i,yScrollbarWidth:l}},$P=sf("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),HP=sf(sb,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),BP=sf(Gg,{shouldForwardProp:e=>"showRightBorder"!==e&&"styling"!==e})((({showRightBorder:e,styling:t})=>({tableLayout:"fixed",width:"min-content",borderRight:e?`1px solid ${t.body.borderRightColor}`:void 0}))),WP=()=>Bi.jsxs(Bi.Fragment,{children:[Bi.jsx($P,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Bi.jsx($P,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),GP=e=>e.stopPropagation(),VP=({href:e,text:t,interactions:n,color:r})=>x.createElement(DC,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:GP,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),UP=({children:e,fontSize:t="",wordBreak:n=!1,isPagination:r=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:l=!1})=>{const s=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled));if(s&&a)return Bi.jsx(kP,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:r,isNewHeadCellMenuEnabled:!0,headCell:!0,allIconsDisabled:l,children:e});const u=parseInt(t||Mb,10),c=Bi.jsx(kP,{component:"span",className:"sn-table-cell-text",wordBreak:n,lines:i,...s&&{virtualizedCell:o,allIconsDisabled:l},children:e});return n?c:Bi.jsx(_P,{minHeight:u*Lb,maxHeight:u*Lb*i,children:c})},YP=({cell:e,style:t,virtualizedCell:n})=>{var r;const{isNewHeadCellMenuEnabled:o,isLinksEnabled:i}=iA(tA,(e=>e.featureFlags)),{interactions:a,viewService:l}=iA(tA,(e=>e.baseProps)),s=iA(tA,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let u=e.representation.text;return e.representation.type===gi.Link&&i&&!s&&(u=Bi.jsx(VP,{href:e.representation.url,text:e.representation.text,interactions:a,color:t.cellForegroundColor})),Bi.jsx(UP,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:null===(r=l.viewState)||void 0===r?void 0:r.maxLineCount,...o&&{virtualizedCell:n},children:u})},KP=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:mf.RESET})},a=()=>{t({type:mf.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))n();else if(r.enabled){var t;null===(t=r.blur)||void 0===t||t.call(r,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,r,t,n,o])},XP=(e,t,n,r)=>({handleMouseDown:r=>{null==e||e(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>n({type:mf.SELECT_MULTI_END});n({type:mf.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:mf.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:mf.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}),JP=sf(Zg,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),ZP=sf(Sb,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),QP=sf(ob,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...Tb,...e,padding:t.spacing(.5,1.5),verticalAlign:"top"}))),eI=sf(ob,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...Tb,...e,fontWeight:Ob,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&n,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function tI(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i}=t,a=iA(tA,(e=>_R(n,e.selectionState))),l=iA(tA,(e=>e.selectionDispatch)),{handleMouseDown:s,handleMouseOver:u,handleMouseUp:c}=XP(i,n,l,o),d=function(e,t){let n={};switch(t){case ff.SELECTED:n=Db.SELECTED;break;case ff.POSSIBLE:n=Db.POSSIBLE;break;case ff.EXCLUDED:n={background:`${Db.EXCLUDED_BACKGROUND}, ${e.background}`,selectedCellClass:ff.EXCLUDED}}return{...e,...n}}(r,a);return Bi.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:s,onMouseOver:u})}}function nI(e,t){let n=(r=QP,e=>{const{styling:{selectedCellClass:t,...n},component:o,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return Bi.jsx(r,{cellStyle:n,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${t||""}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var r;return t&&(n=tI(n)),e&&(n=function(e){return t=>{const{cell:n,column:r,styling:o}=t,i=S((()=>ZR(o,n.qAttrExps,r.qAttrExprInfoIDs)),[o,n.qAttrExps,r.qAttrExprInfoIDs]);return Bi.jsx(e,{...t,styling:i})}}(n)),n}const rI=()=>{const{columns:e,totalsPosition:{atTop:t},rows:n}=iA(tA,(e=>e.tableData)),{rootElement:r,selectionsAPI:o,keyboard:i,styling:a,interactions:l}=iA(tA,(e=>e.baseProps)),s=iA(tA,(e=>e.headRowHeight)),u=iA(tA,(e=>e.setFocusedCellCoord)),c=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled));return Bi.jsx(Sb,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,d)=>{const p=[t?1:n.length+1,d],f=t&&0===d&&!i.enabled?0:-1;return Bi.jsx(eI,{totalsStyle:a.totals,headRowHeight:s,atTop:t,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:c?-1:f,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,n,r,o,i=!1)=>{if(i)gR(e);else if(!MR(e))switch(e.key){case hf.LEFT:case hf.RIGHT:case hf.UP:case hf.DOWN:{gR(e);const i=OR(n,e,o);i===gf.FOCUS&&CR({focusType:gf.REMOVE_TAB,cell:e.currentTarget}),wR({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:i});break}case hf.TAB:kR({evt:e,rootElement:t,setFocusedCellCoord:r,isNewHeadCellMenuEnabled:o});break;case hf.C:gR(e),PR(e)&&po(e.currentTarget);break;case hf.SPACE:e.preventDefault()}})(e,r,p,u,c,null==o?void 0:o.isModal())},onMouseDown:()=>{AR(p,r,u,i)},children:Bi.jsx(UP,{wordBreak:!e.isTotalNumeric,fontSize:a.totals.fontSize,children:e.totalInfo})},e.id)}))})};var oI=k(rI);const iI=({setShouldRefocus:e,tableWrapperRef:t,announce:n})=>{var r;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=iA(tA,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styling:{body:{hoverColors:f,lastRowBottomBorder:m,...h}}}=iA(tA,(e=>e.baseProps)),g=iA(tA,(e=>e.setFocusedCellCoord)),b=iA(tA,(e=>e.selectionDispatch)),v=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),y=!!p.active&&!!p.select,x=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),E=S((()=>JSON.parse(x).map((e=>nI(e.some((e=>"cellBackgroundColor"===e||"cellForegroundColor"===e)),y)))),[x,y]),C=!(null===(r=YR(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect);return KP({keyboard:c,selectionDispatch:b,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Bi.jsxs(JP,{lastRowBottomBorder:m,children:[l.atTop?Bi.jsx(oI,{}):void 0,o.map(((e,t)=>Bi.jsx(ZP,{hoverColors:f,hover:C,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,children:i.map(((r,o)=>{const{id:i}=r,d=e[o],f=E[o],m=v||0!==t||0!==o||l.atTop||c.enabled?-1:0,x=ZR({},d.qAttrExps,r.qAttrExprInfoIDs);return f&&Bi.jsx(f,{scope:0===o?"row":void 0,component:0===o?"th":void 0,cell:d,column:r,align:d.align,styling:h,tabIndex:m,announce:n,title:p.passive?d.qText:void 0,onKeyDown:e=>{(({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c,isNewHeadCellMenuEnabled:d})=>{if(e.currentTarget.classList.contains("excluded"))return void gR(e);const p=null==c?void 0:c.isModal();if(!MR(e,p))switch(e.key){case hf.UP:case hf.DOWN:case hf.LEFT:case hf.RIGHT:gR(e),TR({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:p,isNewHeadCellMenuEnabled:d});break;case hf.SPACE:gR(e),n.isSelectable&&o&&r({type:mf.SELECT,payload:{cell:n,evt:e,announce:a}});break;case hf.ENTER:gR(e),p&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case hf.ESC:gR(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case hf.TAB:kR({evt:e,rootElement:t,setFocusedCellCoord:i,keyboard:l,isSelectionMode:p,paginationNeeded:s,isNewHeadCellMenuEnabled:d});break;case hf.C:gR(e),PR(e)&&po(e.currentTarget)}})({evt:e,rootElement:u,selectionsAPI:s,cell:d,selectionDispatch:b,isSelectionsEnabled:y,setFocusedCellCoord:g,announce:n,keyboard:c,paginationNeeded:a,totalsPosition:l,isNewHeadCellMenuEnabled:v})},onKeyUp:e=>((e,t)=>{e.key===hf.SHIFT&&t({type:mf.SELECT_MULTI_END})})(e,b),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;AR([l,a],t,n,r)})(d,u,g,c,l),children:Bi.jsx(YP,{cell:d,style:x})},i)}))},`row-${t}`))),l.atBottom?Bi.jsx(oI,{}):void 0]})};var aI=k(iI);const lI=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=iA(tA,(e=>e.baseProps)),l=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),s=iA(tA,(e=>e.columnWidths)),u=iA(tA,(e=>e.setColumnWidths));if(!a.active)return null;return Bi.jsx(uA,{columnWidth:s[o],isLastColumn:t,keyValue:`adjuster-${o}`,isNewHeadCellMenuEnabled:l,updateWidthCallback:e=>{null==n||n();const t=[...s];t[o]=e,u(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>((e,t)=>{var n;e.setAttribute("tabIndex","-1");const r=e.closest(".sn-table-cell");let o=null;var i;t?(o=r,null===(i=o)||void 0===i||i.setAttribute("tabIndex","0")):o=null==r?void 0:r.querySelector(".sn-table-head-menu-button"),null===(n=o)||void 0===n||n.focus()})(e.currentTarget,l),setIsAdjustingWidth:r})};function sI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function cI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function pI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),x.createElement("use",{fillRule:"evenodd"})))),mI=sf("div")({position:"absolute",left:0,bottom:0}),hI=sf(Mh,{shouldForwardProp:e=>!["isActivelySorted","textAlign","disabled","isNewHeadCellMenuEnabled"].includes(e)})((({isActivelySorted:e,textAlign:t,disabled:n,theme:r,isNewHeadCellMenuEnabled:o})=>({textAlign:t,height:"auto",...!o&&{maxWidth:"100%"},fontSize:"inherit",fontFamily:"inherit",padding:r.spacing(.5,1),color:"inherit",alignItems:"flex-end",cursor:n?"auto":"pointer",justifySelf:t,alignSelf:"center","&&:focus, &&:hover":{...o&&{background:"transparent",boxShadow:"none"},"& svg":{...!o&&{opacity:e?1:.5}}},"& svg":{opacity:e?1:0,fontSize:Mb},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:n?"hidden":"visible"}}))),gI=sf("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),bI=sf(xh,{shouldForwardProp:e=>"isLocked"!==e&&"isNewHeadCellMenuEnabled"!==e&&"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e})((({theme:e,isLocked:t,isNewHeadCellMenuEnabled:n,shouldShowMenuIcon:r,shouldShowLockIcon:o})=>{const i=r?"24px":"";let a="",l="",s=null;return n?(a=o?`20px 2fr ${i}`:`1fr ${i}`,l=o?`${i} 2fr 20px`:`${i} 1fr`,s=o):(a=t?"20px 2fr 24px":"1fr 24px",l=t?"24px 2fr 20px":"24px 1fr",s=t),{width:"100%",display:"grid",flexDirection:"inherit",gridAutoFlow:"dense",gap:e.spacing(.5),fontSize:"inherit",fontFamily:"inherit",...n&&{alignItems:"end",overflow:"hidden"},"&&:hover, &&:focus-within":{"& .sn-table-head-menu-button":{opacity:1}},"& > div:last-child":{alignSelf:"flex-end"},"&.aligned-left":{gridTemplateColumns:a},"&.aligned-center":{gridTemplateColumns:"24px 2fr 24px","& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:l,"& > div:first-child":{gridColumn:s?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}}})),vI=sf("div")({display:"flex",alignSelf:"flex-end"}),yI=sf(xh)({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),xI=sf(xh,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),SI=sf(Mh,{shouldForwardProp:e=>"isVisible"!==e&&"isNewHeadCellMenuEnabled"!==e})((({isVisible:e,isNewHeadCellMenuEnabled:t})=>({opacity:e?1:0,...!t&&{"&:focus":{opacity:1}}}))),EI=sf(Wh)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),CI=sf(Fg)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),wI=sf("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),RI=sf(ag)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0})));sf("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const AI=({sortDirection:e,isLocked:t,headTextAlign:n})=>{const r="A"===e?Bi.jsx(uI,{height:Mb}):Bi.jsx(dI,{height:Mb}),o=t?Bi.jsx(yI,{className:`aligned-${n}`,children:Bi.jsx(fI,{height:Mb,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===n?{startIcon:r,lockIcon:o}:{endIcon:r,lockIcon:o}};function PI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const II=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){PI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function DI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const LI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){DI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function MI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){MI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M2 6.5h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1"}))));function TI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function _I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_I(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function NI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){NI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function zI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function $I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const HI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$I(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function BI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){BI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"})))),GI=new Map,VI={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},UI=(e,t)=>e.some((e=>t[e]>0));function YI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const KI=T(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let XI={};const JI=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a})=>{const[l,s]=E(!1),u=M(null);return Bi.jsxs(Bi.Fragment,{children:[Bi.jsxs(CI,{ref:a?u:null,"data-testid":`menu-item-${t}`,className:"sn-table-head-menu-item",onClick:e=>{n&&(n(e),XI={}),null!=a&&a.length&&(s(!0),XI[r]=s)},disabled:!i,autoFocus:e,onKeyDown:FP,children:[Bi.jsxs(wI,{children:[Bi.jsx(RI,{children:o}),Bi.jsx(Km,{variant:"body2",children:r})]}),null!=a&&a.length?Bi.jsx(KI,{}):null]},t),(null==a?void 0:a.length)&&Bi.jsx(eD,{anchorEl:u.current,open:l,onClose:()=>s(!1),menuGroups:(c=a,d=XI,c.map((e=>e.map((({onClick:e,...t})=>({...t,...e?{onClick:t=>{Object.entries(d).map((([,e])=>e(!1))),e(t)}}:{}})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"}})]});var c,d},ZI=({menuGroup:e})=>e.map((e=>Bi.jsx(JI,{...e},e.id))),QI=({itemGroups:e})=>e.map(((t,n)=>[ZI({menuGroup:t}),n<e.length-1?Bi.jsx(EI,{"data-testid":"group-divider",variant:"middle"},"divider"):void 0])),eD=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,buttonId:a,menuId:l})=>r.length?Bi.jsx(Tg,{className:"sn-table-head-menu",id:l,open:t,anchorEl:e,onClose:n,"aria-labelledby":a,...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},children:QI({itemGroups:r})}):null,tD=({column:e,tabIndex:t})=>{const{isDim:n,qLibraryId:r,fieldId:o,headTextAlign:i,pageColIdx:a}=e,{translator:l,embed:s,model:u,interactions:c,layout:d}=iA(tA,(e=>e.baseProps)),p=M(null),f=M(null),[m,h]=E(!1),[g,b]=E(!1),{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:w}=((e,t)=>{const{app:n,layout:r}=iA(tA,(e=>e.baseProps)),[o,i]=E(null),[a,l]=E(VI);return C((()=>{if(!(n&&n.getField&&e&&e.isDim&&t))return;const{qLibraryId:o,fieldId:a}=e;if(o){const e=`${n.id}-${o}`;GI.get(e)?i(GI.get(e)):n.createSessionObject(((e,t="$")=>({qInfo:{qType:"tableListbox"},qListObjectDef:{qLibraryId:e,qStateName:t}}))(o,r.qStateName)).then((t=>{const n={selectAll:()=>t.selectListObjectAll("/qListObjectDef"),clear:()=>t.clearSelections("/qListObjectDef").then((e=>e)),selectPossible:()=>t.selectListObjectPossible("/qListObjectDef"),selectAlternative:()=>t.selectListObjectAlternative("/qListObjectDef"),selectExcluded:()=>t.selectListObjectExcluded("/qListObjectDef")};i(n),GI.set(e,n)}))}else n.getField(a,r.qStateName).then(i)}),[n,e,r.qStateName,t]),{fieldInstance:o,selectionActionsEnabledStatus:a,resetSelectionActionsEnabledStatus:O((()=>l(VI)),[]),updateSelectionActionsEnabledStatus:t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&l({canSelectAll:UI(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:UI(["qSelected"],n.qStateCounts),canSelectPossible:UI(["qOption"],n.qStateCounts),canSelectAlternative:UI(["qAlternative"],n.qStateCounts),canSelectExcluded:UI(["qAlternative","qExcluded"],n.qStateCounts)})}}})(e,m),R=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),A=O((()=>{const e=r?{qLibraryId:r,type:"dimension"}:o;s.__DO_NOT_USE__.popover(f.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},stateName:d.qStateName}),s.on("fieldPopoverClose",(()=>{b(!1)}))}),[s,o,r,d.qStateName]),P=S((()=>[...n&&c.select?[[{id:1,itemTitle:l.get("SNTable.MenuItem.Search"),onClick:e=>{e.stopPropagation(),h(!1),b(!0),A()},icon:Bi.jsx(kI,{}),enabled:!0}],[{id:1,itemTitle:l.get("SNTable.MenuItem.Selections"),icon:Bi.jsx(WI,{}),enabled:!0,subMenus:[[{id:1,itemTitle:l.get("SNTable.MenuItem.SelectAll"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectAll())},icon:Bi.jsx(qI,{}),enabled:y.canSelectAll},{id:2,itemTitle:l.get("SNTable.MenuItem.SelectPossible"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectPossible())},icon:Bi.jsx(HI,{}),enabled:y.canSelectPossible},{id:3,itemTitle:l.get("SNTable.MenuItem.SelectAlternative"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectAlternative())},icon:Bi.jsx(FI,{}),enabled:y.canSelectAlternative},{id:4,itemTitle:l.get("SNTable.MenuItem.SelectExcluded"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectExcluded())},icon:Bi.jsx(jI,{}),enabled:y.canSelectExcluded}],[{id:1,itemTitle:l.get("SNTable.MenuItem.ClearSelections"),onClick:async()=>{h(!1),await(null==v?void 0:v.clear())},icon:Bi.jsx(II,{}),enabled:y.canClearSelections}]]}]]:[],[{id:1,itemTitle:l.get("SNTable.MenuItem.AdjustColumnSize"),onClick:e=>{gR(e),h(!1),ER(p)},icon:Bi.jsx(LI,{}),enabled:!0}]]),[n,c.select,l,y,A,v]);C((()=>{m||x()}),[m,x]);const I=d.qInfo.qId,D=`sn-table-head-menu-button-${a}-${I}`,L=`sn-table-head-menu-${a}-${I}`;return P.length?Bi.jsxs(xI,{rightAligned:"right"===i,children:[Bi.jsx(SI,{isVisible:g||m,ref:p,size:"small",tabIndex:t,className:"sn-table-head-menu-button",id:D,"aria-controls":m?L:void 0,"aria-expanded":m?"true":void 0,"aria-haspopup":"true",onClick:async()=>{if(!m&&u){const e=await u.getLayout();w(e)}h(!m)},"aria-label":l.get("SNTable.Accessibility.ColumnOptions"),isNewHeadCellMenuEnabled:R,children:Bi.jsx(OI,{height:Mb})}),Bi.jsx("div",{ref:f}),Bi.jsx(eD,{open:m,anchorEl:p.current,onClose:()=>h(!1),menuGroups:P,buttonId:D,menuId:L})]}):null},nD=({children:e,column:t,isInteractionEnabled:n,open:r,setOpen:o,getHeadCellsIconsVisibilityStatus:i})=>{const{shouldShowLockIcon:a,shouldShowMenuIcon:l}=i(),{keyboard:s,translator:u,changeSortOrder:c,interactions:d,embed:p,app:f,model:m}=iA(tA,(e=>e.baseProps)),h=iA(tA,(e=>0===e.focusedCellCoord[0])),g=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),b=M(null),v=M(null),{startIcon:y,endIcon:x,lockIcon:S}=AI(t),E=n&&SR(s)?0:-1,C={A:u.get("SNTable.Accessibility.Ascending"),D:u.get("SNTable.Accessibility.Descending")};return Bi.jsxs(bI,{isLocked:Boolean(S),className:`aligned-${t.headTextAlign}`,isNewHeadCellMenuEnabled:g,...g&&{shouldShowMenuIcon:l,shouldShowLockIcon:a},children:[(g?a:S)&&Bi.jsx(vI,{children:S}),Bi.jsxs(hI,{className:"sn-table-head-label",isActivelySorted:t.isActivelySorted,textAlign:t.headTextAlign,color:"inherit",size:"small",...!g&&{startIcon:y,endIcon:x},tabIndex:g?-1:E,disabled:!n,onClick:g?()=>{}:()=>n&&c(t),isNewHeadCellMenuEnabled:g,children:[e,h&&Bi.jsx(gI,{"data-testid":`VHL-for-col-${t.pageColIdx}`,children:`${C[t.sortDirection]} ${u.get("SNTable.SortLabel.PressSpaceToSort")}`})]}),n&&(g?Bi.jsxs(Bi.Fragment,{children:[Bi.jsx(QA,{headerData:t,translator:u,anchorRef:b,handleHeadCellMenuKeyDown:FP,menuAvailabilityFlags:{[JA.SORTING]:!0,[JA.SEARCHING]:!0,[JA.SELECTIONS]:!0,[JA.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:o,interactions:d,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),c(t,n))},searchRelatedArgs:{embed:p,listboxRef:v},selectionRelatedArgs:{app:f,model:m},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:ER},shouldShowMenuIcon:!g||l}),Bi.jsx(mI,{ref:v}),Bi.jsx(mI,{ref:b})]}):Bi.jsx(tD,{column:t,tabIndex:E}))]})},rD=({styling:e,column:t,columnWidths:n,isNewHeadCellMenuEnabled:r})=>{const{measureText:o}=tn({fontSize:e.head.fontSize,fontFamily:e.head.fontFamily,fontWeight:Ob}),i=O((()=>{var e;if(!r)return{shouldShowMenuIcon:!0,shouldShowSortIcon:!0,shouldShowLockIcon:!0};let i=!1,a=!1,l=!1;const s=t.isLocked,u=t.isActivelySorted,c=(null!==(e=n[t.colIdx])&&void 0!==e?e:n[t.pageColIdx])-25,d=s?24:0,p=u?20:0;let f=o(t.label);return s&&f+d<=c&&(l=!0,f+=d,u&&f+p<=c&&(a=!0,f+=p)),!s&&u&&f+p<=c&&(a=!0,f+=p),f+28<=c&&(i=!0,f+=28),{shouldShowMenuIcon:i,shouldShowSortIcon:a,shouldShowLockIcon:l}}),[r,t.colIdx,t.pageColIdx,t.isLocked,t.label,t.isActivelySorted,n,o]);return{getHeadCellsIconsVisibilityStatus:i,allIconsDisabled:Object.values(i()).every((e=>!1===e))}},oD=({isInteractionEnabled:e,columnsData:t})=>{const[n,r]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,n]=E(!1);return ln((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}})([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Ir)})(t)&&!o&&r(!0),setIsAdjustingWidth:i}},iD=(e,t,n,r)=>{const o=e&&t&&n;return e=>o&&e===r},aD=sf(ob,{shouldForwardProp:e=>"headerStyle"!==e&&"isNewHeadCellMenuEnabled"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,isNewHeadCellMenuEnabled:t,interactions:n,hoverBackground:r,background:o})=>({...Tb,...e,...t&&{cursor:"pointer",background:o},pointer:"cursor",verticalAlign:"bottom","&&:focus-visible":{...!t&&{boxShadow:"none"},...t&&{background:n.active?r:o}},...t&&{"&&:hover":{background:n.active?r:o}}}))),lD=sf("div")({display:"flex",alignItems:"center"}),sD=sf("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:Mb,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),uD=({column:e,columnIndex:t,columnsLength:n})=>{const{styling:r,interactions:o,rootElement:i,keyboard:a,styling:{head:{activeBackground:l,background:s,hoverBackground:u}}}=iA(tA,(e=>e.baseProps)),{columns:c}=iA(tA,(e=>e.tableData)),d=iA(tA,(e=>e.columnWidths)),p=iA(tA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=iA(tA,(e=>e.setFocusedCellCoord)),m=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),h=iA(tA,(({focusedCellCoord:[e,n]})=>0===e&&n===t)),g=!!o.active&&!p,{open:b,setOpen:v,handleOpenMenu:y,setIsAdjustingWidth:x}=oD({isInteractionEnabled:g,columnsData:c}),{getHeadCellsIconsVisibilityStatus:S,allIconsDisabled:E}=rD({styling:r,column:e,columnWidths:d,isNewHeadCellMenuEnabled:m}),C=e.isActivelySorted?bf[e.sortDirection]:void 0,w=t===n-1,R=[0,e.pageColIdx],A={width:d[t]-(w?8:9),zIndex:c.length-t},{startIcon:P,endIcon:I}=AI(e),D=!!m&&0===e.colIdx&&!a.enabled&&h&&g?0:-1,L=S(),M=iD(m,L.shouldShowSortIcon,e.isActivelySorted,e.headTextAlign);return Bi.jsxs(aD,{headerStyle:r.head,style:A,align:e.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":C,tabIndex:D,title:o.passive?e.label:void 0,onKeyDown:e=>zP({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,isInteractionEnabled:g,handleOpenMenu:y,isNewHeadCellMenuEnabled:m}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(r(n),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):CR({focusType:gf.FOCUS_BUTTON,cell:bR(t,n)}))})({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,keyboard:a,isInteractionEnabled:g}),isNewHeadCellMenuEnabled:m,background:b?l:s,hoverBackground:u,interactions:o,onClick:y,children:[Bi.jsx(nD,{column:e,isInteractionEnabled:g,open:b,setOpen:v,getHeadCellsIconsVisibilityStatus:S,children:m?Bi.jsxs(lD,{children:[M("right")&&Bi.jsx(sD,{align:e.headTextAlign,children:P}),Bi.jsx(UP,{allIconsDisabled:E,isPagination:!0,headCell:!0,children:e.label}),M("left")&&Bi.jsx(sD,{align:e.headTextAlign,children:I})]}):Bi.jsx(UP,{fontSize:r.head.fontSize,children:e.label})}),Bi.jsx(lI,{column:e,isLastColumn:w,setIsAdjustingWidth:x})]},e.id)},cD=()=>{var e;const{columns:t}=iA(tA,(e=>e.tableData)),{styling:n,viewService:r}=iA(tA,(e=>e.baseProps)),o=iA(tA,(e=>e.setHeadRowHeight)),i=iA(tA,(e=>e.columnWidths)),a=M(null);return C((()=>{a.current&&o(a.current.clientHeight)}),[n.head.fontSize,i,o]),null!==(e=r.viewState)&&void 0!==e&&e.skipHeader?null:Bi.jsx(mb,{children:Bi.jsx(Sb,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,n)=>Bi.jsx(uD,{column:e,columnIndex:n,columnsLength:t.length},e.id)))})})};var dD=k(cD);const pD=e=>{var t,n;const{pageInfo:r,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=r,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=iA(tA,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styling:E,viewService:w,layout:R,rect:A}=iA(tA,(e=>e.baseProps)),P=iA(tA,(e=>e.focusedCellCoord)),I=iA(tA,(e=>e.setFocusedCellCoord)),D=iA(tA,(e=>e.setYScrollbarWidth)),L=iA(tA,(e=>e.showRightBorder)),T=iA(tA,(e=>e.selectionDispatch)),k=iA(tA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),_=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),q=M(!1),N=M(null),F=M(null),{yScrollbarWidth:z}=jP(N),j=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length+1),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,$=Oi(R,w),H=$&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,B=$&&null!==(n=w.rowPartialHeight)&&void 0!==n?n:0,W=O((()=>{q.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),G=O((e=>{o({...r,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[r,o,p,l]),V=O((e=>{o({...r,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return((e,t,n)=>{C((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{const r=e.currentTarget,o=e.relatedTarget,i=!(null==r||!r.contains(o)),a=null==o?void 0:o.closest(".sn-table-head-menu");if(n.enabled&&!i&&!a&&!t.current&&r){var l;const e=r.querySelector(".sn-table-announcer-1"),t=r.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=n.blur)||void 0===l||l.call(n,!1)}})(e,t,n);return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}}),[e,t,n])})(F,q,v),NP(N,i,w),(()=>{const{rootElement:e,keyboard:t}=iA(tA,(e=>e.baseProps)),n=iA(tA,(e=>e.focusedCellCoord)),r=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled));ln((()=>{let o=r||n[0]>0?gf.FOCUS:gf.FOCUS_BUTTON;o=t.active?o:gf.BLUR;const i=t.active?bR(e,n):vR(e);CR({focusType:o,cell:i})}),[t.active,e,r])})(),C((()=>{const e=N.current;e&&(e.scrollLeft=H,e.scrollTop=B)}),[r,d,H,B]),qP((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l,isNewHeadCellMenuEnabled:s})=>{CR({focusType:gf.REMOVE_TAB,cell:vR(t)});const u=[l.atTop?2:1,e[1]],c=r?u:s?Sf:Ef;if(SR(i)){const e=n.current?gf.FOCUS:gf.ADD_TAB;n.current=!1;const o=bR(t,c);if(CR({focusType:e,cell:o}),r){var d;const e=null==o||null===(d=o.classList)||void 0===d?void 0:d.contains("selected");a({keys:[`${null==o?void 0:o.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}o(c)})({focusedCellCoord:P,rootElement:b,shouldRefocus:q,setFocusedCellCoord:I,isSelectionMode:k,keyboard:v,announce:l,totalsPosition:g,isNewHeadCellMenuEnabled:_})}),[m.length,d,c,s,_]),qP((()=>{D(z)}),[z]),qP((()=>{T({type:mf.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Bi.jsxs(TP,{ref:F,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(IR(e)){gR(e);const a=Math.ceil(t/r)-1;e.key===hf.RIGHT&&n<a?(i(),o(n+1)):e.key===hf.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===hf.ESC&&a.enabled&&!l){var s;gR(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else DR(e.key)&&gR(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:G,setShouldRefocus:W,keyboard:v,isSelectionMode:k})},"data-testid":"sn-table",children:[Bi.jsx(WP,{}),Bi.jsx(HP,{ref:N,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Bi.jsxs(BP,{styling:E,showRightBorder:L,stickyHeader:!0,"aria-label":j,children:[Bi.jsx(dD,{}),Bi.jsx(aI,{...e,setShouldRefocus:W,tableWrapperRef:F})]})}),Bi.jsx(OP,{footerContainer:a,pageInfo:r,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:G,handleChangeRowsPerPage:V,isSelectionMode:k})]})};var fD=k(pD);function mD(){return mD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mD.apply(this,arguments)}function hD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gD(e,t){return gD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gD(e,t)}function bD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gD(e,t)}var vD=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function yD(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||vD(r)&&vD(o)))return!1;var r,o;return!0}function xD(e,t){var n;void 0===t&&(t=yD);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function SD(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var ED="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function CD(e){cancelAnimationFrame(e.id)}function wD(e,t){var n=ED();var r={id:requestAnimationFrame((function o(){ED()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var RD=-1;function AD(e){if(void 0===e&&(e=!1),-1===RD||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),RD=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return RD}var PD=null;function ID(e){if(void 0===e&&(e=!1),null===PD||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?PD="positive-descending":(t.scrollLeft=1,PD=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),PD}return PD}var DD=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function LD(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,hD(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:hD(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=xD((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=xD((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=xD((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(ID()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&CD(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=wD(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}bD(t,e),t.getDerivedStateFromProps=function(e,t){return MD(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=AD();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(ID()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&CD(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?DD:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],P=w[1],I=[];if(r>0&&g)for(var D=A;D<=P;D++)for(var L=E;L<=C;L++)I.push(R(t,{columnIndex:L,data:d,isScrolling:v?x:void 0,key:f({columnIndex:L,data:d,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,L)}));var M=a(this.props,this._instanceProps),O=l(this.props,this._instanceProps);return R(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:mD({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:I,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:O}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var MD=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},OD=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},TD=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},kD=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},_D=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?qD(e,t,n,i,0,r):ND(e,t,n,Math.max(0,i),r)},qD=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=kD(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},ND=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&kD(e,t,r,n).offset<o;)r+=a,a*=2;return qD(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},FD=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=kD(e,t,n,i),u="column"===e?TD(t,i):OD(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){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}},zD=LD({getColumnOffset:function(e,t,n){return kD("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return _D("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=kD("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=kD("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:OD,getEstimatedTotalWidth:TD,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return FD("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return FD("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return kD("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return _D("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=kD("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=kD("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),jD=function(e,t){return e};function $D(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,hD(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:hD(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=xD((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=xD((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=xD((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(ID()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&CD(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=wD(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}bD(t,e),t.getDerivedStateFromProps=function(e,t){return HD(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?AD():0:s.scrollHeight>s.clientHeight?AD():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(ID()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&CD(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?jD:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var P=C;P<=w;P++)A.push(R(t,{data:c,key:p(P,c),index:P,isScrolling:b?y:void 0,style:this._getItemStyle(P)}));var I=r(this.props,this._instanceProps);return R(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:mD({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:A,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],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var HD=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},BD=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},WD=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=BD(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},GD=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&BD(e,n,t).offset<r;)n+=i,i*=2;return WD(e,t,Math.min(n,o-1),Math.floor(n/2),r)},VD=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},UD=$D({getItemOffset:function(e,t,n){return BD(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:VD,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=BD(e,t,o),p=VD(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?WD(e,t,o,0,n):GD(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=BD(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=BD(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function YD(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var KD=["style"],XD=["style"];function JD(e,t){var n=e.style,r=SD(e,KD),o=t.style,i=SD(t,XD);return!YD(n,o)&&!YD(r,i)}const ZD=({style:e})=>Bi.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var QD=x.memo(ZD,JD);const eL=()=>{},tL=e=>e.preventDefault();const nL=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const{rowsInPage:i,columns:a,bodyStyle:l,isHoverEnabled:s}=r,u=iA(tA,(e=>e.hoverIndex===t)),c=iA(tA,(e=>e.setHoverIndex)),{interactions:d}=iA(tA,(e=>e.baseProps)),p=iA(tA,(e=>e.showRightBorder)),f=null===(o=i[t])||void 0===o?void 0:o[e],{handleMouseDown:m,handleMouseOver:h,handleMouseUp:g,cellSelectionState:b}=function(e){const{interactions:t}=iA(tA,(e=>e.baseProps)),n=iA(tA,(e=>e.selectionDispatch)),r="object"==typeof e,o=iA(tA,(t=>r?_R(e,t.selectionState):ff.INACTIVE)),i=t.active&&t.select;if(r&&i){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=XP(tL,e,n,eL);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(f);if("object"==typeof f){const r=((e,t,n,r,o)=>{const{hoverColors:i,lastRowBottomBorder:a,...l}=o,s=t.qAttrExprInfoIDs.length?ZR(l,e.qAttrExps,t.qAttrExprInfoIDs):l;return r===ff.SELECTED?{...s,...Db.SELECTED}:r===ff.EXCLUDED?{...s,color:n?null==i?void 0:i.color:s.color,background:`${Db.EXCLUDED_BACKGROUND}, ${n?null==i?void 0:i.background:s.background}`}:n?{...s,...i}:s})(f,a[e],s&&u,b,l),o={rowindex:t,columnindex:e};return Bi.jsx("div",{className:`sn-table-cell ${b}`,style:{...n,...r,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:f.isLastRow?"0px":"1px",borderRightWidth:f.isLastColumn&&!p?"0px":"1px",borderStyle:"solid",justifyContent:f.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default"},onMouseDown:m,onMouseUp:g,onMouseOver:h,onMouseEnter:s?()=>c(t):void 0,onMouseLeave:s?()=>c(-1):void 0,title:d.passive?f.qText:void 0,...o,children:Bi.jsx(YP,{cell:f,style:r,virtualizedCell:!0})})}return Bi.jsx(QD,{style:{...n,...l,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var rL=x.memo(nL,JD);const oL=e=>{const t=M(e);return t.current=e,t},iL=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,aL=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},lL=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},sL=(e,t,n,r,o,i)=>{e.forEach((e=>{e.qMatrix.forEach(((a,l)=>{const s=e.qArea.qTop-t.page*t.rowsPerPage,{row:u,pageRowIdx:c}=((e,t,n,r,o,i,a,l)=>{var s;const{qSize:u}=a.qHyperCube,c=r.qTop+n,d=o+n,p=null!==(s=e[d])&&void 0!==s?s:[];return t.forEach(((e,t)=>{var n;const o=t+r.qLeft,{colIdx:a,isDim:s,isLocked:f,bodyTextAlign:m,selectionColIdx:h,qAttrExprInfoIDs:g,representation:b}=i[o],v=Ci(e);p[o]={...e,align:Li(e,m),rowIdx:c,colIdx:a,isSelectable:s&&!f,pageRowIdx:d,pageColIdx:o,selectionColIdx:h,isLastRow:c===u.qcy-1,isLastColumn:o===u.qcx-1,isNumeric:v,representation:Si(e,b,g.findIndex((e=>"url"===e)),g.findIndex((e=>"urlLabel"===e)))},l(null!==(n=e.qText)&&void 0!==n?n:"",d,o,v)})),{row:p,pageRowIdx:d}})(n,a,l,e.qArea,s,r,o,i);n[c]=u}))}))},uL=({layout:e,model:t,theme:n,initialDataPages:r,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,setCellSize:u,gridState:c})=>{const d=M([]),p=oL(u),f=O(((t,n)=>{const r=Array.isArray(n)?n.slice(0,i):(e=>Array(e).fill(void 0))(i);return sL(t,o,r,s,e,p.current),d.current=r,r}),[i,o,s,e,p]),[m,h]=E((()=>f(null!=r?r:[])));ln((()=>{h(f(null!=r?r:[]))}),[r]);const g=((e,t)=>{const n=M(new Set),r=M(new Set),o=M(new Set),i=oL(e),a=oL(t),l=S((()=>({enqueue:e=>{const t=iL(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),n=await i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach((e=>{o.current.delete(iL(e))}))}finally{r.current.delete(e)}}}),75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>h((t=>f(e,t))))),b=O(((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(lL(d.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};g.enqueue(e)}}),[d,g]),v=O(((e,t,n,r)=>{for(let i=t;i<t+r;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(aL(d.current,e,t,n,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:n};g.enqueue(t)}}}),[d,g,o]),y=n.name();return C((()=>{const{qcx:t,qcy:n}=e.qHyperCube.qSize,r=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,s=r+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-r,p=Math.min(100,u,t,l+5),f=Math.min(100,d,n,a+25);return v(i,s,p,f),()=>{g.clear()}}),[e,a,l,o,g,v,c,y]),{rowsInPage:m,loadRows:v,loadColumns:b}},cL=({style:e,columnWidths:t,rowHeight:n,pageInfo:r,rowCount:o,gridRef:i,lineRef:a,columns:l,fontWeight:s,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,allColumnsIconVisibilityStatus:f,isNewHeadCellMenuEnabled:m=!1})=>{var h;const g=M({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:b,rect:v}=iA(tA,(e=>e.baseProps)),[y,x]=E(n||24),{measureText:S,estimateLineCount:C}=tn({...e,fontWeight:s}),w=parseInt(null!==(h=e.fontSize)&&void 0!==h?h:Tb.fontSize,10)*$R,R=8e6/o-8-1,A=Math.max(0,Math.min(p,Math.round(R/w))),P=O(((e,n,r)=>{const o=l?(({isNewHeadCellMenuEnabled:e,width:t,column:n,columnIconsVisibilityStatus:r})=>{let o=0;if(!e)return o=t-71,o-=n.isLocked?24:0,Math.max(0,o);let i=0,a=0,l=0;if(r){const{shouldShowLockIcon:e,shouldShowSortIcon:t,shouldShowMenuIcon:n}=r,o=4;i=e?20+o:0,a=t?20:0,l=n?o+24:0}return o=t-25-i-a-l,Math.max(0,o)})({isNewHeadCellMenuEnabled:m,width:t[n],column:l[n],columnIconsVisibilityStatus:null==f?void 0:f[n]}):(e=>Math.max(0,e-24-1))(t[n]),i=Math.min(A,C({text:e.trim(),maxWidth:o,isNumeric:r}));return Math.max(1,i)*w+8+1}),[t,w,A,l,C,f,m]),I=O(((e,t,n,r=!1,o=!1)=>{const i=`${t}-${n}`;if(g.current.measuredCells.has(i))return;g.current.measuredCells.set(i,[e,t,n,r]);const a=P(e,n,r),l=g.current.heights[t],s=a-l;s>0?(g.current.totalHeight+=s,g.current.heights[t]=a):void 0===l&&(g.current.count+=1,g.current.totalHeight+=a,g.current.heights[t]=a),o||c||x(g.current.totalHeight/g.current.count)}),[P,c]),D=O((e=>{var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:y}),[g,y]),L=O((()=>{g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),T=oL(I),k=O((()=>{const e=new Map(g.current.measuredCells);L(),e.forEach((([e,t,n,r])=>{T.current(e,t,n,r,!0)})),c||x(g.current.totalHeight/g.current.count)}),[L,c,T]);ln((()=>{L()}),[b,r]),ln((()=>{k()}),[S,v.width]);return null!=i&&i.current?i.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):null!=a&&a.current&&a.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),d.estimatedRowHeight=y,{setCellSize:I,getRowHeight:D,rowMeta:g,estimatedRowHeight:y,maxLineCount:A,resizeVisibleCells:e=>{if(!u)return;L();const{overscanRowStartIndex:t,overscanRowStopIndex:n}=u.current,r=Math.min(n,b.qHyperCube.qSize.qcy-1);for(let n=t;n<=r;n++){var o;const t=null!==(o=e[n])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&I(null!==(t=e.qText)&&void 0!==t?t:"",n,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:k,resetRowMeta:L}};var dL;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(dL||(dL={}));const pL={enabled:!1},fL=()=>{},mL={current:null};const hL=(e,t,n,r,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=S((()=>r.reduce(((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},gL=({columnIndex:e,data:t,rowIndex:n})=>{var r;const o=null===(r=t.rowsInPage[n])||void 0===r?void 0:r[e];return`${null==o?void 0:o.qElemNumber}-${null==o?void 0:o.qText}-${n}-${e}`},bL={overflow:"hidden",willChange:"auto"};var vL=k(T(((e,t)=>{var n,r;const{rect:o,columns:i,innerForwardRef:a,pageInfo:l,bodyStyle:s,rowHeight:u,headerAndTotalsHeight:c,syncHeight:d}=e,{layout:p,model:f,theme:m,viewService:h}=iA(tA,(e=>e.baseProps)),g=iA(tA,(e=>e.columnWidths)),b=iA(tA,(e=>e.initialDataPages)),v=null===(n=h.viewState)||void 0===n?void 0:n.maxLineCount,y=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),x=M(null),E=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),w=!(null===(r=YR(p))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{scrollHandler:R,verticalScrollDirection:A,horizontalScrollDirection:P}=(()=>{const e=M(0),t=M(0),n=M(dL.None),r=M(dL.None);return{scrollHandler:O((({scrollTop:o,scrollLeft:i})=>{o>t.current?n.current=dL.Down:o<t.current?n.current=dL.Up:n.current=dL.None,i>e.current?r.current=dL.Right:i<e.current?r.current=dL.Left:r.current=dL.None,t.current=o,e.current=i}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}})(),{rowCount:I,visibleRowCount:D,visibleColumnCount:L}=hL(p,l,o,g,u),{setCellSize:T,getRowHeight:k,rowMeta:q,estimatedRowHeight:F,maxLineCount:z,resizeVisibleCells:j}=cL({pageInfo:l,style:s,rowHeight:u,columnWidths:g,gridRef:x,rowCount:I,gridState:E,isSnapshot:!!p.snapshotData,viewService:h,maxNbrLines:v,isNewHeadCellMenuEnabled:y}),{rowsInPage:$,loadRows:H,loadColumns:B}=uL({layout:p,model:f,theme:m,initialDataPages:b,pageInfo:l,rowCount:I,visibleRowCount:D,visibleColumnCount:L,columns:i,setCellSize:T,gridState:E}),W=(({layout:e,loadRows:t,loadColumns:n,verticalScrollDirection:r,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:l,viewService:s})=>O((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(l.current.overscanColumnStartIndex=u,l.current.overscanColumnStopIndex=c,l.current.overscanRowStartIndex=d,l.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(s.visibleLeft=f,s.visibleWidth=m-f+1,s.visibleTop=h+a.page*a.rowsPerPage,s.visibleHeight=g-h+1,s.page=a.page,s.rowsPerPage=a.rowsPerPage,r.current===dL.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(r.current===dL.Up){const e=x+25,n=a.page*a.rowsPerPage,r=Math.max(n,v-25);t(b,r,y,e)}if(o.current===dL.Right){const t=e.qHyperCube.qSize.qcx-b,r=y+5,o=Math.min(t,r);n(b,v,o,x)}else if(o.current===dL.Left){const t=Math.max(0,b-5),r=Math.min(e.qHyperCube.qSize.qcx,y+5);n(t,v,r,x)}}),[l,i,a.page,a.rowsPerPage,s,r,o,t,e.qHyperCube.qSize.qcx,n]))({layout:p,loadRows:H,loadColumns:B,verticalScrollDirection:A,horizontalScrollDirection:P,rowCount:I,pageInfo:l,gridState:E,viewService:h}),G=S((()=>({rowsInPage:$,columns:i,bodyStyle:s,isHoverEnabled:w,maxLineCount:z})),[$,i,s,w,z]),V=((e,t,n,r)=>{let{height:o}=e;return o-=t,n*r<o&&(o=Math.min(n*r,o)),o})(o,c,I,F);return _((()=>{var e,t;d(null!==(e=null===(t=a.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[I,d,a]),_((()=>{var e,t,n;(d(null!==(e=null===(t=a.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===q.current.lastScrollToRatio)&&(null===(n=x.current)||void 0===n||n.scrollToItem({rowIndex:I-1,align:"start"}))})),function(e){const{selectionsAPI:t}=iA(tA,(e=>e.baseProps)),n=iA(tA,(e=>e.selectionDispatch));C((()=>{n({type:mf.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),KP({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:fL,keyboard:pL,tableWrapperRef:mL})}($),ln((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[p,l,m.name(),o.width,g]),N(t,(()=>({interpolatedScrollTo:(e,t)=>{var n,r;const o=(null!==(n=null===(r=a.current)||void 0===r?void 0:r.clientHeight)&&void 0!==n?n:V)-V,i=Math.round(o*e);var l,s,u;(q.current.lastScrollToRatio=e,1===q.current.lastScrollToRatio)?(null===(l=x.current)||void 0===l||l.scrollToItem({rowIndex:I-1,align:"start"}),null===(s=x.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:i,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),j($)}})),[a,V,q,I,j,$]),Bi.jsx(zD,{"data-key":"body",ref:x,innerRef:a,style:bL,columnCount:p.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:V,rowCount:I,rowHeight:k,estimatedRowHeight:F,width:o.width,itemData:G,onItemsRendered:W,onScroll:R,itemKey:gL,className:"sn-table-body",children:rL})})));const yL=({width:e,height:t,children:n})=>Bi.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:n}),xL=sf("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"isNewHeadCellMenuEnabled"!==e})((({isNewHeadCellMenuEnabled:e,interactions:t,hoverBackground:n,background:r,applicableStyle:o})=>({...o,...e&&{background:r},"&&:hover":{...e&&{background:t.active?n:r}}}))),SL=({index:e,style:t,data:n})=>{const{columns:r,headerStyle:{...o},columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=n,{styling:l,interactions:s,styling:{head:{activeBackground:u,background:c,hoverBackground:d}}}=iA(tA,(e=>e.baseProps)),p=iA(tA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=iA(tA,(e=>e.showRightBorder)),m=iA(tA,(e=>e.columnWidths)),h=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),g=!!s.active&&!p,{open:b,setOpen:v,handleOpenMenu:y,setIsAdjustingWidth:x}=oD({isInteractionEnabled:g,columnsData:r}),S=r[e],E=r.length-1===e,C="right"===S.headTextAlign?"row-reverse":"row",{getHeadCellsIconsVisibilityStatus:w,allIconsDisabled:R}=rD({styling:l,column:S,columnWidths:m,isNewHeadCellMenuEnabled:h}),{startIcon:A,endIcon:P}=AI(S),I=w();a.current[e]=I;const D=iD(h,I.shouldShowSortIcon,S.isActivelySorted,S.headTextAlign);return Bi.jsxs(xL,{className:"sn-table-cell",title:s.passive?S.label:void 0,onClick:y,applicableStyle:o,style:{...t,cursor:h?"pointer":"default",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:E&&!f?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:S.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:C,userSelect:"none"},interactions:s,hoverBackground:d,background:b?u:c,isNewHeadCellMenuEnabled:h,children:[Bi.jsx(nD,{column:S,isInteractionEnabled:g,open:b,setOpen:v,getHeadCellsIconsVisibilityStatus:w,children:h?Bi.jsxs(lD,{children:[D("right")&&Bi.jsx(sD,{align:S.headTextAlign,children:A}),Bi.jsx(UP,{allIconsDisabled:R,headCell:!0,virtualizedCell:!0,children:S.label}),D("left")&&Bi.jsx(sD,{align:S.headTextAlign,children:P})]}):Bi.jsx(UP,{wordBreak:!0,lines:3,children:S.label})}),Bi.jsx(lI,{column:S,isLastColumn:E,onColumnResize:i,setIsAdjustingWidth:x})]})},EL=(e,t,n,r,o)=>{_((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},CL={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},wL=e=>{const{rect:t,forwardRef:n,columns:r,pageInfo:o,headerStyle:i,rowHeight:a,columResizeHandler:l,allColumnsIconVisibilityStatusRef:s}=e,{layout:u,theme:c}=iA(tA,(e=>e.baseProps)),d=iA(tA,(e=>e.columnWidths));return EL(n,u,o,d,c.name()),Bi.jsx(UD,{ref:n,layout:"horizontal",style:CL,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:a,width:t.width,itemData:{columns:r,headerStyle:i,columResizeHandler:l,allColumnsIconVisibilityStatusRef:s},children:SL})};var RL=k(wL);const AL=x.forwardRef(((e,t)=>{const{children:n,width:r,height:o,onScroll:i}=e,{interactions:a}=iA(tA,(e=>e.baseProps));return Bi.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i,children:n})})),PL=({children:e,rect:t})=>Bi.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),IL=({index:e,style:t,data:n})=>{const{layout:r,interactions:o}=iA(tA,(e=>e.baseProps)),i=iA(tA,(e=>e.showRightBorder)),a=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),{totalsStyle:{hoverColors:l,...s},columns:u,totals:c}=n,d=u[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=u[e],m=r.qHyperCube.qSize.qcx-1===e;return Bi.jsx("div",{className:"sn-table-cell",title:o.passive?d:void 0,style:{...t,...s,display:"flex",alignItems:c.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!i?"0px":"1px",borderTopWidth:c.atBottom?"1px":"0px",borderBottomWidth:c.atTop?"1px":"0px",padding:"4px 12px",justifyContent:p,boxSizing:"border-box",cursor:"default",fontWeight:Ob},children:Bi.jsx(UP,{wordBreak:!f,lines:3,...a&&{virtualizedCell:!0},children:d})})},DL=e=>{const{rect:t,forwardRef:n,pageInfo:r,totals:o,rowHeight:i,columns:a}=e,{layout:l,styling:s,theme:u}=iA(tA,(e=>e.baseProps)),c=iA(tA,(e=>e.columnWidths));return EL(n,l,r,c,u.name()),Bi.jsx(UD,{ref:n,layout:"horizontal",style:CL,itemCount:l.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{totalsStyle:s.totals,columns:a,totals:o},children:IL})};var LL=k(DL);const ML=({columns:e,columnWidths:t,pageInfo:n,headerRef:r,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s})=>{const{styling:u}=iA(tA,(e=>e.baseProps)),c=iA(tA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),d=cL({style:u.head,columnWidths:t,lineRef:r,rowCount:1,pageInfo:n,fontWeight:Ob,columns:e,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s,isNewHeadCellMenuEnabled:c}),p=cL({style:u.totals,columnWidths:t,lineRef:o,rowCount:1,pageInfo:n,fontWeight:Ob,isSnapshot:a,viewService:l,isNewHeadCellMenuEnabled:c});e.forEach(((e,t)=>{d.setCellSize(e.label,0,t),p.setCellSize(e.totalInfo,0,t,Ei(e.totalInfo))}));const f=d.getRowHeight(0)+8,m=p.getRowHeight(0);return{headerRowHeight:f,totalsRowHeight:m,bodyRowHeight:a?l.estimatedRowHeight:(({fontSize:e=Tb.fontSize})=>Math.max(24,BR(e)))(u.body),headerAndTotalsHeight:i.atTop||i.atBottom?f+m:f,resizeAllHeaderCells:d.resizeAllCells,resizeAllTotalCells:p.resizeAllCells}},OL=e=>{var t;const{pageInfo:n}=e,{totalsPosition:r,columns:o,paginationNeeded:i}=iA(tA,(e=>e.tableData)),{layout:a,theme:l,styling:s,rect:u,viewService:c}=iA(tA,(e=>e.baseProps)),d=iA(tA,(e=>e.columnWidths)),p=iA(tA,(e=>e.setYScrollbarWidth)),f=M(null),m=M(null),h=M(null),g=M(null),b=M(),{xScrollbarWidth:v,yScrollbarWidth:y}=jP(f),x=S((()=>{var e;return{...s.body,background:null!==(e=l.background.color)&&void 0!==e?e:"transparent"}}),[l.background.color,s]),C=M([]),{headerRowHeight:w,totalsRowHeight:R,bodyRowHeight:A,headerAndTotalsHeight:P,resizeAllHeaderCells:I,resizeAllTotalCells:D}=ML({columns:o,columnWidths:d,pageInfo:n,totalsPosition:r,headerRef:m,totalsRef:h,isSnapshot:!!a.snapshotData,viewService:c,allColumnsIconVisibilityStatus:C.current}),L=S((()=>((e,t)=>{const n=e.height-(t?41:0);return{width:e.width,height:n}})(u,i)),[u,i]),T=S((()=>((e,t,n)=>({width:e.width-n,height:e.height-t}))(L,v,y)),[L,v,y]),{rowCount:k}=hL(a,n,T,d,A),[q,N]=E(k*A+P),F=d.reduce(((e,t)=>e+t),0),z=((e,t,n,r)=>O((o=>{var i,a,l;const{scrollHeight:s,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(s-u)));r.scrollTopRatio=p,r.scrollLeft=d,null===(i=n.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(l=t.current)||void 0===l||l.scrollTo(d)}),[r,n,e,t]))(m,h,g,c),j=O(((e,t=!1)=>{const n=e+P;(q<T.height&&n>T.height||t)&&N(n)}),[q,P,T.height]),$=O((()=>{var e;f.current&&(f.current.scrollTop=0),null===(e=g.current)||void 0===e||e.resizeCells(),I(),D()}),[f,I,D]);_((()=>{f.current&&(f.current.scrollLeft=0,f.current.scrollTop=0)}),[o.length]);const H=l.name();_((()=>{f.current&&(f.current.scrollTop=0)}),[n,k,H]),qP((()=>{p(y)}),[y]);const B=Bi.jsx(LL,{rect:T,pageInfo:n,columns:o,forwardRef:h,totals:r,rowHeight:R});return Bi.jsx(AL,{ref:f,width:L.width,height:L.height,onScroll:z,children:Bi.jsx(yL,{width:F,height:q,children:Bi.jsxs(PL,{rect:T,children:[null!==(t=c.viewState)&&void 0!==t&&t.skipHeader?null:Bi.jsx(RL,{headerStyle:s.head,rect:T,pageInfo:n,columns:o,forwardRef:m,rowHeight:w,columResizeHandler:$,allColumnsIconVisibilityStatusRef:C}),r.atTop?B:null,Bi.jsx(vL,{ref:g,innerForwardRef:b,bodyStyle:x,rect:T,pageInfo:n,columns:o,rowHeight:A,headerAndTotalsHeight:P,syncHeight:j}),r.atBottom?B:null]})})})};var TL=k(OL);const kL=()=>{const{theme:e,keyboard:t,translator:n,interactions:r,rect:o,layout:i}=iA(tA,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=iA(tA,(e=>e.tableData)),c=iA(tA,(e=>e.pageInfo)),d=iA(tA,(e=>e.setPage));return Bi.jsxs(TP,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Bi.jsx(TL,{pageInfo:c}),Bi.jsx(OP,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:n,theme:e,interactions:r,rect:o,layout:i})]})};var _L=k(kL);var qL,NL={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 in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","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":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(qL||(qL={}));const FL=(e,n)=>t((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(NL).forEach((t=>{e.add(NL[t])}))}}(n),()=>((e,t,n)=>{let r=n||null;return({keys:n,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=n.map((e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;r===qL.FIRST?(u=s,r=qL.SECOND):(u=l,r=qL.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,n))),[e,n.language()]),zL={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},jL=({isNewHeadCellMenuEnabled:e,app:t,model:n,rootElement:l,layout:s,interactions:u,translator:c,selectionsAPI:d,theme:p,changeSortOrder:f,keyboard:m,rect:h,embed:g,reactRoot:b,applyColumnWidths:v,isFontLoaded:y,viewService:x,isLinksEnabled:S})=>{const{direction:E,footerContainer:C}=r(),w=Oi(s,x),R=Ti(s,x),A=FL(l,c),P=w?{page:x.page||zL.page,rowsPerPage:x.rowsPerPage||zL.rowsPerPage,rowsPerPageOptions:zL.rowsPerPageOptions}:zL,[I,D]=o(P),[L]=i((async()=>R?async function(e,t,n,r,o){var i,a;const{page:l,rowsPerPage:s,rowsPerPageOptions:u}=n,c=t.qHyperCube.qSize.qcx,d=t.qHyperCube.qSize.qcy,p=Math.ceil(d/s),f=null!==(i=o.visibleTop)&&void 0!==i?i:l*s,m=null!==(a=o.visibleHeight)&&void 0!==a?a:Math.min(s,d-f);if(l>0&&f>=d)return r({...n,page:0}),null;if(m*c>wi)return r({...n,rowsPerPage:Ri(c,u),page:0}),null;const h=d>10,g=Ai(t,o),b=Mi(t),v=!!t.snapshotData,y=v?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:f,qLeft:0,qHeight:m,qWidth:c}]);o&&!v&&(o.qTop=f,o.qHeight=m,o.rowsPerPage=n.rowsPerPage,o.page=n.page);const x=(null==y?void 0:y[0].qMatrix.map(((e,t)=>{const n=[];return b.forEach(((r,o)=>{n[o]={...e[o],align:Li(e[o],r.bodyTextAlign),rowIdx:t+f,colIdx:r.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:r.selectionColIdx,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===m-1,isNumeric:Ci(e[o]),representation:Si(e[o],r.representation,r.qAttrExprInfoIDs.findIndex((e=>"url"===e)),r.qAttrExprInfoIDs.findIndex((e=>"urlLabel"===e)))}})),n})))||[];return{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:h,totalsPosition:g,columns:b,rows:x}}(n,s,I,D,x):null),[s,I,n,u,R]);a((()=>{!!(R&&b&&n&&(s.snapshotData||t)&&s&&L&&f&&p&&d&&y&&g)&&function(e,t){const{app:n,model:r,direction:o,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,isLinksEnabled:v,...y}=e,x=aA(o);null==t||t.render(Bi.jsx(ys,{stylisPlugins:"rtl"===o?[xf]:void 0,children:Bi.jsx(cf,{theme:x,children:Bi.jsx(oA,{app:n,model:r,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,isNewHeadCellMenuEnabled:y.isNewHeadCellMenuEnabled,isLinksEnabled:v,children:Bi.jsx(fD,{...y,direction:o})})})}))}({app:t,model:n,rootElement:l,layout:s,tableData:L,direction:E,pageInfo:I,setPageInfo:D,interactions:u,translator:c,selectionsAPI:d,theme:p,changeSortOrder:f,keyboard:m,rect:h,footerContainer:C,announce:A,embed:g,applyColumnWidths:v,viewService:x,isNewHeadCellMenuEnabled:e,isLinksEnabled:S},b)}),[t,n,b,L,u,E,p.name(),m.active,A,f,v,R,s,d,g,l,I,D,c,h,C,y,e,S])};const $L=({model:e,layout:t,shouldRender:n,page:r})=>{const[o]=i((async()=>{if(n&&e)return(async(e,t,n)=>{let{qDataPages:r}=t.qHyperCube;if(0!==n||void 0===r||0===r.length){const o=n*Math.min(kb,t.qHyperCube.qSize.qcy);r=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:r,derivedFrom:{layout:t,page:n}}})(e,t,r)}),[e,t,r]),a=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==r;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:a}},HL=({app:e,layout:n,model:r,rect:i,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,isNewHeadCellMenuEnabled:y,isLinksEnabled:S})=>{const E=!Ti(n,v),C=t((()=>function(e,t,n){const r=Ai(e,n),o=Mi(e),i=e.qHyperCube.qSize.qcy,a=Math.min(kb,i),l=i>kb&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(n,c,v)),[n,c,v]),{pageInfo:w,setPage:R}=((e,n)=>{const[r,i]=o(0),a=Math.min(kb,e.qHyperCube.qSize.qcy),l=t((()=>({page:r,rowsPerPage:a,rowsPerPageOptions:[]})),[a,r]);if(n){const t=Math.floor(e.qHyperCube.qSize.qcy/kb);t<r&&i(t)}return{pageInfo:l,setPage:i}})(n,E),{initialDataPages:A,isLoading:P}=$L({model:r,layout:n,page:w.page,shouldRender:E});a((()=>{E&&r&&p&&A&&!P&&b&&function(e,t){const{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:S,isLinksEnabled:E}=e,C=aA("ltr");t.render(Bi.jsx(x.StrictMode,{children:Bi.jsx(cf,{theme:C,children:Bi.jsx(oA,{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:S,isLinksEnabled:E,children:Bi.jsx(_L,{})})})}))}({app:e,layout:n,model:r,rect:i,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:C,applyColumnWidths:g,setPage:R,pageInfo:w,initialDataPages:A,viewService:v,isNewHeadCellMenuEnabled:y,isLinksEnabled:S},h)}),[e,n,r,i,l.name(),s.active,u,c,d,p,E,f,m,h,C,g,R,w,P,A,b,y,S])},BL={version:JSON.stringify("3.3.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function WL(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=(null==n?void 0:n.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(s,u),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(s,u),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const GL=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},VL=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const UL=(e,t,n,r)=>{var o;if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||zL.rowsPerPage,l=null!==(o=r.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},YL=(e,t,n)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const r=Ai(e,t);if(Ti(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=WL(n,r);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:UL(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=GL(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(VL(m,h,g)?d:d+1)+c;let v=p+c;const y=GL(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(VL(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:UL(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},KL=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),XL=e=>e.getStyle("object","straightTableV2","backgroundColor");function JL(o){return{qae:{properties:{initial:BL},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:zr,exportProperties:Nr,exploration:jr},ext:co(o),component(){var y;const x=u(),S=(e=>{const n=t((()=>on(e)),[e]);return a((()=>()=>n.unmount()),[n]),n})(x),E=c(),C=d(),w=p(),R=f(),A=m(),P=h(),I=g(),{freeResize:D}=r(),L=b(),M=null!=E&&null!==(y=E.snapshotData)&&void 0!==y&&y.content&&!D?{...L,...E.snapshotData.content.size}:L,O=(e=>{const{viewState:n}=r();return t((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.rowPartialHeight)&&void 0!==n?n:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(n,e.snapshotData)),[n,e.snapshotData,e.usePagination])})(E),T=v(),k=((n,r,o)=>{const i=e();return t((()=>({...i,background:je(i,n,r,o)})),[i.name(),n,r,o])})(x,KL,XL),_=o.flags.isEnabled("CLIENT_IM_5716_TABLE_COL_WIDTH"),q=o.flags.isEnabled("CLIENT_IM_5715_LINKS"),N=((e,n,r)=>t((()=>((e,t,n)=>{if(t)return async(r,o)=>{const{isDim:i,colIdx:a,qReverseSort:l,sortDirection:s,isActivelySorted:u}=r,c=i?a:a-e,d=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,p=[],f=o&&o!==s||!o&&u;u||(d.splice(d.indexOf(a),1),d.unshift(a),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),(n&&f||!n&&u)&&p.push({qPath:`/qHyperCubeDef/${i?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!l).toString()}),t.applyPatches(p,!0)}})(e.qDimensionInfo.length,n,r)),[e.qDimensionInfo.length,n,r]))(E.qHyperCube,w,_),F=fo(E.qHyperCube,w),z=((e,t)=>{const{fontSize:n,fontFamily:r}=XR(t,e,!1),{fontSize:o,fontFamily:a}=JR(t,e),[l,s]=i((async()=>(await document.fonts.load(`600 ${n} ${r}`),await document.fonts.load(`${o} ${a}`),!0)),[n,r,o,a]);return s?(console.warn("Failed to load font:",s),!0):!!l})(k,E);null==n||n(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(".sn-table-cell");r&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{po(r)}})})),(({layout:e,viewService:t,model:n,rootElement:r,contentRect:o})=>{l((async i=>{if(!i.snapshotData||!n||i.snapshotData.content)return i;if(n.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=YL(e,t,r);i.qHyperCube.qDataPages=await n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),s((()=>({getViewState:()=>YL(e,t,r)})),[e,t,r])})({layout:E,viewService:O,model:w,rootElement:x,contentRect:L}),HL({isNewHeadCellMenuEnabled:_,isLinksEnabled:q,app:C,layout:E,model:w,rect:M,theme:k,keyboard:I,translator:A,interactions:R,selectionsAPI:P,changeSortOrder:N,rootElement:x,embed:T,reactRoot:S,applyColumnWidths:F,isFontLoaded:z,viewService:O}),jL({isNewHeadCellMenuEnabled:_,isLinksEnabled:q,app:C,model:w,rootElement:x,layout:E,interactions:R,translator:A,selectionsAPI:P,theme:k,changeSortOrder:N,keyboard:I,rect:M,embed:T,reactRoot:S,applyColumnWidths:F,isFontLoaded:z,viewService:O})}}}export{JL as default};
193
+ `),pS.rippleVisible,yS,550,(({theme:e})=>e.transitions.easing.easeInOut),pS.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),pS.child,pS.childLeaving,xS,550,(({theme:e})=>e.transitions.easing.easeInOut),pS.childPulsate,SS,(({theme:e})=>e.transitions.easing.easeInOut));var wS=y.forwardRef((function(e,t){const n=Wx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=vv(n,fS),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),m=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Bi.jsx(CS,{classes:{ripple:bc(o.ripple,pS.ripple),rippleVisible:bc(o.rippleVisible,pS.rippleVisible),ripplePulsate:bc(o.ripplePulsate,pS.ripplePulsate),child:bc(o.child,pS.child),childLeaving:bc(o.childLeaving,pS.childLeaving),childPulsate:bc(o.childPulsate,pS.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||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 l=a?null:m.current,s=l?l.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(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Bi.jsx(ES,bv({className:bc(pS.root,o.root,i),ref:m},a,{children:Bi.jsx(fm,{component:null,exit:!0,children:l})}))}));function RS(e){return xx("MuiButtonBase",e)}var AS=Sx("MuiButtonBase",["root","disabled","focusVisible"]);const PS=["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"],IS=Yx("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"},[`&.${AS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),LS=y.forwardRef((function(e,t){const n=Wx({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:I=0,TouchRippleProps:L,touchRippleRef:D,type:M}=n,T=vv(n,PS),O=y.useRef(null),k=y.useRef(null),_=ix(k,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=hx(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[H,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=H&&!u&&!s;function G(e,t,n=c){return ox((r=>{t&&t(r);return!n&&k.current&&k.current[e](r),!0}))}y.useEffect((()=>{j&&d&&!u&&H&&k.current.pulsate()}),[u,d,j,H]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=G("start",P),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=ox((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=ox((e=>{d&&!re.current&&j&&k.current&&" "===e.key&&(re.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=ox((e=>{d&&" "===e.key&&k.current&&j&&!e.defaultPrevented&&(re.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(T.href||T.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=ix(t,z,O),ue=bv({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=xd({root:["root",t&&"disabled",n&&"focusVisible"]},RS,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Bi.jsxs(IS,bv({as:ae,className:bc(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:M},le,T,{children:[i,W?Bi.jsx(wS,bv({ref:_,center:o},L)):null]}))}));var DS=LS;function MS(e){return xx("MuiTypography",e)}Sx("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const TS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],OS=Yx("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Xy(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>bv({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}))),kS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},_S={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qS=y.forwardRef((function(e,t){const n=Wx({props:e,name:"MuiTypography"}),r=(e=>_S[e]||e)(n.color),o=Dy(bv({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=kS}=o,f=vv(o,TS),m=bv({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||kS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return xd({root:["root",i,"inherit"!==e.align&&`align${Xy(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},MS,a)})(m);return Bi.jsx(OS,bv({as:h,ref:t,ownerState:m,className:bc(g.root,a)},f))}));var NS=qS;const FS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zS(e){const t=[],n=[];return Array.from(e.querySelectorAll(FS)).forEach(((e,r)=>{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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function jS(){return!0}function $S(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=zS,isEnabled:a=jS,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=id(t.ref,m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=td(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!m.current)return;const e=td(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&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 n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Bi.jsxs(y.Fragment,{children:[Bi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Bi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const HS=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=id(y.isValidElement(n)?n.ref:null,t);if(Yc((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Yc((()=>{if(i&&!o)return rd(t,i),()=>{rd(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:l};return y.cloneElement(n,e)}return Bi.jsx(y.Fragment,{children:n})}return Bi.jsx(y.Fragment,{children:i?F.createPortal(n,i):i})}));function BS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function WS(e){return parseInt(nd(e).getComputedStyle(e).paddingRight,10)||0}function GS(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&BS(e,o)}))}function VS(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function US(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=td(e);return t.body===e?nd(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=yd(td(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${WS(r)+e}px`;const t=td(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${WS(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=td(r).body;else{const t=r.parentElement,n=nd(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const YS=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&BS(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);GS(t,e.mount,e.modalRef,r,!0);const o=VS(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=VS(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=US(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=VS(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&BS(e.modalRef,t),GS(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&BS(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function KS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=YS,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=id(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=od((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||td(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=od((e=>{f.current=e,e&&(c&&w()?E():m.current&&BS(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const P=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=sS(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ui({},n,t);return Ui({role:"presentation"},r,{onKeyDown:P(r),ref:h})},getBackdropProps:(e={})=>Ui({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Qc((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Qc((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const XS=["onChange","maxRows","minRows","style","value"];function JS(e){return parseInt(e,10)||0}const ZS={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function QS(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const eE=y.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Yi(e,XS),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=id(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,n=nd(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=JS(n.paddingBottom)+JS(n.paddingTop),s=JS(n.borderBottomWidth)+JS(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=y.useCallback((()=>{const e=h();QS(e)||m((t=>g(t,e)))}),[h]);Yc((()=>{const e=()=>{p.current=0,(()=>{const e=h();QS(e)||F.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=ed(e),n=u.current,r=nd(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),Yc((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return Bi.jsxs(y.Fragment,{children:[Bi.jsx("textarea",Ui({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Ui({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Bi.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Ui({},ZS,i,{paddingTop:0,paddingBottom:0})})]})}));function tE({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var nE=y.createContext(void 0);function rE(){return y.useContext(nE)}function oE(e){return Bi.jsx(Py,bv({},e,{defaultTheme:Hx,themeId:gv}))}function iE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function aE(e,t=!1){return e&&(iE(e.value)&&""!==e.value||t&&iE(e.defaultValue)&&""!==e.defaultValue)}function lE(e){return xx("MuiInputBase",e)}var sE=Sx("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const uE=["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"],cE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Xy(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},dE=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},pE=Yx("div",{name:"MuiInputBase",slot:"Root",overridesResolver:cE})((({theme:e,ownerState:t})=>bv({},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",[`&.${sE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&bv({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),fE=Yx("input",{name:"MuiInputBase",slot:"Input",overridesResolver:dE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=bv({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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:n?.42:.5};return bv({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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${sE.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},[`&.${sE.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"})})),mE=Bi.jsx(oE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),hE=y.forwardRef((function(e,t){var n;const r=Wx({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:P,onKeyDown:I,onKeyUp:L,placeholder:D,readOnly:M,renderSuffix:T,rows:O,slotProps:k={},slots:_={},startAdornment:q,type:N="text",value:F}=r,z=vv(r,uE),j=null!=b.value?b.value:F,{current:$}=y.useRef(null!=j),H=y.useRef(),B=y.useCallback((e=>{}),[]),W=ix(H,v,b.ref,B),[G,V]=y.useState(!1),U=rE(),Y=tE({props:r,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:G,y.useEffect((()=>{!U&&d&&G&&(V(!1),w&&w())}),[U,d,G,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{aE(e)?K&&K():X&&X()}),[K,X]);Qy((()=>{$&&J({value:j})}),[j,J,$]);y.useEffect((()=>{J(H.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=bv(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=eE);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=bv({},r,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return xd({root:["root",`color${Xy(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Xy(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},lE,t)})(ee),ne=_.root||s.Root||pE,re=k.root||u.root||{},oe=_.input||s.Input||fE;return Q=bv({},Q,null!=(n=k.input)?n:u.input),Bi.jsxs(y.Fragment,{children:[!p&&mE,Bi.jsxs(ne,bv({},re,!lS(ne)&&{ownerState:bv({},ee,re.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:bc(te.root,re.className,l,M&&"MuiInputBase-readOnly"),children:[q,Bi.jsx(nE.Provider,{value:null,children:Bi.jsx(oe,bv({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:D,readOnly:M,required:Y.required,rows:O,value:j,onKeyDown:I,onKeyUp:L,type:N},Q,!lS(oe)&&{as:Z,ownerState:bv({},ee,Q.ownerState)},{ref:W,className:bc(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(hv(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):V(!0))}}))}),f,T?T(bv({},Y,{startAdornment:q})):null]}))]})}));var gE=hE;function bE(e){return xx("MuiInput",e)}var vE=bv({},sE,Sx("MuiInput",["root","underline","input"]));function yE(e){return xx("MuiOutlinedInput",e)}var xE=bv({},sE,Sx("MuiOutlinedInput",["root","notchedOutline","input"]));function SE(e){return xx("MuiFilledInput",e)}var EE=bv({},sE,Sx("MuiFilledInput",["root","underline","input"])),CE=function(e,t){function n(n,r){return Bi.jsx(eS,bv({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=eS.muiName,y.memo(y.forwardRef(n))}(Bi.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const wE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],RE={entering:{opacity:1},entered:{opacity:1}},AE=y.forwardRef((function(e,t){const n=Bx(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:b=lm}=e,v=vv(e,wE),x=y.useRef(null),S=ix(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{tS(e);const r=nS({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),A=E(m),P=E((e=>{const t=nS({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return Bi.jsx(b,bv({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:P,onExited:I,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,bv({style:bv({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},RE[e],h,a.props.style),ref:S},t))}))}));var PE=AE;function IE(e){return xx("MuiBackdrop",e)}Sx("MuiBackdrop",["root","invisible"]);const LE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],DE=Yx("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>bv({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"}))),ME=y.forwardRef((function(e,t){var n,r,o;const i=Wx({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=PE,transitionDuration:g}=i,b=vv(i,LE),v=bv({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return xd({root:["root",n&&"invisible"]},IE,t)})(v),x=null!=(n=f.root)?n:c.root;return Bi.jsx(h,bv({in:p,timeout:g},b,{children:Bi.jsx(DE,bv({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:bc(y.root,l,null==x?void 0:x.className),ownerState:bv({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var TE=ME;var OE=Sx("MuiBox",["root"]);const kE=$x(),_E=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Sv("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(xy);return y.forwardRef((function(e,a){const l=Ay(n),s=Dy(e),{className:u,component:c="div"}=s,d=Yi(s,My);return Bi.jsx(i,Ui({as:c,ref:a,className:bc(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:gv,defaultTheme:kE,defaultClassName:OE.root,generateClassName:vx.generate});var qE=_E;function NE(e){return xx("MuiButton",e)}var FE=Sx("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var zE=y.createContext({});var jE=y.createContext(void 0);const $E=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],HE=e=>bv({},"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}}),BE=Yx(DS,{shouldForwardProp:e=>Gx(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Xy(n.color)}`],t[`size${Xy(n.size)}`],t[`${n.variant}Size${Xy(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;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 bv({},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":bv({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Vy(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})`:Vy(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})`:Vy(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":bv({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${FE.focusVisible}`]:bv({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${FE.disabled}`]:bv({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 ${Vy(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,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"},[`&.${FE.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${FE.disabled}`]:{boxShadow:"none"}})),WE=Yx("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Xy(n.size)}`]]}})((({ownerState:e})=>bv({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},HE(e)))),GE=Yx("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Xy(n.size)}`]]}})((({ownerState:e})=>bv({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},HE(e)))),VE=y.forwardRef((function(e,t){const n=y.useContext(zE),r=y.useContext(jE),o=Wx({props:gx(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=vv(o,$E),S=bv({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return bv({},a,xd({root:["root",i,`${i}${Xy(t)}`,`size${Xy(o)}`,`${i}Size${Xy(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Xy(o)}`],endIcon:["endIcon",`iconSize${Xy(o)}`]},NE,a))})(S),C=g&&Bi.jsx(WE,{className:E.startIcon,ownerState:S,children:g}),w=p&&Bi.jsx(GE,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return Bi.jsxs(BE,bv({ownerState:S,className:bc(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:bc(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var UE=VE;function YE(e){return xx("MuiModal",e)}Sx("MuiModal",["root","hidden","backdrop"]);const KE=["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"],XE=Yx("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>bv({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),JE=Yx(TE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ZE=y.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Wx({name:"MuiModal",props:e}),{BackdropComponent:u=JE,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:I,slotProps:L,slots:D}=s,M=vv(s,KE),T=bv({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:k,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=KS(bv({},T,{rootRef:t})),j=bv({},T,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return xd({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},YE,r)})(j),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=_();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:XE,W=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==L?void 0:L.root)?a:b.root,V=null!=(l=null==L?void 0:L.backdrop)?l:b.backdrop,U=dS({elementType:B,externalSlotProps:G,externalForwardedProps:M,getSlotProps:O,additionalProps:{ref:t,as:h},ownerState:j,className:bc(d,null==G?void 0:G.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),Y=dS({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(bv({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:bc(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return A||I||z&&!F?Bi.jsx(HS,{ref:q,container:m,disablePortal:E,children:Bi.jsxs(B,bv({},U,{children:[!R&&u?Bi.jsx(W,bv({},Y)):null,Bi.jsx($S,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:y.cloneElement(f,H)})]}))}):null}));var QE=ZE;function eC(e){return xx("MuiDivider",e)}var tC=Sx("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const nC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],rC=Yx("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>bv({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)`:Vy(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})=>bv({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>bv({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>bv({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>bv({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),oC=Yx("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>bv({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)`}))),iC=y.forwardRef((function(e,t){const n=Wx({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=vv(n,nC),m=bv({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return xd({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},eC,r)})(m);return Bi.jsx(rC,bv({as:a,className:bc(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Bi.jsx(oC,{className:h.wrapper,ownerState:m,children:o}):null}))}));iC.muiSkipListHighlight=!0;var aC=iC;const lC=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sC=Yx(pE,{shouldForwardProp:e=>Gx(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...cE(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return bv({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}},[`&.${EE.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${EE.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.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"},[`&.${EE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${EE.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(.${EE.disabled}, .${EE.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${EE.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&bv({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}))})),uC=Yx(fE,{name:"MuiFilledInput",slot:"Input",overridesResolver:dE})((({theme:e,ownerState:t})=>bv({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}))),cC=y.forwardRef((function(e,t){var n,r,o,i;const a=Wx({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=vv(a,lC),g=bv({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return bv({},t,xd({root:["root",!n&&"underline"],input:["input"]},SE,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Ky(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:sC,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:uC;return Bi.jsx(gE,bv({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));cC.muiName="Input";var dC=cC;const pC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function fC(e){return`scale(${e}, ${e**2})`}const mC={entering:{opacity:1,transform:fC(1)},entered:{opacity:1,transform:"none"}},hC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),gC=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=lm}=e,g=vv(e,pC),b=y.useRef(),v=y.useRef(),x=Bx(),S=y.useRef(null),E=ix(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{tS(e);const{duration:n,delay:r,easing:o}=nS({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:hC?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),A=C(s),P=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=nS({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:hC?o:.666*o,delay:hC?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=fC(.75),c&&c(e)})),L=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Bi.jsx(h,bv({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:I,onExited:L,onExiting:P,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,bv({style:bv({opacity:0,transform:fC(.75),visibility:"exited"!==e||a?void 0:"hidden"},mC[e],f,o.props.style),ref:E},t))}))}));gC.muiSupportAuto=!0;var bC=gC;const vC=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],yC=Yx(pE,{shouldForwardProp:e=>Gx(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...cE(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),bv({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"},[`&.${vE.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vE.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${vE.disabled}, .${vE.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${vE.disabled}:before`]:{borderBottomStyle:"dotted"}})})),xC=Yx(fE,{name:"MuiInput",slot:"Input",overridesResolver:dE})({}),SC=y.forwardRef((function(e,t){var n,r,o,i;const a=Wx({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=vv(a,vC),b=(e=>{const{classes:t,disableUnderline:n}=e;return bv({},t,xd({root:["root",!n&&"underline"],input:["input"]},bE,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Ky(null!=f?f:u,v):v,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:yC,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:xC;return Bi.jsx(gE,bv({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));SC.muiName="Input";var EC=SC;function CC(e){return xx("MuiLink",e)}var wC=Sx("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const RC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var AC=({theme:e,ownerState:t})=>{const n=(e=>RC[e]||e)(t.color),r=Lv(e,`palette.${n}`,!1)||t.color,o=Lv(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Vy(r,.4)};const PC=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],IC=Yx(NS,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Xy(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>bv({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&bv({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:AC({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"},[`&.${wC.focusVisible}`]:{outline:"auto"}}))),LC=y.forwardRef((function(e,t){const n=Wx({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=vv(n,PC),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=hx(),[b,v]=y.useState(!1),x=ix(t,g),S=bv({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return xd({root:["root",`underline${Xy(o)}`,"button"===n&&"button",r&&"focusVisible"]},CC,t)})(S);return Bi.jsx(IC,bv({color:o,className:bc(E.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(RC).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var DC=LC;var MC=y.createContext({});function TC(e){return xx("MuiList",e)}Sx("MuiList",["root","padding","dense","subheader"]);const OC=["children","className","component","dense","disablePadding","subheader"],kC=Yx("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>bv({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var _C=y.forwardRef((function(e,t){const n=Wx({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=vv(n,OC),c=y.useMemo((()=>({dense:a})),[a]),d=bv({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xd({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},TC,t)})(d);return Bi.jsx(MC.Provider,{value:c,children:Bi.jsxs(kC,bv({as:i,className:bc(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function qC(e){return xx("MuiListItemIcon",e)}var NC=Sx("MuiListItemIcon",["root","alignItemsFlexStart"]);const FC=["className"],zC=Yx("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>bv({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var jC=y.forwardRef((function(e,t){const n=Wx({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=vv(n,FC),i=bv({},n,{alignItems:y.useContext(MC).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return xd({root:["root","flex-start"===t&&"alignItemsFlexStart"]},qC,n)})(i);return Bi.jsx(zC,bv({className:bc(a.root,r),ownerState:i,ref:t},o))}));var $C=Sx("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const HC=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function BC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function WC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function GC(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function VC(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&GC(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var UC=y.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=vv(e,HC),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Qy((()=>{r&&p.current.focus()}),[r]),y.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Jy(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=ix(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Bi.jsx(_C,bv({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Jy(t).activeElement;if("ArrowDown"===n)e.preventDefault(),VC(t,r,s,l,BC);else if("ArrowUp"===n)e.preventDefault(),VC(t,r,s,l,WC);else if("Home"===n)e.preventDefault(),VC(t,null,s,l,BC);else if("End"===n)e.preventDefault(),VC(t,null,s,l,WC);else if(1===n.length){const o=f.current,i=n.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 s=r&&!o.repeating&&GC(r,o);o.previousKeyMatched&&(s||VC(t,r,!1,l,BC,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function YC(e){return xx("MuiPopover",e)}Sx("MuiPopover",["root","paper"]);const KC=["onEntering"],XC=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],JC=["slotProps"];function ZC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function QC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ew(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function tw(e){return"function"==typeof e?e():e}const nw=Yx(QE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rw=Yx(aS,{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});var ow=y.forwardRef((function(e,t){var n,r,o;const i=Wx({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=bC,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=vv(i.TransitionProps,KC),P=vv(i,XC),I=null!=(n=null==x?void 0:x.paper)?n:b,L=y.useRef(),D=ix(L,I.ref),M=bv({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),T=(e=>{const{classes:t}=e;return xd({root:["root"],paper:["paper"]},YC,t)})(M),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=tw(l),t=(e&&1===e.nodeType?e:Jy(L.current).body).getBoundingClientRect();return{top:t.top+ZC(t,s.vertical),left:t.left+QC(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=y.useCallback((e=>({vertical:ZC(e,S.vertical),horizontal:QC(e,S.horizontal)})),[S.horizontal,S.vertical]),_=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=k(t);if("none"===c)return{top:null,left:null,transformOrigin:ew(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Zy(tw(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:ew(n)}}),[l,c,O,k,h]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=L.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{F()})),t=Zy(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?Jy(tw(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:nw,H=null!=(o=null==v?void 0:v.paper)?o:rw,B=dS({elementType:H,externalSlotProps:bv({},I,{style:q?I.style:bv({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:M,className:bc(T.paper,null==I?void 0:I.className)}),W=dS({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:M,className:bc(T.root,p)}),{slotProps:G}=W,V=vv(W,JC);return Bi.jsx($,bv({},V,!lS($)&&{slotProps:G,disableScrollLock:R},{children:Bi.jsx(E,bv({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},A,{children:Bi.jsx(H,bv({},B,{children:d}))}))}))}));function iw(e){return xx("MuiMenu",e)}Sx("MuiMenu",["root","paper","list"]);const aw=["onEntering"],lw=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],sw={vertical:"top",horizontal:"right"},uw={vertical:"top",horizontal:"left"},cw=Yx(ow,{shouldForwardProp:e=>Gx(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dw=Yx(rw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),pw=Yx(UC,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var fw=y.forwardRef((function(e,t){var n,r;const o=Wx({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=vv(o.TransitionProps,aw),S=vv(o,lw),E=Bx(),C="rtl"===E.direction,w=bv({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return xd({root:["root"],paper:["paper"],list:["list"]},iw,t)})(w),A=i&&!s&&d,P=y.useRef(null);let I=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const L=null!=(n=b.paper)?n:dw,D=null!=(r=v.paper)?r:p,M=dS({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),T=dS({elementType:L,externalSlotProps:D,ownerState:w,className:R.paper});return Bi.jsx(cw,bv({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?sw:uw,slots:{paper:L,root:b.root},slotProps:{root:M,paper:T},open:d,ref:t,transitionDuration:m,TransitionProps:bv({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:w},S,{classes:f,children:Bi.jsx(pw,bv({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===I||s),autoFocusItem:A,variant:g},u,{className:bc(R.list,u.className),children:a}))}))}));function mw(e){return xx("MuiMenuItem",e)}var hw=Sx("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const gw=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],bw=Yx(DS,{shouldForwardProp:e=>Gx(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>bv({},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"}},[`&.${hw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${hw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${hw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vy(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})`:Vy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${hw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${hw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${tC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${tC.inset}`]:{marginLeft:52},[`& .${$C.root}`]:{marginTop:0,marginBottom:0},[`& .${$C.inset}`]:{paddingLeft:36},[`& .${NC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&bv({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${NC.root} svg`]:{fontSize:"1.25rem"}}))));var vw=y.forwardRef((function(e,t){const n=Wx({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=vv(n,gw),f=y.useContext(MC),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);Qy((()=>{r&&h.current&&h.current.focus()}),[r]);const g=bv({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return bv({},a,xd({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},mw,a))})(n),v=ix(h,t);let x;return n.disabled||(x=void 0!==c?c:-1),Bi.jsx(MC.Provider,{value:m,children:Bi.jsx(bw,bv({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:bc(b.focusVisible,s),className:bc(b.root,d)},p,{ownerState:g,classes:b}))})}));function yw(e){return xx("MuiNativeSelect",e)}var xw=Sx("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Sw=["className","disabled","error","IconComponent","inputRef","variant"],Ew=({ownerState:e,theme:t})=>bv({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":bv({},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"},[`&.${xw.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}}),Cw=Yx("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Gx,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${xw.multiple}`]:t.multiple}]}})(Ew),ww=({ownerState:e,theme:t})=>bv({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${xw.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Rw=Yx("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Xy(n.variant)}`],n.open&&t.iconOpen]}})(ww),Aw=y.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=vv(e,Sw),u=bv({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return xd({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Xy(n)}`,i&&"iconOpen",r&&"disabled"]},yw,t)})(u);return Bi.jsxs(y.Fragment,{children:[Bi.jsx(Cw,bv({ownerState:u,className:bc(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Bi.jsx(Rw,{as:i,ownerState:u,className:c.icon})]})}));var Pw,Iw=Aw;const Lw=["children","classes","className","label","notched"],Dw=Yx("fieldset",{shouldForwardProp:Gx})({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%"}),Mw=Yx("legend",{shouldForwardProp:Gx})((({ownerState:e,theme:t})=>bv({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&&bv({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 Tw=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ow=Yx(pE,{shouldForwardProp:e=>Gx(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:cE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return bv({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xE.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xE.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${xE.focused} .${xE.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${xE.error} .${xE.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xE.disabled} .${xE.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&bv({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),kw=Yx((function(e){const{className:t,label:n,notched:r}=e,o=vv(e,Lw),i=null!=n&&""!==n,a=bv({},e,{notched:r,withLabel:i});return Bi.jsx(Dw,bv({"aria-hidden":!0,className:t,ownerState:a},o,{children:Bi.jsx(Mw,{ownerState:a,children:i?Bi.jsx("span",{children:n}):Pw||(Pw=Bi.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}})),_w=Yx(fE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:dE})((({theme:e,ownerState:t})=>bv({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}))),qw=y.forwardRef((function(e,t){var n,r,o,i,a;const l=Wx({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=vv(l,Tw),b=(e=>{const{classes:t}=e;return bv({},t,xd({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},yE,t))})(l),v=rE(),x=tE({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=bv({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(n=null!=(r=m.root)?r:s.Root)?n:Ow,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:_w;return Bi.jsx(gE,bv({slots:{root:E,input:C},renderSuffix:e=>Bi.jsx(kw,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Bi.jsxs(y.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:bv({},b,{notchedOutline:null})}))}));qw.muiName="Input";var Nw=qw;function Fw(e){return xx("MuiSelect",e)}var zw,jw=Sx("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const $w=["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"],Hw=Yx("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${jw.select}`]:t.select},{[`&.${jw.select}`]:t[n.variant]},{[`&.${jw.error}`]:t.error},{[`&.${jw.multiple}`]:t.multiple}]}})(Ew,{[`&.${jw.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Bw=Yx("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Xy(n.variant)}`],n.open&&t.iconOpen]}})(ww),Ww=Yx("input",{shouldForwardProp:e=>Vx(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 Gw(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Vw(e){return null==e||"string"==typeof e&&!e.trim()}const Uw=y.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:P,renderValue:I,SelectDisplayProps:L={},tabIndex:D,value:M,variant:T="standard"}=e,O=vv(e,$w),[k,_]=rx({controlled:M,default:c,name:"Select"}),[q,N]=rx({controlled:A,default:u,name:"Select"}),F=y.useRef(null),z=y.useRef(null),[j,$]=y.useState(null),{current:H}=y.useRef(null!=A),[B,W]=y.useState(),G=ix(t,h),V=y.useCallback((e=>{z.current=e,e&&$(e)}),[]),U=null==j?void 0:j.parentNode;y.useImperativeHandle(G,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),y.useEffect((()=>{u&&q&&j&&!H&&(W(a?null:U.clientWidth),z.current.focus())}),[j,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Jy(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),H||(W(a?null:U.clientWidth),N(e))},K=y.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==n&&(_(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),E(o,e)}v||Y(!1,t)}},J=null!==j&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(aE({value:k})||p)&&(I?Z=I(k):te=!0);const ne=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(hv(2));t=k.some((t=>Gw(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Gw(k,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=B;!a&&H&&j&&(oe=U.clientWidth),re=void 0!==D?D:d?null:0;const ie=L.id||(x?`mui-component-select-${x}`:void 0),ae=bv({},e,{variant:T,value:k,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return xd({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Xy(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Fw,t)})(ae),se=bv({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=nx();return Bi.jsxs(y.Fragment,{children:[Bi.jsx(Hw,bv({ref:V,tabIndex:re,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":r,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:x}}),S(e))},onFocus:w},L,{ownerState:ae,className:bc(L.className,le.select,s),id:ie,children:Vw(Z)?zw||(zw=Bi.jsx("span",{className:"notranslate",children:"​"})):Z})),Bi.jsx(Ww,bv({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),Bi.jsx(Bw,{as:m,className:le.icon,ownerState:ae}),Bi.jsx(fw,bv({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:bv({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:bv({},b.slotProps,{paper:bv({},se,{style:bv({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var Yw=Uw;const Kw=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Xw=["root"],Jw={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Gx(e)&&"variant"!==e,slot:"Root"},Zw=Yx(EC,Jw)(""),Qw=Yx(Nw,Jw)(""),eR=Yx(dC,Jw)(""),tR=y.forwardRef((function(e,t){const n=Wx({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=CE,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=vv(n,Kw),A=b?Iw:Yw,P=tE({props:n,muiFormControl:rE(),states:["variant","error"]}),I=P.variant||w,L=bv({},n,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(L),M=vv(D,Xw),T=d||{standard:Bi.jsx(Zw,{ownerState:L}),outlined:Bi.jsx(Qw,{label:f,ownerState:L}),filled:Bi.jsx(eR,{ownerState:L})}[I],O=ix(t,T.ref);return Bi.jsx(y.Fragment,{children:y.cloneElement(T,bv({inputComponent:A,inputProps:bv({children:o,error:P.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:bv({id:c},C)},p,{classes:p?Ky(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:O,className:bc(T.props.className,a,D.root)},!d&&{variant:I},R))})}));tR.muiName="Select";var nR=tR,rR=(e={})=>x.createElement(tv,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Fb.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const oR={MuiAccordion:{styleOverrides:{root:{backgroundColor:Fb.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Fb.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(Zb,{"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 ${Fb.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Fb.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Fb.MISC_FOCUS_BORDER}`,borderRadius:Bb,backgroundColor:Fb.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 ${Fb.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Fb.WHITE,color:Fb.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:Bb},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Fb.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Fb.GREYSCALE_0_15,backgroundColor:Fb.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Fb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Fb.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Fb.GREEN_PALE},"&:active":{backgroundColor:Fb.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Fb.GREEN_PALE,boxShadow:`0 0 0 3px ${Vy(Fb.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Fb.BLUE_PALE},"&:active":{backgroundColor:Fb.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Fb.BLUE_PALE,boxShadow:`0 0 0 3px ${Vy(Fb.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:Bb,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Fb.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Fb.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Fb.GREYSCALE_0_15,backgroundColor:Fb.GREYSCALE_100_60,"&:active":{backgroundColor:Fb.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Fb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Fb.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Fb.PURPLE,"&.Mui-focusVisible":{borderColor:Fb.PURPLE,boxShadow:`0 0 0 3px ${Vy(Fb.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Fb.GREEN,"&.Mui-focusVisible":{borderColor:Fb.GREEN,boxShadow:`0 0 0 3px ${Vy(Fb.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Fb.BLUE,"&.Mui-focusVisible":{borderColor:Fb.BLUE,boxShadow:`0 0 0 3px ${Vy(Fb.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Fb.ORANGE,"&.Mui-focusVisible":{borderColor:Fb.ORANGE,boxShadow:`0 0 0 3px ${Vy(Fb.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Fb.RED,"&.Mui-focusVisible":{borderColor:Fb.RED,boxShadow:`0 0 0 3px ${Vy(Fb.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Fb.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Fb.PURPLE_PALE},"&:active":{backgroundColor:Fb.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Fb.PURPLE_PALE,boxShadow:`0 0 0 3px ${Vy(Fb.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Fb.GREEN_PALE},"&:active":{backgroundColor:Fb.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Fb.GREEN_PALE,boxShadow:`0 0 0 3px ${Vy(Fb.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Fb.BLUE_PALE},"&:active":{backgroundColor:Fb.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Fb.BLUE_PALE,boxShadow:`0 0 0 3px ${Vy(Fb.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Fb.ORANGE_PALE},"&:active":{backgroundColor:Fb.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Fb.ORANGE_PALE,boxShadow:`0 0 0 3px ${Vy(Fb.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Fb.RED_PALE},"&:active":{backgroundColor:Fb.RED_DARK},"&.Mui-focusVisible":{borderColor:Fb.RED_PALE,boxShadow:`0 0 0 3px ${Vy(Fb.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:Fb.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Fb.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Bb,boxShadow:`inset 0 0 0 2px ${Fb.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(ev,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:zb,borderRadius:Bb,color:Fb.TEXT_PRIMARY,backgroundColor:Fb.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Fb.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Fb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Fb.GREYSCALE_0_05,color:Fb.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Fb.GREEN,borderColor:Fb.GREEN},"&.MuiChip-outlinedInfo":{color:Fb.BLUE,borderColor:Fb.BLUE},"&.MuiChip-outlinedWarning":{color:Fb.ORANGE,borderColor:Fb.ORANGE},"&.MuiChip-outlinedError":{color:Fb.RED,borderColor:Fb.RED}},outlined:{border:`solid 1px ${Fb.GREYSCALE_0_15}`,backgroundColor:Fb.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Bb,boxShadow:"none",backgroundColor:Fb.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Fb.GREEN,borderColor:Fb.GREEN},outlinedSecondary:{color:Fb.BLUE,borderColor:Fb.BLUE},label:{fontFamily:Yb.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(ev,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(Zb,{"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:Bb},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Bb,fontSize:jb,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Fb.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Fb.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Fb.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Fb.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Fb.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Bb,border:`solid 1px ${Fb.GREYSCALE_0_15}`,color:Fb.GREYSCALE_0_60,marginRight:0,width:Hb,height:Hb},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Fb.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Bb,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Fb.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:jb}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:zb,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Fb.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Fb.GREYSCALE_25,fontSize:zb,fontFamily:Yb.FONT_FAMILY,fontWeight:Vb,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Fb.TEXT_PRIMARY},"&.Mui-error":{color:Fb.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Fb.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Gb,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Fb.TEXT_SECONDARY,content:"'(required)'",fontWeight:Gb,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:jb,lineHeight:"16px",backgroundColor:Fb.WHITE,borderRadius:Bb,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Fb.GREYSCALE_0_05}`,borderColor:Fb.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Fb.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Fb.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Fb.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Fb.RED}`,boxShadow:`0px 0px 0px 1px ${Fb.RED}, inset 0 2px 0 0 ${Fb.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Fb.GREYSCALE_0_10}`,borderColor:Fb.GREYSCALE_0_10,backgroundColor:Fb.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Fb.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Fb.GREYSCALE_0_15,borderRadius:Bb,boxShadow:`inset 0 2px 0 0 ${Fb.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(Zb,{...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:Fb.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Fb.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Fb.GREYSCALE_0_03},"&:active":{backgroundColor:Fb.GREYSCALE_0_10},"&:focus":{backgroundColor:Fb.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Fb.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Fb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Fb.GREYSCALE_0_30,"&:hover":{backgroundColor:Fb.GREYSCALE_0_0,borderColor:Fb.GREYSCALE_0_15},"& ~svg":{color:Fb.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Fb.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Bb}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Fb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Fb.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Fb.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:jb,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:zb,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:zb,fontWeight:Vb,color:Fb.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Vb}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Fb.GREYSCALE_0_15}, 0px 0px 0px 1px ${Fb.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(ov,null),checkedIcon:x.createElement(iv,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Fb.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Fb.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Fb.GREEN_PALE,boxShadow:`0 0 0 3px ${Vy(Fb.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Fb.BLUE_PALE,boxShadow:`0 0 0 3px ${Vy(Fb.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Fb.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Fb.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(rR,null),checkedIcon:x.createElement(nv,null),indeterminateIcon:x.createElement(rv,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Bb,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Fb.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Fb.GREYSCALE_0_55,color:Fb.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:Fb.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Fb.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Fb.GREYSCALE_0_55,"&:hover":{color:Fb.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:Fb.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Fb.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:jb,color:Fb.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Vb},secondary:{fontSize:zb,color:Fb.GREYSCALE_45,fontWeight:Gb,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:jb,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Fb.GREYSCALE_0_03},"&:active":{backgroundColor:Fb.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:jb,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Fb.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:zb,borderBottom:`solid 1px ${Fb.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:jb,color:Fb.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Fb.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Fb.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Fb.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Fb.RED}}},"&.Mui-focusVisible":{backgroundColor:Fb.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:Fb.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:Fb.GREEN,height:"24px","&.Mui-disabled":{color:Fb.GREYSCALE_0_15}},rail:{backgroundColor:Fb.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Fb.GREYSCALE_0_05}`,borderRadius:Bb,boxShadow:`inset 0px 0px 0px 1px ${Fb.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Fb.GREYSCALE_0_05}`,borderRadius:Bb},thumb:{height:"16px",width:"16px",borderRadius:Bb,backgroundColor:Fb.WHITE,boxShadow:`0px 1px 2px 0px ${Fb.GREYSCALE_0_15}, 0px 0px 0px 1px ${Fb.GREYSCALE_0_05}`,"&:hover":{borderRadius:Bb,boxShadow:`0 2px 4px 0 ${Fb.GREYSCALE_0_30}, 0 0 0 1px ${Fb.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Fb.GREYSCALE_0_15}, 0 0 0 1px ${Fb.GREYSCALE_0_06}, 0 0 0 2px ${Fb.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Fb.GREYSCALE_0_15}, 0 0 0 1px ${Fb.GREYSCALE_0_06}, 0 0 0 2px ${Fb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Fb.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Fb.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Fb.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Fb.GREYSCALE_0_15},markLabel:{color:Fb.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Fb.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Fb.WHITE,color:Fb.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:Fb.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:Fb.GREEN_PALE,boxShadow:`0 0 0 3px ${Vy(Fb.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Fb.BLUE_PALE,boxShadow:`0 0 0 3px ${Vy(Fb.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Fb.GREYSCALE_0_15,borderRadius:Bb},thumb:{height:"16px",width:"16px",borderRadius:Bb,backgroundColor:Fb.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:jb,fontWeight:Vb,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Fb.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Fb.MISC_FOCUS_BORDER}`,backgroundColor:Fb.GREYSCALE_0_03,borderRadius:Bb},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Fb.GREYSCALE_25,"&.Mui-selected":{color:Fb.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:jb,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Fb.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Fb.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Fb.GREYSCALE_85}`,borderRight:`1px solid ${Fb.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Vb,backgroundColor:Fb.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:Fb.GREYSCALE_98,borderBottom:`1px solid ${Fb.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Fb.GREYSCALE_85}`,borderTop:`1px solid ${Fb.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Fb.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Fb.GREYSCALE_0_05,"&:hover":{backgroundColor:Fb.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Fb.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(av,{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 ${Fb.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:jb,borderRadius:Bb,padding:"7px 16px",border:`1px solid ${Fb.GREYSCALE_0_15}`,backgroundColor:Fb.GREYSCALE_100_60,color:Fb.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Fb.GREYSCALE_0_10,border:`1px solid ${Fb.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Fb.GREYSCALE_0_03,border:`1px solid ${Fb.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Fb.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Fb.MISC_FOCUS_BORDER}`,border:`1px solid ${Fb.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Fb.GREYSCALE_25,backgroundColor:Fb.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Fb.GREYSCALE_0_10,border:`1px solid ${Fb.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:zb,height:24,width:24,padding:7},sizeLarge:{fontSize:$b,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:jb,borderRadius:Bb}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Fb.GREYSCALE_20},tooltip:{backgroundColor:Fb.GREYSCALE_20,fontSize:zb,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var iR=e=>oR;const aR={mode:"light",primary:{light:Fb.GREEN_PALE,main:Fb.GREEN,dark:Fb.GREEN_DARK,contrastText:Fb.WHITE},secondary:{light:Fb.BLUE_PALE,main:Fb.BLUE,dark:Fb.BLUE_DARK,contrastText:Fb.WHITE},error:{light:Fb.RED_PALE,main:Fb.RED,dark:Fb.RED_DARK,contrastText:Fb.WHITE},warning:{light:Fb.ORANGE_PALE,main:Fb.ORANGE,dark:Fb.ORANGE_DARK,contrastText:Fb.WHITE},success:{light:Fb.GREEN_PALE,main:Fb.GREEN,dark:Fb.GREEN_DARK,contrastText:Fb.WHITE},info:{light:Fb.BLUE_PALE,main:Fb.BLUE,dark:Fb.BLUE_DARK,contrastText:Fb.WHITE},text:{primary:Fb.TEXT_PRIMARY,secondary:Fb.TEXT_SECONDARY,disabled:Fb.GREYSCALE_0_30},action:{hover:Fb.GREYSCALE_0_03,hoverOpacity:.05,selected:Fb.GREYSCALE_0_05,focus:Fb.MISC_FOCUS_BORDER},amethyst:{main:Fb.PURPLE,light:Fb.PURPLE_PALE,dark:Fb.PURPLE_DARK,contrastText:Fb.WHITE},background:{paper:Fb.WHITE,default:Fb.GREYSCALE_95},divider:Fb.GREYSCALE_0_15},lR=e=>({components:iR(),palette:aR,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:jb,fontWeightLight:Wb,fontWeightRegular:Gb,fontWeightMedium:Vb,fontWeightBold:Ub,htmlFontSize:jb,fontFamily:Yb.FONT_FAMILY,button:{fontWeight:Vb,fontSize:jb,textTransform:"none"},body1:{fontSize:$b,lineHeight:"24px"},body2:{fontSize:jb,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Hb,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:$b,fontWeight:Vb,lineHeight:"16px"},h6:{fontSize:jb,fontWeight:Vb,lineHeight:"16px"},caption:{color:Fb.TEXT_SECONDARY},subtitle1:{fontSize:jb,color:Fb.TEXT_SECONDARY},subtitle2:{fontSize:zb,color:Fb.TEXT_SECONDARY}},shape:{borderRadius:Bb}}),sR={...Nb,MISC_FOCUS_BORDER:Fb.MISC_FOCUS_BORDER},uR=lR().palette,cR={TEXT:uR.text.primary,DISABLED:uR.text.disabled,HOVER:uR.action.hover,WHITE:sR.GREYSCALE_100,BORDER_LIGHT:sR.GREYSCALE_90,BORDER_MEDIUM:sR.GREYSCALE_85,BORDER_HEAVY:sR.GREYSCALE_50,DARK_MODE_TEXT:sR.GREYSCALE_95,DARK_MODE_BORDER:sR.GREYSCALE_95,DARK_MODE_DISABLED:sR.GREYSCALE_70,DARK_MODE_BACKGROUND:sR.GREYSCALE_20},dR=(e,t)=>{const n=qe(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},pR=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,fR=e=>{const t=pR.exec(e);if(t){const[,e,n,r,o]=t;return se(+n,+r,+o,+e/255)}return se(e)},mR=e=>{const t=fR(e);return Number.isNaN(t.r)?null:t.toString()},hR=e=>{if(void 0===e)return;const t=fR(e);return t.opacity=1,t.toString()},gR=(e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)},bR=e=>{e.stopPropagation(),e.preventDefault()},vR=(e,t)=>{var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},yR=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),xR=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?xR(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},SR=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?SR(t):t},ER=e=>!e.enabled||e.active,CR=e=>{setTimeout((()=>{var t;const n=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${Ir}`);null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)},wR=({focusType:e,cell:t})=>{if(t)switch(e){case bf.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case bf.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case bf.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case bf.ADD_TAB:t.setAttribute("tabIndex","0");break;case bf.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},RR=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:o,allowedRows:i})=>{const a=((e,t,n,r={top:0,bottom:0})=>{const o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length;let[a,l]=n;switch(e.key){case gf.DOWN:a<o-1-r.bottom&&a++;break;case gf.UP:a>r.top&&a--;break;case gf.RIGHT:if(r.top>0)break;l<i-1?l++:a<o-1&&(a++,l=0);break;case gf.LEFT:if(r.top>0)break;l>0?l--:a>0&&(a--,l=i-1)}return[a,l]})(e,t,n,i),l=vR(t,a);return wR({focusType:o,cell:l}),r(a),l},AR=(e,t)=>{let n=yR(e);const r=n?((e,t)=>{const n=e.getElementsByClassName("sn-table-head-cell").length,r=e.getElementsByClassName("sn-table-cell");let o=0;for(let e=0;e<r.length;e++)if(r[e]===t){o=e;break}return[Math.ceil(o/n),o%n]})(e,n):Cf;n=n||vR(e,Cf),wR({cell:n,focusType:bf.FOCUS}),t(r)},PR=(e,t,n,r)=>{var o;(wR({focusType:bf.REMOVE_TAB,cell:yR(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):wR({focusType:bf.ADD_TAB,cell:vR(t,e)})},IR=e=>e.ctrlKey||e.metaKey,LR=e=>e.shiftKey&&IR(e),DR=e=>[gf.LEFT,gf.RIGHT,gf.UP,gf.DOWN].includes(e),MR=e=>e.shiftKey&&DR(e.key),TR=(e,t=!1)=>e.key===gf.ESC&&!t||(e.key===gf.LEFT||e.key===gf.RIGHT)&&LR(e),OR=(e,t,n)=>{if(n)return bf.FOCUS;const r=t.key===gf.UP&&1===e[0],o=t.key===gf.LEFT&&1===e[0]&&0===e[1];return r||o?bf.FOCUS_BUTTON:bf.FOCUS},kR=({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s,isNewHeadCellMenuEnabled:u})=>{const c=l.atTop?2:1,d=[n.pageRowIdx+c,n.pageColIdx],p={top:s?c:0,bottom:s&&l.atBottom?1:0},f=OR(d,e,u);f===bf.FOCUS&&wR({focusType:bf.REMOVE_TAB,cell:e.currentTarget});const m=RR({evt:e,rootElement:t,cellCoord:d,setFocusedCellCoord:i,focusType:f,allowedRows:p});e.key!==gf.UP&&e.key!==gf.DOWN||(e.key===gf.UP&&((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(null==n||!n.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[r])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-a.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})([n.pageRowIdx,n.pageColIdx],t),((e,t,n)=>t.shiftKey&&(t.key===gf.UP&&0!==n.pageRowIdx||t.key===gf.DOWN&&!n.isLastRow)&&e&&n.isSelectable)(o,e,n)?r({type:hf.SELECT_MULTI_ADD,payload:{cell:n,evt:e,announce:a}}):((e,t,n=!1)=>{n&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,m,s))},_R=({evt:e,rootElement:t,setFocusedCellCoord:n,keyboard:r,isSelectionMode:o,paginationNeeded:i,isNewHeadCellMenuEnabled:a})=>{if((null==r?void 0:r.enabled)&&o&&(e.shiftKey||!e.shiftKey&&!i))bR(e),gR(e.currentTarget,r,e.shiftKey);else if(e.shiftKey&&!a){n([0,t.querySelectorAll(".sn-table-head-cell").length-1])}},qR=(e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=mf.INACTIVE;return null!=o&&o.isModal()&&(i=n!==e.selectionColIdx?mf.EXCLUDED:void 0!==r[e.qElemNumber]?mf.SELECTED:mf.POSSIBLE),i},NR=(e,t,n)=>{const r=Object.keys(n).length,o=r>=Object.keys(t).length;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},FR=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==n||n.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...r}}return s=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?{[r]:o}:(void 0!==e[r]?delete e[r]:e[r]=o,{...e})})(s,i,l),NR(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==n||n.cancel(),{...e,rows:s,colIdx:-1})},zR=(e,t)=>{var n;const{api:r,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&MR(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&MR(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===gf.DOWN?1:-1;return i[e[n.pageRowIdx+t][n.pageColIdx].qElemNumber]=n.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),l=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=l;t++){const n=e[t][o.pageColIdx];i[n.qElemNumber]=n.rowIdx}return i})(a,d,s,c,l),NR(u,o,d),{...e,rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0}):e},jR=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},$R=(e,t)=>{var n;switch(t.type){case hf.SELECT:return FR(e,t.payload);case hf.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case hf.SELECT_MOUSE_UP:return((e,t)=>jR(e.isSelectMultiValues||e.firstCell!==t.cell?e:FR(e,t)))(e,t.payload);case hf.SELECT_MULTI_ADD:return zR(e,t.payload);case hf.SELECT_MULTI_END:return jR(e);case hf.RESET:return null!==(n=e.api)&&void 0!==n&&n.isModal()?e:{...e,rows:{},colIdx:-1};case hf.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case hf.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},HR=4/3,BR={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},WR=e=>parseInt(e,10)*HR+8+1,GR=e=>!!e&&(null!==e.color||e.index>-1);function VR(e,t,n={}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const UR=e=>ze(e)?cR.WHITE:cR.TEXT,YR=(e,t)=>e?{borderBottomColor:cR.DARK_MODE_BORDER,borderRightColor:cR.DARK_MODE_BORDER,borderLeftColor:cR.DARK_MODE_BORDER,borderTopColor:cR.DARK_MODE_BORDER}:{borderLeftColor:cR.BORDER_MEDIUM,borderRightColor:cR.BORDER_MEDIUM,borderTopColor:cR.BORDER_HEAVY,borderBottomColor:t?cR.BORDER_HEAVY:cR.BORDER_LIGHT},KR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},XR=(e,t,n,r=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:GR(null==n?void 0:n.fontColor)?VR(cR.TEXT,t,null==n?void 0:n.fontColor):i||cR.TEXT,fontSize:(null==n?void 0:n.fontSize)&&`${n.fontSize}px`||a,padding:n&&"padding"in n?null==n?void 0:n.padding:void 0,...YR(t.background.isDark,r)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function JR(e,t,n,r){var o,i;const a=null===(o=KR(e))||void 0===o?void 0:o.header,l=XR("header",t,a,n);var s,u;(l.background=t.background.isTransparent?cR.WHITE:hR(t.background.color),null!=r&&r.isNewHeadCellMenuEnabled)&&(l.hoverBackground=dR(null!==(s=l.background)&&void 0!==s?s:cR.WHITE,BR.hover),l.activeBackground=dR(null!==(u=l.background)&&void 0!==u?u:cR.WHITE,BR.active));return l.color=null!==(i=l.color)&&void 0!==i?i:ze(l.background)?cR.DARK_MODE_TEXT:cR.TEXT,l}function ZR(e,t,n,r){var o;const i=null===(o=KR(e))||void 0===o?void 0:o.content,a=XR("content",t,i);a.background=t.background.color;const l=((e,t,n)=>{if(e&&t&&n)return WR(e)*(t+2)<n.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,n,r),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=GR(u)||!!d,f=GR(s)||!!c,m=p||f;let h;h=GR(s)?VR(cR.HOVER,t,s):c||(p?"":cR.HOVER);const g=m?VR(UR(h),t,GR(u)?u:d):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}function QR(e,t,n){var r;const o={};return null==t||null===(r=t.qValues)||void 0===r||r.forEach(((e,t)=>{const r=e.qText&&mR(e.qText);r&&"none"!==r&&(o[n[t]]=r)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=UR(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background}}const eA=(e,t,n,r,o)=>{const i=S((()=>{const i=n.totalsPosition.atTop,a=ZR(e,t,n.rows.length,r),l=JR(e,t,!i,o),s=function(e,t,n){var r;const o=null===(r=KR(e))||void 0===r?void 0:r.content,i=XR("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=JR(e,t,n);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,i);return{body:a,head:l,totals:s}}),[e,t.name(),n,r]);return i},tA=new Map;const nA=D({}),rA=function(e){const t=D([()=>{},new Set]);return tA.set(e,t),({children:n,value:r})=>{const o=M(r),i=M(new Set);C((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=T((()=>o.current),[o]),l=S((()=>[a,i.current]),[a]);return Bi.jsx(e.Provider,{value:r,children:Bi.jsx(t.Provider,{value:l,children:n})})}}(nA),oA={rows:[],columns:[],totalsPosition:{}},iA=({app:e,children:t,tableData:n=oA,selectionsAPI:r,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,isNewHeadCellMenuEnabled:x,isLinksEnabled:C})=>{const w=S((()=>({isNewHeadCellMenuEnabled:x,isLinksEnabled:C})),[x,C]),[R,A]=E(0),[P,I]=E(o||Ef),[D,M]=((e,t)=>{const[n,r]=L($R,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n,r]})(n.rows,r),[T,O]=E(-1),k=eA(i,u,n,d,w),[_,q,N,F]=((e,t,n,{head:r,body:o},i)=>{const a=t.atBottom||t.atTop,l=tn({...r,fontWeight:Ob},{maxNbrLinesOfText:3}).measureText,s=tn({...o,fontWeight:Ob},{maxNbrLinesOfText:3}).measureText,{estimateWidth:u}=tn(r,{maxNbrLinesOfText:3}),c=S((()=>(e,t,n,r,o)=>{let c=25;return c+=28,r&&(c+=24),o&&(c+=20),i||(c=r?99:71),Math.max(l(e)+c,a?s(t)+24+1:0,u(n))}),[u,l,s,a,i]),[d,p]=E(0),[f,m]=E((()=>qb(e,n,c,i)));ln((()=>{m(qb(e,n-d,c,i))}),[e,n,d,c]);const h=S((()=>((e,t,n)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<n)(f,d,n)),[f,d,n]);return[f,m,p,h]})(n.columns,n.totalsPosition,v.width,k,x),z=S((()=>({app:e,selectionsAPI:r,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,styling:k,rect:v,viewService:y})),[e,r,i,a,l,s,u.name(),c.active,d,p,f,m,k,v,y]);return Bi.jsx(rA,{value:{headRowHeight:R,setHeadRowHeight:A,focusedCellCoord:P,setFocusedCellCoord:I,selectionState:D,selectionDispatch:M,hoverIndex:T,setHoverIndex:O,columnWidths:_,setColumnWidths:q,baseProps:z,tableData:n,setYScrollbarWidth:N,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:F,featureFlags:w},children:t})};function aA(e,t){const n=function(e){return tA.get(e)}(e),[r,o]=w(n),[,i]=L((e=>e+1),0),a=M(t),l=M(),s=r();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=S((()=>t(s)),[s,t]);return C((()=>{a.current=t,l.current=u}),[s,u,t]),C((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function lA(e){var t;const n=Ib();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),Ip({...n,direction:e})}const sA=Yx(qE,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${Lr}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${Lr}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),uA=Yx(qE)({position:"absolute",height:"100%",width:"3px"}),cA=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=S((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=r||o?Dr.PixelsMin:Dr.PixelsMinTable,f=n?0:1,m={left:r&&!c?d.columnWidth-f:"100%"},h=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:Mr.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},b=e=>{const t=e.clientX-d.initX;h(t)},v=e=>{bR(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=e.touches[0].clientX-d.initX;h(t)},E=e=>{bR(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",E),g()},C=!r&&s?e=>{if(e.key===Pr.LEFT||e.key===Pr.RIGHT){bR(e);const t=d.columnWidth-d.initWidth,n=5,r=e.key===Pr.LEFT?t-n:t+n;h(r)}else e.key===Pr.SPACE||e.key===Pr.ENTER?(bR(e),s(e),g()):e.key===Pr.ESC&&(bR(e),s(e),h(d.initWidth))}:void 0;return x.createElement(sA,{className:Ir,isLastColumn:n,hoverColor:i,style:m,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:Mr.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",E),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:C,onBlur:s,"data-testid":Ir},x.createElement(uA,{className:Lr}))};function dA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"}))));function fA(){return fA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fA.apply(this,arguments)}const mA=Yx(qE,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),hA=Yx(pA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),gA=Yx(fw)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),bA=Yx(aC)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),vA=Yx(vw)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),yA=Yx(vw,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({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:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),xA=Yx("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),SA=Yx("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),EA=Yx(NS)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),CA=Yx(jC)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function wA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const RA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let AA={};const PA=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=E(!1),p=M(null),f=T((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(yA,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),AA={}),null!=a&&a.length&&(d(!0),AA[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(xA,null),x.createElement(SA,null,x.createElement(CA,null,x.createElement(o,null)),x.createElement(EA,{variant:"body2"},r)),null!=a&&a.length?x.createElement(RA,null):null),(null==a?void 0:a.length)&&x.createElement(LA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=AA,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},IA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&x.createElement(vA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>x.createElement(PA,fA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),LA=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?x.createElement(gA,fA({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[IA({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?x.createElement(bA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,DA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},MA=(e,t)=>e.some((e=>t[e]>0));function TA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function kA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _A=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function qA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function FA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function jA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $A=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function HA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const BA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function WA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){WA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function VA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const UA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){VA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function YA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const KA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function XA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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 ZA=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const QA=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(n[ZA.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:OA,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:zA,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[ZA.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:$A,enabled:!0}]}]),n[ZA.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:JA,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:BA,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:KA,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:GA,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:UA,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:_A,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[ZA.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:NA,enabled:!0}]}]),p},eP=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=un({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:S,updateSelectionActionsEnabledStatus:w}=(({headerData:e,app:t})=>{const[n,r]=E(null),[o,i]=E(DA);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:T((()=>i(DA)),[]),updateSelectionActionsEnabledStatus:T((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:MA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:MA(["qSelected"],n.qStateCounts),canSelectPossible:MA(["qOption"],n.qStateCounts),canSelectAlternative:MA(["qAlternative"],n.qStateCounts),canSelectExcluded:MA(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),R=T((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);C((()=>{e||(S(),null!=d&&d.model&&d.model.getLayout().then((e=>{w(e)})).catch((e=>console.error(e))))}),[e,S,w,null==d?void 0:d.model]);const A=T((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(mA,{rightAligned:"right"===h,shouldShowMenuIcon:s},s&&x.createElement(hA,{height:Rr,className:Ar,"data-testid":Ar,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(pA,null)),x.createElement(LA,{open:e,anchorEl:n.current,onClose:A,menuGroups:QA({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},tP=e=>e.isDark?{background:e.color,borderColor:cR.DARK_MODE_BORDER,color:cR.DARK_MODE_TEXT,disabledColor:cR.DARK_MODE_DISABLED,iconColor:cR.DARK_MODE_TEXT}:{background:e.color,borderColor:cR.BORDER_MEDIUM,color:cR.TEXT,disabledColor:cR.DISABLED},nP=Yx(qE,{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}`}))),rP=Yx(nR,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),oP=Yx(UE,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),iP=Yx(NS)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),aP=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=S((()=>tP(r.background)),[r]);if(!n.active)return null;const a=o?x.createElement(nP,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},lP=D({}),sP=()=>w(lP),uP=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=S((()=>tP(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=un({translator:d}),E=S((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return x.createElement(lP.Provider,{value:E},e)};let cP=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),dP=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}({});function pP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fP=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function mP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hP=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function gP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bP=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gP(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),vP={FirstPage:hP,PreviousPage:fP,NextPage:RA,LastPage:bP,FirstPageRTL:bP,PreviousPageRTL:RA,NextPageRTL:fP,LastPageRTL:hP},yP=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=sP(),u=vP[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},xP=()=>{const{pageInfo:e,width:t}=sP(),n=0===e.page,{IconComponent:r,styledProps:o}=yP({type:cP.FirstPage,disabledCondition:n,pageNumber:0});return t<=dP.FirstPage?null:x.createElement(oP,o,x.createElement(r,{height:Rr}))},SP=(e,t,n=!1)=>{n&&e.key===Pr.TAB&&!e.shiftKey&&(bR(e),gR(e.target,t,!1))},EP=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=sP(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=yP({type:cP.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>SP(e,t,r):null;return o<=dP.LastPage?null:x.createElement(oP,fA({},l,{onKeyDown:s}),x.createElement(a,{height:Rr}))},CP=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=sP(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=yP({type:cP.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>dP.FirstPage&&o>dP.LastPage)&&t.enabled?e=>SP(e,t,r):null;return x.createElement(oP,fA({},l,{onKeyDown:s}),x.createElement(a,{height:Rr}))},wP=()=>{const{pageInfo:e}=sP(),t=0===e.page,{IconComponent:n,styledProps:r}=yP({type:cP.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(oP,r,x.createElement(n,{height:Rr}))},RP=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=sP(),{page:o,rowsPerPage:i}=n;if(t<=dP.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return x.createElement(iP,{variant:"caption"},a)},AP=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=sP(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(iP,{variant:"caption",id:d},u,":"),x.createElement(rP,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},PP=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=sP();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>dP.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(AP,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},IP=1e3,LP="…",DP=({totalPages:e,page:t})=>{const n=Math.min(e,IP),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-IP):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:LP,disabled:!0},LP)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:LP,disabled:!0},LP)),x.createElement(x.Fragment,null,a)},MP=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=sP(),{page:o}=e;if(t<=dP.SelectPage)return null;const i=x.createElement(DP,{totalPages:n,page:o});return x.createElement(AP,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};var TP=k((e=>x.createElement(uP,e,x.createElement(PP,null),x.createElement(MP,null),x.createElement(RP,null),x.createElement(xP,null),x.createElement(wP,null),x.createElement(CP,null),x.createElement(EP,null))));const OP=e=>x.createElement(aP,e,x.createElement(TP,e)),kP=uf(Sh,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.tableColorFromTheme}))),_P=uf(Sh,{shouldForwardProp:e=>"isNewHeadCellMenuEnabled"!==e&&"lines"!==e&&"allIconsDisabled"!==e&&"wordBreak"!==e&&"headCell"!==e&&"isPagination"!==e&&"virtualizedCell"!==e})((({isNewHeadCellMenuEnabled:e,lines:t,wordBreak:n,allIconsDisabled:r=!1,headCell:o=!1,isPagination:i=!1,virtualizedCell:a=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(e?o||a:n||1===t)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:e&&o&&i?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",...e&&{whiteSpace:r||a?"normal":"nowrap"}}}))),qP=uf(Sh)({overflow:"hidden",textOverflow:"ellipsis"});function NP(e,t){const n=M(!1);C((()=>{n.current?e():n.current=!0}),t)}const FP=(e,t,n)=>{C((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth;let{scrollLeft:o}=n,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))})(e,"rtl"===t,r),i=e=>{var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}),[e,t,n])},zP=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===gf.DOWN||n===gf.UP){const t=e=>n===gf.DOWN?xR(e):SR(e);bR(e);let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},jP=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,isInteractionEnabled:o,handleOpenMenu:i,isNewHeadCellMenuEnabled:a})=>{var l;if(!o)return void bR(e);if(TR(e))return;const s=!(null!==(l=e.currentTarget.closest(".sn-table-cell"))&&void 0!==l&&l.nextSibling);switch(e.key){case gf.LEFT:case gf.RIGHT:bR(e),e.key===gf.RIGHT&&s&&!a?AR(t,r):(a&&wR({focusType:bf.REMOVE_TAB,cell:e.currentTarget}),RR({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:a?bf.FOCUS:bf.FOCUS_BUTTON}));break;case gf.DOWN:bR(e),wR({focusType:bf.REMOVE_TAB,cell:yR(t)}),RR({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:bf.FOCUS});break;case!a&&gf.TAB:((e,t,n,r,o)=>{const i=e.currentTarget.classList.contains("sn-table-head-label");i&&e.shiftKey&&n[1]>0?r([n[0],n[1]-1]):i||e.shiftKey||(o?(bR(e),AR(t,r)):r([n[0],n[1]+1]))})(e,t,n,r,s);break;case gf.C:bR(e),IR(e)&&po(e.currentTarget);break;case a&&gf.ENTER:case a&&gf.SPACE:i&&i(e)}},$P=e=>{const{layout:t,rect:n,theme:r}=aA(nA,(e=>e.baseProps)),o=r.name(),[i,a]=E(0),[l,s]=E(0);return _((()=>{if(e.current){var t;const{offsetWidth:n=0,offsetHeight:r=0,clientWidth:o=0,clientHeight:i=0}=null!==(t=e.current)&&void 0!==t?t:{},l=r-i;s(n-o),a(l)}}),[e,t,n,o]),{xScrollbarWidth:i,yScrollbarWidth:l}},HP=uf("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),BP=uf(ub,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),WP=uf(Vg,{shouldForwardProp:e=>"showRightBorder"!==e&&"styling"!==e})((({showRightBorder:e,styling:t})=>({tableLayout:"fixed",width:"min-content",borderRight:e?`1px solid ${t.body.borderRightColor}`:void 0}))),GP=()=>Bi.jsxs(Bi.Fragment,{children:[Bi.jsx(HP,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Bi.jsx(HP,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),VP=e=>e.stopPropagation(),UP=({href:e,text:t,interactions:n,color:r})=>x.createElement(DC,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:VP,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),YP=({children:e,fontSize:t="",wordBreak:n=!1,isPagination:r=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:l=!1})=>{const s=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled));if(s&&a)return Bi.jsx(_P,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:r,isNewHeadCellMenuEnabled:!0,headCell:!0,allIconsDisabled:l,children:e});const u=parseInt(t||Tb,10),c=Bi.jsx(_P,{component:"span",className:"sn-table-cell-text",wordBreak:n,lines:i,...s&&{virtualizedCell:o,allIconsDisabled:l},children:e});return n?c:Bi.jsx(qP,{minHeight:u*Mb,maxHeight:u*Mb*i,children:c})},KP=({cell:e,style:t,virtualizedCell:n})=>{var r;const{isNewHeadCellMenuEnabled:o,isLinksEnabled:i}=aA(nA,(e=>e.featureFlags)),{interactions:a,viewService:l}=aA(nA,(e=>e.baseProps)),s=aA(nA,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let u=e.representation.text;return e.representation.type===gi.Link&&i&&!s&&(u=Bi.jsx(UP,{href:e.representation.url,text:e.representation.text,interactions:a,color:t.cellForegroundColor})),Bi.jsx(YP,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:null===(r=l.viewState)||void 0===r?void 0:r.maxLineCount,...o&&{virtualizedCell:n},children:u})},XP=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:hf.RESET})},a=()=>{t({type:hf.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))n();else if(r.enabled){var t;null===(t=r.blur)||void 0===t||t.call(r,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,r,t,n,o])},JP=(e,t,n,r)=>({handleMouseDown:r=>{null==e||e(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>n({type:hf.SELECT_MULTI_END});n({type:hf.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:hf.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:hf.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}),ZP=uf(Qg,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),QP=uf(Eb,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),eI=uf(ib,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...kb,...e,padding:t.spacing(.5,1.5),verticalAlign:"top"}))),tI=uf(ib,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...kb,...e,fontWeight:Ob,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&n,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function nI(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i}=t,a=aA(nA,(e=>qR(n,e.selectionState))),l=aA(nA,(e=>e.selectionDispatch)),{handleMouseDown:s,handleMouseOver:u,handleMouseUp:c}=JP(i,n,l,o),d=function(e,t){let n={};switch(t){case mf.SELECTED:n=Db.SELECTED;break;case mf.POSSIBLE:n=Db.POSSIBLE;break;case mf.EXCLUDED:n={background:`${Db.EXCLUDED_BACKGROUND}, ${e.background}`,selectedCellClass:mf.EXCLUDED}}return{...e,...n}}(r,a);return Bi.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:s,onMouseOver:u})}}function rI(e,t){let n=(r=eI,e=>{const{styling:{selectedCellClass:t,...n},component:o,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return Bi.jsx(r,{cellStyle:n,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${t||""}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var r;return t&&(n=nI(n)),e&&(n=function(e){return t=>{const{cell:n,column:r,styling:o}=t,i=S((()=>QR(o,n.qAttrExps,r.qAttrExprInfoIDs)),[o,n.qAttrExps,r.qAttrExprInfoIDs]);return Bi.jsx(e,{...t,styling:i})}}(n)),n}const oI=()=>{const{columns:e,totalsPosition:{atTop:t},rows:n}=aA(nA,(e=>e.tableData)),{rootElement:r,selectionsAPI:o,keyboard:i,styling:a,interactions:l}=aA(nA,(e=>e.baseProps)),s=aA(nA,(e=>e.headRowHeight)),u=aA(nA,(e=>e.setFocusedCellCoord)),c=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled));return Bi.jsx(Eb,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,d)=>{const p=[t?1:n.length+1,d],f=t&&0===d&&!i.enabled?0:-1;return Bi.jsx(tI,{totalsStyle:a.totals,headRowHeight:s,atTop:t,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:c?-1:f,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,n,r,o,i=!1)=>{if(i)bR(e);else if(!TR(e))switch(e.key){case gf.LEFT:case gf.RIGHT:case gf.UP:case gf.DOWN:{bR(e);const i=OR(n,e,o);i===bf.FOCUS&&wR({focusType:bf.REMOVE_TAB,cell:e.currentTarget}),RR({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:i});break}case gf.TAB:_R({evt:e,rootElement:t,setFocusedCellCoord:r,isNewHeadCellMenuEnabled:o});break;case gf.C:bR(e),IR(e)&&po(e.currentTarget);break;case gf.SPACE:e.preventDefault()}})(e,r,p,u,c,null==o?void 0:o.isModal())},onMouseDown:()=>{PR(p,r,u,i)},children:Bi.jsx(YP,{wordBreak:!e.isTotalNumeric,fontSize:a.totals.fontSize,children:e.totalInfo})},e.id)}))})};var iI=k(oI);const aI=({setShouldRefocus:e,tableWrapperRef:t,announce:n})=>{var r;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=aA(nA,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styling:{body:{hoverColors:f,lastRowBottomBorder:m,...h}}}=aA(nA,(e=>e.baseProps)),g=aA(nA,(e=>e.setFocusedCellCoord)),b=aA(nA,(e=>e.selectionDispatch)),v=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),y=!!p.active&&!!p.select,x=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),E=S((()=>JSON.parse(x).map((e=>rI(e.some((e=>"cellBackgroundColor"===e||"cellForegroundColor"===e)),y)))),[x,y]),C=!(null===(r=KR(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect);return XP({keyboard:c,selectionDispatch:b,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Bi.jsxs(ZP,{lastRowBottomBorder:m,children:[l.atTop?Bi.jsx(iI,{}):void 0,o.map(((e,t)=>Bi.jsx(QP,{hoverColors:f,hover:C,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,children:i.map(((r,o)=>{const{id:i}=r,d=e[o],f=E[o],m=v||0!==t||0!==o||l.atTop||c.enabled?-1:0,x=QR({},d.qAttrExps,r.qAttrExprInfoIDs);return f&&Bi.jsx(f,{scope:0===o?"row":void 0,component:0===o?"th":void 0,cell:d,column:r,align:d.align,styling:h,tabIndex:m,announce:n,title:p.passive?d.representation.text:void 0,onKeyDown:e=>{(({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c,isNewHeadCellMenuEnabled:d})=>{if(e.currentTarget.classList.contains("excluded"))return void bR(e);const p=null==c?void 0:c.isModal();if(!TR(e,p))switch(e.key){case gf.UP:case gf.DOWN:case gf.LEFT:case gf.RIGHT:bR(e),kR({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:p,isNewHeadCellMenuEnabled:d});break;case gf.SPACE:bR(e),n.isSelectable&&o&&r({type:hf.SELECT,payload:{cell:n,evt:e,announce:a}});break;case gf.ENTER:bR(e),p&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case gf.ESC:bR(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case gf.TAB:_R({evt:e,rootElement:t,setFocusedCellCoord:i,keyboard:l,isSelectionMode:p,paginationNeeded:s,isNewHeadCellMenuEnabled:d});break;case gf.C:bR(e),IR(e)&&po(e.currentTarget)}})({evt:e,rootElement:u,selectionsAPI:s,cell:d,selectionDispatch:b,isSelectionsEnabled:y,setFocusedCellCoord:g,announce:n,keyboard:c,paginationNeeded:a,totalsPosition:l,isNewHeadCellMenuEnabled:v})},onKeyUp:e=>((e,t)=>{e.key===gf.SHIFT&&t({type:hf.SELECT_MULTI_END})})(e,b),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;PR([l,a],t,n,r)})(d,u,g,c,l),children:Bi.jsx(KP,{cell:d,style:x})},i)}))},`row-${t}`))),l.atBottom?Bi.jsx(iI,{}):void 0]})};var lI=k(aI);const sI=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=aA(nA,(e=>e.baseProps)),l=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),s=aA(nA,(e=>e.columnWidths)),u=aA(nA,(e=>e.setColumnWidths));if(!a.active)return null;return Bi.jsx(cA,{columnWidth:s[o],isLastColumn:t,keyValue:`adjuster-${o}`,isNewHeadCellMenuEnabled:l,updateWidthCallback:e=>{null==n||n();const t=[...s];t[o]=e,u(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>((e,t)=>{var n;e.setAttribute("tabIndex","-1");const r=e.closest(".sn-table-cell");let o=null;var i;t?(o=r,null===(i=o)||void 0===i||i.setAttribute("tabIndex","0")):o=null==r?void 0:r.querySelector(".sn-table-head-menu-button"),null===(n=o)||void 0===n||n.focus()})(e.currentTarget,l),setIsAdjustingWidth:r})};function uI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){uI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function dI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function fI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),x.createElement("use",{fillRule:"evenodd"})))),hI=uf("div")({position:"absolute",left:0,bottom:0}),gI=uf(Th,{shouldForwardProp:e=>!["isActivelySorted","textAlign","disabled","isNewHeadCellMenuEnabled"].includes(e)})((({isActivelySorted:e,textAlign:t,disabled:n,theme:r,isNewHeadCellMenuEnabled:o})=>({textAlign:t,height:"auto",...!o&&{maxWidth:"100%"},fontSize:"inherit",fontFamily:"inherit",padding:r.spacing(.5,1),color:"inherit",alignItems:"flex-end",cursor:n?"auto":"pointer",justifySelf:t,alignSelf:"center","&&:focus, &&:hover":{...o&&{background:"transparent",boxShadow:"none"},"& svg":{...!o&&{opacity:e?1:.5}}},"& svg":{opacity:e?1:0,fontSize:Tb},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:n?"hidden":"visible"}}))),bI=uf("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),vI=uf(Sh,{shouldForwardProp:e=>"isLocked"!==e&&"isNewHeadCellMenuEnabled"!==e&&"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e})((({theme:e,isLocked:t,isNewHeadCellMenuEnabled:n,shouldShowMenuIcon:r,shouldShowLockIcon:o})=>{const i=r?"24px":"";let a="",l="",s=null;return n?(a=o?`20px 2fr ${i}`:`1fr ${i}`,l=o?`${i} 2fr 20px`:`${i} 1fr`,s=o):(a=t?"20px 2fr 24px":"1fr 24px",l=t?"24px 2fr 20px":"24px 1fr",s=t),{width:"100%",display:"grid",flexDirection:"inherit",gridAutoFlow:"dense",gap:e.spacing(.5),fontSize:"inherit",fontFamily:"inherit",...n&&{alignItems:"end",overflow:"hidden"},"&&:hover, &&:focus-within":{"& .sn-table-head-menu-button":{opacity:1}},"& > div:last-child":{alignSelf:"flex-end"},"&.aligned-left":{gridTemplateColumns:a},"&.aligned-center":{gridTemplateColumns:"24px 2fr 24px","& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:l,"& > div:first-child":{gridColumn:s?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}}})),yI=uf("div")({display:"flex",alignSelf:"flex-end"}),xI=uf(Sh)({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),SI=uf(Sh,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),EI=uf(Th,{shouldForwardProp:e=>"isVisible"!==e&&"isNewHeadCellMenuEnabled"!==e})((({isVisible:e,isNewHeadCellMenuEnabled:t})=>({opacity:e?1:0,...!t&&{"&:focus":{opacity:1}}}))),CI=uf(Gh)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),wI=uf(zg)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),RI=uf("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),AI=uf(lg)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0})));uf("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const PI=({sortDirection:e,isLocked:t,headTextAlign:n})=>{const r="A"===e?Bi.jsx(cI,{height:Tb}):Bi.jsx(pI,{height:Tb}),o=t?Bi.jsx(xI,{className:`aligned-${n}`,children:Bi.jsx(mI,{height:Tb,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===n?{startIcon:r,lockIcon:o}:{endIcon:r,lockIcon:o}};function II(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const LI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){II(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function DI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const MI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){DI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function TI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M2 6.5h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1"}))));function kI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _I=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function qI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function FI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function jI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $I=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function HI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const BI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function WI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){WI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"})))),VI=new Map,UI={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},YI=(e,t)=>e.some((e=>t[e]>0));function KI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){KI(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let JI={};const ZI=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a})=>{const[l,s]=E(!1),u=M(null);return Bi.jsxs(Bi.Fragment,{children:[Bi.jsxs(wI,{ref:a?u:null,"data-testid":`menu-item-${t}`,className:"sn-table-head-menu-item",onClick:e=>{n&&(n(e),JI={}),null!=a&&a.length&&(s(!0),JI[r]=s)},disabled:!i,autoFocus:e,onKeyDown:zP,children:[Bi.jsxs(RI,{children:[Bi.jsx(AI,{children:o}),Bi.jsx(Xm,{variant:"body2",children:r})]}),null!=a&&a.length?Bi.jsx(XI,{}):null]},t),(null==a?void 0:a.length)&&Bi.jsx(tL,{anchorEl:u.current,open:l,onClose:()=>s(!1),menuGroups:(c=a,d=JI,c.map((e=>e.map((({onClick:e,...t})=>({...t,...e?{onClick:t=>{Object.entries(d).map((([,e])=>e(!1))),e(t)}}:{}})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"}})]});var c,d},QI=({menuGroup:e})=>e.map((e=>Bi.jsx(ZI,{...e},e.id))),eL=({itemGroups:e})=>e.map(((t,n)=>[QI({menuGroup:t}),n<e.length-1?Bi.jsx(CI,{"data-testid":"group-divider",variant:"middle"},"divider"):void 0])),tL=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,buttonId:a,menuId:l})=>r.length?Bi.jsx(kg,{className:"sn-table-head-menu",id:l,open:t,anchorEl:e,onClose:n,"aria-labelledby":a,...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},children:eL({itemGroups:r})}):null,nL=({column:e,tabIndex:t})=>{const{isDim:n,qLibraryId:r,fieldId:o,headTextAlign:i,pageColIdx:a}=e,{translator:l,embed:s,model:u,interactions:c,layout:d}=aA(nA,(e=>e.baseProps)),p=M(null),f=M(null),[m,h]=E(!1),[g,b]=E(!1),{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:w}=((e,t)=>{const{app:n,layout:r}=aA(nA,(e=>e.baseProps)),[o,i]=E(null),[a,l]=E(UI);return C((()=>{if(!(n&&n.getField&&e&&e.isDim&&t))return;const{qLibraryId:o,fieldId:a}=e;if(o){const e=`${n.id}-${o}`;VI.get(e)?i(VI.get(e)):n.createSessionObject(((e,t="$")=>({qInfo:{qType:"tableListbox"},qListObjectDef:{qLibraryId:e,qStateName:t}}))(o,r.qStateName)).then((t=>{const n={selectAll:()=>t.selectListObjectAll("/qListObjectDef"),clear:()=>t.clearSelections("/qListObjectDef").then((e=>e)),selectPossible:()=>t.selectListObjectPossible("/qListObjectDef"),selectAlternative:()=>t.selectListObjectAlternative("/qListObjectDef"),selectExcluded:()=>t.selectListObjectExcluded("/qListObjectDef")};i(n),VI.set(e,n)}))}else n.getField(a,r.qStateName).then(i)}),[n,e,r.qStateName,t]),{fieldInstance:o,selectionActionsEnabledStatus:a,resetSelectionActionsEnabledStatus:T((()=>l(UI)),[]),updateSelectionActionsEnabledStatus:t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&l({canSelectAll:YI(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:YI(["qSelected"],n.qStateCounts),canSelectPossible:YI(["qOption"],n.qStateCounts),canSelectAlternative:YI(["qAlternative"],n.qStateCounts),canSelectExcluded:YI(["qAlternative","qExcluded"],n.qStateCounts)})}}})(e,m),R=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),A=T((()=>{const e=r?{qLibraryId:r,type:"dimension"}:o;s.__DO_NOT_USE__.popover(f.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},stateName:d.qStateName}),s.on("fieldPopoverClose",(()=>{b(!1)}))}),[s,o,r,d.qStateName]),P=S((()=>[...n&&c.select?[[{id:1,itemTitle:l.get("SNTable.MenuItem.Search"),onClick:e=>{e.stopPropagation(),h(!1),b(!0),A()},icon:Bi.jsx(_I,{}),enabled:!0}],[{id:1,itemTitle:l.get("SNTable.MenuItem.Selections"),icon:Bi.jsx(GI,{}),enabled:!0,subMenus:[[{id:1,itemTitle:l.get("SNTable.MenuItem.SelectAll"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectAll())},icon:Bi.jsx(NI,{}),enabled:y.canSelectAll},{id:2,itemTitle:l.get("SNTable.MenuItem.SelectPossible"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectPossible())},icon:Bi.jsx(BI,{}),enabled:y.canSelectPossible},{id:3,itemTitle:l.get("SNTable.MenuItem.SelectAlternative"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectAlternative())},icon:Bi.jsx(zI,{}),enabled:y.canSelectAlternative},{id:4,itemTitle:l.get("SNTable.MenuItem.SelectExcluded"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectExcluded())},icon:Bi.jsx($I,{}),enabled:y.canSelectExcluded}],[{id:1,itemTitle:l.get("SNTable.MenuItem.ClearSelections"),onClick:async()=>{h(!1),await(null==v?void 0:v.clear())},icon:Bi.jsx(LI,{}),enabled:y.canClearSelections}]]}]]:[],[{id:1,itemTitle:l.get("SNTable.MenuItem.AdjustColumnSize"),onClick:e=>{bR(e),h(!1),CR(p)},icon:Bi.jsx(MI,{}),enabled:!0}]]),[n,c.select,l,y,A,v]);C((()=>{m||x()}),[m,x]);const I=d.qInfo.qId,L=`sn-table-head-menu-button-${a}-${I}`,D=`sn-table-head-menu-${a}-${I}`;return P.length?Bi.jsxs(SI,{rightAligned:"right"===i,children:[Bi.jsx(EI,{isVisible:g||m,ref:p,size:"small",tabIndex:t,className:"sn-table-head-menu-button",id:L,"aria-controls":m?D:void 0,"aria-expanded":m?"true":void 0,"aria-haspopup":"true",onClick:async()=>{if(!m&&u){const e=await u.getLayout();w(e)}h(!m)},"aria-label":l.get("SNTable.Accessibility.ColumnOptions"),isNewHeadCellMenuEnabled:R,children:Bi.jsx(OI,{height:Tb})}),Bi.jsx("div",{ref:f}),Bi.jsx(tL,{open:m,anchorEl:p.current,onClose:()=>h(!1),menuGroups:P,buttonId:L,menuId:D})]}):null},rL=({children:e,column:t,isInteractionEnabled:n,open:r,setOpen:o,getHeadCellsIconsVisibilityStatus:i})=>{const{shouldShowLockIcon:a,shouldShowMenuIcon:l}=i(),{keyboard:s,translator:u,changeSortOrder:c,interactions:d,embed:p,app:f,model:m}=aA(nA,(e=>e.baseProps)),h=aA(nA,(e=>0===e.focusedCellCoord[0])),g=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),b=M(null),v=M(null),{startIcon:y,endIcon:x,lockIcon:S}=PI(t),E=n&&ER(s)?0:-1,C={A:u.get("SNTable.Accessibility.Ascending"),D:u.get("SNTable.Accessibility.Descending")};return Bi.jsxs(vI,{isLocked:Boolean(S),className:`aligned-${t.headTextAlign}`,isNewHeadCellMenuEnabled:g,...g&&{shouldShowMenuIcon:l,shouldShowLockIcon:a},children:[(g?a:S)&&Bi.jsx(yI,{children:S}),Bi.jsxs(gI,{className:"sn-table-head-label",isActivelySorted:t.isActivelySorted,textAlign:t.headTextAlign,color:"inherit",size:"small",...!g&&{startIcon:y,endIcon:x},tabIndex:g?-1:E,disabled:!n,onClick:g?()=>{}:()=>n&&c(t),isNewHeadCellMenuEnabled:g,children:[e,h&&Bi.jsx(bI,{"data-testid":`VHL-for-col-${t.pageColIdx}`,children:`${C[t.sortDirection]} ${u.get("SNTable.SortLabel.PressSpaceToSort")}`})]}),n&&(g?Bi.jsxs(Bi.Fragment,{children:[Bi.jsx(eP,{headerData:t,translator:u,anchorRef:b,handleHeadCellMenuKeyDown:zP,menuAvailabilityFlags:{[ZA.SORTING]:!0,[ZA.SEARCHING]:!0,[ZA.SELECTIONS]:!0,[ZA.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:o,interactions:d,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),c(t,n))},searchRelatedArgs:{embed:p,listboxRef:v},selectionRelatedArgs:{app:f,model:m},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:CR},shouldShowMenuIcon:!g||l}),Bi.jsx(hI,{ref:v}),Bi.jsx(hI,{ref:b})]}):Bi.jsx(nL,{column:t,tabIndex:E}))]})},oL=({styling:e,column:t,columnWidths:n,isNewHeadCellMenuEnabled:r})=>{const{measureText:o}=tn({fontSize:e.head.fontSize,fontFamily:e.head.fontFamily,fontWeight:Ob}),i=T((()=>{var e;if(!r)return{shouldShowMenuIcon:!0,shouldShowSortIcon:!0,shouldShowLockIcon:!0};let i=!1,a=!1,l=!1;const s=t.isLocked,u=t.isActivelySorted,c=(null!==(e=n[t.colIdx])&&void 0!==e?e:n[t.pageColIdx])-25,d=s?24:0,p=u?20:0;let f=o(t.label);return s&&f+d<=c&&(l=!0,f+=d,u&&f+p<=c&&(a=!0,f+=p)),!s&&u&&f+p<=c&&(a=!0,f+=p),f+28<=c&&(i=!0,f+=28),{shouldShowMenuIcon:i,shouldShowSortIcon:a,shouldShowLockIcon:l}}),[r,t.colIdx,t.pageColIdx,t.isLocked,t.label,t.isActivelySorted,n,o]);return{getHeadCellsIconsVisibilityStatus:i,allIconsDisabled:Object.values(i()).every((e=>!1===e))}},iL=({isInteractionEnabled:e,columnsData:t})=>{const[n,r]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,n]=E(!1);return ln((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}})([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Ir)})(t)&&!o&&r(!0),setIsAdjustingWidth:i}},aL=(e,t,n,r)=>{const o=e&&t&&n;return e=>o&&e===r},lL=uf(ib,{shouldForwardProp:e=>"headerStyle"!==e&&"isNewHeadCellMenuEnabled"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,isNewHeadCellMenuEnabled:t,interactions:n,hoverBackground:r,background:o})=>({...kb,...e,...t&&{cursor:"pointer",background:o},pointer:"cursor",verticalAlign:"bottom","&&:focus-visible":{...!t&&{boxShadow:"none"},...t&&{background:n.active?r:o}},...t&&{"&&:hover":{background:n.active?r:o}}}))),sL=uf("div")({display:"flex",alignItems:"center"}),uL=uf("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:Tb,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),cL=({column:e,columnIndex:t,columnsLength:n})=>{const{styling:r,interactions:o,rootElement:i,keyboard:a,styling:{head:{activeBackground:l,background:s,hoverBackground:u}}}=aA(nA,(e=>e.baseProps)),{columns:c}=aA(nA,(e=>e.tableData)),d=aA(nA,(e=>e.columnWidths)),p=aA(nA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=aA(nA,(e=>e.setFocusedCellCoord)),m=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),h=aA(nA,(({focusedCellCoord:[e,n]})=>0===e&&n===t)),g=!!o.active&&!p,{open:b,setOpen:v,handleOpenMenu:y,setIsAdjustingWidth:x}=iL({isInteractionEnabled:g,columnsData:c}),{getHeadCellsIconsVisibilityStatus:S,allIconsDisabled:E}=oL({styling:r,column:e,columnWidths:d,isNewHeadCellMenuEnabled:m}),C=e.isActivelySorted?vf[e.sortDirection]:void 0,w=t===n-1,R=[0,e.pageColIdx],A={width:d[t]-(w?8:9),zIndex:c.length-t},{startIcon:P,endIcon:I}=PI(e),L=!!m&&0===e.colIdx&&!a.enabled&&h&&g?0:-1,D=S(),M=aL(m,D.shouldShowSortIcon,e.isActivelySorted,e.headTextAlign);return Bi.jsxs(lL,{headerStyle:r.head,style:A,align:e.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":C,tabIndex:L,title:o.passive?e.label:void 0,onKeyDown:e=>jP({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,isInteractionEnabled:g,handleOpenMenu:y,isNewHeadCellMenuEnabled:m}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(r(n),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):wR({focusType:bf.FOCUS_BUTTON,cell:vR(t,n)}))})({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,keyboard:a,isInteractionEnabled:g}),isNewHeadCellMenuEnabled:m,background:b?l:s,hoverBackground:u,interactions:o,onClick:y,children:[Bi.jsx(rL,{column:e,isInteractionEnabled:g,open:b,setOpen:v,getHeadCellsIconsVisibilityStatus:S,children:m?Bi.jsxs(sL,{children:[M("right")&&Bi.jsx(uL,{align:e.headTextAlign,children:P}),Bi.jsx(YP,{allIconsDisabled:E,isPagination:!0,headCell:!0,children:e.label}),M("left")&&Bi.jsx(uL,{align:e.headTextAlign,children:I})]}):Bi.jsx(YP,{fontSize:r.head.fontSize,children:e.label})}),Bi.jsx(sI,{column:e,isLastColumn:w,setIsAdjustingWidth:x})]},e.id)},dL=()=>{var e;const{columns:t}=aA(nA,(e=>e.tableData)),{styling:n,viewService:r}=aA(nA,(e=>e.baseProps)),o=aA(nA,(e=>e.setHeadRowHeight)),i=aA(nA,(e=>e.columnWidths)),a=M(null);return C((()=>{a.current&&o(a.current.clientHeight)}),[n.head.fontSize,i,o]),null!==(e=r.viewState)&&void 0!==e&&e.skipHeader?null:Bi.jsx(hb,{children:Bi.jsx(Eb,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,n)=>Bi.jsx(cL,{column:e,columnIndex:n,columnsLength:t.length},e.id)))})})};var pL=k(dL);const fL=e=>{var t,n;const{pageInfo:r,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=r,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=aA(nA,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styling:E,viewService:w,layout:R,rect:A}=aA(nA,(e=>e.baseProps)),P=aA(nA,(e=>e.focusedCellCoord)),I=aA(nA,(e=>e.setFocusedCellCoord)),L=aA(nA,(e=>e.setYScrollbarWidth)),D=aA(nA,(e=>e.showRightBorder)),O=aA(nA,(e=>e.selectionDispatch)),k=aA(nA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),_=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),q=M(!1),N=M(null),F=M(null),{yScrollbarWidth:z}=$P(N),j=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length+1),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,$=Ti(R,w),H=$&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,B=$&&null!==(n=w.rowPartialHeight)&&void 0!==n?n:0,W=T((()=>{q.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),G=T((e=>{o({...r,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[r,o,p,l]),V=T((e=>{o({...r,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return((e,t,n)=>{C((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{const r=e.currentTarget,o=e.relatedTarget,i=!(null==r||!r.contains(o)),a=null==o?void 0:o.closest(".sn-table-head-menu");if(n.enabled&&!i&&!a&&!t.current&&r){var l;const e=r.querySelector(".sn-table-announcer-1"),t=r.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=n.blur)||void 0===l||l.call(n,!1)}})(e,t,n);return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}}),[e,t,n])})(F,q,v),FP(N,i,w),(()=>{const{rootElement:e,keyboard:t}=aA(nA,(e=>e.baseProps)),n=aA(nA,(e=>e.focusedCellCoord)),r=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled));ln((()=>{let o=r||n[0]>0?bf.FOCUS:bf.FOCUS_BUTTON;o=t.active?o:bf.BLUR;const i=t.active?vR(e,n):yR(e);wR({focusType:o,cell:i})}),[t.active,e,r])})(),C((()=>{const e=N.current;e&&(e.scrollLeft=H,e.scrollTop=B)}),[r,d,H,B]),NP((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l,isNewHeadCellMenuEnabled:s})=>{wR({focusType:bf.REMOVE_TAB,cell:yR(t)});const u=[l.atTop?2:1,e[1]],c=r?u:s?Ef:Cf;if(ER(i)){const e=n.current?bf.FOCUS:bf.ADD_TAB;n.current=!1;const o=vR(t,c);if(wR({focusType:e,cell:o}),r){var d;const e=null==o||null===(d=o.classList)||void 0===d?void 0:d.contains("selected");a({keys:[`${null==o?void 0:o.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}o(c)})({focusedCellCoord:P,rootElement:b,shouldRefocus:q,setFocusedCellCoord:I,isSelectionMode:k,keyboard:v,announce:l,totalsPosition:g,isNewHeadCellMenuEnabled:_})}),[m.length,d,c,s,_]),NP((()=>{L(z)}),[z]),NP((()=>{O({type:hf.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Bi.jsxs(kP,{ref:F,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(LR(e)){bR(e);const a=Math.ceil(t/r)-1;e.key===gf.RIGHT&&n<a?(i(),o(n+1)):e.key===gf.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===gf.ESC&&a.enabled&&!l){var s;bR(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else DR(e.key)&&bR(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:G,setShouldRefocus:W,keyboard:v,isSelectionMode:k})},"data-testid":"sn-table",children:[Bi.jsx(GP,{}),Bi.jsx(BP,{ref:N,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Bi.jsxs(WP,{styling:E,showRightBorder:D,stickyHeader:!0,"aria-label":j,children:[Bi.jsx(pL,{}),Bi.jsx(lI,{...e,setShouldRefocus:W,tableWrapperRef:F})]})}),Bi.jsx(OP,{footerContainer:a,pageInfo:r,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:G,handleChangeRowsPerPage:V,isSelectionMode:k})]})};var mL=k(fL);function hL(){return hL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hL.apply(this,arguments)}function gL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bL(e,t){return bL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bL(e,t)}function vL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bL(e,t)}var yL=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function xL(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||yL(r)&&yL(o)))return!1;var r,o;return!0}function SL(e,t){var n;void 0===t&&(t=xL);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function EL(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var CL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function wL(e){cancelAnimationFrame(e.id)}function RL(e,t){var n=CL();var r={id:requestAnimationFrame((function o(){CL()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var AL=-1;function PL(e){if(void 0===e&&(e=!1),-1===AL||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),AL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return AL}var IL=null;function LL(e){if(void 0===e&&(e=!1),null===IL||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?IL="positive-descending":(t.scrollLeft=1,IL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),IL}return IL}var DL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ML(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,gL(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:gL(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=SL((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=SL((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=SL((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(LL()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&wL(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=RL(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}vL(t,e),t.getDerivedStateFromProps=function(e,t){return TL(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=PL();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(LL()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&wL(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?DL:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],P=w[1],I=[];if(r>0&&g)for(var L=A;L<=P;L++)for(var D=E;D<=C;D++)I.push(R(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:L}),rowIndex:L,style:this._getItemStyle(L,D)}));var M=a(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return R(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:hL({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:I,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var TL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},OL=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},kL=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},_L=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},qL=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?NL(e,t,n,i,0,r):FL(e,t,n,Math.max(0,i),r)},NL=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=_L(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},FL=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&_L(e,t,r,n).offset<o;)r+=a,a*=2;return NL(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},zL=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=_L(e,t,n,i),u="column"===e?kL(t,i):OL(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){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}},jL=ML({getColumnOffset:function(e,t,n){return _L("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return qL("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=_L("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=_L("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:OL,getEstimatedTotalWidth:kL,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return zL("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return zL("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return _L("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return qL("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=_L("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=_L("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),$L=function(e,t){return e};function HL(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,gL(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:gL(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=SL((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=SL((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=SL((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(LL()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&wL(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=RL(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}vL(t,e),t.getDerivedStateFromProps=function(e,t){return BL(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?PL():0:s.scrollHeight>s.clientHeight?PL():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(LL()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&wL(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?$L:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var P=C;P<=w;P++)A.push(R(t,{data:c,key:p(P,c),index:P,isScrolling:b?y:void 0,style:this._getItemStyle(P)}));var I=r(this.props,this._instanceProps);return R(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:hL({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:A,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],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var BL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},WL=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},GL=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=WL(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},VL=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&WL(e,n,t).offset<r;)n+=i,i*=2;return GL(e,t,Math.min(n,o-1),Math.floor(n/2),r)},UL=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},YL=HL({getItemOffset:function(e,t,n){return WL(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:UL,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=WL(e,t,o),p=UL(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?GL(e,t,o,0,n):VL(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=WL(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=WL(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function KL(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var XL=["style"],JL=["style"];function ZL(e,t){var n=e.style,r=EL(e,XL),o=t.style,i=EL(t,JL);return!KL(n,o)&&!KL(r,i)}const QL=({style:e})=>Bi.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var eD=x.memo(QL,ZL);const tD=()=>{},nD=e=>e.preventDefault();const rD=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const{rowsInPage:i,columns:a,bodyStyle:l,isHoverEnabled:s}=r,u=aA(nA,(e=>e.hoverIndex===t)),c=aA(nA,(e=>e.setHoverIndex)),{interactions:d}=aA(nA,(e=>e.baseProps)),p=aA(nA,(e=>e.showRightBorder)),f=null===(o=i[t])||void 0===o?void 0:o[e],{handleMouseDown:m,handleMouseOver:h,handleMouseUp:g,cellSelectionState:b}=function(e){const{interactions:t}=aA(nA,(e=>e.baseProps)),n=aA(nA,(e=>e.selectionDispatch)),r="object"==typeof e,o=aA(nA,(t=>r?qR(e,t.selectionState):mf.INACTIVE)),i=t.active&&t.select;if(r&&i){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=JP(nD,e,n,tD);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(f);if("object"==typeof f){const r=((e,t,n,r,o)=>{const{hoverColors:i,lastRowBottomBorder:a,...l}=o,s=t.qAttrExprInfoIDs.length?QR(l,e.qAttrExps,t.qAttrExprInfoIDs):l;return r===mf.SELECTED?{...s,...Db.SELECTED}:r===mf.EXCLUDED?{...s,color:n?null==i?void 0:i.color:s.color,background:`${Db.EXCLUDED_BACKGROUND}, ${n?null==i?void 0:i.background:s.background}`}:n?{...s,...i}:s})(f,a[e],s&&u,b,l),o={rowindex:t,columnindex:e};return Bi.jsx("div",{className:`sn-table-cell ${b}`,style:{...n,...r,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:f.isLastRow?"0px":"1px",borderRightWidth:f.isLastColumn&&!p?"0px":"1px",borderStyle:"solid",justifyContent:f.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default"},onMouseDown:m,onMouseUp:g,onMouseOver:h,onMouseEnter:s?()=>c(t):void 0,onMouseLeave:s?()=>c(-1):void 0,title:d.passive?f.representation.text:void 0,...o,children:Bi.jsx(KP,{cell:f,style:r,virtualizedCell:!0})})}return Bi.jsx(eD,{style:{...n,...l,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var oD=x.memo(rD,ZL);const iD=e=>{const t=M(e);return t.current=e,t},aD=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,lD=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},sD=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},uD=(e,t,n,r,o,i)=>{e.forEach((e=>{e.qMatrix.forEach(((a,l)=>{const s=e.qArea.qTop-t.page*t.rowsPerPage,{row:u,pageRowIdx:c}=((e,t,n,r,o,i,a,l)=>{var s;const{qSize:u}=a.qHyperCube,c=r.qTop+n,d=o+n,p=null!==(s=e[d])&&void 0!==s?s:[];return t.forEach(((e,t)=>{var n;const o=t+r.qLeft,{colIdx:a,isDim:s,isLocked:f,bodyTextAlign:m,selectionColIdx:h,qAttrExprInfoIDs:g,representation:b}=i[o],v=Ci(e);p[o]={...e,align:Di(e,m),rowIdx:c,colIdx:a,isSelectable:s&&!f,pageRowIdx:d,pageColIdx:o,selectionColIdx:h,isLastRow:c===u.qcy-1,isLastColumn:o===u.qcx-1,isNumeric:v,representation:Si(e,b,g.findIndex((e=>"url"===e)),g.findIndex((e=>"urlLabel"===e)))},l(null!==(n=p[o].representation.text)&&void 0!==n?n:"",d,o,v)})),{row:p,pageRowIdx:d}})(n,a,l,e.qArea,s,r,o,i);n[c]=u}))}))},cD=({layout:e,model:t,theme:n,initialDataPages:r,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,setCellSize:u,gridState:c})=>{const d=M([]),p=iD(u),f=T(((t,n)=>{const r=Array.isArray(n)?n.slice(0,i):(e=>Array(e).fill(void 0))(i);return uD(t,o,r,s,e,p.current),d.current=r,r}),[i,o,s,e,p]),[m,h]=E((()=>f(null!=r?r:[])));ln((()=>{h(f(null!=r?r:[]))}),[r]);const g=((e,t)=>{const n=M(new Set),r=M(new Set),o=M(new Set),i=iD(e),a=iD(t),l=S((()=>({enqueue:e=>{const t=aD(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),n=await i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach((e=>{o.current.delete(aD(e))}))}finally{r.current.delete(e)}}}),75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>h((t=>f(e,t))))),b=T(((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(sD(d.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};g.enqueue(e)}}),[d,g]),v=T(((e,t,n,r)=>{for(let i=t;i<t+r;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(lD(d.current,e,t,n,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:n};g.enqueue(t)}}}),[d,g,o]),y=n.name();return C((()=>{const{qcx:t,qcy:n}=e.qHyperCube.qSize,r=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,s=r+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-r,p=Math.min(100,u,t,l+5),f=Math.min(100,d,n,a+25);return v(i,s,p,f),()=>{g.clear()}}),[e,a,l,o,g,v,c,y]),{rowsInPage:m,loadRows:v,loadColumns:b}},dD=({style:e,columnWidths:t,rowHeight:n,pageInfo:r,rowCount:o,gridRef:i,lineRef:a,columns:l,fontWeight:s,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,allColumnsIconVisibilityStatus:f,isNewHeadCellMenuEnabled:m=!1})=>{var h;const g=M({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:b,rect:v}=aA(nA,(e=>e.baseProps)),[y,x]=E(n||24),{measureText:S,estimateLineCount:C}=tn({...e,fontWeight:s}),w=parseInt(null!==(h=e.fontSize)&&void 0!==h?h:kb.fontSize,10)*HR,R=8e6/o-8-1,A=Math.max(0,Math.min(p,Math.round(R/w))),P=T(((e,n,r)=>{const o=l?(({isNewHeadCellMenuEnabled:e,width:t,column:n,columnIconsVisibilityStatus:r})=>{let o=0;if(!e)return o=t-71,o-=n.isLocked?24:0,Math.max(0,o);let i=0,a=0,l=0;if(r){const{shouldShowLockIcon:e,shouldShowSortIcon:t,shouldShowMenuIcon:n}=r,o=4;i=e?20+o:0,a=t?20:0,l=n?o+24:0}return o=t-25-i-a-l,Math.max(0,o)})({isNewHeadCellMenuEnabled:m,width:t[n],column:l[n],columnIconsVisibilityStatus:null==f?void 0:f[n]}):(e=>Math.max(0,e-24-1))(t[n]),i=Math.min(A,C({text:e.trim(),maxWidth:o,isNumeric:r}));return Math.max(1,i)*w+8+1}),[t,w,A,l,C,f,m]),I=T(((e,t,n,r=!1,o=!1)=>{const i=`${t}-${n}`;if(g.current.measuredCells.has(i))return;g.current.measuredCells.set(i,[e,t,n,r]);const a=P(e,n,r),l=g.current.heights[t],s=a-l;s>0?(g.current.totalHeight+=s,g.current.heights[t]=a):void 0===l&&(g.current.count+=1,g.current.totalHeight+=a,g.current.heights[t]=a),o||c||x(g.current.totalHeight/g.current.count)}),[P,c]),L=T((e=>{var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:y}),[g,y]),D=T((()=>{g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),O=iD(I),k=T((()=>{const e=new Map(g.current.measuredCells);D(),e.forEach((([e,t,n,r])=>{O.current(e,t,n,r,!0)})),c||x(g.current.totalHeight/g.current.count)}),[D,c,O]);ln((()=>{D()}),[b,r]),ln((()=>{k()}),[S,v.width]);return null!=i&&i.current?i.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):null!=a&&a.current&&a.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),d.estimatedRowHeight=y,{setCellSize:I,getRowHeight:L,rowMeta:g,estimatedRowHeight:y,maxLineCount:A,resizeVisibleCells:e=>{if(!u)return;D();const{overscanRowStartIndex:t,overscanRowStopIndex:n}=u.current,r=Math.min(n,b.qHyperCube.qSize.qcy-1);for(let n=t;n<=r;n++){var o;const t=null!==(o=e[n])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&I(null!==(t=e.representation.text)&&void 0!==t?t:"",n,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:k,resetRowMeta:D}};var pD;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(pD||(pD={}));const fD={enabled:!1},mD=()=>{},hD={current:null};const gD=(e,t,n,r,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=S((()=>r.reduce(((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},bD=({columnIndex:e,data:t,rowIndex:n})=>{var r;const o=null===(r=t.rowsInPage[n])||void 0===r?void 0:r[e];return`${null==o?void 0:o.qElemNumber}-${null==o?void 0:o.qText}-${n}-${e}`},vD={overflow:"hidden",willChange:"auto"};var yD=k(O(((e,t)=>{var n,r;const{rect:o,columns:i,innerForwardRef:a,pageInfo:l,bodyStyle:s,rowHeight:u,headerAndTotalsHeight:c,syncHeight:d}=e,{layout:p,model:f,theme:m,viewService:h}=aA(nA,(e=>e.baseProps)),g=aA(nA,(e=>e.columnWidths)),b=aA(nA,(e=>e.initialDataPages)),v=null===(n=h.viewState)||void 0===n?void 0:n.maxLineCount,y=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),x=M(null),E=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),w=!(null===(r=KR(p))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{scrollHandler:R,verticalScrollDirection:A,horizontalScrollDirection:P}=(()=>{const e=M(0),t=M(0),n=M(pD.None),r=M(pD.None);return{scrollHandler:T((({scrollTop:o,scrollLeft:i})=>{o>t.current?n.current=pD.Down:o<t.current?n.current=pD.Up:n.current=pD.None,i>e.current?r.current=pD.Right:i<e.current?r.current=pD.Left:r.current=pD.None,t.current=o,e.current=i}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}})(),{rowCount:I,visibleRowCount:L,visibleColumnCount:D}=gD(p,l,o,g,u),{setCellSize:O,getRowHeight:k,rowMeta:q,estimatedRowHeight:F,maxLineCount:z,resizeVisibleCells:j}=dD({pageInfo:l,style:s,rowHeight:u,columnWidths:g,gridRef:x,rowCount:I,gridState:E,isSnapshot:!!p.snapshotData,viewService:h,maxNbrLines:v,isNewHeadCellMenuEnabled:y}),{rowsInPage:$,loadRows:H,loadColumns:B}=cD({layout:p,model:f,theme:m,initialDataPages:b,pageInfo:l,rowCount:I,visibleRowCount:L,visibleColumnCount:D,columns:i,setCellSize:O,gridState:E}),W=(({layout:e,loadRows:t,loadColumns:n,verticalScrollDirection:r,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:l,viewService:s})=>T((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(l.current.overscanColumnStartIndex=u,l.current.overscanColumnStopIndex=c,l.current.overscanRowStartIndex=d,l.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(s.visibleLeft=f,s.visibleWidth=m-f+1,s.visibleTop=h+a.page*a.rowsPerPage,s.visibleHeight=g-h+1,s.page=a.page,s.rowsPerPage=a.rowsPerPage,r.current===pD.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(r.current===pD.Up){const e=x+25,n=a.page*a.rowsPerPage,r=Math.max(n,v-25);t(b,r,y,e)}if(o.current===pD.Right){const t=e.qHyperCube.qSize.qcx-b,r=y+5,o=Math.min(t,r);n(b,v,o,x)}else if(o.current===pD.Left){const t=Math.max(0,b-5),r=Math.min(e.qHyperCube.qSize.qcx,y+5);n(t,v,r,x)}}),[l,i,a.page,a.rowsPerPage,s,r,o,t,e.qHyperCube.qSize.qcx,n]))({layout:p,loadRows:H,loadColumns:B,verticalScrollDirection:A,horizontalScrollDirection:P,rowCount:I,pageInfo:l,gridState:E,viewService:h}),G=S((()=>({rowsInPage:$,columns:i,bodyStyle:s,isHoverEnabled:w,maxLineCount:z})),[$,i,s,w,z]),V=((e,t,n,r)=>{let{height:o}=e;return o-=t,n*r<o&&(o=Math.min(n*r,o)),o})(o,c,I,F);return _((()=>{var e,t;d(null!==(e=null===(t=a.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[I,d,a]),_((()=>{var e,t,n;(d(null!==(e=null===(t=a.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===q.current.lastScrollToRatio)&&(null===(n=x.current)||void 0===n||n.scrollToItem({rowIndex:I-1,align:"start"}))})),function(e){const{selectionsAPI:t}=aA(nA,(e=>e.baseProps)),n=aA(nA,(e=>e.selectionDispatch));C((()=>{n({type:hf.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),XP({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:mD,keyboard:fD,tableWrapperRef:hD})}($),ln((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[p,l,m.name(),o.width,g]),N(t,(()=>({interpolatedScrollTo:(e,t)=>{var n,r;const o=(null!==(n=null===(r=a.current)||void 0===r?void 0:r.clientHeight)&&void 0!==n?n:V)-V,i=Math.round(o*e);var l,s,u;(q.current.lastScrollToRatio=e,1===q.current.lastScrollToRatio)?(null===(l=x.current)||void 0===l||l.scrollToItem({rowIndex:I-1,align:"start"}),null===(s=x.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:i,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),j($)}})),[a,V,q,I,j,$]),Bi.jsx(jL,{"data-key":"body",ref:x,innerRef:a,style:vD,columnCount:p.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:V,rowCount:I,rowHeight:k,estimatedRowHeight:F,width:o.width,itemData:G,onItemsRendered:W,onScroll:R,itemKey:bD,className:"sn-table-body",children:oD})})));const xD=({width:e,height:t,children:n})=>Bi.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:n}),SD=uf("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"isNewHeadCellMenuEnabled"!==e})((({isNewHeadCellMenuEnabled:e,interactions:t,hoverBackground:n,background:r,applicableStyle:o})=>({...o,...e&&{background:r},"&&:hover":{...e&&{background:t.active?n:r}}}))),ED=({index:e,style:t,data:n})=>{const{columns:r,headerStyle:{...o},columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=n,{styling:l,interactions:s,styling:{head:{activeBackground:u,background:c,hoverBackground:d}}}=aA(nA,(e=>e.baseProps)),p=aA(nA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=aA(nA,(e=>e.showRightBorder)),m=aA(nA,(e=>e.columnWidths)),h=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),g=!!s.active&&!p,{open:b,setOpen:v,handleOpenMenu:y,setIsAdjustingWidth:x}=iL({isInteractionEnabled:g,columnsData:r}),S=r[e],E=r.length-1===e,C="right"===S.headTextAlign?"row-reverse":"row",{getHeadCellsIconsVisibilityStatus:w,allIconsDisabled:R}=oL({styling:l,column:S,columnWidths:m,isNewHeadCellMenuEnabled:h}),{startIcon:A,endIcon:P}=PI(S),I=w();a.current[e]=I;const L=aL(h,I.shouldShowSortIcon,S.isActivelySorted,S.headTextAlign);return Bi.jsxs(SD,{className:"sn-table-cell",title:s.passive?S.label:void 0,onClick:y,applicableStyle:o,style:{...t,cursor:h?"pointer":"default",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:E&&!f?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:S.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:C,userSelect:"none"},interactions:s,hoverBackground:d,background:b?u:c,isNewHeadCellMenuEnabled:h,children:[Bi.jsx(rL,{column:S,isInteractionEnabled:g,open:b,setOpen:v,getHeadCellsIconsVisibilityStatus:w,children:h?Bi.jsxs(sL,{children:[L("right")&&Bi.jsx(uL,{align:S.headTextAlign,children:A}),Bi.jsx(YP,{allIconsDisabled:R,headCell:!0,virtualizedCell:!0,children:S.label}),L("left")&&Bi.jsx(uL,{align:S.headTextAlign,children:P})]}):Bi.jsx(YP,{wordBreak:!0,lines:3,children:S.label})}),Bi.jsx(sI,{column:S,isLastColumn:E,onColumnResize:i,setIsAdjustingWidth:x})]})},CD=(e,t,n,r,o)=>{_((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},wD={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},RD=e=>{const{rect:t,forwardRef:n,columns:r,pageInfo:o,headerStyle:i,rowHeight:a,columResizeHandler:l,allColumnsIconVisibilityStatusRef:s}=e,{layout:u,theme:c}=aA(nA,(e=>e.baseProps)),d=aA(nA,(e=>e.columnWidths));return CD(n,u,o,d,c.name()),Bi.jsx(YL,{ref:n,layout:"horizontal",style:wD,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:a,width:t.width,itemData:{columns:r,headerStyle:i,columResizeHandler:l,allColumnsIconVisibilityStatusRef:s},children:ED})};var AD=k(RD);const PD=x.forwardRef(((e,t)=>{const{children:n,width:r,height:o,onScroll:i}=e,{interactions:a}=aA(nA,(e=>e.baseProps));return Bi.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i,children:n})})),ID=({children:e,rect:t})=>Bi.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),LD=({index:e,style:t,data:n})=>{const{layout:r,interactions:o}=aA(nA,(e=>e.baseProps)),i=aA(nA,(e=>e.showRightBorder)),a=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),{totalsStyle:{hoverColors:l,...s},columns:u,totals:c}=n,d=u[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=u[e],m=r.qHyperCube.qSize.qcx-1===e;return Bi.jsx("div",{className:"sn-table-cell",title:o.passive?d:void 0,style:{...t,...s,display:"flex",alignItems:c.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!i?"0px":"1px",borderTopWidth:c.atBottom?"1px":"0px",borderBottomWidth:c.atTop?"1px":"0px",padding:"4px 12px",justifyContent:p,boxSizing:"border-box",cursor:"default",fontWeight:Ob},children:Bi.jsx(YP,{wordBreak:!f,lines:3,...a&&{virtualizedCell:!0},children:d})})},DD=e=>{const{rect:t,forwardRef:n,pageInfo:r,totals:o,rowHeight:i,columns:a}=e,{layout:l,styling:s,theme:u}=aA(nA,(e=>e.baseProps)),c=aA(nA,(e=>e.columnWidths));return CD(n,l,r,c,u.name()),Bi.jsx(YL,{ref:n,layout:"horizontal",style:wD,itemCount:l.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{totalsStyle:s.totals,columns:a,totals:o},children:LD})};var MD=k(DD);const TD=({columns:e,columnWidths:t,pageInfo:n,headerRef:r,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s})=>{const{styling:u}=aA(nA,(e=>e.baseProps)),c=aA(nA,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),d=dD({style:u.head,columnWidths:t,lineRef:r,rowCount:1,pageInfo:n,fontWeight:Ob,columns:e,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s,isNewHeadCellMenuEnabled:c}),p=dD({style:u.totals,columnWidths:t,lineRef:o,rowCount:1,pageInfo:n,fontWeight:Ob,isSnapshot:a,viewService:l,isNewHeadCellMenuEnabled:c});e.forEach(((e,t)=>{d.setCellSize(e.label,0,t),p.setCellSize(e.totalInfo,0,t,Ei(e.totalInfo))}));const f=d.getRowHeight(0)+8,m=p.getRowHeight(0);return{headerRowHeight:f,totalsRowHeight:m,bodyRowHeight:a?l.estimatedRowHeight:(({fontSize:e=kb.fontSize})=>Math.max(24,WR(e)))(u.body),headerAndTotalsHeight:i.atTop||i.atBottom?f+m:f,resizeAllHeaderCells:d.resizeAllCells,resizeAllTotalCells:p.resizeAllCells}},OD=e=>{var t;const{pageInfo:n}=e,{totalsPosition:r,columns:o,paginationNeeded:i}=aA(nA,(e=>e.tableData)),{layout:a,theme:l,styling:s,rect:u,viewService:c}=aA(nA,(e=>e.baseProps)),d=aA(nA,(e=>e.columnWidths)),p=aA(nA,(e=>e.setYScrollbarWidth)),f=M(null),m=M(null),h=M(null),g=M(null),b=M(),{xScrollbarWidth:v,yScrollbarWidth:y}=$P(f),x=S((()=>{var e;return{...s.body,background:null!==(e=l.background.color)&&void 0!==e?e:"transparent"}}),[l.background.color,s]),C=M([]),{headerRowHeight:w,totalsRowHeight:R,bodyRowHeight:A,headerAndTotalsHeight:P,resizeAllHeaderCells:I,resizeAllTotalCells:L}=TD({columns:o,columnWidths:d,pageInfo:n,totalsPosition:r,headerRef:m,totalsRef:h,isSnapshot:!!a.snapshotData,viewService:c,allColumnsIconVisibilityStatus:C.current}),D=S((()=>((e,t)=>{const n=e.height-(t?41:0);return{width:e.width,height:n}})(u,i)),[u,i]),O=S((()=>((e,t,n)=>({width:e.width-n,height:e.height-t}))(D,v,y)),[D,v,y]),{rowCount:k}=gD(a,n,O,d,A),[q,N]=E(k*A+P),F=d.reduce(((e,t)=>e+t),0),z=((e,t,n,r)=>T((o=>{var i,a,l;const{scrollHeight:s,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(s-u)));r.scrollTopRatio=p,r.scrollLeft=d,null===(i=n.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(l=t.current)||void 0===l||l.scrollTo(d)}),[r,n,e,t]))(m,h,g,c),j=T(((e,t=!1)=>{const n=e+P;(q<O.height&&n>O.height||t)&&N(n)}),[q,P,O.height]),$=T((()=>{var e;f.current&&(f.current.scrollTop=0),null===(e=g.current)||void 0===e||e.resizeCells(),I(),L()}),[f,I,L]);_((()=>{f.current&&(f.current.scrollLeft=0,f.current.scrollTop=0)}),[o.length]);const H=l.name();_((()=>{f.current&&(f.current.scrollTop=0)}),[n,k,H]),NP((()=>{p(y)}),[y]);const B=Bi.jsx(MD,{rect:O,pageInfo:n,columns:o,forwardRef:h,totals:r,rowHeight:R});return Bi.jsx(PD,{ref:f,width:D.width,height:D.height,onScroll:z,children:Bi.jsx(xD,{width:F,height:q,children:Bi.jsxs(ID,{rect:O,children:[null!==(t=c.viewState)&&void 0!==t&&t.skipHeader?null:Bi.jsx(AD,{headerStyle:s.head,rect:O,pageInfo:n,columns:o,forwardRef:m,rowHeight:w,columResizeHandler:$,allColumnsIconVisibilityStatusRef:C}),r.atTop?B:null,Bi.jsx(yD,{ref:g,innerForwardRef:b,bodyStyle:x,rect:O,pageInfo:n,columns:o,rowHeight:A,headerAndTotalsHeight:P,syncHeight:j}),r.atBottom?B:null]})})})};var kD=k(OD);const _D=()=>{const{theme:e,keyboard:t,translator:n,interactions:r,rect:o,layout:i}=aA(nA,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=aA(nA,(e=>e.tableData)),c=aA(nA,(e=>e.pageInfo)),d=aA(nA,(e=>e.setPage));return Bi.jsxs(kP,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Bi.jsx(kD,{pageInfo:c}),Bi.jsx(OP,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:n,theme:e,interactions:r,rect:o,layout:i})]})};var qD=k(_D);var ND,FD={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 in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","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":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(ND||(ND={}));const zD=(e,n)=>t((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(FD).forEach((t=>{e.add(FD[t])}))}}(n),()=>((e,t,n)=>{let r=n||null;return({keys:n,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=n.map((e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;r===ND.FIRST?(u=s,r=ND.SECOND):(u=l,r=ND.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,n))),[e,n.language()]),jD={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},$D=({isNewHeadCellMenuEnabled:e,app:t,model:n,rootElement:l,layout:s,interactions:u,translator:c,selectionsAPI:d,theme:p,changeSortOrder:f,keyboard:m,rect:h,embed:g,reactRoot:b,applyColumnWidths:v,isFontLoaded:y,viewService:x,isLinksEnabled:S})=>{const{direction:E,footerContainer:C}=r(),w=Ti(s,x),R=Oi(s,x),A=zD(l,c),P=w?{page:x.page||jD.page,rowsPerPage:x.rowsPerPage||jD.rowsPerPage,rowsPerPageOptions:jD.rowsPerPageOptions}:jD,[I,L]=o(P),[D]=i((async()=>R?async function(e,t,n,r,o){var i,a;const{page:l,rowsPerPage:s,rowsPerPageOptions:u}=n,c=t.qHyperCube.qSize.qcx,d=t.qHyperCube.qSize.qcy,p=Math.ceil(d/s),f=null!==(i=o.visibleTop)&&void 0!==i?i:l*s,m=null!==(a=o.visibleHeight)&&void 0!==a?a:Math.min(s,d-f);if(l>0&&f>=d)return r({...n,page:0}),null;if(m*c>wi)return r({...n,rowsPerPage:Ri(c,u),page:0}),null;const h=d>10,g=Ai(t,o),b=Mi(t),v=!!t.snapshotData,y=v?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:f,qLeft:0,qHeight:m,qWidth:c}]);o&&!v&&(o.qTop=f,o.qHeight=m,o.rowsPerPage=n.rowsPerPage,o.page=n.page);const x=(null==y?void 0:y[0].qMatrix.map(((e,t)=>{const n=[];return b.forEach(((r,o)=>{n[o]={...e[o],align:Di(e[o],r.bodyTextAlign),rowIdx:t+f,colIdx:r.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:r.selectionColIdx,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===m-1,isNumeric:Ci(e[o]),representation:Si(e[o],r.representation,r.qAttrExprInfoIDs.findIndex((e=>"url"===e)),r.qAttrExprInfoIDs.findIndex((e=>"urlLabel"===e)))}})),n})))||[];return{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:h,totalsPosition:g,columns:b,rows:x}}(n,s,I,L,x):null),[s,I,n,u,R]);a((()=>{!!(R&&b&&n&&(s.snapshotData||t)&&s&&D&&f&&p&&d&&y&&g)&&function(e,t){const{app:n,model:r,direction:o,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,isLinksEnabled:v,...y}=e,x=lA(o);null==t||t.render(Bi.jsx(ys,{stylisPlugins:"rtl"===o?[Sf]:void 0,children:Bi.jsx(df,{theme:x,children:Bi.jsx(iA,{app:n,model:r,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,isNewHeadCellMenuEnabled:y.isNewHeadCellMenuEnabled,isLinksEnabled:v,children:Bi.jsx(mL,{...y,direction:o})})})}))}({app:t,model:n,rootElement:l,layout:s,tableData:D,direction:E,pageInfo:I,setPageInfo:L,interactions:u,translator:c,selectionsAPI:d,theme:p,changeSortOrder:f,keyboard:m,rect:h,footerContainer:C,announce:A,embed:g,applyColumnWidths:v,viewService:x,isNewHeadCellMenuEnabled:e,isLinksEnabled:S},b)}),[t,n,b,D,u,E,p.name(),m.active,A,f,v,R,s,d,g,l,I,L,c,h,C,y,e,S])};const HD=({model:e,layout:t,shouldRender:n,page:r})=>{const[o]=i((async()=>{if(n&&e)return(async(e,t,n)=>{let{qDataPages:r}=t.qHyperCube;if(0!==n||void 0===r||0===r.length){const o=n*Math.min(_b,t.qHyperCube.qSize.qcy);r=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:r,derivedFrom:{layout:t,page:n}}})(e,t,r)}),[e,t,r]),a=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==r;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:a}},BD=({app:e,layout:n,model:r,rect:i,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,isNewHeadCellMenuEnabled:y,isLinksEnabled:S})=>{const E=!Oi(n,v),C=t((()=>function(e,t,n){const r=Ai(e,n),o=Mi(e),i=e.qHyperCube.qSize.qcy,a=Math.min(_b,i),l=i>_b&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(n,c,v)),[n,c,v]),{pageInfo:w,setPage:R}=((e,n)=>{const[r,i]=o(0),a=Math.min(_b,e.qHyperCube.qSize.qcy),l=t((()=>({page:r,rowsPerPage:a,rowsPerPageOptions:[]})),[a,r]);if(n){const t=Math.floor(e.qHyperCube.qSize.qcy/_b);t<r&&i(t)}return{pageInfo:l,setPage:i}})(n,E),{initialDataPages:A,isLoading:P}=HD({model:r,layout:n,page:w.page,shouldRender:E});a((()=>{var e;E&&s.active&&(null===(e=s.blur)||void 0===e||e.call(s,!1))}),[s.active]),a((()=>{E&&r&&p&&A&&!P&&b&&function(e,t){const{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:S,isLinksEnabled:E}=e,C=lA("ltr");t.render(Bi.jsx(x.StrictMode,{children:Bi.jsx(df,{theme:C,children:Bi.jsx(iA,{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:S,isLinksEnabled:E,children:Bi.jsx(qD,{})})})}))}({app:e,layout:n,model:r,rect:i,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:C,applyColumnWidths:g,setPage:R,pageInfo:w,initialDataPages:A,viewService:v,isNewHeadCellMenuEnabled:y,isLinksEnabled:S},h)}),[e,n,r,i,l.name(),s.active,u,c,d,p,E,f,m,h,C,g,R,w,P,A,b,y,S])},WD={version:JSON.stringify("3.3.2"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function GD(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=(null==n?void 0:n.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(s,u),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(s,u),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const VD=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},UD=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const YD=(e,t,n,r)=>{var o;if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||jD.rowsPerPage,l=null!==(o=r.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},KD=(e,t,n)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const r=Ai(e,t);if(Oi(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=GD(n,r);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:YD(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=VD(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(UD(m,h,g)?d:d+1)+c;let v=p+c;const y=VD(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(UD(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:YD(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},XD=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),JD=e=>e.getStyle("object","straightTableV2","backgroundColor");function ZD(o){return{qae:{properties:{initial:WD},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:zr,exportProperties:Nr,exploration:jr},ext:co(o),component(){var y;const x=u(),S=(e=>{const n=t((()=>on(e)),[e]);return a((()=>()=>n.unmount()),[n]),n})(x),E=c(),C=d(),w=p(),R=f(),A=m(),P=h(),I=g(),{freeResize:L}=r(),D=b(),M=null!=E&&null!==(y=E.snapshotData)&&void 0!==y&&y.content&&!L?{...D,...E.snapshotData.content.size}:D,T=(e=>{const{viewState:n}=r();return t((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.rowPartialHeight)&&void 0!==n?n:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(n,e.snapshotData)),[n,e.snapshotData,e.usePagination])})(E),O=v(),k=((n,r,o)=>{const i=e();return t((()=>({...i,background:je(i,n,r,o)})),[i.name(),n,r,o])})(x,XD,JD),_=o.flags.isEnabled("CLIENT_IM_5716_TABLE_COL_WIDTH"),q=o.flags.isEnabled("CLIENT_IM_5715_LINKS"),N=((e,n,r)=>t((()=>((e,t,n)=>{if(t)return async(r,o)=>{const{isDim:i,colIdx:a,qReverseSort:l,sortDirection:s,isActivelySorted:u}=r,c=i?a:a-e,d=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,p=[],f=o&&o!==s||!o&&u;u||(d.splice(d.indexOf(a),1),d.unshift(a),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),(n&&f||!n&&u)&&p.push({qPath:`/qHyperCubeDef/${i?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!l).toString()}),t.applyPatches(p,!0)}})(e.qDimensionInfo.length,n,r)),[e.qDimensionInfo.length,n,r]))(E.qHyperCube,w,_),F=fo(E.qHyperCube,w),z=((e,t)=>{const{fontSize:n,fontFamily:r}=JR(t,e,!1),{fontSize:o,fontFamily:a}=ZR(t,e),[l,s]=i((async()=>(await document.fonts.load(`600 ${n} ${r}`),await document.fonts.load(`${o} ${a}`),!0)),[n,r,o,a]);return s?(console.warn("Failed to load font:",s),!0):!!l})(k,E);null==n||n(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(".sn-table-cell");r&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{po(r)}})})),(({layout:e,viewService:t,model:n,rootElement:r,contentRect:o})=>{l((async i=>{if(!i.snapshotData||!n||i.snapshotData.content)return i;if(n.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=KD(e,t,r);i.qHyperCube.qDataPages=await n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),s((()=>({getViewState:()=>KD(e,t,r)})),[e,t,r])})({layout:E,viewService:T,model:w,rootElement:x,contentRect:D}),BD({isNewHeadCellMenuEnabled:_,isLinksEnabled:q,app:C,layout:E,model:w,rect:M,theme:k,keyboard:I,translator:A,interactions:R,selectionsAPI:P,changeSortOrder:N,rootElement:x,embed:O,reactRoot:S,applyColumnWidths:F,isFontLoaded:z,viewService:T}),$D({isNewHeadCellMenuEnabled:_,isLinksEnabled:q,app:C,model:w,rootElement:x,layout:E,interactions:R,translator:A,selectionsAPI:P,theme:k,changeSortOrder:N,keyboard:I,rect:M,embed:O,reactRoot:S,applyColumnWidths:F,isFontLoaded:z,viewService:T})}}}export{ZD as default};