@nebula.js/sn-pivot-table 2.6.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api-specifications/properties.json +42 -1
- package/core/esm/index.js +11 -10
- package/dist/sn-pivot-table.js +13 -12
- package/dist/sn-pivot-table.systemjs.js +11 -10
- package/package.json +34 -87
- package/sn-pivot-table-ext/dist/sn-pivot-table.js +13 -12
- package/sn-pivot-table-ext/sn-pivot-table.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table
|
|
2
|
+
* @nebula.js/sn-pivot-table v3.0.0
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import{useMemo as e,usePromise as t,useEffect as n,useTheme as r,useState as o,onTakeSnapshot as i,useTranslator as a,useElement as l,useStaleLayout as s,useModel as u,useApp as c,useEmbed as d,useKeyboard as p,useInteractionState as f,useSelections as m,useRect as h}from"@nebula.js/stardust";import*as g from"react";import v,{useState as b,useMemo as y,forwardRef as x,useContext as S,useEffect as E,useCallback as w,Children as C,isValidElement as D,cloneElement as R,useRef as L,createContext as I,memo as M,useLayoutEffect as A,createElement as q,PureComponent as P}from"react";import*as k from"react-dom";import O from"react-dom";var T=Object.prototype.hasOwnProperty,_=Object.prototype.toString,N=Object.defineProperty,F=Object.getOwnPropertyDescriptor,H=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===_.call(e)},$=function(e){if(!e||"[object Object]"!==_.call(e))return!1;var t,n=T.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&T.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||T.call(e,t)},z=function(e,t){N&&"__proto__"===t.name?N(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},j=function(e,t){if("__proto__"===t){if(!T.call(e,t))return;if(F)return F(e,t).value}return e[t]};function W(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function V(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function B(){}!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=j(l,n),l!==(o=j(t,n))&&(c&&o&&($(o)||(i=H(o)))?(i?(i=!1,a=r&&H(r)?r:[]):a=r&&$(r)?r:{},z(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&z(l,{name:n,newValue:o}));return l}));var G=1/.7,U="\\s*([+-]?\\d+)\\s*",Y="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",K="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",X=/^#([0-9a-f]{3,8})$/,Z=new RegExp(`^rgb\\(${U},${U},${U}\\)$`),J=new RegExp(`^rgb\\(${K},${K},${K}\\)$`),Q=new RegExp(`^rgba\\(${U},${U},${U},${Y}\\)$`),ee=new RegExp(`^rgba\\(${K},${K},${K},${Y}\\)$`),te=new RegExp(`^hsl\\(${Y},${K},${K}\\)$`),ne=new RegExp(`^hsla\\(${Y},${K},${K},${Y}\\)$`),re={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 oe(){return this.rgb().formatHex()}function ie(){return this.rgb().formatRgb()}function ae(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=X.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?le(t):3===n?new de(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?se(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?se(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=Z.exec(e))?new de(t[1],t[2],t[3],1):(t=J.exec(e))?new de(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Q.exec(e))?se(t[1],t[2],t[3],t[4]):(t=ee.exec(e))?se(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=te.exec(e))?ve(t[1],t[2]/100,t[3]/100,1):(t=ne.exec(e))?ve(t[1],t[2]/100,t[3]/100,t[4]):re.hasOwnProperty(e)?le(re[e]):"transparent"===e?new de(NaN,NaN,NaN,0):null}function le(e){return new de(e>>16&255,e>>8&255,255&e,1)}function se(e,t,n,r){return r<=0&&(e=t=n=NaN),new de(e,t,n,r)}function ue(e){return e instanceof B||(e=ae(e)),e?new de((e=e.rgb()).r,e.g,e.b,e.opacity):new de}function ce(e,t,n,r){return 1===arguments.length?ue(e):new de(e,t,n,null==r?1:r)}function de(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function pe(){return`#${ge(this.r)}${ge(this.g)}${ge(this.b)}`}function fe(){const e=me(this.opacity);return`${1===e?"rgb(":"rgba("}${he(this.r)}, ${he(this.g)}, ${he(this.b)}${1===e?")":`, ${e})`}`}function me(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function he(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ge(e){return((e=he(e))<16?"0":"")+e.toString(16)}function ve(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ye(e,t,n,r)}function be(e){if(e instanceof ye)return new ye(e.h,e.s,e.l,e.opacity);if(e instanceof B||(e=ae(e)),!e)return new ye;if(e instanceof ye)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 ye(a,l,s,e.opacity)}function ye(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function xe(e){return(e=(e||0)%360)<0?e+360:e}function Se(e){return Math.max(0,Math.min(1,e||0))}function Ee(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}W(B,ae,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:oe,formatHex:oe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return be(this).formatHsl()},formatRgb:ie,toString:ie}),W(de,ce,V(B,{brighter(e){return e=null==e?G:Math.pow(G,e),new de(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new de(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new de(he(this.r),he(this.g),he(this.b),me(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:pe,formatHex:pe,formatHex8:function(){return`#${ge(this.r)}${ge(this.g)}${ge(this.b)}${ge(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fe,toString:fe})),W(ye,(function(e,t,n,r){return 1===arguments.length?be(e):new ye(e,t,n,null==r?1:r)}),V(B,{brighter(e){return e=null==e?G:Math.pow(G,e),new ye(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ye(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new de(Ee(e>=240?e-240:e+120,o,r),Ee(e,o,r),Ee(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ye(xe(this.h),Se(this.s),Se(this.l),me(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=me(this.opacity);return`${1===e?"hsl(":"hsla("}${xe(this.h)}, ${100*Se(this.s)}%, ${100*Se(this.l)}%${1===e?")":`, ${e})`}`}}));const we=Math.PI/180,Ce=180/Math.PI,De=4/29,Re=6/29,Le=3*Re*Re;function Ie(e){if(e instanceof Me)return new Me(e.l,e.a,e.b,e.opacity);if(e instanceof Oe)return Te(e);e instanceof de||(e=ue(e));var t,n,r=ke(e.r),o=ke(e.g),i=ke(e.b),a=Ae((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Ae((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Ae((.0139322*r+.0971045*o+.7141733*i)/.82521)),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 Ae(e){return e>.008856451679035631?Math.pow(e,1/3):e/Le+De}function qe(e){return e>Re?e*e*e:Le*(e-De)}function Pe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ke(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Oe(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Te(e){if(isNaN(e.h))return new Me(e.l,0,0,e.opacity);var t=e.h*we;return new Me(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}W(Me,(function(e,t,n,r){return 1===arguments.length?Ie(e):new Me(e,t,n,null==r?1:r)}),V(B,{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 de(Pe(3.1338561*(t=.96422*qe(t))-1.6168667*(e=1*qe(e))-.4906146*(n=.82521*qe(n))),Pe(-.9787684*t+1.9161415*e+.033454*n),Pe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),W(Oe,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Oe)return new Oe(e.h,e.c,e.l,e.opacity);if(e instanceof Me||(e=Ie(e)),0===e.a&&0===e.b)return new Oe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ce;return new Oe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Oe(e,t,n,null==r?1:r)}),V(B,{brighter(e){return new Oe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Oe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Te(this).rgb()}}));var _e=e=>()=>e;function Ne(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):_e(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Ne: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):_e(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ce(e)).r,(t=ce(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Ne(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 Fe,He=["__proto__","constructor"];function $e(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!He.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 ze(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 je(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 We(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Be)):void 0===t&&(t=Ve);for(var n,r,o,i,a,l=new Ye(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 Ye(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Ue)}function Ve(e){return e.children}function Be(e){return Array.isArray(e)?e[1]:null}function Ge(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ue(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ye(e){this.data=e,this.depth=this.height=0,this.parent=null}Ye.prototype=We.prototype={constructor:Ye,count:function(){return this.eachAfter(je)},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 We(this).eachBefore(Ge)},[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)}},Fe=function(e){
|
|
7
|
+
import{useMemo as e,usePromise as t,useEffect as r,useTheme as n,useState as o,onTakeSnapshot as i,useTranslator as a,useElement as l,useStaleLayout as s,useModel as u,useApp as c,useEmbed as d,useKeyboard as p,useInteractionState as f,useSelections as m,useRect as h}from"@nebula.js/stardust";import*as g from"react";import b,{useState as v,useMemo as y,createElement as x,useContext as S,useEffect as E,useCallback as C,Children as w,isValidElement as R,cloneElement as L,forwardRef as A,useRef as D,createContext as _,memo as I,useLayoutEffect as M,PureComponent as P}from"react";import*as O from"react-dom";import k from"react-dom";var T=Object.prototype.hasOwnProperty,q=Object.prototype.toString,N=Object.defineProperty,F=Object.getOwnPropertyDescriptor,z=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===q.call(e)},G=function(e){if(!e||"[object Object]"!==q.call(e))return!1;var t,r=T.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&T.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||T.call(e,t)},$=function(e,t){N&&"__proto__"===t.name?N(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},H=function(e,t){if("__proto__"===t){if(!T.call(e,t))return;if(F)return F(e,t).value}return e[t]};function B(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function W(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function j(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,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(r in t)n=H(l,r),l!==(o=H(t,r))&&(c&&o&&(G(o)||(i=z(o)))?(i?(i=!1,a=n&&z(n)?n:[]):a=n&&G(n)?n:{},$(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&$(l,{name:r,newValue:o}));return l}));var V=1/.7,Y="\\s*([+-]?\\d+)\\s*",U="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",K="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",X=/^#([0-9a-f]{3,8})$/,Z=new RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`),J=new RegExp(`^rgb\\(${K},${K},${K}\\)$`),Q=new RegExp(`^rgba\\(${Y},${Y},${Y},${U}\\)$`),ee=new RegExp(`^rgba\\(${K},${K},${K},${U}\\)$`),te=new RegExp(`^hsl\\(${U},${K},${K}\\)$`),re=new RegExp(`^hsla\\(${U},${K},${K},${U}\\)$`),ne={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function oe(){return this.rgb().formatHex()}function ie(){return this.rgb().formatRgb()}function ae(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=X.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?le(t):3===r?new de(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?se(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?se(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=Z.exec(e))?new de(t[1],t[2],t[3],1):(t=J.exec(e))?new de(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Q.exec(e))?se(t[1],t[2],t[3],t[4]):(t=ee.exec(e))?se(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=te.exec(e))?be(t[1],t[2]/100,t[3]/100,1):(t=re.exec(e))?be(t[1],t[2]/100,t[3]/100,t[4]):ne.hasOwnProperty(e)?le(ne[e]):"transparent"===e?new de(NaN,NaN,NaN,0):null}function le(e){return new de(e>>16&255,e>>8&255,255&e,1)}function se(e,t,r,n){return n<=0&&(e=t=r=NaN),new de(e,t,r,n)}function ue(e){return e instanceof j||(e=ae(e)),e?new de((e=e.rgb()).r,e.g,e.b,e.opacity):new de}function ce(e,t,r,n){return 1===arguments.length?ue(e):new de(e,t,r,null==n?1:n)}function de(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function pe(){return`#${ge(this.r)}${ge(this.g)}${ge(this.b)}`}function fe(){const e=me(this.opacity);return`${1===e?"rgb(":"rgba("}${he(this.r)}, ${he(this.g)}, ${he(this.b)}${1===e?")":`, ${e})`}`}function me(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function he(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ge(e){return((e=he(e))<16?"0":"")+e.toString(16)}function be(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ye(e,t,r,n)}function ve(e){if(e instanceof ye)return new ye(e.h,e.s,e.l,e.opacity);if(e instanceof j||(e=ae(e)),!e)return new ye;if(e instanceof ye)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new ye(a,l,s,e.opacity)}function ye(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function xe(e){return(e=(e||0)%360)<0?e+360:e}function Se(e){return Math.max(0,Math.min(1,e||0))}function Ee(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}B(j,ae,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:oe,formatHex:oe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ve(this).formatHsl()},formatRgb:ie,toString:ie}),B(de,ce,W(j,{brighter(e){return e=null==e?V:Math.pow(V,e),new de(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new de(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new de(he(this.r),he(this.g),he(this.b),me(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:pe,formatHex:pe,formatHex8:function(){return`#${ge(this.r)}${ge(this.g)}${ge(this.b)}${ge(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fe,toString:fe})),B(ye,(function(e,t,r,n){return 1===arguments.length?ve(e):new ye(e,t,r,null==n?1:n)}),W(j,{brighter(e){return e=null==e?V:Math.pow(V,e),new ye(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ye(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new de(Ee(e>=240?e-240:e+120,o,n),Ee(e,o,n),Ee(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ye(xe(this.h),Se(this.s),Se(this.l),me(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=me(this.opacity);return`${1===e?"hsl(":"hsla("}${xe(this.h)}, ${100*Se(this.s)}%, ${100*Se(this.l)}%${1===e?")":`, ${e})`}`}}));const Ce=Math.PI/180,we=180/Math.PI,Re=4/29,Le=6/29,Ae=3*Le*Le;function De(e){if(e instanceof _e)return new _e(e.l,e.a,e.b,e.opacity);if(e instanceof ke)return Te(e);e instanceof de||(e=ue(e));var t,r,n=Oe(e.r),o=Oe(e.g),i=Oe(e.b),a=Ie((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Ie((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Ie((.0139322*n+.0971045*o+.7141733*i)/.82521)),new _e(116*a-16,500*(t-a),200*(a-r),e.opacity)}function _e(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Ie(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ae+Re}function Me(e){return e>Le?e*e*e:Ae*(e-Re)}function Pe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Oe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ke(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Te(e){if(isNaN(e.h))return new _e(e.l,0,0,e.opacity);var t=e.h*Ce;return new _e(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}B(_e,(function(e,t,r,n){return 1===arguments.length?De(e):new _e(e,t,r,null==n?1:n)}),W(j,{brighter(e){return new _e(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new _e(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new de(Pe(3.1338561*(t=.96422*Me(t))-1.6168667*(e=1*Me(e))-.4906146*(r=.82521*Me(r))),Pe(-.9787684*t+1.9161415*e+.033454*r),Pe(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),B(ke,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ke)return new ke(e.h,e.c,e.l,e.opacity);if(e instanceof _e||(e=De(e)),0===e.a&&0===e.b)return new ke(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*we;return new ke(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ke(e,t,r,null==n?1:n)}),W(j,{brighter(e){return new ke(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ke(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Te(this).rgb()}}));var qe=e=>()=>e;function Ne(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):qe(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Ne:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):qe(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=ce(e)).r,(t=ce(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Ne(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Fe,ze=["__proto__","constructor"];function Ge(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!ze.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function $e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function He(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function Be(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=je)):void 0===t&&(t=We);for(var r,n,o,i,a,l=new Ue(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Ue(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Ye)}function We(e){return e.children}function je(e){return Array.isArray(e)?e[1]:null}function Ve(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ye(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ue(e){this.data=e,this.depth=this.height=0,this.parent=null}Ue.prototype=Be.prototype={constructor:Ue,count:function(){return this.eachAfter(He)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Be(this).eachBefore(Ve)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Fe=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\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?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="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+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}},Fe({exports:{}});var Ke=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Xe=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Ze(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Xe:Ke}function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qe={exports:{}};self,Qe.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:()=>qe});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 v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,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=b(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=b(d,f),v=b(p,h);return"".concat(a,"({1<").concat(g,",").concat(v,">}").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 w(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){return C="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},C(e)}var D=t().bind(null,!0),R={},L=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function M(e){return void 0===e}function A(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function q(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]=M(e[n||t])?i:e[t],e=e[n||t]}})),e}function P(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){P(e[r],t[r])||(n=!1)})),n);if(L(e)&&L(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!P(e[r],t[r]))return!1;return!0}return e===t}R.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?D({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);P(i,a)||A(t,o)||(M(a)?r.push({op:"add",path:l,value:i}):I(i)&&I(a)?r=r.concat(R.generate(a,i,l)):L(i)&&L(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(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(P(t,o))return r;if(!M(t[0])&&M(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(R.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){M(t[o])&&!A(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},R.apply=function(e,t){t.forEach((function(t){var n,r,o=q(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(L(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(L(a)&&L(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(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 w(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)?w(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&&!A(n,e)&&delete n[e]})),D(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=q(e,t.from);L(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(L(o)?o.splice(+i,1):delete o[i])}))},R.clone=function(e){return D({},e)},R.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},R.updateObject=function(e,t){Object.keys(e).length?R.apply(e,R.generate(e,t)):D(e,t)};const k=R,O=function(e,n,r){if(!e)return Promise.resolve();var o=k.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 T="accumulation";function _(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===T)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===T)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 H={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=_(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.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(T))return!1;var i=_(t,e);return i&&!i.disabled}};return n}};var $="movingAverage";function z(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 j(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 W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,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 v=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},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(j(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(j(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(j(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(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=z(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=z(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(j(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($))return!1;var i=z(t,e);return i&&!i.disabled}};return n}};var B="timeSeriesDecomposition";function G(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===B)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===B)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=G(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=G(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(B))return!1;var i=G(t,e);return i&&!i.disabled}};return n}};var X="difference";function Z(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 J(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(J(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(J(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(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Z(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 ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",De="qDef.qAggrFunc",Re="qDef.base.qAggrFunc",Le={initBase:function(e,t){(t||Le.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Le.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,De)&&i(e,Re)&&n(e,De,i(e,Re)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Ie=Le;function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}var Ae={accumulation:H,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const qe={modifiers:Ae,apply:ke,applyModifiers:Oe,cleanUpMeasure:Te,destroy:function(e){e&&Pe[e.id]&&Pe[e.id].masterItemSubscriber&&(Pe[e.id].masterItemSubscriber&&Pe[e.id].masterItemSubscriber.unsubscribe(),delete Pe[e.id])},hasActiveModifiers:_e,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[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=$e(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Je({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:Fe};var Pe={};function ke(){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;Pe[n.id]=Pe[n.id]||{isFirstTime:!0};var u=Pe[n.id].isFirstTime;if(Pe[n.id].isFirstTime=!1,r&&"object"===Me(r))return Oe({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=Pe[n.id].lastReloadTime;if(Pe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),_e({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 Ge({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:$e(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);je(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;He(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(Ae[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=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Oe({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"===Me(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 He(r).forEach((function(e){return Te(e)})),Ze({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function Oe(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),je(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=He(r)),!n.length)return Promise.resolve();if(!_e({measures:n,properties:r}))return n.forEach((function(e){return Te(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"===Me(e)&&!e.disabled){if(l++,"object"!==Me(Ae[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)");Ae[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:Ae[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 Ae[r.type].updateModifier&&Ae[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ae[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}),We(n)):Te(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Ze({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=$e(e);return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,We(e)}function _e(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:$e(e),properties:n,layout:r})}))}function Ne(e){var t=$e(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ae[r.type]&&!r.disabled)return r}}function Fe(e){var t=Ne(e);return!t||Ae[t.type].enableTotalsFunction(e)}function He(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function $e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function ze(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function je(e){He(e).forEach((function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&ze(n)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function We(e){var t=$e(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!Ae[t.type]&&ze(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,n=e.properties,r=e.layout;return!Be(t)&&Ue({modifiers:$e(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"!==Me(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[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 Ze(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):O(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Me(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=He(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=$e(t);if(Ue({modifiers:r,properties:e})){var i=Be(t);i&&n.push(i),o=o||Je({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)?(Pe[t.id].masterItemSubscriber=Pe[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 ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Pe[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:()=>je});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())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},b=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 w(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 C(e,t){return E()(!0,{},t,e)}function D(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var R=Math.pow(2,53)-1;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 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 M=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},A=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},q=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},P=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}}},k=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},O=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=w(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=w(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=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=C(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=C(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},_=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=D(a.max,o.dimensions.length,R),s=D(a.min,o.dimensions.length,0);return{maxDimensions:D(i.max,l,R),minDimensions:D(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},H=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},$=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=[]))},z=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 L(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 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}}(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)}))}},j=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)}))}},W=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 V(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 B={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,v({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),b({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}),v=i.getValue(r,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=_({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,w=y.minMeasures,C=s.defaultDimension,D=void 0===C?P():C,R=s.defaultMeasure,L=void 0===R?k():R;b.qDimensions.length=0,b.qMeasures.length=0,H({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w})&&$({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w,newHyperCubeDef:b}),O({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:D}),T({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:b,defaultMeasure:L}),z({newProperties:g,dataDefinition:a,hypercubePath:u}),j({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:b}),A("qMaxStackedCells",v,b),A("qNoOfLeftDims",v,b),q("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),q("qMode",v,b,"S"),q("qReductionMode",v,b,"N"),q("qSortbyYValue",v,b),q("qIndentMode",v,b),q("qShowTotalsAbove",v,b),M(g,t,r),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return W({measures:b.qMeasures,modifierTypes:I}),p&&V(h.qProperty,"storedFilters"),"S"===b.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var G={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||!G[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}},Z={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}}},J={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:J,"sn-scatter-plot":J,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]||Z).colorModeOptions||Z.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},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=B.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=B.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),v=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:v,properties:d})&&me(d):he(d),v&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):V(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}}),be.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=ve.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=ve.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 we(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(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=we(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 De(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=we(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 Re="qHyperCubeDef.qMeasures",Le="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const Ae={quarantine:function(e){Ce({properties:e,arrayPath:Re,quarantineName:Le,arrayName:Ie,itemPath:Me})},unquarantine:function(e){De({properties:e,arrayPath:Re,itemPath:Me,arrayName:Ie,quarantineName:Le})}};var qe="qHyperCubeDef.qMeasures",Pe="measures",ke="qHyperCubeDef.qDimensions",Oe="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",_e="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",He="qCalcCondition",$e="conditionalShowHide";const ze={quarantine:function(e){Ce({properties:e,arrayPath:qe,quarantineName:$e,arrayName:Pe,itemPath:He}),Ce({properties:e,arrayPath:ke,quarantineName:$e,arrayName:Oe,itemPath:He})},unquarantine:function(e){De({properties:e,arrayPath:qe,quarantineName:$e,arrayName:Pe,itemPath:He}),De({properties:e,arrayPath:ke,quarantineName:$e,arrayName:Oe,itemPath:He})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Te,quarantineName:$e,arrayName:_e,itemPath:He}),Ce({properties:e,arrayPath:Ne,quarantineName:$e,arrayName:Fe,itemPath:He})},unquarantineAlternative:function(e){De({properties:e,arrayPath:Te,quarantineName:$e,arrayName:_e,itemPath:He}),De({properties:e,arrayPath:Ne,quarantineName:$e,arrayName:Fe,itemPath:He})}},je={hypercube:B,colorChart:ve,axisChart:Ee,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ce,unquarantineArrayProp:De,conditionalColoring:Ae,conditionalShow:ze}})(),r.default})();var et=Je(Qe.exports);function tt(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o=r&&"rows"===r.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}const nt="qHyperCubeDef.qDimensions",rt="dimensions",ot="qOtherTotalSpec.qTotalMode",it="totalMode",at={quarantine(e){et.quarantineArrayProp({properties:e,arrayPath:nt,quarantineName:it,arrayName:rt,itemPath:ot})},unquarantine(e){et.unquarantineArrayProp({properties:e,arrayPath:nt,quarantineName:it,arrayName:rt,itemPath:ot})}};function lt(e){const t=tt(e);return(e,n,r,o)=>{var i,a,l,s,u,c;const d=et.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let m,h=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===h.length&&$e(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",h.concat());const v=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;v?(h=v,m=[...v],$e(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",h),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):h.length=0;const b=+(h.indexOf(-1)>-1),y=p+b;if(y>h.length)for(let e=h.length;e<y;e++)h.indexOf(e)<0&&h.push(e-b);for(let e=h.length-1;e>=0;e--)h[e]>=p&&h.splice(e,1);f>1&&h.indexOf(-1)<0?h.push(-1):f<2&&h.indexOf(-1)>-1&&h.splice(h.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&$e(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),m&&h&&m.length===h.length){for(let e=0;e<m.length;e++)if(m[e]!==h[e]){g=!1;break}g&&et.unquarantineProperty(d.qProperty,"noOfLeftDims")}return et.conditionalShow.unquarantine(d.qProperty),at.unquarantine(d.qProperty),d}}function st(e,t){var n,r,o;const i=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=et.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;$e(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),et.quarantineProperty(s.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete s.properties.qHyperCubeDef.qNoOfLeftDims;const f=null==s||null===(o=s.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;f&&(p=f,$e(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),$e(s,"data.0.interColumnSortOrder",p),delete s.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=p.length;e<c+d;e++)p.length<=e&&p.push(e);return et.conditionalShow.quarantine(s.properties),at.quarantine(s.properties),s}const ut={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},ct="12px",dt="nebula-table-utils-head-menu-button";var pt;!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"}(pt||(pt={}));const ft="nebula-table-utils-column-adjuster",mt=`${ft}-border`;var ht,gt,vt,bt;!function(e){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"}(ht||(ht={})),function(e){e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage"}(gt||(gt={})),function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(vt||(vt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(bt||(bt={}));var yt,xt,St,Et,wt=vt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(yt||(yt={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor"}(xt||(xt={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(St||(St={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Et||(Et={}));const Ct="TOTAL_OFF",Dt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:xt.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:xt.CellForegroundColor}]};function Rt(e,t,n){if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o}const Lt={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:gt.Auto,translation:"Common.Auto"},{value:gt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:gt.Pixels,translation:"Object.Table.Column.Pixels"},{value:gt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:gt.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:ht.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===gt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(ht.PixelsMin,Math.min(ht.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:ht.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===gt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(ht.PercentageMin,Math.min(ht.PercentageMax,e.qDef.columnWidth.percentage)))}}},It=e=>{var t,n;const{translator:r,anything:o}=e;return{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{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},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:Ct,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Ct,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&Rt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Ct&&Rt(e,0,n)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Dt,...Lt}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{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},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:Dt,...Lt}}}}},Mt="12px",At="Source Sans Pro, sans-serif",qt="600",Pt=15e3,kt=15e3,Ot=4/3,Tt=1;var _t,Nt;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(_t||(_t={})),function(e){e.Solid="solid",e.None="none"}(Nt||(Nt={}));const Ft={display:"flex",justifyContent:"center",alignItems:"center"},Ht={borderStyle:"solid"},$t={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},zt={lineHeight:"calc(1.3333333333333333)",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},jt=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",lineBreak:"auto",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-all"}),Wt=(e,t)=>e>0?`${e}px ${Nt.Solid} ${t}`:Nt.None,Vt=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:Wt(o,n),borderBottom:Wt(i,n),borderLeft:Nt.None,borderTop:Nt.None}},Bt=(e,t,n,r,o,i)=>{const a=Vt(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=Wt(2,o)),n||(a.borderLeft=Wt(1,o))),a},Gt=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=Wt(1,n)),t&&(r.borderRight=Wt(1,n)),r},Ut=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:i===_t.Transparent.toString()?"none":i}}}),Yt={translation:"properties.pivot.grid",component:"panel-section",items:{rowHeightItem:{component:"items",ref:"components",key:"theme",items:{lineClamp:{component:"inline-wrapper",items:{rowHeight:{component:"dropdown",ref:"grid.lineClamp",translation:"ThemeStyleEditor.style.rowHeight",options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}}},border:Ut("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:_t.DividerLight})),divider:Ut("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:_t.DividerDark})),background:Ut("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:_t.Transparent}))}}}},Kt=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},Xt=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:At,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Kt(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Ze(r).filter((e=>!s.includes(e))).map((e=>Kt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),Zt=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Jt=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Kt(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...Zt.filter((e=>!a.includes(e))).map((e=>Kt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),Qt=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},en=({section:e,defaultFontStyle:t,translator:n,flags:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Xt({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=Qt(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Jt({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=Qt(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:Ut(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=Qt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Ut(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=Qt(t,e,"backgroundColor"))&&void 0!==n?n:_t.Transparent}))}}}}),tn=({section:e,defaultFontStyle:t,fallbackBackground:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Ut(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=Qt(t,e,"color"))&&void 0!==n?n:t.color}))}},background:Ut(`${e}.background`,"properties.background",(t=>{var r,o;return null!==(r=null!==(o=Qt(t,e,"backgroundColor"))&&void 0!==o?o:n)&&void 0!==r?r:_t.Transparent}))}}}}),nn=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:en({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:en({section:"dimensionValues",translator:e,flags:t}),measureValueSection:en({section:"measureValues",translator:e,flags:t}),measureLabelSection:tn({section:"measureLabels"}),totalValuesSection:tn({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:tn({section:"nullValues",fallbackBackground:_t.NullValueBackground}),gridSection:Yt}}]}),rn=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[nn(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qDimensions)||void 0===t?void 0:t.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}]}}}),on="auto",an={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:on,translation:"Object.Table.SortingInSearch",options:[{value:on,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function ln(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:It(e),sorting:an,addons:ut,settings:rn(t,n)}}}function sn(e){return{support:{cssScaling:!1,snapshot:!1,export:!1,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:ln(e),importProperties:lt(e),exportProperties:st}}function un(e,t){const[n,r]=b(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var cn={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 dn=({translator:e})=>(y((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(cn).forEach((t=>{e.add(cn[t])}))}}(e)),[e]),e);function pn(n,r){const o=e((()=>({isLoading:!0})),r),[i,a]=t((async()=>{try{return await n()}finally{o.isLoading=!1}}),r);return[i,o.isLoading,a]}var fn,mn=O;fn=mn.createRoot,mn.hydrateRoot;function hn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function gn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function vn(){}var bn=.7,yn=1/bn,xn="\\s*([+-]?\\d+)\\s*",Sn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",En="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wn=/^#([0-9a-f]{3,8})$/,Cn=new RegExp(`^rgb\\(${xn},${xn},${xn}\\)$`),Dn=new RegExp(`^rgb\\(${En},${En},${En}\\)$`),Rn=new RegExp(`^rgba\\(${xn},${xn},${xn},${Sn}\\)$`),Ln=new RegExp(`^rgba\\(${En},${En},${En},${Sn}\\)$`),In=new RegExp(`^hsl\\(${Sn},${En},${En}\\)$`),Mn=new RegExp(`^hsla\\(${Sn},${En},${En},${Sn}\\)$`),An={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 qn(){return this.rgb().formatHex()}function Pn(){return this.rgb().formatRgb()}function kn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=wn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?On(t):3===n?new Fn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Tn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Tn(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=Cn.exec(e))?new Fn(t[1],t[2],t[3],1):(t=Dn.exec(e))?new Fn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Rn.exec(e))?Tn(t[1],t[2],t[3],t[4]):(t=Ln.exec(e))?Tn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=In.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]):An.hasOwnProperty(e)?On(An[e]):"transparent"===e?new Fn(NaN,NaN,NaN,0):null}function On(e){return new Fn(e>>16&255,e>>8&255,255&e,1)}function Tn(e,t,n,r){return r<=0&&(e=t=n=NaN),new Fn(e,t,n,r)}function _n(e){return e instanceof vn||(e=kn(e)),e?new Fn((e=e.rgb()).r,e.g,e.b,e.opacity):new Fn}function Nn(e,t,n,r){return 1===arguments.length?_n(e):new Fn(e,t,n,null==r?1:r)}function Fn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Hn(){return`#${Wn(this.r)}${Wn(this.g)}${Wn(this.b)}`}function $n(){const e=zn(this.opacity);return`${1===e?"rgb(":"rgba("}${jn(this.r)}, ${jn(this.g)}, ${jn(this.b)}${1===e?")":`, ${e})`}`}function zn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function jn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wn(e){return((e=jn(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 Gn(e,t,n,r)}function Bn(e){if(e instanceof Gn)return new Gn(e.h,e.s,e.l,e.opacity);if(e instanceof vn||(e=kn(e)),!e)return new Gn;if(e instanceof Gn)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 Gn(a,l,s,e.opacity)}function Gn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Un(e){return(e=(e||0)%360)<0?e+360:e}function Yn(e){return Math.max(0,Math.min(1,e||0))}function Kn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}hn(vn,kn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qn,formatHex:qn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Bn(this).formatHsl()},formatRgb:Pn,toString:Pn}),hn(Fn,Nn,gn(vn,{brighter(e){return e=null==e?yn:Math.pow(yn,e),new Fn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?bn:Math.pow(bn,e),new Fn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fn(jn(this.r),jn(this.g),jn(this.b),zn(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:Hn,formatHex:Hn,formatHex8:function(){return`#${Wn(this.r)}${Wn(this.g)}${Wn(this.b)}${Wn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$n,toString:$n})),hn(Gn,(function(e,t,n,r){return 1===arguments.length?Bn(e):new Gn(e,t,n,null==r?1:r)}),gn(vn,{brighter(e){return e=null==e?yn:Math.pow(yn,e),new Gn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?bn:Math.pow(bn,e),new Gn(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 Fn(Kn(e>=240?e-240:e+120,o,r),Kn(e,o,r),Kn(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Gn(Un(this.h),Yn(this.s),Yn(this.l),zn(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=zn(this.opacity);return`${1===e?"hsl(":"hsla("}${Un(this.h)}, ${100*Yn(this.s)}%, ${100*Yn(this.l)}%${1===e?")":`, ${e})`}`}}));const Xn=e=>{if(e){const t=Nn(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},Zn=(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===Nn(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:Xn(d?l:c),isTransparent:d}},Jn=3,Qn="N";function er(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 tr({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="",bold:r=!1,maxNbrLinesOfText:o=Jn}){const{estimateWidth:i,measureText:a,estimateLineCount:l}=y((()=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n}${n?" ":""}${r?"600 ":""}${e} ${t}`;const a=ze(i.measureText.bind(i)),l=e=>+a(e).width.toFixed(2),s=ze((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,i=e;do{r+=1,i=er(i,t,l)}while(null!==i&&r<o);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(Qn).width*e,estimateLineCount:s}}),[n,r,e,t,o]);return{estimateWidth:i,measureText:a,estimateLineCount:l}}function nr(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 rr="$$material";function or(){return or=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},or.apply(this,arguments)}function ir(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}function ar(){return ar=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},ar.apply(this,arguments)}function lr(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var sr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ur=lr((function(e){return sr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var cr=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),dr="-ms-",pr="-moz-",fr="-webkit-",mr="comm",hr="rule",gr="decl",vr="@keyframes",br=Math.abs,yr=String.fromCharCode,xr=Object.assign;function Sr(e){return e.trim()}function Er(e,t,n){return e.replace(t,n)}function wr(e,t){return e.indexOf(t)}function Cr(e,t){return 0|e.charCodeAt(t)}function Dr(e,t,n){return e.slice(t,n)}function Rr(e){return e.length}function Lr(e){return e.length}function Ir(e,t){return t.push(e),e}var Mr=1,Ar=1,qr=0,Pr=0,kr=0,Or="";function Tr(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Mr,column:Ar,length:a,return:""}}function _r(e,t){return xr(Tr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Nr(){return kr=Pr>0?Cr(Or,--Pr):0,Ar--,10===kr&&(Ar=1,Mr--),kr}function Fr(){return kr=Pr<qr?Cr(Or,Pr++):0,Ar++,10===kr&&(Ar=1,Mr++),kr}function Hr(){return Cr(Or,Pr)}function $r(){return Pr}function zr(e,t){return Dr(Or,e,t)}function jr(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 Wr(e){return Mr=Ar=1,qr=Rr(Or=e),Pr=0,[]}function Vr(e){return Or="",e}function Br(e){return Sr(zr(Pr-1,Yr(91===e?e+2:40===e?e+1:e)))}function Gr(e){for(;(kr=Hr())&&kr<33;)Fr();return jr(e)>2||jr(kr)>3?"":" "}function Ur(e,t){for(;--t&&Fr()&&!(kr<48||kr>102||kr>57&&kr<65||kr>70&&kr<97););return zr(e,$r()+(t<6&&32==Hr()&&32==Fr()))}function Yr(e){for(;Fr();)switch(kr){case e:return Pr;case 34:case 39:34!==e&&39!==e&&Yr(kr);break;case 40:41===e&&Yr(e);break;case 92:Fr()}return Pr}function Kr(e,t){for(;Fr()&&e+kr!==57&&(e+kr!==84||47!==Hr()););return"/*"+zr(t,Pr-1)+"*"+yr(47===e?e:Fr())}function Xr(e){for(;!jr(Hr());)Fr();return zr(e,Pr)}function Zr(e){return Vr(Jr("",null,null,null,[""],e=Wr(e),0,[0],e))}function Jr(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,v=1,b=0,y="",x=o,S=i,E=r,w=y;g;)switch(m=b,b=Fr()){case 40:if(108!=m&&58==Cr(w,d-1)){-1!=wr(w+=Er(Br(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:w+=Br(b);break;case 9:case 10:case 13:case 32:w+=Gr(m);break;case 92:w+=Ur($r()-1,7);continue;case 47:switch(Hr()){case 42:case 47:Ir(eo(Kr(Fr(),$r()),t,n),s);break;default:w+="/"}break;case 123*h:l[u++]=Rr(w)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(w=Er(w,/\f/g,"")),f>0&&Rr(w)-d&&Ir(f>32?to(w+";",r,n,d-1):to(Er(w," ","")+";",r,n,d-2),s);break;case 59:w+=";";default:if(Ir(E=Qr(w,t,n,u,c,o,l,y,x=[],S=[],d),i),123===b)if(0===c)Jr(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===Cr(w,3)?100:p){case 100:case 108:case 109:case 115:Jr(e,E,E,r&&Ir(Qr(e,E,E,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:Jr(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=w="",d=a;break;case 58:d=1+Rr(w),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Nr())continue;switch(w+=yr(b),b*h){case 38:v=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(Rr(w)-1)*v,v=1;break;case 64:45===Hr()&&(w+=Br(Fr())),p=Hr(),c=d=Rr(y=w+=Xr($r())),b++;break;case 45:45===m&&2==Rr(w)&&(h=0)}}return i}function Qr(e,t,n,r,o,i,a,l,s,u,c){for(var d=o-1,p=0===o?i:[""],f=Lr(p),m=0,h=0,g=0;m<r;++m)for(var v=0,b=Dr(e,d+1,d=br(h=a[m])),y=e;v<f;++v)(y=Sr(h>0?p[v]+" "+b:Er(b,/&\f/g,p[v])))&&(s[g++]=y);return Tr(e,t,n,0===o?hr:l,s,u,c)}function eo(e,t,n){return Tr(e,t,n,mr,yr(kr),Dr(e,2,-2),0)}function to(e,t,n,r){return Tr(e,t,n,gr,Dr(e,0,r),Dr(e,r+1,-1),r)}function no(e,t){for(var n="",r=Lr(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ro(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case gr:return e.return=e.return||e.value;case mr:return"";case vr:return e.return=e.value+"{"+no(e.children,r)+"}";case hr:e.value=e.props.join(",")}return Rr(n=no(e.children,r))?e.return=e.value+"{"+n+"}":""}function oo(e){var t=Lr(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}var io=function(e,t,n){for(var r=0,o=0;r=o,o=Hr(),38===r&&12===o&&(t[n]=1),!jr(o);)Fr();return zr(e,Pr)},ao=function(e,t){return Vr(function(e,t){var n=-1,r=44;do{switch(jr(r)){case 0:38===r&&12===Hr()&&(t[n]=1),e[n]+=io(Pr-1,t,n);break;case 2:e[n]+=Br(r);break;case 4:if(44===r){e[++n]=58===Hr()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=yr(r)}}while(r=Fr());return e}(Wr(e),t))},lo=new WeakMap,so=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||lo.get(n))&&!r){lo.set(e,!0);for(var o=[],i=ao(t,o),a=n.props,l=0,s=0;l<i.length;l++)for(var u=0;u<a.length;u++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[u]):a[u]+" "+i[l]}}},uo=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function co(e,t){switch(function(e,t){return 45^Cr(e,0)?(((t<<2^Cr(e,0))<<2^Cr(e,1))<<2^Cr(e,2))<<2^Cr(e,3):0}(e,t)){case 5103:return fr+"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 fr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fr+e+pr+e+dr+e+e;case 6828:case 4268:return fr+e+dr+e+e;case 6165:return fr+e+dr+"flex-"+e+e;case 5187:return fr+e+Er(e,/(\w+).+(:[^]+)/,fr+"box-$1$2"+dr+"flex-$1$2")+e;case 5443:return fr+e+dr+"flex-item-"+Er(e,/flex-|-self/,"")+e;case 4675:return fr+e+dr+"flex-line-pack"+Er(e,/align-content|flex-|-self/,"")+e;case 5548:return fr+e+dr+Er(e,"shrink","negative")+e;case 5292:return fr+e+dr+Er(e,"basis","preferred-size")+e;case 6060:return fr+"box-"+Er(e,"-grow","")+fr+e+dr+Er(e,"grow","positive")+e;case 4554:return fr+Er(e,/([^-])(transform)/g,"$1"+fr+"$2")+e;case 6187:return Er(Er(Er(e,/(zoom-|grab)/,fr+"$1"),/(image-set)/,fr+"$1"),e,"")+e;case 5495:case 3959:return Er(e,/(image-set\([^]*)/,fr+"$1$`$1");case 4968:return Er(Er(e,/(.+:)(flex-)?(.*)/,fr+"box-pack:$3"+dr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fr+e+e;case 4095:case 3583:case 4068:case 2532:return Er(e,/(.+)-inline(.+)/,fr+"$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(Rr(e)-1-t>6)switch(Cr(e,t+1)){case 109:if(45!==Cr(e,t+4))break;case 102:return Er(e,/(.+:)(.+)-([^]+)/,"$1"+fr+"$2-$3$1"+pr+(108==Cr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~wr(e,"stretch")?co(Er(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Cr(e,t+1))break;case 6444:switch(Cr(e,Rr(e)-3-(~wr(e,"!important")&&10))){case 107:return Er(e,":",":"+fr)+e;case 101:return Er(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fr+(45===Cr(e,14)?"inline-":"")+"box$3$1"+fr+"$2$3$1"+dr+"$2box$3")+e}break;case 5936:switch(Cr(e,t+11)){case 114:return fr+e+dr+Er(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fr+e+dr+Er(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fr+e+dr+Er(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fr+e+dr+e+e}return e}var po,fo,mo="undefined"!=typeof document,ho=mo?void 0:(po=function(){return lr((function(){var e={};return function(t){return e[t]}}))},fo=new WeakMap,function(e){if(fo.has(e))return fo.get(e);var t=po(e);return fo.set(e,t),t}),go=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case gr:e.return=co(e.value,e.length);break;case vr:return no([_r(e,{value:Er(e.value,"@","@"+fr)})],r);case hr:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return no([_r(e,{props:[Er(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return no([_r(e,{props:[Er(t,/:(plac\w+)/,":"+fr+"input-$1")]}),_r(e,{props:[Er(t,/:(plac\w+)/,":-moz-$1")]}),_r(e,{props:[Er(t,/:(plac\w+)/,dr+"input-$1")]})],r)}return""}))}}],vo=function(e){var t=e.key;if(mo&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||go,a={},l=[];mo&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)})));var s,u=[so,uo];if(mo){var c,d=[ro,(s=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=oo(u.concat(i,d));o=function(e,t,n,r){c=n,function(e){no(Zr(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[ro],m=oo(u.concat(i,f)),h=ho(i)(t),g=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return no(Zr(e),m)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),i):r?void(v.inserted[o]=i):i}}var v={key:t,sheet:new cr({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return v.sheet.hydrate(l),v},bo={exports:{}},yo={},xo="function"==typeof Symbol&&Symbol.for,So=xo?Symbol.for("react.element"):60103,Eo=xo?Symbol.for("react.portal"):60106,wo=xo?Symbol.for("react.fragment"):60107,Co=xo?Symbol.for("react.strict_mode"):60108,Do=xo?Symbol.for("react.profiler"):60114,Ro=xo?Symbol.for("react.provider"):60109,Lo=xo?Symbol.for("react.context"):60110,Io=xo?Symbol.for("react.async_mode"):60111,Mo=xo?Symbol.for("react.concurrent_mode"):60111,Ao=xo?Symbol.for("react.forward_ref"):60112,qo=xo?Symbol.for("react.suspense"):60113,Po=xo?Symbol.for("react.suspense_list"):60120,ko=xo?Symbol.for("react.memo"):60115,Oo=xo?Symbol.for("react.lazy"):60116,To=xo?Symbol.for("react.block"):60121,_o=xo?Symbol.for("react.fundamental"):60117,No=xo?Symbol.for("react.responder"):60118,Fo=xo?Symbol.for("react.scope"):60119;function Ho(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case So:switch(e=e.type){case Io:case Mo:case wo:case Do:case Co:case qo:return e;default:switch(e=e&&e.$$typeof){case Lo:case Ao:case Oo:case ko:case Ro:return e;default:return t}}case Eo:return t}}}function $o(e){return Ho(e)===Mo}yo.AsyncMode=Io,yo.ConcurrentMode=Mo,yo.ContextConsumer=Lo,yo.ContextProvider=Ro,yo.Element=So,yo.ForwardRef=Ao,yo.Fragment=wo,yo.Lazy=Oo,yo.Memo=ko,yo.Portal=Eo,yo.Profiler=Do,yo.StrictMode=Co,yo.Suspense=qo,yo.isAsyncMode=function(e){return $o(e)||Ho(e)===Io},yo.isConcurrentMode=$o,yo.isContextConsumer=function(e){return Ho(e)===Lo},yo.isContextProvider=function(e){return Ho(e)===Ro},yo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===So},yo.isForwardRef=function(e){return Ho(e)===Ao},yo.isFragment=function(e){return Ho(e)===wo},yo.isLazy=function(e){return Ho(e)===Oo},yo.isMemo=function(e){return Ho(e)===ko},yo.isPortal=function(e){return Ho(e)===Eo},yo.isProfiler=function(e){return Ho(e)===Do},yo.isStrictMode=function(e){return Ho(e)===Co},yo.isSuspense=function(e){return Ho(e)===qo},yo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===wo||e===Mo||e===Do||e===Co||e===qo||e===Po||"object"==typeof e&&null!==e&&(e.$$typeof===Oo||e.$$typeof===ko||e.$$typeof===Ro||e.$$typeof===Lo||e.$$typeof===Ao||e.$$typeof===_o||e.$$typeof===No||e.$$typeof===Fo||e.$$typeof===To)},yo.typeOf=Ho,bo.exports=yo;var zo=bo.exports,jo={};jo[zo.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jo[zo.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Wo="undefined"!=typeof document;var Vo=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Wo&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Bo=function(e,t,n){Vo(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);Wo||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Wo&&0!==o.length)return o}};function Go(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var Uo={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Yo=/[A-Z]|^ms/g,Ko=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xo=function(e){return 45===e.charCodeAt(1)},Zo=function(e){return null!=e&&"boolean"!=typeof e},Jo=lr((function(e){return Xo(e)?e:e.replace(Yo,"-$&").toLowerCase()})),Qo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ko,(function(e,t,n){return ti={name:t,styles:n,next:ti},t}))}return 1===Uo[e]||Xo(e)||"number"!=typeof t||0===t?t:t+"px"};function ei(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ti={name:n.name,styles:n.styles,next:ti},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ti={name:r.name,styles:r.styles,next:ti},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ei(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Zo(a)&&(r+=Jo(i)+":"+Qo(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ei(e,t,a);switch(i){case"animation":case"animationName":r+=Jo(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)Zo(a[s])&&(r+=Jo(i)+":"+Qo(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ti,i=n(e);return ti=o,ei(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var ti,ni=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ri=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ti=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ei(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=ei(n,t,e[a]),r&&(o+=i[a]);ni.lastIndex=0;for(var l,s="";null!==(l=ni.exec(o));)s+="-"+l[1];return{name:Go(o)+s,styles:o,next:ti}},oi="undefined"!=typeof document,ii=function(e){return e()},ai=!!g.useInsertionEffect&&g.useInsertionEffect,li=oi&&ai||ii,si=ai||g.useLayoutEffect,ui="undefined"!=typeof document,ci=g.createContext("undefined"!=typeof HTMLElement?vo({key:"css"}):null);ci.Provider;var di=function(e){return x((function(t,n){var r=S(ci);return e(t,r,n)}))};ui||(di=function(e){return function(t){var n=S(ci);return null===n?(n=vo({key:"css"}),g.createElement(ci.Provider,{value:n},e(t,n))):e(t,n)}});var pi=g.createContext({}),fi=di((function(e,t){var n=e.styles,r=ri([n],void 0,g.useContext(pi));if(!ui){for(var o,i=r.name,a=r.styles,l=r.next;void 0!==l;)i+=" "+l.name,a+=l.styles,l=l.next;var s=!0===t.compat,u=t.insert("",{name:i,styles:a},t.sheet,s);return s?null:g.createElement("style",((o={})["data-emotion"]=t.key+"-global "+i,o.dangerouslySetInnerHTML={__html:u},o.nonce=t.sheet.nonce,o))}var c=g.useRef();return si((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),c.current=[n,o],function(){n.flush()}}),[t]),si((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Bo(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function mi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ri(t)}var hi=function(){var e=mi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},gi=/[A-Z]|^ms/g,vi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bi=function(e){return 45===e.charCodeAt(1)},yi=function(e){return null!=e&&"boolean"!=typeof e},xi=lr((function(e){return bi(e)?e:e.replace(gi,"-$&").toLowerCase()})),Si=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(vi,(function(e,t,n){return wi={name:t,styles:n,next:wi},t}))}return 1===Uo[e]||bi(e)||"number"!=typeof t||0===t?t:t+"px"};function Ei(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return wi={name:n.name,styles:n.styles,next:wi},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)wi={name:r.name,styles:r.styles,next:wi},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ei(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":yi(a)&&(r+=xi(i)+":"+Si(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Ei(e,t,a);switch(i){case"animation":case"animationName":r+=xi(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var s=0;s<a.length;s++)yi(a[s])&&(r+=xi(i)+":"+Si(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=wi,i=n(e);return wi=o,Ei(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var wi,Ci=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Di=ur,Ri=function(e){return"theme"!==e},Li=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Di:Ri},Ii=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Mi="undefined"!=typeof document,Ai=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Vo(t,n,r);var o=li((function(){return Bo(t,n,r)}));if(!Mi&&void 0!==o){for(var i,a=n.name,l=n.next;void 0!==l;)a+=" "+l.name,l=l.next;return g.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},qi=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=Ii(t,n,i),s=l||Li(a),u=!s("as");return function(){var c=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,f=1;f<p;f++)d.push(c[f],c[0][f])}var m=di((function(e,t,n){var r,i,c,p,f=u&&e.as||a,m="",h=[],v=e;if(null==e.theme){for(var b in v={},e)v[b]=e[b];v.theme=g.useContext(pi)}"string"==typeof e.className?(r=t.registered,i=h,c=e.className,p="",c.split(" ").forEach((function(e){void 0!==r[e]?i.push(r[e]+";"):p+=e+" "})),m=p):null!=e.className&&(m=e.className+" ");var y=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";wi=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Ei(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Ei(n,t,e[a]),r&&(o+=i[a]);Ci.lastIndex=0;for(var l,s="";null!==(l=Ci.exec(o));)s+="-"+l[1];return{name:Go(o)+s,styles:o,next:wi}}(d.concat(h),t.registered,v);m+=t.key+"-"+y.name,void 0!==o&&(m+=" "+o);var x=u&&void 0===l?Li(f):s,S={};for(var E in e)u&&"as"===E||x(E)&&(S[E]=e[E]);return S.className=m,S.ref=n,g.createElement(g.Fragment,null,g.createElement(Ai,{cache:t,serialized:y,isStringTag:"string"==typeof f}),g.createElement(f,S))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,ar({},n,r,{shouldForwardProp:Ii(m,r,!0)})).apply(void 0,d)},m}}.bind();["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){qi[e]=qi(e)}));var Pi={exports:{}},ki={},Oi=v,Ti=Symbol.for("react.element"),_i=Symbol.for("react.fragment"),Ni=Object.prototype.hasOwnProperty,Fi=Oi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hi={key:!0,ref:!0,__self:!0,__source:!0};function $i(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)Ni.call(t,r)&&!Hi.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:Ti,type:e,key:i,ref:a,props:o,_owner:Fi.current}}ki.Fragment=_i,ki.jsx=$i,ki.jsxs=$i,Pi.exports=ki;var zi=Pi.exports;function ji(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return zi.jsx(fi,{styles:r})}
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,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(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",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"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Fe({exports:{}});var Ke=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Xe=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Ze(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Xe:Ke}function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qe={exports:{}};self,Qe.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Me});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var 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 r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],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 n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.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 r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function 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),L={},A=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function _(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=_(e[r||t])?i:e[t],e=e[r||t]}})),e}function P(e,t){var r=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){P(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!P(e[n],t[n]))return!1;return!0}return e===t}L.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);P(i,a)||I(t,o)||(_(a)?n.push({op:"add",path:l,value:i}):D(i)&&D(a)?n=n.concat(L.generate(a,i,l)):A(i)&&A(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&_(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(P(t,o))return n;if(!_(t[0])&&_(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(L.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){_(t[o])&&!I(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},L.apply=function(e,t){t.forEach((function(t){var r,n,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(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(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)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!I(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},L.clone=function(e){return R({},e)},L.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},L.updateObject=function(e,t){Object.keys(e).length?L.apply(e,L.generate(e,t)):R(e,t)};const O=L,k=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):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,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList: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]:{},r={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 r=q(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var G="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function H(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList: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]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var j="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===j)return r[n]}function Y(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===j)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var U={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,U),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=V(t,e);return i&&!i.disabled}};return r}};var X="difference";function Z(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function J(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList: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]:{},r={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(J(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(J(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(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=Z(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t,r){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,r){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t,r){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},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",Le="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Le)&&r(e,Re,i(e,Le)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ae;function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}var Ie={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Ie,apply:Oe,applyModifiers:ke,cleanUpMeasure:Te,destroy:function(e){e&&Pe[e.id]&&Pe[e.id].masterItemSubscriber&&(Pe[e.id].masterItemSubscriber&&Pe[e.id].masterItemSubscriber.unsubscribe(),delete Pe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Ge(e);Ye({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Je({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Pe={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Pe[r.id]=Pe[r.id]||{isFirstTime:!0};var u=Pe[r.id].isFirstTime;if(Pe[r.id].isFirstTime=!1,n&&"object"===_e(n))return ke({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Pe[r.id].lastReloadTime;if(Pe[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ye({modifiers:Ge(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);He(n);var o=Qe(n);return Ue({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(r++,"object"!==_e(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),ke({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===_e(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return Te(e)})),Ze({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function ke(e){var r=e.model,n=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===n&&(n=s?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ue({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ye({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;De.isValid(r)||De.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===_e(e)&&!e.disabled){if(l++,"object"!==_e(Ie[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)");Ie[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[n.type].updateModifier&&Ie[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Ie[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||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")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Ze({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=Ge(e);return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&!Ie[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:Ge(e),properties:r,layout:n})}))}function Ne(e){var t=Ge(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ie[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Ie[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Ge(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=Ge(e);Array.isArray(t)&&t.forEach((function(t){"object"===_e(t)&&(t.disabled||!Ie[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function je(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!je(t)&&Ye({modifiers:Ge(t),properties:r,layout:n})}function Ye(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==_e(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ue(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.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 Ze(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):k(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Je(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===_e(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Ge(t);if(Ye({modifiers:n,properties:e})){var i=je(t);i&&r.push(i),o=o||Je({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Pe[t.id].masterItemSubscriber=Pe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:s(t.layout)}}))}return{subscribe:function(e){var r=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:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Pe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>He});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return 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 r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?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 r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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 r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var L=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const _=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},I=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},M=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},P=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,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?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)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?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,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},l=R(a.max,o.dimensions.length,L),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,L),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},G=function(e){var t=e.exportFormat,r=e.maxDimensions,n=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>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(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=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return D(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 D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(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),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const j={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),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}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||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,r=e.initialProperties,n=void 0===r?{}:r,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:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?P():w,L=s.defaultMeasure,A=void 0===L?O():L;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&G({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),I("qMaxStackedCells",b,v),I("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),_(g,t,n),h.qProperty=g;var D=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:D}),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 Y(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function U(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 r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(Y(a,t,n,o),U(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}},Z={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}}},J={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:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,l=e.label;te(n,o);var s=n[n.length-1];if(s){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return 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,r,n){var o=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(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:r||l,key:r||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)}n||(i.auto=!1,i.mode=a)}function le(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||Z).colorModeOptions||Z.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=j.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),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,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=j.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,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,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=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:r,initialProperties:n})){var s=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);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,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),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,r=e.initialProperties,n=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:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,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(r,n,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Le="qHyperCubeDef.qMeasures",Ae="conditionalColoring",De="measures",_e="qDef.conditionalColoring";const Ie={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Ae,arrayName:De,itemPath:_e})},unquarantine:function(e){Re({properties:e,arrayPath:Le,itemPath:_e,arrayName:De,quarantineName:Ae})}};var Me="qHyperCubeDef.qMeasures",Pe="measures",Oe="qHyperCubeDef.qDimensions",ke="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",Ge="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:Ge,arrayName:Pe,itemPath:ze}),we({properties:e,arrayPath:Oe,quarantineName:Ge,arrayName:ke,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:Ge,arrayName:Pe,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Ge,arrayName:ke,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:Ge,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:Ge,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:Ge,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:Ge,arrayName:Fe,itemPath:ze})}},He={hypercube:j,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Ie,conditionalShow:$e}})(),n.default})();var et=Je(Qe.exports);function tt(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o=n&&"rows"===n.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")}}]}}const rt="qHyperCubeDef.qDimensions",nt="dimensions",ot="qOtherTotalSpec.qTotalMode",it="totalMode",at={quarantine(e){et.quarantineArrayProp({properties:e,arrayPath:rt,quarantineName:it,arrayName:nt,itemPath:ot})},unquarantine(e){et.unquarantineArrayProp({properties:e,arrayPath:rt,quarantineName:it,arrayName:nt,itemPath:ot})}};function lt(e){const t=tt(e);return(e,r,n,o)=>{var i,a,l,s,u,c;const d=et.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),p=((null===(i=d.qProperty)||void 0===i||null===(i=i.qHyperCubeDef)||void 0===i?void 0:i.qDimensions)||[]).length,f=(null===(a=d.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a||null===(a=a.qMeasures)||void 0===a?void 0:a.length)||0;let m,h=(null===(l=d.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l?void 0:l.qInterColumnSortOrder)||[],g=!0;p+f===h.length&&Ge(d,"qProperty.qLayoutExclude.quarantine.interColSortOrder",h.concat());const b=(null==d||null===(s=d.qProperty)||void 0===s||null===(s=s.qLayoutExclude)||void 0===s||null===(s=s.quarantine)||void 0===s?void 0:s.pivotInterColSortOrder)||void 0;b?(h=b,m=[...b],Ge(d,"qProperty.qHyperCubeDef.qInterColumnSortOrder",h),delete d.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):h.length=0;const v=+(h.indexOf(-1)>-1),y=p+v;if(y>h.length)for(let e=h.length;e<y;e++)h.indexOf(e)<0&&h.push(e-v);for(let e=h.length-1;e>=0;e--)h[e]>=p&&h.splice(e,1);f>1&&h.indexOf(-1)<0?h.push(-1):f<2&&h.indexOf(-1)>-1&&h.splice(h.indexOf(-1),1);const x=null!==(u=null==d||null===(c=d.qProperty)||void 0===c||null===(c=c.qHyperCubeDef)||void 0===c?void 0:c.qNoOfLeftDims)&&void 0!==u?u:-1;if(p>0&&-1===x&&Ge(d,"qProperty.qHyperCubeDef.qNoOfLeftDims",p),m&&h&&m.length===h.length){for(let e=0;e<m.length;e++)if(m[e]!==h[e]){g=!1;break}g&&et.unquarantineProperty(d.qProperty,"noOfLeftDims")}return et.conditionalShow.unquarantine(d.qProperty),at.unquarantine(d.qProperty),d}}function st(e,t){var r,n,o;const i=null!==(r=null==e||null===(n=e.qProperty)||void 0===n||null===(n=n.qHyperCubeDef)||void 0===n?void 0:n.qInterColumnSortOrder)&&void 0!==r?r:[],a=i.slice(),l=i.indexOf(-1);l>-1&&i.splice(l,1);const s=et.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),u=s.properties.qHyperCubeDef,c=u.qDimensions.length,d=u.qMeasures.length;let p=u.qInterColumnSortOrder;Ge(s,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",a),et.quarantineProperty(s.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete s.properties.qHyperCubeDef.qNoOfLeftDims;const f=null==s||null===(o=s.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;f&&(p=f,Ge(s,"properties.qHyperCubeDef.qInterColumnSortOrder",p),Ge(s,"data.0.interColumnSortOrder",p),delete s.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=p.length;e<c+d;e++)p.length<=e&&p.push(e);return et.conditionalShow.quarantine(s.properties),at.quarantine(s.properties),s}const ut={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},ct="12px",dt="nebula-table-utils-head-menu-button";let pt=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 ft="nebula-table-utils-column-adjuster",mt=`${ft}-border`;let ht=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}({}),gt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const bt="CLIENT_IM_5863_PVT_TEXT_ALIGN",vt="CLIENT_IM5847_PIVOT_LIMITATION";var yt,xt;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(yt||(yt={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(xt||(xt={}));var St,Et,Ct,wt,Rt=yt;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(St||(St={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor"}(Et||(Et={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ct||(Ct={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(wt||(wt={}));const Lt="TOTAL_OFF",At={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Et.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Et.CellForegroundColor}]};function Dt(e,t,r){if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=r.properties.qHyperCubeDef.qNoOfLeftDims;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o}const _t={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:gt.Auto,translation:"Common.Auto"},{value:gt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:gt.Pixels,translation:"Object.Table.Column.Pixels"},{value:gt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:gt.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:ht.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===gt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(ht.PixelsMin,Math.min(ht.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:ht.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===gt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(ht.PercentageMin,Math.min(ht.PercentageMax,e.qDef.columnWidth.percentage)))}}},It=({key:e,translation:t,flags:r})=>{if(r.isEnabled(bt))return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},[e]:{ref:`qDef.${e}.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:t=>{var r;return void 0!==t.qDef[e]&&!(null!==(r=t.qDef[e])&&void 0!==r&&r.auto)}}}},Mt=e=>{var t,r;const{translator:n,anything:o,flags:i}=e;return{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{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},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:Lt,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:Lt,translation:"properties.off"},show:(null===(t=o.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r||!r.call(t,"totals"))&&Dt},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>n.get("Object.Table.Totals"),show(e,t,r){var n,i,a;return!(null!==(n=o.sense)&&void 0!==n&&null!==(i=n.isUnsupportedFeature)&&void 0!==i&&i.call(n,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==Lt&&Dt(e,0,r)}},dimensionLimits:i.isEnabled(vt)?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled(vt)?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled(vt)?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:At,...It({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...It({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),..._t}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{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},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:At,...It({flags:i,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...It({flags:i,key:"textAlign",translation:"Common.Text.TextAlignment"}),..._t}}}}},Pt="12px",Ot="Source Sans Pro, sans-serif",kt="600",Tt=15e3,qt=15e3,Nt=4/3,Ft=1;var zt,Gt;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(zt||(zt={})),function(e){e.Solid="solid",e.None="none"}(Gt||(Gt={}));const $t={display:"flex",justifyContent:"center",alignItems:"center"},Ht={borderStyle:"solid"},Bt={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},Wt={lineHeight:"calc(1.3333333333333333)",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},jt=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",lineBreak:"auto",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-all"}),Vt=(e,t)=>e>0?`${e}px ${Gt.Solid} ${t}`:Gt.None,Yt=(e,t,r,n)=>{const o=Number(!t||(null==n?void 0:n.right)),i=Number(!e||(null==n?void 0:n.bottom));return{borderRight:Vt(o,r),borderBottom:Vt(i,r),borderLeft:Gt.None,borderTop:Gt.None}},Ut=(e,t,r,n,o,i)=>{const a=Yt(t,n,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=Vt(2,o)),r||(a.borderLeft=Vt(1,o))),a},Kt=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=Vt(1,r)),t&&(n.borderRight=Vt(1,r)),n},Xt=(e,t,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,n){const o=n.theme.current(),i=r(o);return{color:i===zt.Transparent.toString()?"none":i}}}),Zt={translation:"properties.pivot.grid",component:"panel-section",items:{rowHeightItem:{component:"items",ref:"components",key:"theme",items:{lineClamp:{component:"inline-wrapper",items:{rowHeight:{component:"dropdown",ref:"grid.lineClamp",translation:"ThemeStyleEditor.style.rowHeight",options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}}},border:Xt("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:zt.DividerLight})),divider:Xt("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:zt.DividerDark})),background:Xt("grid.background","properties.background",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.backgroundColor)&&void 0!==t?t:zt.Transparent}))}}}},Jt=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},Qt=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:Ot,l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Jt(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Ze(n).filter((e=>!s.includes(e))).map((e=>Jt(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),er=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],tr=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Jt(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...er.filter((e=>!a.includes(e))).map((e=>Jt(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),rr=(e,t,r)=>{var n,o,i,a,l,s;switch(t){case"header":return null==e||null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[r];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},nr=({section:e,defaultFontStyle:t,translator:r,flags:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Qt({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=rr(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:tr({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=rr(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Xt(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=rr(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Xt(`${e}.background`,"properties.background",(t=>{var r;return null!==(r=rr(t,e,"backgroundColor"))&&void 0!==r?r:zt.Transparent}))}}}}),or=({section:e,defaultFontStyle:t,fallbackBackground:r})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:Xt(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=rr(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Xt(`${e}.background`,"properties.background",(t=>{var n,o;return null!==(n=null!==(o=rr(t,e,"backgroundColor"))&&void 0!==o?o:r)&&void 0!==n?n:zt.Transparent}))}}}}),ir=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:nr({section:"header",defaultFontStyle:["bold"],translator:e,flags:t}),dimensionValueSection:nr({section:"dimensionValues",translator:e,flags:t}),measureValueSection:nr({section:"measureValues",translator:e,flags:t}),measureLabelSection:or({section:"measureLabels"}),totalValuesSection:or({section:"totalValues",defaultFontStyle:["bold"]}),nullValuesSection:or({section:"nullValues",fallbackBackground:zt.NullValueBackground}),gridSection:Zt}}]}),ar=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[ir(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){var t;return null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qDimensions)||void 0===t?void 0:t.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)}))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}]}}}),lr="auto",sr={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>t("integer",e?-1:0)},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:lr,translation:"Object.Table.SortingInSearch",options:[{value:lr,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function ur(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:Mt(e),sorting:sr,addons:ut,settings:ar(t,r)}}}function cr(e){return{support:{cssScaling:!1,snapshot:!1,export:!1,sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:ur(e),importProperties:lt(e),exportProperties:st}}function dr(e,t){const[r,n]=v(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var pr={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 fr=({translator:e})=>(y((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(pr).forEach((t=>{e.add(pr[t])}))}}(e)),[e]),e);function mr(r,n){const o=e((()=>({isLoading:!0})),n),[i,a]=t((async()=>{try{return await r()}finally{o.isLoading=!1}}),n);return[i,o.isLoading,a]}var hr,gr=k;hr=gr.createRoot,gr.hydrateRoot;function br(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function vr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function yr(){}var xr=.7,Sr=1/xr,Er="\\s*([+-]?\\d+)\\s*",Cr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Rr=/^#([0-9a-f]{3,8})$/,Lr=new RegExp(`^rgb\\(${Er},${Er},${Er}\\)$`),Ar=new RegExp(`^rgb\\(${wr},${wr},${wr}\\)$`),Dr=new RegExp(`^rgba\\(${Er},${Er},${Er},${Cr}\\)$`),_r=new RegExp(`^rgba\\(${wr},${wr},${wr},${Cr}\\)$`),Ir=new RegExp(`^hsl\\(${Cr},${wr},${wr}\\)$`),Mr=new RegExp(`^hsla\\(${Cr},${wr},${wr},${Cr}\\)$`),Pr={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 Or(){return this.rgb().formatHex()}function kr(){return this.rgb().formatRgb()}function Tr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Rr.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?qr(t):3===r?new Gr(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Nr(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Nr(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=Lr.exec(e))?new Gr(t[1],t[2],t[3],1):(t=Ar.exec(e))?new Gr(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Dr.exec(e))?Nr(t[1],t[2],t[3],t[4]):(t=_r.exec(e))?Nr(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ir.exec(e))?Vr(t[1],t[2]/100,t[3]/100,1):(t=Mr.exec(e))?Vr(t[1],t[2]/100,t[3]/100,t[4]):Pr.hasOwnProperty(e)?qr(Pr[e]):"transparent"===e?new Gr(NaN,NaN,NaN,0):null}function qr(e){return new Gr(e>>16&255,e>>8&255,255&e,1)}function Nr(e,t,r,n){return n<=0&&(e=t=r=NaN),new Gr(e,t,r,n)}function Fr(e){return e instanceof yr||(e=Tr(e)),e?new Gr((e=e.rgb()).r,e.g,e.b,e.opacity):new Gr}function zr(e,t,r,n){return 1===arguments.length?Fr(e):new Gr(e,t,r,null==n?1:n)}function Gr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function $r(){return`#${jr(this.r)}${jr(this.g)}${jr(this.b)}`}function Hr(){const e=Br(this.opacity);return`${1===e?"rgb(":"rgba("}${Wr(this.r)}, ${Wr(this.g)}, ${Wr(this.b)}${1===e?")":`, ${e})`}`}function Br(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function jr(e){return((e=Wr(e))<16?"0":"")+e.toString(16)}function Vr(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ur(e,t,r,n)}function Yr(e){if(e instanceof Ur)return new Ur(e.h,e.s,e.l,e.opacity);if(e instanceof yr||(e=Tr(e)),!e)return new Ur;if(e instanceof Ur)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Ur(a,l,s,e.opacity)}function Ur(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Kr(e){return(e=(e||0)%360)<0?e+360:e}function Xr(e){return Math.max(0,Math.min(1,e||0))}function Zr(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}br(yr,Tr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Or,formatHex:Or,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Yr(this).formatHsl()},formatRgb:kr,toString:kr}),br(Gr,zr,vr(yr,{brighter(e){return e=null==e?Sr:Math.pow(Sr,e),new Gr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?xr:Math.pow(xr,e),new Gr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Gr(Wr(this.r),Wr(this.g),Wr(this.b),Br(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:$r,formatHex:$r,formatHex8:function(){return`#${jr(this.r)}${jr(this.g)}${jr(this.b)}${jr(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Hr,toString:Hr})),br(Ur,(function(e,t,r,n){return 1===arguments.length?Yr(e):new Ur(e,t,r,null==n?1:n)}),vr(yr,{brighter(e){return e=null==e?Sr:Math.pow(Sr,e),new Ur(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xr:Math.pow(xr,e),new Ur(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Gr(Zr(e>=240?e-240:e+120,o,n),Zr(e,o,n),Zr(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ur(Kr(this.h),Xr(this.s),Xr(this.l),Br(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=Br(this.opacity);return`${1===e?"hsl(":"hsla("}${Kr(this.h)}, ${100*Xr(this.s)}%, ${100*Xr(this.l)}%${1===e?")":`, ${e})`}`}}));const Jr=Math.PI/180,Qr=180/Math.PI,en=.96422,tn=1,rn=.82521,nn=4/29,on=6/29,an=3*on*on,ln=on*on*on;function sn(e){if(e instanceof un)return new un(e.l,e.a,e.b,e.opacity);if(e instanceof hn)return gn(e);e instanceof Gr||(e=Fr(e));var t,r,n=fn(e.r),o=fn(e.g),i=fn(e.b),a=cn((.2225045*n+.7168786*o+.0606169*i)/tn);return n===o&&o===i?t=r=a:(t=cn((.4360747*n+.3850649*o+.1430804*i)/en),r=cn((.0139322*n+.0971045*o+.7141733*i)/rn)),new un(116*a-16,500*(t-a),200*(a-r),e.opacity)}function un(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function cn(e){return e>ln?Math.pow(e,1/3):e/an+nn}function dn(e){return e>on?e*e*e:an*(e-nn)}function pn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function fn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function mn(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof hn)return new hn(e.h,e.c,e.l,e.opacity);if(e instanceof un||(e=sn(e)),0===e.a&&0===e.b)return new hn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Qr;return new hn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new hn(e,t,r,null==n?1:n)}function hn(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function gn(e){if(isNaN(e.h))return new un(e.l,0,0,e.opacity);var t=e.h*Jr;return new un(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}br(un,(function(e,t,r,n){return 1===arguments.length?sn(e):new un(e,t,r,null==n?1:n)}),vr(yr,{brighter(e){return new un(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new un(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Gr(pn(3.1338561*(t=en*dn(t))-1.6168667*(e=tn*dn(e))-.4906146*(r=rn*dn(r))),pn(-.9787684*t+1.9161415*e+.033454*r),pn(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),br(hn,mn,vr(yr,{brighter(e){return new hn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new hn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return gn(this).rgb()}}));const bn=e=>{if(e){const t=zr(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},vn=(e,t,r,n)=>{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==r?void 0:r(e),u=null==n?void 0:n(e),c=s||i||u,d=(e=>!!e&&0===zr(e).opacity)(c);return{tableColorFromTheme:s||"inherit",color:c,isDark:bn(d?l:c),isTransparent:d}},yn=3,xn="N";function Sn(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function En({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=yn}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=y((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=$e(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=$e((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Sn(o,t,l)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(xn).width*e,estimateLineCount:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}function Cn(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 wn="$$material";function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rn.apply(this,arguments)}function Ln(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var An=function(){return An=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},An.apply(this,arguments)};function Dn(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var _n="-ms-",In="-moz-",Mn="-webkit-",Pn="comm",On="rule",kn="decl",Tn="@import",qn="@keyframes",Nn="@layer",Fn=Math.abs,zn=String.fromCharCode,Gn=Object.assign;function $n(e){return e.trim()}function Hn(e,t){return(e=t.exec(e))?e[0]:e}function Bn(e,t,r){return e.replace(t,r)}function Wn(e,t,r){return e.indexOf(t,r)}function jn(e,t){return 0|e.charCodeAt(t)}function Vn(e,t,r){return e.slice(t,r)}function Yn(e){return e.length}function Un(e){return e.length}function Kn(e,t){return t.push(e),e}function Xn(e,t){return e.filter((function(e){return!Hn(e,t)}))}var Zn=1,Jn=1,Qn=0,eo=0,to=0,ro="";function no(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Zn,column:Jn,length:a,return:"",siblings:l}}function oo(e,t){return Gn(no("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function io(e){for(;e.root;)e=oo(e.root,{children:[e]});Kn(e,e.siblings)}function ao(){return to=eo>0?jn(ro,--eo):0,Jn--,10===to&&(Jn=1,Zn--),to}function lo(){return to=eo<Qn?jn(ro,eo++):0,Jn++,10===to&&(Jn=1,Zn++),to}function so(){return jn(ro,eo)}function uo(){return eo}function co(e,t){return Vn(ro,e,t)}function po(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 fo(e){return $n(co(eo-1,go(91===e?e+2:40===e?e+1:e)))}function mo(e){for(;(to=so())&&to<33;)lo();return po(e)>2||po(to)>3?"":" "}function ho(e,t){for(;--t&&lo()&&!(to<48||to>102||to>57&&to<65||to>70&&to<97););return co(e,uo()+(t<6&&32==so()&&32==lo()))}function go(e){for(;lo();)switch(to){case e:return eo;case 34:case 39:34!==e&&39!==e&&go(to);break;case 40:41===e&&go(e);break;case 92:lo()}return eo}function bo(e,t){for(;lo()&&e+to!==57&&(e+to!==84||47!==so()););return"/*"+co(t,eo-1)+"*"+zn(47===e?e:lo())}function vo(e){for(;!po(so());)lo();return co(e,eo)}function yo(e){return function(e){return ro="",e}(xo("",null,null,null,[""],e=function(e){return Zn=Jn=1,Qn=Yn(ro=e),eo=0,[]}(e),0,[0],e))}function xo(e,t,r,n,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=n,C=y;g;)switch(m=v,v=lo()){case 40:if(108!=m&&58==jn(C,d-1)){-1!=Wn(C+=Bn(fo(v),"&","&\f"),"&\f",Fn(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=fo(v);break;case 9:case 10:case 13:case 32:C+=mo(m);break;case 92:C+=ho(uo()-1,7);continue;case 47:switch(so()){case 42:case 47:Kn(Eo(bo(lo(),uo()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=Yn(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Bn(C,/\f/g,"")),f>0&&Yn(C)-d&&Kn(f>32?Co(C+";",n,r,d-1,s):Co(Bn(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(Kn(E=So(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)xo(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===jn(C,3)?100:p){case 100:case 108:case 109:case 115:xo(e,E,E,n&&Kn(So(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:xo(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+Yn(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==ao())continue;switch(C+=zn(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Yn(C)-1)*b,b=1;break;case 64:45===so()&&(C+=fo(lo())),p=so(),c=d=Yn(y=C+=vo(uo())),v++;break;case 45:45===m&&2==Yn(C)&&(h=0)}}return i}function So(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Un(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Vn(e,p+1,p=Fn(g=a[h])),x=e;v<m;++v)(x=$n(g>0?f[v]+" "+y:Bn(y,/&\f/g,f[v])))&&(s[b++]=x);return no(e,t,r,0===o?On:l,s,u,c,d)}function Eo(e,t,r,n){return no(e,t,r,Pn,zn(to),Vn(e,2,-2),0,n)}function Co(e,t,r,n,o){return no(e,t,r,kn,Vn(e,0,n),Vn(e,n+1,-1),n,o)}function wo(e,t,r){switch(function(e,t){return 45^jn(e,0)?(((t<<2^jn(e,0))<<2^jn(e,1))<<2^jn(e,2))<<2^jn(e,3):0}(e,t)){case 5103:return Mn+"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 Mn+e+e;case 4789:return In+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Mn+e+In+e+_n+e+e;case 5936:switch(jn(e,t+11)){case 114:return Mn+e+_n+Bn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Mn+e+_n+Bn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Mn+e+_n+Bn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Mn+e+_n+e+e;case 6165:return Mn+e+_n+"flex-"+e+e;case 5187:return Mn+e+Bn(e,/(\w+).+(:[^]+)/,Mn+"box-$1$2"+_n+"flex-$1$2")+e;case 5443:return Mn+e+_n+"flex-item-"+Bn(e,/flex-|-self/g,"")+(Hn(e,/flex-|baseline/)?"":_n+"grid-row-"+Bn(e,/flex-|-self/g,""))+e;case 4675:return Mn+e+_n+"flex-line-pack"+Bn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Mn+e+_n+Bn(e,"shrink","negative")+e;case 5292:return Mn+e+_n+Bn(e,"basis","preferred-size")+e;case 6060:return Mn+"box-"+Bn(e,"-grow","")+Mn+e+_n+Bn(e,"grow","positive")+e;case 4554:return Mn+Bn(e,/([^-])(transform)/g,"$1"+Mn+"$2")+e;case 6187:return Bn(Bn(Bn(e,/(zoom-|grab)/,Mn+"$1"),/(image-set)/,Mn+"$1"),e,"")+e;case 5495:case 3959:return Bn(e,/(image-set\([^]*)/,Mn+"$1$`$1");case 4968:return Bn(Bn(e,/(.+:)(flex-)?(.*)/,Mn+"box-pack:$3"+_n+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Mn+e+e;case 4200:if(!Hn(e,/flex-|baseline/))return _n+"grid-column-align"+Vn(e,t)+e;break;case 2592:case 3360:return _n+Bn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Hn(e.props,/grid-\w+-end/)}))?~Wn(e+(r=r[t].value),"span",0)?e:_n+Bn(e,"-start","")+e+_n+"grid-row-span:"+(~Wn(r,"span",0)?Hn(r,/\d+/):+Hn(r,/\d+/)-+Hn(e,/\d+/))+";":_n+Bn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Hn(e.props,/grid-\w+-start/)}))?e:_n+Bn(Bn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Bn(e,/(.+)-inline(.+)/,Mn+"$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(Yn(e)-1-t>6)switch(jn(e,t+1)){case 109:if(45!==jn(e,t+4))break;case 102:return Bn(e,/(.+:)(.+)-([^]+)/,"$1"+Mn+"$2-$3$1"+In+(108==jn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wn(e,"stretch",0)?wo(Bn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Bn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return _n+r+":"+n+l+(o?_n+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===jn(e,t+6))return Bn(e,":",":"+Mn)+e;break;case 6444:switch(jn(e,45===jn(e,14)?18:11)){case 120:return Bn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Mn+(45===jn(e,14)?"inline-":"")+"box$3$1"+Mn+"$2$3$1"+_n+"$2box$3")+e;case 100:return Bn(e,":",":"+_n)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Bn(e,"scroll-","scroll-snap-")+e}return e}function Ro(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Lo(e,t,r,n){switch(e.type){case Nn:if(e.children.length)break;case Tn:case kn:return e.return=e.return||e.value;case Pn:return"";case qn:return e.return=e.value+"{"+Ro(e.children,n)+"}";case On:if(!Yn(e.value=e.props.join(",")))return""}return Yn(r=Ro(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ao(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case kn:return void(e.return=wo(e.value,e.length,r));case qn:return Ro([oo(e,{value:Bn(e.value,"@","@"+Mn)})],n);case On:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Hn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":io(oo(e,{props:[Bn(t,/:(read-\w+)/,":"+In+"$1")]})),io(oo(e,{props:[t]})),Gn(e,{props:Xn(r,n)});break;case"::placeholder":io(oo(e,{props:[Bn(t,/:(plac\w+)/,":"+Mn+"input-$1")]})),io(oo(e,{props:[Bn(t,/:(plac\w+)/,":"+In+"$1")]})),io(oo(e,{props:[Bn(t,/:(plac\w+)/,_n+"input-$1")]})),io(oo(e,{props:[t]})),Gn(e,{props:Xn(r,n)})}return""}))}}var Do={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},_o="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Io="active",Mo="data-styled-version",Po="6.1.6",Oo="/*!sc*/\n",ko="undefined"!=typeof window&&"HTMLElement"in window,To=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)),qo={},No=Object.freeze([]),Fo=Object.freeze({});function zo(e,t,r){return void 0===r&&(r=Fo),e.theme!==r.theme&&e.theme||t||r.theme}var Go=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"]),$o=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ho=/(^-|-$)/g;function Bo(e){return e.replace($o,"-").replace(Ho,"")}var Wo=/(a)(d)/gi,jo=52,Vo=function(e){return String.fromCharCode(e+(e>25?39:97))};function Yo(e){var t,r="";for(t=Math.abs(e);t>jo;t=t/jo|0)r=Vo(t%jo)+r;return(Vo(t%jo)+r).replace(Wo,"$1-$2")}var Uo,Ko=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Xo=function(e){return Ko(5381,e)};function Zo(e){return Yo(Xo(e)>>>0)}function Jo(e){return"string"==typeof e&&!0}var Qo="function"==typeof Symbol&&Symbol.for,ei=Qo?Symbol.for("react.memo"):60115,ti=Qo?Symbol.for("react.forward_ref"):60112,ri={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ni={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ii=((Uo={})[ti]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uo[ei]=oi,Uo);function ai(e){return("type"in(t=e)&&t.type.$$typeof)===ei?oi:"$$typeof"in e?ii[e.$$typeof]:ri;var t}var li=Object.defineProperty,si=Object.getOwnPropertyNames,ui=Object.getOwnPropertySymbols,ci=Object.getOwnPropertyDescriptor,di=Object.getPrototypeOf,pi=Object.prototype;function fi(e,t,r){if("string"!=typeof t){if(pi){var n=di(t);n&&n!==pi&&fi(e,n,r)}var o=si(t);ui&&(o=o.concat(ui(t)));for(var i=ai(e),a=ai(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ni||r&&r[s]||a&&s in a||i&&s in i)){var u=ci(t,s);try{li(e,s,u)}catch(e){}}}}return e}function mi(e){return"function"==typeof e}function hi(e){return"object"==typeof e&&"styledComponentId"in e}function gi(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function bi(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function vi(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function yi(e,t,r){if(void 0===r&&(r=!1),!r&&!vi(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=yi(e[n],t[n]);else if(vi(t))for(var n in t)e[n]=yi(e[n],t[n]);return e}function xi(e,t){Object.defineProperty(e,"toString",{value:t})}function Si(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ei=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Si(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),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],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Oo);return t},e}(),Ci=new Map,wi=new Map,Ri=1,Li=function(e){if(Ci.has(e))return Ci.get(e);for(;wi.has(Ri);)Ri++;var t=Ri++;return Ci.set(e,t),wi.set(t,e),t},Ai=function(e,t){Ri=t+1,Ci.set(e,t),wi.set(t,e)},Di="style[".concat(_o,"][").concat(Mo,'="').concat(Po,'"]'),_i=new RegExp("^".concat(_o,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ii=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Mi=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Oo),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(_i);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Ai(c,u),Ii(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var Pi=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(_o,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(_o,Io),n.setAttribute(Mo,Po);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Oi=function(){function e(e){this.element=Pi(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw Si(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}(),ki=function(){function e(e){this.element=Pi(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ti=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(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}(),qi=ko,Ni={isServer:!ko,useCSSOMInjection:!To},Fi=function(){function e(e,t,r){void 0===e&&(e=Fo),void 0===t&&(t={});var n=this;this.options=An(An({},Ni),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ko&&qi&&(qi=!1,function(e){for(var t=document.querySelectorAll(Di),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(_o)!==Io&&(Mi(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),xi(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return wi.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||0===a.length)return"continue";var l="".concat(_o,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Oo)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Li(e)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(An(An({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Ti(r):t?new Oi(r):new ki(r)}(this.options),new Ei(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(Li(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Li(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Li(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),zi=/&/g,Gi=/^\s*\/\/.*$/gm;function $i(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=$i(e.children,t)),e}))}var Hi=new Fi,Bi=function(e){var t,r,n,o=void 0===e?Fo:e,i=o.options,a=void 0===i?Fo:i,l=o.plugins,s=void 0===l?No:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===On&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(zi,r).replace(n,u))})),a.prefix&&c.push(Ao),c.push(Lo);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(Gi,""),u=yo(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=$i(u,a.namespace));var d,p=[];return Ro(u,function(e){var t=Un(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||Si(15),Ko(e,t.name)}),5381).toString():"",d}(),Wi=b.createContext({shouldForwardProp:void 0,styleSheet:Hi,stylis:Bi});function ji(){return S(Wi)}Wi.Consumer;var Vi=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Bi);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,xi(this,(function(){throw Si(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Bi),this.name+e.hash},e}(),Yi=function(e){return e>="A"&&e<="Z"};function Ui(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Yi(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Ki=function(e){return null==e||!1===e||""===e},Xi=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ki(i)&&(Array.isArray(i)&&i.isCss||mi(i)?n.push("".concat(Ui(o),":"),i,";"):vi(i)?n.push.apply(n,Dn(Dn(["".concat(o," {")],Xi(i),!1),["}"],!1)):n.push("".concat(Ui(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Do||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Zi(e,t,r,n){return Ki(e)?[]:hi(e)?[".".concat(e.styledComponentId)]:mi(e)?!mi(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Zi(e(t),t,r,n):e instanceof Vi?r?(e.inject(r,n),[e.getName(n)]):[e]:vi(e)?Xi(e):Array.isArray(e)?Array.prototype.concat.apply(No,e.map((function(e){return Zi(e,t,r,n)}))):[e.toString()];var o}function Ji(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(mi(r)&&!hi(r))return!1}return!0}var Qi=Xo(Po),ea=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Ji(e),this.componentId=t,this.baseHash=Ko(Qi,t),this.baseStyle=r,Fi.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=gi(n,this.staticRulesId);else{var o=bi(Zi(this.rules,e,t,r)),i=Yo(Ko(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=gi(n,i),this.staticRulesId=i}else{for(var l=Ko(this.baseHash,r.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=bi(Zi(c,e,t,r));l=Ko(l,d+u),s+=d}}if(s){var p=Yo(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=gi(n,p)}}return n},e}(),ta=b.createContext(void 0);ta.Consumer;var ra={};new Set;function na(e,t,r){var n=hi(e),o=e,i=!Jo(e),a=t.attrs,l=void 0===a?No:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Bo(e);ra[r]=(ra[r]||0)+1;var n="".concat(r,"-").concat(Zo(Po+r+ra[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Jo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Bo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new ea(r,p,n?o.componentStyle:void 0);function y(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=b.useContext(ta),c=ji(),d=e.shouldForwardProp||c.shouldForwardProp,p=zo(t,u,i)||Fo,f=function(e,t,r){for(var n,o=An(An({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=mi(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?gi(o[l],a[l]):"style"===l?An(An({},o[l]),a[l]):a[l]}return t.className&&(o.className=gi(o.className,t.className)),o}(n,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 v=function(e,t){var r=ji();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),y=gi(a,l);return v&&(y+=" "+v),f.className&&(y+=" "+f.className),h[Jo(m)&&!Go.has(m)?"class":"className"]=y,h.ref=r,x(m,h)}(S,e,t)}y.displayName=d;var S=b.forwardRef(y);return S.attrs=f,S.componentStyle=v,S.displayName=d,S.shouldForwardProp=m,S.foldedComponentIds=n?gi(o.foldedComponentIds,o.styledComponentId):"",S.styledComponentId=p,S.target=n?o.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)yi(e,o[n],!0);return e}({},o.defaultProps,e):e}}),xi(S,(function(){return".".concat(S.styledComponentId)})),i&&fi(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function oa(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var ia=function(e){return Object.assign(e,{isCss:!0})};function aa(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(mi(e)||vi(e))return ia(Zi(oa(No,Dn([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Zi(n):ia(Zi(oa(n,t)))}function la(e,t,r){if(void 0===r&&(r=Fo),!t)throw Si(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,aa.apply(void 0,Dn([n],o,!1)))};return n.attrs=function(n){return la(e,t,An(An({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return la(e,t,An(An({},r),n))},n}var sa=function(e){return la(na,e)},ua=sa;Go.forEach((function(e){ua[e]=sa(e)}));var ca=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ji(e),Fi.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(bi(Zi(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Fi.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function da(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=bi(aa.apply(void 0,Dn([e],t,!1))),o=Zo(n);return new Vi(o,n)}var pa={exports:{}};function fa(){}function ma(){}ma.resetWarningCache=fa;pa.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ma,resetWarningCache:fa};return r.PropTypes=r,r}();var ha=Je(pa.exports);const ga=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=aa.apply(void 0,Dn([e],t,!1)),o="sc-global-".concat(Zo(JSON.stringify(n))),i=new ca(n,o),a=function(e){var t=ji(),r=b.useContext(ta),n=b.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,qo,r,o);else{var l=An(An({},t),{theme:zo(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};return b.memo(a)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));var ba=ga;
|
|
10
10
|
/**
|
|
11
|
-
* @mui/styled-engine
|
|
11
|
+
* @mui/styled-engine-sc v6.0.0-alpha.13
|
|
12
12
|
*
|
|
13
13
|
* @license MIT
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/function Wi(e,t){return qi(e,t)}function Vi(){return Vi=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},Vi.apply(this,arguments)}function Bi(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}function Gi(){return Gi=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},Gi.apply(this,arguments)}function Ui(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Yi(e){if(!Ui(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Yi(e[n])})),t}function Ki(e,t,n={clone:!0}){const r=n.clone?Gi({},e):e;return Ui(e)&&Ui(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Ui(t[o])&&o in e&&Ui(e[o])?r[o]=Ki(e[o],t[o],n):n.clone?r[o]=Ui(t[o])?Yi(t[o]):t[o]:r[o]=t[o])})),r}function Xi(e){if("string"!=typeof e)throw new Error(nr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Zi(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Ji(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Qi(e){return e&&e.ownerDocument||document}function ea(e){return Qi(e).defaultView||window}function ta(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var na="undefined"!=typeof window?g.useLayoutEffect:g.useEffect;let ra=0;const oa=g["useId".toString()];function ia(e){if(void 0!==oa){const t=oa();return null!=e?e:t}return function(e){const[t,n]=g.useState(e),r=e||t;return g.useEffect((()=>{null==t&&(ra+=1,n(`mui-${ra}`))}),[t]),r}(e)}function aa({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=g.useRef(void 0!==e),[i,a]=g.useState(t);return[o?e:i,g.useCallback((e=>{o||a(e)}),[])]}function la(e){const t=g.useRef(e);return na((()=>{t.current=e})),g.useRef(((...e)=>(0,t.current)(...e))).current}function sa(...e){return g.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ta(e,t)}))}),e)}let ua,ca=!0,da=!1;const pa={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 fa(e){e.metaKey||e.altKey||e.ctrlKey||(ca=!0)}function ma(){ca=!1}function ha(){"hidden"===this.visibilityState&&da&&(ca=!0)}function ga(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ca||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!pa[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function va(){const e=g.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",fa,!0),t.addEventListener("mousedown",ma,!0),t.addEventListener("pointerdown",ma,!0),t.addEventListener("touchstart",ma,!0),t.addEventListener("visibilitychange",ha,!0))}),[]),t=g.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ga(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(da=!0,window.clearTimeout(ua),ua=window.setTimeout((()=>{da=!1}),100),t.current=!1,!0)},ref:e}}function ba(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ya(e,t){const n=Gi({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Gi({},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]=Gi({},i),Object.keys(o).forEach((e=>{n[r][e]=ya(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function xa(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}const Sa=e=>e;var Ea=(()=>{let e=Sa;return{configure(t){e=t},generate:t=>e(t),reset(){e=Sa}}})();const wa={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 Ca(e,t,n="Mui"){const r=wa[t];return r?`${n}-${r}`:`${Ea.generate(e)}-${t}`}function Da(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Ca(e,t,n)})),r}const Ra=["values","unit","step"],La=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)=>Vi({},e,{[t.key]:t.val})),{})};var Ia={borderRadius:4};function Ma(e,t){return t?Ki(e,t,{clone:!1}):e}const Aa={xs:0,sm:600,md:900,lg:1200,xl:1536},qa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Aa[e]}px)`};function Pa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||qa;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||qa;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Aa).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function ka(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 Oa(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ka(e,n)||r,t&&(o=t(o,r,e)),o}function Ta(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=ka(e.theme,r)||{};return Pa(e,i,(e=>{let r=Oa(a,o,e);return e===r&&"string"==typeof e&&(r=Oa(a,o,`${t}${"default"===e?"":Xi(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const _a={m:"margin",p:"padding"},Na={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ha=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Fa[e])return[e];e=Fa[e]}const[t,n]=e.split(""),r=_a[t],o=Na[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),$a=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],za=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ja(e,t,n,r){var o;const i=null!=(o=ka(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 Wa(e){return ja(e,"spacing",8)}function Va(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 Ba(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Va(t,n),e)),{})}(Ha(n),r);return Pa(e,e[n],o)}function Ga(e,t){const n=Wa(e.theme);return Object.keys(e).map((r=>Ba(e,t,r,n))).reduce(Ma,{})}function Ua(e){return Ga(e,$a)}function Ya(e){return Ga(e,za)}function Ka(...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]?Ma(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Xa(e){return"number"!=typeof e?e:`${e}px solid`}function Za(e,t){return Ta({prop:e,themeKey:"borders",transform:t})}Ua.propTypes={},Ua.filterProps=$a,Ya.propTypes={},Ya.filterProps=za;const Ja=Za("border",Xa),Qa=Za("borderTop",Xa),el=Za("borderRight",Xa),tl=Za("borderBottom",Xa),nl=Za("borderLeft",Xa),rl=Za("borderColor"),ol=Za("borderTopColor"),il=Za("borderRightColor"),al=Za("borderBottomColor"),ll=Za("borderLeftColor"),sl=Za("outline",Xa),ul=Za("outlineColor"),cl=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ja(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Va(t,e)});return Pa(e,e.borderRadius,n)}return null};cl.propTypes={},cl.filterProps=["borderRadius"],Ka(Ja,Qa,el,tl,nl,rl,ol,il,al,ll,cl,sl,ul);const dl=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ja(e.theme,"spacing",8),n=e=>({gap:Va(t,e)});return Pa(e,e.gap,n)}return null};dl.propTypes={},dl.filterProps=["gap"];const pl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ja(e.theme,"spacing",8),n=e=>({columnGap:Va(t,e)});return Pa(e,e.columnGap,n)}return null};pl.propTypes={},pl.filterProps=["columnGap"];const fl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ja(e.theme,"spacing",8),n=e=>({rowGap:Va(t,e)});return Pa(e,e.rowGap,n)}return null};fl.propTypes={},fl.filterProps=["rowGap"];function ml(e,t){return"grey"===t?t:e}Ka(dl,pl,fl,Ta({prop:"gridColumn"}),Ta({prop:"gridRow"}),Ta({prop:"gridAutoFlow"}),Ta({prop:"gridAutoColumns"}),Ta({prop:"gridAutoRows"}),Ta({prop:"gridTemplateColumns"}),Ta({prop:"gridTemplateRows"}),Ta({prop:"gridTemplateAreas"}),Ta({prop:"gridArea"}));function hl(e){return e<=1&&0!==e?100*e+"%":e}Ka(Ta({prop:"color",themeKey:"palette",transform:ml}),Ta({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ml}),Ta({prop:"backgroundColor",themeKey:"palette",transform:ml}));const gl=Ta({prop:"width",transform:hl}),vl=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])||Aa[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:hl(t)}};return Pa(e,e.maxWidth,t)}return null};vl.filterProps=["maxWidth"];const bl=Ta({prop:"minWidth",transform:hl}),yl=Ta({prop:"height",transform:hl}),xl=Ta({prop:"maxHeight",transform:hl}),Sl=Ta({prop:"minHeight",transform:hl});Ta({prop:"size",cssProperty:"width",transform:hl}),Ta({prop:"size",cssProperty:"height",transform:hl});Ka(gl,vl,bl,yl,xl,Sl,Ta({prop:"boxSizing"}));var El={border:{themeKey:"borders",transform:Xa},borderTop:{themeKey:"borders",transform:Xa},borderRight:{themeKey:"borders",transform:Xa},borderBottom:{themeKey:"borders",transform:Xa},borderLeft:{themeKey:"borders",transform:Xa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cl},color:{themeKey:"palette",transform:ml},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ml},backgroundColor:{themeKey:"palette",transform:ml},p:{style:Ya},pt:{style:Ya},pr:{style:Ya},pb:{style:Ya},pl:{style:Ya},px:{style:Ya},py:{style:Ya},padding:{style:Ya},paddingTop:{style:Ya},paddingRight:{style:Ya},paddingBottom:{style:Ya},paddingLeft:{style:Ya},paddingX:{style:Ya},paddingY:{style:Ya},paddingInline:{style:Ya},paddingInlineStart:{style:Ya},paddingInlineEnd:{style:Ya},paddingBlock:{style:Ya},paddingBlockStart:{style:Ya},paddingBlockEnd:{style:Ya},m:{style:Ua},mt:{style:Ua},mr:{style:Ua},mb:{style:Ua},ml:{style:Ua},mx:{style:Ua},my:{style:Ua},margin:{style:Ua},marginTop:{style:Ua},marginRight:{style:Ua},marginBottom:{style:Ua},marginLeft:{style:Ua},marginX:{style:Ua},marginY:{style:Ua},marginInline:{style:Ua},marginInlineStart:{style:Ua},marginInlineEnd:{style:Ua},marginBlock:{style:Ua},marginBlockStart:{style:Ua},marginBlockEnd:{style:Ua},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:dl},rowGap:{style:fl},columnGap:{style:pl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hl},maxWidth:{style:vl},minWidth:{transform:hl},height:{transform:hl},maxHeight:{transform:hl},minHeight:{transform:hl},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const wl=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=ka(n,l)||{};if(u)return u(o);return Pa(o,t,(t=>{let n=Oa(c,s,t);return t===n&&"string"==typeof t&&(n=Oa(c,s,`${e}${"default"===t?"":Xi(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:El;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=Ma(s,e(n,o,i,a));else{const e=Pa({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=Ma(s,e):s[n]=t({sx:o,theme:i})}else s=Ma(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)}}();wl.filterProps=["sx"];var Cl=wl;const Dl=["breakpoints","palette","spacing","shape"];function Rl(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Bi(e,Dl),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Bi(e,Ra),i=La(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 Vi({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=Wa({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=Ki({breakpoints:l,direction:"ltr",components:{},palette:Vi({mode:"light"},r),spacing:s,shape:Vi({},Ia,i)},a);return u=t.reduce(((e,t)=>Ki(e,t)),u),u.unstable_sxConfig=Vi({},El,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Cl({sx:e,theme:this})},u}function Ll(e=null){const t=g.useContext(pi);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Il=Rl();function Ml(e=Il){return Ll(e)}function Al({styles:e,themeId:t,defaultTheme:n={}}){const r=Ml(n),o="function"==typeof e?e(t&&r[t]||r):e;return zi.jsx(ji,{styles:o})}const ql=["sx"],Pl=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:El;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function kl(e){const{sx:t}=e,n=Bi(e,ql),{systemProps:r,otherProps:o}=Pl(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Ui(n)?Vi({},r,n):r}:Vi({},r,t),Vi({},o,{sx:i})}function Ol(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ol(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Tl(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ol(e))&&(r&&(r+=" "),r+=t);return r}const _l=["className","component"];const Nl=["variant"];function Fl(e){return 0===e.length}function Hl(e){const{variant:t}=e,n=Bi(e,Nl);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Fl(r)?e[t]:Xi(e[t]):`${Fl(r)?t:Xi(t)}${Xi(e[t].toString())}`})),r}const $l=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const zl=e=>{let t=0;const n={};return e&&e.forEach((e=>{let r="";"function"==typeof e.props?(r=`callback${t}`,t+=1):r=Hl(e.props),n[r]=e.style})),n},jl=(e,t,n)=>{const{ownerState:r={}}=e,o=[];let i=0;return n&&n.forEach((n=>{let a=!0;if("function"==typeof n.props){const t=Vi({},e,r);a=n.props(t)}else Object.keys(n.props).forEach((t=>{r[t]!==n.props[t]&&e[t]!==n.props[t]&&(a=!1)}));a&&("function"==typeof n.props?o.push(t[`callback${i}`]):o.push(t[Hl(n.props)])),"function"==typeof n.props&&(i+=1)})),o};function Wl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Vl=Rl(),Bl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Gl({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Ul(e){return e?(t,n)=>n[e]:null}const Yl=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(Vi({},t,{theme:Gl(Vi({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){return[o,...jl(t,zl(i),i)]}return o};function Kl({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ml(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?ya(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function Xl(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Zl(e){if(e.type)return e;if("#"===e.charAt(0))return Zl(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(nr(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(nr(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Jl(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 Ql(e){let t="hsl"===(e=Zl(e)).type||"hsla"===e.type?Zl(function(e){e=Zl(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])),Jl({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 es(e,t){return e=Zl(e),t=Xl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Jl(e)}function ts(){return ts=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},ts.apply(this,arguments)}var ns=g.createContext(null);function rs(){return g.useContext(ns)}var os="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function is(e){const{children:t,theme:n}=e,r=rs(),o=g.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return ts({},e,t)}(r,n);return null!=e&&(e[os]=null!==r),e}),[n,r]);return zi.jsx(ns.Provider,{value:o,children:t})}const as={};function ls(e,t,n,r=!1){return g.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Vi({},t,{[e]:i}):i;return r?()=>a:a}return Vi({},t,e?{[e]:n}:n)}),[e,t,n,r])}function ss(e){const{children:t,theme:n,themeId:r}=e,o=Ll(as),i=rs()||as,a=ls(r,o,n),l=ls(r,i,n,!0);return zi.jsx(is,{theme:l,children:zi.jsx(pi.Provider,{value:a,children:t})})}var us={black:"#000",white:"#fff"};var cs={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 ds={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 ps={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 fs={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 ms={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 hs={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 gs={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 vs=["mode","contrastThreshold","tonalOffset"],bs={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:us.white,default:us.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}},ys={text:{primary:us.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:us.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 xs(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=Zl(e),t=Xl(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 Jl(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Zl(e),t=Xl(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 Jl(e)}(e.main,i)))}function Ss(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ir(e,vs),i=e.primary||function(e="light"){return"dark"===e?{main:ms[200],light:ms[50],dark:ms[400]}:{main:ms[700],light:ms[400],dark:ms[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ds[200],light:ds[50],dark:ds[400]}:{main:ds[500],light:ds[300],dark:ds[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:ps[500],light:ps[300],dark:ps[700]}:{main:ps[700],light:ps[400],dark:ps[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:hs[400],light:hs[300],dark:hs[700]}:{main:hs[700],light:hs[500],dark:hs[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:gs[400],light:gs[300],dark:gs[700]}:{main:gs[800],light:gs[500],dark:gs[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:fs[400],light:fs[300],dark:fs[700]}:{main:"#ed6c02",light:fs[500],dark:fs[900]}}(t);function d(e){const t=function(e,t){const n=Ql(e),r=Ql(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ys.text.primary)>=n?ys.text.primary:bs.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=or({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(nr(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(nr(12,t?` (${t})`:"",JSON.stringify(e.main)));return xs(e,"light",o,r),xs(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ys,light:bs};return Ki(or({common:or({},us),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:cs,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Es=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ws={textTransform:"uppercase"},Cs='"Roboto", "Helvetica", "Arial", sans-serif';function Ds(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Cs,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=ir(n,Es),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return or({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Cs?{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,ws),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,ws),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ki(or({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Rs(...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 Ls=["none",Rs(0,2,1,-1,0,1,1,0,0,1,3,0),Rs(0,3,1,-2,0,2,2,0,0,1,5,0),Rs(0,3,3,-2,0,3,4,0,0,1,8,0),Rs(0,2,4,-1,0,4,5,0,0,1,10,0),Rs(0,3,5,-1,0,5,8,0,0,1,14,0),Rs(0,3,5,-1,0,6,10,0,0,1,18,0),Rs(0,4,5,-2,0,7,10,1,0,2,16,1),Rs(0,5,5,-3,0,8,10,1,0,3,14,2),Rs(0,5,6,-3,0,9,12,1,0,3,16,2),Rs(0,6,6,-3,0,10,14,1,0,4,18,3),Rs(0,6,7,-4,0,11,15,1,0,4,20,3),Rs(0,7,8,-4,0,12,17,2,0,5,22,4),Rs(0,7,8,-4,0,13,19,2,0,5,24,4),Rs(0,7,9,-4,0,14,21,2,0,5,26,4),Rs(0,8,9,-5,0,15,22,2,0,6,28,5),Rs(0,8,10,-5,0,16,24,2,0,6,30,5),Rs(0,8,11,-5,0,17,26,2,0,6,32,5),Rs(0,9,11,-5,0,18,28,2,0,7,34,6),Rs(0,9,12,-6,0,19,29,2,0,7,36,6),Rs(0,10,13,-6,0,20,31,3,0,8,38,7),Rs(0,10,13,-6,0,21,33,3,0,8,40,7),Rs(0,10,14,-6,0,22,35,3,0,8,42,7),Rs(0,11,14,-7,0,23,36,3,0,9,44,8),Rs(0,11,15,-7,0,24,38,3,0,9,46,8)];const Is=["duration","easing","delay"],Ms={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)"},As={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qs(e){return`${Math.round(e)}ms`}function Ps(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ks(e){const t=or({},Ms,e.easing),n=or({},As,e.duration);return or({getAutoHeightDuration:Ps,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return ir(r,Is),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:qs(o)} ${i} ${"string"==typeof a?a:qs(a)}`)).join(",")}},e,{easing:t,duration:n})}var Os={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Ts=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function _s(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ir(e,Ts);if(e.vars)throw new Error(nr(18));const l=Ss(r),s=Rl(e);let u=Ki(s,{mixins:(c=s.breakpoints,d=n,or({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Ls.slice(),typography:Ds(l,i),transitions:ks(o),zIndex:or({},Os)});var c,d;return u=Ki(u,a),u=t.reduce(((e,t)=>Ki(e,t)),u),u.unstable_sxConfig=or({},El,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Cl({sx:e,theme:this})},u}var Ns=_s();function Fs(){const e=Ml(Ns);return e[rr]||e}function Hs({props:e,name:t}){return Kl({props:e,name:t,defaultTheme:Ns,themeId:rr})}const $s=e=>Wl(e)&&"classes"!==e,zs=Wl,js=function(e={}){const{themeId:t,defaultTheme:n=Vl,rootShouldForwardProp:r=Wl,slotShouldForwardProp:o=Wl}=e,i=e=>Cl(Vi({},e,{theme:Gl(Vi({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Ul(Bl(s))}=a,p=Bi(a,$l),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Wl;"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=Wi(e,Vi({shouldForwardProp:h,label:undefined},p)),v=(r,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return r=>Yl({styledArg:e,props:r,defaultTheme:n,themeId:t});if(Ui(e)){let t,n=e;return e&&e.variants&&(t=e.variants,delete n.variants,n=n=>{let r=e;return jl(n,zl(t),t).forEach((e=>{r=Ki(r,e)})),r}),n}return e})):[];let s=r;if(Ui(r)){let e;r&&r.variants&&(e=r.variants,delete s.variants,s=t=>{let n=r;return jl(t,zl(e),e).forEach((e=>{n=Ki(n,e)})),n})}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>Yl({styledArg:r,props:e,defaultTheme:n,themeId:t}));l&&d&&a.push((e=>{const r=Gl(Vi({},e,{defaultTheme:n,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o(Vi({},e,{theme:r})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const r=Gl(Vi({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o;const i=null==n||null==(o=n.components)||null==(o=o[r])?void 0:o.variants;return jl(e,t,i)})(e,((e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),zl(n)})(l,r),r,l)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}const c=g(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:rr,defaultTheme:Ns,rootShouldForwardProp:$s});var Ws=js;const Vs=["theme"];function Bs(e){let{theme:t}=e,n=ir(e,Vs);const r=t[rr];return zi.jsx(ss,or({},n,{themeId:r?rr:void 0,theme:r||t}))}var Gs=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Us(){return Us=Object.assign||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},Us.apply(this,arguments)}function Ys(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){Ks(e,t,n[t])}))}return e}function Ks(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xs(e,t){if(null==e)return{};var n,r,o=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,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Zs(e){return"large"===e?"20px":"small"===e?"12px":"inherit"===e?"null":"16px"}var Js=function(e){var t=e.d,n=e.size,r=e.style,o=Xs(e,["d","size","style"]);return v.createElement("i",Us({style:Ys({fontSize:Zs(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r)},o),v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},v.createElement("path",{d:t})))};function Qs(e){return v.createElement(Js,Object.assign({d:"M15,4 L1,4 L1,2 L15,2 L15,4 Z M15,14 L1,14 L1,12 L15,12 L15,14 Z M15,9 L1,9 L1,7 L15,7 L15,9 Z"},e))}const eu={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},tu=(e,t)=>e.some((e=>t[e]>0));function nu(e){return Ca("MuiSvgIcon",e)}Da("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ru=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ou=Ws("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Xi(n.color)}`],t[`fontSize${Xi(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]}})),iu=g.forwardRef((function(e,t){const n=Hs({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=ir(n,ru),f=g.isValidElement(r)&&"svg"===r.type,m=or({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const v=(e=>{const{color:t,fontSize:n,classes:r}=e;return xa({root:["root","inherit"!==t&&`color${Xi(t)}`,`fontSize${Xi(n)}`]},nu,r)})(m);return zi.jsxs(ou,or({as:a,className:Tl(v.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?zi.jsx("title",{children:c}):null]}))}));iu.muiName="SvgIcon";var au=iu;var lu,su={},uu=Symbol.for("react.element"),cu=Symbol.for("react.portal"),du=Symbol.for("react.fragment"),pu=Symbol.for("react.strict_mode"),fu=Symbol.for("react.profiler"),mu=Symbol.for("react.provider"),hu=Symbol.for("react.context"),gu=Symbol.for("react.server_context"),vu=Symbol.for("react.forward_ref"),bu=Symbol.for("react.suspense"),yu=Symbol.for("react.suspense_list"),xu=Symbol.for("react.memo"),Su=Symbol.for("react.lazy"),Eu=Symbol.for("react.offscreen");
|
|
16
|
+
*/
|
|
17
|
+
function va(e,t){let r;return r=t?ua(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ua(e),r}ga.propTypes={defaultTheme:ha.object,styles:ha.oneOfType([ha.array,ha.string,ha.object,ha.func])};const ya=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};function xa(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 Sa(e){if(!xa(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Sa(e[r])})),t}function Ea(e,t,r={clone:!0}){const n=r.clone?Rn({},e):e;return xa(e)&&xa(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(xa(t[o])&&o in e&&xa(e[o])?n[o]=Ea(e[o],t[o],r):r.clone?n[o]=xa(t[o])?Sa(t[o]):t[o]:n[o]=t[o])})),n}var Ca,wa={},Ra=Symbol.for("react.element"),La=Symbol.for("react.portal"),Aa=Symbol.for("react.fragment"),Da=Symbol.for("react.strict_mode"),_a=Symbol.for("react.profiler"),Ia=Symbol.for("react.provider"),Ma=Symbol.for("react.context"),Pa=Symbol.for("react.server_context"),Oa=Symbol.for("react.forward_ref"),ka=Symbol.for("react.suspense"),Ta=Symbol.for("react.suspense_list"),qa=Symbol.for("react.memo"),Na=Symbol.for("react.lazy"),Fa=Symbol.for("react.offscreen");
|
|
17
18
|
/**
|
|
18
19
|
* @license React
|
|
19
20
|
* react-is.production.min.js
|
|
@@ -22,7 +23,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
|
|
|
22
23
|
*
|
|
23
24
|
* This source code is licensed under the MIT license found in the
|
|
24
25
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/function wu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case uu:switch(e=e.type){case du:case fu:case pu:case bu:case yu:return e;default:switch(e=e&&e.$$typeof){case gu:case hu:case vu:case Su:case xu:case mu:return e;default:return t}}case cu:return t}}}function Cu(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}function Du(e,t){return Du=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Du(e,t)}function Ru(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Du(e,t)}lu=Symbol.for("react.module.reference"),su.ContextConsumer=hu,su.ContextProvider=mu,su.Element=uu,su.ForwardRef=vu,su.Fragment=du,su.Lazy=Su,su.Memo=xu,su.Portal=cu,su.Profiler=fu,su.StrictMode=pu,su.Suspense=bu,su.SuspenseList=yu,su.isAsyncMode=function(){return!1},su.isConcurrentMode=function(){return!1},su.isContextConsumer=function(e){return wu(e)===hu},su.isContextProvider=function(e){return wu(e)===mu},su.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===uu},su.isForwardRef=function(e){return wu(e)===vu},su.isFragment=function(e){return wu(e)===du},su.isLazy=function(e){return wu(e)===Su},su.isMemo=function(e){return wu(e)===xu},su.isPortal=function(e){return wu(e)===cu},su.isProfiler=function(e){return wu(e)===fu},su.isStrictMode=function(e){return wu(e)===pu},su.isSuspense=function(e){return wu(e)===bu},su.isSuspenseList=function(e){return wu(e)===yu},su.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===du||e===fu||e===pu||e===bu||e===yu||e===Eu||"object"==typeof e&&null!==e&&(e.$$typeof===Su||e.$$typeof===xu||e.$$typeof===mu||e.$$typeof===hu||e.$$typeof===vu||e.$$typeof===lu||void 0!==e.getModuleId)},su.typeOf=wu;var Lu=!1,Iu=v.createContext(null),Mu="unmounted",Au="exited",qu="entering",Pu="entered",ku="exiting",Ou=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=Au,r.appearStatus=qu):o=Pu:o=t.unmountOnExit||t.mountOnEnter?Mu:Au,r.state={status:o},r.nextCallback=null,r}Ru(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Mu?{status:Au}: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!==qu&&n!==Pu&&(t=qu):n!==qu&&n!==Pu||(t=ku)}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===qu){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:O.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Au&&this.setState({status:Mu})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[O.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Lu?this.safeSetState({status:Pu},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:qu},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Pu},(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:O.findDOMNode(this);t&&!Lu?(this.props.onExit(r),this.safeSetState({status:ku},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Au},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Au},(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:O.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===Mu)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=Cu(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Iu.Provider,{value:null},"function"==typeof n?n(e,r):v.cloneElement(v.Children.only(n),r))},t}(v.Component);function Tu(){}Ou.contextType=Iu,Ou.propTypes={},Ou.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tu,onEntering:Tu,onEntered:Tu,onExit:Tu,onExiting:Tu,onExited:Tu},Ou.UNMOUNTED=Mu,Ou.EXITED=Au,Ou.ENTERING=qu,Ou.ENTERED=Pu,Ou.EXITING=ku;var _u=Ou;function Nu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fu(e,t){var n=Object.create(null);return e&&C.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&D(e)?t(e):e}(e)})),n}function Hu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function $u(e,t,n){var r=Fu(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(D(a)){var l=i in t,s=i in r,u=t[i],c=D(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&D(u)&&(o[i]=R(a,{onExited:n.bind(null,a),in:u.props.in,exit:Hu(a,"exit",e),enter:Hu(a,"enter",e)})):o[i]=R(a,{in:!1}):o[i]=R(a,{onExited:n.bind(null,a),in:!0,exit:Hu(a,"exit",e),enter:Hu(a,"enter",e)})}})),o}var zu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ju=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Nu(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ru(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,Fu(n.children,(function(e){return R(e,{onExited:r.bind(null,e),in:!0,appear:Hu(e,"appear",n),enter:Hu(e,"enter",n),exit:Hu(e,"exit",n)})}))):$u(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Fu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ar({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Cu(e,["component","childFactory"]),o=this.state.contextValue,i=zu(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?v.createElement(Iu.Provider,{value:o},i):v.createElement(Iu.Provider,{value:o},v.createElement(t,r,i))},t}(v.Component);ju.propTypes={},ju.defaultProps={component:"div",childFactory:function(e){return e}};var Wu=ju;const Vu=e=>e.scrollTop;function Bu(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 Gu(e){return Ca("MuiPaper",e)}Da("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 Uu=["className","component","elevation","square","variant"],Yu=Ws("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 or({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&&or({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${es("#fff",Gs(t.elevation))}, ${es("#fff",Gs(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var Ku=g.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=ir(n,Uu),u=or({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return xa({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Gu,o)})(u);return zi.jsx(Yu,or({as:o,ownerState:u,className:Tl(c.root,r),ref:t},s))}));var Xu=Da("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Zu=["center","classes","className"];let Ju,Qu,ec,tc,nc=e=>e;const rc=hi(Ju||(Ju=nc`
|
|
26
|
+
*/function za(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ra:switch(e=e.type){case Aa:case _a:case Da:case ka:case Ta:return e;default:switch(e=e&&e.$$typeof){case Pa:case Ma:case Oa:case Na:case qa:case Ia:return e;default:return t}}case La:return t}}}function Ga(e){if("string"!=typeof e)throw new Error(Cn(7));return e.charAt(0).toUpperCase()+e.slice(1)}Ca=Symbol.for("react.module.reference"),wa.ContextConsumer=Ma,wa.ContextProvider=Ia,wa.Element=Ra,wa.ForwardRef=Oa,wa.Fragment=Aa,wa.Lazy=Na,wa.Memo=qa,wa.Portal=La,wa.Profiler=_a,wa.StrictMode=Da,wa.Suspense=ka,wa.SuspenseList=Ta,wa.isAsyncMode=function(){return!1},wa.isConcurrentMode=function(){return!1},wa.isContextConsumer=function(e){return za(e)===Ma},wa.isContextProvider=function(e){return za(e)===Ia},wa.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ra},wa.isForwardRef=function(e){return za(e)===Oa},wa.isFragment=function(e){return za(e)===Aa},wa.isLazy=function(e){return za(e)===Na},wa.isMemo=function(e){return za(e)===qa},wa.isPortal=function(e){return za(e)===La},wa.isProfiler=function(e){return za(e)===_a},wa.isStrictMode=function(e){return za(e)===Da},wa.isSuspense=function(e){return za(e)===ka},wa.isSuspenseList=function(e){return za(e)===Ta},wa.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Aa||e===_a||e===Da||e===ka||e===Ta||e===Fa||"object"==typeof e&&null!==e&&(e.$$typeof===Na||e.$$typeof===qa||e.$$typeof===Ia||e.$$typeof===Ma||e.$$typeof===Oa||e.$$typeof===Ca||void 0!==e.getModuleId)},wa.typeOf=za;const $a=e=>e;var Ha=(()=>{let e=$a;return{configure(t){e=t},generate:t=>e(t),reset(){e=$a}}})();const Ba={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};const Wa=["values","unit","step"],ja=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)=>Rn({},e,{[t.key]:t.val})),{})};var Va={borderRadius:4};function Ya(e,t){return t?Ea(e,t,{clone:!1}):e}const Ua={xs:0,sm:600,md:900,lg:1200,xl:1536},Ka={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ua[e]}px)`};function Xa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Ka;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Ka;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Ua).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Za(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Ja(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Za(e,r)||n,t&&(o=t(o,n,e)),o}function Qa(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Za(e.theme,n)||{};return Xa(e,i,(e=>{let n=Ja(a,o,e);return e===n&&"string"==typeof e&&(n=Ja(a,o,`${t}${"default"===e?"":Ga(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const el={m:"margin",p:"padding"},tl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},nl=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!rl[e])return[e];e=rl[e]}const[t,r]=e.split(""),n=el[t],o=tl[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ol=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],il=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function al(e,t,r,n){var o;const i=null!=(o=Za(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function ll(e){return al(e,"spacing",8)}function sl(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function ul(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=sl(t,r),e)),{})}(nl(r),n);return Xa(e,e[r],o)}function cl(e,t){const r=ll(e.theme);return Object.keys(e).map((n=>ul(e,t,n,r))).reduce(Ya,{})}function dl(e){return cl(e,ol)}function pl(e){return cl(e,il)}function fl(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Ya(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ml(e){return"number"!=typeof e?e:`${e}px solid`}function hl(e,t){return Qa({prop:e,themeKey:"borders",transform:t})}dl.propTypes={},dl.filterProps=ol,pl.propTypes={},pl.filterProps=il;const gl=hl("border",ml),bl=hl("borderTop",ml),vl=hl("borderRight",ml),yl=hl("borderBottom",ml),xl=hl("borderLeft",ml),Sl=hl("borderColor"),El=hl("borderTopColor"),Cl=hl("borderRightColor"),wl=hl("borderBottomColor"),Rl=hl("borderLeftColor"),Ll=hl("outline",ml),Al=hl("outlineColor"),Dl=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=al(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:sl(t,e)});return Xa(e,e.borderRadius,r)}return null};Dl.propTypes={},Dl.filterProps=["borderRadius"],fl(gl,bl,vl,yl,xl,Sl,El,Cl,wl,Rl,Dl,Ll,Al);const _l=e=>{if(void 0!==e.gap&&null!==e.gap){const t=al(e.theme,"spacing",8),r=e=>({gap:sl(t,e)});return Xa(e,e.gap,r)}return null};_l.propTypes={},_l.filterProps=["gap"];const Il=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=al(e.theme,"spacing",8),r=e=>({columnGap:sl(t,e)});return Xa(e,e.columnGap,r)}return null};Il.propTypes={},Il.filterProps=["columnGap"];const Ml=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=al(e.theme,"spacing",8),r=e=>({rowGap:sl(t,e)});return Xa(e,e.rowGap,r)}return null};Ml.propTypes={},Ml.filterProps=["rowGap"];function Pl(e,t){return"grey"===t?t:e}fl(_l,Il,Ml,Qa({prop:"gridColumn"}),Qa({prop:"gridRow"}),Qa({prop:"gridAutoFlow"}),Qa({prop:"gridAutoColumns"}),Qa({prop:"gridAutoRows"}),Qa({prop:"gridTemplateColumns"}),Qa({prop:"gridTemplateRows"}),Qa({prop:"gridTemplateAreas"}),Qa({prop:"gridArea"}));function Ol(e){return e<=1&&0!==e?100*e+"%":e}fl(Qa({prop:"color",themeKey:"palette",transform:Pl}),Qa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pl}),Qa({prop:"backgroundColor",themeKey:"palette",transform:Pl}));const kl=Qa({prop:"width",transform:Ol}),Tl=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Ua[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ol(t)}};return Xa(e,e.maxWidth,t)}return null};Tl.filterProps=["maxWidth"];const ql=Qa({prop:"minWidth",transform:Ol}),Nl=Qa({prop:"height",transform:Ol}),Fl=Qa({prop:"maxHeight",transform:Ol}),zl=Qa({prop:"minHeight",transform:Ol});Qa({prop:"size",cssProperty:"width",transform:Ol}),Qa({prop:"size",cssProperty:"height",transform:Ol});fl(kl,Tl,ql,Nl,Fl,zl,Qa({prop:"boxSizing"}));var Gl={border:{themeKey:"borders",transform:ml},borderTop:{themeKey:"borders",transform:ml},borderRight:{themeKey:"borders",transform:ml},borderBottom:{themeKey:"borders",transform:ml},borderLeft:{themeKey:"borders",transform:ml},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ml},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Dl},color:{themeKey:"palette",transform:Pl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pl},backgroundColor:{themeKey:"palette",transform:Pl},p:{style:pl},pt:{style:pl},pr:{style:pl},pb:{style:pl},pl:{style:pl},px:{style:pl},py:{style:pl},padding:{style:pl},paddingTop:{style:pl},paddingRight:{style:pl},paddingBottom:{style:pl},paddingLeft:{style:pl},paddingX:{style:pl},paddingY:{style:pl},paddingInline:{style:pl},paddingInlineStart:{style:pl},paddingInlineEnd:{style:pl},paddingBlock:{style:pl},paddingBlockStart:{style:pl},paddingBlockEnd:{style:pl},m:{style:dl},mt:{style:dl},mr:{style:dl},mb:{style:dl},ml:{style:dl},mx:{style:dl},my:{style:dl},margin:{style:dl},marginTop:{style:dl},marginRight:{style:dl},marginBottom:{style:dl},marginLeft:{style:dl},marginX:{style:dl},marginY:{style:dl},marginInline:{style:dl},marginInlineStart:{style:dl},marginInlineEnd:{style:dl},marginBlock:{style:dl},marginBlockStart:{style:dl},marginBlockEnd:{style:dl},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:_l},rowGap:{style:Ml},columnGap:{style:Il},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ol},maxWidth:{style:Tl},minWidth:{transform:Ol},height:{transform:Ol},maxHeight:{transform:Ol},minHeight:{transform:Ol},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const $l=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Za(r,l)||{};if(u)return u(o);return Xa(o,t,(t=>{let r=Ja(c,s,t);return t===r&&"string"==typeof t&&(r=Ja(c,s,`${e}${"default"===t?"":Ga(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:Gl;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=Ya(s,e(r,o,i,a));else{const e=Xa({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=Ya(s,e):s[r]=t({sx:o,theme:i})}else s=Ya(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();$l.filterProps=["sx"];var Hl=$l;const Bl=["breakpoints","palette","spacing","shape"];function Wl(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Ln(e,Bl),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ln(e,Wa),i=ja(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Rn({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:r},o)}(r),s=function(e=8){if(e.mui)return e;const t=ll({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Ea({breakpoints:l,direction:"ltr",components:{},palette:Rn({mode:"light"},n),spacing:s,shape:Rn({},Va,i)},a);return u=t.reduce(((e,t)=>Ea(e,t)),u),u.unstable_sxConfig=Rn({},Gl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Hl({sx:e,theme:this})},u}function jl(e=null){const t=g.useContext(ta);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Vl=Wl();var Yl={exports:{}},Ul={},Kl=b,Xl=Symbol.for("react.element"),Zl=Symbol.for("react.fragment"),Jl=Object.prototype.hasOwnProperty,Ql=Kl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,es={key:!0,ref:!0,__self:!0,__source:!0};function ts(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Jl.call(t,n)&&!es.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Xl,type:e,key:i,ref:a,props:o,_owner:Ql.current}}Ul.Fragment=Zl,Ul.jsx=ts,Ul.jsxs=ts,Yl.exports=Ul;var rs=Yl.exports;const ns=["sx"],os=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Gl;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function is(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=is(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function as(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=is(e))&&(n&&(n+=" "),n+=t);return n}const ls=["className","component"];const ss=["variant"];function us(e){return 0===e.length}function cs(e){const{variant:t}=e,r=Ln(e,ss);let n=t||"";return Object.keys(r).sort().forEach((t=>{n+="color"===t?us(n)?e[t]:Ga(e[t]):`${us(n)?t:Ga(t)}${Ga(e[t].toString())}`})),n}const ds=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const ps=e=>{let t=0;const r={};return e&&e.forEach((e=>{let n="";"function"==typeof e.props?(n=`callback${t}`,t+=1):n=cs(e.props),r[n]=e.style})),r},fs=(e,t,r)=>{const{ownerState:n={}}=e,o=[];let i=0;return r&&r.forEach((r=>{let a=!0;if("function"==typeof r.props){const t=Rn({},e,n);a=r.props(t)}else Object.keys(r.props).forEach((t=>{n[t]!==r.props[t]&&e[t]!==r.props[t]&&(a=!1)}));a&&("function"==typeof r.props?o.push(t[`callback${i}`]):o.push(t[cs(r.props)])),"function"==typeof r.props&&(i+=1)})),o};function ms(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const hs=Wl(),gs=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function bs({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function vs(e){return e?(t,r)=>r[e]:null}const ys=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const o=e(Rn({},t,{theme:bs(Rn({},t,{defaultTheme:r,themeId:n}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){return[o,...fs(t,ps(i),i)]}return o};function xs(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function Ss(e){if(e.type)return e;if("#"===e.charAt(0))return Ss(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Cn(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Cn(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Es(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Cs(e){let t="hsl"===(e=Ss(e)).type||"hsla"===e.type?Ss(function(e){e=Ss(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let 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])),Es({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 ws(e,t){return e=Ss(e),t=xs(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Es(e)}var Rs=g.createContext(null);function Ls(){return g.useContext(Rs)}var As="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ds(e){const{children:t,theme:r}=e,n=Ls(),o=g.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Rn({},e,t)}(n,r);return null!=e&&(e[As]=null!==n),e}),[r,n]);return rs.jsx(Rs.Provider,{value:o,children:t})}const _s={};function Is(e,t,r,n=!1){return g.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Rn({},t,{[e]:i}):i;return n?()=>a:a}return Rn({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Ms(e){const{children:t,theme:r,themeId:n}=e,o=jl(_s),i=Ls()||_s,a=Is(n,o,r),l=Is(n,i,r,!0);return rs.jsx(Ds,{theme:l,children:rs.jsx(ta.Provider,{value:a,children:t})})}var Ps={black:"#000",white:"#fff"};var Os={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 ks={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 Ts={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 qs={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 Ns={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 Fs={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 zs={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 Gs=["mode","contrastThreshold","tonalOffset"],$s={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:Ps.white,default:Ps.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}},Hs={text:{primary:Ps.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:Ps.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 Bs(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=Ss(e),t=xs(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Es(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Ss(e),t=xs(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Es(e)}(e.main,i)))}function Ws(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ln(e,Gs),i=e.primary||function(e="light"){return"dark"===e?{main:Ns[200],light:Ns[50],dark:Ns[400]}:{main:Ns[700],light:Ns[400],dark:Ns[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ks[200],light:ks[50],dark:ks[400]}:{main:ks[500],light:ks[300],dark:ks[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Ts[500],light:Ts[300],dark:Ts[700]}:{main:Ts[700],light:Ts[400],dark:Ts[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Fs[400],light:Fs[300],dark:Fs[700]}:{main:Fs[700],light:Fs[500],dark:Fs[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:zs[400],light:zs[300],dark:zs[700]}:{main:zs[800],light:zs[500],dark:zs[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:qs[400],light:qs[300],dark:qs[700]}:{main:"#ed6c02",light:qs[500],dark:qs[900]}}(t);function d(e){const t=function(e,t){const r=Cs(e),n=Cs(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Hs.text.primary)>=r?Hs.text.primary:$s.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Rn({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Cn(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Cn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Bs(e,"light",o,n),Bs(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Hs,light:$s};return Ea(Rn({common:Rn({},Ps),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:Os,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const js=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Vs={textTransform:"uppercase"},Ys='"Roboto", "Helvetica", "Arial", sans-serif';function Us(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Ys,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Ln(r,js),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return Rn({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Ys?{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,Vs),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Vs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ea(Rn({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Ks(...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 Xs=["none",Ks(0,2,1,-1,0,1,1,0,0,1,3,0),Ks(0,3,1,-2,0,2,2,0,0,1,5,0),Ks(0,3,3,-2,0,3,4,0,0,1,8,0),Ks(0,2,4,-1,0,4,5,0,0,1,10,0),Ks(0,3,5,-1,0,5,8,0,0,1,14,0),Ks(0,3,5,-1,0,6,10,0,0,1,18,0),Ks(0,4,5,-2,0,7,10,1,0,2,16,1),Ks(0,5,5,-3,0,8,10,1,0,3,14,2),Ks(0,5,6,-3,0,9,12,1,0,3,16,2),Ks(0,6,6,-3,0,10,14,1,0,4,18,3),Ks(0,6,7,-4,0,11,15,1,0,4,20,3),Ks(0,7,8,-4,0,12,17,2,0,5,22,4),Ks(0,7,8,-4,0,13,19,2,0,5,24,4),Ks(0,7,9,-4,0,14,21,2,0,5,26,4),Ks(0,8,9,-5,0,15,22,2,0,6,28,5),Ks(0,8,10,-5,0,16,24,2,0,6,30,5),Ks(0,8,11,-5,0,17,26,2,0,6,32,5),Ks(0,9,11,-5,0,18,28,2,0,7,34,6),Ks(0,9,12,-6,0,19,29,2,0,7,36,6),Ks(0,10,13,-6,0,20,31,3,0,8,38,7),Ks(0,10,13,-6,0,21,33,3,0,8,40,7),Ks(0,10,14,-6,0,22,35,3,0,8,42,7),Ks(0,11,14,-7,0,23,36,3,0,9,44,8),Ks(0,11,15,-7,0,24,38,3,0,9,46,8)];const Zs=["duration","easing","delay"],Js={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)"},Qs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function eu(e){return`${Math.round(e)}ms`}function tu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ru(e){const t=Rn({},Js,e.easing),r=Rn({},Qs,e.duration);return Rn({getAutoHeightDuration:tu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Ln(n,Zs),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:eu(o)} ${i} ${"string"==typeof a?a:eu(a)}`)).join(",")}},e,{easing:t,duration:r})}var nu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const ou=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function iu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Ln(e,ou);if(e.vars)throw new Error(Cn(18));const l=Ws(n),s=Wl(e);let u=Ea(s,{mixins:(c=s.breakpoints,d=r,Rn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Xs.slice(),typography:Us(l,i),transitions:ru(o),zIndex:Rn({},nu)});var c,d;return u=Ea(u,a),u=t.reduce(((e,t)=>Ea(e,t)),u),u.unstable_sxConfig=Rn({},Gl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Hl({sx:e,theme:this})},u}const au=iu();const lu=function(e={}){const{themeId:t,defaultTheme:r=hs,rootShouldForwardProp:n=ms,slotShouldForwardProp:o=ms}=e,i=e=>Hl(Rn({},e,{theme:bs(Rn({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ya(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=vs(gs(s))}=a,p=Ln(a,ds),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ms;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=va(e,Rn({shouldForwardProp:h,label:undefined},p)),b=(n,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return n=>ys({styledArg:e,props:n,defaultTheme:r,themeId:t});if(xa(e)){let t,r=e;return e&&e.variants&&(t=e.variants,delete r.variants,r=r=>{let n=e;return fs(r,ps(t),t).forEach((e=>{n=Ea(n,e)})),n}),r}return e})):[];let s=n;if(xa(n)){let e;n&&n.variants&&(e=n.variants,delete s.variants,s=t=>{let r=n;return fs(t,ps(e),e).forEach((e=>{r=Ea(r,e)})),r})}else"function"==typeof n&&n.__emotion_real!==n&&(s=e=>ys({styledArg:n,props:e,defaultTheme:r,themeId:t}));l&&d&&a.push((e=>{const n=bs(Rn({},e,{defaultTheme:r,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,n);if(o){const t={};return Object.entries(o).forEach((([r,o])=>{t[r]="function"==typeof o?o(Rn({},e,{theme:n})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const n=bs(Rn({},e,{defaultTheme:r,themeId:t}));return((e,t,r,n)=>{var o;const i=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return fs(e,t,i)})(e,((e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),ps(r)})(l,n),n,l)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");s=[...n,...e],s.raw=[...n.raw,...e]}const c=g(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:wn,defaultTheme:au,rootShouldForwardProp:e=>ms(e)&&"classes"!==e});var su=lu;const uu=["theme"];function cu(e){let{theme:t}=e,r=Ln(e,uu);const n=t[wn];return rs.jsx(Ms,Rn({},r,{themeId:n?wn:void 0,theme:n||t}))}function du(){return du=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},du.apply(this,arguments)}function pu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){fu(e,t,r[t])}))}return e}function fu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mu(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function hu(e){return"large"===e?"20px":"small"===e?"12px":"inherit"===e?"null":"16px"}var gu=function(e){var t=e.d,r=e.size,n=e.style,o=mu(e,["d","size","style"]);return b.createElement("i",du({style:pu({fontSize:hu(r),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n)},o),b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},b.createElement("path",{d:t})))};function bu(e){return b.createElement(gu,Object.assign({d:"M15,4 L1,4 L1,2 L15,2 L15,4 Z M15,14 L1,14 L1,12 L15,12 L15,14 Z M15,9 L1,9 L1,7 L15,7 L15,9 Z"},e))}const vu={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},yu=(e,t)=>e.some((e=>t[e]>0));function xu(){return xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xu.apply(this,arguments)}function Su(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 Eu="$$material";function Cu(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 wu(e){if(!Cu(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=wu(e[r])})),t}function Ru(e,t,r={clone:!0}){const n=r.clone?Rn({},e):e;return Cu(e)&&Cu(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Cu(t[o])&&o in e&&Cu(e[o])?n[o]=Ru(e[o],t[o],r):r.clone?n[o]=Cu(t[o])?wu(t[o]):t[o]:n[o]=t[o])})),n}function Lu(e){if("string"!=typeof e)throw new Error(Su(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Au(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Du(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function _u(e){return e&&e.ownerDocument||document}function Iu(e){return _u(e).defaultView||window}function Mu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Pu="undefined"!=typeof window?g.useLayoutEffect:g.useEffect;let Ou=0;const ku=g["useId".toString()];function Tu(e){if(void 0!==ku){const t=ku();return null!=e?e:t}return function(e){const[t,r]=g.useState(e),n=e||t;return g.useEffect((()=>{null==t&&(Ou+=1,r(`mui-${Ou}`))}),[t]),n}(e)}function qu({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=g.useRef(void 0!==e),[i,a]=g.useState(t);return[o?e:i,g.useCallback((e=>{o||a(e)}),[])]}function Nu(e){const t=g.useRef(e);return Pu((()=>{t.current=e})),g.useRef(((...e)=>(0,t.current)(...e))).current}function Fu(...e){return g.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Mu(e,t)}))}),e)}let zu,Gu=!0,$u=!1;const Hu={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 Bu(e){e.metaKey||e.altKey||e.ctrlKey||(Gu=!0)}function Wu(){Gu=!1}function ju(){"hidden"===this.visibilityState&&$u&&(Gu=!0)}function Vu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Gu||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Hu[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Yu(){const e=g.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Bu,!0),t.addEventListener("mousedown",Wu,!0),t.addEventListener("pointerdown",Wu,!0),t.addEventListener("touchstart",Wu,!0),t.addEventListener("visibilitychange",ju,!0))}),[]),t=g.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Vu(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&($u=!0,window.clearTimeout(zu),zu=window.setTimeout((()=>{$u=!1}),100),t.current=!1,!0)},ref:e}}function Uu(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ku(e,t){const r=Rn({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Rn({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=Rn({},i),Object.keys(o).forEach((e=>{r[n][e]=Ku(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function Xu(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const Zu=e=>e;var Ju=(()=>{let e=Zu;return{configure(t){e=t},generate:t=>e(t),reset(){e=Zu}}})();const Qu={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 ec(e,t,r="Mui"){const n=Qu[t];return n?`${r}-${n}`:`${Ju.generate(e)}-${t}`}function tc(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ec(e,t,r)})),n}const rc=["values","unit","step"],nc=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)=>Rn({},e,{[t.key]:t.val})),{})};var oc={borderRadius:4};function ic(e,t){return t?Ru(e,t,{clone:!1}):e}const ac={xs:0,sm:600,md:900,lg:1200,xl:1536},lc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ac[e]}px)`};function sc(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||lc;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||lc;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||ac).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function uc(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function cc(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:uc(e,r)||n,t&&(o=t(o,n,e)),o}function dc(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=uc(e.theme,n)||{};return sc(e,i,(e=>{let n=cc(a,o,e);return e===n&&"string"==typeof e&&(n=cc(a,o,`${t}${"default"===e?"":Lu(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const pc={m:"margin",p:"padding"},fc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hc=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!mc[e])return[e];e=mc[e]}const[t,r]=e.split(""),n=pc[t],o=fc[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),gc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function vc(e,t,r,n){var o;const i=null!=(o=uc(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function yc(e){return vc(e,"spacing",8)}function xc(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Sc(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=xc(t,r),e)),{})}(hc(r),n);return sc(e,e[r],o)}function Ec(e,t){const r=yc(e.theme);return Object.keys(e).map((n=>Sc(e,t,n,r))).reduce(ic,{})}function Cc(e){return Ec(e,gc)}function wc(e){return Ec(e,bc)}function Rc(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?ic(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Lc(e){return"number"!=typeof e?e:`${e}px solid`}function Ac(e,t){return dc({prop:e,themeKey:"borders",transform:t})}Cc.propTypes={},Cc.filterProps=gc,wc.propTypes={},wc.filterProps=bc;const Dc=Ac("border",Lc),_c=Ac("borderTop",Lc),Ic=Ac("borderRight",Lc),Mc=Ac("borderBottom",Lc),Pc=Ac("borderLeft",Lc),Oc=Ac("borderColor"),kc=Ac("borderTopColor"),Tc=Ac("borderRightColor"),qc=Ac("borderBottomColor"),Nc=Ac("borderLeftColor"),Fc=Ac("outline",Lc),zc=Ac("outlineColor"),Gc=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=vc(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:xc(t,e)});return sc(e,e.borderRadius,r)}return null};Gc.propTypes={},Gc.filterProps=["borderRadius"],Rc(Dc,_c,Ic,Mc,Pc,Oc,kc,Tc,qc,Nc,Gc,Fc,zc);const $c=e=>{if(void 0!==e.gap&&null!==e.gap){const t=vc(e.theme,"spacing",8),r=e=>({gap:xc(t,e)});return sc(e,e.gap,r)}return null};$c.propTypes={},$c.filterProps=["gap"];const Hc=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=vc(e.theme,"spacing",8),r=e=>({columnGap:xc(t,e)});return sc(e,e.columnGap,r)}return null};Hc.propTypes={},Hc.filterProps=["columnGap"];const Bc=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=vc(e.theme,"spacing",8),r=e=>({rowGap:xc(t,e)});return sc(e,e.rowGap,r)}return null};Bc.propTypes={},Bc.filterProps=["rowGap"];function Wc(e,t){return"grey"===t?t:e}Rc($c,Hc,Bc,dc({prop:"gridColumn"}),dc({prop:"gridRow"}),dc({prop:"gridAutoFlow"}),dc({prop:"gridAutoColumns"}),dc({prop:"gridAutoRows"}),dc({prop:"gridTemplateColumns"}),dc({prop:"gridTemplateRows"}),dc({prop:"gridTemplateAreas"}),dc({prop:"gridArea"}));function jc(e){return e<=1&&0!==e?100*e+"%":e}Rc(dc({prop:"color",themeKey:"palette",transform:Wc}),dc({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wc}),dc({prop:"backgroundColor",themeKey:"palette",transform:Wc}));const Vc=dc({prop:"width",transform:jc}),Yc=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||ac[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:jc(t)}};return sc(e,e.maxWidth,t)}return null};Yc.filterProps=["maxWidth"];const Uc=dc({prop:"minWidth",transform:jc}),Kc=dc({prop:"height",transform:jc}),Xc=dc({prop:"maxHeight",transform:jc}),Zc=dc({prop:"minHeight",transform:jc});dc({prop:"size",cssProperty:"width",transform:jc}),dc({prop:"size",cssProperty:"height",transform:jc});Rc(Vc,Yc,Uc,Kc,Xc,Zc,dc({prop:"boxSizing"}));var Jc={border:{themeKey:"borders",transform:Lc},borderTop:{themeKey:"borders",transform:Lc},borderRight:{themeKey:"borders",transform:Lc},borderBottom:{themeKey:"borders",transform:Lc},borderLeft:{themeKey:"borders",transform:Lc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gc},color:{themeKey:"palette",transform:Wc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wc},backgroundColor:{themeKey:"palette",transform:Wc},p:{style:wc},pt:{style:wc},pr:{style:wc},pb:{style:wc},pl:{style:wc},px:{style:wc},py:{style:wc},padding:{style:wc},paddingTop:{style:wc},paddingRight:{style:wc},paddingBottom:{style:wc},paddingLeft:{style:wc},paddingX:{style:wc},paddingY:{style:wc},paddingInline:{style:wc},paddingInlineStart:{style:wc},paddingInlineEnd:{style:wc},paddingBlock:{style:wc},paddingBlockStart:{style:wc},paddingBlockEnd:{style:wc},m:{style:Cc},mt:{style:Cc},mr:{style:Cc},mb:{style:Cc},ml:{style:Cc},mx:{style:Cc},my:{style:Cc},margin:{style:Cc},marginTop:{style:Cc},marginRight:{style:Cc},marginBottom:{style:Cc},marginLeft:{style:Cc},marginX:{style:Cc},marginY:{style:Cc},marginInline:{style:Cc},marginInlineStart:{style:Cc},marginInlineEnd:{style:Cc},marginBlock:{style:Cc},marginBlockStart:{style:Cc},marginBlockEnd:{style:Cc},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:$c},rowGap:{style:Bc},columnGap:{style:Hc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:jc},maxWidth:{style:Yc},minWidth:{transform:jc},height:{transform:jc},maxHeight:{transform:jc},minHeight:{transform:jc},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Qc=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=uc(r,l)||{};if(u)return u(o);return sc(o,t,(t=>{let r=cc(c,s,t);return t===r&&"string"==typeof t&&(r=cc(c,s,`${e}${"default"===t?"":Lu(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:Jc;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=ic(s,e(r,o,i,a));else{const e=sc({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=ic(s,e):s[r]=t({sx:o,theme:i})}else s=ic(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Qc.filterProps=["sx"];var ed=Qc;const td=["breakpoints","palette","spacing","shape"];function rd(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Ln(e,td),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ln(e,rc),i=nc(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Rn({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:r},o)}(r),s=function(e=8){if(e.mui)return e;const t=yc({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Ru({breakpoints:l,direction:"ltr",components:{},palette:Rn({mode:"light"},n),spacing:s,shape:Rn({},oc,i)},a);return u=t.reduce(((e,t)=>Ru(e,t)),u),u.unstable_sxConfig=Rn({},Jc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ed({sx:e,theme:this})},u}function nd(e=null){const t=g.useContext(ta);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const od=rd();function id(e=od){return nd(e)}function ad({styles:e,themeId:t,defaultTheme:r={}}){const n=id(r),o="function"==typeof e?e(t&&n[t]||n):e;return rs.jsx(ba,{styles:o})}const ld=["sx"],sd=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Jc;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function ud(e){const{sx:t}=e,r=Ln(e,ld),{systemProps:n,otherProps:o}=sd(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Cu(r)?Rn({},n,r):n}:Rn({},n,t),Rn({},o,{sx:i})}const cd=["className","component"];const dd=["variant"];function pd(e){return 0===e.length}function fd(e){const{variant:t}=e,r=Ln(e,dd);let n=t||"";return Object.keys(r).sort().forEach((t=>{n+="color"===t?pd(n)?e[t]:Lu(e[t]):`${pd(n)?t:Lu(t)}${Lu(e[t].toString())}`})),n}const md=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const hd=e=>{let t=0;const r={};return e&&e.forEach((e=>{let n="";"function"==typeof e.props?(n=`callback${t}`,t+=1):n=fd(e.props),r[n]=e.style})),r},gd=(e,t,r)=>{const{ownerState:n={}}=e,o=[];let i=0;return r&&r.forEach((r=>{let a=!0;if("function"==typeof r.props){const t=Rn({},e,n);a=r.props(t)}else Object.keys(r.props).forEach((t=>{n[t]!==r.props[t]&&e[t]!==r.props[t]&&(a=!1)}));a&&("function"==typeof r.props?o.push(t[`callback${i}`]):o.push(t[fd(r.props)])),"function"==typeof r.props&&(i+=1)})),o};function bd(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const vd=rd(),yd=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function xd({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Sd(e){return e?(t,r)=>r[e]:null}const Ed=({styledArg:e,props:t,defaultTheme:r,themeId:n})=>{const o=e(Rn({},t,{theme:xd(Rn({},t,{defaultTheme:r,themeId:n}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){return[o,...gd(t,hd(i),i)]}return o};function Cd({props:e,name:t,defaultTheme:r,themeId:n}){let o=id(r);n&&(o=o[n]||o);const i=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?Ku(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function wd(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function Rd(e){if(e.type)return e;if("#"===e.charAt(0))return Rd(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Su(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Su(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Ld(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Ad(e){let t="hsl"===(e=Rd(e)).type||"hsla"===e.type?Rd(function(e){e=Rd(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let 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])),Ld({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 Dd(e,t){return e=Rd(e),t=wd(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ld(e)}var _d={black:"#000",white:"#fff"};var Id={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 Md={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 Pd={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 Od={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 kd={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 Td={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 qd={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 Nd=["mode","contrastThreshold","tonalOffset"],Fd={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:_d.white,default:_d.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}},zd={text:{primary:_d.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:_d.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 Gd(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=Rd(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 r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ld(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Rd(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 r=0;r<3;r+=1)e.values[r]*=1-t;return Ld(e)}(e.main,i)))}function $d(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ln(e,Nd),i=e.primary||function(e="light"){return"dark"===e?{main:kd[200],light:kd[50],dark:kd[400]}:{main:kd[700],light:kd[400],dark:kd[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Md[200],light:Md[50],dark:Md[400]}:{main:Md[500],light:Md[300],dark:Md[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Pd[500],light:Pd[300],dark:Pd[700]}:{main:Pd[700],light:Pd[400],dark:Pd[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Td[400],light:Td[300],dark:Td[700]}:{main:Td[700],light:Td[500],dark:Td[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:qd[400],light:qd[300],dark:qd[700]}:{main:qd[800],light:qd[500],dark:qd[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Od[400],light:Od[300],dark:Od[700]}:{main:"#ed6c02",light:Od[500],dark:Od[900]}}(t);function d(e){const t=function(e,t){const r=Ad(e),n=Ad(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,zd.text.primary)>=r?zd.text.primary:Fd.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Rn({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Su(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Su(12,t?` (${t})`:"",JSON.stringify(e.main)));return Gd(e,"light",o,n),Gd(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:zd,light:Fd};return Ru(Rn({common:Rn({},_d),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:Id,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Hd=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Bd={textTransform:"uppercase"},Wd='"Roboto", "Helvetica", "Arial", sans-serif';function jd(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Wd,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Ln(r,Hd),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return Rn({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Wd?{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,Bd),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Bd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ru(Rn({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Vd(...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 Yd=["none",Vd(0,2,1,-1,0,1,1,0,0,1,3,0),Vd(0,3,1,-2,0,2,2,0,0,1,5,0),Vd(0,3,3,-2,0,3,4,0,0,1,8,0),Vd(0,2,4,-1,0,4,5,0,0,1,10,0),Vd(0,3,5,-1,0,5,8,0,0,1,14,0),Vd(0,3,5,-1,0,6,10,0,0,1,18,0),Vd(0,4,5,-2,0,7,10,1,0,2,16,1),Vd(0,5,5,-3,0,8,10,1,0,3,14,2),Vd(0,5,6,-3,0,9,12,1,0,3,16,2),Vd(0,6,6,-3,0,10,14,1,0,4,18,3),Vd(0,6,7,-4,0,11,15,1,0,4,20,3),Vd(0,7,8,-4,0,12,17,2,0,5,22,4),Vd(0,7,8,-4,0,13,19,2,0,5,24,4),Vd(0,7,9,-4,0,14,21,2,0,5,26,4),Vd(0,8,9,-5,0,15,22,2,0,6,28,5),Vd(0,8,10,-5,0,16,24,2,0,6,30,5),Vd(0,8,11,-5,0,17,26,2,0,6,32,5),Vd(0,9,11,-5,0,18,28,2,0,7,34,6),Vd(0,9,12,-6,0,19,29,2,0,7,36,6),Vd(0,10,13,-6,0,20,31,3,0,8,38,7),Vd(0,10,13,-6,0,21,33,3,0,8,40,7),Vd(0,10,14,-6,0,22,35,3,0,8,42,7),Vd(0,11,14,-7,0,23,36,3,0,9,44,8),Vd(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ud=["duration","easing","delay"],Kd={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)"},Xd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Zd(e){return`${Math.round(e)}ms`}function Jd(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Qd(e){const t=Rn({},Kd,e.easing),r=Rn({},Xd,e.duration);return Rn({getAutoHeightDuration:Jd,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Ln(n,Ud),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Zd(o)} ${i} ${"string"==typeof a?a:Zd(a)}`)).join(",")}},e,{easing:t,duration:r})}var ep={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const tp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function rp(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Ln(e,tp);if(e.vars)throw new Error(Su(18));const l=$d(n),s=rd(e);let u=Ru(s,{mixins:(c=s.breakpoints,d=r,Rn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Yd.slice(),typography:jd(l,i),transitions:Qd(o),zIndex:Rn({},ep),applyDarkStyles(e){if(this.vars){return{[this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)")]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Ru(u,a),u=t.reduce(((e,t)=>Ru(e,t)),u),u.unstable_sxConfig=Rn({},Jc,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ed({sx:e,theme:this})},u}var np=rp();function op(){const e=id(np);return e[Eu]||e}function ip({props:e,name:t}){return Cd({props:e,name:t,defaultTheme:np,themeId:Eu})}const ap=e=>bd(e)&&"classes"!==e,lp=bd,sp=function(e={}){const{themeId:t,defaultTheme:r=vd,rootShouldForwardProp:n=bd,slotShouldForwardProp:o=bd}=e,i=e=>ed(Rn({},e,{theme:xd(Rn({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ya(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Sd(yd(s))}=a,p=Ln(a,md),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=bd;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=va(e,Rn({shouldForwardProp:h,label:undefined},p)),b=(n,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return n=>Ed({styledArg:e,props:n,defaultTheme:r,themeId:t});if(Cu(e)){let t,r=e;return e&&e.variants&&(t=e.variants,delete r.variants,r=r=>{let n=e;return gd(r,hd(t),t).forEach((e=>{n=Ru(n,e)})),n}),r}return e})):[];let s=n;if(Cu(n)){let e;n&&n.variants&&(e=n.variants,delete s.variants,s=t=>{let r=n;return gd(t,hd(e),e).forEach((e=>{r=Ru(r,e)})),r})}else"function"==typeof n&&n.__emotion_real!==n&&(s=e=>Ed({styledArg:n,props:e,defaultTheme:r,themeId:t}));l&&d&&a.push((e=>{const n=xd(Rn({},e,{defaultTheme:r,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,n);if(o){const t={};return Object.entries(o).forEach((([r,o])=>{t[r]="function"==typeof o?o(Rn({},e,{theme:n})):o})),d(e,t)}return null})),l&&!f&&a.push((e=>{const n=xd(Rn({},e,{defaultTheme:r,themeId:t}));return((e,t,r,n)=>{var o;const i=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return gd(e,t,i)})(e,((e,t)=>{let r=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants),hd(r)})(l,n),n,l)})),m||a.push(i);const u=a.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");s=[...n,...e],s.raw=[...n.raw,...e]}const c=g(s,...a);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:Eu,defaultTheme:np,rootShouldForwardProp:ap});var up=sp;var cp=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function dp(e){return ec("MuiSvgIcon",e)}tc("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const pp=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],fp=up("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Lu(r.color)}`],t[`fontSize${Lu(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,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==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(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]}})),mp=g.forwardRef((function(e,t){const r=ip({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Ln(r,pp),f=g.isValidElement(n)&&"svg"===n.type,m=Rn({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return Xu({root:["root","inherit"!==t&&`color${Lu(t)}`,`fontSize${Lu(r)}`]},dp,n)})(m);return rs.jsxs(fp,Rn({as:a,className:as(b.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?rs.jsx("title",{children:c}):null]}))}));mp.muiName="SvgIcon";var hp=mp;function gp(e,t){return gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gp(e,t)}function bp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gp(e,t)}var vp=!1,yp=b.createContext(null),xp="unmounted",Sp="exited",Ep="entering",Cp="entered",wp="exiting",Rp=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Sp,n.appearStatus=Ep):o=Cp:o=t.unmountOnExit||t.mountOnEnter?xp:Sp,n.state={status:o},n.nextCallback=null,n}bp(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===xp?{status:Sp}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Ep&&r!==Cp&&(t=Ep):r!==Ep&&r!==Cp||(t=wp)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ep){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:k.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sp&&this.setState({status:xp})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[k.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||vp?this.safeSetState({status:Cp},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Ep},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Cp},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:k.findDOMNode(this);t&&!vp?(this.props.onExit(n),this.safeSetState({status:wp},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Sp},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Sp},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:k.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===xp)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=Ln(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(yp.Provider,{value:null},"function"==typeof r?r(e,n):b.cloneElement(b.Children.only(r),n))},t}(b.Component);function Lp(){}Rp.contextType=yp,Rp.propTypes={},Rp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lp,onEntering:Lp,onEntered:Lp,onExit:Lp,onExiting:Lp,onExited:Lp},Rp.UNMOUNTED=xp,Rp.EXITED=Sp,Rp.ENTERING=Ep,Rp.ENTERED=Cp,Rp.EXITING=wp;var Ap=Rp;function Dp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _p(e,t){var r=Object.create(null);return e&&w.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&R(e)?t(e):e}(e)})),r}function Ip(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Mp(e,t,r){var n=_p(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(R(a)){var l=i in t,s=i in n,u=t[i],c=R(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&R(u)&&(o[i]=L(a,{onExited:r.bind(null,a),in:u.props.in,exit:Ip(a,"exit",e),enter:Ip(a,"enter",e)})):o[i]=L(a,{in:!1}):o[i]=L(a,{onExited:r.bind(null,a),in:!0,exit:Ip(a,"exit",e),enter:Ip(a,"enter",e)})}})),o}var Pp=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Op=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Dp(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}bp(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,_p(r.children,(function(e){return L(e,{onExited:n.bind(null,e),in:!0,appear:Ip(e,"appear",r),enter:Ip(e,"enter",r),exit:Ip(e,"exit",r)})}))):Mp(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=_p(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=Rn({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Ln(e,["component","childFactory"]),o=this.state.contextValue,i=Pp(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?b.createElement(yp.Provider,{value:o},i):b.createElement(yp.Provider,{value:o},b.createElement(t,n,i))},t}(b.Component);Op.propTypes={},Op.defaultProps={component:"div",childFactory:function(e){return e}};var kp=Op;const Tp=e=>e.scrollTop;function qp(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Np(e){return ec("MuiPaper",e)}tc("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 Fp=["className","component","elevation","square","variant"],zp=up("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return Rn({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&&Rn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Dd("#fff",cp(t.elevation))}, ${Dd("#fff",cp(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var Gp=g.forwardRef((function(e,t){const r=ip({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Ln(r,Fp),u=Rn({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Xu({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Np,o)})(u);return rs.jsx(zp,Rn({as:o,ownerState:u,className:as(c.root,n),ref:t},s))}));function $p(e){return"string"==typeof e}function Hp(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Bp(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Wp=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function jp(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Ln(e,Wp),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=as(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Rn({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Rn({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Hp(Rn({},o,n)),l=Bp(n),s=Bp(o),u=t(a),c=as(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=Rn({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=Rn({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Rn({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||$p(e)?t:Rn({},t,{ownerState:Rn({},t.ownerState,r)})}(r,Rn({},s,{ref:Fu(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Vp=tc("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Yp=["center","classes","className"];let Up,Kp,Xp,Zp,Jp=e=>e;const Qp=da(Up||(Up=Jp`
|
|
26
27
|
0% {
|
|
27
28
|
transform: scale(0);
|
|
28
29
|
opacity: 0.1;
|
|
@@ -32,7 +33,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
|
|
|
32
33
|
transform: scale(1);
|
|
33
34
|
opacity: 0.3;
|
|
34
35
|
}
|
|
35
|
-
`)),
|
|
36
|
+
`)),ef=da(Kp||(Kp=Jp`
|
|
36
37
|
0% {
|
|
37
38
|
opacity: 1;
|
|
38
39
|
}
|
|
@@ -40,7 +41,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
|
|
|
40
41
|
100% {
|
|
41
42
|
opacity: 0;
|
|
42
43
|
}
|
|
43
|
-
`)),
|
|
44
|
+
`)),tf=da(Xp||(Xp=Jp`
|
|
44
45
|
0% {
|
|
45
46
|
transform: scale(1);
|
|
46
47
|
}
|
|
@@ -52,7 +53,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
|
|
|
52
53
|
100% {
|
|
53
54
|
transform: scale(1);
|
|
54
55
|
}
|
|
55
|
-
`)),
|
|
56
|
+
`)),rf=up("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),nf=up((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=g.useState(!1),p=as(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=as(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),g.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),rs.jsx("span",{className:p,style:f,children:rs.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Zp||(Zp=Jp`
|
|
56
57
|
opacity: 0;
|
|
57
58
|
position: absolute;
|
|
58
59
|
|
|
@@ -95,4 +96,4 @@ 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
|
|
|
95
96
|
animation-iteration-count: infinite;
|
|
96
97
|
animation-delay: 200ms;
|
|
97
98
|
}
|
|
98
|
-
`),Xu.rippleVisible,rc,550,(({theme:e})=>e.transitions.easing.easeInOut),Xu.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Xu.child,Xu.childLeaving,oc,550,(({theme:e})=>e.transitions.easing.easeInOut),Xu.childPulsate,ic,(({theme:e})=>e.transitions.easing.easeInOut));var sc=g.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=ir(n,Zu),[l,s]=g.useState([]),u=g.useRef(0),c=g.useRef(null);g.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=g.useRef(!1),p=g.useRef(0),f=g.useRef(null),m=g.useRef(null);g.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=g.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,zi.jsx(lc,{classes:{ripple:Tl(o.ripple,Xu.ripple),rippleVisible:Tl(o.rippleVisible,Xu.rippleVisible),ripplePulsate:Tl(o.ripplePulsate,Xu.ripplePulsate),child:Tl(o.child,Xu.child),childLeaving:Tl(o.childLeaving,Xu.childLeaving),childPulsate:Tl(o.childPulsate,Xu.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),v=g.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=g.useCallback((()=>{v({},{pulsate:!0})}),[v]),y=g.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((()=>{y(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return g.useImperativeHandle(t,(()=>({pulsate:b,start:v,stop:y})),[b,v,y]),zi.jsx(ac,or({className:Tl(Xu.root,o.root,i),ref:m},a,{children:zi.jsx(Wu,{component:null,exit:!0,children:l})}))}));function uc(e){return Ca("MuiButtonBase",e)}var cc=Da("MuiButtonBase",["root","disabled","focusVisible"]);const dc=["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"],pc=Ws("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"},[`&.${cc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fc=g.forwardRef((function(e,t){const n=Hs({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:v,onFocus:b,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:w,onMouseUp:C,onTouchEnd:D,onTouchMove:R,onTouchStart:L,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:A,type:q}=n,P=ir(n,dc),k=g.useRef(null),O=g.useRef(null),T=sa(O,A),{isFocusVisibleRef:_,onFocus:N,onBlur:F,ref:H}=va(),[$,z]=g.useState(!1);s&&$&&z(!1),g.useImperativeHandle(r,(()=>({focusVisible:()=>{z(!0),k.current.focus()}})),[]);const[j,W]=g.useState(!1);g.useEffect((()=>{W(!0)}),[]);const V=j&&!u&&!s;function B(e,t,n=c){return la((r=>{t&&t(r);return!n&&O.current&&O.current[e](r),!0}))}g.useEffect((()=>{$&&d&&!u&&j&&O.current.pulsate()}),[u,d,$,j]);const G=B("start",E),U=B("stop",h),Y=B("stop",v),K=B("stop",C),X=B("stop",(e=>{$&&e.preventDefault(),w&&w(e)})),Z=B("start",L),J=B("stop",D),Q=B("stop",R),ee=B("stop",(e=>{F(e),!1===_.current&&z(!1),f&&f(e)}),!1),te=la((e=>{k.current||(k.current=e.currentTarget),N(e),!0===_.current&&(z(!0),y&&y(e)),b&&b(e)})),ne=()=>{const e=k.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=g.useRef(!1),oe=la((e=>{d&&!re.current&&$&&O.current&&" "===e.key&&(re.current=!0,O.current.stop(e,(()=>{O.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=la((e=>{d&&" "===e.key&&O.current&&$&&!e.defaultPrevented&&(re.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===q?"button":q,le.disabled=s):(P.href||P.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=sa(t,H,k),ue=or({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:$}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=xa({root:["root",t&&"disabled",n&&"focusVisible"]},uc,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return zi.jsxs(pc,or({as:ae,className:Tl(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Q,onTouchStart:Z,ref:se,tabIndex:s?-1:I,type:q},le,P,{children:[i,V?zi.jsx(sc,or({ref:T,center:o},M)):null]}))}));var mc=fc;function hc(e){return Ca("MuiTypography",e)}Da("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vc=Ws("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${Xi(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>or({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}))),bc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xc=g.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiTypography"}),r=(e=>yc[e]||e)(n.color),o=kl(or({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=bc}=o,f=ir(o,gc),m=or({},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]||bc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return xa({root:["root",i,"inherit"!==e.align&&`align${Xi(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},hc,a)})(m);return zi.jsx(vc,or({as:h,ref:t,ownerState:m,className:Tl(g.root,a)},f))}));var Sc=xc;function Ec(){return Ec=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},Ec.apply(this,arguments)}function wc(e){return"string"==typeof e}function Cc(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 Dc(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}function Rc(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 Lc=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ic(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Dc(e,Lc),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=Tl(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Ec({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Ec({},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=Cc(Ec({},o,r)),l=Rc(r),s=Rc(o),u=t(a),c=Tl(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=Ec({},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=Ec({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Ec({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||wc(e)?t:Ec({},t,{ownerState:Ec({},t.ownerState,n)})}(n,Ec({},s,{ref:sa(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Mc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ac(e){const t=[],n=[];return Array.from(e.querySelectorAll(Mc)).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 qc(){return!0}function Pc(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Ac,isEnabled:a=qc,open:l}=e,s=g.useRef(!1),u=g.useRef(null),c=g.useRef(null),d=g.useRef(null),p=g.useRef(null),f=g.useRef(!1),m=g.useRef(null),h=sa(t.ref,m),v=g.useRef(null);g.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),g.useEffect((()=>{if(!l||!m.current)return;const e=Qi(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]),g.useEffect((()=>{if(!l||!m.current)return;const e=Qi(m.current),t=t=>{v.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=v.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=v.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 zi.jsxs(g.Fragment,{children:[zi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),g.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)}}),zi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const kc=g.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=g.useState(null),l=sa(g.isValidElement(n)?n.ref:null,t);if(na((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),na((()=>{if(i&&!o)return ta(t,i),()=>{ta(t,null)}}),[t,i,o]),o){if(g.isValidElement(n)){const e={ref:l};return g.cloneElement(n,e)}return zi.jsx(g.Fragment,{children:n})}return zi.jsx(g.Fragment,{children:i?k.createPortal(n,i):i})}));function Oc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Tc(e){return parseInt(ea(e).getComputedStyle(e).paddingRight,10)||0}function _c(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&&Oc(e,o)}))}function Nc(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Fc(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Qi(e);return t.body===e?ea(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=ba(Qi(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Tc(r)+e}px`;const t=Qi(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Tc(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Qi(r).body;else{const t=r.parentElement,n=ea(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 Hc=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&&Oc(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);_c(t,e.mount,e.modalRef,r,!0);const o=Nc(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=Nc(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Fc(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Nc(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&&Oc(e.modalRef,t),_c(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&&Oc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function $c(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Hc,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=g.useRef({}),f=g.useRef(null),m=g.useRef(null),h=sa(m,d),[v,b]=g.useState(!c),y=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)},w=la((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Qi(f.current).body;o.add(S(),e),m.current&&E()})),C=g.useCallback((()=>o.isTopModal(S())),[o]),D=la((e=>{f.current=e,e&&(c&&C()?E():m.current&&Oc(m.current,x))})),R=g.useCallback((()=>{o.remove(S(),x)}),[x,o]);g.useEffect((()=>()=>{R()}),[R]),g.useEffect((()=>{c?w():y&&i||R()}),[c,R,y,i,w]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(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=Cc(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ec({},n,t);return Ec({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>Ec({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Zi((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Zi((()=>{b(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:D,isTopModal:C,exited:v,hasTransition:y}}const zc=["onChange","maxRows","minRows","style","value"];function jc(e){return parseInt(e,10)||0}const Wc={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Vc(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Bc=g.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Dc(e,zc),{current:s}=g.useRef(null!=a),u=g.useRef(null),c=sa(t,u),d=g.useRef(null),p=g.useRef(0),[f,m]=g.useState({outerHeightStyle:0}),h=g.useCallback((()=>{const t=u.current,n=ea(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=jc(n.paddingBottom)+jc(n.paddingTop),s=jc(n.borderBottomWidth)+jc(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]),v=(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=g.useCallback((()=>{const e=h();Vc(e)||m((t=>v(t,e)))}),[h]);na((()=>{const e=()=>{p.current=0,(()=>{const e=h();Vc(e)||k.flushSync((()=>{m((t=>v(t,e)))}))})()};const t=Ji(e),n=u.current,r=ea(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]),na((()=>{b()})),g.useEffect((()=>{p.current=0}),[a]);return zi.jsxs(g.Fragment,{children:[zi.jsx("textarea",Ec({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Ec({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),zi.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Ec({},Wc,i,{paddingTop:0,paddingBottom:0})})]})}));function Gc({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 Uc=g.createContext(void 0);function Yc(){return g.useContext(Uc)}function Kc(e){return zi.jsx(Al,or({},e,{defaultTheme:Ns,themeId:rr}))}function Xc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Zc(e,t=!1){return e&&(Xc(e.value)&&""!==e.value||t&&Xc(e.defaultValue)&&""!==e.defaultValue)}function Jc(e){return Ca("MuiInputBase",e)}var Qc=Da("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const ed=["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"],td=(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${Xi(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},nd=(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]},rd=Ws("div",{name:"MuiInputBase",slot:"Root",overridesResolver:td})((({theme:e,ownerState:t})=>or({},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",[`&.${Qc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&or({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),od=Ws("input",{name:"MuiInputBase",slot:"Input",overridesResolver:nd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=or({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 or({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] + .${Qc.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},[`&.${Qc.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"})})),id=zi.jsx(Kc,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ad=g.forwardRef((function(e,t){var n;const r=Hs({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:v="input",inputProps:b={},inputRef:y,maxRows:x,minRows:S,multiline:E=!1,name:w,onBlur:C,onChange:D,onClick:R,onFocus:L,onKeyDown:I,onKeyUp:M,placeholder:A,readOnly:q,renderSuffix:P,rows:k,slotProps:O={},slots:T={},startAdornment:_,type:N="text",value:F}=r,H=ir(r,ed),$=null!=b.value?b.value:F,{current:z}=g.useRef(null!=$),j=g.useRef(),W=g.useCallback((e=>{}),[]),V=sa(j,y,b.ref,W),[B,G]=g.useState(!1),U=Yc(),Y=Gc({props:r,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:B,g.useEffect((()=>{!U&&d&&B&&(G(!1),C&&C())}),[U,d,B,C]);const K=U&&U.onFilled,X=U&&U.onEmpty,Z=g.useCallback((e=>{Zc(e)?K&&K():X&&X()}),[K,X]);na((()=>{z&&Z({value:$})}),[$,Z,z]);g.useEffect((()=>{Z(j.current)}),[]);let J=v,Q=b;E&&"input"===J&&(Q=or(k?{type:void 0,minRows:k,maxRows:k}:{type:void 0,maxRows:x,minRows:S},Q),J=Bc);g.useEffect((()=>{U&&U.setAdornedStart(Boolean(_))}),[U,_]);const ee=or({},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:_,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 xa({root:["root",`color${Xi(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Xi(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"]},Jc,t)})(ee),ne=T.root||s.Root||rd,re=O.root||u.root||{},oe=T.input||s.Input||od;return Q=or({},Q,null!=(n=O.input)?n:u.input),zi.jsxs(g.Fragment,{children:[!p&&id,zi.jsxs(ne,or({},re,!wc(ne)&&{ownerState:or({},ee,re.ownerState)},{ref:t,onClick:e=>{j.current&&e.currentTarget===e.target&&j.current.focus(),R&&R(e)}},H,{className:Tl(te.root,re.className,l,q&&"MuiInputBase-readOnly"),children:[_,zi.jsx(Uc.Provider,{value:null,children:zi.jsx(oe,or({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{Z("mui-auto-fill-cancel"===e.animationName?j.current:{value:"x"})},name:w,placeholder:A,readOnly:q,required:Y.required,rows:k,value:$,onKeyDown:I,onKeyUp:M,type:N},Q,!wc(oe)&&{as:J,ownerState:or({},ee,Q.ownerState)},{ref:V,className:Tl(te.input,Q.className,q&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!z){const t=e.target||j.current;if(null==t)throw new Error(nr(1));Z({value:t.value})}b.onChange&&b.onChange(e,...t),D&&D(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(L&&L(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,P?P(or({},Y,{startAdornment:_})):null]}))]})}));var ld=ad;function sd(e){return Ca("MuiInput",e)}var ud=or({},Qc,Da("MuiInput",["root","underline","input"]));function cd(e){return Ca("MuiOutlinedInput",e)}var dd=or({},Qc,Da("MuiOutlinedInput",["root","notchedOutline","input"]));function pd(e){return Ca("MuiFilledInput",e)}var fd=or({},Qc,Da("MuiFilledInput",["root","underline","input"])),md=function(e,t){function n(n,r){return zi.jsx(au,or({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=au.muiName,g.memo(g.forwardRef(n))}(zi.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const hd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],gd={entering:{opacity:1},entered:{opacity:1}},vd=g.forwardRef((function(e,t){const n=Fs(),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:v=r,TransitionComponent:b=_u}=e,y=ir(e,hd),x=g.useRef(null),S=sa(x,a.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(d),C=E(((e,t)=>{Vu(e);const r=Bu({style:h,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),D=E(c),R=E(m),L=E((e=>{const t=Bu({style:h,timeout:v,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 zi.jsx(b,or({appear:i,in:s,nodeRef:x,onEnter:C,onEntered:D,onEntering:w,onExit:L,onExited:I,onExiting:R,addEndListener:e=>{o&&o(x.current,e)},timeout:v},y,{children:(e,t)=>g.cloneElement(a,or({style:or({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},gd[e],h,a.props.style),ref:S},t))}))}));var bd=vd;function yd(e){return Ca("MuiBackdrop",e)}Da("MuiBackdrop",["root","invisible"]);const xd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Sd=Ws("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>or({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"}))),Ed=g.forwardRef((function(e,t){var n,r,o;const i=Hs({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=bd,transitionDuration:g}=i,v=ir(i,xd),b=or({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return xa({root:["root",n&&"invisible"]},yd,t)})(b),x=null!=(n=f.root)?n:c.root;return zi.jsx(h,or({in:p,timeout:g},v,{children:zi.jsx(Sd,or({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Tl(y.root,l,null==x?void 0:x.className),ownerState:or({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var wd=Ed;var Cd=Da("MuiBox",["root"]);const Dd=_s(),Rd=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Wi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Cl);return g.forwardRef((function(e,a){const l=Ml(n),s=kl(e),{className:u,component:c="div"}=s,d=Bi(s,_l);return zi.jsx(i,Vi({as:c,ref:a,className:Tl(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:rr,defaultTheme:Dd,defaultClassName:Cd.root,generateClassName:Ea.generate});var Ld=Rd;function Id(e){return Ca("MuiButton",e)}var Md=Da("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 Ad=g.createContext({});var qd=g.createContext(void 0);const Pd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],kd=e=>or({},"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}}),Od=Ws(mc,{shouldForwardProp:e=>$s(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Xi(n.color)}`],t[`size${Xi(n.size)}`],t[`${n.variant}Size${Xi(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 or({},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":or({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:es(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})`:es(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})`:es(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":or({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Md.focusVisible}`]:or({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Md.disabled}`]:or({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 ${es(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"},[`&.${Md.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Md.disabled}`]:{boxShadow:"none"}})),Td=Ws("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Xi(n.size)}`]]}})((({ownerState:e})=>or({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},kd(e)))),_d=Ws("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Xi(n.size)}`]]}})((({ownerState:e})=>or({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},kd(e)))),Nd=g.forwardRef((function(e,t){const n=g.useContext(Ad),r=g.useContext(qd),o=Hs({props:ya(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:v,type:b,variant:y="text"}=o,x=ir(o,Pd),S=or({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:y}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return or({},a,xa({root:["root",i,`${i}${Xi(t)}`,`size${Xi(o)}`,`${i}Size${Xi(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Xi(o)}`],endIcon:["endIcon",`iconSize${Xi(o)}`]},Id,a))})(S),w=v&&zi.jsx(Td,{className:E.startIcon,ownerState:S,children:v}),C=p&&zi.jsx(_d,{className:E.endIcon,ownerState:S,children:p}),D=r||"";return zi.jsxs(Od,or({ownerState:S,className:Tl(n.className,E.root,s,D),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Tl(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[w,i,C]}))}));var Fd=Nd;function Hd(e){return Ca("MuiModal",e)}Da("MuiModal",["root","hidden","backdrop"]);const $d=["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"],zd=Ws("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})=>or({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),jd=Ws(wd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Wd=g.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Hs({name:"MuiModal",props:e}),{BackdropComponent:u=jd,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:v={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:D=!1,keepMounted:R=!1,onBackdropClick:L,open:I,slotProps:M,slots:A}=s,q=ir(s,$d),P=or({},s,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:D,keepMounted:R}),{getRootProps:k,getBackdropProps:O,getTransitionProps:T,portalRef:_,isTopModal:N,exited:F,hasTransition:H}=$c(or({},P,{rootRef:t})),$=or({},P,{exited:F}),z=(e=>{const{open:t,exited:n,classes:r}=e;return xa({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Hd,r)})($),j={};if(void 0===f.props.tabIndex&&(j.tabIndex="-1"),H){const{onEnter:e,onExited:t}=T();j.onEnter=e,j.onExited=t}const W=null!=(n=null!=(r=null==A?void 0:A.root)?r:v.Root)?n:zd,V=null!=(o=null!=(i=null==A?void 0:A.backdrop)?i:v.Backdrop)?o:u,B=null!=(a=null==M?void 0:M.root)?a:b.root,G=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,U=Ic({elementType:W,externalSlotProps:B,externalForwardedProps:q,getSlotProps:k,additionalProps:{ref:t,as:h},ownerState:$,className:Tl(d,null==B?void 0:B.className,null==z?void 0:z.root,!$.open&&$.exited&&(null==z?void 0:z.hidden))}),Y=Ic({elementType:V,externalSlotProps:G,additionalProps:c,getSlotProps:e=>O(or({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Tl(null==G?void 0:G.className,null==c?void 0:c.className,null==z?void 0:z.backdrop),ownerState:$});return R||I||H&&!F?zi.jsx(kc,{ref:_,container:m,disablePortal:E,children:zi.jsxs(W,or({},U,{children:[!D&&u?zi.jsx(V,or({},Y)):null,zi.jsx(Pc,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:w,isEnabled:N,open:I,children:g.cloneElement(f,j)})]}))}):null}));var Vd=Wd;function Bd(e){return Ca("MuiDivider",e)}var Gd=Da("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Ud=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Yd=Ws("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})=>or({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)`:es(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})=>or({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>or({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>or({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>or({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Kd=Ws("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>or({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)`}))),Xd=g.forwardRef((function(e,t){const n=Hs({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=ir(n,Ud),m=or({},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 xa({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"]},Bd,r)})(m);return zi.jsx(Yd,or({as:a,className:Tl(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?zi.jsx(Kd,{className:h.wrapper,ownerState:m,children:o}):null}))}));Xd.muiSkipListHighlight=!0;var Zd=Xd;const Jd=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Qd=Ws(rd,{shouldForwardProp:e=>$s(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...td(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 or({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}},[`&.${fd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${fd.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"},[`&.${fd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fd.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(.${fd.disabled}, .${fd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${fd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&or({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}))})),ep=Ws(od,{name:"MuiFilledInput",slot:"Input",overridesResolver:nd})((({theme:e,ownerState:t})=>or({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}))),tp=g.forwardRef((function(e,t){var n,r,o,i;const a=Hs({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=ir(a,Jd),g=or({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return or({},t,xa({root:["root",!n&&"underline"],input:["input"]},pd,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Ki(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:Qd,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:ep;return zi.jsx(ld,or({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));tp.muiName="Input";var np=tp;const rp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function op(e){return`scale(${e}, ${e**2})`}const ip={entering:{opacity:1,transform:op(1)},entered:{opacity:1,transform:"none"}},ap="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lp=g.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=_u}=e,v=ir(e,rp),b=g.useRef(),y=g.useRef(),x=Fs(),S=g.useRef(null),E=sa(S,o.ref,t),w=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},C=w(u),D=w(((e,t)=>{Vu(e);const{duration:n,delay:r,easing:o}=Bu({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:ap?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=w(s),L=w(p),I=w((e=>{const{duration:t,delay:n,easing:r}=Bu({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:ap?o:.666*o,delay:ap?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=op(.75),c&&c(e)})),M=w(d);return g.useEffect((()=>()=>{clearTimeout(b.current)}),[]),zi.jsx(h,or({appear:r,in:a,nodeRef:S,onEnter:D,onEntered:R,onEntering:C,onExit:I,onExited:M,onExiting:L,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,y.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>g.cloneElement(o,or({style:or({opacity:0,transform:op(.75),visibility:"exited"!==e||a?void 0:"hidden"},ip[e],f,o.props.style),ref:E},t))}))}));lp.muiSupportAuto=!0;var sp=lp;const up=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],cp=Ws(rd,{shouldForwardProp:e=>$s(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...td(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})`),or({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"},[`&.${ud.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ud.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(.${ud.disabled}, .${ud.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ud.disabled}:before`]:{borderBottomStyle:"dotted"}})})),dp=Ws(od,{name:"MuiInput",slot:"Input",overridesResolver:nd})({}),pp=g.forwardRef((function(e,t){var n,r,o,i;const a=Hs({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=ir(a,up),v=(e=>{const{classes:t,disableUnderline:n}=e;return or({},t,xa({root:["root",!n&&"underline"],input:["input"]},sd,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Ki(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:cp,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:dp;return zi.jsx(ld,or({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));pp.muiName="Input";var fp=pp;var mp=g.createContext({});function hp(e){return Ca("MuiList",e)}Da("MuiList",["root","padding","dense","subheader"]);const gp=["children","className","component","dense","disablePadding","subheader"],vp=Ws("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})=>or({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var bp=g.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=ir(n,gp),c=g.useMemo((()=>({dense:a})),[a]),d=or({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xa({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},hp,t)})(d);return zi.jsx(mp.Provider,{value:c,children:zi.jsxs(vp,or({as:i,className:Tl(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function yp(e){return Ca("MuiListItemIcon",e)}var xp=Da("MuiListItemIcon",["root","alignItemsFlexStart"]);const Sp=["className"],Ep=Ws("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})=>or({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var wp=g.forwardRef((function(e,t){const n=Hs({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=ir(n,Sp),i=or({},n,{alignItems:g.useContext(mp).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return xa({root:["root","flex-start"===t&&"alignItemsFlexStart"]},yp,n)})(i);return zi.jsx(Ep,or({className:Tl(a.root,r),ownerState:i,ref:t},o))}));var Cp=Da("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Dp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Rp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Lp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ip(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 Mp(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")&&Ip(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Ap=g.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=ir(e,Dp),p=g.useRef(null),f=g.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});na((()=>{r&&p.current.focus()}),[r]),g.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${ba(Qi(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=sa(p,t);let h=-1;g.Children.forEach(i,((e,t)=>{g.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 v=g.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),g.cloneElement(e,t)}return e}));return zi.jsx(bp,or({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Qi(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Mp(t,r,s,l,Rp);else if("ArrowUp"===n)e.preventDefault(),Mp(t,r,s,l,Lp);else if("Home"===n)e.preventDefault(),Mp(t,null,s,l,Rp);else if("End"===n)e.preventDefault(),Mp(t,null,s,l,Lp);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&&Ip(r,o);o.previousKeyMatched&&(s||Mp(t,r,!1,l,Rp,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:v}))}));function qp(e){return Ca("MuiPopover",e)}Da("MuiPopover",["root","paper"]);const Pp=["onEntering"],kp=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Op=["slotProps"];function Tp(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function _p(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Np(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Fp(e){return"function"==typeof e?e():e}const Hp=Ws(Vd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$p=Ws(Ku,{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 zp=g.forwardRef((function(e,t){var n,r,o;const i=Hs({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:v,PaperProps:b={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=sp,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:D=!1}=i,R=ir(i.TransitionProps,Pp),L=ir(i,kp),I=null!=(n=null==x?void 0:x.paper)?n:b,M=g.useRef(),A=sa(M,I.ref),q=or({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:w,TransitionProps:R}),P=(e=>{const{classes:t}=e;return xa({root:["root"],paper:["paper"]},qp,t)})(q),k=g.useCallback((()=>{if("anchorPosition"===c)return u;const e=Fp(l),t=(e&&1===e.nodeType?e:Qi(M.current).body).getBoundingClientRect();return{top:t.top+Tp(t,s.vertical),left:t.left+_p(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),O=g.useCallback((e=>({vertical:Tp(e,S.vertical),horizontal:_p(e,S.horizontal)})),[S.horizontal,S.vertical]),T=g.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=O(t);if("none"===c)return{top:null,left:null,transformOrigin:Np(n)};const r=k();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=ea(Fp(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:Np(n)}}),[l,c,k,O,h]),[_,N]=g.useState(v),F=g.useCallback((()=>{const e=M.current;if(!e)return;const t=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)}),[T]);g.useEffect((()=>(D&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,D,F]);g.useEffect((()=>{v&&F()})),g.useImperativeHandle(a,(()=>v?{updatePosition:()=>{F()}}:null),[v,F]),g.useEffect((()=>{if(!v)return;const e=Ji((()=>{F()})),t=ea(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,v,F]);let H=w;"auto"!==w||E.muiSupportAuto||(H=void 0);const $=f||(l?Qi(Fp(l)).body:void 0),z=null!=(r=null==y?void 0:y.root)?r:Hp,j=null!=(o=null==y?void 0:y.paper)?o:$p,W=Ic({elementType:j,externalSlotProps:or({},I,{style:_?I.style:or({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:A},ownerState:q,className:Tl(P.paper,null==I?void 0:I.className)}),V=Ic({elementType:z,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:$,open:v},ownerState:q,className:Tl(P.root,p)}),{slotProps:B}=V,G=ir(V,Op);return zi.jsx(z,or({},G,!wc(z)&&{slotProps:B,disableScrollLock:D},{children:zi.jsx(E,or({appear:!0,in:v,onEntering:(e,t)=>{C&&C(e,t),F()},onExited:()=>{N(!1)},timeout:H},R,{children:zi.jsx(j,or({},W,{children:d}))}))}))}));function jp(e){return Ca("MuiMenu",e)}Da("MuiMenu",["root","paper","list"]);const Wp=["onEntering"],Vp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Bp={vertical:"top",horizontal:"right"},Gp={vertical:"top",horizontal:"left"},Up=Ws(zp,{shouldForwardProp:e=>$s(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yp=Ws($p,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Kp=Ws(Ap,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Xp=g.forwardRef((function(e,t){var n,r;const o=Hs({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:v="selectedMenu",slots:b={},slotProps:y={}}=o,x=ir(o.TransitionProps,Wp),S=ir(o,Vp),E=Fs(),w="rtl"===E.direction,C=or({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:v}),D=(e=>{const{classes:t}=e;return xa({root:["root"],paper:["paper"],list:["list"]},jp,t)})(C),R=i&&!s&&d,L=g.useRef(null);let I=-1;g.Children.map(a,((e,t)=>{g.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(n=b.paper)?n:Yp,A=null!=(r=y.paper)?r:p,q=Ic({elementType:b.root,externalSlotProps:y.root,ownerState:C,className:[D.root,l]}),P=Ic({elementType:M,externalSlotProps:A,ownerState:C,className:D.paper});return zi.jsx(Up,or({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Bp:Gp,slots:{paper:M,root:b.root},slotProps:{root:q,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:or({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:C},S,{classes:f,children:zi.jsx(Kp,or({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===I||s),autoFocusItem:R,variant:v},u,{className:Tl(D.list,u.className),children:a}))}))}));function Zp(e){return Ca("MuiMenuItem",e)}var Jp=Da("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Qp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ef=Ws(mc,{shouldForwardProp:e=>$s(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})=>or({},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"}},[`&.${Jp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:es(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Jp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:es(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Jp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:es(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})`:es(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Jp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Gd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Gd.inset}`]:{marginLeft:52},[`& .${Cp.root}`]:{marginTop:0,marginBottom:0},[`& .${Cp.inset}`]:{paddingLeft:36},[`& .${xp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&or({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${xp.root} svg`]:{fontSize:"1.25rem"}}))));var tf=g.forwardRef((function(e,t){const n=Hs({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=ir(n,Qp),f=g.useContext(mp),m=g.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=g.useRef(null);na((()=>{r&&h.current&&h.current.focus()}),[r]);const v=or({},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 or({},a,xa({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Zp,a))})(n),y=sa(h,t);let x;return n.disabled||(x=void 0!==c?c:-1),zi.jsx(mp.Provider,{value:m,children:zi.jsx(ef,or({ref:y,role:u,tabIndex:x,component:o,focusVisibleClassName:Tl(b.focusVisible,s),className:Tl(b.root,d)},p,{ownerState:v,classes:b}))})}));function nf(e){return Ca("MuiNativeSelect",e)}var rf=Da("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const of=["className","disabled","error","IconComponent","inputRef","variant"],af=({ownerState:e,theme:t})=>or({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":or({},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"},[`&.${rf.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}}),lf=Ws("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:$s,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${rf.multiple}`]:t.multiple}]}})(af),sf=({ownerState:e,theme:t})=>or({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${rf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),uf=Ws("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Xi(n.variant)}`],n.open&&t.iconOpen]}})(sf);var cf,df=g.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=ir(e,of),u=or({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return xa({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Xi(n)}`,i&&"iconOpen",r&&"disabled"]},nf,t)})(u);return zi.jsxs(g.Fragment,{children:[zi.jsx(lf,or({ownerState:u,className:Tl(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:zi.jsx(uf,{as:i,ownerState:u,className:c.icon})]})}));const pf=["children","classes","className","label","notched"],ff=Ws("fieldset",{shouldForwardProp:$s})({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%"}),mf=Ws("legend",{shouldForwardProp:$s})((({ownerState:e,theme:t})=>or({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&&or({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 hf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],gf=Ws(rd,{shouldForwardProp:e=>$s(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:td})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return or({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${dd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${dd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${dd.focused} .${dd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${dd.error} .${dd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${dd.disabled} .${dd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&or({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),vf=Ws((function(e){const{className:t,label:n,notched:r}=e,o=ir(e,pf),i=null!=n&&""!==n,a=or({},e,{notched:r,withLabel:i});return zi.jsx(ff,or({"aria-hidden":!0,className:t,ownerState:a},o,{children:zi.jsx(mf,{ownerState:a,children:i?zi.jsx("span",{children:n}):cf||(cf=zi.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}})),bf=Ws(od,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:nd})((({theme:e,ownerState:t})=>or({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}))),yf=g.forwardRef((function(e,t){var n,r,o,i,a;const l=Hs({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,v=ir(l,hf),b=(e=>{const{classes:t}=e;return or({},t,xa({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},cd,t))})(l),y=Yc(),x=Gc({props:l,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=or({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(n=null!=(r=m.root)?r:s.Root)?n:gf,w=null!=(o=null!=(i=m.input)?i:s.Input)?o:bf;return zi.jsx(ld,or({slots:{root:E,input:w},renderSuffix:e=>zi.jsx(vf,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=zi.jsxs(g.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},v,{classes:or({},b,{notchedOutline:null})}))}));yf.muiName="Input";var xf=yf;function Sf(e){return Ca("MuiSelect",e)}var Ef,wf=Da("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Cf=["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"],Df=Ws("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${wf.select}`]:t.select},{[`&.${wf.select}`]:t[n.variant]},{[`&.${wf.error}`]:t.error},{[`&.${wf.multiple}`]:t.multiple}]}})(af,{[`&.${wf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Rf=Ws("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Xi(n.variant)}`],n.open&&t.iconOpen]}})(sf),Lf=Ws("input",{shouldForwardProp:e=>zs(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 If(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Mf(e){return null==e||"string"==typeof e&&!e.trim()}const Af=g.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:v,MenuProps:b={},multiple:y,name:x,onBlur:S,onChange:E,onClose:w,onFocus:C,onOpen:D,open:R,readOnly:L,renderValue:I,SelectDisplayProps:M={},tabIndex:A,value:q,variant:P="standard"}=e,k=ir(e,Cf),[O,T]=aa({controlled:q,default:c,name:"Select"}),[_,N]=aa({controlled:R,default:u,name:"Select"}),F=g.useRef(null),H=g.useRef(null),[$,z]=g.useState(null),{current:j}=g.useRef(null!=R),[W,V]=g.useState(),B=sa(t,h),G=g.useCallback((e=>{H.current=e,e&&z(e)}),[]),U=null==$?void 0:$.parentNode;g.useImperativeHandle(B,(()=>({focus:()=>{H.current.focus()},node:F.current,value:O})),[O]),g.useEffect((()=>{u&&_&&$&&!j&&(V(a?null:U.clientWidth),H.current.focus())}),[$,a]),g.useEffect((()=>{i&&H.current.focus()}),[i]),g.useEffect((()=>{if(!v)return;const e=Qi(H.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&H.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const Y=(e,t)=>{e?D&&D(t):w&&w(t),j||(V(a?null:U.clientWidth),N(e))},K=g.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(y){n=Array.isArray(O)?O.slice():[];const t=O.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),O!==n&&(T(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)}y||Y(!1,t)}},Z=null!==$&&_;let J,Q;delete k["aria-invalid"];const ee=[];let te=!1;(Zc({value:O})||p)&&(I?J=I(O):te=!0);const ne=K.map((e=>{if(!g.isValidElement(e))return null;let t;if(y){if(!Array.isArray(O))throw new Error(nr(2));t=O.some((t=>If(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=If(O,e.props.value),t&&te&&(Q=e.props.children);return g.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&&(J=y?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=W;!a&&j&&$&&(oe=U.clientWidth),re=void 0!==A?A:d?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=or({},e,{variant:P,value:O,open:Z,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return xa({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Xi(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Sf,t)})(ae),se=or({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=ia();return zi.jsxs(g.Fragment,{children:[zi.jsx(Df,or({ref:G,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||L?null:e=>{0===e.button&&(e.preventDefault(),H.current.focus(),Y(!0,e))},onBlur:e=>{!Z&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:x}}),S(e))},onFocus:C},M,{ownerState:ae,className:Tl(M.className,le.select,s),id:ie,children:Mf(J)?Ef||(Ef=zi.jsx("span",{className:"notranslate",children:""})):J})),zi.jsx(Lf,or({"aria-invalid":f,value:Array.isArray(O)?O.join(","):O,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},k)),zi.jsx(Rf,{as:m,className:le.icon,ownerState:ae}),zi.jsx(Xp,or({id:`menu-${x||""}`,anchorEl:U,open:Z,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:or({"aria-labelledby":v,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:or({},b.slotProps,{paper:or({},se,{style:or({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var qf=Af;const Pf=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],kf=["root"],Of={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>$s(e)&&"variant"!==e,slot:"Root"},Tf=Ws(fp,Of)(""),_f=Ws(xf,Of)(""),Nf=Ws(np,Of)(""),Ff=g.forwardRef((function(e,t){const n=Hs({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=md,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:v=!1,native:b=!1,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:w,variant:C="outlined"}=n,D=ir(n,Pf),R=b?df:qf,L=Gc({props:n,muiFormControl:Yc(),states:["variant","error"]}),I=L.variant||C,M=or({},n,{variant:I,classes:i}),A=(e=>{const{classes:t}=e;return t})(M),q=ir(A,kf),P=d||{standard:zi.jsx(Tf,{ownerState:M}),outlined:zi.jsx(_f,{label:f,ownerState:M}),filled:zi.jsx(Nf,{ownerState:M})}[I],k=sa(t,P.ref);return zi.jsx(g.Fragment,{children:g.cloneElement(P,or({inputComponent:R,inputProps:or({children:o,error:L.error,IconComponent:u,variant:I,type:void 0,multiple:v},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:or({id:c},w)},p,{classes:p?Ki(q,p.classes):q},d?d.props.inputProps:{})},v&&b&&"outlined"===I?{notched:!0}:{},{ref:k,className:Tl(P.props.className,a,A.root)},!d&&{variant:I},D))})}));Ff.muiName="Select";var Hf=Ff;const $f=Ws(Ld,{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"}))),zf=Ws(Qs,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),jf=Ws(Xp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Wf=Ws(Zd)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),Vf=Ws(tf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:e.spacing(.25,2),marginBottom:e.spacing(.5)}))),Bf=Ws(tf,{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),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative",overflow:"hidden",boxSizing:"border-box",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),Gf=Ws("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"}))),Uf=Ws("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Yf=Ws(Sc)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),Kf=Ws(wp)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function Xf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zf=x(((e,t)=>v.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){Xf(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("defs",null,v.createElement("path",{id:"arrow_right_svg__luiicons_arrow_right-a",d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})),v.createElement("use",{xlinkHref:"#arrow_right_svg__luiicons_arrow_right-a"})))),Jf=(e,t)=>e.map((e=>e.map((e=>{var n;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(n=e.items)||void 0===n?void 0:n.map((({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).map((([,e])=>e(!1))),await e(n)}}:{}})))}}))));let Qf={};const em=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=b(!1),p=L(null),f=w((e=>{e.stopPropagation(),d(!1)}),[d]);return v.createElement(v.Fragment,null,v.createElement(Bf,{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),Qf={}),null!=a&&a.length&&(d(!0),Qf[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&v.createElement(Gf,null),v.createElement(Uf,null,v.createElement(Kf,null,v.createElement(o,null)),v.createElement(Yf,{variant:"body2"},r)),null!=a&&a.length?v.createElement(Zf,null):null),(null==a?void 0:a.length)&&v.createElement(nm,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:Jf(a,Qf),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}))},tm=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&v.createElement(Vf,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>v.createElement(em,{key:e.id,...e,isSubMenu:t,handleHeadCellMenuKeyDown:n})))].filter(Boolean)]})),nm=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?v.createElement(jf,{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)=>[tm({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?v.createElement(Wf,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null;function rm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const om=x(((e,t)=>v.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){rm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("defs",null,v.createElement("path",{id:"descending_svg__descending-a",d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"})),v.createElement("use",{xlinkHref:"#descending_svg__descending-a"}))));function im(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const am=x(((e,t)=>v.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){im(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("defs",null,v.createElement("path",{id:"ascending_svg__ascending-a",d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"})),v.createElement("use",{xlinkHref:"#ascending_svg__ascending-a"}))));function lm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sm=x(((e,t)=>v.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){lm(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),v.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116.509.509 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.087a.506.506 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0Z"}))));function um(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cm=x(((e,t)=>v.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){um(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),v.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1V1.5ZM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1h1.5ZM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1v1.5Zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1v1.5ZM6 0h4v1H6V0ZM0 6h1v4H0V6Zm15 0h1v4h-1V6Zm-9 9h4v1H6v-1Z"}))));function dm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pm=x(((e,t)=>v.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){dm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("defs",null,v.createElement("path",{id:"select_all_svg__select_all-a",d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4h2Zm12-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 0h10Zm0 1H5v10h10V1Zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28l3.497-3.627Z"})),v.createElement("use",{xlinkHref:"#select_all_svg__select_all-a"}))));function fm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mm=x(((e,t)=>v.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){fm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("defs",null,v.createElement("path",{id:"clear_selections_svg__selections-clear-a",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-.5Zm-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 0Zm0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM9.166 6.166c1.555-1.555 4.113-1.555 5.668 0 1.555 1.555 1.555 4.113 0 5.668-1.555 1.555-4.113 1.555-5.668 0-1.555-1.555-1.555-4.063 0-5.668Zm4.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 0c-.25.201-.25.602 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.304 1.304-1.304Z"})),v.createElement("use",{xlinkHref:"#clear_selections_svg__selections-clear-a"}))));function hm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gm=x(((e,t)=>v.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){hm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("defs",null,v.createElement("path",{id:"select_possible_svg__luiicons_select_possible-a",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-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 4v8h8V4H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),v.createElement("use",{xlinkHref:"#select_possible_svg__luiicons_select_possible-a"}))));function vm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bm=x(((e,t)=>v.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){vm(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("defs",null,v.createElement("path",{id:"select_alternative_svg__luiicons_select_alternative-a",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-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 4v8l8-8H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),v.createElement("use",{xlinkHref:"#select_alternative_svg__luiicons_select_alternative-a"}))));function ym(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xm=x(((e,t)=>v.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){ym(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("defs",null,v.createElement("path",{id:"select_excluded_svg__luiicons_select_excluded-a",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-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),v.createElement("use",{xlinkHref:"#select_excluded_svg__luiicons_select_excluded-a"}))));function Sm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Em=x(((e,t)=>v.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){Sm(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),v.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.707L3.915 8ZM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h14Zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2h2Z"}))));var wm;!function(e){e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize"}(wm||(wm={}));const Cm=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnClosetHeaderAdjuster:d})=>{const p=[];if(n[wm.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:am,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:om,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[wm.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:sm,enabled:!0}]}]),n[wm.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:cm,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:pm,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:gm,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:bm,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:xm,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:mm,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[wm.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:Em,enabled:!0}]}]),p},Dm=({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=dn({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:y}=r,{fieldInstance:x,selectionActionsEnabledStatus:S,resetSelectionActionsEnabledStatus:C,updateSelectionActionsEnabledStatus:D}=(({headerData:e,app:t})=>{const[n,r]=b(null),[o,i]=b(eu);return E((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:w((()=>i(eu)),[]),updateSelectionActionsEnabledStatus:w((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:tu(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:tu(["qSelected"],n.qStateCounts),canSelectPossible:tu(["qOption"],n.qStateCounts),canSelectAlternative:tu(["qAlternative"],n.qStateCounts),canSelectExcluded:tu(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),R=w((()=>{const e=g?{qLibraryId:g,type:"dimension"}:y;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,y,g]);E((()=>{e||(C(),null!=d&&d.model&&d.model.getLayout().then((e=>{D(e)})).catch((e=>console.error(e))))}),[e,C,D,null==d?void 0:d.model]);const L=w((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?v.createElement($f,{rightAligned:"right"===h,shouldShowMenuIcon:s},s&&v.createElement(zf,{size:"small",className:dt,"data-testid":dt,"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},v.createElement(Qs,null)),v.createElement(nm,{open:e,anchorEl:n.current,onClose:L,menuGroups:Cm({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:x,selectionActionsEnabledStatus:S,anchorRef:n,setFocusOnClosetHeaderAdjuster:null==p?void 0:p.setFocusOnClosetHeaderAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},Rm=Ws(Ld,{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}`}))),Lm=Ws(Hf,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),Im=Ws(Fd,{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)}))),Mm=Ws(Sc)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})));function Am(e){if(e.type)return e;if("#"===e.charAt(0))return Am(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 qm(e,t){return e=Am(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)}const Pm={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"},km={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",...Pm,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)"},Om=12,Tm=14,_m=16,Nm=24,Fm=3,Hm=300,$m=400,zm=600,jm=700,Wm={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};qm(km.GREYSCALE_0,.05),qm(km.GREEN_PALE,.5),qm(km.BLUE_PALE,.5),qm(km.GREEN_PALE,.5),qm(km.BLUE_PALE,.5),qm(km.GREEN_PALE,.5),qm(km.BLUE_PALE,.5);var Vm,Bm;function Gm(){return Gm=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},Gm.apply(this,arguments)}qm(km.GREEN_PALE,.5),qm(km.BLUE_PALE,.5),qm(km.GREEN_PALE,.5),qm(km.BLUE_PALE,.5);var Um,Ym,Km=function(e){return g.createElement("svg",Gm({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),Vm||(Vm=g.createElement("defs",null,g.createElement("path",{id:"ArrowDown_svg__a",d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"}))),Bm||(Bm=g.createElement("use",{xlinkHref:"#ArrowDown_svg__a",fillRule:"evenodd"})))};function Xm(){return Xm=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},Xm.apply(this,arguments)}var Zm=function(e){return g.createElement("svg",Xm({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),Um||(Um=g.createElement("defs",null,g.createElement("path",{id:"Close_svg__a",d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"}))),Ym||(Ym=g.createElement("use",{xlinkHref:"#Close_svg__a"})))};function Jm({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return v.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 Qm=(e={})=>v.createElement(Jm,{...e},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},v.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),v.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"}))),eh=(e={})=>v.createElement(Jm,{...e},v.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},v.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),v.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),th=(e={})=>v.createElement(Jm,{fontSize:"medium",...e},v.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},v.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),nh=(e={})=>v.createElement(Jm,{fontSize:"medium",...e},v.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("defs",null,v.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),v.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},v.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},v.createElement("use",{href:"#radio-checked-path-1"})),v.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),v.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),rh=({className:e})=>v.createElement(Jm,{fontSize:"small",className:e},v.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},v.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},v.createElement("g",{transform:"translate(4.324187, 1.300372)"},v.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"}),v.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"})))))),oh=(e={})=>v.createElement(Jm,{...e},v.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},v.createElement("rect",{stroke:km.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const ih={MuiAccordion:{styleOverrides:{root:{backgroundColor:km.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:km.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:v.createElement(Km,{"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 ${km.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:km.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${km.MISC_FOCUS_BORDER}`,borderRadius:Fm,backgroundColor:km.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 ${km.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:km.WHITE,color:km.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:Fm},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${km.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:km.GREYSCALE_0_15,backgroundColor:km.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:km.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${km.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:km.GREEN_PALE},"&:active":{backgroundColor:km.GREEN_DARK},"&.Mui-focusVisible":{borderColor:km.GREEN_PALE,boxShadow:`0 0 0 3px ${es(km.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:km.BLUE_PALE},"&:active":{backgroundColor:km.BLUE_DARK},"&.Mui-focusVisible":{borderColor:km.BLUE_PALE,boxShadow:`0 0 0 3px ${es(km.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:Fm,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:km.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${km.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:km.GREYSCALE_0_15,backgroundColor:km.GREYSCALE_100_60,"&:active":{backgroundColor:km.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:km.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${km.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:km.PURPLE,"&.Mui-focusVisible":{borderColor:km.PURPLE,boxShadow:`0 0 0 3px ${es(km.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:km.GREEN,"&.Mui-focusVisible":{borderColor:km.GREEN,boxShadow:`0 0 0 3px ${es(km.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:km.BLUE,"&.Mui-focusVisible":{borderColor:km.BLUE,boxShadow:`0 0 0 3px ${es(km.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:km.ORANGE,"&.Mui-focusVisible":{borderColor:km.ORANGE,boxShadow:`0 0 0 3px ${es(km.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:km.RED,"&.Mui-focusVisible":{borderColor:km.RED,boxShadow:`0 0 0 3px ${es(km.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:km.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:km.PURPLE_PALE},"&:active":{backgroundColor:km.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:km.PURPLE_PALE,boxShadow:`0 0 0 3px ${es(km.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:km.GREEN_PALE},"&:active":{backgroundColor:km.GREEN_DARK},"&.Mui-focusVisible":{borderColor:km.GREEN_PALE,boxShadow:`0 0 0 3px ${es(km.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:km.BLUE_PALE},"&:active":{backgroundColor:km.BLUE_DARK},"&.Mui-focusVisible":{borderColor:km.BLUE_PALE,boxShadow:`0 0 0 3px ${es(km.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:km.ORANGE_PALE},"&:active":{backgroundColor:km.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:km.ORANGE_PALE,boxShadow:`0 0 0 3px ${es(km.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:km.RED_PALE},"&:active":{backgroundColor:km.RED_DARK},"&.Mui-focusVisible":{borderColor:km.RED_PALE,boxShadow:`0 0 0 3px ${es(km.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:km.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:km.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Fm,boxShadow:`inset 0 0 0 2px ${km.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:v.createElement(Zm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Om,borderRadius:Fm,color:km.TEXT_PRIMARY,backgroundColor:km.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:km.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${km.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:km.GREYSCALE_0_05,color:km.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:km.GREEN,borderColor:km.GREEN},"&.MuiChip-outlinedInfo":{color:km.BLUE,borderColor:km.BLUE},"&.MuiChip-outlinedWarning":{color:km.ORANGE,borderColor:km.ORANGE},"&.MuiChip-outlinedError":{color:km.RED,borderColor:km.RED}},outlined:{border:`solid 1px ${km.GREYSCALE_0_15}`,backgroundColor:km.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Fm,boxShadow:"none",backgroundColor:km.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:km.GREEN,borderColor:km.GREEN},outlinedSecondary:{color:km.BLUE,borderColor:km.BLUE},label:{fontFamily:Wm.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:v.createElement(Zm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:v.createElement(Km,{"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:Fm},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:Tm,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:km.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:km.GREYSCALE_0_10},"&:hover":{backgroundColor:km.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Fm,border:`solid 1px ${km.GREYSCALE_0_15}`,color:km.GREYSCALE_0_60,marginRight:0,width:Nm,height:Nm},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${km.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Fm,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:km.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Tm}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Om,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:km.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:km.GREYSCALE_25,fontSize:Om,fontFamily:Wm.FONT_FAMILY,fontWeight:zm,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:km.TEXT_PRIMARY},"&.Mui-error":{color:km.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:km.TEXT_SECONDARY,content:"'(optional)'",fontWeight:$m,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:km.TEXT_SECONDARY,content:"'(required)'",fontWeight:$m,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Tm,lineHeight:"16px",backgroundColor:km.WHITE,borderRadius:Fm,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${km.GREYSCALE_0_05}`,borderColor:km.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${km.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${km.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${km.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${km.RED}`,boxShadow:`0px 0px 0px 1px ${km.RED}, inset 0 2px 0 0 ${km.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${km.GREYSCALE_0_10}`,borderColor:km.GREYSCALE_0_10,backgroundColor:km.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:km.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:km.GREYSCALE_0_15,borderRadius:Fm,boxShadow:`inset 0 2px 0 0 ${km.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>v.createElement(Km,{...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:km.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:km.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:km.GREYSCALE_0_03},"&:active":{backgroundColor:km.GREYSCALE_0_10},"&:focus":{backgroundColor:km.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${km.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${km.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:km.GREYSCALE_0_30,"&:hover":{backgroundColor:km.GREYSCALE_0_0,borderColor:km.GREYSCALE_0_15},"& ~svg":{color:km.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${km.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Fm}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:km.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${km.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:km.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Tm,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Om,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Om,fontWeight:zm,color:km.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:zm}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${km.GREYSCALE_0_15}, 0px 0px 0px 1px ${km.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:v.createElement(th,null),checkedIcon:v.createElement(nh,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:km.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${km.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:km.GREEN_PALE,boxShadow:`0 0 0 3px ${es(km.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:km.BLUE_PALE,boxShadow:`0 0 0 3px ${es(km.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:km.GREYSCALE_0_20}},"&.Mui-disabled":{fill:km.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:v.createElement(oh,null),checkedIcon:v.createElement(Qm,null),indeterminateIcon:v.createElement(eh,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Fm,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:km.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:km.GREYSCALE_0_55,color:km.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:km.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:km.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:km.GREYSCALE_0_55,"&:hover":{color:km.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:km.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:km.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Tm,color:km.TEXT_PRIMARY,lineHeight:"16px",fontWeight:zm},secondary:{fontSize:Om,color:km.GREYSCALE_45,fontWeight:$m,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Tm,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:km.GREYSCALE_0_03},"&:active":{backgroundColor:km.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Tm,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:km.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Om,borderBottom:`solid 1px ${km.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Tm,color:km.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:km.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:km.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:km.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:km.RED}}},"&.Mui-focusVisible":{backgroundColor:km.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:km.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:km.GREEN,height:"24px","&.Mui-disabled":{color:km.GREYSCALE_0_15}},rail:{backgroundColor:km.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${km.GREYSCALE_0_05}`,borderRadius:Fm,boxShadow:`inset 0px 0px 0px 1px ${km.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${km.GREYSCALE_0_05}`,borderRadius:Fm},thumb:{height:"16px",width:"16px",borderRadius:Fm,backgroundColor:km.WHITE,boxShadow:`0px 1px 2px 0px ${km.GREYSCALE_0_15}, 0px 0px 0px 1px ${km.GREYSCALE_0_05}`,"&:hover":{borderRadius:Fm,boxShadow:`0 2px 4px 0 ${km.GREYSCALE_0_30}, 0 0 0 1px ${km.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${km.GREYSCALE_0_15}, 0 0 0 1px ${km.GREYSCALE_0_06}, 0 0 0 2px ${km.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${km.GREYSCALE_0_15}, 0 0 0 1px ${km.GREYSCALE_0_06}, 0 0 0 2px ${km.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:km.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:km.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:km.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:km.GREYSCALE_0_15},markLabel:{color:km.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:km.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:km.WHITE,color:km.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:km.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:km.GREEN_PALE,boxShadow:`0 0 0 3px ${es(km.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:km.BLUE_PALE,boxShadow:`0 0 0 3px ${es(km.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:km.GREYSCALE_0_15,borderRadius:Fm},thumb:{height:"16px",width:"16px",borderRadius:Fm,backgroundColor:km.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:Tm,fontWeight:zm,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${km.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${km.MISC_FOCUS_BORDER}`,backgroundColor:km.GREYSCALE_0_03,borderRadius:Fm},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:km.GREYSCALE_25,"&.Mui-selected":{color:km.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Tm,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${km.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${km.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${km.GREYSCALE_85}`,borderRight:`1px solid ${km.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:zm,backgroundColor:km.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:km.GREYSCALE_98,borderBottom:`1px solid ${km.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${km.GREYSCALE_85}`,borderTop:`1px solid ${km.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:km.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:km.GREYSCALE_0_05,"&:hover":{backgroundColor:km.GREYSCALE_0_03}},"&&:hover":{backgroundColor:km.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>v.createElement(rh,{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 ${km.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:Tm,borderRadius:Fm,padding:"7px 16px",border:`1px solid ${km.GREYSCALE_0_15}`,backgroundColor:km.GREYSCALE_100_60,color:km.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:km.GREYSCALE_0_10,border:`1px solid ${km.GREYSCALE_0_30}`},"&:hover":{backgroundColor:km.GREYSCALE_0_03,border:`1px solid ${km.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:km.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${km.MISC_FOCUS_BORDER}`,border:`1px solid ${km.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:km.GREYSCALE_25,backgroundColor:km.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:km.GREYSCALE_0_10,border:`1px solid ${km.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Om,height:24,width:24,padding:7},sizeLarge:{fontSize:_m,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Tm,borderRadius:Fm}}},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:km.GREYSCALE_20},tooltip:{backgroundColor:km.GREYSCALE_20,fontSize:Om,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var ah=e=>ih;const lh={mode:"light",primary:{light:km.GREEN_PALE,main:km.GREEN,dark:km.GREEN_DARK,contrastText:km.WHITE},secondary:{light:km.BLUE_PALE,main:km.BLUE,dark:km.BLUE_DARK,contrastText:km.WHITE},error:{light:km.RED_PALE,main:km.RED,dark:km.RED_DARK,contrastText:km.WHITE},warning:{light:km.ORANGE_PALE,main:km.ORANGE,dark:km.ORANGE_DARK,contrastText:km.WHITE},success:{light:km.GREEN_PALE,main:km.GREEN,dark:km.GREEN_DARK,contrastText:km.WHITE},info:{light:km.BLUE_PALE,main:km.BLUE,dark:km.BLUE_DARK,contrastText:km.WHITE},text:{primary:km.TEXT_PRIMARY,secondary:km.TEXT_SECONDARY,disabled:km.GREYSCALE_0_30},action:{hover:km.GREYSCALE_0_03,hoverOpacity:.05,selected:km.GREYSCALE_0_05},amethyst:{main:km.PURPLE,light:km.PURPLE_PALE,dark:km.PURPLE_DARK,contrastText:km.WHITE},background:{paper:km.WHITE,default:km.GREYSCALE_95},divider:km.GREYSCALE_0_15},sh=e=>({components:ah(),palette:lh,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:Tm,fontWeightLight:Hm,fontWeightRegular:$m,fontWeightMedium:zm,fontWeightBold:jm,htmlFontSize:Tm,fontFamily:Wm.FONT_FAMILY,button:{fontWeight:zm,fontSize:Tm,textTransform:"none"},body1:{fontSize:_m,lineHeight:"24px"},body2:{fontSize:Tm,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Nm,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:_m,fontWeight:zm,lineHeight:"16px"},h6:{fontSize:Tm,fontWeight:zm,lineHeight:"16px"},caption:{color:km.TEXT_SECONDARY},subtitle1:{fontSize:Tm,color:km.TEXT_SECONDARY},subtitle2:{fontSize:Om,color:km.TEXT_SECONDARY}},shape:{borderRadius:Fm}}),uh={...Pm,MISC_FOCUS_BORDER:km.MISC_FOCUS_BORDER},ch=(e="light")=>sh(),dh=ch().palette,ph={TEXT:dh.text.primary,DISABLED:dh.text.disabled,HOVER:dh.action.hover,WHITE:uh.GREYSCALE_100,BORDER_LIGHT:uh.GREYSCALE_90,BORDER_MEDIUM:uh.GREYSCALE_85,BORDER_HEAVY:uh.GREYSCALE_50,DARK_MODE_TEXT:uh.GREYSCALE_95,DARK_MODE_BORDER:uh.GREYSCALE_95,DARK_MODE_DISABLED:uh.GREYSCALE_70,DARK_MODE_BACKGROUND:uh.GREYSCALE_20},fh=e=>e.isDark?{background:e.color,borderColor:ph.DARK_MODE_BORDER,color:ph.DARK_MODE_TEXT,disabledColor:ph.DARK_MODE_DISABLED,iconColor:ph.DARK_MODE_TEXT}:{background:e.color,borderColor:ph.BORDER_MEDIUM,color:ph.TEXT,disabledColor:ph.DISABLED},mh=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=y((()=>fh(r.background)),[r]);if(!n.active)return null;const a=o?v.createElement(Rm,{footerStyle:i},e):null;return t?O.createPortal(e,t):a},hh=I({}),gh=()=>S(hh),vh=({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=y((()=>fh(p.background)),[p]),x=o?o.getBoundingClientRect().width:m.width,S=dn({translator:d}),E=y((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:x})),[t,n,r,o,i,a,l,s,u,c,S,p,f,m,h,b,g,x]);return v.createElement(hh.Provider,{value:E},e)};var bh,yh;!function(e){e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage"}(bh||(bh={})),function(e){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"}(yh||(yh={}));const xh=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=gh(),{page:o,rowsPerPage:i}=n;if(t<=yh.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return v.createElement(Mm,{variant:"caption"},a)},Sh=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=gh(),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 v.createElement(v.Fragment,null,v.createElement(Mm,{variant:"caption",id:d},u,":"),v.createElement(Lm,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},Eh=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=gh();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>yh.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=v.createElement(v.Fragment,null,t.rowsPerPageOptions.map((e=>v.createElement("option",{key:e,value:e},e))));return v.createElement(Sh,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},wh=1e3,Ch="…",Dh=({totalPages:e,page:t})=>{const n=Math.min(e,wh),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-wh):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return v.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(v.createElement("option",{key:"startMoreOptions",value:Ch,disabled:!0},Ch)),o<e-1&&a.push(v.createElement("option",{key:"endMoreOptions",value:Ch,disabled:!0},Ch)),v.createElement(v.Fragment,null,a)},Rh=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=gh(),{page:o}=e;if(t<=yh.SelectPage)return null;const i=v.createElement(Dh,{totalPages:n,page:o});return v.createElement(Sh,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};function Lh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ih=x(((e,t)=>v.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){Lh(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("defs",null,v.createElement("path",{id:"arrow_left_svg__luiicons_arrow_left-a",d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),v.createElement("use",{xlinkHref:"#arrow_left_svg__luiicons_arrow_left-a",fillRule:"evenodd"}))));function Mh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ah=x(((e,t)=>v.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){Mh(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("defs",null,v.createElement("path",{id:"arrow_left_stop_svg__arrow-left-stop-a",d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8l6-6ZM4 2v12H2V2h2Z"})),v.createElement("use",{xlinkHref:"#arrow_left_stop_svg__arrow-left-stop-a"}))));function qh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ph=x(((e,t)=>v.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){qh(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("defs",null,v.createElement("path",{id:"arrow_right_stop_svg__arrow-right-stop-a",d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5 3.5 2ZM14 2v12h-2V2h2Z"})),v.createElement("use",{xlinkHref:"#arrow_right_stop_svg__arrow-right-stop-a"})))),kh={FirstPage:Ah,PreviousPage:Ih,NextPage:Zf,LastPage:Ph,FirstPageRTL:Ph,PreviousPageRTL:Zf,NextPageRTL:Ih,LastPageRTL:Ah},Oh=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=gh(),u=kh[`${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}},Th=()=>{const{pageInfo:e,width:t}=gh(),n=0===e.page,{IconComponent:r,styledProps:o}=Oh({type:bh.FirstPage,disabledCondition:n,pageNumber:0});return t<=yh.FirstPage?null:v.createElement(Im,{...o},v.createElement(r,{height:ct}))},_h=()=>{const{pageInfo:e}=gh(),t=0===e.page,{IconComponent:n,styledProps:r}=Oh({type:bh.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return v.createElement(Im,{...r},v.createElement(n,{height:ct}))},Nh=e=>{e.stopPropagation(),e.preventDefault()},Fh=(e,t,n=!1)=>{n&&e.key===pt.TAB&&!e.shiftKey&&(Nh(e),((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)})(e.target,t,!1))},Hh=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=gh(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Oh({type:bh.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>yh.FirstPage&&o>yh.LastPage)&&t.enabled?e=>Fh(e,t,r):null;return v.createElement(Im,{...l,onKeyDown:s},v.createElement(a,{height:ct}))},$h=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=gh(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Oh({type:bh.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>Fh(e,t,r):null;return o<=yh.LastPage?null:v.createElement(Im,{...l,onKeyDown:s},v.createElement(a,{height:ct}))};var zh=M((e=>v.createElement(vh,{...e},v.createElement(Eh,null),v.createElement(Rh,null),v.createElement(xh,null),v.createElement(Th,null),v.createElement(_h,null),v.createElement(Hh,null),v.createElement($h,null))));const jh=e=>v.createElement(mh,{...e},v.createElement(zh,{...e})),Wh=Ws(Ld,{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)":{[`& .${mt}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, :active":{outline:"none",[`& .${mt}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),Vh=Ws(Ld)({position:"absolute",height:"100%",width:"3px"}),Bh=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=y((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=r||o?ht.PixelsMin:ht.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:gt.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},b=e=>{const t=e.clientX-d.initX;h(t)},x=e=>{Nh(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",x),g()},S=e=>{const t=e.touches[0].clientX-d.initX;h(t)},E=e=>{e.preventDefault(),e.stopPropagation(),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E),g()},w=!r&&s?e=>{if(e.key===pt.LEFT||e.key===pt.RIGHT){Nh(e);const t=d.columnWidth-d.initWidth,n=5,r=e.key===pt.LEFT?t-n:t+n;h(r)}else e.key===pt.SPACE||e.key===pt.ENTER?(Nh(e),s(e),g()):e.key===pt.ESC&&(Nh(e),s(e),h(d.initWidth))}:void 0;return v.createElement(Wh,{className:ft,isLastColumn:n,hoverColor:i,style:m,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",x),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:gt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",S),document.addEventListener("touchend",E),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:w,onBlur:s,"data-testid":ft},v.createElement(Vh,{className:mt}))},Gh=I({}),Uh=()=>S(Gh),Yh=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,flags:l})=>{const s=y((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,flags:l})),[n,r,t,o,i,a,l]);return v.createElement(Gh.Provider,{value:s},e)},Kh=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=Uh(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:At;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:v.createElement("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a}},v.createElement("span",{style:{...zt,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"}},t))},Xh=I({}),Zh=()=>S(Xh),Jh=({children:e,styleService:t})=>v.createElement(Xh.Provider,{value:t},e),Qh=21,eg=20,tg=eg,ng=16+Tt+1,rg=.75,og="/qHyperCubeDef",ig=-1,ag="PSEUDO-DIM",lg=(e,t)=>t?{...e,fontStyle:t.fontStyle,bold:"normal"!==t.fontWeight}:{...e,bold:"normal"!==e.fontWeight},sg=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,ug=e=>sg(e,ht.PixelsDefault),cg=(e,t)=>sg(e,ht.PercentageDefault)*t/100,dg=(e,t,n)=>{switch(null==t?void 0:t.type){case gt.Pixels:return ug(t.pixels);case gt.Percentage:return cg(t.percentage,e);case gt.FitToContent:case gt.Auto:default:return n}};function pg({layoutService:e,tableWidth:t,headersData:n}){const r=Zh(),{measureText:o}=tr(lg(r.header)),{estimateWidth:i}=tr(lg(r.dimensionValues)),{measureText:a}=tr(lg(r.dimensionValues,r.measureLabels)),l=w(((r,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d}=e,p=(e=0)=>c.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=a(r)+ng;return Math.max(n,dg(t,o,Math.max(i,e)))}),0),f=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===ag)return t;const i=(e=>{const{label:t,isLocked:n}=e,r=n?tg:0;return ng+o(t)+eg+r})(r);return Math.max(i,t)}),0);let m=0;const h=n.data.at(-1).map(((e,n)=>{let o=ng;if(r&&void 0!==l&&l===e.colIdx)o=r;else{let r;e.columnWidthLocation===yt.Pivot?r=u:e.columnWidthLocation===yt.Dimension&&({columnWidth:r}=e);let a=0;e.isLeftDimension?a=e.id===ag?p():Math.max(f(n),((e,t)=>{const{qApprMaxGlyphCount:n,isLeftDimension:r}=e,o=!d&&r&&t<s-1?Qh:0;return ng+i(n)+o})(e,n)):e.isLeftDimension||(a=f(n),e.columnWidthLocation===yt.Measures&&(a=p(a))),o=dg(t,r,a)}return m+=o,o}));return{leftGridWidth:Math.min(t*rg,m),leftGridColumnWidths:h,leftGridFullWidth:m}}),[i,n.data,e,o,a,t]),[s,u]=b(l);un((()=>{u(l())}),[l]);const c=w(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function fg({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=Zh(),{estimateWidth:c,measureText:d}=tr(lg(u.measureValues)),{estimateWidth:p}=tr(lg(u.dimensionValues)),f=t-o-Tt,m=n.at(-1),h=m===ig,g=a.length-i>n.length?Qh:0,v=y((()=>{const e=h?s:[m],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(ht.PixelsMax,Math.max(ht.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case gt.Pixels:i(t,ug(o));break;case gt.Percentage:i(t,cg(a,f));break;case gt.FitToContent:i(t,((e,t)=>ng+(h?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u));break;case gt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(ht.AutoMin,i)}))}return n}),[h,s,m,l.x,f,c,d,p,g]),b=y((()=>{if(h){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[h,v,s]),x=parseFloat((r/e.size.x).toFixed(12)),S=w((t=>h&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-x:b-x),[h,v,e,b,x]),E=l.x*b;return{rightGridFullWidth:E,rightGridWidth:Math.min(E,f),getRightGridColumnWidth:S}}const mg=e=>{var t,n,r,o;return e===ig?ag:null!==(t=null!==(n=null!==(r=e.qLibraryId)&&void 0!==r?r:e.cId)&&void 0!==n?n:null===(o=e.qGroupFallbackTitles)||void 0===o?void 0:o.join(""))&&void 0!==t?t:e.qFallbackTitle},hg=(e,t,n)=>{var r;const o=mg(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===ig?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:yt.Measures}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isActivelySorted:!1,isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:yt.Dimension}},gg=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===ig?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=hg(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=hg(e,t,o)})),l},vg=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;if(r=0===t.length||t.includes(ig)?gg({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(gg({layoutService:e,lastRow:t,lastCol:n})),r.length)for(const[t,a]of r[r.length-1].entries()){var o,i;a&&(a.canBeResized=!0,a.isActivelySorted=t===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),a.colIdx=a.colIdx||t,a.dimensionInfoIndex===ig?a.columnWidthLocation=yt.Measures:a.isLeftDimension?a.columnWidthLocation=yt.Dimension:n.at(-1)===ig?a.columnWidthLocation=yt.Measures:e.hasPseudoDimOnLeft&&(a.columnWidthLocation=yt.Pivot))}return r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}},bg=Math.PI/180,yg=180/Math.PI,xg=.96422,Sg=1,Eg=.82521,wg=4/29,Cg=6/29,Dg=3*Cg*Cg,Rg=Cg*Cg*Cg;function Lg(e){if(e instanceof Ig)return new Ig(e.l,e.a,e.b,e.opacity);if(e instanceof Og)return Tg(e);e instanceof Fn||(e=_n(e));var t,n,r=Pg(e.r),o=Pg(e.g),i=Pg(e.b),a=Mg((.2225045*r+.7168786*o+.0606169*i)/Sg);return r===o&&o===i?t=n=a:(t=Mg((.4360747*r+.3850649*o+.1430804*i)/xg),n=Mg((.0139322*r+.0971045*o+.7141733*i)/Eg)),new Ig(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Ig(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Mg(e){return e>Rg?Math.pow(e,1/3):e/Dg+wg}function Ag(e){return e>Cg?e*e*e:Dg*(e-wg)}function qg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Pg(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kg(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Og)return new Og(e.h,e.c,e.l,e.opacity);if(e instanceof Ig||(e=Lg(e)),0===e.a&&0===e.b)return new Og(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*yg;return new Og(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Og(e,t,n,null==r?1:r)}function Og(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Tg(e){if(isNaN(e.h))return new Ig(e.l,0,0,e.opacity);var t=e.h*bg;return new Ig(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}hn(Ig,(function(e,t,n,r){return 1===arguments.length?Lg(e):new Ig(e,t,n,null==r?1:r)}),gn(vn,{brighter(e){return new Ig(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ig(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 Fn(qg(3.1338561*(t=xg*Ag(t))-1.6168667*(e=Sg*Ag(e))-.4906146*(n=Eg*Ag(n))),qg(-.9787684*t+1.9161415*e+.033454*n),qg(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),hn(Og,kg,gn(vn,{brighter(e){return new Og(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Og(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Tg(this).rgb()}}));const _g=(e,t)=>{const n=kg(e),r=n.l<70,o=100===n.l;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):o?Nn(`rgba(0, 0, 0, ${t.opacity})`).toString():r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},Ng=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Fg=e=>{const t=(e=>{const t=Ng.exec(e);if(t){const[,e,n,r,o]=t;return Nn(+n,+r,+o,+e/255)}return Nn(e)})(e);return Number.isNaN(t.r)?null:t.toString()},Hg=(e,t)=>{var n,r;const o=t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n||null===(n=n[e.cellForegroundColor])||void 0===n?void 0:n.qText,a=null==o||null===(r=o.qValues)||void 0===r||null===(r=r[e.cellBackgroundColor])||void 0===r?void 0:r.qText,l=a?Fg(a):null,s=i?Fg(i):null,u=((e,t)=>e||!t?null:Xn(t)?ph.WHITE:ph.TEXT)(s,l);return{color:null!=u?u:s,background:l}};let $g;const zg=new Uint8Array(16);function jg(){if(!$g&&($g="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$g))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $g(zg)}const Wg=[];for(let e=0;e<256;++e)Wg.push((e+256).toString(16).slice(1));var Vg={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Bg(e,t,n){if(Vg.randomUUID&&!t&&!e)return Vg.randomUUID();const r=(e=e||{}).random||(e.rng||jg)();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 Wg[e[t+0]]+Wg[e[t+1]]+Wg[e[t+2]]+Wg[e[t+3]]+"-"+Wg[e[t+4]]+Wg[e[t+5]]+"-"+Wg[e[t+6]]+Wg[e[t+7]]+"-"+Wg[e[t+8]]+Wg[e[t+9]]+"-"+Wg[e[t+10]]+Wg[e[t+11]]+Wg[e[t+12]]+Wg[e[t+13]]+Wg[e[t+14]]+Wg[e[t+15]]}(r)}const Gg=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:Bg()},Ug=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Ug(e,t)),e),Yg=(e,t,n,r,o,i)=>{if(o)return Ug(0,e);const a=i?Pt-n:kt-r;let l=e.qUp+e.qDown;if(i&&0===n){const n=(t+e.qUp)%Pt;l=e.qDown+n}return Math.min(a,Ug(l,e))},Kg=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0})=>{const c={id:Gg(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Yg(e,o,i,r,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===wt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===wt.NX_DIM_CELL_EMPTY,isNull:e.qType===wt.NX_DIM_CELL_NULL,isPseudoDimension:e.qType===wt.NX_DIM_CELL_PSEUDO,expressionColor:Hg(s,e),selectionCellType:u?bt.NX_CELL_LEFT:bt.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u};return t&&(t.children[c.mainAxisPageCoord-t.mainAxisPageCoord]=c),c},Xg=(e,t,n,r,o,i,a)=>{if(!t.length)return e;let l=0;return function t(s,u,c,d=0){e[d]||(e[d]={}),c.forEach(((c,p)=>{var f;l+=0===p?0:1;const m=n.qTop-r.page*r.rowsPerPage,h=Math.max(0,m+l-c.qUp),g=n.qTop+l-c.qUp,v=null!==(f=e[d][h])&&void 0!==f?f:Kg({node:c,parent:u,root:s,x:d,y:g,pageY:h,layoutService:o,dimensionInfo:i[d],attrExprInfoIndex:a[d],isLeftColumn:!0});e[d][h]=v,c.qSubNodes.length&&t(s||v,v,c.qSubNodes,d+1)}))}(null,null,t,0),e},Zg=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},Jg=e=>{const t=e[0],n=t?Object.values(t):[],r=null==t?void 0:t[0],o=n.at(-1);return null!=r&&r.isTotal?r.isLeafNode?r.mainAxisPageCoord:r.mainAxisPageCoord+r.leafCount-1:null!=o&&o.isTotal?o.mainAxisPageCoord-1:-1},Qg=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i})=>{const{qLeft:a,qArea:l}=t;if(!a.length)return e;const s=Xg(e.grid,a,l,n,r,o,i);Zg(s,n.rowsOnCurrentPage);const u=Jg(s);return{...e,grid:s,columnCount:s.length,totalDividerIndex:u}},ev=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r,attrExprInfoIndexes:o,hasPseudoDimOnLeft:i})=>{const a=o.length,l=[...t];return n.forEach(((t,n)=>{t.forEach(((t,s)=>{var u;const c=e.qTop-r.page*r.rowsPerPage+n,d=e.qLeft+s;Array.isArray(l[c])||(l[c]=[]);const p=t.qType===wt.NX_DIM_CELL_NULL,f=i?c%a:d%a;l[c][d]=null!==(u=l[c][d])&&void 0!==u?u:{id:Gg(),ref:t,isNull:p,expressionColor:Hg(o[f],t)}}))})),l},tv=({prevData:e,dataPage:t,pageInfo:n,attrExprInfoIndexes:r,layoutService:o})=>{const{qData:i,qArea:a}=t,{hasPseudoDimOnLeft:l}=o;return i.length?ev({qArea:a,prevData:e,pivotValuePoints:i,pageInfo:n,attrExprInfoIndexes:r,hasPseudoDimOnLeft:l}):e},nv=(e,t,n,r,o,i,a)=>{if(!t.length)return e;let l=0;!function t(a,s,u,c=0){e[c]||(e[c]={}),u.forEach(((u,d)=>{var p;l+=0===d?0:1;const f=n.qLeft+l-u.qUp,m=null!==(p=e[c][f])&&void 0!==p?p:Kg({node:u,parent:s,root:a,x:f,y:c,pageY:c,layoutService:r,dimensionInfo:o[c],attrExprInfoIndex:i[c],isLeftColumn:!1});e[c][f]=m,u.qSubNodes.length&&t(a||m,m,u.qSubNodes,c+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},rv=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i})=>{const{qTop:a,qArea:l}=t;if(!a.length)return e;const s=nv(e.grid,a,l,n,r,o,i);Zg(s,n.size.x);const u=Jg(s);return{...e,grid:s,rowCount:s.length,totalDividerIndex:u}},ov=e=>{if(e===ig)return{cellForegroundColor:-1,cellBackgroundColor:-1};const t=e.qAttrExprInfo;return{cellForegroundColor:t.findIndex((({id:e})=>e===xt.CellForegroundColor.toString())),cellBackgroundColor:t.findIndex((({id:e})=>e===xt.CellBackgroundColor.toString()))}},iv=(e,t,n,r,o)=>{const[i,a]=b(null),l=((e,t,n)=>y((()=>({left:e.map(ov),top:t.map(ov),measures:n.map(ov)})),[n,e,t]))(r,o,t.visibleMeasureInfo),s=y((()=>vg(t,o,r)),[t,o,r]),u=w((()=>e.slice(1).reduce(((e,r)=>tv({prevData:e,dataPage:r,pageInfo:n,attrExprInfoIndexes:l.measures,layoutService:t})),((e,t,n,r)=>{const{qData:o,qArea:i}=e,{hasPseudoDimOnLeft:a}=r;return ev({qArea:i,prevData:[],pivotValuePoints:o,pageInfo:t,attrExprInfoIndexes:n,hasPseudoDimOnLeft:a})})(e[0],n,l.measures,t))),[e,n,l,t]),c=w((()=>e.slice(1).reduce(((e,n)=>rv({prevData:e,nextDataPage:n,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y})),((e,t,n,r,o)=>{const{qArea:i,qTop:a}=e,l=nv([],a,i,t,n,r,o);Zg(l,t.size.x);const s=Jg(l);return{grid:l,rowCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,o,l.top,s.size.y))),[e,t,o,l.top,s.size.y]),d=w((()=>e.slice(1).reduce(((e,o)=>Qg({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:l.left})),((e,t,n,r,o)=>{const{qArea:i,qLeft:a}=e,l=Xg([],a,i,n,t,r,o);Zg(l,n.rowsOnCurrentPage);const s=Jg(l);return{grid:l,columnCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,n,r,l.left))),[e,t,n,r,l]),[p,f]=b((()=>u())),[m,h]=b((()=>c())),[g,v]=b((()=>d()));un((()=>{f(u())}),[u]),un((()=>{h(c())}),[c]),un((()=>{v(d())}),[d]),un((()=>{i&&i.forEach((e=>{f((r=>tv({prevData:r,dataPage:e,pageInfo:n,attrExprInfoIndexes:l.measures,layoutService:t}))),h((n=>rv({prevData:n,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y}))),v((o=>Qg({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:l.left})))}))}),[i]);const x=w((e=>{a(e)}),[]);return{headersData:s,measureData:p,topDimensionData:m,leftDimensionData:g,nextPageHandler:x}},av=Math.sqrt(1e4),lv=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/av),r=Math.ceil(e.qHeight/av);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*av,qTop:e.qTop+n*av,qWidth:Math.min(av,e.qWidth-o*av),qHeight:Math.min(av,e.qHeight-n*av)});return t};function sv({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=L(e);return t.current=e,t})(n.page),i=e,a=w((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,og,e,t,!1))}),[i]),l=w((async(e,t)=>{await(null==i?void 0:i.collapseTop(og,e,t,!1))}),[i]),s=w((async(e,t)=>{await(null==i?void 0:i.expandLeft(og,e,t,!1))}),[i]),u=w((async(e,t)=>{await(null==i?void 0:i.expandTop(og,e,t,!1))}),[i]),c=w((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(og,e.reduce(((e,t)=>[...e,...lv(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=w(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case yt.Dimension:c=[{qPath:`${og}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case yt.Measures:if(o)c=l.map(((e,t)=>({qPath:`${og}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${og}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case yt.Pivot:c=[{qPath:`${og}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]);return y((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,fetchPages:c})),[a,l,s,u,d,c])}const uv=(e,t)=>e>t?Et.Forward:e<t?Et.Backward:Et.None,cv=(e,t,n)=>(r,o)=>{if(r===wt.NX_DIM_CELL_PSEUDO)return ig;const i=t[n+o];return e[i]},dv=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},pv=({width:e,height:t,children:n,isLeftGrid:r})=>v.createElement("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+Tt}},n),fv=e=>`scrollable-container--${e}`,mv=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=Uh();return v.createElement("div",{ref:t,"data-key":fv(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i},o)};var hv=v.forwardRef(mv);const gv=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>v.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r}},n);var vv=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function bv(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||vv(r)&&vv(o)))return!1;var r,o;return!0}function yv(e,t){var n;void 0===t&&(t=bv);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}}var xv="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Sv(e){cancelAnimationFrame(e.id)}function Ev(e,t){var n=xv();var r={id:requestAnimationFrame((function o(){xv()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var wv=-1;function Cv(e){if(void 0===e&&(e=!1),-1===wv||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),wv=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return wv}var Dv=null;function Rv(e){if(void 0===e&&(e=!1),null===Dv||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?Dv="positive-descending":(t.scrollLeft=1,Dv=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Dv}return Dv}var Lv=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Iv(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,Nu(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Nu(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=yv((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=yv((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=yv((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(Rv()){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&&Sv(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Ev(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Ru(t,e),t.getDerivedStateFromProps=function(e,t){return Mv(e,t),g(e),null};var v=t.prototype;return v.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)},v.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,v=Cv();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 b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v: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})},v.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()},v.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(Rv()){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()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Sv(this._resetIsScrollingTimeoutId)},v.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?Lv:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],C=this._getVerticalRangeToRender(),D=C[0],R=C[1],L=[];if(r>0&&g)for(var I=D;I<=R;I++)for(var M=E;M<=w;M++)L.push(q(t,{columnIndex:M,data:d,isScrolling:b?x:void 0,key:f({columnIndex:M,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,M)}));var A=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return q(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ar({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},q(u||c||"div",{children:L,ref:s,style:{height:A,pointerEvents:x?"none":void 0,width:P}}))},v._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,v=h.scrollLeft,b=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._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]},v._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}(P),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Mv=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Av=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},qv=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},Pv=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]},kv=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?Ov(e,t,n,i,0,r):Tv(e,t,n,Math.max(0,i),r)},Ov=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=Pv(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},Tv=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&Pv(e,t,r,n).offset<o;)r+=a,a*=2;return Ov(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},_v=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=Pv(e,t,n,i),u="column"===e?qv(t,i):Av(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}},Nv=Iv({getColumnOffset:function(e,t,n){return Pv("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return kv("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=Pv("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=Pv("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:Av,getEstimatedTotalWidth:qv,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return _v("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return _v("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return Pv("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return kv("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=Pv("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=Pv("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}}),Fv=function(e,t){return e};function Hv(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,Nu(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Nu(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=yv((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=yv((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=yv((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(Rv()){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&&Sv(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Ev(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Ru(t,e),t.getDerivedStateFromProps=function(e,t){return $v(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?Cv():0:s.scrollHeight>s.clientHeight?Cv():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(Rv()){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&&Sv(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?Fv:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],D=[];if(u>0)for(var R=w;R<=C;R++)D.push(q(t,{data:c,key:p(R,c),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return q(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:ar({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},q(l||s||"div",{children:D,ref:a,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"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}(P),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var $v=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},zv=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]},jv=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=zv(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},Wv=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&zv(e,n,t).offset<r;)n+=i,i*=2;return jv(e,t,Math.min(n,o-1),Math.floor(n/2),r)},Vv=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},Bv=Hv({getItemOffset:function(e,t,n){return zv(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:Vv,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=zv(e,t,o),p=Vv(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?jv(e,t,o,0,n):Wv(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=zv(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=zv(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 Gv(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 Uv=["style"],Yv=["style"];function Kv(e,t){var n=e.style,r=Cu(e,Uv),o=t.style,i=Cu(t,Yv);return!Gv(n,o)&&!Gv(r,i)}const Xv=(e,t)=>void 0!==e&&(e.isLeafNode?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),Zv=10,Jv=(e,t)=>e.current===Et.Backward?t:0,Qv=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},eb=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,tb=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(Qv(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&eb(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},nb=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Et.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return tb({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},rb=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=Jv(n,Zv),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+Zv,l-u),pageTop:o,qHeight:a}})(r,o,n),u=tb({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...nb({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},ob=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},ib=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,ab=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(ob(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&ib(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},lb=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=Jv(n,Zv),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+Zv,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=ab({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Et.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=ab({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},sb=async(e,t,n,r,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==Et.None&&(d=lb({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Et.None&&(p=rb({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Et.None&&a.current===Et.None&&(d=ab({measureData:n,pageInfo:r,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},ub=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(sb,100),cb=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}(sb,75),db=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=Zh();return v.createElement("div",{style:{...e,...$t,...Vt(n,r,l,o),...Gt({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},pb={display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},fb={alignItems:"center",display:"flex",flexDirection:"row",height:"100%",backgroundClip:"padding-box"},mb={justifyContent:"center"},hb=(e,t,n,r)=>t?{...fb,...e.nullValues}:n?{...pb,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...pb,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},gb=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...zt,...!n&&jt(e.grid.lineClamp),...t&&{color:t},alignSelf:"flex-start",fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?qt:s,fontStyle:u,textDecoration:c}},vb=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=Zh(),{background:a}=i.measureValues,{grid:l,layoutService:s,showLastBorder:u,shouldShowTotalCellBottomDivider:c,shouldShowTotalCellRightDivider:d,isTotalValue:p,pageInfo:f}=r,m=null===(o=l[t])||void 0===o?void 0:o[e],h=t===f.rowsOnCurrentPage-1,g=e===s.size.x-1;if(!m)return v.createElement(db,{style:{...n,background:a},isLastRow:h,isLastColumn:g,showLastBorder:u,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const b=!m.isNull&&p(e,t),y=m.isNull?s.getNullValueText():m.ref.qText,x=!m.isNull||!Number.isNaN(+y),S={...hb(i,m.isNull,b,m.expressionColor.background),...Vt(h,g,i.grid.border,u),...Gt({bottomDivider:c(t),rightDivider:d(e),borderColor:i.grid.divider}),...$t,display:"flex",justifyContent:x?"flex-end":"center"};return v.createElement("div",{title:y,style:{...n,...mb},"data-testid":"measure-cell","data-row-index":t,"data-col-index":e},v.createElement("div",{style:S},v.createElement("span",{style:gb(i,m.expressionColor.color,x,b,m.isNull)},y)))};var bb=v.memo(vb,Kv);const yb=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},xb=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},Sb={...Ht,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},Eb=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,showLastBorder:c,getRightGridColumnWidth:d,pageInfo:p,verticalScrollDirection:f,horizontalScrollDirection:m})=>{const{grid:{divider:h},contentCellHeight:g}=Zh(),b={...Sb,borderColor:h,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(e=>w((t=>{var n;const r=null===(n=e.grid.at(-1))||void 0===n?void 0:n[t];return Xv(r,e.totalDividerIndex)}),[e]))(s),x=(e=>w((t=>{var n;const r=null===(n=e.grid.at(-1))||void 0===n?void 0:n[t];return Xv(r,e.totalDividerIndex)}),[e]))(u),S=((e,t)=>w(((n,r)=>{var o,i;return!!(null!==(o=t.grid.at(-1))&&void 0!==o&&null!==(o=o[n])&&void 0!==o&&o.isTotal||null!==(i=e.grid.at(-1))&&void 0!==i&&null!==(i=i[r])&&void 0!==i&&i.isTotal)}),[t,e]))(s,u),E=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>w((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===Et.None?0:Zv),m=e.gridHeight+a+(l.current===Et.None?0:Zv);let h=ub;m*f>1500&&(h=cb),await h(t,r,n,o,e,l,s)}),[e,r,t,n,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:p,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:f,horizontalScrollDirection:m});return un((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),A((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,g]),0===a.size.x?null:v.createElement(Nv,{ref:t,style:b,columnCount:a.size.x,columnWidth:d,height:n,rowCount:p.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:c,isTotalValue:S,shouldShowTotalCellBottomDivider:y,shouldShowTotalCellRightDivider:x,pageInfo:p},onItemsRendered:E,estimatedRowHeight:r(),estimatedColumnWidth:d(),itemKey:xb},bb)};var wb=M(Eb);function Cb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Db=x(((e,t)=>v.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){Cb(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("defs",null,v.createElement("path",{id:"lock_svg__lock-a",d:"M13 7H8h5V4.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-1H3h10Z"})),v.createElement("use",{xlinkHref:"#lock_svg__lock-a",fillRule:"evenodd"})))),Rb=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(ft)},Lb=e=>{const[t,n]=b(!1);return un((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}};function Ib(e,t){const n=e.isActive(),[r,o]=b(new Map),[i,a]=b(null);E((()=>{const n=()=>{a(null),o(new Map)},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const l=w((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===bt.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=w((t=>async n=>{if(Rb(n))return;if(e.isActive()||await e.begin([og]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===bt.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[og,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=w((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return y((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const Mb=I({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),Ab=()=>S(Mb),qb=({children:e,selections:t,updatePageInfo:n})=>{const r=Ib(t,n);return v.createElement(Mb.Provider,{value:r},e)};function Pb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function kb(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ob(){}var Tb=.7,_b=1/Tb,Nb="\\s*([+-]?\\d+)\\s*",Fb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$b=/^#([0-9a-f]{3,8})$/,zb=new RegExp(`^rgb\\(${Nb},${Nb},${Nb}\\)$`),jb=new RegExp(`^rgb\\(${Hb},${Hb},${Hb}\\)$`),Wb=new RegExp(`^rgba\\(${Nb},${Nb},${Nb},${Fb}\\)$`),Vb=new RegExp(`^rgba\\(${Hb},${Hb},${Hb},${Fb}\\)$`),Bb=new RegExp(`^hsl\\(${Fb},${Hb},${Hb}\\)$`),Gb=new RegExp(`^hsla\\(${Fb},${Hb},${Hb},${Fb}\\)$`),Ub={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 Yb(){return this.rgb().formatHex()}function Kb(){return this.rgb().formatRgb()}function Xb(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$b.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Zb(t):3===n?new Qb(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Jb(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Jb(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=zb.exec(e))?new Qb(t[1],t[2],t[3],1):(t=jb.exec(e))?new Qb(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Wb.exec(e))?Jb(t[1],t[2],t[3],t[4]):(t=Vb.exec(e))?Jb(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Bb.exec(e))?iy(t[1],t[2]/100,t[3]/100,1):(t=Gb.exec(e))?iy(t[1],t[2]/100,t[3]/100,t[4]):Ub.hasOwnProperty(e)?Zb(Ub[e]):"transparent"===e?new Qb(NaN,NaN,NaN,0):null}function Zb(e){return new Qb(e>>16&255,e>>8&255,255&e,1)}function Jb(e,t,n,r){return r<=0&&(e=t=n=NaN),new Qb(e,t,n,r)}function Qb(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ey(){return`#${oy(this.r)}${oy(this.g)}${oy(this.b)}`}function ty(){const e=ny(this.opacity);return`${1===e?"rgb(":"rgba("}${ry(this.r)}, ${ry(this.g)}, ${ry(this.b)}${1===e?")":`, ${e})`}`}function ny(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ry(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oy(e){return((e=ry(e))<16?"0":"")+e.toString(16)}function iy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ly(e,t,n,r)}function ay(e){if(e instanceof ly)return new ly(e.h,e.s,e.l,e.opacity);if(e instanceof Ob||(e=Xb(e)),!e)return new ly;if(e instanceof ly)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 ly(a,l,s,e.opacity)}function ly(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function sy(e){return(e=(e||0)%360)<0?e+360:e}function uy(e){return Math.max(0,Math.min(1,e||0))}function cy(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Pb(Ob,Xb,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Yb,formatHex:Yb,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ay(this).formatHsl()},formatRgb:Kb,toString:Kb}),Pb(Qb,(function(e,t,n,r){return 1===arguments.length?((o=e)instanceof Ob||(o=Xb(o)),o?new Qb((o=o.rgb()).r,o.g,o.b,o.opacity):new Qb):new Qb(e,t,n,null==r?1:r);var o}),kb(Ob,{brighter(e){return e=null==e?_b:Math.pow(_b,e),new Qb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Tb:Math.pow(Tb,e),new Qb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qb(ry(this.r),ry(this.g),ry(this.b),ny(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:ey,formatHex:ey,formatHex8:function(){return`#${oy(this.r)}${oy(this.g)}${oy(this.b)}${oy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ty,toString:ty})),Pb(ly,(function(e,t,n,r){return 1===arguments.length?ay(e):new ly(e,t,n,null==r?1:r)}),kb(Ob,{brighter(e){return e=null==e?_b:Math.pow(_b,e),new ly(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Tb:Math.pow(Tb,e),new ly(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 Qb(cy(e>=240?e-240:e+120,o,r),cy(e,o,r),cy(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ly(sy(this.h),uy(this.s),uy(this.l),ny(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=ny(this.opacity);return`${1===e?"hsl(":"hsla("}${sy(this.h)}, ${100*uy(this.s)}%, ${100*uy(this.l)}%${1===e?")":`, ${e})`}`}}));const dy=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=Uh(),{isActive:l}=Ab(),s=Zh(),[,u]=b({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=function(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===_t.Transparent?ph.WHITE:l,u=null===(o=Xb(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=Xb(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}(s,e);return v.createElement(Bh,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==n?void 0:n.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},py=Ws(Ld,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),fy=Ws("div")({position:"absolute",left:0,bottom:0}),my=Ws("div")((()=>({...Ft,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),hy=Ws("div")((()=>({...Ft}))),gy=Ws("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o})=>({...zt,alignSelf:"center",flexGrow:1,fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),vy={[wm.SORTING]:!0,[wm.SELECTIONS]:!0,[wm.SEARCHING]:!0},by=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d})=>{const p=L(null),f=Zh(),{app:m,model:h,interactions:g,embed:y}=Uh(),{fontSize:x,fontFamily:S,fontStyle:E,fontWeight:w,textDecoration:C,color:D,background:R,hoverBackground:I,activeBackground:M}=f.header,A=L(null),{shouldShowLockIcon:q,shouldShowMenuIcon:P}=u,{open:k,setOpen:O,handleOpenMenu:T,setIsAdjustingWidth:_}=(({interactions:e,dataModel:t})=>{const[n,r]=b(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=Lb([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!Rb(t)&&!o&&r(!0),setIsAdjustingWidth:i}})({interactions:g,dataModel:e}),N={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)},changeActivelySortedHeader:s},F={embed:y,listboxRef:p},H={model:h,app:m};return v.createElement(py,{title:t.label,interactions:g,background:k?M:R,hoverBackground:I,shouldShowMenuIcon:P,isDimension:t.isDim,style:{...n,...$t,...Bt(t,i,r,o,f.grid.border),color:D},"data-testid":"title-cell",onClick:T},v.createElement(my,null,q&&v.createElement(hy,null,v.createElement(Db,{height:12})),v.createElement(gy,{fontFamily:S,fontSize:x,fontStyle:E,fontWeight:w,textDecoration:C},t.label)),t.isDim&&v.createElement(v.Fragment,null,v.createElement(Dm,{headerData:t,translator:a,anchorRef:A,open:k,setOpen:O,interactions:g,menuAvailabilityFlags:vy,sortRelatedArgs:N,searchRelatedArgs:F,selectionRelatedArgs:H,shouldShowMenuIcon:P}),v.createElement(fy,{ref:p}),v.createElement(fy,{ref:A})),v.createElement(dy,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:_}))},yy=({rowSpan:e,columnSpan:t})=>{const n=Zh();return e>0&&t>0?v.createElement("div",{style:{...Ht,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null},xy={display:"grid",width:"fit-content"},Sy=({dataModel:e,columnWidths:t,rowHight:n,headersData:r,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u})=>v.createElement("div",{style:{...xy,gridTemplateColumns:t.map((e=>`${e}px`)).join(" "),gridTemplateRows:r.data.map((()=>`${n}px`)).join(" "),height:s}},r.size.y>1&&v.createElement(yy,{columnSpan:r.size.x-1,rowSpan:r.size.y-1}),r.data.map(((s,c)=>s.reduce(((s,d,p)=>{if(d){const f=l(p,d.isLocked,d.label);s.push(v.createElement(by,{dataModel:e,key:d.id,style:{width:t[p],height:n,gridColumn:p+1,gridRow:c+1,zIndex:r.size.x-p},isLastRow:c===r.size.y-1,isFirstColumn:0===p,isLastColumn:p===r.size.x-1,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,cell:d,iconsVisibilityStatus:f,columnWidth:t[p],overrideLeftGridWidth:u}))}return s}),[]))));var Ey=M(Sy);const wy=(e,t,n,r,o)=>{A((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},Cy=(e,t)=>{un((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])};var Dy;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(Dy||(Dy={}));const Ry={brighter:.5,darker:.3,opacity:.03},Ly=(e,{cell:t,styleService:n})=>{if(e===Dy.Background||e===Dy.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},Iy=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=Ly(Dy.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?Ly(Dy.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${_g(i=o,Ry)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},My=({cell:e,styleService:t,isCellSelected:n})=>n?"white":Ly(Dy.Color,{cell:e,styleService:t}),Ay=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=Ly(Dy.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?qt:o},qy=({cell:e,styleService:t})=>Ly(Dy.FontStyle,{cell:e,styleService:t}),Py=({cell:e,styleService:t})=>Ly(Dy.TextDecoration,{cell:e,styleService:t}),ky=e=>e?"pointer":"default",Oy=()=>{},Ty=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{const d=Zh(),{interactions:p}=Uh(),{select:f,isLocked:m}=Ab(),{layoutService:h,showLastBorder:g}=o,b=m(r)||r.isLockedByDimension,y=!(b||!p.active||!p.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),x=y?f(r):void 0;return v.createElement("div",{title:p.passive?t:void 0,style:{...n,...Vt(a,l,d.grid.border,g),...Gt({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:d.grid.divider}),...$t,padding:"0px 4px",cursor:ky(y),background:Iy({styleService:d,isCellSelected:u,cell:r,isCellLocked:b}),zIndex:s?void 0:h.size.x-r.x,justifyContent:s?void 0:"center",display:"flex"},"aria-hidden":"true",onClick:x,onKeyUp:Oy,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType},e)};function _y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ny=x(((e,t)=>v.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){_y(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),v.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7Zm0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8Zm4-7.5H4v-1h8v1Z"}))));function Fy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hy=x(((e,t)=>v.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){Fy(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),v.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7Zm0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8Zm4-7.5H4v-1h8v1ZM8.5 4v8h-1V4h1Z"})))),$y=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},zy=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=Zh(),{interactions:i}=Uh(),{isActive:a}=Ab();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=My({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?Hy:Ny;let p;return p=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,v.createElement(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:n?c-6.5-4:void 0},onClick:l?void 0:$y({cell:e,expandOrCollapse:p})})},jy=({children:e,isLeftColumn:t})=>{const n=t?"flex-start":"center";return v.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:n,width:"fit-content",maxWidth:"100%",position:"sticky",left:4,top:0,right:t?void 0:4,alignSelf:n}},e)},Wy=e=>e.contentRowHeight/2-e.contentTextHeight/2,Vy=({children:e,cell:t,styleService:n,isCellSelected:r,isLeftColumn:o})=>v.createElement("span",{style:{...zt,...jt(o?Math.max(n.grid.lineClamp,t.leafCount*n.grid.lineClamp):1),color:My({cell:t,styleService:n,isCellSelected:r}),fontWeight:Ay({cell:t,styleService:n}),fontStyle:qy({cell:t,styleService:n}),textDecoration:Py({cell:t,styleService:n}),fontFamily:n.dimensionValues.fontFamily,fontSize:n.dimensionValues.fontSize,marginTop:o?Wy(n):void 0,padding:"0px 4px"}},e),By=({index:e,style:t,data:n})=>{const r=Zh(),{isSelected:o}=Ab(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=Lb([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p}=n,f=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),m=s?e===c-1:d,h=s?d:e===c-1,g=Xv(f,p);if(void 0===f){const{background:n}=r.dimensionValues;return v.createElement(db,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:h,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:g})}const b=o(f);return v.createElement(Ty,{text:f.ref.qText,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:i},v.createElement(jy,{isLeftColumn:s},v.createElement(zy,{isLeftColumn:s,isCellSelected:b,cell:f,dataModel:l}),v.createElement(Vy,{isLeftColumn:s,isCellSelected:b,cell:f,styleService:r},f.ref.qText)),v.createElement(dy,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?yt.Measures:yt.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:h,setIsAdjustingWidth:a}))};var Gy=v.memo(By,Kv);const Uy=(e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n},Yy=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},Ky=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},Xy=(e,t)=>n=>{e.current&&(e.current[t]=n)},Zy={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Ht},Jy={overflow:"hidden",willChange:"auto",flexShrink:0},Qy=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=Zh();Cy(t,a),wy(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return v.createElement("div",{style:{...Zy,borderColor:p}},a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=mg(s[p]),{itemCount:g,estimatedItemSize:b,listValues:y}=Ky(n,f,u.rowsOnCurrentPage,m);return v.createElement(Bv,{key:h,ref:Xy(t,p),style:{...Jy,flexGrow:m?1:0},height:o,width:r[p],itemCount:g,itemSize:Uy(n,y,d,m,c.qcy),layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:m&&!i.layout.snapshotData,itemCount:g,showLastBorder:l,listValues:y,totalDividerIndex:a.totalDividerIndex},itemKey:yb,estimatedItemSize:b},Gy)})))};var ex=M(Qy);const tx={overflow:"hidden",willChange:"auto"},nx={...Ht,borderWidth:"0px 0px 0px 1px"},rx=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=Zh(),p={...nx,borderColor:c,height:o};Cy(t,a),wy(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?v.createElement("div",{style:{width:r,height:o,...nx}}):v.createElement("div",{style:p},a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=Ky(o,f,i.size.x,d),g=i.getDimensionInfo(u.data[c][u.size.x-1].dimensionInfoIndex),b=g?mg(g):`empty ${c}`;return v.createElement(Bv,{key:b,ref:Xy(t,c),style:tx,height:n(),width:r,itemCount:p,itemSize:Yy({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d&&!i.layout.snapshotData,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:yb,estimatedItemSize:m},Gy)})))};var ox=M(rx);const ix=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=Zh(),u=((e,t,n)=>y((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return y((()=>{var e,n,a,l;const s=dv(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=dv(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(cv(i,o,0)),visibleTopDimensionInfo:u.map(cv(i,o,r))}}),[i,o,r,t])})(r,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>y((()=>({changeSortOrder:async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o}=t,i=[];("D"===n&&!r||"A"===n&&r)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async n=>{if(!e)throw new Error("No Model provided!");const{colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a}=n,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]))(e,r.layout.qHyperCube),{headersData:m,measureData:h,topDimensionData:g,leftDimensionData:x,nextPageHandler:S}=iv(o,r,i,c,d),C=sv({model:e,nextPageHandler:S,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:D,onVerticalScrollHandler:R,verticalScrollableContainerRef:I,leftGridHorizontalScrollableContainerRef:M,dataGridHorizontalScrollableContainerRef:q,dataGridRef:P,leftGridRef:k,topGridRef:O,verticalScrollbarWidth:T,horizontalScrollbarHeight:_,horizontalScrollbarHeightSetter:N,verticalScrollDirection:F,horizontalScrollDirection:H}=(({layoutService:e,pageInfo:t,tableRect:n,mockedRefs:r})=>{var o,i,a,l,s,u;const{theme:c}=Uh(),d=L(null!==(o=null==r?void 0:r.verticalScrollableContainerRef)&&void 0!==o?o:null),p=L(null!==(i=null==r?void 0:r.leftGridHorizontalScrollableContainerRef)&&void 0!==i?i:null),f=L(null!==(a=null==r?void 0:r.dataGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=L(null!==(l=null==r?void 0:r.topGridRef)&&void 0!==l?l:[]),h=L(null!==(s=null==r?void 0:r.leftGridRef)&&void 0!==s?s:[]),g=L(null!==(u=null==r?void 0:r.dataGridRef)&&void 0!==u?u:null),v=L(0),y=L(0),x=L(Et.None),S=L(Et.None),[E,C]=b(0),[D,R]=b(0),I=c.name(),M=e=>{S.current=uv(e.currentTarget.scrollLeft,v.current),v.current=e.currentTarget.scrollLeft,x.current=uv(e.currentTarget.scrollTop,y.current),y.current=e.currentTarget.scrollTop};A((()=>{e.triggerdByExpandOrCollapse||(p.current&&(p.current.scrollLeft=0),f.current&&(f.current.scrollLeft=0),d.current&&(d.current.scrollTop=0))}),[e]),A((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=f.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=d.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=h.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=m.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),A((()=>{p.current&&(p.current.scrollLeft=0),f.current&&(f.current.scrollLeft=0),d.current&&(d.current.scrollTop=0)}),[t.page]);const q=w((e=>{if(e)return void R(0);let t=0;if(p.current){const e=p.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(f.current){const e=f.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}R(t)}),[R]);return A((()=>{if(d.current){const e=d.current,t=e.offsetWidth-e.clientWidth;C(t)}q()}),[q,e,n.width,n.height,I]),{onHorizontalScrollHandler:e=>{var t,n;e.target instanceof HTMLDivElement&&e.target.dataset.key===`scrollable-container--${St.DATA_GRID}`&&(M(e),null===(t=m.current)||void 0===t||t.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(n=g.current)||void 0===n||n.scrollTo({scrollLeft:e.currentTarget.scrollLeft}))},onVerticalScrollHandler:e=>{var t,n;e.target instanceof HTMLDivElement&&(M(e),null===(t=h.current)||void 0===t||t.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(n=g.current)||void 0===n||n.scrollTo({scrollTop:e.currentTarget.scrollTop}))},verticalScrollableContainerRef:d,leftGridHorizontalScrollableContainerRef:p,dataGridHorizontalScrollableContainerRef:f,dataGridRef:g,leftGridRef:h,topGridRef:m,verticalScrollbarWidth:E,horizontalScrollbarHeight:D,horizontalScrollbarHeightSetter:q,verticalScrollDirection:x,horizontalScrollDirection:S}})({layoutService:r,pageInfo:i,tableRect:u}),{containerHeight:$,headerGridHeight:z,topGridHeight:j,leftGridHeight:W,dataGridHeight:V,allRowsVisible:B}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=Zh(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-Tt,l),dataGridHeight:Math.min(r.height-c-Tt,l),allRowsVisible:c+Tt+l+o<=r.height}}({pageInfo:i,headersData:m,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:_}),{leftGridWidth:G,leftGridColumnWidths:U,rightGridWidth:Y,totalWidth:K,showLastRightBorder:X,getRightGridColumnWidth:Z,getHeaderCellsIconsVisibilityStatus:J,overrideLeftGridWidth:Q}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=Zh(),{measureText:l}=tr(lg(a.header)),s=pg({layoutService:e,tableWidth:t,headersData:n}),u=fg({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+Tt,d=c<t,p=w(((e,t,n="")=>{const r=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(n)+ng;return t&&a+tg<=r&&(i=!0,a+=tg),a+eg<=r&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return E((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:r,tableWidth:u.width,headersData:m,visibleTopDimensionInfo:d,verticalScrollbarWidth:T,horizontalScrollbarHeightSetter:N}),{rootWrapper:ee,leftWrapper:te,rightWrapper:ne}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+Tt,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,v=e.height-h,b=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-h+f}},rightWrapper:{containers:{scrollable:{width:u+Tt-m,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:$,headerGridHeight:z,leftGridHeight:W,topGridHeight:j,dataGridHeight:V,allRowsVisible:B,totalWidth:K,leftGridWidth:G,rightGridWidth:Y,verticalScrollbarWidth:T,horizontalScrollbarHeight:_}),re=w((()=>l),[l]),oe=w((()=>s),[s]);return v.createElement(hv,{ref:I,...ee.scrollable,onScroll:R,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:St.CONTAINER_GRID},v.createElement(pv,{...ee.fullSize},v.createElement(gv,{...ee.sticky,style:{display:"grid",gridTemplateColumns:G?`${te.containers.scrollable.width}px ${ne.containers.scrollable.width}px`:`${ne.containers.scrollable.width}px`}},Boolean(G)&&v.createElement(hv,{ref:M,...te.containers.scrollable,onScroll:D,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:St.LEFT_GRID},v.createElement(pv,{isLeftGrid:!0,...te.containers.fullSize},v.createElement(gv,{isLeftGrid:!0,...te.containers.sticky},v.createElement(Ey,{dataModel:C,columnWidths:U,getHeaderCellsIconsVisibilityStatus:J,rowHight:l,height:te.headerGrid.height,headersData:m,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:Q}),v.createElement(ex,{dataModel:C,leftGridRef:k,...te.leftGrid,columnWidths:U,layoutService:r,leftDimensionData:x,showLastBorder:{right:!1,bottom:B},visibleLeftDimensionInfo:c,pageInfo:i})))),v.createElement(hv,{ref:q,...ne.containers.scrollable,onScroll:D,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:St.DATA_GRID},v.createElement(pv,{...ne.containers.fullSize},v.createElement(gv,{...ne.containers.sticky},v.createElement(ox,{dataModel:C,topGridRef:O,rowHightCallback:re,...ne.topGrid,layoutService:r,topDimensionData:g,showLastBorder:{right:X,bottom:!1},getRightGridColumnWidth:Z,headersData:m}),v.createElement(wb,{dataModel:C,dataGridRef:P,rowHightCallback:oe,...ne.dataGrid,viewService:n,layoutService:r,measureData:h,leftDimensionData:x,topDimensionData:g,showLastBorder:{right:X,bottom:B},getRightGridColumnWidth:Z,pageInfo:i,verticalScrollDirection:F,horizontalScrollDirection:H})))))))},ax=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=Uh(),{layout:u,hasData:c}=t;return v.createElement(v.Fragment,null,c&&v.createElement(ix,{...e}),v.createElement(Kh,{translator:n,layoutService:t}),v.createElement(jh,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u}))};const lx=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c}=t,d=function(e){var t;const n=ch();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),_s({...n,direction:e})}("ltr");e.render(v.createElement(v.StrictMode,null,v.createElement(Bs,{theme:d},v.createElement(Yh,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c},v.createElement(qb,{selections:n,updatePageInfo:t.updatePageInfo},v.createElement(Jh,{styleService:r},v.createElement(ax,{...t})))))))},sx={darker:.15,brighter:.3,opacity:.03},ux={darker:.3,brighter:.5,opacity:.05};var cx,dx,px,fx;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.Border="border",e.Divider="divider"}(cx||(cx={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(dx||(dx={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(px||(px={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.BorderColor="borderColor"}(fx||(fx={}));const mx=e=>e?`${parseInt(e,10)}px`:void 0,hx=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?_t.Transparent:n}},gx=(e,t)=>+(parseInt(e,10)*Ot*t+8).toFixed(2),vx=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?qt:"normal",bx=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",yx=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",xx=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,Sx=(t,n)=>e((()=>((e,t)=>{var n,r,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!s,m=null!==(n=null==s||null===(r=s.content)||void 0===r||null===(r=r.qPivotDataPages)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.qArea)&&void 0!==n?n:{qWidth:0,qHeight:0},h={x:f?m.qWidth:Math.min(e.qHyperCube.qSize.qcx,kt),y:f?m.qHeight:Math.min(e.qHyperCube.qSize.qcy,Pt)},g=c.slice(0,u),v=e=>g.some((t=>t===e)),b=v(ig),y=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:ig,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(b)return 0;const n=e%x.length;return t?n:d.findIndex((e=>e===x[n]))},getDimensionInfo:e=>{var t;return e===ig?ig:null!==(t=p[c[e]])&&void 0!==t?t:void 0},getDimensionInfoIndex:e=>{var t;return null!==(t=y.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:!(null==t||null===(o=t.qHyperCubeDef)||void 0===o||!o.qShowTotalsAbove),hasPseudoDimOnLeft:b,leftDimensionInfoIndexes:g,isLeftDimension:v,isFullyExpanded:!(null==t||null===(i=t.qHyperCubeDef)||void 0===i||!i.qAlwaysFullyExpanded),triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x}})(t,n)),[t,n]),Ex={},wx=t=>{const n=(t=>{const n=e((()=>({current:Ex})),[]);return n.current=n.current===Ex?t:n.current,n})(t);return n.current=t,n},Cx=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=wx((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/ht.PixelsMin)}))(o));return pn((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(kt,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(og,lv(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},Dx=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),Rx=(e,t)=>{const n=Pt;return{rowsPerPage:n,totalPages:Math.ceil(e/n),totalRowCount:e,rowsOnCurrentPage:Dx({rowsPerPage:n,totalRowCount:e,page:t})}};var Lx={SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const Ix=()=>{const t=a(),n=t.language();return e((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(Lx).forEach((t=>{e.add(Lx[t])}))}}(t)),[t]),{translator:t,language:n}},Mx=a=>{const{flags:g}=a,v=l(),b=(t=>{const r=e((()=>fn(t)),[t]);return n((()=>()=>r.unmount()),[r]),r})(v),y=s(),x=u(),S=c(),E=d(),w=p(),C=f(),[D,R]=((e,t)=>pn((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(x,y),L=Sx(y,D),I=m(),M=((t,n,o)=>{const i=r();return e((()=>({...i,background:Zn(i,t,n,o)})),[i.name(),t,n,o])})(v),A=M.name(),{translator:q,language:P}=Ix(),{pageInfo:k,updatePageInfo:O}=(e=>{const{size:t,layout:{qHyperCube:{qSize:r}}}=e,[i,a]=o({page:0,shouldShowPagination:r.qcy>t.y,...Rx(r.qcy,0)});return n((()=>{a((t=>({...t,...Rx(e.layout.qHyperCube.qSize.qcy,t.page),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,a]),n((()=>{const{page:e,totalPages:t}=i;if(e+1>t){const e=t-1,n=Dx({...i,page:e});a({...i,page:e,rowsOnCurrentPage:n})}}),[i]),{pageInfo:i,updatePageInfo:e=>a({...i,...e,rowsOnCurrentPage:Dx({...i,...e})})}})(L),T=(t=>e((()=>({gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0})),[t.page]))(k),_=(({layoutService:e,viewService:t,rect:n,model:r})=>{var o;return i((async e=>{if(!e.snapshotData)return e;if(!r)return e;if(!e.snapshotData.content){if(null!=r&&r.getHyperCubePivotData){const n=await r.getHyperCubePivotData(og,[{qLeft:t.gridColumnStartIndex,qTop:t.gridRowStartIndex,qWidth:t.gridWidth,qHeight:t.gridHeight}]);e.snapshotData.content={qPivotDataPages:n}}return e.snapshotData.object.size.w=n.width,e.snapshotData.object.size.h=n.height,e}return e})),null!==(o=e.layout.snapshotData)&&void 0!==o&&o.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n})({rect:h(),layoutService:L,viewService:T,model:x}),[N,F]=Cx({model:x,layoutService:L,viewService:T,pageInfo:k,rect:_}),H=e((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,w,C,D,R,L,I,M,A,q,P,k,O,T,_,N,F,H,$,z,j,W,V,B,G;const U=null===(n=t.layout.components)||void 0===n?void 0:n.find((e=>"theme"===e.key)),Y=null==U?void 0:U.header,K=null==U?void 0:U.dimensionValues,X=null==U?void 0:U.measureValues,Z=null==U?void 0:U.measureLabels,J=null==U?void 0:U.totalValues,Q=null==U?void 0:U.nullValues,ee=null==U?void 0:U.grid,te=(t,n,r)=>e.getStyle(t,n,r),ne=+(null!==(r=null!==(o=null==ee?void 0:ee[cx.LineClamp])&&void 0!==o?o:te(dx.Grid,px.Grid,fx.LineClamp))&&void 0!==r?r:1),re=null!==(i=null!==(a=hx(e,null==Y?void 0:Y[cx.Background]))&&void 0!==a?a:te(dx.Dimension,px.LabelName,fx.BackgroundColor))&&void 0!==i?i:_t.Transparent,oe={header:{fontSize:null!==(l=null!==(s=mx(null==Y?void 0:Y[cx.FontSize]))&&void 0!==s?s:te(dx.Dimension,px.LabelName,fx.FontSize))&&void 0!==l?l:Mt,fontFamily:null!==(u=null!==(c=null==Y?void 0:Y[cx.FontFamily])&&void 0!==c?c:te(dx.Dimension,px.LabelName,fx.FontFamily))&&void 0!==u?u:At,fontWeight:vx(null==Y?void 0:Y[cx.FontStyle],qt),fontStyle:bx(null==Y?void 0:Y[cx.FontStyle]),textDecoration:yx(null==Y?void 0:Y[cx.FontStyle]),color:null!==(d=null!==(p=hx(e,null==Y?void 0:Y[cx.FontColor]))&&void 0!==p?p:te(dx.Dimension,px.LabelName,fx.Color))&&void 0!==d?d:ph.TEXT,background:re,hoverBackground:_g(re,sx),activeBackground:_g(re,ux)},dimensionValues:{fontSize:null!==(f=null!==(m=mx(null==K?void 0:K[cx.FontSize]))&&void 0!==m?m:te(dx.Dimension,px.LabelValue,fx.FontSize))&&void 0!==f?f:Mt,fontFamily:null!==(h=null!==(g=null==K?void 0:K[cx.FontFamily])&&void 0!==g?g:te(dx.Dimension,px.LabelValue,fx.FontFamily))&&void 0!==h?h:At,fontWeight:vx(null==K?void 0:K[cx.FontStyle],void 0),fontStyle:bx(null==K?void 0:K[cx.FontStyle]),textDecoration:yx(null==K?void 0:K[cx.FontStyle]),color:null!==(v=null!==(b=hx(e,null==K?void 0:K[cx.FontColor]))&&void 0!==b?b:te(dx.Dimension,px.LabelValue,fx.Color))&&void 0!==v?v:ph.TEXT,background:null!==(y=null!==(x=hx(e,null==K?void 0:K[cx.Background]))&&void 0!==x?x:te(dx.Dimension,px.LabelValue,fx.BackgroundColor))&&void 0!==y?y:_t.Transparent},measureValues:{fontSize:null!==(S=null!==(E=mx(null==X?void 0:X[cx.FontSize]))&&void 0!==E?E:te(dx.Measure,px.LabelValue,fx.FontSize))&&void 0!==S?S:Mt,fontFamily:null!==(w=null!==(C=null==X?void 0:X[cx.FontFamily])&&void 0!==C?C:te(dx.Measure,px.LabelValue,fx.FontFamily))&&void 0!==w?w:At,fontWeight:vx(null==X?void 0:X[cx.FontStyle],"normal"),fontStyle:bx(null==X?void 0:X[cx.FontStyle]),textDecoration:yx(null==X?void 0:X[cx.FontStyle]),color:null!==(D=null!==(R=hx(e,null==X?void 0:X[cx.FontColor]))&&void 0!==R?R:te(dx.Measure,px.LabelValue,fx.Color))&&void 0!==D?D:_t.FontSecondary,background:null!==(L=null!==(I=hx(e,null==X?void 0:X[cx.Background]))&&void 0!==I?I:te(dx.Measure,px.LabelValue,fx.BackgroundColor))&&void 0!==L?L:_t.Transparent},measureLabels:{fontWeight:vx(null==Z?void 0:Z[cx.FontStyle],"normal"),fontStyle:bx(null==Z?void 0:Z[cx.FontStyle]),textDecoration:yx(null==Z?void 0:Z[cx.FontStyle]),color:null!==(M=null!==(A=hx(e,null==Z?void 0:Z[cx.FontColor]))&&void 0!==A?A:te(dx.Measure,px.LabelName,fx.Color))&&void 0!==M?M:_t.FontSecondary,background:null!==(q=null!==(P=hx(e,null==Z?void 0:Z[cx.Background]))&&void 0!==P?P:te(dx.Measure,px.LabelName,fx.BackgroundColor))&&void 0!==q?q:_t.Transparent},totalValues:{fontWeight:vx(null==J?void 0:J[cx.FontStyle],qt),fontStyle:bx(null==J?void 0:J[cx.FontStyle]),textDecoration:yx(null==J?void 0:J[cx.FontStyle]),color:null!==(k=null!==(O=hx(e,null==J?void 0:J[cx.FontColor]))&&void 0!==O?O:te(dx.Total,px.LabelValue,fx.Color))&&void 0!==k?k:ph.TEXT,background:null!==(T=null!==(_=hx(e,null==J?void 0:J[cx.Background]))&&void 0!==_?_:te(dx.Total,px.LabelValue,fx.BackgroundColor))&&void 0!==T?T:_t.Transparent},nullValues:{fontWeight:vx(null==Q?void 0:Q[cx.FontStyle],"normal"),fontStyle:bx(null==Q?void 0:Q[cx.FontStyle]),textDecoration:yx(null==Q?void 0:Q[cx.FontStyle]),color:null!==(N=null!==(F=hx(e,null==Q?void 0:Q[cx.FontColor]))&&void 0!==F?F:te(dx.Null,px.LabelValue,fx.Color))&&void 0!==N?N:ph.TEXT,background:null!==(H=null!==($=hx(e,null==Q?void 0:Q[cx.Background]))&&void 0!==$?$:te(dx.Null,px.LabelValue,fx.BackgroundColor))&&void 0!==H?H:_t.NullValueBackground},grid:{lineClamp:ne,border:null!==(z=null!==(j=hx(e,null==ee?void 0:ee[cx.Border]))&&void 0!==j?j:te(dx.Grid,px.Grid,fx.BorderColor))&&void 0!==z?z:_t.DividerLight,divider:null!==(W=null!==(V=hx(e,null==ee?void 0:ee[cx.Divider]))&&void 0!==V?V:te(dx.Grid,px.Divider,fx.BorderColor))&&void 0!==W?W:_t.DividerDark,background:null!==(B=null!==(G=hx(e,null==ee?void 0:ee[cx.Background]))&&void 0!==G?G:te(dx.Grid,px.Grid,fx.BackgroundColor))&&void 0!==B?B:_t.Transparent}};return oe.headerCellHeight=Math.max(gx(oe.header.fontSize,1),gx(oe.dimensionValues.fontSize,1),32),oe.contentCellHeight=Math.max(gx(oe.measureValues.fontSize,ne),gx(oe.dimensionValues.fontSize,ne),24),oe.contentRowHeight=oe.contentCellHeight/ne,oe.contentTextHeight=oe.contentRowHeight-8,oe})(M,L)),[M.name(),L]),$=(t=>e((()=>[...new Set([xx(t.header),xx(t.dimensionValues),xx({...t.dimensionValues,...t.measureLabels}),xx({...t.dimensionValues,...t.nullValues}),xx({...t.dimensionValues,...t.totalValues}),xx(t.measureValues),xx({...t.measureValues,...t.nullValues}),xx({...t.measureValues,...t.totalValues})])]),[t]))(H),z=(e=>{const[n,r]=t((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return r?(console.warn("Failed to load font:",r),!0):!!n})($);n((()=>{!F&&x&&(null==_?void 0:_.width)&&(null==_?void 0:_.height)&&I&&T&&L&&H&&!!N&&!R&&z&&lx(b,{model:x,app:S,rect:_,selections:I,viewService:T,layoutService:L,qPivotDataPages:N,styleService:H,translator:q,pageInfo:k,updatePageInfo:O,interactions:C,embed:E,keyboard:w,theme:M,flags:g})}),[x,S,_,null==_?void 0:_.width,null==_?void 0:_.height,C,I,T,L,F,N,H,b,z,q,P,k,O,D,R,E,w,M,A,g])},Ax={version:"2.6.1",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]};function qx(e){return{qae:{properties:{initial:Ax},data:tt(e)},ext:sn(e),component(){Mx(e)}}}export{qx as default};
|
|
99
|
+
`),Vp.rippleVisible,Qp,550,(({theme:e})=>e.transitions.easing.easeInOut),Vp.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Vp.child,Vp.childLeaving,ef,550,(({theme:e})=>e.transitions.easing.easeInOut),Vp.childPulsate,tf,(({theme:e})=>e.transitions.easing.easeInOut));var of=g.forwardRef((function(e,t){const r=ip({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Ln(r,Yp),[l,s]=g.useState([]),u=g.useRef(0),c=g.useRef(null);g.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=g.useRef(!1),p=g.useRef(0),f=g.useRef(null),m=g.useRef(null);g.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=g.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,rs.jsx(nf,{classes:{ripple:as(o.ripple,Vp.ripple),rippleVisible:as(o.rippleVisible,Vp.rippleVisible),ripplePulsate:as(o.ripplePulsate,Vp.ripplePulsate),child:as(o.child,Vp.child),childLeaving:as(o.childLeaving,Vp.childLeaving),childPulsate:as(o.childPulsate,Vp.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),b=g.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const 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:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-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:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h]),v=g.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=g.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((()=>{y(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return g.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),rs.jsx(rf,Rn({className:as(Vp.root,o.root,i),ref:m},a,{children:rs.jsx(kp,{component:null,exit:!0,children:l})}))}));function af(e){return ec("MuiButtonBase",e)}var lf=tc("MuiButtonBase",["root","disabled","focusVisible"]);const sf=["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"],uf=up("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"},[`&.${lf.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),cf=g.forwardRef((function(e,t){const r=ip({props:e,name:"MuiButtonBase"}),{action:n,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:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:D=0,TouchRippleProps:_,touchRippleRef:I,type:M}=r,P=Ln(r,sf),O=g.useRef(null),k=g.useRef(null),T=Fu(k,I),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Yu(),[G,$]=g.useState(!1);s&&G&&$(!1),g.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[H,B]=g.useState(!1);g.useEffect((()=>{B(!0)}),[]);const W=H&&!u&&!s;function j(e,t,r=c){return Nu((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}g.useEffect((()=>{G&&d&&!u&&H&&k.current.pulsate()}),[u,d,G,H]);const V=j("start",E),Y=j("stop",h),U=j("stop",b),K=j("stop",w),X=j("stop",(e=>{G&&e.preventDefault(),C&&C(e)})),Z=j("start",A),J=j("stop",R),Q=j("stop",L),ee=j("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Nu((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=g.useRef(!1),oe=Nu((e=>{d&&!ne.current&&G&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Nu((e=>{d&&" "===e.key&&k.current&&G&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(P.href||P.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Fu(t,z,O),ue=Rn({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:G}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Xu({root:["root",t&&"disabled",r&&"focusVisible"]},af,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return rs.jsxs(uf,Rn({as:ae,className:as(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:J,onTouchMove:Q,onTouchStart:Z,ref:se,tabIndex:s?-1:D,type:M},le,P,{children:[i,W?rs.jsx(of,Rn({ref:T,center:o},_)):null]}))}));var df=cf;function pf(e){return ec("MuiTypography",e)}tc("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ff=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],mf=up("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Lu(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Rn({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}))),hf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},gf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},bf=g.forwardRef((function(e,t){const r=ip({props:e,name:"MuiTypography"}),n=(e=>gf[e]||e)(r.color),o=ud(Rn({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=hf}=o,f=Ln(o,ff),m=Rn({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||hf[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Xu({root:["root",i,"inherit"!==e.align&&`align${Lu(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},pf,a)})(m);return rs.jsx(mf,Rn({as:h,ref:t,ownerState:m,className:as(g.root,a)},f))}));var vf=bf;const yf=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xf(e){const t=[],r=[];return Array.from(e.querySelectorAll(yf)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Sf(){return!0}function Ef(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=xf,isEnabled:a=Sf,open:l}=e,s=g.useRef(!1),u=g.useRef(null),c=g.useRef(null),d=g.useRef(null),p=g.useRef(null),f=g.useRef(!1),m=g.useRef(null),h=Fu(t.ref,m),b=g.useRef(null);g.useEffect((()=>{l&&m.current&&(f.current=!r)}),[r,l]),g.useEffect((()=>{if(!l||!m.current)return;const e=_u(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]),g.useEffect((()=>{if(!l||!m.current)return;const e=_u(m.current),t=t=>{b.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{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(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,l;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=b.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return rs.jsxs(g.Fragment,{children:[rs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),g.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),rs.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const Cf=g.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=g.useState(null),l=Fu(g.isValidElement(r)?r.ref:null,t);if(Pu((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Pu((()=>{if(i&&!o)return Mu(t,i),()=>{Mu(t,null)}}),[t,i,o]),o){if(g.isValidElement(r)){const e={ref:l};return g.cloneElement(r,e)}return rs.jsx(g.Fragment,{children:r})}return rs.jsx(g.Fragment,{children:i?O.createPortal(r,i):i})}));function wf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Rf(e){return parseInt(Iu(e).getComputedStyle(e).paddingRight,10)||0}function Lf(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&wf(e,o)}))}function Af(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Df(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=_u(e);return t.body===e?Iu(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Uu(_u(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Rf(n)+e}px`;const t=_u(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Rf(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=_u(n).body;else{const t=n.parentElement,r=Iu(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const _f=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&wf(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Lf(t,e.mount,e.modalRef,n,!0);const o=Af(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Af(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Df(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Af(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&wf(e.modalRef,t),Lf(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&wf(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function If(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=_f,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=g.useRef({}),f=g.useRef(null),m=g.useRef(null),h=Fu(m,d),[b,v]=g.useState(!c),y=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:n}),m.current&&(m.current.scrollTop=0)},C=Nu((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||_u(f.current).body;o.add(S(),e),m.current&&E()})),w=g.useCallback((()=>o.isTopModal(S())),[o]),R=Nu((e=>{f.current=e,e&&(c&&w()?E():m.current&&wf(m.current,x))})),L=g.useCallback((()=>{o.remove(S(),x)}),[x,o]);g.useEffect((()=>()=>{L()}),[L]),g.useEffect((()=>{c?C():y&&i||L()}),[c,L,y,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},D=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Hp(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Rn({},r,t);return Rn({role:"presentation"},n,{onKeyDown:A(n),ref:h})},getBackdropProps:(e={})=>Rn({"aria-hidden":!0},e,{onClick:D(e),open:c}),getTransitionProps:()=>({onEnter:Au((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Au((()=>{v(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}const Mf=["onChange","maxRows","minRows","style","value"];function Pf(e){return parseInt(e,10)||0}const Of={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function kf(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Tf=g.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=Ln(e,Mf),{current:s}=g.useRef(null!=a),u=g.useRef(null),c=Fu(t,u),d=g.useRef(null),p=g.useRef(0),[f,m]=g.useState({outerHeightStyle:0}),h=g.useCallback((()=>{const t=u.current,r=Iu(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=Pf(r.paddingBottom)+Pf(r.paddingTop),s=Pf(r.borderBottomWidth)+Pf(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),b=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},v=g.useCallback((()=>{const e=h();kf(e)||m((t=>b(t,e)))}),[h]);Pu((()=>{const e=()=>{p.current=0,(()=>{const e=h();kf(e)||O.flushSync((()=>{m((t=>b(t,e)))}))})()};const t=Du(e),r=u.current,n=Iu(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),Pu((()=>{v()})),g.useEffect((()=>{p.current=0}),[a]);return rs.jsxs(g.Fragment,{children:[rs.jsx("textarea",Rn({value:a,onChange:e=>{p.current=0,s||v(),r&&r(e)},ref:c,rows:o,style:Rn({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),rs.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Rn({},Of,i,{paddingTop:0,paddingBottom:0})})]})}));function qf({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}var Nf=g.createContext(void 0);function Ff(){return g.useContext(Nf)}function zf(e){return rs.jsx(ad,Rn({},e,{defaultTheme:np,themeId:Eu}))}function Gf(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function $f(e,t=!1){return e&&(Gf(e.value)&&""!==e.value||t&&Gf(e.defaultValue)&&""!==e.defaultValue)}function Hf(e){return ec("MuiInputBase",e)}var Bf=tc("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Wf=["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"],jf=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Lu(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Vf=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Yf=up("div",{name:"MuiInputBase",slot:"Root",overridesResolver:jf})((({theme:e,ownerState:t})=>Rn({},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",[`&.${Bf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Rn({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Uf=up("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Vf})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Rn({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Rn({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Bf.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},[`&.${Bf.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"})})),Kf=rs.jsx(zf,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Xf=g.forwardRef((function(e,t){var r;const n=ip({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:b="input",inputProps:v={},inputRef:y,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:A,onKeyDown:D,onKeyUp:_,placeholder:I,readOnly:M,renderSuffix:P,rows:O,slotProps:k={},slots:T={},startAdornment:q,type:N="text",value:F}=n,z=Ln(n,Wf),G=null!=v.value?v.value:F,{current:$}=g.useRef(null!=G),H=g.useRef(),B=g.useCallback((e=>{}),[]),W=Fu(H,y,v.ref,B),[j,V]=g.useState(!1),Y=Ff(),U=qf({props:n,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:j,g.useEffect((()=>{!Y&&d&&j&&(V(!1),w&&w())}),[Y,d,j,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,Z=g.useCallback((e=>{$f(e)?K&&K():X&&X()}),[K,X]);Pu((()=>{$&&Z({value:G})}),[G,Z,$]);g.useEffect((()=>{Z(H.current)}),[]);let J=b,Q=v;E&&"input"===J&&(Q=Rn(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),J=Tf);g.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=Rn({},n,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Xu({root:["root",`color${Lu(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Lu(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Hf,t)})(ee),re=T.root||s.Root||Yf,ne=k.root||u.root||{},oe=T.input||s.Input||Uf;return Q=Rn({},Q,null!=(r=k.input)?r:u.input),rs.jsxs(g.Fragment,{children:[!p&&Kf,rs.jsxs(re,Rn({},ne,!$p(re)&&{ownerState:Rn({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),L&&L(e)}},z,{className:as(te.root,ne.className,l,M&&"MuiInputBase-readOnly"),children:[q,rs.jsx(Nf.Provider,{value:null,children:rs.jsx(oe,Rn({ownerState:ee,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{Z("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:I,readOnly:M,required:U.required,rows:O,value:G,onKeyDown:D,onKeyUp:_,type:N},Q,!$p(oe)&&{as:J,ownerState:Rn({},ee,Q.ownerState)},{ref:W,className:as(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(Su(1));Z({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(A&&A(e),v.onFocus&&v.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),f,P?P(Rn({},U,{startAdornment:q})):null]}))]})}));var Zf=Xf;function Jf(e){return ec("MuiInput",e)}var Qf=Rn({},Bf,tc("MuiInput",["root","underline","input"]));function em(e){return ec("MuiOutlinedInput",e)}var tm=Rn({},Bf,tc("MuiOutlinedInput",["root","notchedOutline","input"]));function rm(e){return ec("MuiFilledInput",e)}var nm=Rn({},Bf,tc("MuiFilledInput",["root","underline","input"])),om=function(e,t){function r(r,n){return rs.jsx(hp,Rn({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=hp.muiName,g.memo(g.forwardRef(r))}(rs.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const im=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],am={entering:{opacity:1},entered:{opacity:1}},lm=g.forwardRef((function(e,t){const r=op(),n={enter:r.transitions.duration.enteringScreen,exit:r.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:b=n,TransitionComponent:v=Ap}=e,y=Ln(e,im),x=g.useRef(null),S=Fu(x,a.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{Tp(e);const n=qp({style:h,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),L=E(m),A=E((e=>{const t=qp({style:h,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),D=E(f);return rs.jsx(v,Rn({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:D,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:b},y,{children:(e,t)=>g.cloneElement(a,Rn({style:Rn({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},am[e],h,a.props.style),ref:S},t))}))}));var sm=lm;function um(e){return ec("MuiBackdrop",e)}tc("MuiBackdrop",["root","invisible"]);const cm=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],dm=up("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Rn({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"}))),pm=g.forwardRef((function(e,t){var r,n,o;const i=ip({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=sm,transitionDuration:g}=i,b=Ln(i,cm),v=Rn({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Xu({root:["root",r&&"invisible"]},um,t)})(v),x=null!=(r=f.root)?r:c.root;return rs.jsx(h,Rn({in:p,timeout:g},b,{children:rs.jsx(dm,Rn({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:as(y.root,l,null==x?void 0:x.className),ownerState:Rn({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var fm=pm;var mm=tc("MuiBox",["root"]);const hm=rp(),gm=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=va("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ed);return g.forwardRef((function(e,a){const l=id(r),s=ud(e),{className:u,component:c="div"}=s,d=Ln(s,cd);return rs.jsx(i,Rn({as:c,ref:a,className:as(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:Eu,defaultTheme:hm,defaultClassName:mm.root,generateClassName:Ju.generate});var bm=gm;function vm(e){return ec("MuiButton",e)}var ym=tc("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 xm=g.createContext({});var Sm=g.createContext(void 0);const Em=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Cm=e=>Rn({},"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}}),wm=up(df,{shouldForwardProp:e=>ap(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Lu(r.color)}`],t[`size${Lu(r.size)}`],t[`${r.variant}Size${Lu(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Rn({},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":Rn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dd(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})`:Dd(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})`:Dd(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":Rn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ym.focusVisible}`]:Rn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ym.disabled}`]:Rn({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 ${Dd(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ym.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ym.disabled}`]:{boxShadow:"none"}})),Rm=up("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Lu(r.size)}`]]}})((({ownerState:e})=>Rn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Cm(e)))),Lm=up("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Lu(r.size)}`]]}})((({ownerState:e})=>Rn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Cm(e)))),Am=g.forwardRef((function(e,t){const r=g.useContext(xm),n=g.useContext(Sm),o=ip({props:Ku(r,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:b,type:v,variant:y="text"}=o,x=Ln(o,Em),S=Rn({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:y}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Rn({},a,Xu({root:["root",i,`${i}${Lu(t)}`,`size${Lu(o)}`,`${i}Size${Lu(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Lu(o)}`],endIcon:["endIcon",`iconSize${Lu(o)}`]},vm,a))})(S),C=b&&rs.jsx(Rm,{className:E.startIcon,ownerState:S,children:b}),w=p&&rs.jsx(Lm,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return rs.jsxs(wm,Rn({ownerState:S,className:as(r.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:as(E.focusVisible,f),ref:t,type:v},x,{classes:E,children:[C,i,w]}))}));var Dm=Am;function _m(e){return ec("MuiModal",e)}tc("MuiModal",["root","hidden","backdrop"]);const Im=["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"],Mm=up("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Rn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Pm=up(fm,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Om=g.forwardRef((function(e,t){var r,n,o,i,a,l;const s=ip({name:"MuiModal",props:e}),{BackdropComponent:u=Pm,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:D,slotProps:_,slots:I}=s,M=Ln(s,Im),P=Rn({},s,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:k,getTransitionProps:T,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=If(Rn({},P,{rootRef:t})),G=Rn({},P,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Xu({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},_m,n)})(G),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=T();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==I?void 0:I.root)?n:b.Root)?r:Mm,W=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:b.Backdrop)?o:u,j=null!=(a=null==_?void 0:_.root)?a:v.root,V=null!=(l=null==_?void 0:_.backdrop)?l:v.backdrop,Y=jp({elementType:B,externalSlotProps:j,externalForwardedProps:M,getSlotProps:O,additionalProps:{ref:t,as:h},ownerState:G,className:as(d,null==j?void 0:j.className,null==$?void 0:$.root,!G.open&&G.exited&&(null==$?void 0:$.hidden))}),U=jp({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>k(Rn({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:as(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:G});return L||D||z&&!F?rs.jsx(Cf,{ref:q,container:m,disablePortal:E,children:rs.jsxs(B,Rn({},Y,{children:[!R&&u?rs.jsx(W,Rn({},U)):null,rs.jsx(Ef,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:D,children:g.cloneElement(f,H)})]}))}):null}));var km=Om;function Tm(e){return ec("MuiDivider",e)}var qm=tc("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Nm=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Fm=up("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Rn({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)`:Dd(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})=>Rn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Rn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Rn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Rn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),zm=up("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Rn({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)`}))),Gm=g.forwardRef((function(e,t){const r=ip({props:e,name:"MuiDivider"}),{absolute:n=!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"}=r,f=Ln(r,Nm),m=Rn({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Xu({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Tm,n)})(m);return rs.jsx(Fm,Rn({as:a,className:as(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?rs.jsx(zm,{className:h.wrapper,ownerState:m,children:o}):null}))}));Gm.muiSkipListHighlight=!0;var $m=Gm;const Hm=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Bm=up(Yf,{shouldForwardProp:e=>ap(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...jf(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Rn({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}},[`&.${nm.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${nm.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${nm.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nm.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(.${nm.disabled}, .${nm.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${nm.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Rn({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}))})),Wm=up(Uf,{name:"MuiFilledInput",slot:"Input",overridesResolver:Vf})((({theme:e,ownerState:t})=>Rn({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}))),jm=g.forwardRef((function(e,t){var r,n,o,i;const a=ip({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=Ln(a,Hm),g=Rn({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Rn({},t,Xu({root:["root",!r&&"underline"],input:["input"]},rm,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Ru(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:Bm,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Wm;return rs.jsx(Zf,Rn({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));jm.muiName="Input";var Vm=jm;const Ym=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Um(e){return`scale(${e}, ${e**2})`}const Km={entering:{opacity:1,transform:Um(1)},entered:{opacity:1,transform:"none"}},Xm="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Zm=g.forwardRef((function(e,t){const{addEndListener:r,appear:n=!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=Ap}=e,b=Ln(e,Ym),v=g.useRef(),y=g.useRef(),x=op(),S=g.useRef(null),E=Fu(S,o.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{Tp(e);const{duration:r,delay:n,easing:o}=qp({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Xm?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),D=C((e=>{const{duration:t,delay:r,easing:n}=qp({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Xm?o:.666*o,delay:Xm?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Um(.75),c&&c(e)})),_=C(d);return g.useEffect((()=>()=>{clearTimeout(v.current)}),[]),rs.jsx(h,Rn({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:D,onExited:_,onExiting:A,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,y.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},b,{children:(e,t)=>g.cloneElement(o,Rn({style:Rn({opacity:0,transform:Um(.75),visibility:"exited"!==e||a?void 0:"hidden"},Km[e],f,o.props.style),ref:E},t))}))}));Zm.muiSupportAuto=!0;var Jm=Zm;const Qm=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],eh=up(Yf,{shouldForwardProp:e=>ap(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...jf(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Rn({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"},[`&.${Qf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qf.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qf.disabled}, .${Qf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Qf.disabled}:before`]:{borderBottomStyle:"dotted"}})})),th=up(Uf,{name:"MuiInput",slot:"Input",overridesResolver:Vf})({}),rh=g.forwardRef((function(e,t){var r,n,o,i;const a=ip({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=Ln(a,Qm),b=(e=>{const{classes:t,disableUnderline:r}=e;return Rn({},t,Xu({root:["root",!r&&"underline"],input:["input"]},Jf,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Ru(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:eh,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:th;return rs.jsx(Zf,Rn({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));rh.muiName="Input";var nh=rh;var oh=g.createContext({});function ih(e){return ec("MuiList",e)}tc("MuiList",["root","padding","dense","subheader"]);const ah=["children","className","component","dense","disablePadding","subheader"],lh=up("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>Rn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var sh=g.forwardRef((function(e,t){const r=ip({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=Ln(r,ah),c=g.useMemo((()=>({dense:a})),[a]),d=Rn({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Xu({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},ih,t)})(d);return rs.jsx(oh.Provider,{value:c,children:rs.jsxs(lh,Rn({as:i,className:as(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function uh(e){return ec("MuiListItemIcon",e)}var ch=tc("MuiListItemIcon",["root","alignItemsFlexStart"]);const dh=["className"],ph=up("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Rn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var fh=g.forwardRef((function(e,t){const r=ip({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Ln(r,dh),i=Rn({},r,{alignItems:g.useContext(oh).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Xu({root:["root","flex-start"===t&&"alignItemsFlexStart"]},uh,r)})(i);return rs.jsx(ph,Rn({className:as(a.root,n),ownerState:i,ref:t},o))}));var mh=tc("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const hh=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function gh(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function bh(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function vh(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function yh(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&vh(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var xh=g.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Ln(e,hh),p=g.useRef(null),f=g.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pu((()=>{n&&p.current.focus()}),[n]),g.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${Uu(_u(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=Fu(p,t);let h=-1;g.Children.forEach(i,((e,t)=>{g.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 b=g.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),g.cloneElement(e,t)}return e}));return rs.jsx(sh,Rn({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=_u(t).activeElement;if("ArrowDown"===r)e.preventDefault(),yh(t,n,s,l,gh);else if("ArrowUp"===r)e.preventDefault(),yh(t,n,s,l,bh);else if("Home"===r)e.preventDefault(),yh(t,null,s,l,gh);else if("End"===r)e.preventDefault(),yh(t,null,s,l,bh);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&vh(n,o);o.previousKeyMatched&&(s||yh(t,n,!1,l,gh,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:b}))}));function Sh(e){return ec("MuiPopover",e)}tc("MuiPopover",["root","paper"]);const Eh=["onEntering"],Ch=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],wh=["slotProps"];function Rh(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Lh(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Ah(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Dh(e){return"function"==typeof e?e():e}const _h=up(km,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ih=up(Gp,{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 Mh=g.forwardRef((function(e,t){var r,n,o;const i=ip({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:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Jm,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=Ln(i.TransitionProps,Eh),A=Ln(i,Ch),D=null!=(r=null==x?void 0:x.paper)?r:v,_=g.useRef(),I=Fu(_,D.ref),M=Rn({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:D,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),P=(e=>{const{classes:t}=e;return Xu({root:["root"],paper:["paper"]},Sh,t)})(M),O=g.useCallback((()=>{if("anchorPosition"===c)return u;const e=Dh(l),t=(e&&1===e.nodeType?e:_u(_.current).body).getBoundingClientRect();return{top:t.top+Rh(t,s.vertical),left:t.left+Lh(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),k=g.useCallback((e=>({vertical:Rh(e,S.vertical),horizontal:Lh(e,S.horizontal)})),[S.horizontal,S.vertical]),T=g.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:Ah(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Iu(Dh(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Ah(r)}}),[l,c,O,k,h]),[q,N]=g.useState(b),F=g.useCallback((()=>{const e=_.current;if(!e)return;const t=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)}),[T]);g.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);g.useEffect((()=>{b&&F()})),g.useImperativeHandle(a,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),g.useEffect((()=>{if(!b)return;const e=Du((()=>{F()})),t=Iu(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const G=f||(l?_u(Dh(l)).body:void 0),$=null!=(n=null==y?void 0:y.root)?n:_h,H=null!=(o=null==y?void 0:y.paper)?o:Ih,B=jp({elementType:H,externalSlotProps:Rn({},D,{style:q?D.style:Rn({},D.style,{opacity:0})}),additionalProps:{elevation:m,ref:I},ownerState:M,className:as(P.paper,null==D?void 0:D.className)}),W=jp({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:G,open:b},ownerState:M,className:as(P.root,p)}),{slotProps:j}=W,V=Ln(W,wh);return rs.jsx($,Rn({},V,!$p($)&&{slotProps:j,disableScrollLock:R},{children:rs.jsx(E,Rn({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:rs.jsx(H,Rn({},B,{children:d}))}))}))}));function Ph(e){return ec("MuiMenu",e)}tc("MuiMenu",["root","paper","list"]);const Oh=["onEntering"],kh=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Th={vertical:"top",horizontal:"right"},qh={vertical:"top",horizontal:"left"},Nh=up(Mh,{shouldForwardProp:e=>ap(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fh=up(Ih,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),zh=up(xh,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Gh=g.forwardRef((function(e,t){var r,n;const o=ip({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:b="selectedMenu",slots:v={},slotProps:y={}}=o,x=Ln(o.TransitionProps,Oh),S=Ln(o,kh),E=op(),C="rtl"===E.direction,w=Rn({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:b}),R=(e=>{const{classes:t}=e;return Xu({root:["root"],paper:["paper"],list:["list"]},Ph,t)})(w),L=i&&!s&&d,A=g.useRef(null);let D=-1;g.Children.map(a,((e,t)=>{g.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===D)&&(D=t))}));const _=null!=(r=v.paper)?r:Fh,I=null!=(n=y.paper)?n:p,M=jp({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[R.root,l]}),P=jp({elementType:_,externalSlotProps:I,ownerState:w,className:R.paper});return rs.jsx(Nh,Rn({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Th:qh,slots:{paper:_,root:v.root},slotProps:{root:M,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Rn({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:w},S,{classes:f,children:rs.jsx(zh,Rn({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===D||s),autoFocusItem:L,variant:b},u,{className:as(R.list,u.className),children:a}))}))}));function $h(e){return ec("MuiMenuItem",e)}var Hh=tc("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Bh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Wh=up(df,{shouldForwardProp:e=>ap(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Rn({},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"}},[`&.${Hh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dd(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Hh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dd(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Hh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dd(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})`:Dd(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Hh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${qm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${qm.inset}`]:{marginLeft:52},[`& .${mh.root}`]:{marginTop:0,marginBottom:0},[`& .${mh.inset}`]:{paddingLeft:36},[`& .${ch.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Rn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ch.root} svg`]:{fontSize:"1.25rem"}}))));var jh=g.forwardRef((function(e,t){const r=ip({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=Ln(r,Bh),f=g.useContext(oh),m=g.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=g.useRef(null);Pu((()=>{n&&h.current&&h.current.focus()}),[n]);const b=Rn({},r,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Rn({},a,Xu({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},$h,a))})(r),y=Fu(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),rs.jsx(oh.Provider,{value:m,children:rs.jsx(Wh,Rn({ref:y,role:u,tabIndex:x,component:o,focusVisibleClassName:as(v.focusVisible,s),className:as(v.root,d)},p,{ownerState:b,classes:v}))})}));function Vh(e){return ec("MuiNativeSelect",e)}var Yh=tc("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Uh=["className","disabled","error","IconComponent","inputRef","variant"],Kh=({ownerState:e,theme:t})=>Rn({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Rn({},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"},[`&.${Yh.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}}),Xh=up("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ap,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Yh.multiple}`]:t.multiple}]}})(Kh),Zh=({ownerState:e,theme:t})=>Rn({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Yh.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Jh=up("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Lu(r.variant)}`],r.open&&t.iconOpen]}})(Zh);var Qh,eg=g.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Ln(e,Uh),u=Rn({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Xu({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Lu(r)}`,i&&"iconOpen",n&&"disabled"]},Vh,t)})(u);return rs.jsxs(g.Fragment,{children:[rs.jsx(Xh,Rn({ownerState:u,className:as(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:rs.jsx(Jh,{as:i,ownerState:u,className:c.icon})]})}));const tg=["children","classes","className","label","notched"],rg=up("fieldset",{shouldForwardProp:ap})({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%"}),ng=up("legend",{shouldForwardProp:ap})((({ownerState:e,theme:t})=>Rn({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&&Rn({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 og=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ig=up(Yf,{shouldForwardProp:e=>ap(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:jf})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Rn({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${tm.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${tm.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${tm.focused} .${tm.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${tm.error} .${tm.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${tm.disabled} .${tm.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Rn({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),ag=up((function(e){const{className:t,label:r,notched:n}=e,o=Ln(e,tg),i=null!=r&&""!==r,a=Rn({},e,{notched:n,withLabel:i});return rs.jsx(rg,Rn({"aria-hidden":!0,className:t,ownerState:a},o,{children:rs.jsx(ng,{ownerState:a,children:i?rs.jsx("span",{children:r}):Qh||(Qh=rs.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}})),lg=up(Uf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Vf})((({theme:e,ownerState:t})=>Rn({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}))),sg=g.forwardRef((function(e,t){var r,n,o,i,a;const l=ip({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,b=Ln(l,og),v=(e=>{const{classes:t}=e;return Rn({},t,Xu({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},em,t))})(l),y=Ff(),x=qf({props:l,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Rn({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:h}),E=null!=(r=null!=(n=m.root)?n:s.Root)?r:ig,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:lg;return rs.jsx(Zf,Rn({slots:{root:E,input:C},renderSuffix:e=>rs.jsx(ag,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=rs.jsxs(g.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},b,{classes:Rn({},v,{notchedOutline:null})}))}));sg.muiName="Input";var ug=sg;function cg(e){return ec("MuiSelect",e)}var dg,pg=tc("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const fg=["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"],mg=up("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${pg.select}`]:t.select},{[`&.${pg.select}`]:t[r.variant]},{[`&.${pg.error}`]:t.error},{[`&.${pg.multiple}`]:t.multiple}]}})(Kh,{[`&.${pg.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hg=up("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Lu(r.variant)}`],r.open&&t.iconOpen]}})(Zh),gg=up("input",{shouldForwardProp:e=>lp(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 bg(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function vg(e){return null==e||"string"==typeof e&&!e.trim()}const yg=g.forwardRef((function(e,t){var r;const{"aria-describedby":n,"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:b,MenuProps:v={},multiple:y,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:A,renderValue:D,SelectDisplayProps:_={},tabIndex:I,value:M,variant:P="standard"}=e,O=Ln(e,fg),[k,T]=qu({controlled:M,default:c,name:"Select"}),[q,N]=qu({controlled:L,default:u,name:"Select"}),F=g.useRef(null),z=g.useRef(null),[G,$]=g.useState(null),{current:H}=g.useRef(null!=L),[B,W]=g.useState(),j=Fu(t,h),V=g.useCallback((e=>{z.current=e,e&&$(e)}),[]),Y=null==G?void 0:G.parentNode;g.useImperativeHandle(j,(()=>({focus:()=>{z.current.focus()},node:F.current,value:k})),[k]),g.useEffect((()=>{u&&q&&G&&!H&&(W(a?null:Y.clientWidth),z.current.focus())}),[G,a]),g.useEffect((()=>{i&&z.current.focus()}),[i]),g.useEffect((()=>{if(!b)return;const e=_u(z.current).getElementById(b);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[b]);const U=(e,t)=>{e?R&&R(t):C&&C(t),H||(W(a?null:Y.clientWidth),N(e))},K=g.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(y){r=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==r&&(T(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}y||U(!1,t)}},Z=null!==G&&q;let J,Q;delete O["aria-invalid"];const ee=[];let te=!1;($f({value:k})||p)&&(D?J=D(k):te=!0);const re=K.map((e=>{if(!g.isValidElement(e))return null;let t;if(y){if(!Array.isArray(k))throw new Error(Su(2));t=k.some((t=>bg(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=bg(k,e.props.value),t&&te&&(Q=e.props.children);return g.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&&(J=y?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!a&&H&&G&&(oe=Y.clientWidth),ne=void 0!==I?I:d?null:0;const ie=_.id||(x?`mui-component-select-${x}`:void 0),ae=Rn({},e,{variant:P,value:k,open:Z,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Xu({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Lu(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},cg,t)})(ae),se=Rn({},v.PaperProps,null==(r=v.slotProps)?void 0:r.paper),ue=Tu();return rs.jsxs(g.Fragment,{children:[rs.jsx(mg,Rn({ref:V,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":Z?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),U(!0,e))},onBlur:e=>{!Z&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:x}}),S(e))},onFocus:w},_,{ownerState:ae,className:as(_.className,le.select,s),id:ie,children:vg(J)?dg||(dg=rs.jsx("span",{className:"notranslate",children:""})):J})),rs.jsx(gg,Rn({"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(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),rs.jsx(hg,{as:m,className:le.icon,ownerState:ae}),rs.jsx(Gh,Rn({id:`menu-${x||""}`,anchorEl:Y,open:Z,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Rn({"aria-labelledby":b,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:Rn({},v.slotProps,{paper:Rn({},se,{style:Rn({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var xg=yg;const Sg=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Eg=["root"],Cg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ap(e)&&"variant"!==e,slot:"Root"},wg=up(nh,Cg)(""),Rg=up(ug,Cg)(""),Lg=up(Vm,Cg)(""),Ag=g.forwardRef((function(e,t){const r=ip({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=om,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:b=!1,native:v=!1,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=Ln(r,Sg),L=v?eg:xg,A=qf({props:r,muiFormControl:Ff(),states:["variant","error"]}),D=A.variant||w,_=Rn({},r,{variant:D,classes:i}),I=(e=>{const{classes:t}=e;return t})(_),M=Ln(I,Eg),P=d||{standard:rs.jsx(wg,{ownerState:_}),outlined:rs.jsx(Rg,{label:f,ownerState:_}),filled:rs.jsx(Lg,{ownerState:_})}[D],O=Fu(t,P.ref);return rs.jsx(g.Fragment,{children:g.cloneElement(P,Rn({inputComponent:L,inputProps:Rn({children:o,error:A.error,IconComponent:u,variant:D,type:void 0,multiple:b},v?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:y,onOpen:x,open:S,renderValue:E,SelectDisplayProps:Rn({id:c},C)},p,{classes:p?Ru(M,p.classes):M},d?d.props.inputProps:{})},b&&v&&"outlined"===D?{notched:!0}:{},{ref:O,className:as(P.props.className,a,I.root)},!d&&{variant:D},R))})}));Ag.muiName="Select";var Dg=Ag;const _g=up(bm,{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"}))),Ig=up(bu,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),Mg=up(Gh)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Pg=up($m)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),Og=up(jh)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:e.spacing(.25,2),marginBottom:e.spacing(.5)}))),kg=up(jh,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative",overflow:"hidden",boxSizing:"border-box",background:""+(r?"rgba(0, 0, 0, 0.05)":"transparent")}))),Tg=up("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"}))),qg=up("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Ng=up(vf)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),Fg=up(fh)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function zg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Gg=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){zg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("defs",null,b.createElement("path",{id:"arrow_right_svg__luiicons_arrow_right-a",d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})),b.createElement("use",{xlinkHref:"#arrow_right_svg__luiicons_arrow_right-a"}))));let $g={};const Hg=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=v(!1),p=D(null),f=C((e=>{e.stopPropagation(),d(!1)}),[d]);return b.createElement(b.Fragment,null,b.createElement(kg,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),$g={}),null!=a&&a.length&&(d(!0),$g[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&b.createElement(Tg,null),b.createElement(qg,null,b.createElement(Fg,null,b.createElement(o,null)),b.createElement(Ng,{variant:"body2"},n)),null!=a&&a.length?b.createElement(Gg,null):null),(null==a?void 0:a.length)&&b.createElement(Wg,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=$g,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},Bg=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&b.createElement(Og,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>b.createElement(Hg,xu({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),Wg=({anchorEl:e,open:t,onClose:r,ariaLabel:n,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?b.createElement(Mg,xu({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,"aria-labelledby":n},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[Bg({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?b.createElement(Pg,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null;function jg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Vg=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("defs",null,b.createElement("path",{id:"descending_svg__descending-a",d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5V2Zm12 2H8v1h7V4ZM8 7h6v1H8V7Zm5 3H8v1h5v-1Z"})),b.createElement("use",{xlinkHref:"#descending_svg__descending-a"}))));function Yg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ug=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Yg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("defs",null,b.createElement("path",{id:"ascending_svg__ascending-a",d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5 3.5 1.793ZM8 4h5v1H8V4Zm0 3h6v1H8V7Zm0 3h7v1H8v-1Z"})),b.createElement("use",{xlinkHref:"#ascending_svg__ascending-a"}))));function Kg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xg=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Kg(e,t,r[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),b.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116.509.509 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.087a.506.506 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0Z"}))));function Zg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Jg=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Zg(e,t,r[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),b.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1V1.5ZM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1h1.5ZM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1v1.5Zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1v1.5ZM6 0h4v1H6V0ZM0 6h1v4H0V6Zm15 0h1v4h-1V6Zm-9 9h4v1H6v-1Z"}))));function Qg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const eb=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Qg(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("defs",null,b.createElement("path",{id:"select_all_svg__select_all-a",d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4h2Zm12-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 0h10Zm0 1H5v10h10V1Zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28l3.497-3.627Z"})),b.createElement("use",{xlinkHref:"#select_all_svg__select_all-a"}))));function tb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rb=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){tb(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("defs",null,b.createElement("path",{id:"clear_selections_svg__selections-clear-a",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-.5Zm-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 0Zm0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM9.166 6.166c1.555-1.555 4.113-1.555 5.668 0 1.555 1.555 1.555 4.113 0 5.668-1.555 1.555-4.113 1.555-5.668 0-1.555-1.555-1.555-4.063 0-5.668Zm4.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 0c-.25.201-.25.602 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.304 1.304-1.304Z"})),b.createElement("use",{xlinkHref:"#clear_selections_svg__selections-clear-a"}))));function nb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ob=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nb(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("defs",null,b.createElement("path",{id:"select_possible_svg__luiicons_select_possible-a",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-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 4v8h8V4H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),b.createElement("use",{xlinkHref:"#select_possible_svg__luiicons_select_possible-a"}))));function ib(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ab=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ib(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("defs",null,b.createElement("path",{id:"select_alternative_svg__luiicons_select_alternative-a",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-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 4v8l8-8H4Zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),b.createElement("use",{xlinkHref:"#select_alternative_svg__luiicons_select_alternative-a"}))));function lb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sb=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){lb(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("defs",null,b.createElement("path",{id:"select_excluded_svg__luiicons_select_excluded-a",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-.5Zm-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 0Zm14 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-.5v-1Zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0Zm15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0Zm-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 0Zm6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5Zm9 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 0ZM4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z"})),b.createElement("use",{xlinkHref:"#select_excluded_svg__luiicons_select_excluded-a"}))));function ub(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cb=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ub(e,t,r[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),b.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.707L3.915 8ZM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h14Zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2h2Z"}))));let db=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const pb=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(r[db.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")),n(!1),await(null==i?void 0:i(e))},icon:Ug,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")),n(!1),await(null==i?void 0:i(e))},icon:Vg,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=[];r[db.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),l()},icon:Xg,enabled:!0}]}]),r[db.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Jg,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAll())},icon:eb,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectPossible())},icon:ob,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectAlternative())},icon:ab,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectExcluded())},icon:sb,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.clear())},icon:rb,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[db.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==d||d(c)},icon:cb,enabled:!0}]}]),p},fb=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=fr({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:y}=n,{fieldInstance:x,selectionActionsEnabledStatus:S,resetSelectionActionsEnabledStatus:w,updateSelectionActionsEnabledStatus:R}=(({headerData:e,app:t})=>{const[r,n]=v(null),[o,i]=v(vu);return E((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:C((()=>i(vu)),[]),updateSelectionActionsEnabledStatus:C((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:yu(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:yu(["qSelected"],r.qStateCounts),canSelectPossible:yu(["qOption"],r.qStateCounts),canSelectAlternative:yu(["qAlternative"],r.qStateCounts),canSelectExcluded:yu(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),L=C((()=>{const e=g?{qLibraryId:g,type:"dimension"}:y;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,y,g]);E((()=>{e||(w(),null!=d&&d.model&&d.model.getLayout().then((e=>{R(e)})).catch((e=>console.error(e))))}),[e,w,R,null==d?void 0:d.model]);const A=C((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?b.createElement(_g,{rightAligned:"right"===h,shouldShowMenuIcon:s},s&&b.createElement(Ig,{size:"small",className:dt,"data-testid":dt,"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},b.createElement(bu,null)),b.createElement(Wg,{open:e,anchorEl:r.current,onClose:A,menuGroups:pb({headerData:n,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:L,interactions:i,fieldInstance:x,selectionActionsEnabledStatus:S,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},mb=up(bm,{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}`}))),hb=up(Dg,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),gb=up(Dm,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),bb=up(vf)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})));function vb(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function yb(e){if(e.type)return e;if("#"===e.charAt(0))return yb(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(vb(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function xb(e,t){return e=yb(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}const Sb={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"},Eb={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",...Sb,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)"},Cb=12,wb=14,Rb=16,Lb=24,Ab=3,Db=300,_b=400,Ib=600,Mb=700,Pb={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};xb(Eb.GREYSCALE_0,.05),xb(Eb.GREEN_PALE,.5),xb(Eb.BLUE_PALE,.5),xb(Eb.GREEN_PALE,.5),xb(Eb.BLUE_PALE,.5),xb(Eb.GREEN_PALE,.5),xb(Eb.BLUE_PALE,.5);var Ob,kb;function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tb.apply(this,arguments)}xb(Eb.GREEN_PALE,.5),xb(Eb.BLUE_PALE,.5),xb(Eb.GREEN_PALE,.5),xb(Eb.BLUE_PALE,.5);var qb,Nb,Fb=function(e){return g.createElement("svg",Tb({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),Ob||(Ob=g.createElement("defs",null,g.createElement("path",{id:"ArrowDown_svg__a",d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"}))),kb||(kb=g.createElement("use",{xlinkHref:"#ArrowDown_svg__a",fillRule:"evenodd"})))};function zb(){return zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zb.apply(this,arguments)}var Gb=function(e){return g.createElement("svg",zb({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),qb||(qb=g.createElement("defs",null,g.createElement("path",{id:"Close_svg__a",d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"}))),Nb||(Nb=g.createElement("use",{xlinkHref:"#Close_svg__a"})))};function $b({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return b.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var Hb=(e={})=>b.createElement($b,{...e},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},b.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),b.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"}))),Bb=(e={})=>b.createElement($b,{...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),b.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Wb=(e={})=>b.createElement($b,{fontSize:"medium",...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},b.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),jb=(e={})=>b.createElement($b,{fontSize:"medium",...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("defs",null,b.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},b.createElement("use",{href:"#radio-checked-path-1"})),b.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),b.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),Vb=({className:e})=>b.createElement($b,{fontSize:"small",className:e},b.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},b.createElement("g",{transform:"translate(4.324187, 1.300372)"},b.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"}),b.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"})))))),Yb=(e={})=>b.createElement($b,{...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("rect",{stroke:Eb.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Ub={MuiAccordion:{styleOverrides:{root:{backgroundColor:Eb.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Eb.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:b.createElement(Fb,{"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 ${Eb.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Eb.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Eb.MISC_FOCUS_BORDER}`,borderRadius:Ab,backgroundColor:Eb.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 ${Eb.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Eb.WHITE,color:Eb.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:Ab},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Eb.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Eb.GREYSCALE_0_15,backgroundColor:Eb.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Eb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Eb.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Eb.GREEN_PALE},"&:active":{backgroundColor:Eb.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Eb.GREEN_PALE,boxShadow:`0 0 0 3px ${Dd(Eb.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Eb.BLUE_PALE},"&:active":{backgroundColor:Eb.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Eb.BLUE_PALE,boxShadow:`0 0 0 3px ${Dd(Eb.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:Ab,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Eb.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Eb.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Eb.GREYSCALE_0_15,backgroundColor:Eb.GREYSCALE_100_60,"&:active":{backgroundColor:Eb.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Eb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Eb.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Eb.PURPLE,"&.Mui-focusVisible":{borderColor:Eb.PURPLE,boxShadow:`0 0 0 3px ${Dd(Eb.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Eb.GREEN,"&.Mui-focusVisible":{borderColor:Eb.GREEN,boxShadow:`0 0 0 3px ${Dd(Eb.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Eb.BLUE,"&.Mui-focusVisible":{borderColor:Eb.BLUE,boxShadow:`0 0 0 3px ${Dd(Eb.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Eb.ORANGE,"&.Mui-focusVisible":{borderColor:Eb.ORANGE,boxShadow:`0 0 0 3px ${Dd(Eb.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Eb.RED,"&.Mui-focusVisible":{borderColor:Eb.RED,boxShadow:`0 0 0 3px ${Dd(Eb.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Eb.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Eb.PURPLE_PALE},"&:active":{backgroundColor:Eb.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Eb.PURPLE_PALE,boxShadow:`0 0 0 3px ${Dd(Eb.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Eb.GREEN_PALE},"&:active":{backgroundColor:Eb.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Eb.GREEN_PALE,boxShadow:`0 0 0 3px ${Dd(Eb.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Eb.BLUE_PALE},"&:active":{backgroundColor:Eb.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Eb.BLUE_PALE,boxShadow:`0 0 0 3px ${Dd(Eb.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Eb.ORANGE_PALE},"&:active":{backgroundColor:Eb.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Eb.ORANGE_PALE,boxShadow:`0 0 0 3px ${Dd(Eb.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Eb.RED_PALE},"&:active":{backgroundColor:Eb.RED_DARK},"&.Mui-focusVisible":{borderColor:Eb.RED_PALE,boxShadow:`0 0 0 3px ${Dd(Eb.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:Eb.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Eb.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ab,boxShadow:`inset 0 0 0 2px ${Eb.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:b.createElement(Gb,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Cb,borderRadius:Ab,color:Eb.TEXT_PRIMARY,backgroundColor:Eb.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Eb.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Eb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Eb.GREYSCALE_0_05,color:Eb.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Eb.GREEN,borderColor:Eb.GREEN},"&.MuiChip-outlinedInfo":{color:Eb.BLUE,borderColor:Eb.BLUE},"&.MuiChip-outlinedWarning":{color:Eb.ORANGE,borderColor:Eb.ORANGE},"&.MuiChip-outlinedError":{color:Eb.RED,borderColor:Eb.RED}},outlined:{border:`solid 1px ${Eb.GREYSCALE_0_15}`,backgroundColor:Eb.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ab,boxShadow:"none",backgroundColor:Eb.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Eb.GREEN,borderColor:Eb.GREEN},outlinedSecondary:{color:Eb.BLUE,borderColor:Eb.BLUE},label:{fontFamily:Pb.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:b.createElement(Gb,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:b.createElement(Fb,{"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:Ab},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:wb,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Eb.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Eb.GREYSCALE_0_10},"&:hover":{backgroundColor:Eb.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Ab,border:`solid 1px ${Eb.GREYSCALE_0_15}`,color:Eb.GREYSCALE_0_60,marginRight:0,width:Lb,height:Lb},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Eb.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ab,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Eb.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:wb}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Cb,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Eb.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Eb.GREYSCALE_25,fontSize:Cb,fontFamily:Pb.FONT_FAMILY,fontWeight:Ib,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Eb.TEXT_PRIMARY},"&.Mui-error":{color:Eb.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Eb.TEXT_SECONDARY,content:"'(optional)'",fontWeight:_b,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Eb.TEXT_SECONDARY,content:"'(required)'",fontWeight:_b,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:wb,lineHeight:"16px",backgroundColor:Eb.WHITE,borderRadius:Ab,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Eb.GREYSCALE_0_05}`,borderColor:Eb.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Eb.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Eb.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Eb.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Eb.RED}`,boxShadow:`0px 0px 0px 1px ${Eb.RED}, inset 0 2px 0 0 ${Eb.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Eb.GREYSCALE_0_10}`,borderColor:Eb.GREYSCALE_0_10,backgroundColor:Eb.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Eb.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Eb.GREYSCALE_0_15,borderRadius:Ab,boxShadow:`inset 0 2px 0 0 ${Eb.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>b.createElement(Fb,{...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:Eb.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Eb.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Eb.GREYSCALE_0_03},"&:active":{backgroundColor:Eb.GREYSCALE_0_10},"&:focus":{backgroundColor:Eb.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Eb.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Eb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Eb.GREYSCALE_0_30,"&:hover":{backgroundColor:Eb.GREYSCALE_0_0,borderColor:Eb.GREYSCALE_0_15},"& ~svg":{color:Eb.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Eb.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ab}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Eb.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Eb.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Eb.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:wb,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Cb,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Cb,fontWeight:Ib,color:Eb.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ib}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Eb.GREYSCALE_0_15}, 0px 0px 0px 1px ${Eb.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:b.createElement(Wb,null),checkedIcon:b.createElement(jb,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Eb.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Eb.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Eb.GREEN_PALE,boxShadow:`0 0 0 3px ${Dd(Eb.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Eb.BLUE_PALE,boxShadow:`0 0 0 3px ${Dd(Eb.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Eb.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Eb.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:b.createElement(Yb,null),checkedIcon:b.createElement(Hb,null),indeterminateIcon:b.createElement(Bb,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ab,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Eb.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Eb.GREYSCALE_0_55,color:Eb.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:Eb.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Eb.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Eb.GREYSCALE_0_55,"&:hover":{color:Eb.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:Eb.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Eb.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:wb,color:Eb.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ib},secondary:{fontSize:Cb,color:Eb.GREYSCALE_45,fontWeight:_b,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:wb,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Eb.GREYSCALE_0_03},"&:active":{backgroundColor:Eb.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:wb,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Eb.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Cb,borderBottom:`solid 1px ${Eb.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:wb,color:Eb.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Eb.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Eb.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Eb.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:Eb.RED}}},"&.Mui-focusVisible":{backgroundColor:Eb.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:Eb.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:Eb.GREEN,height:"24px","&.Mui-disabled":{color:Eb.GREYSCALE_0_15}},rail:{backgroundColor:Eb.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Eb.GREYSCALE_0_05}`,borderRadius:Ab,boxShadow:`inset 0px 0px 0px 1px ${Eb.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Eb.GREYSCALE_0_05}`,borderRadius:Ab},thumb:{height:"16px",width:"16px",borderRadius:Ab,backgroundColor:Eb.WHITE,boxShadow:`0px 1px 2px 0px ${Eb.GREYSCALE_0_15}, 0px 0px 0px 1px ${Eb.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ab,boxShadow:`0 2px 4px 0 ${Eb.GREYSCALE_0_30}, 0 0 0 1px ${Eb.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Eb.GREYSCALE_0_15}, 0 0 0 1px ${Eb.GREYSCALE_0_06}, 0 0 0 2px ${Eb.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Eb.GREYSCALE_0_15}, 0 0 0 1px ${Eb.GREYSCALE_0_06}, 0 0 0 2px ${Eb.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Eb.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Eb.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Eb.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Eb.GREYSCALE_0_15},markLabel:{color:Eb.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Eb.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Eb.WHITE,color:Eb.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:Eb.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:Eb.GREEN_PALE,boxShadow:`0 0 0 3px ${Dd(Eb.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Eb.BLUE_PALE,boxShadow:`0 0 0 3px ${Dd(Eb.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Eb.GREYSCALE_0_15,borderRadius:Ab},thumb:{height:"16px",width:"16px",borderRadius:Ab,backgroundColor:Eb.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:wb,fontWeight:Ib,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Eb.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Eb.MISC_FOCUS_BORDER}`,backgroundColor:Eb.GREYSCALE_0_03,borderRadius:Ab},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Eb.GREYSCALE_25,"&.Mui-selected":{color:Eb.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:wb,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Eb.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Eb.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Eb.GREYSCALE_85}`,borderRight:`1px solid ${Eb.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ib,backgroundColor:Eb.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:Eb.GREYSCALE_98,borderBottom:`1px solid ${Eb.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Eb.GREYSCALE_85}`,borderTop:`1px solid ${Eb.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Eb.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Eb.GREYSCALE_0_05,"&:hover":{backgroundColor:Eb.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Eb.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>b.createElement(Vb,{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 ${Eb.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:wb,borderRadius:Ab,padding:"7px 16px",border:`1px solid ${Eb.GREYSCALE_0_15}`,backgroundColor:Eb.GREYSCALE_100_60,color:Eb.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Eb.GREYSCALE_0_10,border:`1px solid ${Eb.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Eb.GREYSCALE_0_03,border:`1px solid ${Eb.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Eb.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Eb.MISC_FOCUS_BORDER}`,border:`1px solid ${Eb.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Eb.GREYSCALE_25,backgroundColor:Eb.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Eb.GREYSCALE_0_10,border:`1px solid ${Eb.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Cb,height:24,width:24,padding:7},sizeLarge:{fontSize:Rb,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:wb,borderRadius:Ab}}},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:Eb.GREYSCALE_20},tooltip:{backgroundColor:Eb.GREYSCALE_20,fontSize:Cb,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Kb={mode:"light",primary:{light:Eb.GREEN_PALE,main:Eb.GREEN,dark:Eb.GREEN_DARK,contrastText:Eb.WHITE},secondary:{light:Eb.BLUE_PALE,main:Eb.BLUE,dark:Eb.BLUE_DARK,contrastText:Eb.WHITE},error:{light:Eb.RED_PALE,main:Eb.RED,dark:Eb.RED_DARK,contrastText:Eb.WHITE},warning:{light:Eb.ORANGE_PALE,main:Eb.ORANGE,dark:Eb.ORANGE_DARK,contrastText:Eb.WHITE},success:{light:Eb.GREEN_PALE,main:Eb.GREEN,dark:Eb.GREEN_DARK,contrastText:Eb.WHITE},info:{light:Eb.BLUE_PALE,main:Eb.BLUE,dark:Eb.BLUE_DARK,contrastText:Eb.WHITE},text:{primary:Eb.TEXT_PRIMARY,secondary:Eb.TEXT_SECONDARY,disabled:Eb.GREYSCALE_0_30},action:{hover:Eb.GREYSCALE_0_03,hoverOpacity:.05,selected:Eb.GREYSCALE_0_05},amethyst:{main:Eb.PURPLE,light:Eb.PURPLE_PALE,dark:Eb.PURPLE_DARK,contrastText:Eb.WHITE},background:{paper:Eb.WHITE,default:Eb.GREYSCALE_95},divider:Eb.GREYSCALE_0_15},Xb=e=>({components:Ub,palette:Kb,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:wb,fontWeightLight:Db,fontWeightRegular:_b,fontWeightMedium:Ib,fontWeightBold:Mb,htmlFontSize:wb,fontFamily:Pb.FONT_FAMILY,button:{fontWeight:Ib,fontSize:wb,textTransform:"none"},body1:{fontSize:Rb,lineHeight:"24px"},body2:{fontSize:wb,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Lb,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Rb,fontWeight:Ib,lineHeight:"16px"},h6:{fontSize:wb,fontWeight:Ib,lineHeight:"16px"},caption:{color:Eb.TEXT_SECONDARY},subtitle1:{fontSize:wb,color:Eb.TEXT_SECONDARY},subtitle2:{fontSize:Cb,color:Eb.TEXT_SECONDARY}},shape:{borderRadius:Ab}}),Zb={...Sb,MISC_FOCUS_BORDER:Eb.MISC_FOCUS_BORDER},Jb=Xb().palette,Qb={TEXT:Jb.text.primary,DISABLED:Jb.text.disabled,HOVER:Jb.action.hover,WHITE:Zb.GREYSCALE_100,BORDER_LIGHT:Zb.GREYSCALE_90,BORDER_MEDIUM:Zb.GREYSCALE_85,BORDER_HEAVY:Zb.GREYSCALE_50,DARK_MODE_TEXT:Zb.GREYSCALE_95,DARK_MODE_BORDER:Zb.GREYSCALE_95,DARK_MODE_DISABLED:Zb.GREYSCALE_70,DARK_MODE_BACKGROUND:Zb.GREYSCALE_20},ev=(e,t)=>{const r=mn(e),n=r.l<70,o=100===r.l;return 0===r.opacity?(r.opacity=t.opacity,r.toString()):o?zr(`rgba(0, 0, 0, ${t.opacity})`).toString():n?r.brighter(t.brighter).toString():r.darker(t.darker).toString()},tv=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,rv=e=>{const t=(e=>{const t=tv.exec(e);if(t){const[,e,r,n,o]=t;return zr(+r,+n,+o,+e/255)}return zr(e)})(e);return Number.isNaN(t.r)?null:t.toString()},nv=e=>e.isDark?{background:e.color,borderColor:Qb.DARK_MODE_BORDER,color:Qb.DARK_MODE_TEXT,disabledColor:Qb.DARK_MODE_DISABLED,iconColor:Qb.DARK_MODE_TEXT}:{background:e.color,borderColor:Qb.BORDER_MEDIUM,color:Qb.TEXT,disabledColor:Qb.DISABLED},ov=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=y((()=>nv(n.background)),[n]);if(!r.active)return null;const a=o?b.createElement(mb,{footerStyle:i},e):null;return t?k.createPortal(e,t):a},iv=_({}),av=()=>S(iv),lv=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,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,v=y((()=>nv(p.background)),[p]),x=o?o.getBoundingClientRect().width:m.width,S=fr({translator:d}),E=y((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:m,layout:h,footerStyle:v,tabIndex:g,width:x})),[t,r,n,o,i,a,l,s,u,c,S,p,f,m,h,v,g,x]);return b.createElement(iv.Provider,{value:E},e)};let sv=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),uv=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const cv=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=av(),{page:o,rowsPerPage:i}=r;if(t<=uv.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return b.createElement(bb,{variant:"caption"},a)},dv=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=av(),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 b.createElement(b.Fragment,null,b.createElement(bb,{variant:"caption",id:d},u,":"),b.createElement(hb,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},pv=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=av();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>uv.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=b.createElement(b.Fragment,null,t.rowsPerPageOptions.map((e=>b.createElement("option",{key:e,value:e},e))));return b.createElement(dv,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},fv=1e3,mv="…",hv=({totalPages:e,page:t})=>{const r=Math.min(e,fv),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-fv):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return b.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(b.createElement("option",{key:"startMoreOptions",value:mv,disabled:!0},mv)),o<e-1&&a.push(b.createElement("option",{key:"endMoreOptions",value:mv,disabled:!0},mv)),b.createElement(b.Fragment,null,a)},gv=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=av(),{page:o}=e;if(t<=uv.SelectPage)return null;const i=b.createElement(hv,{totalPages:r,page:o});return b.createElement(dv,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};function bv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vv=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bv(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("defs",null,b.createElement("path",{id:"arrow_left_svg__luiicons_arrow_left-a",d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),b.createElement("use",{xlinkHref:"#arrow_left_svg__luiicons_arrow_left-a",fillRule:"evenodd"}))));function yv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xv=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){yv(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("defs",null,b.createElement("path",{id:"arrow_left_stop_svg__arrow-left-stop-a",d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8l6-6ZM4 2v12H2V2h2Z"})),b.createElement("use",{xlinkHref:"#arrow_left_stop_svg__arrow-left-stop-a"}))));function Sv(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ev=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Sv(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("defs",null,b.createElement("path",{id:"arrow_right_stop_svg__arrow-right-stop-a",d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5 3.5 2ZM14 2v12h-2V2h2Z"})),b.createElement("use",{xlinkHref:"#arrow_right_stop_svg__arrow-right-stop-a"})))),Cv={FirstPage:xv,PreviousPage:vv,NextPage:Gg,LastPage:Ev,FirstPageRTL:Ev,PreviousPageRTL:Gg,NextPageRTL:vv,LastPageRTL:xv},wv=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=av(),u=Cv[`${r}${"rtl"===n?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},Rv=()=>{const{pageInfo:e,width:t}=av(),r=0===e.page,{IconComponent:n,styledProps:o}=wv({type:sv.FirstPage,disabledCondition:r,pageNumber:0});return t<=uv.FirstPage?null:b.createElement(gb,o,b.createElement(n,{height:ct}))},Lv=()=>{const{pageInfo:e}=av(),t=0===e.page,{IconComponent:r,styledProps:n}=wv({type:sv.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return b.createElement(gb,n,b.createElement(r,{height:ct}))},Av=e=>{e.stopPropagation(),e.preventDefault()},Dv=(e,t,r=!1)=>{r&&e.key===pt.TAB&&!e.shiftKey&&(Av(e),((e,t,r)=>{var n,o,i,a;const l=null!==(n=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!==n?n: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,r)})(e.target,t,!1))},_v=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=av(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=wv({type:sv.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>uv.FirstPage&&o>uv.LastPage)&&t.enabled?e=>Dv(e,t,n):null;return b.createElement(gb,xu({},l,{onKeyDown:s}),b.createElement(a,{height:ct}))},Iv=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=av(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=wv({type:sv.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>Dv(e,t,n):null;return o<=uv.LastPage?null:b.createElement(gb,xu({},l,{onKeyDown:s}),b.createElement(a,{height:ct}))};var Mv=I((e=>b.createElement(lv,e,b.createElement(pv,null),b.createElement(gv,null),b.createElement(cv,null),b.createElement(Rv,null),b.createElement(Lv,null),b.createElement(_v,null),b.createElement(Iv,null))));const Pv=e=>b.createElement(ov,e,b.createElement(Mv,e)),Ov=up(bm,{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)":{[`& .${mt}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${mt}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),kv=up(bm)({position:"absolute",height:"100%",width:"3px"}),Tv=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=y((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=n||o?ht.PixelsMin:ht.PixelsMinTable,f=r?0:1,m={left:n&&!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:gt.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},v=e=>{const t=e.clientX-d.initX;h(t)},x=e=>{Av(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",x),g()},S=e=>{const t=e.touches[0].clientX-d.initX;h(t)},E=e=>{Av(e),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E),g()},C=!n&&s?e=>{if(e.key===pt.LEFT||e.key===pt.RIGHT){Av(e);const t=d.columnWidth-d.initWidth,r=5,n=e.key===pt.LEFT?t-r:t+r;h(n)}else e.key===pt.SPACE||e.key===pt.ENTER?(Av(e),s(e),g()):e.key===pt.ESC&&(Av(e),s(e),h(d.initWidth))}:void 0;return b.createElement(Ov,{className:ft,isLastColumn:r,hoverColor:i,style:m,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",x),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:gt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",S),document.addEventListener("touchend",E),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:C,onBlur:s,"data-testid":ft},b.createElement(kv,{className:mt}))},qv=_({}),Nv=()=>S(qv),Fv=({children:e,model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,flags:l})=>{const s=y((()=>({model:t,app:r,interactions:n,embed:o,theme:i,keyboard:a,flags:l})),[r,n,t,o,i,a,l]);return b.createElement(qv.Provider,{value:s},e)},zv=e=>{const{text:t,fontFamily:r,fontSize:n,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var r;const{theme:n}=Nv(),o=null!==(r=n.getStyle("","","fontFamily"))&&void 0!==r?r:Ot;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:b.createElement("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a}},b.createElement("span",{style:{...Wt,fontFamily:r,fontSize:n,fontStyle:"italic",color:"#7b7a78"}},t))},Gv=_({}),$v=()=>S(Gv),Hv=({children:e,styleService:t})=>b.createElement(Gv.Provider,{value:t},e),Bv=21,Wv=20,jv=Wv,Vv=16+Ft+1,Yv=.75,Uv="/qHyperCubeDef",Kv=-1,Xv="PSEUDO-DIM",Zv=e=>void 0===e?kt:e,Jv=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,Qv=e=>Jv(e,ht.PixelsDefault),ey=(e,t)=>Jv(e,ht.PercentageDefault)*t/100,ty=(e,t,r)=>{switch(null==t?void 0:t.type){case gt.Pixels:return Qv(t.pixels);case gt.Percentage:return ey(t.percentage,e);case gt.FitToContent:case gt.Auto:default:return r}};function ry({layoutService:e,tableWidth:t,headersData:r}){const n=$v(),{measureText:o}=En(n.header),{estimateWidth:i}=En({...n.dimensionValues,fontWeight:Zv(n.dimensionValues.fontWeight)}),{measureText:a}=En({...n.dimensionValues,...n.measureLabels}),l=C(((n,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d}=e,p=(e=0)=>c.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=a(n)+Vv;return Math.max(r,ty(t,o,Math.max(i,e)))}),0),f=e=>r.data.reduce(((t,r)=>{const n=r[e];if(!n)return t;if(n.id===Xv)return t;const i=(e=>{const{label:t,isLocked:r}=e,n=r?jv:0;return Vv+o(t)+Wv+n})(n);return Math.max(i,t)}),0);let m=0;const h=r.data.at(-1).map(((e,r)=>{let o=Vv;if(n&&void 0!==l&&l===e.colIdx)o=n;else{let n;e.columnWidthLocation===St.Pivot?n=u:e.columnWidthLocation===St.Dimension&&({columnWidth:n}=e);let a=0;e.isLeftDimension?a=e.id===Xv?p():Math.max(f(r),((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:n}=e,o=!d&&n&&t<s-1?Bv:0;return Vv+i(r)+o})(e,r)):e.isLeftDimension||(a=f(r),e.columnWidthLocation===St.Measures&&(a=p(a))),o=ty(t,n,a)}return m+=o,o}));return{leftGridWidth:Math.min(t*Yv,m),leftGridColumnWidths:h,leftGridFullWidth:m}}),[i,r.data,e,o,a,t]),[s,u]=v(l);dr((()=>{u(l())}),[l]);const c=C(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function ny({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:n,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=$v(),{estimateWidth:c,measureText:d}=En(u.measureValues),{estimateWidth:p}=En({...u.dimensionValues,fontWeight:Zv(u.dimensionValues.fontWeight)}),f=t-o-Ft,m=r.at(-1),h=m===Kv,g=a.length-i>r.length?Bv:0,b=y((()=>{const e=h?s:[m],t=l.x/e.length,r=[],n=[];let o=f;const i=(e,n)=>{r[e]=Math.min(ht.PixelsMax,Math.max(ht.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(r){case gt.Pixels:i(t,Qv(o));break;case gt.Percentage:i(t,ey(a,f));break;case gt.FitToContent:i(t,((e,t)=>Vv+(h?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u));break;case gt.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(ht.AutoMin,i)}))}return r}),[h,s,m,l.x,f,c,d,p,g]),v=y((()=>{if(h){return s.reduce(((e,t,r)=>e+b[r]),0)/s.length}return b[0]}),[h,b,s]),x=parseFloat((n/e.size.x).toFixed(12)),S=C((t=>h&&void 0!==t?b[e.getMeasureInfoIndexFromCellIndex(t,!0)]-x:v-x),[h,b,e,v,x]),E=l.x*v;return{rightGridFullWidth:E,rightGridWidth:Math.min(E,f),getRightGridColumnWidth:S}}const oy=e=>{var t,r,n,o;return e===Kv?Xv:null!==(t=null!==(r=null!==(n=e.qLibraryId)&&void 0!==n?n:e.cId)&&void 0!==r?r:null===(o=e.qGroupFallbackTitles)||void 0===o?void 0:o.join(""))&&void 0!==t?t:e.qFallbackTitle},iy=(e,t,r)=>{var n;const o=oy(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===Kv?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:St.Measures}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isActivelySorted:!1,isLocked:null!==(n=t.qLocked)&&void 0!==n&&n,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:St.Dimension}},ay=({layoutService:e,lastRow:t,lastCol:r})=>{let n=r;var o;t.length>0&&(n=(o=r).at(-1)===Kv?o.slice(0,-1):o);const i=n.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,r,n)=>{const o=r===n.length-1;l[i-1][r]=iy(e,t,o)})),n.forEach(((t,r,n)=>{const o=r===n.length-1;l[r][a-1]=iy(e,t,o)})),l},ly=(e,t,r)=>{var n,o;const i=((e,t,r)=>{let n;if(n=0===t.length||t.includes(Kv)?ay({layoutService:e,lastRow:r,lastCol:t}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(ay({layoutService:e,lastRow:t,lastCol:r})),n.length)for(const[t,a]of n[n.length-1].entries()){var o,i;a&&(a.canBeResized=!0,a.isActivelySorted=t===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),a.colIdx=a.colIdx||t,a.dimensionInfoIndex===Kv?a.columnWidthLocation=St.Measures:a.isLeftDimension?a.columnWidthLocation=St.Dimension:r.at(-1)===Kv?a.columnWidthLocation=St.Measures:e.hasPseudoDimOnLeft&&(a.columnWidthLocation=St.Pivot))}return n})(e,t,r);return{data:i,size:{x:null!==(n=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==n?n:0,y:i.length}}},sy=(e,t)=>{var r,n;const o=t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r||null===(r=r[null==e?void 0:e.cellForegroundColor])||void 0===r?void 0:r.qText,a=null==o||null===(n=o.qValues)||void 0===n||null===(n=n[null==e?void 0:e.cellBackgroundColor])||void 0===n?void 0:n.qText,l=a?rv(a):null,s=i?rv(i):null,u=((e,t)=>e||!t?null:bn(t)?Qb.WHITE:Qb.TEXT)(s,l);return{color:null!=u?u:s,background:l}};let uy;const cy=new Uint8Array(16);function dy(){if(!uy&&(uy="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!uy))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return uy(cy)}const py=[];for(let e=0;e<256;++e)py.push((e+256).toString(16).slice(1));var fy={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function my(e,t,r){if(fy.randomUUID&&!t&&!e)return fy.randomUUID();const n=(e=e||{}).random||(e.rng||dy)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return py[e[t+0]]+py[e[t+1]]+py[e[t+2]]+py[e[t+3]]+"-"+py[e[t+4]]+py[e[t+5]]+"-"+py[e[t+6]]+py[e[t+7]]+"-"+py[e[t+8]]+py[e[t+9]]+"-"+py[e[t+10]]+py[e[t+11]]+py[e[t+12]]+py[e[t+13]]+py[e[t+14]]+py[e[t+15]]}(n)}const hy=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:my()},gy=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:gy(e,t)),e),by=(e,t,r,n,o,i)=>{if(o)return gy(0,e);const a=i?Tt-r:qt-n;let l=e.qUp+e.qDown;if(i&&0===r){const r=(t+e.qUp)%Tt;l=e.qDown+r}return Math.min(a,gy(l,e))},vy=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0})=>{const c=e.qType===Rt.NX_DIM_CELL_PSEUDO,d={id:hy(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:by(e,o,i,n,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===Rt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===Rt.NX_DIM_CELL_EMPTY,isNull:e.qType===Rt.NX_DIM_CELL_NULL,isPseudoDimension:c,expressionColor:sy(s,e),selectionCellType:u?xt.NX_CELL_LEFT:xt.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:c?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex};return t&&(t.children[d.mainAxisPageCoord-t.mainAxisPageCoord]=d),d},yy=(e,t,r,n,o,i,a)=>{if(!t.length)return e;let l=0;return function t(s,u,c,d=0){e[d]||(e[d]={}),c.forEach(((c,p)=>{var f;l+=0===p?0:1;const m=r.qTop-n.page*n.rowsPerPage,h=Math.max(0,m+l-c.qUp),g=r.qTop+l-c.qUp,b=null!==(f=e[d][h])&&void 0!==f?f:vy({node:c,parent:u,root:s,x:d,y:g,pageY:h,layoutService:o,dimensionInfo:i[d],attrExprInfoIndex:a[d],isLeftColumn:!0});e[d][h]=b,c.qSubNodes.length&&t(s||b,b,c.qSubNodes,d+1)}))}(null,null,t,0),e},xy=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n[r+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},Sy=e=>{const t=e[0],r=t?Object.values(t):[],n=null==t?void 0:t[0],o=r.at(-1);return null!=n&&n.isTotal?n.isLeafNode?n.mainAxisPageCoord:n.mainAxisPageCoord+n.leafCount-1:null!=o&&o.isTotal?o.mainAxisPageCoord-1:-1},Ey=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i})=>{const{qLeft:a,qArea:l}=t;if(!a.length)return e;const s=yy(e.grid,a,l,r,n,o,i);xy(s,r.rowsOnCurrentPage);const u=Sy(s);return{...e,grid:s,columnCount:s.length,totalDividerIndex:u}},Cy=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===Rt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:hy(),ref:t,isNull:u}}))})),o},wy=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n.length?Cy({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},Ry=(e,t,r,n,o,i,a)=>{if(!t.length)return e;let l=0;!function t(a,s,u,c=0){e[c]||(e[c]={}),u.forEach(((u,d)=>{var p;l+=0===d?0:1;const f=r.qLeft+l-u.qUp,m=null!==(p=e[c][f])&&void 0!==p?p:vy({node:u,parent:s,root:a,x:f,y:c,pageY:c,layoutService:n,dimensionInfo:o[c],attrExprInfoIndex:i[c],isLeftColumn:!1});e[c][f]=m,u.qSubNodes.length&&t(a||m,m,u.qSubNodes,c+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},Ly=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i})=>{const{qTop:a,qArea:l}=t;if(!a.length)return e;const s=Ry(e.grid,a,l,r,n,o,i);xy(s,r.size.x);const u=Sy(s);return{...e,grid:s,rowCount:s.length,totalDividerIndex:u}},Ay=e=>{if(e===Kv)return{cellForegroundColor:-1,cellBackgroundColor:-1};const t=e.qAttrExprInfo;return{cellForegroundColor:t.findIndex((({id:e})=>e===Et.CellForegroundColor.toString())),cellBackgroundColor:t.findIndex((({id:e})=>e===Et.CellBackgroundColor.toString()))}},Dy=(e,t,r,n,o)=>{const[i,a]=v(null),l=((e,t,r)=>y((()=>({left:e.map(Ay),top:t.map(Ay),measures:r.map(Ay)})),[r,e,t]))(n,o,t.visibleMeasureInfo),s=y((()=>ly(t,o,n)),[t,o,n]),u=C((()=>e.slice(1).reduce(((e,t)=>wy({prevData:e,dataPage:t,pageInfo:r})),((e,t)=>{const{qData:r,qArea:n}=e;return Cy({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(e[0],r))),[e,r]),c=C((()=>e.slice(1).reduce(((e,r)=>Ly({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y})),((e,t,r,n,o)=>{const{qArea:i,qTop:a}=e,l=Ry([],a,i,t,r,n,o);xy(l,t.size.x);const s=Sy(l);return{grid:l,rowCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,o,l.top,s.size.y))),[e,t,o,l.top,s.size.y]),d=C((()=>e.slice(1).reduce(((e,o)=>Ey({prevData:e,nextDataPage:o,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:l.left})),((e,t,r,n,o)=>{const{qArea:i,qLeft:a}=e,l=yy([],a,i,r,t,n,o);xy(l,r.rowsOnCurrentPage);const s=Sy(l);return{grid:l,columnCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,r,n,l.left))),[e,t,r,n,l]),[p,f]=v((()=>u())),[m,h]=v((()=>c())),[g,b]=v((()=>d()));dr((()=>{f(u())}),[u]),dr((()=>{h(c())}),[c]),dr((()=>{b(d())}),[d]),dr((()=>{i&&i.forEach((e=>{f((t=>wy({prevData:t,dataPage:e,pageInfo:r}))),h((r=>Ly({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y}))),b((o=>Ey({prevData:o,nextDataPage:e,pageInfo:r,layoutService:t,visibleLeftDimensionInfo:n,attrExprInfoIndexes:l.left})))}))}),[i]);const x=C((e=>{a(e)}),[]);return{headersData:s,measureData:p,topDimensionData:m,leftDimensionData:g,attrExprInfoIndexes:l,nextPageHandler:x}},_y=Math.sqrt(1e4),Iy=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/_y),n=Math.ceil(e.qHeight/_y);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*_y,qTop:e.qTop+r*_y,qWidth:Math.min(_y,e.qWidth-o*_y),qHeight:Math.min(_y,e.qHeight-r*_y)});return t};function My({model:e,nextPageHandler:t,pageInfo:r,layoutService:n}){const o=(e=>{const t=D(e);return t.current=e,t})(r.page),i=e,a=C((async(e,t)=>{var r;await(null==i||null===(r=i.collapseLeft)||void 0===r?void 0:r.call(i,Uv,e,t,!1))}),[i]),l=C((async(e,t)=>{await(null==i?void 0:i.collapseTop(Uv,e,t,!1))}),[i]),s=C((async(e,t)=>{await(null==i?void 0:i.expandLeft(Uv,e,t,!1))}),[i]),u=C((async(e,t)=>{await(null==i?void 0:i.expandTop(Uv,e,t,!1))}),[i]),c=C((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const n=await i.getHyperCubePivotData(Uv,e.reduce(((e,t)=>[...e,...Iy(t)]),[]));o.current===r.page&&t(n)}catch(e){console.error(e)}}),[i,t,r,o]),d=C(((t,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case St.Dimension:c=[{qPath:`${Uv}/qDimensions/${r}/qDef/columnWidth`,oldValue:s[r].columnWidth}];break;case St.Measures:if(o)c=l.map(((e,t)=>({qPath:`${Uv}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${Uv}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case St.Pivot:c=[{qPath:`${Uv}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:r,oldValue:n}=e;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...t})}}));null==e||e.applyPatches(d,!0)}),[e,n]);return y((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,fetchPages:c})),[a,l,s,u,d,c])}const Py=(e,t)=>e>t?wt.Forward:e<t?wt.Backward:wt.None,Oy=(e,t,r)=>(n,o)=>{if(n===Rt.NX_DIM_CELL_PSEUDO)return Kv;const i=t[r+o];return e[i]},ky=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},Ty=({width:e,height:t,children:r,isLeftGrid:n})=>b.createElement("div",{"data-testid":"full-size-container",style:{display:"block",width:n?"fit-content":e,height:t+Ft}},r),qy=e=>`scrollable-container--${e}`,Ny=(e,t)=>{const{width:r,height:n,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=Nv();return b.createElement("div",{ref:t,"data-key":qy(u),style:{width:r,height:n,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i},o)};var Fy=b.forwardRef(Ny);const zy=({width:e,height:t,children:r,style:n,isLeftGrid:o})=>b.createElement("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...n}},r);var Gy=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function $y(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||Gy(n)&&Gy(o)))return!1;var n,o;return!0}function Hy(e,t){var r;void 0===t&&(t=$y);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var By="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Wy(e){cancelAnimationFrame(e.id)}function jy(e,t){var r=By();var n={id:requestAnimationFrame((function o(){By()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var Vy=-1;function Yy(e){if(void 0===e&&(e=!1),-1===Vy||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),Vy=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Vy}var Uy=null;function Ky(e){if(void 0===e&&(e=!1),null===Uy||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Uy="positive-descending":(t.scrollLeft=1,Uy=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Uy}return Uy}var Xy=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Zy(e){var t,r=e.getColumnOffset,n=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 n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Dp(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Dp(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Hy((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=Hy((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=Hy((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(Ky()){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-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Wy(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=jy(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}bp(t,e),t.getDerivedStateFromProps=function(e,t){return Jy(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=Yy();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Ky()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Wy(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=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?Xy:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,S=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],R=this._getVerticalRangeToRender(),L=R[0],A=R[1],D=[];if(n>0&&g)for(var _=L;_<=A;_++)for(var I=C;I<=w;I++)D.push(x(t,{columnIndex:I,data:d,isScrolling:v?S:void 0,key:f({columnIndex:I,data:d,rowIndex:_}),rowIndex:_,style:this._getItemStyle(_,I)}));var M=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return x(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:Rn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},x(u||c||"div",{children:D,ref:s,style:{height:M,pointerEvents:S?"none":void 0,width:P}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],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 n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=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}(P),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Jy=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Qy=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},ex=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},tx=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},rx=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?nx(e,t,r,i,0,n):ox(e,t,r,Math.max(0,i),n)},nx=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=tx(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},ox=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&tx(e,t,n,r).offset<o;)n+=a,a*=2;return nx(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},ix=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=tx(e,t,r,i),u="column"===e?ex(t,i):Qy(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},ax=Zy({getColumnOffset:function(e,t,r){return tx("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return rx("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=tx("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=tx("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:Qy,getEstimatedTotalWidth:ex,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return ix("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return ix("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return tx("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return rx("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=tx("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=tx("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),lx=function(e,t){return e};function sx(e){var t,r=e.getItemOffset,n=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 n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,Dp(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Dp(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Hy((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Hy((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===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},n._getItemStyleCache=void 0,n._getItemStyleCache=Hy((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(Ky()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&Wy(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=jy(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}bp(t,e),t.getDerivedStateFromProps=function(e,t){return ux(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?Yy():0:s.scrollHeight>s.clientHeight?Yy():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(Ky()){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&&Wy(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=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?lx:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,S="horizontal"===o||"horizontal"===f,E=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],R=C[1],L=[];if(u>0)for(var A=w;A<=R;A++)L.push(x(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var D=n(this.props,this._instanceProps);return x(m||h||"div",{className:r,onScroll:E,ref:this._outerRefSetter,style:Rn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},x(l||s||"div",{children:L,ref:a,style:{height:S?"100%":D,pointerEvents:y?"none":void 0,width:S?D:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.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,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(P),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ux=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},cx=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.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=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},dx=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=cx(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},px=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&cx(e,r,t).offset<n;)r+=i,i*=2;return dx(e,t,Math.min(r,o-1),Math.floor(r/2),n)},fx=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},mx=sx({getItemOffset:function(e,t,r){return cx(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:fx,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=cx(e,t,o),p=fx(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?dx(e,t,o,0,r):px(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=cx(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=cx(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function hx(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var gx=["style"],bx=["style"];function vx(e,t){var r=e.style,n=Ln(e,gx),o=t.style,i=Ln(t,bx);return!hx(r,o)&&!hx(n,i)}const yx=(e,t)=>void 0!==e&&(e.isLeafNode?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),xx=10,Sx=(e,t)=>e.current===wt.Backward?t:0,Ex=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e[o];if(void 0===r||void 0===r[t])return!0}return!1},Cx=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,wx=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(Ex(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+l,qWidth:1,qHeight:n};void 0!==t&&Cx(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},Rx=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=n,u=r.current===wt.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return wx({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},Lx=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=Sx(r,xx),u=Math.max(n-s,0);return{startLeft:u,endLeft:u+Math.min(i+xx,l-u),pageTop:o,qHeight:a}})(n,o,r),u=wx({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...Rx({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},Ax=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},Dx=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,_x=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(Ax(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+l,qWidth:n,qHeight:1};void 0!==e&&Dx(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},Ix=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=Sx(r,xx),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+xx,e.rowsOnCurrentPage-s),qLeft:n,qWidth:i}})(e,n,r),s=_x({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const n=r.current===wt.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=_x({startTop:n,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},Mx=async(e,t,r,n,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==wt.None&&(d=Ix({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==wt.None&&(p=Lx({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===wt.None&&a.current===wt.None&&(d=_x({measureData:r,pageInfo:n,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},Px=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];r=l;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(Mx,100),Ox=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}(Mx,75),kx=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=$v();return b.createElement("div",{style:{...e,...Bt,...Yt(r,n,l,o),...Kt({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},Tx=(e,t,r)=>{if(!r.isEnabled(bt)||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},qx={display:"flex",flexDirection:"row",alignItems:"center",height:"100%"},Nx={alignItems:"center",display:"flex",flexDirection:"row",height:"100%",backgroundClip:"padding-box"},Fx=(e,t,r,n)=>t?{...Nx,...e.nullValues}:r?{...qx,color:e.totalValues.color,background:null!=n?n:e.totalValues.background}:{...qx,color:e.measureValues.color,background:null!=n?n:e.measureValues.background},zx=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...Wt,...!r&&jt(e.grid.lineClamp),...t&&{color:t},alignSelf:"flex-start",fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...l,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?kt:s,fontStyle:u,textDecoration:c}},Gx=(e,t,r)=>{const{textAlign:n}=e;return Tx(n,t?"flex-end":"center",r)},$x=(e,t)=>{var r,n;return null!==(r=null==e||null===(n=e[t])||void 0===n?void 0:n.visibleMeasureInfoIndex)&&void 0!==r?r:0},Hx=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o;const i=$v(),{flags:a}=Nv(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:m,lastRow:h,lastColumn:g,attrExprInfoIndexes:v}=n,y=null===(o=s[t])||void 0===o?void 0:o[e],x=t===m.rowsOnCurrentPage-1,S=e===u.size.x-1;if(!y)return b.createElement(kx,{style:{...r,background:l},isLastRow:x,isLastColumn:S,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const E=!y.isNull&&f(e,t),C=y.isNull?u.getNullValueText():y.ref.qText,w=!y.isNull||!Number.isNaN(+C),R=u.hasPseudoDimOnLeft?$x(g,t):$x(h,e),L=sy(v[R],y.ref),A={...Fx(i,y.isNull,E,L.background),...Yt(x,S,i.grid.border,c),...Kt({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...Bt,display:"flex",justifyContent:Gx(u.visibleMeasureInfo[R],w,a)};return b.createElement("div",{title:C,style:r,"data-testid":"measure-cell","data-row-index":t,"data-col-index":e},b.createElement("div",{style:A},b.createElement("span",{style:zx(i,L.color,w,E,y.isNull)},C)))};var Bx=b.memo(Hx,vx);const Wx=(e,t)=>{var r,n;return null!==(r=null===(n=t.list[e])||void 0===n?void 0:n.id)&&void 0!==r?r:e.toString()},jx=({columnIndex:e,rowIndex:t,data:r})=>{var n,o;return null!==(n=null===(o=r.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==n?n:`${t}-${e}`},Vx={...Ht,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},Yx=({dataModel:e,dataGridRef:t,height:r,rowHightCallback:n,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:m,pageInfo:h,verticalScrollDirection:g,horizontalScrollDirection:v})=>{const{grid:{divider:y},contentCellHeight:x}=$v(),S={...Vx,borderColor:y,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},E=(e=>C((t=>{var r;const n=null===(r=e.grid.at(-1))||void 0===r?void 0:r[t];return yx(n,e.totalDividerIndex)}),[e]))(s),w=(e=>C((t=>{var r;const n=null===(r=e.grid.at(-1))||void 0===r?void 0:r[t];return yx(n,e.totalDividerIndex)}),[e]))(u),R=((e,t)=>C(((r,n)=>{var o,i;return!!(null!==(o=t.grid.at(-1))&&void 0!==o&&null!==(o=o[r])&&void 0!==o&&o.isTotal||null!==(i=e.grid.at(-1))&&void 0!==i&&null!==(i=i[n])&&void 0!==i&&i.isTotal)}),[t,e]))(s,u),L=(({viewService:e,dataModel:t,measureData:r,layoutService:n,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>C((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===wt.None?0:xx),m=e.gridHeight+a+(l.current===wt.None?0:xx);let h=Px;m*f>1500&&(h=Ox),await h(t,n,r,o,e,l,s)}),[e,n,t,r,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:h,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return dr((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),M((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,r,t,x]),0===a.size.x?null:b.createElement(ax,{ref:t,style:S,columnCount:a.size.x,columnWidth:m,height:r,rowCount:h.rowsOnCurrentPage,rowHeight:n,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:R,shouldShowTotalCellBottomDivider:E,shouldShowTotalCellRightDivider:w,pageInfo:h,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:L,estimatedRowHeight:n(),estimatedColumnWidth:m(),itemKey:jx},Bx)};var Ux=I(Yx);function Kx(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Xx=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Kx(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),b.createElement("defs",null,b.createElement("path",{id:"lock_svg__lock-a",d:"M13 7H8h5V4.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-1H3h10Z"})),b.createElement("use",{xlinkHref:"#lock_svg__lock-a",fillRule:"evenodd"})))),Zx=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(ft)},Jx=e=>{const[t,r]=v(!1);return dr((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}};function Qx(e,t){const r=e.isActive(),[n,o]=v(new Map),[i,a]=v(null);E((()=>{const r=()=>{a(null),o(new Map)},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}}),[e,t]);const l=C((e=>0!==n.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===xt.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[n,i]),s=C((t=>async r=>{if(Zx(r))return;if(e.isActive()||await e.begin([Uv]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,r)=>{const n=new Map(t);return n.has(e.ref.qElemNo)?(n.delete(e.ref.qElemNo),{nextSelectedPivotCells:n,nextSelectedField:0===n.size?null:r}):(n.set(e.ref.qElemNo,e),{nextSelectedPivotCells:n,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===xt.NX_CELL_LEFT?e.x:e.y}})})(t,n,i);try{await e.select({method:"selectPivotCells",params:[Uv,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,n,i]),u=C((e=>r&&!l(e)&&n.has(e.ref.qElemNo)),[n,l,r]);return y((()=>({select:s,isSelected:u,isActive:r,isLocked:l})),[s,u,r,l])}const eS=_({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),tS=()=>S(eS),rS=({children:e,selections:t,updatePageInfo:r})=>{const n=Qx(t,r);return b.createElement(eS.Provider,{value:n},e)};const nS=({cellInfo:e,columnWidth:t,dataModel:r,isLastColumn:n,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=Nv(),{isActive:l}=tS(),s=$v(),[,u]=v({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=function(e,t){var r,n,o,i;const a=null!==(r=null===(n=t.expressionColor)||void 0===n?void 0:n.background)&&void 0!==r?r:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===zt.Transparent?Qb.WHITE:l,u=null===(o=Tr(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=Tr(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}(s,e);return b.createElement(Tv,{isPivot:!0,columnWidth:t,isLastColumn:n,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==r?void 0:r.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};var oS=function(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=function(e,t,r="Mui"){const n=Ba[t];return n?`${r}-${n}`:`${Ha.generate(e)}-${t}`}(e,t,r)})),n}("MuiBox",["root"]);const iS=iu(),aS=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=va("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Hl),a=g.forwardRef((function(e,a){const l=function(e=Vl){return jl(e)}(r),s=function(e){const{sx:t}=e,r=Ln(e,ns),{systemProps:n,otherProps:o}=os(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return xa(r)?Rn({},n,r):n}:Rn({},n,t),Rn({},o,{sx:i})}(e),{className:u,component:c="div"}=s,d=Ln(s,ls);return rs.jsx(i,Rn({as:c,ref:a,className:as(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:wn,defaultTheme:iS,defaultClassName:oS.root,generateClassName:Ha.generate});const lS=su(aS,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),sS=su("div")({position:"absolute",left:0,bottom:0}),uS=su("div")({...$t,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),cS=su("div")((()=>({...$t}))),dS=su("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),pS={[db.SORTING]:!0,[db.SELECTIONS]:!0,[db.SEARCHING]:!0},fS=({dataModel:e,cell:t,style:r,isFirstColumn:n,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d,layoutService:p})=>{var f;const m=D(null),h=$v(),{app:g,model:y,interactions:x,embed:S,flags:E}=Nv(),{fontSize:C,fontFamily:w,fontStyle:R,fontWeight:L,textDecoration:A,color:_,background:I,hoverBackground:M,activeBackground:P}=h.header,O=D(null),{shouldShowLockIcon:k,shouldShowMenuIcon:T}=u,{open:q,setOpen:N,handleOpenMenu:F,setIsAdjustingWidth:z}=(({interactions:e,dataModel:t})=>{const[r,n]=v(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=Jx([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e.active&&!Zx(t)&&!o&&n(!0),setIsAdjustingWidth:i}})({interactions:x,dataModel:e}),G={sortFromMenu:async(e,r)=>{e.stopPropagation(),await l(t,r)},changeActivelySortedHeader:s},$={embed:S,listboxRef:m},H={model:y,app:g},{labelTextAlign:B}=null!==(f=p.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},W=Tx(B,"flex-start",E);return b.createElement(lS,{title:t.label,interactions:x,background:q?P:I,hoverBackground:M,shouldShowMenuIcon:T,isDimension:t.isDim,style:{...r,...Bt,...Ut(t,i,n,o,h.grid.border),color:_},"data-testid":"title-cell",onClick:F},b.createElement(uS,null,k&&b.createElement(cS,null,b.createElement(Xx,{height:12})),b.createElement(dS,{fontFamily:w,fontSize:C,fontStyle:R,fontWeight:L,textDecoration:A,justifyContent:W},b.createElement("span",{style:Wt},t.label))),t.isDim&&b.createElement(b.Fragment,null,b.createElement(fb,{headerData:t,translator:a,anchorRef:O,open:q,setOpen:N,interactions:x,menuAvailabilityFlags:pS,sortRelatedArgs:G,searchRelatedArgs:$,selectionRelatedArgs:H,shouldShowMenuIcon:T}),b.createElement(sS,{ref:m}),b.createElement(sS,{ref:O})),b.createElement(nS,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:z}))},mS=({rowSpan:e,columnSpan:t})=>{const r=$v();return e>0&&t>0?b.createElement("div",{style:{...Ht,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null},hS={display:"grid",width:"fit-content"},gS=({dataModel:e,columnWidths:t,rowHight:r,headersData:n,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u,layoutService:c})=>b.createElement("div",{style:{...hS,gridTemplateColumns:t.map((e=>`${e}px`)).join(" "),gridTemplateRows:n.data.map((()=>`${r}px`)).join(" "),height:s}},n.size.y>1&&b.createElement(mS,{columnSpan:n.size.x-1,rowSpan:n.size.y-1}),n.data.map(((s,d)=>s.reduce(((s,p,f)=>{if(p){const m=l(f,p.isLocked,p.label);s.push(b.createElement(fS,{dataModel:e,key:p.id,style:{width:t[f],height:r,gridColumn:f+1,gridRow:d+1,zIndex:n.size.x-f},isLastRow:d===n.size.y-1,isFirstColumn:0===f,isLastColumn:f===n.size.x-1,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,cell:p,iconsVisibilityStatus:m,columnWidth:t[f],overrideLeftGridWidth:u,layoutService:c}))}return s}),[]))));var bS=I(gS);const vS=(e,t,r,n,o)=>{M((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},yS=(e,t)=>{dr((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},xS=(e,t,r,n)=>{var o;const i=r?"flex-start":"center";if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var a;const{labelTextAlign:r}=null!==(a=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==a?a:{};return Tx(r,i,n)}const{textAlign:l}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return Tx(l,i,n)};var SS;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(SS||(SS={}));const ES={brighter:.5,darker:.3,opacity:.03},CS=(e,{cell:t,styleService:r})=>{if(e===SS.Background||e===SS.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},wS=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return"#0aaf54";const o=CS(SS.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?CS(SS.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${ev(i=o,ES)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},RS=({cell:e,styleService:t,isCellSelected:r})=>r?"white":CS(SS.Color,{cell:e,styleService:t}),LS=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=CS(SS.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?kt:o},AS=({cell:e,styleService:t})=>CS(SS.FontStyle,{cell:e,styleService:t}),DS=({cell:e,styleService:t})=>CS(SS.TextDecoration,{cell:e,styleService:t}),_S=e=>e?"pointer":"default",IS=()=>{},MS=({children:e,text:t,reactWindowStyle:r,cell:n,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{const d=$v(),{interactions:p,flags:f}=Nv(),{select:m,isLocked:h}=tS(),{layoutService:g,showLastBorder:v}=o,y=h(n)||n.isLockedByDimension,x=!(y||!p.active||!p.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),S=x?m(n):void 0;return b.createElement("div",{title:p.passive?t:void 0,style:{...r,...Yt(a,l,d.grid.border,v),...Kt({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:d.grid.divider}),...Bt,padding:"0px 4px",cursor:_S(x),background:wS({styleService:d,isCellSelected:u,cell:n,isCellLocked:y}),zIndex:s?void 0:g.size.x-n.x,justifyContent:xS(n,g,s,f),display:"flex"},"aria-hidden":"true",onClick:S,onKeyUp:IS,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType},e)};function PS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const OS=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){PS(e,t,r[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),b.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7Zm0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8Zm4-7.5H4v-1h8v1Z"}))));function kS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TS=A(((e,t)=>b.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){kS(e,t,r[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),b.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7Zm0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8Zm4-7.5H4v-1h8v1ZM8.5 4v8h-1V4h1Z"})))),qS=({expandOrCollapse:e,cell:t})=>r=>{null==e||e(t.y,t.x),r.stopPropagation()},NS=({cell:e,dataModel:t,isLeftColumn:r,isCellSelected:n})=>{const o=$v(),{interactions:i}=Nv(),{isActive:a}=tS();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=RS({cell:e,styleService:o,isCellSelected:n}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?TS:OS;let p;return p=e.ref.qCanExpand?r?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:r?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,b.createElement(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:r?c-6.5-4:void 0},onClick:l?void 0:qS({cell:e,expandOrCollapse:p})})},FS=({children:e,isLeftColumn:t})=>{const r=t?"flex-start":"center";return b.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:r,width:"fit-content",maxWidth:"100%",position:"sticky",left:4,top:0,right:t?void 0:4,alignSelf:r}},e)},zS=e=>e.contentRowHeight/2-e.contentTextHeight/2,GS=({children:e,cell:t,styleService:r,isCellSelected:n,isLeftColumn:o})=>b.createElement("span",{style:{...Wt,...jt(o?Math.max(r.grid.lineClamp,t.leafCount*r.grid.lineClamp):1),color:RS({cell:t,styleService:r,isCellSelected:n}),fontWeight:LS({cell:t,styleService:r}),fontStyle:AS({cell:t,styleService:r}),textDecoration:DS({cell:t,styleService:r}),fontFamily:r.dimensionValues.fontFamily,fontSize:r.dimensionValues.fontSize,marginTop:o?zS(r):void 0,padding:"0px 4px"}},e),$S=({index:e,style:t,data:r})=>{const n=$v(),{isSelected:o}=tS(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=Jx([r]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p}=r,f=((e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]})(e,r),m=s?e===c-1:d,h=s?d:e===c-1,g=yx(f,p);if(void 0===f){const{background:r}=n.dimensionValues;return b.createElement(kx,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:h,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:g})}const v=o(f);return b.createElement(MS,{text:f.ref.qText,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:h,isCellSelected:v,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:i},b.createElement(FS,{isLeftColumn:s},b.createElement(NS,{isLeftColumn:s,isCellSelected:v,cell:f,dataModel:l}),b.createElement(GS,{isLeftColumn:s,isCellSelected:v,cell:f,styleService:n},f.ref.qText)),b.createElement(nS,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?St.Measures:St.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:h,setIsAdjustingWidth:a}))};var HS=b.memo($S,vx);const BS=(e,t,r,n,o)=>i=>{const a=n?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r},WS=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*n():r||void 0===a?n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*n()},jS=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},VS=(e,t)=>r=>{e.current&&(e.current[t]=r)},YS={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Ht},US={overflow:"hidden",willChange:"auto",flexShrink:0},KS=({dataModel:e,leftGridRef:t,width:r,columnWidths:n,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=$v();yS(t,a),vS(t,r,o,d,i);const f=u.rowsOnCurrentPage*d;return b.createElement("div",{style:{...YS,borderColor:p}},a.grid.map(((r,p)=>{const m=p===a.columnCount-1,h=oy(s[p]),{itemCount:g,estimatedItemSize:v,listValues:y}=jS(r,f,u.rowsOnCurrentPage,m);return b.createElement(mx,{key:h,ref:VS(t,p),style:{...US,flexGrow:m?1:0},height:o,width:n[p],itemCount:g,itemSize:BS(r,y,d,m,c.qcy),layout:"vertical",itemData:{layoutService:i,dataModel:e,list:r,isLeftColumn:!0,isLast:m&&!i.layout.snapshotData,itemCount:g,showLastBorder:l,listValues:y,totalDividerIndex:a.totalDividerIndex},itemKey:Wx,estimatedItemSize:v},HS)})))};var XS=I(KS);const ZS={overflow:"hidden",willChange:"auto"},JS={...Ht,borderWidth:"0px 0px 0px 1px"},QS=({dataModel:e,topGridRef:t,rowHightCallback:r,width:n,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=$v(),p={...JS,borderColor:c,height:o};yS(t,a),vS(t,n,o,d,i);const f=i.size.x*s();return 0===a.rowCount?b.createElement("div",{style:{width:n,height:o,...JS}}):b.createElement("div",{style:p},a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=jS(o,f,i.size.x,d),g=i.getDimensionInfo(u.data[c][u.size.x-1].dimensionInfoIndex),v=g?oy(g):`empty ${c}`;return b.createElement(mx,{key:v,ref:VS(t,c),style:ZS,height:r(),width:n,itemCount:p,itemSize:WS({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d&&!i.layout.snapshotData,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:Wx,estimatedItemSize:m},HS)})))};var eE=I(QS);const tE=({model:e,rect:t,viewService:r,layoutService:n,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=$v(),u=((e,t,r)=>y((()=>{let{height:n}=e;return t.hasLimitedData&&(n-=22),r&&(n-=41),{...e,height:n}}),[e,t,r]))(t,n,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:r}=e.layout,{qNoOfLeftDims:n,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=r;return y((()=>{var e,r,a,l;const s=ky(null!==(e=null===(r=t[0])||void 0===r?void 0:r.qLeft)&&void 0!==e?e:[]),u=ky(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(Oy(i,o,0)),visibleTopDimensionInfo:u.map(Oy(i,o,n))}}),[i,o,n,t])})(n,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>y((()=>({changeSortOrder:async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o}=t,i=[];("D"===r&&!n||"A"===r&&n)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async r=>{if(!e)throw new Error("No Model provided!");const{colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a}=r,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:n,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]))(e,n.layout.qHyperCube),{headersData:m,measureData:h,topDimensionData:g,leftDimensionData:x,attrExprInfoIndexes:S,nextPageHandler:w}=Dy(o,n,i,c,d),R=My({model:e,nextPageHandler:w,pageInfo:i,layoutService:n}),{onHorizontalScrollHandler:L,onVerticalScrollHandler:A,verticalScrollableContainerRef:_,leftGridHorizontalScrollableContainerRef:I,dataGridHorizontalScrollableContainerRef:P,dataGridRef:O,leftGridRef:k,topGridRef:T,verticalScrollbarWidth:q,horizontalScrollbarHeight:N,horizontalScrollbarHeightSetter:F,verticalScrollDirection:z,horizontalScrollDirection:G}=(({layoutService:e,pageInfo:t,tableRect:r,mockedRefs:n})=>{var o,i,a,l,s,u;const{theme:c}=Nv(),d=D(null!==(o=null==n?void 0:n.verticalScrollableContainerRef)&&void 0!==o?o:null),p=D(null!==(i=null==n?void 0:n.leftGridHorizontalScrollableContainerRef)&&void 0!==i?i:null),f=D(null!==(a=null==n?void 0:n.dataGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=D(null!==(l=null==n?void 0:n.topGridRef)&&void 0!==l?l:[]),h=D(null!==(s=null==n?void 0:n.leftGridRef)&&void 0!==s?s:[]),g=D(null!==(u=null==n?void 0:n.dataGridRef)&&void 0!==u?u:null),b=D(0),y=D(0),x=D(wt.None),S=D(wt.None),[E,w]=v(0),[R,L]=v(0),A=c.name(),_=e=>{S.current=Py(e.currentTarget.scrollLeft,b.current),b.current=e.currentTarget.scrollLeft,x.current=Py(e.currentTarget.scrollTop,y.current),y.current=e.currentTarget.scrollTop};M((()=>{e.triggerdByExpandOrCollapse||(p.current&&(p.current.scrollLeft=0),f.current&&(f.current.scrollLeft=0),d.current&&(d.current.scrollTop=0))}),[e]),M((()=>{if(e.triggerdByExpandOrCollapse){var t,r,n,o,i,a;const e=null!==(t=null===(r=f.current)||void 0===r?void 0:r.scrollLeft)&&void 0!==t?t:0,l=null!==(n=null===(o=d.current)||void 0===o?void 0:o.scrollTop)&&void 0!==n?n:0;null===(i=h.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=m.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),M((()=>{p.current&&(p.current.scrollLeft=0),f.current&&(f.current.scrollLeft=0),d.current&&(d.current.scrollTop=0)}),[t.page]);const I=C((e=>{if(e)return void L(0);let t=0;if(p.current){const e=p.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(f.current){const e=f.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return M((()=>{if(d.current){const e=d.current,t=e.offsetWidth-e.clientWidth;w(t)}I()}),[I,e,r.width,r.height,A]),{onHorizontalScrollHandler:e=>{var t,r;e.target instanceof HTMLDivElement&&e.target.dataset.key===`scrollable-container--${Ct.DATA_GRID}`&&(_(e),null===(t=m.current)||void 0===t||t.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=g.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}))},onVerticalScrollHandler:e=>{var t,r;e.target instanceof HTMLDivElement&&(_(e),null===(t=h.current)||void 0===t||t.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=g.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}))},verticalScrollableContainerRef:d,leftGridHorizontalScrollableContainerRef:p,dataGridHorizontalScrollableContainerRef:f,dataGridRef:g,leftGridRef:h,topGridRef:m,verticalScrollbarWidth:E,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:I,verticalScrollDirection:x,horizontalScrollDirection:S}})({layoutService:n,pageInfo:i,tableRect:u}),{containerHeight:$,headerGridHeight:H,topGridHeight:B,leftGridHeight:W,dataGridHeight:j,allRowsVisible:V}=function({pageInfo:e,headersData:t,topDimensionData:r,tableRect:n,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=$v(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,r.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(n.height-s-Ft,l),dataGridHeight:Math.min(n.height-c-Ft,l),allRowsVisible:c+Ft+l+o<=n.height}}({pageInfo:i,headersData:m,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:N}),{leftGridWidth:Y,leftGridColumnWidths:U,rightGridWidth:K,totalWidth:X,showLastRightBorder:Z,getRightGridColumnWidth:J,getHeaderCellsIconsVisibilityStatus:Q,overrideLeftGridWidth:ee}=function({layoutService:e,tableWidth:t,headersData:r,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=$v(),{measureText:l}=En(a.header),s=ry({layoutService:e,tableWidth:t,headersData:r}),u=ny({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+Ft,d=c<t,p=C(((e,t,r="")=>{const n=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(r)+Vv;return t&&a+jv<=n&&(i=!0,a+=jv),a+Wv<=n&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return E((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:n,tableWidth:u.width,headersData:m,visibleTopDimensionInfo:d,verticalScrollbarWidth:q,horizontalScrollbarHeightSetter:F}),{rootWrapper:te,leftWrapper:re,rightWrapper:ne}=(({tableRect:e,containerHeight:t,headerGridHeight:r,leftGridHeight:n,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+Ft,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,b=e.height-h,v=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:b}},headerGrid:{width:-1,height:r},leftGrid:{width:s,height:n-h+f}},rightWrapper:{containers:{scrollable:{width:u+Ft-m,height:g},fullSize:{width:v,height:t},sticky:{width:v<y?v:y,height:b}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:$,headerGridHeight:H,leftGridHeight:W,topGridHeight:B,dataGridHeight:j,allRowsVisible:V,totalWidth:X,leftGridWidth:Y,rightGridWidth:K,verticalScrollbarWidth:q,horizontalScrollbarHeight:N}),oe=C((()=>l),[l]),ie=C((()=>s),[s]);return b.createElement(Fy,{ref:_,...te.scrollable,onScroll:A,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ct.CONTAINER_GRID},b.createElement(Ty,{...te.fullSize},b.createElement(zy,{...te.sticky,style:{display:"grid",gridTemplateColumns:Y?`${re.containers.scrollable.width}px ${ne.containers.scrollable.width}px`:`${ne.containers.scrollable.width}px`}},Boolean(Y)&&b.createElement(Fy,{ref:I,...re.containers.scrollable,onScroll:L,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ct.LEFT_GRID},b.createElement(Ty,{isLeftGrid:!0,...re.containers.fullSize},b.createElement(zy,{isLeftGrid:!0,...re.containers.sticky},b.createElement(bS,{dataModel:R,columnWidths:U,getHeaderCellsIconsVisibilityStatus:Q,rowHight:l,height:re.headerGrid.height,headersData:m,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:ee,layoutService:n}),b.createElement(XS,{dataModel:R,leftGridRef:k,...re.leftGrid,columnWidths:U,layoutService:n,leftDimensionData:x,showLastBorder:{right:!1,bottom:V},visibleLeftDimensionInfo:c,pageInfo:i})))),b.createElement(Fy,{ref:P,...ne.containers.scrollable,onScroll:L,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ct.DATA_GRID},b.createElement(Ty,{...ne.containers.fullSize},b.createElement(zy,{...ne.containers.sticky},b.createElement(eE,{dataModel:R,topGridRef:T,rowHightCallback:oe,...ne.topGrid,layoutService:n,topDimensionData:g,showLastBorder:{right:Z,bottom:!1},getRightGridColumnWidth:J,headersData:m}),b.createElement(Ux,{dataModel:R,dataGridRef:O,rowHightCallback:ie,...ne.dataGrid,viewService:r,layoutService:n,measureData:h,leftDimensionData:x,topDimensionData:g,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:S.measures,showLastBorder:{right:Z,bottom:V},getRightGridColumnWidth:J,pageInfo:i,verticalScrollDirection:z,horizontalScrollDirection:G})))))))},rE=e=>{const{layoutService:t,translator:r,pageInfo:n,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=Nv(),{layout:u,hasData:c}=t;return b.createElement(b.Fragment,null,c&&b.createElement(tE,{...e}),b.createElement(zv,{translator:r,layoutService:t}),b.createElement(Pv,{paginationNeeded:n.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:n,totalRowCount:n.totalRowCount,totalColumnCount:0,totalPages:n.totalPages,keyboard:a,translator:r,theme:l,interactions:s,rect:i,layout:u}))};function nE(e){if(e.type)return e;if("#"===e.charAt(0))return nE(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(vb(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function oE(e,t){return e=nE(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}const iE={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",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_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)"},aE=12,lE=14,sE=16,uE=24,cE=3,dE=300,pE=400,fE=600,mE=700,hE={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};oE(iE.GREYSCALE_0,.05),oE(iE.GREEN_PALE,.5),oE(iE.BLUE_PALE,.5),oE(iE.GREEN_PALE,.5),oE(iE.BLUE_PALE,.5),oE(iE.GREEN_PALE,.5),oE(iE.BLUE_PALE,.5);var gE,bE;function vE(){return vE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vE.apply(this,arguments)}oE(iE.GREEN_PALE,.5),oE(iE.BLUE_PALE,.5),oE(iE.GREEN_PALE,.5),oE(iE.BLUE_PALE,.5);var yE,xE,SE=function(e){return g.createElement("svg",vE({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),gE||(gE=g.createElement("defs",null,g.createElement("path",{id:"ArrowDown_svg__a",d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"}))),bE||(bE=g.createElement("use",{xlinkHref:"#ArrowDown_svg__a",fillRule:"evenodd"})))};function EE(){return EE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},EE.apply(this,arguments)}var CE=function(e){return g.createElement("svg",EE({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16,fill:"currentColor"},e),yE||(yE=g.createElement("defs",null,g.createElement("path",{id:"Close_svg__a",d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"}))),xE||(xE=g.createElement("use",{xlinkHref:"#Close_svg__a"})))};function wE({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return b.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var RE=(e={})=>b.createElement(wE,{...e},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},b.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),b.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"}))),LE=(e={})=>b.createElement(wE,{...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),b.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),AE=(e={})=>b.createElement(wE,{fontSize:"medium",...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},b.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),DE=(e={})=>b.createElement(wE,{fontSize:"medium",...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("defs",null,b.createElement("rect",{id:"radio-checked-path-1",x:"0",y:"0",width:"16",height:"16",rx:"8"})),b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("mask",{id:"radio-checked-mask-2",fill:"white"},b.createElement("use",{href:"#radio-checked-path-1"})),b.createElement("use",{fill:"currentColor",href:"#radio-checked-path-1"}),b.createElement("circle",{fill:"#FFFFFF",mask:"url(#radio-checked-mask-2)",cx:"8",cy:"8",r:"3"})))),_E=({className:e})=>b.createElement(wE,{fontSize:"small",className:e},b.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},b.createElement("g",{transform:"translate(4.324187, 1.300372)"},b.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"}),b.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"})))))),IE=(e={})=>b.createElement(wE,{...e},b.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.createElement("rect",{stroke:iE.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const ME={MuiAccordion:{styleOverrides:{root:{backgroundColor:iE.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:iE.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:b.createElement(SE,{"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 ${iE.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:iE.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${iE.MISC_FOCUS_BORDER}`,borderRadius:cE,backgroundColor:iE.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 ${iE.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:iE.WHITE,color:iE.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:cE},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${iE.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:iE.GREYSCALE_0_15,backgroundColor:iE.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:iE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${iE.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:iE.GREEN_PALE},"&:active":{backgroundColor:iE.GREEN_DARK},"&.Mui-focusVisible":{borderColor:iE.GREEN_PALE,boxShadow:`0 0 0 3px ${ws(iE.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:iE.BLUE_PALE},"&:active":{backgroundColor:iE.BLUE_DARK},"&.Mui-focusVisible":{borderColor:iE.BLUE_PALE,boxShadow:`0 0 0 3px ${ws(iE.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:cE,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:iE.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${iE.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:iE.GREYSCALE_0_15,backgroundColor:iE.GREYSCALE_100_60,"&:active":{backgroundColor:iE.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:iE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${iE.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:iE.PURPLE,"&.Mui-focusVisible":{borderColor:iE.PURPLE,boxShadow:`0 0 0 3px ${ws(iE.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:iE.GREEN,"&.Mui-focusVisible":{borderColor:iE.GREEN,boxShadow:`0 0 0 3px ${ws(iE.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:iE.BLUE,"&.Mui-focusVisible":{borderColor:iE.BLUE,boxShadow:`0 0 0 3px ${ws(iE.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:iE.ORANGE,"&.Mui-focusVisible":{borderColor:iE.ORANGE,boxShadow:`0 0 0 3px ${ws(iE.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:iE.RED,"&.Mui-focusVisible":{borderColor:iE.RED,boxShadow:`0 0 0 3px ${ws(iE.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:iE.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:iE.PURPLE_PALE},"&:active":{backgroundColor:iE.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:iE.PURPLE_PALE,boxShadow:`0 0 0 3px ${ws(iE.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:iE.GREEN_PALE},"&:active":{backgroundColor:iE.GREEN_DARK},"&.Mui-focusVisible":{borderColor:iE.GREEN_PALE,boxShadow:`0 0 0 3px ${ws(iE.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:iE.BLUE_PALE},"&:active":{backgroundColor:iE.BLUE_DARK},"&.Mui-focusVisible":{borderColor:iE.BLUE_PALE,boxShadow:`0 0 0 3px ${ws(iE.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:iE.ORANGE_PALE},"&:active":{backgroundColor:iE.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:iE.ORANGE_PALE,boxShadow:`0 0 0 3px ${ws(iE.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:iE.RED_PALE},"&:active":{backgroundColor:iE.RED_DARK},"&.Mui-focusVisible":{borderColor:iE.RED_PALE,boxShadow:`0 0 0 3px ${ws(iE.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:iE.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:iE.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:cE,boxShadow:`inset 0 0 0 2px ${iE.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:b.createElement(CE,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:aE,borderRadius:cE,color:iE.TEXT_PRIMARY,backgroundColor:iE.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:iE.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${iE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:iE.GREYSCALE_0_05,color:iE.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:iE.GREEN,borderColor:iE.GREEN},"&.MuiChip-outlinedInfo":{color:iE.BLUE,borderColor:iE.BLUE},"&.MuiChip-outlinedWarning":{color:iE.ORANGE,borderColor:iE.ORANGE},"&.MuiChip-outlinedError":{color:iE.RED,borderColor:iE.RED}},outlined:{border:`solid 1px ${iE.GREYSCALE_0_15}`,backgroundColor:iE.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:cE,boxShadow:"none",backgroundColor:iE.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:iE.GREEN,borderColor:iE.GREEN},outlinedSecondary:{color:iE.BLUE,borderColor:iE.BLUE},label:{fontFamily:hE.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:b.createElement(CE,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:b.createElement(SE,{"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:cE},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:lE,height:"32px",'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:iE.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:iE.GREYSCALE_0_10},"&:hover":{backgroundColor:iE.GREYSCALE_0_03}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:cE,border:`solid 1px ${iE.GREYSCALE_0_15}`,color:iE.GREYSCALE_0_60,marginRight:0,width:uE,height:uE},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${iE.GREYSCALE_0_15}`},clearIndicator:{borderRadius:cE,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:iE.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:lE}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:aE,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:iE.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:iE.GREYSCALE_25,fontSize:aE,fontFamily:hE.FONT_FAMILY,fontWeight:fE,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:iE.TEXT_PRIMARY},"&.Mui-error":{color:iE.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:iE.TEXT_SECONDARY,content:"'(optional)'",fontWeight:pE,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:iE.TEXT_SECONDARY,content:"'(required)'",fontWeight:pE,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:lE,lineHeight:"16px",backgroundColor:iE.WHITE,borderRadius:cE,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iE.GREYSCALE_0_05}`,borderColor:iE.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iE.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${iE.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${iE.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iE.RED}`,boxShadow:`0px 0px 0px 1px ${iE.RED}, inset 0 2px 0 0 ${iE.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iE.GREYSCALE_0_10}`,borderColor:iE.GREYSCALE_0_10,backgroundColor:iE.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:iE.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:iE.GREYSCALE_0_15,borderRadius:cE,boxShadow:`inset 0 2px 0 0 ${iE.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>b.createElement(SE,{...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:iE.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:iE.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:iE.GREYSCALE_0_03},"&:active":{backgroundColor:iE.GREYSCALE_0_10},"&:focus":{backgroundColor:iE.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${iE.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${iE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:iE.GREYSCALE_0_30,"&:hover":{backgroundColor:iE.GREYSCALE_0_0,borderColor:iE.GREYSCALE_0_15},"& ~svg":{color:iE.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${iE.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:cE}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:iE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${iE.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:iE.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:lE,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:aE,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:aE,fontWeight:fE,color:iE.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:fE}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${iE.GREYSCALE_0_15}, 0px 0px 0px 1px ${iE.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:b.createElement(AE,null),checkedIcon:b.createElement(DE,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:iE.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${iE.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:iE.GREEN_PALE,boxShadow:`0 0 0 3px ${ws(iE.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:iE.BLUE_PALE,boxShadow:`0 0 0 3px ${ws(iE.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:iE.GREYSCALE_0_20}},"&.Mui-disabled":{fill:iE.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:b.createElement(IE,null),checkedIcon:b.createElement(RE,null),indeterminateIcon:b.createElement(LE,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:cE,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:iE.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:iE.GREYSCALE_0_55,color:iE.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:iE.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:iE.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:iE.GREYSCALE_0_55,"&:hover":{color:iE.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:iE.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:iE.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:lE,color:iE.TEXT_PRIMARY,lineHeight:"16px",fontWeight:fE},secondary:{fontSize:aE,color:iE.GREYSCALE_45,fontWeight:pE,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:lE,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:iE.GREYSCALE_0_03},"&:active":{backgroundColor:iE.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:lE,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:iE.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:aE,borderBottom:`solid 1px ${iE.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:lE,color:iE.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:iE.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:iE.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:iE.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:iE.RED}}},"&.Mui-focusVisible":{backgroundColor:iE.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:iE.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:iE.GREEN,height:"24px","&.Mui-disabled":{color:iE.GREYSCALE_0_15}},rail:{backgroundColor:iE.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${iE.GREYSCALE_0_05}`,borderRadius:cE,boxShadow:`inset 0px 0px 0px 1px ${iE.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${iE.GREYSCALE_0_05}`,borderRadius:cE},thumb:{height:"16px",width:"16px",borderRadius:cE,backgroundColor:iE.WHITE,boxShadow:`0px 1px 2px 0px ${iE.GREYSCALE_0_15}, 0px 0px 0px 1px ${iE.GREYSCALE_0_05}`,"&:hover":{borderRadius:cE,boxShadow:`0 2px 4px 0 ${iE.GREYSCALE_0_30}, 0 0 0 1px ${iE.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${iE.GREYSCALE_0_15}, 0 0 0 1px ${iE.GREYSCALE_0_06}, 0 0 0 2px ${iE.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${iE.GREYSCALE_0_15}, 0 0 0 1px ${iE.GREYSCALE_0_06}, 0 0 0 2px ${iE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:iE.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:iE.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:iE.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:iE.GREYSCALE_0_15},markLabel:{color:iE.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:iE.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:iE.WHITE,color:iE.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:iE.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:iE.GREEN_PALE,boxShadow:`0 0 0 3px ${ws(iE.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:iE.BLUE_PALE,boxShadow:`0 0 0 3px ${ws(iE.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:iE.GREYSCALE_0_15,borderRadius:cE},thumb:{height:"16px",width:"16px",borderRadius:cE,backgroundColor:iE.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:lE,fontWeight:fE,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${iE.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${iE.MISC_FOCUS_BORDER}`,backgroundColor:iE.GREYSCALE_0_03,borderRadius:cE},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:iE.GREYSCALE_25,"&.Mui-selected":{color:iE.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:lE,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${iE.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${iE.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${iE.GREYSCALE_85}`,borderRight:`1px solid ${iE.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:fE,backgroundColor:iE.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:iE.GREYSCALE_98,borderBottom:`1px solid ${iE.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${iE.GREYSCALE_85}`,borderTop:`1px solid ${iE.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:iE.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:iE.GREYSCALE_0_05,"&:hover":{backgroundColor:iE.GREYSCALE_0_03}},"&&:hover":{backgroundColor:iE.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>b.createElement(_E,{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 ${iE.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:16,width:32,fontSize:lE,borderRadius:cE,padding:"7px 16px",border:`1px solid ${iE.GREYSCALE_0_15}`,backgroundColor:iE.GREYSCALE_100_60,color:iE.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:iE.GREYSCALE_0_10,border:`1px solid ${iE.GREYSCALE_0_30}`},"&:hover":{backgroundColor:iE.GREYSCALE_0_03,border:`1px solid ${iE.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:iE.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${iE.MISC_FOCUS_BORDER}`,border:`1px solid ${iE.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:iE.GREYSCALE_25,backgroundColor:iE.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:iE.GREYSCALE_0_10,border:`1px solid ${iE.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:aE,height:24,width:24,padding:7},sizeLarge:{fontSize:sE,height:40,width:40,lineHeight:20}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:lE,borderRadius:cE}}},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:iE.GREYSCALE_20},tooltip:{backgroundColor:iE.GREYSCALE_20,fontSize:aE,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var PE=e=>ME;const OE={mode:"light",primary:{light:iE.GREEN_PALE,main:iE.GREEN,dark:iE.GREEN_DARK,contrastText:iE.WHITE},secondary:{light:iE.BLUE_PALE,main:iE.BLUE,dark:iE.BLUE_DARK,contrastText:iE.WHITE},error:{light:iE.RED_PALE,main:iE.RED,dark:iE.RED_DARK,contrastText:iE.WHITE},warning:{light:iE.ORANGE_PALE,main:iE.ORANGE,dark:iE.ORANGE_DARK,contrastText:iE.WHITE},success:{light:iE.GREEN_PALE,main:iE.GREEN,dark:iE.GREEN_DARK,contrastText:iE.WHITE},info:{light:iE.BLUE_PALE,main:iE.BLUE,dark:iE.BLUE_DARK,contrastText:iE.WHITE},text:{primary:iE.TEXT_PRIMARY,secondary:iE.TEXT_SECONDARY,disabled:iE.GREYSCALE_0_30},action:{hover:iE.GREYSCALE_0_03,hoverOpacity:.05,selected:iE.GREYSCALE_0_05},amethyst:{main:iE.PURPLE,light:iE.PURPLE_PALE,dark:iE.PURPLE_DARK,contrastText:iE.WHITE},background:{paper:iE.WHITE,default:iE.GREYSCALE_95},divider:iE.GREYSCALE_0_15},kE=e=>OE,TE=(e="light")=>({components:PE(),palette:kE(),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:lE,fontWeightLight:dE,fontWeightRegular:pE,fontWeightMedium:fE,fontWeightBold:mE,htmlFontSize:lE,fontFamily:hE.FONT_FAMILY,button:{fontWeight:fE,fontSize:lE,textTransform:"none"},body1:{fontSize:sE,lineHeight:"24px"},body2:{fontSize:lE,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:uE,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:sE,fontWeight:fE,lineHeight:"16px"},h6:{fontSize:lE,fontWeight:fE,lineHeight:"16px"},caption:{color:iE.TEXT_SECONDARY},subtitle1:{fontSize:lE,color:iE.TEXT_SECONDARY},subtitle2:{fontSize:aE,color:iE.TEXT_SECONDARY}},shape:{borderRadius:cE}});const qE=(e,t)=>{const{selections:r,styleService:n,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c}=t,d=function(e){var t;const r=TE();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),iu({...r,direction:e})}("ltr");e.render(b.createElement(b.StrictMode,null,b.createElement(cu,{theme:d},b.createElement(Fv,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c},b.createElement(rS,{selections:r,updatePageInfo:t.updatePageInfo},b.createElement(Hv,{styleService:n},b.createElement(rE,{...t})))))))},NE={darker:.15,brighter:.3,opacity:.03},FE={darker:.3,brighter:.5,opacity:.05};var zE,GE,$E,HE;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.Border="border",e.Divider="divider"}(zE||(zE={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(GE||(GE={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}($E||($E={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.BorderColor="borderColor"}(HE||(HE={}));const BE=e=>e?`${parseInt(e,10)}px`:void 0,WE=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?zt.Transparent:r}},jE=(e,t)=>+(parseInt(e,10)*Nt*t+8).toFixed(2),VE=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?kt:"normal",YE=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",UE=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",KE=({fontStyle:e,fontWeight:t,fontSize:r,fontFamily:n})=>t?`${e} ${t} ${r} ${n}`:`${e} ${r} ${n}`,XE=(t,r)=>e((()=>((e,t)=>{var r,n,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!s,m=null!==(r=null==s||null===(n=s.content)||void 0===n||null===(n=n.qPivotDataPages)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.qArea)&&void 0!==r?r:{qWidth:0,qHeight:0},h={x:f?m.qWidth:Math.min(e.qHyperCube.qSize.qcx,qt),y:f?m.qHeight:Math.min(e.qHyperCube.qSize.qcy,Tt)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),v=b(Kv),y=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:Kv,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(v)return 0;const r=e%x.length;return t?r:d.findIndex((e=>e===x[r]))},getDimensionInfo:e=>{var t;return e===Kv?Kv:null!==(t=p[c[e]])&&void 0!==t?t:void 0},getDimensionInfoIndex:e=>{var t;return null!==(t=y.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:!(null==t||null===(o=t.qHyperCubeDef)||void 0===o||!o.qShowTotalsAbove),hasPseudoDimOnLeft:v,leftDimensionInfoIndexes:g,isLeftDimension:b,isFullyExpanded:!(null==t||null===(i=t.qHyperCubeDef)||void 0===i||!i.qAlwaysFullyExpanded),triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x}})(t,r)),[t,r]),ZE={},JE=t=>{const r=(t=>{const r=e((()=>({current:ZE})),[]);return r.current=r.current===ZE?t:r.current,r})(t);return r.current=t,r},QE=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=JE((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/ht.PixelsMin)}))(o));return mr((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,u,c)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,u,c))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(qt,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,u,c);return t?e.getHyperCubePivotData(Uv,Iy(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},eC=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),tC=(e,t)=>{const r=Tt;return{rowsPerPage:r,totalPages:Math.ceil(e/r),totalRowCount:e,rowsOnCurrentPage:eC({rowsPerPage:r,totalRowCount:e,page:t})}};var rC={SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const nC=()=>{const t=a(),r=t.language();return e((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(rC).forEach((t=>{e.add(rC[t])}))}}(t)),[t]),{translator:t,language:r}},oC=a=>{const{flags:g}=a,b=l(),v=(t=>{const n=e((()=>hr(t)),[t]);return r((()=>()=>n.unmount()),[n]),n})(b),y=s(),x=u(),S=c(),E=d(),C=p(),w=f(),[R,L]=((e,t)=>mr((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(x,y),A=XE(y,R),D=m(),_=((t,r,o)=>{const i=n();return e((()=>({...i,background:vn(i,t,r,o)})),[i.name(),t,r,o])})(b),I=_.name(),{translator:M,language:P}=nC(),{pageInfo:O,updatePageInfo:k}=(e=>{const{size:t,layout:{qHyperCube:{qSize:n}}}=e,[i,a]=o({page:0,shouldShowPagination:n.qcy>t.y,...tC(n.qcy,0)});return r((()=>{a((t=>({...t,...tC(e.layout.qHyperCube.qSize.qcy,t.page),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,a]),r((()=>{const{page:e,totalPages:t}=i;if(e+1>t){const e=t-1,r=eC({...i,page:e});a({...i,page:e,rowsOnCurrentPage:r})}}),[i]),{pageInfo:i,updatePageInfo:e=>a({...i,...e,rowsOnCurrentPage:eC({...i,...e})})}})(A),T=(t=>e((()=>({gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0})),[t.page]))(O),q=(({layoutService:e,viewService:t,rect:r,model:n})=>{var o;return i((async e=>e.snapshotData&&n&&!e.snapshotData.content?(null!=n&&n.getHyperCubePivotData&&(e.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(Uv,[{qLeft:t.gridColumnStartIndex,qTop:t.gridRowStartIndex,qWidth:t.gridWidth,qHeight:t.gridHeight}])},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height),e):e)),null!==(o=e.layout.snapshotData)&&void 0!==o&&o.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r})({rect:h(),layoutService:A,viewService:T,model:x}),[N,F]=QE({model:x,layoutService:A,viewService:T,pageInfo:O,rect:q}),z=e((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,L,A,D,_,I,M,P,O,k,T,q,N,F,z,G,$,H,B,W,j,V;const Y=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),U=null==Y?void 0:Y.header,K=null==Y?void 0:Y.dimensionValues,X=null==Y?void 0:Y.measureValues,Z=null==Y?void 0:Y.measureLabels,J=null==Y?void 0:Y.totalValues,Q=null==Y?void 0:Y.nullValues,ee=null==Y?void 0:Y.grid,te=(t,r,n)=>e.getStyle(t,r,n),re=+(null!==(n=null!==(o=null==ee?void 0:ee[zE.LineClamp])&&void 0!==o?o:te(GE.Grid,$E.Grid,HE.LineClamp))&&void 0!==n?n:1),ne=null!==(i=null!==(a=WE(e,null==U?void 0:U[zE.Background]))&&void 0!==a?a:te(GE.Dimension,$E.LabelName,HE.BackgroundColor))&&void 0!==i?i:zt.Transparent,oe={header:{fontSize:null!==(l=null!==(s=BE(null==U?void 0:U[zE.FontSize]))&&void 0!==s?s:te(GE.Dimension,$E.LabelName,HE.FontSize))&&void 0!==l?l:Pt,fontFamily:null!==(u=null!==(c=null==U?void 0:U[zE.FontFamily])&&void 0!==c?c:te(GE.Dimension,$E.LabelName,HE.FontFamily))&&void 0!==u?u:Ot,fontWeight:VE(null==U?void 0:U[zE.FontStyle],kt),fontStyle:YE(null==U?void 0:U[zE.FontStyle]),textDecoration:UE(null==U?void 0:U[zE.FontStyle]),color:null!==(d=null!==(p=WE(e,null==U?void 0:U[zE.FontColor]))&&void 0!==p?p:te(GE.Dimension,$E.LabelName,HE.Color))&&void 0!==d?d:Qb.TEXT,background:ne,hoverBackground:ev(ne,NE),activeBackground:ev(ne,FE)},dimensionValues:{fontSize:null!==(f=null!==(m=BE(null==K?void 0:K[zE.FontSize]))&&void 0!==m?m:te(GE.Dimension,$E.LabelValue,HE.FontSize))&&void 0!==f?f:Pt,fontFamily:null!==(h=null!==(g=null==K?void 0:K[zE.FontFamily])&&void 0!==g?g:te(GE.Dimension,$E.LabelValue,HE.FontFamily))&&void 0!==h?h:Ot,fontWeight:VE(null==K?void 0:K[zE.FontStyle],void 0),fontStyle:YE(null==K?void 0:K[zE.FontStyle]),textDecoration:UE(null==K?void 0:K[zE.FontStyle]),color:null!==(b=null!==(v=WE(e,null==K?void 0:K[zE.FontColor]))&&void 0!==v?v:te(GE.Dimension,$E.LabelValue,HE.Color))&&void 0!==b?b:Qb.TEXT,background:null!==(y=null!==(x=WE(e,null==K?void 0:K[zE.Background]))&&void 0!==x?x:te(GE.Dimension,$E.LabelValue,HE.BackgroundColor))&&void 0!==y?y:zt.Transparent},measureValues:{fontSize:null!==(S=null!==(E=BE(null==X?void 0:X[zE.FontSize]))&&void 0!==E?E:te(GE.Measure,$E.LabelValue,HE.FontSize))&&void 0!==S?S:Pt,fontFamily:null!==(C=null!==(w=null==X?void 0:X[zE.FontFamily])&&void 0!==w?w:te(GE.Measure,$E.LabelValue,HE.FontFamily))&&void 0!==C?C:Ot,fontWeight:VE(null==X?void 0:X[zE.FontStyle],"normal"),fontStyle:YE(null==X?void 0:X[zE.FontStyle]),textDecoration:UE(null==X?void 0:X[zE.FontStyle]),color:null!==(R=null!==(L=WE(e,null==X?void 0:X[zE.FontColor]))&&void 0!==L?L:te(GE.Measure,$E.LabelValue,HE.Color))&&void 0!==R?R:zt.FontSecondary,background:null!==(A=null!==(D=WE(e,null==X?void 0:X[zE.Background]))&&void 0!==D?D:te(GE.Measure,$E.LabelValue,HE.BackgroundColor))&&void 0!==A?A:zt.Transparent},measureLabels:{fontWeight:VE(null==Z?void 0:Z[zE.FontStyle],"normal"),fontStyle:YE(null==Z?void 0:Z[zE.FontStyle]),textDecoration:UE(null==Z?void 0:Z[zE.FontStyle]),color:null!==(_=null!==(I=WE(e,null==Z?void 0:Z[zE.FontColor]))&&void 0!==I?I:te(GE.Measure,$E.LabelName,HE.Color))&&void 0!==_?_:zt.FontSecondary,background:null!==(M=null!==(P=WE(e,null==Z?void 0:Z[zE.Background]))&&void 0!==P?P:te(GE.Measure,$E.LabelName,HE.BackgroundColor))&&void 0!==M?M:zt.Transparent},totalValues:{fontWeight:VE(null==J?void 0:J[zE.FontStyle],kt),fontStyle:YE(null==J?void 0:J[zE.FontStyle]),textDecoration:UE(null==J?void 0:J[zE.FontStyle]),color:null!==(O=null!==(k=WE(e,null==J?void 0:J[zE.FontColor]))&&void 0!==k?k:te(GE.Total,$E.LabelValue,HE.Color))&&void 0!==O?O:Qb.TEXT,background:null!==(T=null!==(q=WE(e,null==J?void 0:J[zE.Background]))&&void 0!==q?q:te(GE.Total,$E.LabelValue,HE.BackgroundColor))&&void 0!==T?T:zt.Transparent},nullValues:{fontWeight:VE(null==Q?void 0:Q[zE.FontStyle],"normal"),fontStyle:YE(null==Q?void 0:Q[zE.FontStyle]),textDecoration:UE(null==Q?void 0:Q[zE.FontStyle]),color:null!==(N=null!==(F=WE(e,null==Q?void 0:Q[zE.FontColor]))&&void 0!==F?F:te(GE.Null,$E.LabelValue,HE.Color))&&void 0!==N?N:Qb.TEXT,background:null!==(z=null!==(G=WE(e,null==Q?void 0:Q[zE.Background]))&&void 0!==G?G:te(GE.Null,$E.LabelValue,HE.BackgroundColor))&&void 0!==z?z:zt.NullValueBackground},grid:{lineClamp:re,border:null!==($=null!==(H=WE(e,null==ee?void 0:ee[zE.Border]))&&void 0!==H?H:te(GE.Grid,$E.Grid,HE.BorderColor))&&void 0!==$?$:zt.DividerLight,divider:null!==(B=null!==(W=WE(e,null==ee?void 0:ee[zE.Divider]))&&void 0!==W?W:te(GE.Grid,$E.Divider,HE.BorderColor))&&void 0!==B?B:zt.DividerDark,background:null!==(j=null!==(V=WE(e,null==ee?void 0:ee[zE.Background]))&&void 0!==V?V:te(GE.Grid,$E.Grid,HE.BackgroundColor))&&void 0!==j?j:zt.Transparent}};return oe.headerCellHeight=Math.max(jE(oe.header.fontSize,1),jE(oe.dimensionValues.fontSize,1),32),oe.contentCellHeight=Math.max(jE(oe.measureValues.fontSize,re),jE(oe.dimensionValues.fontSize,re),24),oe.contentRowHeight=oe.contentCellHeight/re,oe.contentTextHeight=oe.contentRowHeight-8,oe})(_,A)),[_.name(),A]),G=(t=>e((()=>[...new Set([KE(t.header),KE(t.dimensionValues),KE({...t.dimensionValues,...t.measureLabels}),KE({...t.dimensionValues,...t.nullValues}),KE({...t.dimensionValues,...t.totalValues}),KE(t.measureValues),KE({...t.measureValues,...t.nullValues}),KE({...t.measureValues,...t.totalValues})])]),[t]))(z),$=(e=>{const[r,n]=t((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return n?(console.warn("Failed to load font:",n),!0):!!r})(G);r((()=>{!F&&x&&(null==q?void 0:q.width)&&(null==q?void 0:q.height)&&D&&T&&A&&z&&!!N&&!L&&$&&qE(v,{model:x,app:S,rect:q,selections:D,viewService:T,layoutService:A,qPivotDataPages:N,styleService:z,translator:M,pageInfo:O,updatePageInfo:k,interactions:w,embed:E,keyboard:C,theme:_,flags:g})}),[x,S,q,null==q?void 0:q.width,null==q?void 0:q.height,w,D,T,A,F,N,z,v,$,M,P,O,k,R,L,E,C,_,I,g])},iC={version:"3.0.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]};function aC(e){return{qae:{properties:{initial:iC},data:tt(e)},ext:cr(e),component(){oC(e)}}}export{aC as default};
|